index.js 1.7 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134
  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. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  9. }) : (function(o, m, k, k2) {
  10. if (k2 === undefined) k2 = k;
  11. o[k2] = m[k];
  12. }));
  13. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  14. Object.defineProperty(o, "default", { enumerable: true, value: v });
  15. }) : function(o, v) {
  16. o["default"] = v;
  17. });
  18. var __importStar = (this && this.__importStar) || function (mod) {
  19. if (mod && mod.__esModule) return mod;
  20. var result = {};
  21. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  22. __setModuleDefault(result, mod);
  23. return result;
  24. };
  25. Object.defineProperty(exports, "__esModule", ({ value: true }));
  26. exports.fileExistsSync = exports.existsSync = exports.directoryExistsSync = void 0;
  27. const fs = __importStar(__nccwpck_require__(7147));
  28. function directoryExistsSync(path, required) {
  29. var _a, _b, _c;
  30. if (!path) {
  31. throw new Error("Arg 'path' must not be empty");
  32. }
  33. let stats;
  34. try {
  35. stats = fs.statSync(path);
  36. }
  37. catch (error) {
  38. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  39. if (!required) {
  40. return false;
  41. }
  42. throw new Error(`Directory '${path}' does not exist`);
  43. }
  44. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_c = (_b = error) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : error}`);
  45. }
  46. if (stats.isDirectory()) {
  47. return true;
  48. }
  49. else if (!required) {
  50. return false;
  51. }
  52. throw new Error(`Directory '${path}' does not exist`);
  53. }
  54. exports.directoryExistsSync = directoryExistsSync;
  55. function existsSync(path) {
  56. var _a, _b, _c;
  57. if (!path) {
  58. throw new Error("Arg 'path' must not be empty");
  59. }
  60. try {
  61. fs.statSync(path);
  62. }
  63. catch (error) {
  64. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  65. return false;
  66. }
  67. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_c = (_b = error) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : error}`);
  68. }
  69. return true;
  70. }
  71. exports.existsSync = existsSync;
  72. function fileExistsSync(path) {
  73. var _a, _b, _c;
  74. if (!path) {
  75. throw new Error("Arg 'path' must not be empty");
  76. }
  77. let stats;
  78. try {
  79. stats = fs.statSync(path);
  80. }
  81. catch (error) {
  82. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  83. return false;
  84. }
  85. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_c = (_b = error) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : error}`);
  86. }
  87. if (!stats.isDirectory()) {
  88. return true;
  89. }
  90. return false;
  91. }
  92. exports.fileExistsSync = fileExistsSync;
  93. /***/ }),
  94. /***/ 2565:
  95. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  96. "use strict";
  97. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  98. if (k2 === undefined) k2 = k;
  99. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  100. }) : (function(o, m, k, k2) {
  101. if (k2 === undefined) k2 = k;
  102. o[k2] = m[k];
  103. }));
  104. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  105. Object.defineProperty(o, "default", { enumerable: true, value: v });
  106. }) : function(o, v) {
  107. o["default"] = v;
  108. });
  109. var __importStar = (this && this.__importStar) || function (mod) {
  110. if (mod && mod.__esModule) return mod;
  111. var result = {};
  112. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  113. __setModuleDefault(result, mod);
  114. return result;
  115. };
  116. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  117. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  118. return new (P || (P = Promise))(function (resolve, reject) {
  119. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  120. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  121. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  122. step((generator = generator.apply(thisArg, _arguments || [])).next());
  123. });
  124. };
  125. var __importDefault = (this && this.__importDefault) || function (mod) {
  126. return (mod && mod.__esModule) ? mod : { "default": mod };
  127. };
  128. Object.defineProperty(exports, "__esModule", ({ value: true }));
  129. exports.createAuthHelper = void 0;
  130. const assert = __importStar(__nccwpck_require__(9491));
  131. const core = __importStar(__nccwpck_require__(2186));
  132. const exec = __importStar(__nccwpck_require__(1514));
  133. const fs = __importStar(__nccwpck_require__(7147));
  134. const io = __importStar(__nccwpck_require__(7436));
  135. const os = __importStar(__nccwpck_require__(2037));
  136. const path = __importStar(__nccwpck_require__(1017));
  137. const regexpHelper = __importStar(__nccwpck_require__(3120));
  138. const stateHelper = __importStar(__nccwpck_require__(8647));
  139. const urlHelper = __importStar(__nccwpck_require__(9437));
  140. const v4_1 = __importDefault(__nccwpck_require__(824));
  141. const IS_WINDOWS = process.platform === 'win32';
  142. const SSH_COMMAND_KEY = 'core.sshCommand';
  143. function createAuthHelper(git, settings) {
  144. return new GitAuthHelper(git, settings);
  145. }
  146. exports.createAuthHelper = createAuthHelper;
  147. class GitAuthHelper {
  148. constructor(gitCommandManager, gitSourceSettings) {
  149. this.insteadOfValues = [];
  150. this.sshCommand = '';
  151. this.sshKeyPath = '';
  152. this.sshKnownHostsPath = '';
  153. this.temporaryHomePath = '';
  154. this.git = gitCommandManager;
  155. this.settings = gitSourceSettings || {};
  156. // Token auth header
  157. const serverUrl = urlHelper.getServerUrl(this.settings.githubServerUrl);
  158. this.tokenConfigKey = `http.${serverUrl.origin}/.extraheader`; // "origin" is SCHEME://HOSTNAME[:PORT]
  159. const basicCredential = Buffer.from(`x-access-token:${this.settings.authToken}`, 'utf8').toString('base64');
  160. core.setSecret(basicCredential);
  161. this.tokenPlaceholderConfigValue = `AUTHORIZATION: basic ***`;
  162. this.tokenConfigValue = `AUTHORIZATION: basic ${basicCredential}`;
  163. // Instead of SSH URL
  164. this.insteadOfKey = `url.${serverUrl.origin}/.insteadOf`; // "origin" is SCHEME://HOSTNAME[:PORT]
  165. this.insteadOfValues.push(`git@${serverUrl.hostname}:`);
  166. if (this.settings.workflowOrganizationId) {
  167. this.insteadOfValues.push(`org-${this.settings.workflowOrganizationId}@github.com:`);
  168. }
  169. }
  170. configureAuth() {
  171. return __awaiter(this, void 0, void 0, function* () {
  172. // Remove possible previous values
  173. yield this.removeAuth();
  174. // Configure new values
  175. yield this.configureSsh();
  176. yield this.configureToken();
  177. });
  178. }
  179. configureTempGlobalConfig() {
  180. var _a, _b;
  181. return __awaiter(this, void 0, void 0, function* () {
  182. // Already setup global config
  183. if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
  184. return path.join(this.temporaryHomePath, '.gitconfig');
  185. }
  186. // Create a temp home directory
  187. const runnerTemp = process.env['RUNNER_TEMP'] || '';
  188. assert.ok(runnerTemp, 'RUNNER_TEMP is not defined');
  189. const uniqueId = (0, v4_1.default)();
  190. this.temporaryHomePath = path.join(runnerTemp, uniqueId);
  191. yield fs.promises.mkdir(this.temporaryHomePath, { recursive: true });
  192. // Copy the global git config
  193. const gitConfigPath = path.join(process.env['HOME'] || os.homedir(), '.gitconfig');
  194. const newGitConfigPath = path.join(this.temporaryHomePath, '.gitconfig');
  195. let configExists = false;
  196. try {
  197. yield fs.promises.stat(gitConfigPath);
  198. configExists = true;
  199. }
  200. catch (err) {
  201. if (((_b = err) === null || _b === void 0 ? void 0 : _b.code) !== 'ENOENT') {
  202. throw err;
  203. }
  204. }
  205. if (configExists) {
  206. core.info(`Copying '${gitConfigPath}' to '${newGitConfigPath}'`);
  207. yield io.cp(gitConfigPath, newGitConfigPath);
  208. }
  209. else {
  210. yield fs.promises.writeFile(newGitConfigPath, '');
  211. }
  212. // Override HOME
  213. core.info(`Temporarily overriding HOME='${this.temporaryHomePath}' before making global git config changes`);
  214. this.git.setEnvironmentVariable('HOME', this.temporaryHomePath);
  215. return newGitConfigPath;
  216. });
  217. }
  218. configureGlobalAuth() {
  219. return __awaiter(this, void 0, void 0, function* () {
  220. // 'configureTempGlobalConfig' noops if already set, just returns the path
  221. const newGitConfigPath = yield this.configureTempGlobalConfig();
  222. try {
  223. // Configure the token
  224. yield this.configureToken(newGitConfigPath, true);
  225. // Configure HTTPS instead of SSH
  226. yield this.git.tryConfigUnset(this.insteadOfKey, true);
  227. if (!this.settings.sshKey) {
  228. for (const insteadOfValue of this.insteadOfValues) {
  229. yield this.git.config(this.insteadOfKey, insteadOfValue, true, true);
  230. }
  231. }
  232. }
  233. catch (err) {
  234. // Unset in case somehow written to the real global config
  235. core.info('Encountered an error when attempting to configure token. Attempting unconfigure.');
  236. yield this.git.tryConfigUnset(this.tokenConfigKey, true);
  237. throw err;
  238. }
  239. });
  240. }
  241. configureSubmoduleAuth() {
  242. return __awaiter(this, void 0, void 0, function* () {
  243. // Remove possible previous HTTPS instead of SSH
  244. yield this.removeGitConfig(this.insteadOfKey, true);
  245. if (this.settings.persistCredentials) {
  246. // Configure a placeholder value. This approach avoids the credential being captured
  247. // by process creation audit events, which are commonly logged. For more information,
  248. // refer to https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing
  249. const output = yield this.git.submoduleForeach(
  250. // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
  251. `sh -c "git config --local '${this.tokenConfigKey}' '${this.tokenPlaceholderConfigValue}' && git config --local --show-origin --name-only --get-regexp remote.origin.url"`, this.settings.nestedSubmodules);
  252. // Replace the placeholder
  253. const configPaths = output.match(/(?<=(^|\n)file:)[^\t]+(?=\tremote\.origin\.url)/g) || [];
  254. for (const configPath of configPaths) {
  255. core.debug(`Replacing token placeholder in '${configPath}'`);
  256. yield this.replaceTokenPlaceholder(configPath);
  257. }
  258. if (this.settings.sshKey) {
  259. // Configure core.sshCommand
  260. yield this.git.submoduleForeach(`git config --local '${SSH_COMMAND_KEY}' '${this.sshCommand}'`, this.settings.nestedSubmodules);
  261. }
  262. else {
  263. // Configure HTTPS instead of SSH
  264. for (const insteadOfValue of this.insteadOfValues) {
  265. yield this.git.submoduleForeach(`git config --local --add '${this.insteadOfKey}' '${insteadOfValue}'`, this.settings.nestedSubmodules);
  266. }
  267. }
  268. }
  269. });
  270. }
  271. removeAuth() {
  272. return __awaiter(this, void 0, void 0, function* () {
  273. yield this.removeSsh();
  274. yield this.removeToken();
  275. });
  276. }
  277. removeGlobalConfig() {
  278. var _a;
  279. return __awaiter(this, void 0, void 0, function* () {
  280. if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
  281. core.debug(`Unsetting HOME override`);
  282. this.git.removeEnvironmentVariable('HOME');
  283. yield io.rmRF(this.temporaryHomePath);
  284. }
  285. });
  286. }
  287. configureSsh() {
  288. var _a;
  289. return __awaiter(this, void 0, void 0, function* () {
  290. if (!this.settings.sshKey) {
  291. return;
  292. }
  293. // Write key
  294. const runnerTemp = process.env['RUNNER_TEMP'] || '';
  295. assert.ok(runnerTemp, 'RUNNER_TEMP is not defined');
  296. const uniqueId = (0, v4_1.default)();
  297. this.sshKeyPath = path.join(runnerTemp, uniqueId);
  298. stateHelper.setSshKeyPath(this.sshKeyPath);
  299. yield fs.promises.mkdir(runnerTemp, { recursive: true });
  300. yield fs.promises.writeFile(this.sshKeyPath, this.settings.sshKey.trim() + '\n', { mode: 0o600 });
  301. // Remove inherited permissions on Windows
  302. if (IS_WINDOWS) {
  303. const icacls = yield io.which('icacls.exe');
  304. yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /grant:r "${process.env['USERDOMAIN']}\\${process.env['USERNAME']}:F"`);
  305. yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /inheritance:r`);
  306. }
  307. // Write known hosts
  308. const userKnownHostsPath = path.join(os.homedir(), '.ssh', 'known_hosts');
  309. let userKnownHosts = '';
  310. try {
  311. userKnownHosts = (yield fs.promises.readFile(userKnownHostsPath)).toString();
  312. }
  313. catch (err) {
  314. if (((_a = err) === null || _a === void 0 ? void 0 : _a.code) !== 'ENOENT') {
  315. throw err;
  316. }
  317. }
  318. let knownHosts = '';
  319. if (userKnownHosts) {
  320. knownHosts += `# Begin from ${userKnownHostsPath}\n${userKnownHosts}\n# End from ${userKnownHostsPath}\n`;
  321. }
  322. if (this.settings.sshKnownHosts) {
  323. knownHosts += `# Begin from input known hosts\n${this.settings.sshKnownHosts}\n# end from input known hosts\n`;
  324. }
  325. 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`;
  326. this.sshKnownHostsPath = path.join(runnerTemp, `${uniqueId}_known_hosts`);
  327. stateHelper.setSshKnownHostsPath(this.sshKnownHostsPath);
  328. yield fs.promises.writeFile(this.sshKnownHostsPath, knownHosts);
  329. // Configure GIT_SSH_COMMAND
  330. const sshPath = yield io.which('ssh', true);
  331. this.sshCommand = `"${sshPath}" -i "$RUNNER_TEMP/${path.basename(this.sshKeyPath)}"`;
  332. if (this.settings.sshStrict) {
  333. this.sshCommand += ' -o StrictHostKeyChecking=yes -o CheckHostIP=no';
  334. }
  335. this.sshCommand += ` -o "UserKnownHostsFile=$RUNNER_TEMP/${path.basename(this.sshKnownHostsPath)}"`;
  336. core.info(`Temporarily overriding GIT_SSH_COMMAND=${this.sshCommand}`);
  337. this.git.setEnvironmentVariable('GIT_SSH_COMMAND', this.sshCommand);
  338. // Configure core.sshCommand
  339. if (this.settings.persistCredentials) {
  340. yield this.git.config(SSH_COMMAND_KEY, this.sshCommand);
  341. }
  342. });
  343. }
  344. configureToken(configPath, globalConfig) {
  345. return __awaiter(this, void 0, void 0, function* () {
  346. // Validate args
  347. assert.ok((configPath && globalConfig) || (!configPath && !globalConfig), 'Unexpected configureToken parameter combinations');
  348. // Default config path
  349. if (!configPath && !globalConfig) {
  350. configPath = path.join(this.git.getWorkingDirectory(), '.git', 'config');
  351. }
  352. // Configure a placeholder value. This approach avoids the credential being captured
  353. // by process creation audit events, which are commonly logged. For more information,
  354. // refer to https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing
  355. yield this.git.config(this.tokenConfigKey, this.tokenPlaceholderConfigValue, globalConfig);
  356. // Replace the placeholder
  357. yield this.replaceTokenPlaceholder(configPath || '');
  358. });
  359. }
  360. replaceTokenPlaceholder(configPath) {
  361. return __awaiter(this, void 0, void 0, function* () {
  362. assert.ok(configPath, 'configPath is not defined');
  363. let content = (yield fs.promises.readFile(configPath)).toString();
  364. const placeholderIndex = content.indexOf(this.tokenPlaceholderConfigValue);
  365. if (placeholderIndex < 0 ||
  366. placeholderIndex != content.lastIndexOf(this.tokenPlaceholderConfigValue)) {
  367. throw new Error(`Unable to replace auth placeholder in ${configPath}`);
  368. }
  369. assert.ok(this.tokenConfigValue, 'tokenConfigValue is not defined');
  370. content = content.replace(this.tokenPlaceholderConfigValue, this.tokenConfigValue);
  371. yield fs.promises.writeFile(configPath, content);
  372. });
  373. }
  374. removeSsh() {
  375. var _a, _b;
  376. return __awaiter(this, void 0, void 0, function* () {
  377. // SSH key
  378. const keyPath = this.sshKeyPath || stateHelper.SshKeyPath;
  379. if (keyPath) {
  380. try {
  381. yield io.rmRF(keyPath);
  382. }
  383. catch (err) {
  384. core.debug(`${(_b = (_a = err) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : err}`);
  385. core.warning(`Failed to remove SSH key '${keyPath}'`);
  386. }
  387. }
  388. // SSH known hosts
  389. const knownHostsPath = this.sshKnownHostsPath || stateHelper.SshKnownHostsPath;
  390. if (knownHostsPath) {
  391. try {
  392. yield io.rmRF(knownHostsPath);
  393. }
  394. catch (_c) {
  395. // Intentionally empty
  396. }
  397. }
  398. // SSH command
  399. yield this.removeGitConfig(SSH_COMMAND_KEY);
  400. });
  401. }
  402. removeToken() {
  403. return __awaiter(this, void 0, void 0, function* () {
  404. // HTTP extra header
  405. yield this.removeGitConfig(this.tokenConfigKey);
  406. });
  407. }
  408. removeGitConfig(configKey, submoduleOnly = false) {
  409. return __awaiter(this, void 0, void 0, function* () {
  410. if (!submoduleOnly) {
  411. if ((yield this.git.configExists(configKey)) &&
  412. !(yield this.git.tryConfigUnset(configKey))) {
  413. // Load the config contents
  414. core.warning(`Failed to remove '${configKey}' from the git config`);
  415. }
  416. }
  417. const pattern = regexpHelper.escape(configKey);
  418. yield this.git.submoduleForeach(
  419. // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
  420. `sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`, true);
  421. });
  422. }
  423. }
  424. /***/ }),
  425. /***/ 738:
  426. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  427. "use strict";
  428. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  429. if (k2 === undefined) k2 = k;
  430. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  431. }) : (function(o, m, k, k2) {
  432. if (k2 === undefined) k2 = k;
  433. o[k2] = m[k];
  434. }));
  435. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  436. Object.defineProperty(o, "default", { enumerable: true, value: v });
  437. }) : function(o, v) {
  438. o["default"] = v;
  439. });
  440. var __importStar = (this && this.__importStar) || function (mod) {
  441. if (mod && mod.__esModule) return mod;
  442. var result = {};
  443. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  444. __setModuleDefault(result, mod);
  445. return result;
  446. };
  447. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  448. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  449. return new (P || (P = Promise))(function (resolve, reject) {
  450. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  451. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  452. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  453. step((generator = generator.apply(thisArg, _arguments || [])).next());
  454. });
  455. };
  456. Object.defineProperty(exports, "__esModule", ({ value: true }));
  457. exports.createCommandManager = exports.MinimumGitVersion = void 0;
  458. const core = __importStar(__nccwpck_require__(2186));
  459. const exec = __importStar(__nccwpck_require__(1514));
  460. const fs = __importStar(__nccwpck_require__(7147));
  461. const fshelper = __importStar(__nccwpck_require__(7219));
  462. const io = __importStar(__nccwpck_require__(7436));
  463. const path = __importStar(__nccwpck_require__(1017));
  464. const refHelper = __importStar(__nccwpck_require__(8601));
  465. const regexpHelper = __importStar(__nccwpck_require__(3120));
  466. const retryHelper = __importStar(__nccwpck_require__(2155));
  467. const git_version_1 = __nccwpck_require__(3142);
  468. // Auth header not supported before 2.9
  469. // Wire protocol v2 not supported before 2.18
  470. exports.MinimumGitVersion = new git_version_1.GitVersion('2.18');
  471. function createCommandManager(workingDirectory, lfs, doSparseCheckout) {
  472. return __awaiter(this, void 0, void 0, function* () {
  473. return yield GitCommandManager.createCommandManager(workingDirectory, lfs, doSparseCheckout);
  474. });
  475. }
  476. exports.createCommandManager = createCommandManager;
  477. class GitCommandManager {
  478. // Private constructor; use createCommandManager()
  479. constructor() {
  480. this.gitEnv = {
  481. GIT_TERMINAL_PROMPT: '0',
  482. GCM_INTERACTIVE: 'Never' // Disable prompting for git credential manager
  483. };
  484. this.gitPath = '';
  485. this.lfs = false;
  486. this.doSparseCheckout = false;
  487. this.workingDirectory = '';
  488. }
  489. branchDelete(remote, branch) {
  490. return __awaiter(this, void 0, void 0, function* () {
  491. const args = ['branch', '--delete', '--force'];
  492. if (remote) {
  493. args.push('--remote');
  494. }
  495. args.push(branch);
  496. yield this.execGit(args);
  497. });
  498. }
  499. branchExists(remote, pattern) {
  500. return __awaiter(this, void 0, void 0, function* () {
  501. const args = ['branch', '--list'];
  502. if (remote) {
  503. args.push('--remote');
  504. }
  505. args.push(pattern);
  506. const output = yield this.execGit(args);
  507. return !!output.stdout.trim();
  508. });
  509. }
  510. branchList(remote) {
  511. return __awaiter(this, void 0, void 0, function* () {
  512. const result = [];
  513. // Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
  514. // "branch --list" is more difficult when in a detached HEAD state.
  515. // TODO(https://github.com/actions/checkout/issues/786): this implementation uses
  516. // "rev-parse --symbolic-full-name" because there is a bug
  517. // in Git 2.18 that causes "rev-parse --symbolic" to output symbolic full names. When
  518. // 2.18 is no longer supported, we can switch back to --symbolic.
  519. const args = ['rev-parse', '--symbolic-full-name'];
  520. if (remote) {
  521. args.push('--remotes=origin');
  522. }
  523. else {
  524. args.push('--branches');
  525. }
  526. const stderr = [];
  527. const errline = [];
  528. const stdout = [];
  529. const stdline = [];
  530. const listeners = {
  531. stderr: (data) => {
  532. stderr.push(data.toString());
  533. },
  534. errline: (data) => {
  535. errline.push(data.toString());
  536. },
  537. stdout: (data) => {
  538. stdout.push(data.toString());
  539. },
  540. stdline: (data) => {
  541. stdline.push(data.toString());
  542. }
  543. };
  544. // Suppress the output in order to avoid flooding annotations with innocuous errors.
  545. yield this.execGit(args, false, true, listeners);
  546. core.debug(`stderr callback is: ${stderr}`);
  547. core.debug(`errline callback is: ${errline}`);
  548. core.debug(`stdout callback is: ${stdout}`);
  549. core.debug(`stdline callback is: ${stdline}`);
  550. for (let branch of stdline) {
  551. branch = branch.trim();
  552. if (!branch) {
  553. continue;
  554. }
  555. if (branch.startsWith('refs/heads/')) {
  556. branch = branch.substring('refs/heads/'.length);
  557. }
  558. else if (branch.startsWith('refs/remotes/')) {
  559. branch = branch.substring('refs/remotes/'.length);
  560. }
  561. result.push(branch);
  562. }
  563. return result;
  564. });
  565. }
  566. sparseCheckout(sparseCheckout) {
  567. return __awaiter(this, void 0, void 0, function* () {
  568. yield this.execGit(['sparse-checkout', 'set', ...sparseCheckout]);
  569. });
  570. }
  571. sparseCheckoutNonConeMode(sparseCheckout) {
  572. return __awaiter(this, void 0, void 0, function* () {
  573. yield this.execGit(['config', 'core.sparseCheckout', 'true']);
  574. const output = yield this.execGit([
  575. 'rev-parse',
  576. '--git-path',
  577. 'info/sparse-checkout'
  578. ]);
  579. const sparseCheckoutPath = path.join(this.workingDirectory, output.stdout.trimRight());
  580. yield fs.promises.appendFile(sparseCheckoutPath, `\n${sparseCheckout.join('\n')}\n`);
  581. });
  582. }
  583. checkout(ref, startPoint) {
  584. return __awaiter(this, void 0, void 0, function* () {
  585. const args = ['checkout', '--progress', '--force'];
  586. if (startPoint) {
  587. args.push('-B', ref, startPoint);
  588. }
  589. else {
  590. args.push(ref);
  591. }
  592. yield this.execGit(args);
  593. });
  594. }
  595. checkoutDetach() {
  596. return __awaiter(this, void 0, void 0, function* () {
  597. const args = ['checkout', '--detach'];
  598. yield this.execGit(args);
  599. });
  600. }
  601. config(configKey, configValue, globalConfig, add) {
  602. return __awaiter(this, void 0, void 0, function* () {
  603. const args = ['config', globalConfig ? '--global' : '--local'];
  604. if (add) {
  605. args.push('--add');
  606. }
  607. args.push(...[configKey, configValue]);
  608. yield this.execGit(args);
  609. });
  610. }
  611. configExists(configKey, globalConfig) {
  612. return __awaiter(this, void 0, void 0, function* () {
  613. const pattern = regexpHelper.escape(configKey);
  614. const output = yield this.execGit([
  615. 'config',
  616. globalConfig ? '--global' : '--local',
  617. '--name-only',
  618. '--get-regexp',
  619. pattern
  620. ], true);
  621. return output.exitCode === 0;
  622. });
  623. }
  624. fetch(refSpec, options) {
  625. return __awaiter(this, void 0, void 0, function* () {
  626. const args = ['-c', 'protocol.version=2', 'fetch'];
  627. if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
  628. args.push('--no-tags');
  629. }
  630. args.push('--prune', '--no-recurse-submodules');
  631. if (options.showProgress) {
  632. args.push('--progress');
  633. }
  634. if (options.filter) {
  635. args.push(`--filter=${options.filter}`);
  636. }
  637. if (options.fetchDepth && options.fetchDepth > 0) {
  638. args.push(`--depth=${options.fetchDepth}`);
  639. }
  640. else if (fshelper.fileExistsSync(path.join(this.workingDirectory, '.git', 'shallow'))) {
  641. args.push('--unshallow');
  642. }
  643. args.push('origin');
  644. for (const arg of refSpec) {
  645. args.push(arg);
  646. }
  647. const that = this;
  648. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  649. yield that.execGit(args);
  650. }));
  651. });
  652. }
  653. getDefaultBranch(repositoryUrl) {
  654. return __awaiter(this, void 0, void 0, function* () {
  655. let output;
  656. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  657. output = yield this.execGit([
  658. 'ls-remote',
  659. '--quiet',
  660. '--exit-code',
  661. '--symref',
  662. repositoryUrl,
  663. 'HEAD'
  664. ]);
  665. }));
  666. if (output) {
  667. // Satisfy compiler, will always be set
  668. for (let line of output.stdout.trim().split('\n')) {
  669. line = line.trim();
  670. if (line.startsWith('ref:') || line.endsWith('HEAD')) {
  671. return line
  672. .substr('ref:'.length, line.length - 'ref:'.length - 'HEAD'.length)
  673. .trim();
  674. }
  675. }
  676. }
  677. throw new Error('Unexpected output when retrieving default branch');
  678. });
  679. }
  680. getWorkingDirectory() {
  681. return this.workingDirectory;
  682. }
  683. init() {
  684. return __awaiter(this, void 0, void 0, function* () {
  685. yield this.execGit(['init', this.workingDirectory]);
  686. });
  687. }
  688. isDetached() {
  689. return __awaiter(this, void 0, void 0, function* () {
  690. // Note, "branch --show-current" would be simpler but isn't available until Git 2.22
  691. const output = yield this.execGit(['rev-parse', '--symbolic-full-name', '--verify', '--quiet', 'HEAD'], true);
  692. return !output.stdout.trim().startsWith('refs/heads/');
  693. });
  694. }
  695. lfsFetch(ref) {
  696. return __awaiter(this, void 0, void 0, function* () {
  697. const args = ['lfs', 'fetch', 'origin', ref];
  698. const that = this;
  699. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  700. yield that.execGit(args);
  701. }));
  702. });
  703. }
  704. lfsInstall() {
  705. return __awaiter(this, void 0, void 0, function* () {
  706. yield this.execGit(['lfs', 'install', '--local']);
  707. });
  708. }
  709. log1(format) {
  710. return __awaiter(this, void 0, void 0, function* () {
  711. const args = format ? ['log', '-1', format] : ['log', '-1'];
  712. const silent = format ? false : true;
  713. const output = yield this.execGit(args, false, silent);
  714. return output.stdout;
  715. });
  716. }
  717. remoteAdd(remoteName, remoteUrl) {
  718. return __awaiter(this, void 0, void 0, function* () {
  719. yield this.execGit(['remote', 'add', remoteName, remoteUrl]);
  720. });
  721. }
  722. removeEnvironmentVariable(name) {
  723. delete this.gitEnv[name];
  724. }
  725. /**
  726. * Resolves a ref to a SHA. For a branch or lightweight tag, the commit SHA is returned.
  727. * For an annotated tag, the tag SHA is returned.
  728. * @param {string} ref For example: 'refs/heads/main' or '/refs/tags/v1'
  729. * @returns {Promise<string>}
  730. */
  731. revParse(ref) {
  732. return __awaiter(this, void 0, void 0, function* () {
  733. const output = yield this.execGit(['rev-parse', ref]);
  734. return output.stdout.trim();
  735. });
  736. }
  737. setEnvironmentVariable(name, value) {
  738. this.gitEnv[name] = value;
  739. }
  740. shaExists(sha) {
  741. return __awaiter(this, void 0, void 0, function* () {
  742. const args = ['rev-parse', '--verify', '--quiet', `${sha}^{object}`];
  743. const output = yield this.execGit(args, true);
  744. return output.exitCode === 0;
  745. });
  746. }
  747. submoduleForeach(command, recursive) {
  748. return __awaiter(this, void 0, void 0, function* () {
  749. const args = ['submodule', 'foreach'];
  750. if (recursive) {
  751. args.push('--recursive');
  752. }
  753. args.push(command);
  754. const output = yield this.execGit(args);
  755. return output.stdout;
  756. });
  757. }
  758. submoduleSync(recursive) {
  759. return __awaiter(this, void 0, void 0, function* () {
  760. const args = ['submodule', 'sync'];
  761. if (recursive) {
  762. args.push('--recursive');
  763. }
  764. yield this.execGit(args);
  765. });
  766. }
  767. submoduleUpdate(fetchDepth, recursive) {
  768. return __awaiter(this, void 0, void 0, function* () {
  769. const args = ['-c', 'protocol.version=2'];
  770. args.push('submodule', 'update', '--init', '--force');
  771. if (fetchDepth > 0) {
  772. args.push(`--depth=${fetchDepth}`);
  773. }
  774. if (recursive) {
  775. args.push('--recursive');
  776. }
  777. yield this.execGit(args);
  778. });
  779. }
  780. submoduleStatus() {
  781. return __awaiter(this, void 0, void 0, function* () {
  782. const output = yield this.execGit(['submodule', 'status'], true);
  783. core.debug(output.stdout);
  784. return output.exitCode === 0;
  785. });
  786. }
  787. tagExists(pattern) {
  788. return __awaiter(this, void 0, void 0, function* () {
  789. const output = yield this.execGit(['tag', '--list', pattern]);
  790. return !!output.stdout.trim();
  791. });
  792. }
  793. tryClean() {
  794. return __awaiter(this, void 0, void 0, function* () {
  795. const output = yield this.execGit(['clean', '-ffdx'], true);
  796. return output.exitCode === 0;
  797. });
  798. }
  799. tryConfigUnset(configKey, globalConfig) {
  800. return __awaiter(this, void 0, void 0, function* () {
  801. const output = yield this.execGit([
  802. 'config',
  803. globalConfig ? '--global' : '--local',
  804. '--unset-all',
  805. configKey
  806. ], true);
  807. return output.exitCode === 0;
  808. });
  809. }
  810. tryDisableAutomaticGarbageCollection() {
  811. return __awaiter(this, void 0, void 0, function* () {
  812. const output = yield this.execGit(['config', '--local', 'gc.auto', '0'], true);
  813. return output.exitCode === 0;
  814. });
  815. }
  816. tryGetFetchUrl() {
  817. return __awaiter(this, void 0, void 0, function* () {
  818. const output = yield this.execGit(['config', '--local', '--get', 'remote.origin.url'], true);
  819. if (output.exitCode !== 0) {
  820. return '';
  821. }
  822. const stdout = output.stdout.trim();
  823. if (stdout.includes('\n')) {
  824. return '';
  825. }
  826. return stdout;
  827. });
  828. }
  829. tryReset() {
  830. return __awaiter(this, void 0, void 0, function* () {
  831. const output = yield this.execGit(['reset', '--hard', 'HEAD'], true);
  832. return output.exitCode === 0;
  833. });
  834. }
  835. static createCommandManager(workingDirectory, lfs, doSparseCheckout) {
  836. return __awaiter(this, void 0, void 0, function* () {
  837. const result = new GitCommandManager();
  838. yield result.initializeCommandManager(workingDirectory, lfs, doSparseCheckout);
  839. return result;
  840. });
  841. }
  842. execGit(args, allowAllExitCodes = false, silent = false, customListeners = {}) {
  843. return __awaiter(this, void 0, void 0, function* () {
  844. fshelper.directoryExistsSync(this.workingDirectory, true);
  845. const result = new GitOutput();
  846. const env = {};
  847. for (const key of Object.keys(process.env)) {
  848. env[key] = process.env[key];
  849. }
  850. for (const key of Object.keys(this.gitEnv)) {
  851. env[key] = this.gitEnv[key];
  852. }
  853. const defaultListener = {
  854. stdout: (data) => {
  855. stdout.push(data.toString());
  856. }
  857. };
  858. const mergedListeners = Object.assign(Object.assign({}, defaultListener), customListeners);
  859. const stdout = [];
  860. const options = {
  861. cwd: this.workingDirectory,
  862. env,
  863. silent,
  864. ignoreReturnCode: allowAllExitCodes,
  865. listeners: mergedListeners
  866. };
  867. result.exitCode = yield exec.exec(`"${this.gitPath}"`, args, options);
  868. result.stdout = stdout.join('');
  869. core.debug(result.exitCode.toString());
  870. core.debug(result.stdout);
  871. return result;
  872. });
  873. }
  874. initializeCommandManager(workingDirectory, lfs, doSparseCheckout) {
  875. return __awaiter(this, void 0, void 0, function* () {
  876. this.workingDirectory = workingDirectory;
  877. // Git-lfs will try to pull down assets if any of the local/user/system setting exist.
  878. // If the user didn't enable `LFS` in their pipeline definition, disable LFS fetch/checkout.
  879. this.lfs = lfs;
  880. if (!this.lfs) {
  881. this.gitEnv['GIT_LFS_SKIP_SMUDGE'] = '1';
  882. }
  883. this.gitPath = yield io.which('git', true);
  884. // Git version
  885. core.debug('Getting git version');
  886. let gitVersion = new git_version_1.GitVersion();
  887. let gitOutput = yield this.execGit(['version']);
  888. let stdout = gitOutput.stdout.trim();
  889. if (!stdout.includes('\n')) {
  890. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  891. if (match) {
  892. gitVersion = new git_version_1.GitVersion(match[0]);
  893. }
  894. }
  895. if (!gitVersion.isValid()) {
  896. throw new Error('Unable to determine git version');
  897. }
  898. // Minimum git version
  899. if (!gitVersion.checkMinimum(exports.MinimumGitVersion)) {
  900. throw new Error(`Minimum required git version is ${exports.MinimumGitVersion}. Your git ('${this.gitPath}') is ${gitVersion}`);
  901. }
  902. if (this.lfs) {
  903. // Git-lfs version
  904. core.debug('Getting git-lfs version');
  905. let gitLfsVersion = new git_version_1.GitVersion();
  906. const gitLfsPath = yield io.which('git-lfs', true);
  907. gitOutput = yield this.execGit(['lfs', 'version']);
  908. stdout = gitOutput.stdout.trim();
  909. if (!stdout.includes('\n')) {
  910. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  911. if (match) {
  912. gitLfsVersion = new git_version_1.GitVersion(match[0]);
  913. }
  914. }
  915. if (!gitLfsVersion.isValid()) {
  916. throw new Error('Unable to determine git-lfs version');
  917. }
  918. // Minimum git-lfs version
  919. // Note:
  920. // - Auth header not supported before 2.1
  921. const minimumGitLfsVersion = new git_version_1.GitVersion('2.1');
  922. if (!gitLfsVersion.checkMinimum(minimumGitLfsVersion)) {
  923. throw new Error(`Minimum required git-lfs version is ${minimumGitLfsVersion}. Your git-lfs ('${gitLfsPath}') is ${gitLfsVersion}`);
  924. }
  925. }
  926. this.doSparseCheckout = doSparseCheckout;
  927. if (this.doSparseCheckout) {
  928. // The `git sparse-checkout` command was introduced in Git v2.25.0
  929. const minimumGitSparseCheckoutVersion = new git_version_1.GitVersion('2.25');
  930. if (!gitVersion.checkMinimum(minimumGitSparseCheckoutVersion)) {
  931. throw new Error(`Minimum Git version required for sparse checkout is ${minimumGitSparseCheckoutVersion}. Your git ('${this.gitPath}') is ${gitVersion}`);
  932. }
  933. }
  934. // Set the user agent
  935. const gitHttpUserAgent = `git/${gitVersion} (github-actions-checkout)`;
  936. core.debug(`Set git useragent to: ${gitHttpUserAgent}`);
  937. this.gitEnv['GIT_HTTP_USER_AGENT'] = gitHttpUserAgent;
  938. });
  939. }
  940. }
  941. class GitOutput {
  942. constructor() {
  943. this.stdout = '';
  944. this.exitCode = 0;
  945. }
  946. }
  947. /***/ }),
  948. /***/ 8609:
  949. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  950. "use strict";
  951. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  952. if (k2 === undefined) k2 = k;
  953. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  954. }) : (function(o, m, k, k2) {
  955. if (k2 === undefined) k2 = k;
  956. o[k2] = m[k];
  957. }));
  958. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  959. Object.defineProperty(o, "default", { enumerable: true, value: v });
  960. }) : function(o, v) {
  961. o["default"] = v;
  962. });
  963. var __importStar = (this && this.__importStar) || function (mod) {
  964. if (mod && mod.__esModule) return mod;
  965. var result = {};
  966. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  967. __setModuleDefault(result, mod);
  968. return result;
  969. };
  970. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  971. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  972. return new (P || (P = Promise))(function (resolve, reject) {
  973. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  974. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  975. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  976. step((generator = generator.apply(thisArg, _arguments || [])).next());
  977. });
  978. };
  979. Object.defineProperty(exports, "__esModule", ({ value: true }));
  980. exports.prepareExistingDirectory = void 0;
  981. const assert = __importStar(__nccwpck_require__(9491));
  982. const core = __importStar(__nccwpck_require__(2186));
  983. const fs = __importStar(__nccwpck_require__(7147));
  984. const fsHelper = __importStar(__nccwpck_require__(7219));
  985. const io = __importStar(__nccwpck_require__(7436));
  986. const path = __importStar(__nccwpck_require__(1017));
  987. function prepareExistingDirectory(git, repositoryPath, repositoryUrl, clean, ref) {
  988. var _a, _b;
  989. return __awaiter(this, void 0, void 0, function* () {
  990. assert.ok(repositoryPath, 'Expected repositoryPath to be defined');
  991. assert.ok(repositoryUrl, 'Expected repositoryUrl to be defined');
  992. // Indicates whether to delete the directory contents
  993. let remove = false;
  994. // Check whether using git or REST API
  995. if (!git) {
  996. remove = true;
  997. }
  998. // Fetch URL does not match
  999. else if (!fsHelper.directoryExistsSync(path.join(repositoryPath, '.git')) ||
  1000. repositoryUrl !== (yield git.tryGetFetchUrl())) {
  1001. remove = true;
  1002. }
  1003. else {
  1004. // Delete any index.lock and shallow.lock left by a previously canceled run or crashed git process
  1005. const lockPaths = [
  1006. path.join(repositoryPath, '.git', 'index.lock'),
  1007. path.join(repositoryPath, '.git', 'shallow.lock')
  1008. ];
  1009. for (const lockPath of lockPaths) {
  1010. try {
  1011. yield io.rmRF(lockPath);
  1012. }
  1013. catch (error) {
  1014. core.debug(`Unable to delete '${lockPath}'. ${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  1015. }
  1016. }
  1017. try {
  1018. core.startGroup('Removing previously created refs, to avoid conflicts');
  1019. // Checkout detached HEAD
  1020. if (!(yield git.isDetached())) {
  1021. yield git.checkoutDetach();
  1022. }
  1023. // Remove all refs/heads/*
  1024. let branches = yield git.branchList(false);
  1025. for (const branch of branches) {
  1026. yield git.branchDelete(false, branch);
  1027. }
  1028. // Remove any conflicting refs/remotes/origin/*
  1029. // Example 1: Consider ref is refs/heads/foo and previously fetched refs/remotes/origin/foo/bar
  1030. // Example 2: Consider ref is refs/heads/foo/bar and previously fetched refs/remotes/origin/foo
  1031. if (ref) {
  1032. ref = ref.startsWith('refs/') ? ref : `refs/heads/${ref}`;
  1033. if (ref.startsWith('refs/heads/')) {
  1034. const upperName1 = ref.toUpperCase().substr('REFS/HEADS/'.length);
  1035. const upperName1Slash = `${upperName1}/`;
  1036. branches = yield git.branchList(true);
  1037. for (const branch of branches) {
  1038. const upperName2 = branch.substr('origin/'.length).toUpperCase();
  1039. const upperName2Slash = `${upperName2}/`;
  1040. if (upperName1.startsWith(upperName2Slash) ||
  1041. upperName2.startsWith(upperName1Slash)) {
  1042. yield git.branchDelete(true, branch);
  1043. }
  1044. }
  1045. }
  1046. }
  1047. core.endGroup();
  1048. // Check for submodules and delete any existing files if submodules are present
  1049. if (!(yield git.submoduleStatus())) {
  1050. remove = true;
  1051. core.info('Bad Submodules found, removing existing files');
  1052. }
  1053. // Clean
  1054. if (clean) {
  1055. core.startGroup('Cleaning the repository');
  1056. if (!(yield git.tryClean())) {
  1057. 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}'.`);
  1058. remove = true;
  1059. }
  1060. else if (!(yield git.tryReset())) {
  1061. remove = true;
  1062. }
  1063. core.endGroup();
  1064. if (remove) {
  1065. core.warning(`Unable to clean or reset the repository. The repository will be recreated instead.`);
  1066. }
  1067. }
  1068. }
  1069. catch (error) {
  1070. core.warning(`Unable to prepare the existing repository. The repository will be recreated instead.`);
  1071. remove = true;
  1072. }
  1073. }
  1074. if (remove) {
  1075. // Delete the contents of the directory. Don't delete the directory itself
  1076. // since it might be the current working directory.
  1077. core.info(`Deleting the contents of '${repositoryPath}'`);
  1078. for (const file of yield fs.promises.readdir(repositoryPath)) {
  1079. yield io.rmRF(path.join(repositoryPath, file));
  1080. }
  1081. }
  1082. });
  1083. }
  1084. exports.prepareExistingDirectory = prepareExistingDirectory;
  1085. /***/ }),
  1086. /***/ 9210:
  1087. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1088. "use strict";
  1089. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1090. if (k2 === undefined) k2 = k;
  1091. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1092. }) : (function(o, m, k, k2) {
  1093. if (k2 === undefined) k2 = k;
  1094. o[k2] = m[k];
  1095. }));
  1096. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1097. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1098. }) : function(o, v) {
  1099. o["default"] = v;
  1100. });
  1101. var __importStar = (this && this.__importStar) || function (mod) {
  1102. if (mod && mod.__esModule) return mod;
  1103. var result = {};
  1104. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1105. __setModuleDefault(result, mod);
  1106. return result;
  1107. };
  1108. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1109. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1110. return new (P || (P = Promise))(function (resolve, reject) {
  1111. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1112. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1113. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1114. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1115. });
  1116. };
  1117. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1118. exports.cleanup = exports.getSource = void 0;
  1119. const core = __importStar(__nccwpck_require__(2186));
  1120. const fsHelper = __importStar(__nccwpck_require__(7219));
  1121. const gitAuthHelper = __importStar(__nccwpck_require__(2565));
  1122. const gitCommandManager = __importStar(__nccwpck_require__(738));
  1123. const gitDirectoryHelper = __importStar(__nccwpck_require__(8609));
  1124. const githubApiHelper = __importStar(__nccwpck_require__(138));
  1125. const io = __importStar(__nccwpck_require__(7436));
  1126. const path = __importStar(__nccwpck_require__(1017));
  1127. const refHelper = __importStar(__nccwpck_require__(8601));
  1128. const stateHelper = __importStar(__nccwpck_require__(8647));
  1129. const urlHelper = __importStar(__nccwpck_require__(9437));
  1130. function getSource(settings) {
  1131. return __awaiter(this, void 0, void 0, function* () {
  1132. // Repository URL
  1133. core.info(`Syncing repository: ${settings.repositoryOwner}/${settings.repositoryName}`);
  1134. const repositoryUrl = urlHelper.getFetchUrl(settings);
  1135. // Remove conflicting file path
  1136. if (fsHelper.fileExistsSync(settings.repositoryPath)) {
  1137. yield io.rmRF(settings.repositoryPath);
  1138. }
  1139. // Create directory
  1140. let isExisting = true;
  1141. if (!fsHelper.directoryExistsSync(settings.repositoryPath)) {
  1142. isExisting = false;
  1143. yield io.mkdirP(settings.repositoryPath);
  1144. }
  1145. // Git command manager
  1146. core.startGroup('Getting Git version info');
  1147. const git = yield getGitCommandManager(settings);
  1148. core.endGroup();
  1149. let authHelper = null;
  1150. try {
  1151. if (git) {
  1152. authHelper = gitAuthHelper.createAuthHelper(git, settings);
  1153. if (settings.setSafeDirectory) {
  1154. // 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
  1155. // Otherwise all git commands we run in a container fail
  1156. yield authHelper.configureTempGlobalConfig();
  1157. core.info(`Adding repository directory to the temporary git global config as a safe directory`);
  1158. yield git
  1159. .config('safe.directory', settings.repositoryPath, true, true)
  1160. .catch(error => {
  1161. core.info(`Failed to initialize safe directory with error: ${error}`);
  1162. });
  1163. stateHelper.setSafeDirectory();
  1164. }
  1165. }
  1166. // Prepare existing directory, otherwise recreate
  1167. if (isExisting) {
  1168. yield gitDirectoryHelper.prepareExistingDirectory(git, settings.repositoryPath, repositoryUrl, settings.clean, settings.ref);
  1169. }
  1170. if (!git) {
  1171. // Downloading using REST API
  1172. core.info(`The repository will be downloaded using the GitHub REST API`);
  1173. core.info(`To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH`);
  1174. if (settings.submodules) {
  1175. 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.`);
  1176. }
  1177. else if (settings.sshKey) {
  1178. 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.`);
  1179. }
  1180. yield githubApiHelper.downloadRepository(settings.authToken, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.repositoryPath, settings.githubServerUrl);
  1181. return;
  1182. }
  1183. // Save state for POST action
  1184. stateHelper.setRepositoryPath(settings.repositoryPath);
  1185. // Initialize the repository
  1186. if (!fsHelper.directoryExistsSync(path.join(settings.repositoryPath, '.git'))) {
  1187. core.startGroup('Initializing the repository');
  1188. yield git.init();
  1189. yield git.remoteAdd('origin', repositoryUrl);
  1190. core.endGroup();
  1191. }
  1192. // Disable automatic garbage collection
  1193. core.startGroup('Disabling automatic garbage collection');
  1194. if (!(yield git.tryDisableAutomaticGarbageCollection())) {
  1195. core.warning(`Unable to turn off git automatic garbage collection. The git fetch operation may trigger garbage collection and cause a delay.`);
  1196. }
  1197. core.endGroup();
  1198. // If we didn't initialize it above, do it now
  1199. if (!authHelper) {
  1200. authHelper = gitAuthHelper.createAuthHelper(git, settings);
  1201. }
  1202. // Configure auth
  1203. core.startGroup('Setting up auth');
  1204. yield authHelper.configureAuth();
  1205. core.endGroup();
  1206. // Determine the default branch
  1207. if (!settings.ref && !settings.commit) {
  1208. core.startGroup('Determining the default branch');
  1209. if (settings.sshKey) {
  1210. settings.ref = yield git.getDefaultBranch(repositoryUrl);
  1211. }
  1212. else {
  1213. settings.ref = yield githubApiHelper.getDefaultBranch(settings.authToken, settings.repositoryOwner, settings.repositoryName, settings.githubServerUrl);
  1214. }
  1215. core.endGroup();
  1216. }
  1217. // LFS install
  1218. if (settings.lfs) {
  1219. yield git.lfsInstall();
  1220. }
  1221. // Fetch
  1222. core.startGroup('Fetching the repository');
  1223. const fetchOptions = {};
  1224. if (settings.filter) {
  1225. fetchOptions.filter = settings.filter;
  1226. }
  1227. else if (settings.sparseCheckout) {
  1228. fetchOptions.filter = 'blob:none';
  1229. }
  1230. if (settings.fetchDepth <= 0) {
  1231. // Fetch all branches and tags
  1232. let refSpec = refHelper.getRefSpecForAllHistory(settings.ref, settings.commit);
  1233. yield git.fetch(refSpec, fetchOptions);
  1234. // When all history is fetched, the ref we're interested in may have moved to a different
  1235. // commit (push or force push). If so, fetch again with a targeted refspec.
  1236. if (!(yield refHelper.testRef(git, settings.ref, settings.commit))) {
  1237. refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  1238. yield git.fetch(refSpec, fetchOptions);
  1239. }
  1240. }
  1241. else {
  1242. fetchOptions.fetchDepth = settings.fetchDepth;
  1243. fetchOptions.fetchTags = settings.fetchTags;
  1244. const refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  1245. yield git.fetch(refSpec, fetchOptions);
  1246. }
  1247. core.endGroup();
  1248. // Checkout info
  1249. core.startGroup('Determining the checkout info');
  1250. const checkoutInfo = yield refHelper.getCheckoutInfo(git, settings.ref, settings.commit);
  1251. core.endGroup();
  1252. // LFS fetch
  1253. // Explicit lfs-fetch to avoid slow checkout (fetches one lfs object at a time).
  1254. // Explicit lfs fetch will fetch lfs objects in parallel.
  1255. // For sparse checkouts, let `checkout` fetch the needed objects lazily.
  1256. if (settings.lfs && !settings.sparseCheckout) {
  1257. core.startGroup('Fetching LFS objects');
  1258. yield git.lfsFetch(checkoutInfo.startPoint || checkoutInfo.ref);
  1259. core.endGroup();
  1260. }
  1261. // Sparse checkout
  1262. if (settings.sparseCheckout) {
  1263. core.startGroup('Setting up sparse checkout');
  1264. if (settings.sparseCheckoutConeMode) {
  1265. yield git.sparseCheckout(settings.sparseCheckout);
  1266. }
  1267. else {
  1268. yield git.sparseCheckoutNonConeMode(settings.sparseCheckout);
  1269. }
  1270. core.endGroup();
  1271. }
  1272. // Checkout
  1273. core.startGroup('Checking out the ref');
  1274. yield git.checkout(checkoutInfo.ref, checkoutInfo.startPoint);
  1275. core.endGroup();
  1276. // Submodules
  1277. if (settings.submodules) {
  1278. // Temporarily override global config
  1279. core.startGroup('Setting up auth for fetching submodules');
  1280. yield authHelper.configureGlobalAuth();
  1281. core.endGroup();
  1282. // Checkout submodules
  1283. core.startGroup('Fetching submodules');
  1284. yield git.submoduleSync(settings.nestedSubmodules);
  1285. yield git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules);
  1286. yield git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules);
  1287. core.endGroup();
  1288. // Persist credentials
  1289. if (settings.persistCredentials) {
  1290. core.startGroup('Persisting credentials for submodules');
  1291. yield authHelper.configureSubmoduleAuth();
  1292. core.endGroup();
  1293. }
  1294. }
  1295. // Get commit information
  1296. const commitInfo = yield git.log1();
  1297. // Log commit sha
  1298. yield git.log1("--format='%H'");
  1299. // Check for incorrect pull request merge commit
  1300. yield refHelper.checkCommitInfo(settings.authToken, commitInfo, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.githubServerUrl);
  1301. }
  1302. finally {
  1303. // Remove auth
  1304. if (authHelper) {
  1305. if (!settings.persistCredentials) {
  1306. core.startGroup('Removing auth');
  1307. yield authHelper.removeAuth();
  1308. core.endGroup();
  1309. }
  1310. authHelper.removeGlobalConfig();
  1311. }
  1312. }
  1313. });
  1314. }
  1315. exports.getSource = getSource;
  1316. function cleanup(repositoryPath) {
  1317. return __awaiter(this, void 0, void 0, function* () {
  1318. // Repo exists?
  1319. if (!repositoryPath ||
  1320. !fsHelper.fileExistsSync(path.join(repositoryPath, '.git', 'config'))) {
  1321. return;
  1322. }
  1323. let git;
  1324. try {
  1325. git = yield gitCommandManager.createCommandManager(repositoryPath, false, false);
  1326. }
  1327. catch (_a) {
  1328. return;
  1329. }
  1330. // Remove auth
  1331. const authHelper = gitAuthHelper.createAuthHelper(git);
  1332. try {
  1333. if (stateHelper.PostSetSafeDirectory) {
  1334. // 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
  1335. // Otherwise all git commands we run in a container fail
  1336. yield authHelper.configureTempGlobalConfig();
  1337. core.info(`Adding repository directory to the temporary git global config as a safe directory`);
  1338. yield git
  1339. .config('safe.directory', repositoryPath, true, true)
  1340. .catch(error => {
  1341. core.info(`Failed to initialize safe directory with error: ${error}`);
  1342. });
  1343. }
  1344. yield authHelper.removeAuth();
  1345. }
  1346. finally {
  1347. yield authHelper.removeGlobalConfig();
  1348. }
  1349. });
  1350. }
  1351. exports.cleanup = cleanup;
  1352. function getGitCommandManager(settings) {
  1353. return __awaiter(this, void 0, void 0, function* () {
  1354. core.info(`Working directory is '${settings.repositoryPath}'`);
  1355. try {
  1356. return yield gitCommandManager.createCommandManager(settings.repositoryPath, settings.lfs, settings.sparseCheckout != null);
  1357. }
  1358. catch (err) {
  1359. // Git is required for LFS
  1360. if (settings.lfs) {
  1361. throw err;
  1362. }
  1363. // Otherwise fallback to REST API
  1364. return undefined;
  1365. }
  1366. });
  1367. }
  1368. /***/ }),
  1369. /***/ 3142:
  1370. /***/ ((__unused_webpack_module, exports) => {
  1371. "use strict";
  1372. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1373. exports.GitVersion = void 0;
  1374. class GitVersion {
  1375. /**
  1376. * Used for comparing the version of git and git-lfs against the minimum required version
  1377. * @param version the version string, e.g. 1.2 or 1.2.3
  1378. */
  1379. constructor(version) {
  1380. this.major = NaN;
  1381. this.minor = NaN;
  1382. this.patch = NaN;
  1383. if (version) {
  1384. const match = version.match(/^(\d+)\.(\d+)(\.(\d+))?$/);
  1385. if (match) {
  1386. this.major = Number(match[1]);
  1387. this.minor = Number(match[2]);
  1388. if (match[4]) {
  1389. this.patch = Number(match[4]);
  1390. }
  1391. }
  1392. }
  1393. }
  1394. /**
  1395. * Compares the instance against a minimum required version
  1396. * @param minimum Minimum version
  1397. */
  1398. checkMinimum(minimum) {
  1399. if (!minimum.isValid()) {
  1400. throw new Error('Arg minimum is not a valid version');
  1401. }
  1402. // Major is insufficient
  1403. if (this.major < minimum.major) {
  1404. return false;
  1405. }
  1406. // Major is equal
  1407. if (this.major === minimum.major) {
  1408. // Minor is insufficient
  1409. if (this.minor < minimum.minor) {
  1410. return false;
  1411. }
  1412. // Minor is equal
  1413. if (this.minor === minimum.minor) {
  1414. // Patch is insufficient
  1415. if (this.patch && this.patch < (minimum.patch || 0)) {
  1416. return false;
  1417. }
  1418. }
  1419. }
  1420. return true;
  1421. }
  1422. /**
  1423. * Indicates whether the instance was constructed from a valid version string
  1424. */
  1425. isValid() {
  1426. return !isNaN(this.major);
  1427. }
  1428. /**
  1429. * Returns the version as a string, e.g. 1.2 or 1.2.3
  1430. */
  1431. toString() {
  1432. let result = '';
  1433. if (this.isValid()) {
  1434. result = `${this.major}.${this.minor}`;
  1435. if (!isNaN(this.patch)) {
  1436. result += `.${this.patch}`;
  1437. }
  1438. }
  1439. return result;
  1440. }
  1441. }
  1442. exports.GitVersion = GitVersion;
  1443. /***/ }),
  1444. /***/ 138:
  1445. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1446. "use strict";
  1447. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1448. if (k2 === undefined) k2 = k;
  1449. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1450. }) : (function(o, m, k, k2) {
  1451. if (k2 === undefined) k2 = k;
  1452. o[k2] = m[k];
  1453. }));
  1454. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1455. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1456. }) : function(o, v) {
  1457. o["default"] = v;
  1458. });
  1459. var __importStar = (this && this.__importStar) || function (mod) {
  1460. if (mod && mod.__esModule) return mod;
  1461. var result = {};
  1462. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1463. __setModuleDefault(result, mod);
  1464. return result;
  1465. };
  1466. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1467. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1468. return new (P || (P = Promise))(function (resolve, reject) {
  1469. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1470. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1471. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1472. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1473. });
  1474. };
  1475. var __importDefault = (this && this.__importDefault) || function (mod) {
  1476. return (mod && mod.__esModule) ? mod : { "default": mod };
  1477. };
  1478. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1479. exports.getDefaultBranch = exports.downloadRepository = void 0;
  1480. const assert = __importStar(__nccwpck_require__(9491));
  1481. const core = __importStar(__nccwpck_require__(2186));
  1482. const fs = __importStar(__nccwpck_require__(7147));
  1483. const github = __importStar(__nccwpck_require__(5438));
  1484. const io = __importStar(__nccwpck_require__(7436));
  1485. const path = __importStar(__nccwpck_require__(1017));
  1486. const retryHelper = __importStar(__nccwpck_require__(2155));
  1487. const toolCache = __importStar(__nccwpck_require__(7784));
  1488. const v4_1 = __importDefault(__nccwpck_require__(824));
  1489. const url_helper_1 = __nccwpck_require__(9437);
  1490. const IS_WINDOWS = process.platform === 'win32';
  1491. function downloadRepository(authToken, owner, repo, ref, commit, repositoryPath, baseUrl) {
  1492. return __awaiter(this, void 0, void 0, function* () {
  1493. // Determine the default branch
  1494. if (!ref && !commit) {
  1495. core.info('Determining the default branch');
  1496. ref = yield getDefaultBranch(authToken, owner, repo, baseUrl);
  1497. }
  1498. // Download the archive
  1499. let archiveData = yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  1500. core.info('Downloading the archive');
  1501. return yield downloadArchive(authToken, owner, repo, ref, commit, baseUrl);
  1502. }));
  1503. // Write archive to disk
  1504. core.info('Writing archive to disk');
  1505. const uniqueId = (0, v4_1.default)();
  1506. const archivePath = path.join(repositoryPath, `${uniqueId}.tar.gz`);
  1507. yield fs.promises.writeFile(archivePath, archiveData);
  1508. archiveData = Buffer.from(''); // Free memory
  1509. // Extract archive
  1510. core.info('Extracting the archive');
  1511. const extractPath = path.join(repositoryPath, uniqueId);
  1512. yield io.mkdirP(extractPath);
  1513. if (IS_WINDOWS) {
  1514. yield toolCache.extractZip(archivePath, extractPath);
  1515. }
  1516. else {
  1517. yield toolCache.extractTar(archivePath, extractPath);
  1518. }
  1519. yield io.rmRF(archivePath);
  1520. // Determine the path of the repository content. The archive contains
  1521. // a top-level folder and the repository content is inside.
  1522. const archiveFileNames = yield fs.promises.readdir(extractPath);
  1523. assert.ok(archiveFileNames.length == 1, 'Expected exactly one directory inside archive');
  1524. const archiveVersion = archiveFileNames[0]; // The top-level folder name includes the short SHA
  1525. core.info(`Resolved version ${archiveVersion}`);
  1526. const tempRepositoryPath = path.join(extractPath, archiveVersion);
  1527. // Move the files
  1528. for (const fileName of yield fs.promises.readdir(tempRepositoryPath)) {
  1529. const sourcePath = path.join(tempRepositoryPath, fileName);
  1530. const targetPath = path.join(repositoryPath, fileName);
  1531. if (IS_WINDOWS) {
  1532. yield io.cp(sourcePath, targetPath, { recursive: true }); // Copy on Windows (Windows Defender may have a lock)
  1533. }
  1534. else {
  1535. yield io.mv(sourcePath, targetPath);
  1536. }
  1537. }
  1538. yield io.rmRF(extractPath);
  1539. });
  1540. }
  1541. exports.downloadRepository = downloadRepository;
  1542. /**
  1543. * Looks up the default branch name
  1544. */
  1545. function getDefaultBranch(authToken, owner, repo, baseUrl) {
  1546. return __awaiter(this, void 0, void 0, function* () {
  1547. return yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  1548. var _a;
  1549. core.info('Retrieving the default branch name');
  1550. const octokit = github.getOctokit(authToken, {
  1551. baseUrl: (0, url_helper_1.getServerApiUrl)(baseUrl)
  1552. });
  1553. let result;
  1554. try {
  1555. // Get the default branch from the repo info
  1556. const response = yield octokit.rest.repos.get({ owner, repo });
  1557. result = response.data.default_branch;
  1558. assert.ok(result, 'default_branch cannot be empty');
  1559. }
  1560. catch (err) {
  1561. // Handle .wiki repo
  1562. if (((_a = err) === null || _a === void 0 ? void 0 : _a.status) === 404 &&
  1563. repo.toUpperCase().endsWith('.WIKI')) {
  1564. result = 'master';
  1565. }
  1566. // Otherwise error
  1567. else {
  1568. throw err;
  1569. }
  1570. }
  1571. // Print the default branch
  1572. core.info(`Default branch '${result}'`);
  1573. // Prefix with 'refs/heads'
  1574. if (!result.startsWith('refs/')) {
  1575. result = `refs/heads/${result}`;
  1576. }
  1577. return result;
  1578. }));
  1579. });
  1580. }
  1581. exports.getDefaultBranch = getDefaultBranch;
  1582. function downloadArchive(authToken, owner, repo, ref, commit, baseUrl) {
  1583. return __awaiter(this, void 0, void 0, function* () {
  1584. const octokit = github.getOctokit(authToken, {
  1585. baseUrl: (0, url_helper_1.getServerApiUrl)(baseUrl)
  1586. });
  1587. const download = IS_WINDOWS
  1588. ? octokit.rest.repos.downloadZipballArchive
  1589. : octokit.rest.repos.downloadTarballArchive;
  1590. const response = yield download({
  1591. owner: owner,
  1592. repo: repo,
  1593. ref: commit || ref
  1594. });
  1595. return Buffer.from(response.data); // response.data is ArrayBuffer
  1596. });
  1597. }
  1598. /***/ }),
  1599. /***/ 5480:
  1600. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1601. "use strict";
  1602. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1603. if (k2 === undefined) k2 = k;
  1604. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1605. }) : (function(o, m, k, k2) {
  1606. if (k2 === undefined) k2 = k;
  1607. o[k2] = m[k];
  1608. }));
  1609. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1610. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1611. }) : function(o, v) {
  1612. o["default"] = v;
  1613. });
  1614. var __importStar = (this && this.__importStar) || function (mod) {
  1615. if (mod && mod.__esModule) return mod;
  1616. var result = {};
  1617. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1618. __setModuleDefault(result, mod);
  1619. return result;
  1620. };
  1621. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1622. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1623. return new (P || (P = Promise))(function (resolve, reject) {
  1624. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1625. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1626. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1627. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1628. });
  1629. };
  1630. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1631. exports.getInputs = void 0;
  1632. const core = __importStar(__nccwpck_require__(2186));
  1633. const fsHelper = __importStar(__nccwpck_require__(7219));
  1634. const github = __importStar(__nccwpck_require__(5438));
  1635. const path = __importStar(__nccwpck_require__(1017));
  1636. const workflowContextHelper = __importStar(__nccwpck_require__(9568));
  1637. function getInputs() {
  1638. return __awaiter(this, void 0, void 0, function* () {
  1639. const result = {};
  1640. // GitHub workspace
  1641. let githubWorkspacePath = process.env['GITHUB_WORKSPACE'];
  1642. if (!githubWorkspacePath) {
  1643. throw new Error('GITHUB_WORKSPACE not defined');
  1644. }
  1645. githubWorkspacePath = path.resolve(githubWorkspacePath);
  1646. core.debug(`GITHUB_WORKSPACE = '${githubWorkspacePath}'`);
  1647. fsHelper.directoryExistsSync(githubWorkspacePath, true);
  1648. // Qualified repository
  1649. const qualifiedRepository = core.getInput('repository') ||
  1650. `${github.context.repo.owner}/${github.context.repo.repo}`;
  1651. core.debug(`qualified repository = '${qualifiedRepository}'`);
  1652. const splitRepository = qualifiedRepository.split('/');
  1653. if (splitRepository.length !== 2 ||
  1654. !splitRepository[0] ||
  1655. !splitRepository[1]) {
  1656. throw new Error(`Invalid repository '${qualifiedRepository}'. Expected format {owner}/{repo}.`);
  1657. }
  1658. result.repositoryOwner = splitRepository[0];
  1659. result.repositoryName = splitRepository[1];
  1660. // Repository path
  1661. result.repositoryPath = core.getInput('path') || '.';
  1662. result.repositoryPath = path.resolve(githubWorkspacePath, result.repositoryPath);
  1663. if (!(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
  1664. throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
  1665. }
  1666. // Workflow repository?
  1667. const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
  1668. `${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
  1669. // Source branch, source version
  1670. result.ref = core.getInput('ref');
  1671. if (!result.ref) {
  1672. if (isWorkflowRepository) {
  1673. result.ref = github.context.ref;
  1674. result.commit = github.context.sha;
  1675. // Some events have an unqualifed ref. For example when a PR is merged (pull_request closed event),
  1676. // the ref is unqualifed like "main" instead of "refs/heads/main".
  1677. if (result.commit && result.ref && !result.ref.startsWith('refs/')) {
  1678. result.ref = `refs/heads/${result.ref}`;
  1679. }
  1680. }
  1681. }
  1682. // SHA?
  1683. else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {
  1684. result.commit = result.ref;
  1685. result.ref = '';
  1686. }
  1687. core.debug(`ref = '${result.ref}'`);
  1688. core.debug(`commit = '${result.commit}'`);
  1689. // Clean
  1690. result.clean = (core.getInput('clean') || 'true').toUpperCase() === 'TRUE';
  1691. core.debug(`clean = ${result.clean}`);
  1692. // Filter
  1693. const filter = core.getInput('filter');
  1694. if (filter) {
  1695. result.filter = filter;
  1696. }
  1697. core.debug(`filter = ${result.filter}`);
  1698. // Sparse checkout
  1699. const sparseCheckout = core.getMultilineInput('sparse-checkout');
  1700. if (sparseCheckout.length) {
  1701. result.sparseCheckout = sparseCheckout;
  1702. core.debug(`sparse checkout = ${result.sparseCheckout}`);
  1703. }
  1704. result.sparseCheckoutConeMode =
  1705. (core.getInput('sparse-checkout-cone-mode') || 'true').toUpperCase() ===
  1706. 'TRUE';
  1707. // Fetch depth
  1708. result.fetchDepth = Math.floor(Number(core.getInput('fetch-depth') || '1'));
  1709. if (isNaN(result.fetchDepth) || result.fetchDepth < 0) {
  1710. result.fetchDepth = 0;
  1711. }
  1712. core.debug(`fetch depth = ${result.fetchDepth}`);
  1713. // Fetch tags
  1714. result.fetchTags =
  1715. (core.getInput('fetch-tags') || 'false').toUpperCase() === 'TRUE';
  1716. core.debug(`fetch tags = ${result.fetchTags}`);
  1717. // Show fetch progress
  1718. result.showProgress =
  1719. (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE';
  1720. core.debug(`show progress = ${result.showProgress}`);
  1721. // LFS
  1722. result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE';
  1723. core.debug(`lfs = ${result.lfs}`);
  1724. // Submodules
  1725. result.submodules = false;
  1726. result.nestedSubmodules = false;
  1727. const submodulesString = (core.getInput('submodules') || '').toUpperCase();
  1728. if (submodulesString == 'RECURSIVE') {
  1729. result.submodules = true;
  1730. result.nestedSubmodules = true;
  1731. }
  1732. else if (submodulesString == 'TRUE') {
  1733. result.submodules = true;
  1734. }
  1735. core.debug(`submodules = ${result.submodules}`);
  1736. core.debug(`recursive submodules = ${result.nestedSubmodules}`);
  1737. // Auth token
  1738. result.authToken = core.getInput('token', { required: true });
  1739. // SSH
  1740. result.sshKey = core.getInput('ssh-key');
  1741. result.sshKnownHosts = core.getInput('ssh-known-hosts');
  1742. result.sshStrict =
  1743. (core.getInput('ssh-strict') || 'true').toUpperCase() === 'TRUE';
  1744. // Persist credentials
  1745. result.persistCredentials =
  1746. (core.getInput('persist-credentials') || 'false').toUpperCase() === 'TRUE';
  1747. // Workflow organization ID
  1748. result.workflowOrganizationId = yield workflowContextHelper.getOrganizationId();
  1749. // Set safe.directory in git global config.
  1750. result.setSafeDirectory =
  1751. (core.getInput('set-safe-directory') || 'true').toUpperCase() === 'TRUE';
  1752. // Determine the GitHub URL that the repository is being hosted from
  1753. result.githubServerUrl = core.getInput('github-server-url');
  1754. core.debug(`GitHub Host URL = ${result.githubServerUrl}`);
  1755. return result;
  1756. });
  1757. }
  1758. exports.getInputs = getInputs;
  1759. /***/ }),
  1760. /***/ 3109:
  1761. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1762. "use strict";
  1763. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1764. if (k2 === undefined) k2 = k;
  1765. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1766. }) : (function(o, m, k, k2) {
  1767. if (k2 === undefined) k2 = k;
  1768. o[k2] = m[k];
  1769. }));
  1770. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1771. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1772. }) : function(o, v) {
  1773. o["default"] = v;
  1774. });
  1775. var __importStar = (this && this.__importStar) || function (mod) {
  1776. if (mod && mod.__esModule) return mod;
  1777. var result = {};
  1778. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1779. __setModuleDefault(result, mod);
  1780. return result;
  1781. };
  1782. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1783. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1784. return new (P || (P = Promise))(function (resolve, reject) {
  1785. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1786. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1787. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1788. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1789. });
  1790. };
  1791. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1792. const core = __importStar(__nccwpck_require__(2186));
  1793. const coreCommand = __importStar(__nccwpck_require__(7351));
  1794. const gitSourceProvider = __importStar(__nccwpck_require__(9210));
  1795. const inputHelper = __importStar(__nccwpck_require__(5480));
  1796. const path = __importStar(__nccwpck_require__(1017));
  1797. const stateHelper = __importStar(__nccwpck_require__(8647));
  1798. function run() {
  1799. var _a, _b;
  1800. return __awaiter(this, void 0, void 0, function* () {
  1801. try {
  1802. const sourceSettings = yield inputHelper.getInputs();
  1803. try {
  1804. // Register problem matcher
  1805. coreCommand.issueCommand('add-matcher', {}, path.join(__dirname, 'problem-matcher.json'));
  1806. // Get sources
  1807. yield gitSourceProvider.getSource(sourceSettings);
  1808. }
  1809. finally {
  1810. // Unregister problem matcher
  1811. coreCommand.issueCommand('remove-matcher', { owner: 'checkout-git' }, '');
  1812. }
  1813. }
  1814. catch (error) {
  1815. core.setFailed(`${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  1816. }
  1817. });
  1818. }
  1819. function cleanup() {
  1820. var _a, _b;
  1821. return __awaiter(this, void 0, void 0, function* () {
  1822. try {
  1823. yield gitSourceProvider.cleanup(stateHelper.RepositoryPath);
  1824. }
  1825. catch (error) {
  1826. core.warning(`${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  1827. }
  1828. });
  1829. }
  1830. // Main
  1831. if (!stateHelper.IsPost) {
  1832. run();
  1833. }
  1834. // Post
  1835. else {
  1836. cleanup();
  1837. }
  1838. /***/ }),
  1839. /***/ 8601:
  1840. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1841. "use strict";
  1842. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1843. if (k2 === undefined) k2 = k;
  1844. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1845. }) : (function(o, m, k, k2) {
  1846. if (k2 === undefined) k2 = k;
  1847. o[k2] = m[k];
  1848. }));
  1849. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1850. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1851. }) : function(o, v) {
  1852. o["default"] = v;
  1853. });
  1854. var __importStar = (this && this.__importStar) || function (mod) {
  1855. if (mod && mod.__esModule) return mod;
  1856. var result = {};
  1857. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1858. __setModuleDefault(result, mod);
  1859. return result;
  1860. };
  1861. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1862. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1863. return new (P || (P = Promise))(function (resolve, reject) {
  1864. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1865. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1866. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1867. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1868. });
  1869. };
  1870. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1871. exports.checkCommitInfo = exports.testRef = exports.getRefSpec = exports.getRefSpecForAllHistory = exports.getCheckoutInfo = exports.tagsRefSpec = void 0;
  1872. const core = __importStar(__nccwpck_require__(2186));
  1873. const github = __importStar(__nccwpck_require__(5438));
  1874. const url_helper_1 = __nccwpck_require__(9437);
  1875. exports.tagsRefSpec = '+refs/tags/*:refs/tags/*';
  1876. function getCheckoutInfo(git, ref, commit) {
  1877. return __awaiter(this, void 0, void 0, function* () {
  1878. if (!git) {
  1879. throw new Error('Arg git cannot be empty');
  1880. }
  1881. if (!ref && !commit) {
  1882. throw new Error('Args ref and commit cannot both be empty');
  1883. }
  1884. const result = {};
  1885. const upperRef = (ref || '').toUpperCase();
  1886. // SHA only
  1887. if (!ref) {
  1888. result.ref = commit;
  1889. }
  1890. // refs/heads/
  1891. else if (upperRef.startsWith('REFS/HEADS/')) {
  1892. const branch = ref.substring('refs/heads/'.length);
  1893. result.ref = branch;
  1894. result.startPoint = `refs/remotes/origin/${branch}`;
  1895. }
  1896. // refs/pull/
  1897. else if (upperRef.startsWith('REFS/PULL/')) {
  1898. const branch = ref.substring('refs/pull/'.length);
  1899. result.ref = `refs/remotes/pull/${branch}`;
  1900. }
  1901. // refs/tags/
  1902. else if (upperRef.startsWith('REFS/')) {
  1903. result.ref = ref;
  1904. }
  1905. // Unqualified ref, check for a matching branch or tag
  1906. else {
  1907. if (yield git.branchExists(true, `origin/${ref}`)) {
  1908. result.ref = ref;
  1909. result.startPoint = `refs/remotes/origin/${ref}`;
  1910. }
  1911. else if (yield git.tagExists(`${ref}`)) {
  1912. result.ref = `refs/tags/${ref}`;
  1913. }
  1914. else {
  1915. throw new Error(`A branch or tag with the name '${ref}' could not be found`);
  1916. }
  1917. }
  1918. return result;
  1919. });
  1920. }
  1921. exports.getCheckoutInfo = getCheckoutInfo;
  1922. function getRefSpecForAllHistory(ref, commit) {
  1923. const result = ['+refs/heads/*:refs/remotes/origin/*', exports.tagsRefSpec];
  1924. if (ref && ref.toUpperCase().startsWith('REFS/PULL/')) {
  1925. const branch = ref.substring('refs/pull/'.length);
  1926. result.push(`+${commit || ref}:refs/remotes/pull/${branch}`);
  1927. }
  1928. return result;
  1929. }
  1930. exports.getRefSpecForAllHistory = getRefSpecForAllHistory;
  1931. function getRefSpec(ref, commit) {
  1932. if (!ref && !commit) {
  1933. throw new Error('Args ref and commit cannot both be empty');
  1934. }
  1935. const upperRef = (ref || '').toUpperCase();
  1936. // SHA
  1937. if (commit) {
  1938. // refs/heads
  1939. if (upperRef.startsWith('REFS/HEADS/')) {
  1940. const branch = ref.substring('refs/heads/'.length);
  1941. return [`+${commit}:refs/remotes/origin/${branch}`];
  1942. }
  1943. // refs/pull/
  1944. else if (upperRef.startsWith('REFS/PULL/')) {
  1945. const branch = ref.substring('refs/pull/'.length);
  1946. return [`+${commit}:refs/remotes/pull/${branch}`];
  1947. }
  1948. // refs/tags/
  1949. else if (upperRef.startsWith('REFS/TAGS/')) {
  1950. return [`+${commit}:${ref}`];
  1951. }
  1952. // Otherwise no destination ref
  1953. else {
  1954. return [commit];
  1955. }
  1956. }
  1957. // Unqualified ref, check for a matching branch or tag
  1958. else if (!upperRef.startsWith('REFS/')) {
  1959. return [
  1960. `+refs/heads/${ref}*:refs/remotes/origin/${ref}*`,
  1961. `+refs/tags/${ref}*:refs/tags/${ref}*`
  1962. ];
  1963. }
  1964. // refs/heads/
  1965. else if (upperRef.startsWith('REFS/HEADS/')) {
  1966. const branch = ref.substring('refs/heads/'.length);
  1967. return [`+${ref}:refs/remotes/origin/${branch}`];
  1968. }
  1969. // refs/pull/
  1970. else if (upperRef.startsWith('REFS/PULL/')) {
  1971. const branch = ref.substring('refs/pull/'.length);
  1972. return [`+${ref}:refs/remotes/pull/${branch}`];
  1973. }
  1974. // refs/tags/
  1975. else {
  1976. return [`+${ref}:${ref}`];
  1977. }
  1978. }
  1979. exports.getRefSpec = getRefSpec;
  1980. /**
  1981. * Tests whether the initial fetch created the ref at the expected commit
  1982. */
  1983. function testRef(git, ref, commit) {
  1984. return __awaiter(this, void 0, void 0, function* () {
  1985. if (!git) {
  1986. throw new Error('Arg git cannot be empty');
  1987. }
  1988. if (!ref && !commit) {
  1989. throw new Error('Args ref and commit cannot both be empty');
  1990. }
  1991. // No SHA? Nothing to test
  1992. if (!commit) {
  1993. return true;
  1994. }
  1995. // SHA only?
  1996. else if (!ref) {
  1997. return yield git.shaExists(commit);
  1998. }
  1999. const upperRef = ref.toUpperCase();
  2000. // refs/heads/
  2001. if (upperRef.startsWith('REFS/HEADS/')) {
  2002. const branch = ref.substring('refs/heads/'.length);
  2003. return ((yield git.branchExists(true, `origin/${branch}`)) &&
  2004. commit === (yield git.revParse(`refs/remotes/origin/${branch}`)));
  2005. }
  2006. // refs/pull/
  2007. else if (upperRef.startsWith('REFS/PULL/')) {
  2008. // Assume matches because fetched using the commit
  2009. return true;
  2010. }
  2011. // refs/tags/
  2012. else if (upperRef.startsWith('REFS/TAGS/')) {
  2013. const tagName = ref.substring('refs/tags/'.length);
  2014. return ((yield git.tagExists(tagName)) && commit === (yield git.revParse(ref)));
  2015. }
  2016. // Unexpected
  2017. else {
  2018. core.debug(`Unexpected ref format '${ref}' when testing ref info`);
  2019. return true;
  2020. }
  2021. });
  2022. }
  2023. exports.testRef = testRef;
  2024. function checkCommitInfo(token, commitInfo, repositoryOwner, repositoryName, ref, commit, baseUrl) {
  2025. var _a, _b;
  2026. return __awaiter(this, void 0, void 0, function* () {
  2027. try {
  2028. // GHES?
  2029. if ((0, url_helper_1.isGhes)(baseUrl)) {
  2030. return;
  2031. }
  2032. // Auth token?
  2033. if (!token) {
  2034. return;
  2035. }
  2036. // Public PR synchronize, for workflow repo?
  2037. if (fromPayload('repository.private') !== false ||
  2038. github.context.eventName !== 'pull_request' ||
  2039. fromPayload('action') !== 'synchronize' ||
  2040. repositoryOwner !== github.context.repo.owner ||
  2041. repositoryName !== github.context.repo.repo ||
  2042. ref !== github.context.ref ||
  2043. !ref.startsWith('refs/pull/') ||
  2044. commit !== github.context.sha) {
  2045. return;
  2046. }
  2047. // Head SHA
  2048. const expectedHeadSha = fromPayload('after');
  2049. if (!expectedHeadSha) {
  2050. core.debug('Unable to determine head sha');
  2051. return;
  2052. }
  2053. // Base SHA
  2054. const expectedBaseSha = fromPayload('pull_request.base.sha');
  2055. if (!expectedBaseSha) {
  2056. core.debug('Unable to determine base sha');
  2057. return;
  2058. }
  2059. // Expected message?
  2060. const expectedMessage = `Merge ${expectedHeadSha} into ${expectedBaseSha}`;
  2061. if (commitInfo.indexOf(expectedMessage) >= 0) {
  2062. return;
  2063. }
  2064. // Extract details from message
  2065. const match = commitInfo.match(/Merge ([0-9a-f]{40}) into ([0-9a-f]{40})/);
  2066. if (!match) {
  2067. core.debug('Unexpected message format');
  2068. return;
  2069. }
  2070. // Post telemetry
  2071. const actualHeadSha = match[1];
  2072. if (actualHeadSha !== expectedHeadSha) {
  2073. core.debug(`Expected head sha ${expectedHeadSha}; actual head sha ${actualHeadSha}`);
  2074. const octokit = github.getOctokit(token, {
  2075. baseUrl: (0, url_helper_1.getServerApiUrl)(baseUrl),
  2076. 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})`
  2077. });
  2078. yield octokit.rest.repos.get({
  2079. owner: repositoryOwner,
  2080. repo: repositoryName
  2081. });
  2082. }
  2083. }
  2084. catch (err) {
  2085. core.debug(`Error when validating commit info: ${(_b = (_a = err) === null || _a === void 0 ? void 0 : _a.stack) !== null && _b !== void 0 ? _b : err}`);
  2086. }
  2087. });
  2088. }
  2089. exports.checkCommitInfo = checkCommitInfo;
  2090. function fromPayload(path) {
  2091. return select(github.context.payload, path);
  2092. }
  2093. function select(obj, path) {
  2094. if (!obj) {
  2095. return undefined;
  2096. }
  2097. const i = path.indexOf('.');
  2098. if (i < 0) {
  2099. return obj[path];
  2100. }
  2101. const key = path.substr(0, i);
  2102. return select(obj[key], path.substr(i + 1));
  2103. }
  2104. /***/ }),
  2105. /***/ 3120:
  2106. /***/ ((__unused_webpack_module, exports) => {
  2107. "use strict";
  2108. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2109. exports.escape = void 0;
  2110. function escape(value) {
  2111. return value.replace(/[^a-zA-Z0-9_]/g, x => {
  2112. return `\\${x}`;
  2113. });
  2114. }
  2115. exports.escape = escape;
  2116. /***/ }),
  2117. /***/ 2155:
  2118. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2119. "use strict";
  2120. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2121. if (k2 === undefined) k2 = k;
  2122. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2123. }) : (function(o, m, k, k2) {
  2124. if (k2 === undefined) k2 = k;
  2125. o[k2] = m[k];
  2126. }));
  2127. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2128. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2129. }) : function(o, v) {
  2130. o["default"] = v;
  2131. });
  2132. var __importStar = (this && this.__importStar) || function (mod) {
  2133. if (mod && mod.__esModule) return mod;
  2134. var result = {};
  2135. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2136. __setModuleDefault(result, mod);
  2137. return result;
  2138. };
  2139. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2140. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2141. return new (P || (P = Promise))(function (resolve, reject) {
  2142. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2143. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2144. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2145. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2146. });
  2147. };
  2148. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2149. exports.execute = exports.RetryHelper = void 0;
  2150. const core = __importStar(__nccwpck_require__(2186));
  2151. const defaultMaxAttempts = 3;
  2152. const defaultMinSeconds = 10;
  2153. const defaultMaxSeconds = 20;
  2154. class RetryHelper {
  2155. constructor(maxAttempts = defaultMaxAttempts, minSeconds = defaultMinSeconds, maxSeconds = defaultMaxSeconds) {
  2156. this.maxAttempts = maxAttempts;
  2157. this.minSeconds = Math.floor(minSeconds);
  2158. this.maxSeconds = Math.floor(maxSeconds);
  2159. if (this.minSeconds > this.maxSeconds) {
  2160. throw new Error('min seconds should be less than or equal to max seconds');
  2161. }
  2162. }
  2163. execute(action) {
  2164. var _a;
  2165. return __awaiter(this, void 0, void 0, function* () {
  2166. let attempt = 1;
  2167. while (attempt < this.maxAttempts) {
  2168. // Try
  2169. try {
  2170. return yield action();
  2171. }
  2172. catch (err) {
  2173. core.info((_a = err) === null || _a === void 0 ? void 0 : _a.message);
  2174. }
  2175. // Sleep
  2176. const seconds = this.getSleepAmount();
  2177. core.info(`Waiting ${seconds} seconds before trying again`);
  2178. yield this.sleep(seconds);
  2179. attempt++;
  2180. }
  2181. // Last attempt
  2182. return yield action();
  2183. });
  2184. }
  2185. getSleepAmount() {
  2186. return (Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) +
  2187. this.minSeconds);
  2188. }
  2189. sleep(seconds) {
  2190. return __awaiter(this, void 0, void 0, function* () {
  2191. return new Promise(resolve => setTimeout(resolve, seconds * 1000));
  2192. });
  2193. }
  2194. }
  2195. exports.RetryHelper = RetryHelper;
  2196. function execute(action) {
  2197. return __awaiter(this, void 0, void 0, function* () {
  2198. const retryHelper = new RetryHelper();
  2199. return yield retryHelper.execute(action);
  2200. });
  2201. }
  2202. exports.execute = execute;
  2203. /***/ }),
  2204. /***/ 8647:
  2205. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2206. "use strict";
  2207. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2208. if (k2 === undefined) k2 = k;
  2209. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2210. }) : (function(o, m, k, k2) {
  2211. if (k2 === undefined) k2 = k;
  2212. o[k2] = m[k];
  2213. }));
  2214. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2215. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2216. }) : function(o, v) {
  2217. o["default"] = v;
  2218. });
  2219. var __importStar = (this && this.__importStar) || function (mod) {
  2220. if (mod && mod.__esModule) return mod;
  2221. var result = {};
  2222. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2223. __setModuleDefault(result, mod);
  2224. return result;
  2225. };
  2226. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2227. exports.setSafeDirectory = exports.setSshKnownHostsPath = exports.setSshKeyPath = exports.setRepositoryPath = exports.SshKnownHostsPath = exports.SshKeyPath = exports.PostSetSafeDirectory = exports.RepositoryPath = exports.IsPost = void 0;
  2228. const core = __importStar(__nccwpck_require__(2186));
  2229. /**
  2230. * Indicates whether the POST action is running
  2231. */
  2232. exports.IsPost = !!core.getState('isPost');
  2233. /**
  2234. * The repository path for the POST action. The value is empty during the MAIN action.
  2235. */
  2236. exports.RepositoryPath = core.getState('repositoryPath');
  2237. /**
  2238. * The set-safe-directory for the POST action. The value is set if input: 'safe-directory' is set during the MAIN action.
  2239. */
  2240. exports.PostSetSafeDirectory = core.getState('setSafeDirectory') === 'true';
  2241. /**
  2242. * The SSH key path for the POST action. The value is empty during the MAIN action.
  2243. */
  2244. exports.SshKeyPath = core.getState('sshKeyPath');
  2245. /**
  2246. * The SSH known hosts path for the POST action. The value is empty during the MAIN action.
  2247. */
  2248. exports.SshKnownHostsPath = core.getState('sshKnownHostsPath');
  2249. /**
  2250. * Save the repository path so the POST action can retrieve the value.
  2251. */
  2252. function setRepositoryPath(repositoryPath) {
  2253. core.saveState('repositoryPath', repositoryPath);
  2254. }
  2255. exports.setRepositoryPath = setRepositoryPath;
  2256. /**
  2257. * Save the SSH key path so the POST action can retrieve the value.
  2258. */
  2259. function setSshKeyPath(sshKeyPath) {
  2260. core.saveState('sshKeyPath', sshKeyPath);
  2261. }
  2262. exports.setSshKeyPath = setSshKeyPath;
  2263. /**
  2264. * Save the SSH known hosts path so the POST action can retrieve the value.
  2265. */
  2266. function setSshKnownHostsPath(sshKnownHostsPath) {
  2267. core.saveState('sshKnownHostsPath', sshKnownHostsPath);
  2268. }
  2269. exports.setSshKnownHostsPath = setSshKnownHostsPath;
  2270. /**
  2271. * Save the set-safe-directory input so the POST action can retrieve the value.
  2272. */
  2273. function setSafeDirectory() {
  2274. core.saveState('setSafeDirectory', 'true');
  2275. }
  2276. exports.setSafeDirectory = setSafeDirectory;
  2277. // Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
  2278. // This is necessary since we don't have a separate entry point.
  2279. if (!exports.IsPost) {
  2280. core.saveState('isPost', 'true');
  2281. }
  2282. /***/ }),
  2283. /***/ 9437:
  2284. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2285. "use strict";
  2286. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2287. if (k2 === undefined) k2 = k;
  2288. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2289. }) : (function(o, m, k, k2) {
  2290. if (k2 === undefined) k2 = k;
  2291. o[k2] = m[k];
  2292. }));
  2293. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2294. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2295. }) : function(o, v) {
  2296. o["default"] = v;
  2297. });
  2298. var __importStar = (this && this.__importStar) || function (mod) {
  2299. if (mod && mod.__esModule) return mod;
  2300. var result = {};
  2301. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2302. __setModuleDefault(result, mod);
  2303. return result;
  2304. };
  2305. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2306. exports.isGhes = exports.getServerApiUrl = exports.getServerUrl = exports.getFetchUrl = void 0;
  2307. const assert = __importStar(__nccwpck_require__(9491));
  2308. const url_1 = __nccwpck_require__(7310);
  2309. function getFetchUrl(settings) {
  2310. assert.ok(settings.repositoryOwner, 'settings.repositoryOwner must be defined');
  2311. assert.ok(settings.repositoryName, 'settings.repositoryName must be defined');
  2312. const serviceUrl = getServerUrl(settings.githubServerUrl);
  2313. const encodedOwner = encodeURIComponent(settings.repositoryOwner);
  2314. const encodedName = encodeURIComponent(settings.repositoryName);
  2315. if (settings.sshKey) {
  2316. return `git@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
  2317. }
  2318. // "origin" is SCHEME://HOSTNAME[:PORT]
  2319. return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
  2320. }
  2321. exports.getFetchUrl = getFetchUrl;
  2322. function getServerUrl(url) {
  2323. let urlValue = url && url.trim().length > 0
  2324. ? url
  2325. : process.env['GITHUB_SERVER_URL'] || 'https://github.com';
  2326. return new url_1.URL(urlValue);
  2327. }
  2328. exports.getServerUrl = getServerUrl;
  2329. function getServerApiUrl(url) {
  2330. let apiUrl = 'https://api.github.com';
  2331. if (isGhes(url)) {
  2332. const serverUrl = getServerUrl(url);
  2333. apiUrl = new url_1.URL(`${serverUrl.origin}/api/v3`).toString();
  2334. }
  2335. return apiUrl;
  2336. }
  2337. exports.getServerApiUrl = getServerApiUrl;
  2338. function isGhes(url) {
  2339. const ghUrl = getServerUrl(url);
  2340. return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
  2341. }
  2342. exports.isGhes = isGhes;
  2343. /***/ }),
  2344. /***/ 9568:
  2345. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2346. "use strict";
  2347. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2348. if (k2 === undefined) k2 = k;
  2349. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2350. }) : (function(o, m, k, k2) {
  2351. if (k2 === undefined) k2 = k;
  2352. o[k2] = m[k];
  2353. }));
  2354. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2355. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2356. }) : function(o, v) {
  2357. o["default"] = v;
  2358. });
  2359. var __importStar = (this && this.__importStar) || function (mod) {
  2360. if (mod && mod.__esModule) return mod;
  2361. var result = {};
  2362. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2363. __setModuleDefault(result, mod);
  2364. return result;
  2365. };
  2366. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2367. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2368. return new (P || (P = Promise))(function (resolve, reject) {
  2369. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2370. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2371. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2372. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2373. });
  2374. };
  2375. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2376. exports.getOrganizationId = void 0;
  2377. const core = __importStar(__nccwpck_require__(2186));
  2378. const fs = __importStar(__nccwpck_require__(7147));
  2379. /**
  2380. * Gets the organization ID of the running workflow or undefined if the value cannot be loaded from the GITHUB_EVENT_PATH
  2381. */
  2382. function getOrganizationId() {
  2383. var _a, _b;
  2384. return __awaiter(this, void 0, void 0, function* () {
  2385. try {
  2386. const eventPath = process.env.GITHUB_EVENT_PATH;
  2387. if (!eventPath) {
  2388. core.debug(`GITHUB_EVENT_PATH is not defined`);
  2389. return;
  2390. }
  2391. const content = yield fs.promises.readFile(eventPath, { encoding: 'utf8' });
  2392. const event = JSON.parse(content);
  2393. 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;
  2394. if (typeof id !== 'number') {
  2395. core.debug('Repository owner ID not found within GITHUB event info');
  2396. return;
  2397. }
  2398. return id;
  2399. }
  2400. catch (err) {
  2401. core.debug(`Unable to load organization ID from GITHUB_EVENT_PATH: ${err
  2402. .message || err}`);
  2403. }
  2404. });
  2405. }
  2406. exports.getOrganizationId = getOrganizationId;
  2407. /***/ }),
  2408. /***/ 7351:
  2409. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2410. "use strict";
  2411. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2412. if (k2 === undefined) k2 = k;
  2413. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2414. }) : (function(o, m, k, k2) {
  2415. if (k2 === undefined) k2 = k;
  2416. o[k2] = m[k];
  2417. }));
  2418. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2419. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2420. }) : function(o, v) {
  2421. o["default"] = v;
  2422. });
  2423. var __importStar = (this && this.__importStar) || function (mod) {
  2424. if (mod && mod.__esModule) return mod;
  2425. var result = {};
  2426. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2427. __setModuleDefault(result, mod);
  2428. return result;
  2429. };
  2430. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2431. exports.issue = exports.issueCommand = void 0;
  2432. const os = __importStar(__nccwpck_require__(2037));
  2433. const utils_1 = __nccwpck_require__(5278);
  2434. /**
  2435. * Commands
  2436. *
  2437. * Command Format:
  2438. * ::name key=value,key=value::message
  2439. *
  2440. * Examples:
  2441. * ::warning::This is the message
  2442. * ::set-env name=MY_VAR::some value
  2443. */
  2444. function issueCommand(command, properties, message) {
  2445. const cmd = new Command(command, properties, message);
  2446. process.stdout.write(cmd.toString() + os.EOL);
  2447. }
  2448. exports.issueCommand = issueCommand;
  2449. function issue(name, message = '') {
  2450. issueCommand(name, {}, message);
  2451. }
  2452. exports.issue = issue;
  2453. const CMD_STRING = '::';
  2454. class Command {
  2455. constructor(command, properties, message) {
  2456. if (!command) {
  2457. command = 'missing.command';
  2458. }
  2459. this.command = command;
  2460. this.properties = properties;
  2461. this.message = message;
  2462. }
  2463. toString() {
  2464. let cmdStr = CMD_STRING + this.command;
  2465. if (this.properties && Object.keys(this.properties).length > 0) {
  2466. cmdStr += ' ';
  2467. let first = true;
  2468. for (const key in this.properties) {
  2469. if (this.properties.hasOwnProperty(key)) {
  2470. const val = this.properties[key];
  2471. if (val) {
  2472. if (first) {
  2473. first = false;
  2474. }
  2475. else {
  2476. cmdStr += ',';
  2477. }
  2478. cmdStr += `${key}=${escapeProperty(val)}`;
  2479. }
  2480. }
  2481. }
  2482. }
  2483. cmdStr += `${CMD_STRING}${escapeData(this.message)}`;
  2484. return cmdStr;
  2485. }
  2486. }
  2487. function escapeData(s) {
  2488. return utils_1.toCommandValue(s)
  2489. .replace(/%/g, '%25')
  2490. .replace(/\r/g, '%0D')
  2491. .replace(/\n/g, '%0A');
  2492. }
  2493. function escapeProperty(s) {
  2494. return utils_1.toCommandValue(s)
  2495. .replace(/%/g, '%25')
  2496. .replace(/\r/g, '%0D')
  2497. .replace(/\n/g, '%0A')
  2498. .replace(/:/g, '%3A')
  2499. .replace(/,/g, '%2C');
  2500. }
  2501. //# sourceMappingURL=command.js.map
  2502. /***/ }),
  2503. /***/ 2186:
  2504. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2505. "use strict";
  2506. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2507. if (k2 === undefined) k2 = k;
  2508. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2509. }) : (function(o, m, k, k2) {
  2510. if (k2 === undefined) k2 = k;
  2511. o[k2] = m[k];
  2512. }));
  2513. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2514. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2515. }) : function(o, v) {
  2516. o["default"] = v;
  2517. });
  2518. var __importStar = (this && this.__importStar) || function (mod) {
  2519. if (mod && mod.__esModule) return mod;
  2520. var result = {};
  2521. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2522. __setModuleDefault(result, mod);
  2523. return result;
  2524. };
  2525. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2526. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2527. return new (P || (P = Promise))(function (resolve, reject) {
  2528. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2529. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2530. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2531. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2532. });
  2533. };
  2534. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2535. 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;
  2536. const command_1 = __nccwpck_require__(7351);
  2537. const file_command_1 = __nccwpck_require__(717);
  2538. const utils_1 = __nccwpck_require__(5278);
  2539. const os = __importStar(__nccwpck_require__(2037));
  2540. const path = __importStar(__nccwpck_require__(1017));
  2541. const oidc_utils_1 = __nccwpck_require__(8041);
  2542. /**
  2543. * The code to exit an action
  2544. */
  2545. var ExitCode;
  2546. (function (ExitCode) {
  2547. /**
  2548. * A code indicating that the action was successful
  2549. */
  2550. ExitCode[ExitCode["Success"] = 0] = "Success";
  2551. /**
  2552. * A code indicating that the action was a failure
  2553. */
  2554. ExitCode[ExitCode["Failure"] = 1] = "Failure";
  2555. })(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
  2556. //-----------------------------------------------------------------------
  2557. // Variables
  2558. //-----------------------------------------------------------------------
  2559. /**
  2560. * Sets env variable for this action and future actions in the job
  2561. * @param name the name of the variable to set
  2562. * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
  2563. */
  2564. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  2565. function exportVariable(name, val) {
  2566. const convertedVal = utils_1.toCommandValue(val);
  2567. process.env[name] = convertedVal;
  2568. const filePath = process.env['GITHUB_ENV'] || '';
  2569. if (filePath) {
  2570. return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));
  2571. }
  2572. command_1.issueCommand('set-env', { name }, convertedVal);
  2573. }
  2574. exports.exportVariable = exportVariable;
  2575. /**
  2576. * Registers a secret which will get masked from logs
  2577. * @param secret value of the secret
  2578. */
  2579. function setSecret(secret) {
  2580. command_1.issueCommand('add-mask', {}, secret);
  2581. }
  2582. exports.setSecret = setSecret;
  2583. /**
  2584. * Prepends inputPath to the PATH (for this action and future actions)
  2585. * @param inputPath
  2586. */
  2587. function addPath(inputPath) {
  2588. const filePath = process.env['GITHUB_PATH'] || '';
  2589. if (filePath) {
  2590. file_command_1.issueFileCommand('PATH', inputPath);
  2591. }
  2592. else {
  2593. command_1.issueCommand('add-path', {}, inputPath);
  2594. }
  2595. process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
  2596. }
  2597. exports.addPath = addPath;
  2598. /**
  2599. * Gets the value of an input.
  2600. * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
  2601. * Returns an empty string if the value is not defined.
  2602. *
  2603. * @param name name of the input to get
  2604. * @param options optional. See InputOptions.
  2605. * @returns string
  2606. */
  2607. function getInput(name, options) {
  2608. const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
  2609. if (options && options.required && !val) {
  2610. throw new Error(`Input required and not supplied: ${name}`);
  2611. }
  2612. if (options && options.trimWhitespace === false) {
  2613. return val;
  2614. }
  2615. return val.trim();
  2616. }
  2617. exports.getInput = getInput;
  2618. /**
  2619. * Gets the values of an multiline input. Each value is also trimmed.
  2620. *
  2621. * @param name name of the input to get
  2622. * @param options optional. See InputOptions.
  2623. * @returns string[]
  2624. *
  2625. */
  2626. function getMultilineInput(name, options) {
  2627. const inputs = getInput(name, options)
  2628. .split('\n')
  2629. .filter(x => x !== '');
  2630. if (options && options.trimWhitespace === false) {
  2631. return inputs;
  2632. }
  2633. return inputs.map(input => input.trim());
  2634. }
  2635. exports.getMultilineInput = getMultilineInput;
  2636. /**
  2637. * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
  2638. * Support boolean input list: `true | True | TRUE | false | False | FALSE` .
  2639. * The return value is also in boolean type.
  2640. * ref: https://yaml.org/spec/1.2/spec.html#id2804923
  2641. *
  2642. * @param name name of the input to get
  2643. * @param options optional. See InputOptions.
  2644. * @returns boolean
  2645. */
  2646. function getBooleanInput(name, options) {
  2647. const trueValue = ['true', 'True', 'TRUE'];
  2648. const falseValue = ['false', 'False', 'FALSE'];
  2649. const val = getInput(name, options);
  2650. if (trueValue.includes(val))
  2651. return true;
  2652. if (falseValue.includes(val))
  2653. return false;
  2654. throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
  2655. `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
  2656. }
  2657. exports.getBooleanInput = getBooleanInput;
  2658. /**
  2659. * Sets the value of an output.
  2660. *
  2661. * @param name name of the output to set
  2662. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  2663. */
  2664. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  2665. function setOutput(name, value) {
  2666. const filePath = process.env['GITHUB_OUTPUT'] || '';
  2667. if (filePath) {
  2668. return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));
  2669. }
  2670. process.stdout.write(os.EOL);
  2671. command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));
  2672. }
  2673. exports.setOutput = setOutput;
  2674. /**
  2675. * Enables or disables the echoing of commands into stdout for the rest of the step.
  2676. * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
  2677. *
  2678. */
  2679. function setCommandEcho(enabled) {
  2680. command_1.issue('echo', enabled ? 'on' : 'off');
  2681. }
  2682. exports.setCommandEcho = setCommandEcho;
  2683. //-----------------------------------------------------------------------
  2684. // Results
  2685. //-----------------------------------------------------------------------
  2686. /**
  2687. * Sets the action status to failed.
  2688. * When the action exits it will be with an exit code of 1
  2689. * @param message add error issue message
  2690. */
  2691. function setFailed(message) {
  2692. process.exitCode = ExitCode.Failure;
  2693. error(message);
  2694. }
  2695. exports.setFailed = setFailed;
  2696. //-----------------------------------------------------------------------
  2697. // Logging Commands
  2698. //-----------------------------------------------------------------------
  2699. /**
  2700. * Gets whether Actions Step Debug is on or not
  2701. */
  2702. function isDebug() {
  2703. return process.env['RUNNER_DEBUG'] === '1';
  2704. }
  2705. exports.isDebug = isDebug;
  2706. /**
  2707. * Writes debug message to user log
  2708. * @param message debug message
  2709. */
  2710. function debug(message) {
  2711. command_1.issueCommand('debug', {}, message);
  2712. }
  2713. exports.debug = debug;
  2714. /**
  2715. * Adds an error issue
  2716. * @param message error issue message. Errors will be converted to string via toString()
  2717. * @param properties optional properties to add to the annotation.
  2718. */
  2719. function error(message, properties = {}) {
  2720. command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  2721. }
  2722. exports.error = error;
  2723. /**
  2724. * Adds a warning issue
  2725. * @param message warning issue message. Errors will be converted to string via toString()
  2726. * @param properties optional properties to add to the annotation.
  2727. */
  2728. function warning(message, properties = {}) {
  2729. command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  2730. }
  2731. exports.warning = warning;
  2732. /**
  2733. * Adds a notice issue
  2734. * @param message notice issue message. Errors will be converted to string via toString()
  2735. * @param properties optional properties to add to the annotation.
  2736. */
  2737. function notice(message, properties = {}) {
  2738. command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  2739. }
  2740. exports.notice = notice;
  2741. /**
  2742. * Writes info to log with console.log.
  2743. * @param message info message
  2744. */
  2745. function info(message) {
  2746. process.stdout.write(message + os.EOL);
  2747. }
  2748. exports.info = info;
  2749. /**
  2750. * Begin an output group.
  2751. *
  2752. * Output until the next `groupEnd` will be foldable in this group
  2753. *
  2754. * @param name The name of the output group
  2755. */
  2756. function startGroup(name) {
  2757. command_1.issue('group', name);
  2758. }
  2759. exports.startGroup = startGroup;
  2760. /**
  2761. * End an output group.
  2762. */
  2763. function endGroup() {
  2764. command_1.issue('endgroup');
  2765. }
  2766. exports.endGroup = endGroup;
  2767. /**
  2768. * Wrap an asynchronous function call in a group.
  2769. *
  2770. * Returns the same type as the function itself.
  2771. *
  2772. * @param name The name of the group
  2773. * @param fn The function to wrap in the group
  2774. */
  2775. function group(name, fn) {
  2776. return __awaiter(this, void 0, void 0, function* () {
  2777. startGroup(name);
  2778. let result;
  2779. try {
  2780. result = yield fn();
  2781. }
  2782. finally {
  2783. endGroup();
  2784. }
  2785. return result;
  2786. });
  2787. }
  2788. exports.group = group;
  2789. //-----------------------------------------------------------------------
  2790. // Wrapper action state
  2791. //-----------------------------------------------------------------------
  2792. /**
  2793. * Saves state for current action, the state can only be retrieved by this action's post job execution.
  2794. *
  2795. * @param name name of the state to store
  2796. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  2797. */
  2798. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  2799. function saveState(name, value) {
  2800. const filePath = process.env['GITHUB_STATE'] || '';
  2801. if (filePath) {
  2802. return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));
  2803. }
  2804. command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));
  2805. }
  2806. exports.saveState = saveState;
  2807. /**
  2808. * Gets the value of an state set by this action's main execution.
  2809. *
  2810. * @param name name of the state to get
  2811. * @returns string
  2812. */
  2813. function getState(name) {
  2814. return process.env[`STATE_${name}`] || '';
  2815. }
  2816. exports.getState = getState;
  2817. function getIDToken(aud) {
  2818. return __awaiter(this, void 0, void 0, function* () {
  2819. return yield oidc_utils_1.OidcClient.getIDToken(aud);
  2820. });
  2821. }
  2822. exports.getIDToken = getIDToken;
  2823. /**
  2824. * Summary exports
  2825. */
  2826. var summary_1 = __nccwpck_require__(1327);
  2827. Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } }));
  2828. /**
  2829. * @deprecated use core.summary
  2830. */
  2831. var summary_2 = __nccwpck_require__(1327);
  2832. Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } }));
  2833. /**
  2834. * Path exports
  2835. */
  2836. var path_utils_1 = __nccwpck_require__(2981);
  2837. Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } }));
  2838. Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } }));
  2839. Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }));
  2840. //# sourceMappingURL=core.js.map
  2841. /***/ }),
  2842. /***/ 717:
  2843. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2844. "use strict";
  2845. // For internal use, subject to change.
  2846. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2847. if (k2 === undefined) k2 = k;
  2848. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2849. }) : (function(o, m, k, k2) {
  2850. if (k2 === undefined) k2 = k;
  2851. o[k2] = m[k];
  2852. }));
  2853. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2854. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2855. }) : function(o, v) {
  2856. o["default"] = v;
  2857. });
  2858. var __importStar = (this && this.__importStar) || function (mod) {
  2859. if (mod && mod.__esModule) return mod;
  2860. var result = {};
  2861. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2862. __setModuleDefault(result, mod);
  2863. return result;
  2864. };
  2865. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2866. exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
  2867. // We use any as a valid input type
  2868. /* eslint-disable @typescript-eslint/no-explicit-any */
  2869. const fs = __importStar(__nccwpck_require__(7147));
  2870. const os = __importStar(__nccwpck_require__(2037));
  2871. const uuid_1 = __nccwpck_require__(8974);
  2872. const utils_1 = __nccwpck_require__(5278);
  2873. function issueFileCommand(command, message) {
  2874. const filePath = process.env[`GITHUB_${command}`];
  2875. if (!filePath) {
  2876. throw new Error(`Unable to find environment variable for file command ${command}`);
  2877. }
  2878. if (!fs.existsSync(filePath)) {
  2879. throw new Error(`Missing file at path: ${filePath}`);
  2880. }
  2881. fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
  2882. encoding: 'utf8'
  2883. });
  2884. }
  2885. exports.issueFileCommand = issueFileCommand;
  2886. function prepareKeyValueMessage(key, value) {
  2887. const delimiter = `ghadelimiter_${uuid_1.v4()}`;
  2888. const convertedValue = utils_1.toCommandValue(value);
  2889. // These should realistically never happen, but just in case someone finds a
  2890. // way to exploit uuid generation let's not allow keys or values that contain
  2891. // the delimiter.
  2892. if (key.includes(delimiter)) {
  2893. throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
  2894. }
  2895. if (convertedValue.includes(delimiter)) {
  2896. throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
  2897. }
  2898. return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;
  2899. }
  2900. exports.prepareKeyValueMessage = prepareKeyValueMessage;
  2901. //# sourceMappingURL=file-command.js.map
  2902. /***/ }),
  2903. /***/ 8041:
  2904. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2905. "use strict";
  2906. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2907. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2908. return new (P || (P = Promise))(function (resolve, reject) {
  2909. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2910. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2911. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2912. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2913. });
  2914. };
  2915. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2916. exports.OidcClient = void 0;
  2917. const http_client_1 = __nccwpck_require__(6255);
  2918. const auth_1 = __nccwpck_require__(5526);
  2919. const core_1 = __nccwpck_require__(2186);
  2920. class OidcClient {
  2921. static createHttpClient(allowRetry = true, maxRetry = 10) {
  2922. const requestOptions = {
  2923. allowRetries: allowRetry,
  2924. maxRetries: maxRetry
  2925. };
  2926. return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions);
  2927. }
  2928. static getRequestToken() {
  2929. const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'];
  2930. if (!token) {
  2931. throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable');
  2932. }
  2933. return token;
  2934. }
  2935. static getIDTokenUrl() {
  2936. const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL'];
  2937. if (!runtimeUrl) {
  2938. throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable');
  2939. }
  2940. return runtimeUrl;
  2941. }
  2942. static getCall(id_token_url) {
  2943. var _a;
  2944. return __awaiter(this, void 0, void 0, function* () {
  2945. const httpclient = OidcClient.createHttpClient();
  2946. const res = yield httpclient
  2947. .getJson(id_token_url)
  2948. .catch(error => {
  2949. throw new Error(`Failed to get ID Token. \n
  2950. Error Code : ${error.statusCode}\n
  2951. Error Message: ${error.result.message}`);
  2952. });
  2953. const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
  2954. if (!id_token) {
  2955. throw new Error('Response json body do not have ID Token field');
  2956. }
  2957. return id_token;
  2958. });
  2959. }
  2960. static getIDToken(audience) {
  2961. return __awaiter(this, void 0, void 0, function* () {
  2962. try {
  2963. // New ID Token is requested from action service
  2964. let id_token_url = OidcClient.getIDTokenUrl();
  2965. if (audience) {
  2966. const encodedAudience = encodeURIComponent(audience);
  2967. id_token_url = `${id_token_url}&audience=${encodedAudience}`;
  2968. }
  2969. core_1.debug(`ID token url is ${id_token_url}`);
  2970. const id_token = yield OidcClient.getCall(id_token_url);
  2971. core_1.setSecret(id_token);
  2972. return id_token;
  2973. }
  2974. catch (error) {
  2975. throw new Error(`Error message: ${error.message}`);
  2976. }
  2977. });
  2978. }
  2979. }
  2980. exports.OidcClient = OidcClient;
  2981. //# sourceMappingURL=oidc-utils.js.map
  2982. /***/ }),
  2983. /***/ 2981:
  2984. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2985. "use strict";
  2986. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2987. if (k2 === undefined) k2 = k;
  2988. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2989. }) : (function(o, m, k, k2) {
  2990. if (k2 === undefined) k2 = k;
  2991. o[k2] = m[k];
  2992. }));
  2993. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2994. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2995. }) : function(o, v) {
  2996. o["default"] = v;
  2997. });
  2998. var __importStar = (this && this.__importStar) || function (mod) {
  2999. if (mod && mod.__esModule) return mod;
  3000. var result = {};
  3001. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3002. __setModuleDefault(result, mod);
  3003. return result;
  3004. };
  3005. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3006. exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;
  3007. const path = __importStar(__nccwpck_require__(1017));
  3008. /**
  3009. * toPosixPath converts the given path to the posix form. On Windows, \\ will be
  3010. * replaced with /.
  3011. *
  3012. * @param pth. Path to transform.
  3013. * @return string Posix path.
  3014. */
  3015. function toPosixPath(pth) {
  3016. return pth.replace(/[\\]/g, '/');
  3017. }
  3018. exports.toPosixPath = toPosixPath;
  3019. /**
  3020. * toWin32Path converts the given path to the win32 form. On Linux, / will be
  3021. * replaced with \\.
  3022. *
  3023. * @param pth. Path to transform.
  3024. * @return string Win32 path.
  3025. */
  3026. function toWin32Path(pth) {
  3027. return pth.replace(/[/]/g, '\\');
  3028. }
  3029. exports.toWin32Path = toWin32Path;
  3030. /**
  3031. * toPlatformPath converts the given path to a platform-specific path. It does
  3032. * this by replacing instances of / and \ with the platform-specific path
  3033. * separator.
  3034. *
  3035. * @param pth The path to platformize.
  3036. * @return string The platform-specific path.
  3037. */
  3038. function toPlatformPath(pth) {
  3039. return pth.replace(/[/\\]/g, path.sep);
  3040. }
  3041. exports.toPlatformPath = toPlatformPath;
  3042. //# sourceMappingURL=path-utils.js.map
  3043. /***/ }),
  3044. /***/ 1327:
  3045. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  3046. "use strict";
  3047. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3048. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3049. return new (P || (P = Promise))(function (resolve, reject) {
  3050. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  3051. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  3052. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  3053. step((generator = generator.apply(thisArg, _arguments || [])).next());
  3054. });
  3055. };
  3056. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3057. exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;
  3058. const os_1 = __nccwpck_require__(2037);
  3059. const fs_1 = __nccwpck_require__(7147);
  3060. const { access, appendFile, writeFile } = fs_1.promises;
  3061. exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY';
  3062. exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary';
  3063. class Summary {
  3064. constructor() {
  3065. this._buffer = '';
  3066. }
  3067. /**
  3068. * Finds the summary file path from the environment, rejects if env var is not found or file does not exist
  3069. * Also checks r/w permissions.
  3070. *
  3071. * @returns step summary file path
  3072. */
  3073. filePath() {
  3074. return __awaiter(this, void 0, void 0, function* () {
  3075. if (this._filePath) {
  3076. return this._filePath;
  3077. }
  3078. const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];
  3079. if (!pathFromEnv) {
  3080. throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);
  3081. }
  3082. try {
  3083. yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);
  3084. }
  3085. catch (_a) {
  3086. throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);
  3087. }
  3088. this._filePath = pathFromEnv;
  3089. return this._filePath;
  3090. });
  3091. }
  3092. /**
  3093. * Wraps content in an HTML tag, adding any HTML attributes
  3094. *
  3095. * @param {string} tag HTML tag to wrap
  3096. * @param {string | null} content content within the tag
  3097. * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add
  3098. *
  3099. * @returns {string} content wrapped in HTML element
  3100. */
  3101. wrap(tag, content, attrs = {}) {
  3102. const htmlAttrs = Object.entries(attrs)
  3103. .map(([key, value]) => ` ${key}="${value}"`)
  3104. .join('');
  3105. if (!content) {
  3106. return `<${tag}${htmlAttrs}>`;
  3107. }
  3108. return `<${tag}${htmlAttrs}>${content}</${tag}>`;
  3109. }
  3110. /**
  3111. * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.
  3112. *
  3113. * @param {SummaryWriteOptions} [options] (optional) options for write operation
  3114. *
  3115. * @returns {Promise<Summary>} summary instance
  3116. */
  3117. write(options) {
  3118. return __awaiter(this, void 0, void 0, function* () {
  3119. const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
  3120. const filePath = yield this.filePath();
  3121. const writeFunc = overwrite ? writeFile : appendFile;
  3122. yield writeFunc(filePath, this._buffer, { encoding: 'utf8' });
  3123. return this.emptyBuffer();
  3124. });
  3125. }
  3126. /**
  3127. * Clears the summary buffer and wipes the summary file
  3128. *
  3129. * @returns {Summary} summary instance
  3130. */
  3131. clear() {
  3132. return __awaiter(this, void 0, void 0, function* () {
  3133. return this.emptyBuffer().write({ overwrite: true });
  3134. });
  3135. }
  3136. /**
  3137. * Returns the current summary buffer as a string
  3138. *
  3139. * @returns {string} string of summary buffer
  3140. */
  3141. stringify() {
  3142. return this._buffer;
  3143. }
  3144. /**
  3145. * If the summary buffer is empty
  3146. *
  3147. * @returns {boolen} true if the buffer is empty
  3148. */
  3149. isEmptyBuffer() {
  3150. return this._buffer.length === 0;
  3151. }
  3152. /**
  3153. * Resets the summary buffer without writing to summary file
  3154. *
  3155. * @returns {Summary} summary instance
  3156. */
  3157. emptyBuffer() {
  3158. this._buffer = '';
  3159. return this;
  3160. }
  3161. /**
  3162. * Adds raw text to the summary buffer
  3163. *
  3164. * @param {string} text content to add
  3165. * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)
  3166. *
  3167. * @returns {Summary} summary instance
  3168. */
  3169. addRaw(text, addEOL = false) {
  3170. this._buffer += text;
  3171. return addEOL ? this.addEOL() : this;
  3172. }
  3173. /**
  3174. * Adds the operating system-specific end-of-line marker to the buffer
  3175. *
  3176. * @returns {Summary} summary instance
  3177. */
  3178. addEOL() {
  3179. return this.addRaw(os_1.EOL);
  3180. }
  3181. /**
  3182. * Adds an HTML codeblock to the summary buffer
  3183. *
  3184. * @param {string} code content to render within fenced code block
  3185. * @param {string} lang (optional) language to syntax highlight code
  3186. *
  3187. * @returns {Summary} summary instance
  3188. */
  3189. addCodeBlock(code, lang) {
  3190. const attrs = Object.assign({}, (lang && { lang }));
  3191. const element = this.wrap('pre', this.wrap('code', code), attrs);
  3192. return this.addRaw(element).addEOL();
  3193. }
  3194. /**
  3195. * Adds an HTML list to the summary buffer
  3196. *
  3197. * @param {string[]} items list of items to render
  3198. * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)
  3199. *
  3200. * @returns {Summary} summary instance
  3201. */
  3202. addList(items, ordered = false) {
  3203. const tag = ordered ? 'ol' : 'ul';
  3204. const listItems = items.map(item => this.wrap('li', item)).join('');
  3205. const element = this.wrap(tag, listItems);
  3206. return this.addRaw(element).addEOL();
  3207. }
  3208. /**
  3209. * Adds an HTML table to the summary buffer
  3210. *
  3211. * @param {SummaryTableCell[]} rows table rows
  3212. *
  3213. * @returns {Summary} summary instance
  3214. */
  3215. addTable(rows) {
  3216. const tableBody = rows
  3217. .map(row => {
  3218. const cells = row
  3219. .map(cell => {
  3220. if (typeof cell === 'string') {
  3221. return this.wrap('td', cell);
  3222. }
  3223. const { header, data, colspan, rowspan } = cell;
  3224. const tag = header ? 'th' : 'td';
  3225. const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan }));
  3226. return this.wrap(tag, data, attrs);
  3227. })
  3228. .join('');
  3229. return this.wrap('tr', cells);
  3230. })
  3231. .join('');
  3232. const element = this.wrap('table', tableBody);
  3233. return this.addRaw(element).addEOL();
  3234. }
  3235. /**
  3236. * Adds a collapsable HTML details element to the summary buffer
  3237. *
  3238. * @param {string} label text for the closed state
  3239. * @param {string} content collapsable content
  3240. *
  3241. * @returns {Summary} summary instance
  3242. */
  3243. addDetails(label, content) {
  3244. const element = this.wrap('details', this.wrap('summary', label) + content);
  3245. return this.addRaw(element).addEOL();
  3246. }
  3247. /**
  3248. * Adds an HTML image tag to the summary buffer
  3249. *
  3250. * @param {string} src path to the image you to embed
  3251. * @param {string} alt text description of the image
  3252. * @param {SummaryImageOptions} options (optional) addition image attributes
  3253. *
  3254. * @returns {Summary} summary instance
  3255. */
  3256. addImage(src, alt, options) {
  3257. const { width, height } = options || {};
  3258. const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height }));
  3259. const element = this.wrap('img', null, Object.assign({ src, alt }, attrs));
  3260. return this.addRaw(element).addEOL();
  3261. }
  3262. /**
  3263. * Adds an HTML section heading element
  3264. *
  3265. * @param {string} text heading text
  3266. * @param {number | string} [level=1] (optional) the heading level, default: 1
  3267. *
  3268. * @returns {Summary} summary instance
  3269. */
  3270. addHeading(text, level) {
  3271. const tag = `h${level}`;
  3272. const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag)
  3273. ? tag
  3274. : 'h1';
  3275. const element = this.wrap(allowedTag, text);
  3276. return this.addRaw(element).addEOL();
  3277. }
  3278. /**
  3279. * Adds an HTML thematic break (<hr>) to the summary buffer
  3280. *
  3281. * @returns {Summary} summary instance
  3282. */
  3283. addSeparator() {
  3284. const element = this.wrap('hr', null);
  3285. return this.addRaw(element).addEOL();
  3286. }
  3287. /**
  3288. * Adds an HTML line break (<br>) to the summary buffer
  3289. *
  3290. * @returns {Summary} summary instance
  3291. */
  3292. addBreak() {
  3293. const element = this.wrap('br', null);
  3294. return this.addRaw(element).addEOL();
  3295. }
  3296. /**
  3297. * Adds an HTML blockquote to the summary buffer
  3298. *
  3299. * @param {string} text quote text
  3300. * @param {string} cite (optional) citation url
  3301. *
  3302. * @returns {Summary} summary instance
  3303. */
  3304. addQuote(text, cite) {
  3305. const attrs = Object.assign({}, (cite && { cite }));
  3306. const element = this.wrap('blockquote', text, attrs);
  3307. return this.addRaw(element).addEOL();
  3308. }
  3309. /**
  3310. * Adds an HTML anchor tag to the summary buffer
  3311. *
  3312. * @param {string} text link text/content
  3313. * @param {string} href hyperlink
  3314. *
  3315. * @returns {Summary} summary instance
  3316. */
  3317. addLink(text, href) {
  3318. const element = this.wrap('a', text, { href });
  3319. return this.addRaw(element).addEOL();
  3320. }
  3321. }
  3322. const _summary = new Summary();
  3323. /**
  3324. * @deprecated use `core.summary`
  3325. */
  3326. exports.markdownSummary = _summary;
  3327. exports.summary = _summary;
  3328. //# sourceMappingURL=summary.js.map
  3329. /***/ }),
  3330. /***/ 5278:
  3331. /***/ ((__unused_webpack_module, exports) => {
  3332. "use strict";
  3333. // We use any as a valid input type
  3334. /* eslint-disable @typescript-eslint/no-explicit-any */
  3335. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3336. exports.toCommandProperties = exports.toCommandValue = void 0;
  3337. /**
  3338. * Sanitizes an input into a string so it can be passed into issueCommand safely
  3339. * @param input input to sanitize into a string
  3340. */
  3341. function toCommandValue(input) {
  3342. if (input === null || input === undefined) {
  3343. return '';
  3344. }
  3345. else if (typeof input === 'string' || input instanceof String) {
  3346. return input;
  3347. }
  3348. return JSON.stringify(input);
  3349. }
  3350. exports.toCommandValue = toCommandValue;
  3351. /**
  3352. *
  3353. * @param annotationProperties
  3354. * @returns The command properties to send with the actual annotation command
  3355. * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
  3356. */
  3357. function toCommandProperties(annotationProperties) {
  3358. if (!Object.keys(annotationProperties).length) {
  3359. return {};
  3360. }
  3361. return {
  3362. title: annotationProperties.title,
  3363. file: annotationProperties.file,
  3364. line: annotationProperties.startLine,
  3365. endLine: annotationProperties.endLine,
  3366. col: annotationProperties.startColumn,
  3367. endColumn: annotationProperties.endColumn
  3368. };
  3369. }
  3370. exports.toCommandProperties = toCommandProperties;
  3371. //# sourceMappingURL=utils.js.map
  3372. /***/ }),
  3373. /***/ 8974:
  3374. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3375. "use strict";
  3376. Object.defineProperty(exports, "__esModule", ({
  3377. value: true
  3378. }));
  3379. Object.defineProperty(exports, "v1", ({
  3380. enumerable: true,
  3381. get: function () {
  3382. return _v.default;
  3383. }
  3384. }));
  3385. Object.defineProperty(exports, "v3", ({
  3386. enumerable: true,
  3387. get: function () {
  3388. return _v2.default;
  3389. }
  3390. }));
  3391. Object.defineProperty(exports, "v4", ({
  3392. enumerable: true,
  3393. get: function () {
  3394. return _v3.default;
  3395. }
  3396. }));
  3397. Object.defineProperty(exports, "v5", ({
  3398. enumerable: true,
  3399. get: function () {
  3400. return _v4.default;
  3401. }
  3402. }));
  3403. Object.defineProperty(exports, "NIL", ({
  3404. enumerable: true,
  3405. get: function () {
  3406. return _nil.default;
  3407. }
  3408. }));
  3409. Object.defineProperty(exports, "version", ({
  3410. enumerable: true,
  3411. get: function () {
  3412. return _version.default;
  3413. }
  3414. }));
  3415. Object.defineProperty(exports, "validate", ({
  3416. enumerable: true,
  3417. get: function () {
  3418. return _validate.default;
  3419. }
  3420. }));
  3421. Object.defineProperty(exports, "stringify", ({
  3422. enumerable: true,
  3423. get: function () {
  3424. return _stringify.default;
  3425. }
  3426. }));
  3427. Object.defineProperty(exports, "parse", ({
  3428. enumerable: true,
  3429. get: function () {
  3430. return _parse.default;
  3431. }
  3432. }));
  3433. var _v = _interopRequireDefault(__nccwpck_require__(1595));
  3434. var _v2 = _interopRequireDefault(__nccwpck_require__(6993));
  3435. var _v3 = _interopRequireDefault(__nccwpck_require__(1472));
  3436. var _v4 = _interopRequireDefault(__nccwpck_require__(6217));
  3437. var _nil = _interopRequireDefault(__nccwpck_require__(2381));
  3438. var _version = _interopRequireDefault(__nccwpck_require__(427));
  3439. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  3440. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  3441. var _parse = _interopRequireDefault(__nccwpck_require__(6385));
  3442. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3443. /***/ }),
  3444. /***/ 5842:
  3445. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3446. "use strict";
  3447. Object.defineProperty(exports, "__esModule", ({
  3448. value: true
  3449. }));
  3450. exports["default"] = void 0;
  3451. var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
  3452. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3453. function md5(bytes) {
  3454. if (Array.isArray(bytes)) {
  3455. bytes = Buffer.from(bytes);
  3456. } else if (typeof bytes === 'string') {
  3457. bytes = Buffer.from(bytes, 'utf8');
  3458. }
  3459. return _crypto.default.createHash('md5').update(bytes).digest();
  3460. }
  3461. var _default = md5;
  3462. exports["default"] = _default;
  3463. /***/ }),
  3464. /***/ 2381:
  3465. /***/ ((__unused_webpack_module, exports) => {
  3466. "use strict";
  3467. Object.defineProperty(exports, "__esModule", ({
  3468. value: true
  3469. }));
  3470. exports["default"] = void 0;
  3471. var _default = '00000000-0000-0000-0000-000000000000';
  3472. exports["default"] = _default;
  3473. /***/ }),
  3474. /***/ 6385:
  3475. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3476. "use strict";
  3477. Object.defineProperty(exports, "__esModule", ({
  3478. value: true
  3479. }));
  3480. exports["default"] = void 0;
  3481. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  3482. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3483. function parse(uuid) {
  3484. if (!(0, _validate.default)(uuid)) {
  3485. throw TypeError('Invalid UUID');
  3486. }
  3487. let v;
  3488. const arr = new Uint8Array(16); // Parse ########-....-....-....-............
  3489. arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
  3490. arr[1] = v >>> 16 & 0xff;
  3491. arr[2] = v >>> 8 & 0xff;
  3492. arr[3] = v & 0xff; // Parse ........-####-....-....-............
  3493. arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
  3494. arr[5] = v & 0xff; // Parse ........-....-####-....-............
  3495. arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
  3496. arr[7] = v & 0xff; // Parse ........-....-....-####-............
  3497. arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
  3498. arr[9] = v & 0xff; // Parse ........-....-....-....-############
  3499. // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
  3500. arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
  3501. arr[11] = v / 0x100000000 & 0xff;
  3502. arr[12] = v >>> 24 & 0xff;
  3503. arr[13] = v >>> 16 & 0xff;
  3504. arr[14] = v >>> 8 & 0xff;
  3505. arr[15] = v & 0xff;
  3506. return arr;
  3507. }
  3508. var _default = parse;
  3509. exports["default"] = _default;
  3510. /***/ }),
  3511. /***/ 6230:
  3512. /***/ ((__unused_webpack_module, exports) => {
  3513. "use strict";
  3514. Object.defineProperty(exports, "__esModule", ({
  3515. value: true
  3516. }));
  3517. exports["default"] = void 0;
  3518. 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;
  3519. exports["default"] = _default;
  3520. /***/ }),
  3521. /***/ 9784:
  3522. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3523. "use strict";
  3524. Object.defineProperty(exports, "__esModule", ({
  3525. value: true
  3526. }));
  3527. exports["default"] = rng;
  3528. var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
  3529. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3530. const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
  3531. let poolPtr = rnds8Pool.length;
  3532. function rng() {
  3533. if (poolPtr > rnds8Pool.length - 16) {
  3534. _crypto.default.randomFillSync(rnds8Pool);
  3535. poolPtr = 0;
  3536. }
  3537. return rnds8Pool.slice(poolPtr, poolPtr += 16);
  3538. }
  3539. /***/ }),
  3540. /***/ 8844:
  3541. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3542. "use strict";
  3543. Object.defineProperty(exports, "__esModule", ({
  3544. value: true
  3545. }));
  3546. exports["default"] = void 0;
  3547. var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
  3548. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3549. function sha1(bytes) {
  3550. if (Array.isArray(bytes)) {
  3551. bytes = Buffer.from(bytes);
  3552. } else if (typeof bytes === 'string') {
  3553. bytes = Buffer.from(bytes, 'utf8');
  3554. }
  3555. return _crypto.default.createHash('sha1').update(bytes).digest();
  3556. }
  3557. var _default = sha1;
  3558. exports["default"] = _default;
  3559. /***/ }),
  3560. /***/ 1458:
  3561. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3562. "use strict";
  3563. Object.defineProperty(exports, "__esModule", ({
  3564. value: true
  3565. }));
  3566. exports["default"] = void 0;
  3567. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  3568. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3569. /**
  3570. * Convert array of 16 byte values to UUID string format of the form:
  3571. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  3572. */
  3573. const byteToHex = [];
  3574. for (let i = 0; i < 256; ++i) {
  3575. byteToHex.push((i + 0x100).toString(16).substr(1));
  3576. }
  3577. function stringify(arr, offset = 0) {
  3578. // Note: Be careful editing this code! It's been tuned for performance
  3579. // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
  3580. 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
  3581. // of the following:
  3582. // - One or more input array values don't map to a hex octet (leading to
  3583. // "undefined" in the uuid)
  3584. // - Invalid input values for the RFC `version` or `variant` fields
  3585. if (!(0, _validate.default)(uuid)) {
  3586. throw TypeError('Stringified UUID is invalid');
  3587. }
  3588. return uuid;
  3589. }
  3590. var _default = stringify;
  3591. exports["default"] = _default;
  3592. /***/ }),
  3593. /***/ 1595:
  3594. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3595. "use strict";
  3596. Object.defineProperty(exports, "__esModule", ({
  3597. value: true
  3598. }));
  3599. exports["default"] = void 0;
  3600. var _rng = _interopRequireDefault(__nccwpck_require__(9784));
  3601. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  3602. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3603. // **`v1()` - Generate time-based UUID**
  3604. //
  3605. // Inspired by https://github.com/LiosK/UUID.js
  3606. // and http://docs.python.org/library/uuid.html
  3607. let _nodeId;
  3608. let _clockseq; // Previous uuid creation time
  3609. let _lastMSecs = 0;
  3610. let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
  3611. function v1(options, buf, offset) {
  3612. let i = buf && offset || 0;
  3613. const b = buf || new Array(16);
  3614. options = options || {};
  3615. let node = options.node || _nodeId;
  3616. let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
  3617. // specified. We do this lazily to minimize issues related to insufficient
  3618. // system entropy. See #189
  3619. if (node == null || clockseq == null) {
  3620. const seedBytes = options.random || (options.rng || _rng.default)();
  3621. if (node == null) {
  3622. // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
  3623. node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
  3624. }
  3625. if (clockseq == null) {
  3626. // Per 4.2.2, randomize (14 bit) clockseq
  3627. clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
  3628. }
  3629. } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
  3630. // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
  3631. // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
  3632. // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
  3633. let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
  3634. // cycle to simulate higher resolution clock
  3635. let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
  3636. const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
  3637. if (dt < 0 && options.clockseq === undefined) {
  3638. clockseq = clockseq + 1 & 0x3fff;
  3639. } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
  3640. // time interval
  3641. if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
  3642. nsecs = 0;
  3643. } // Per 4.2.1.2 Throw error if too many uuids are requested
  3644. if (nsecs >= 10000) {
  3645. throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
  3646. }
  3647. _lastMSecs = msecs;
  3648. _lastNSecs = nsecs;
  3649. _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
  3650. msecs += 12219292800000; // `time_low`
  3651. const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
  3652. b[i++] = tl >>> 24 & 0xff;
  3653. b[i++] = tl >>> 16 & 0xff;
  3654. b[i++] = tl >>> 8 & 0xff;
  3655. b[i++] = tl & 0xff; // `time_mid`
  3656. const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
  3657. b[i++] = tmh >>> 8 & 0xff;
  3658. b[i++] = tmh & 0xff; // `time_high_and_version`
  3659. b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
  3660. b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
  3661. b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
  3662. b[i++] = clockseq & 0xff; // `node`
  3663. for (let n = 0; n < 6; ++n) {
  3664. b[i + n] = node[n];
  3665. }
  3666. return buf || (0, _stringify.default)(b);
  3667. }
  3668. var _default = v1;
  3669. exports["default"] = _default;
  3670. /***/ }),
  3671. /***/ 6993:
  3672. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3673. "use strict";
  3674. Object.defineProperty(exports, "__esModule", ({
  3675. value: true
  3676. }));
  3677. exports["default"] = void 0;
  3678. var _v = _interopRequireDefault(__nccwpck_require__(5920));
  3679. var _md = _interopRequireDefault(__nccwpck_require__(5842));
  3680. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3681. const v3 = (0, _v.default)('v3', 0x30, _md.default);
  3682. var _default = v3;
  3683. exports["default"] = _default;
  3684. /***/ }),
  3685. /***/ 5920:
  3686. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3687. "use strict";
  3688. Object.defineProperty(exports, "__esModule", ({
  3689. value: true
  3690. }));
  3691. exports["default"] = _default;
  3692. exports.URL = exports.DNS = void 0;
  3693. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  3694. var _parse = _interopRequireDefault(__nccwpck_require__(6385));
  3695. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3696. function stringToBytes(str) {
  3697. str = unescape(encodeURIComponent(str)); // UTF8 escape
  3698. const bytes = [];
  3699. for (let i = 0; i < str.length; ++i) {
  3700. bytes.push(str.charCodeAt(i));
  3701. }
  3702. return bytes;
  3703. }
  3704. const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
  3705. exports.DNS = DNS;
  3706. const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
  3707. exports.URL = URL;
  3708. function _default(name, version, hashfunc) {
  3709. function generateUUID(value, namespace, buf, offset) {
  3710. if (typeof value === 'string') {
  3711. value = stringToBytes(value);
  3712. }
  3713. if (typeof namespace === 'string') {
  3714. namespace = (0, _parse.default)(namespace);
  3715. }
  3716. if (namespace.length !== 16) {
  3717. throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
  3718. } // Compute hash of namespace and value, Per 4.3
  3719. // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
  3720. // hashfunc([...namespace, ... value])`
  3721. let bytes = new Uint8Array(16 + value.length);
  3722. bytes.set(namespace);
  3723. bytes.set(value, namespace.length);
  3724. bytes = hashfunc(bytes);
  3725. bytes[6] = bytes[6] & 0x0f | version;
  3726. bytes[8] = bytes[8] & 0x3f | 0x80;
  3727. if (buf) {
  3728. offset = offset || 0;
  3729. for (let i = 0; i < 16; ++i) {
  3730. buf[offset + i] = bytes[i];
  3731. }
  3732. return buf;
  3733. }
  3734. return (0, _stringify.default)(bytes);
  3735. } // Function#name is not settable on some platforms (#270)
  3736. try {
  3737. generateUUID.name = name; // eslint-disable-next-line no-empty
  3738. } catch (err) {} // For CommonJS default export support
  3739. generateUUID.DNS = DNS;
  3740. generateUUID.URL = URL;
  3741. return generateUUID;
  3742. }
  3743. /***/ }),
  3744. /***/ 1472:
  3745. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3746. "use strict";
  3747. Object.defineProperty(exports, "__esModule", ({
  3748. value: true
  3749. }));
  3750. exports["default"] = void 0;
  3751. var _rng = _interopRequireDefault(__nccwpck_require__(9784));
  3752. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  3753. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3754. function v4(options, buf, offset) {
  3755. options = options || {};
  3756. const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  3757. rnds[6] = rnds[6] & 0x0f | 0x40;
  3758. rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
  3759. if (buf) {
  3760. offset = offset || 0;
  3761. for (let i = 0; i < 16; ++i) {
  3762. buf[offset + i] = rnds[i];
  3763. }
  3764. return buf;
  3765. }
  3766. return (0, _stringify.default)(rnds);
  3767. }
  3768. var _default = v4;
  3769. exports["default"] = _default;
  3770. /***/ }),
  3771. /***/ 6217:
  3772. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3773. "use strict";
  3774. Object.defineProperty(exports, "__esModule", ({
  3775. value: true
  3776. }));
  3777. exports["default"] = void 0;
  3778. var _v = _interopRequireDefault(__nccwpck_require__(5920));
  3779. var _sha = _interopRequireDefault(__nccwpck_require__(8844));
  3780. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3781. const v5 = (0, _v.default)('v5', 0x50, _sha.default);
  3782. var _default = v5;
  3783. exports["default"] = _default;
  3784. /***/ }),
  3785. /***/ 2609:
  3786. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3787. "use strict";
  3788. Object.defineProperty(exports, "__esModule", ({
  3789. value: true
  3790. }));
  3791. exports["default"] = void 0;
  3792. var _regex = _interopRequireDefault(__nccwpck_require__(6230));
  3793. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3794. function validate(uuid) {
  3795. return typeof uuid === 'string' && _regex.default.test(uuid);
  3796. }
  3797. var _default = validate;
  3798. exports["default"] = _default;
  3799. /***/ }),
  3800. /***/ 427:
  3801. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3802. "use strict";
  3803. Object.defineProperty(exports, "__esModule", ({
  3804. value: true
  3805. }));
  3806. exports["default"] = void 0;
  3807. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  3808. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3809. function version(uuid) {
  3810. if (!(0, _validate.default)(uuid)) {
  3811. throw TypeError('Invalid UUID');
  3812. }
  3813. return parseInt(uuid.substr(14, 1), 16);
  3814. }
  3815. var _default = version;
  3816. exports["default"] = _default;
  3817. /***/ }),
  3818. /***/ 1514:
  3819. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  3820. "use strict";
  3821. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3822. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3823. return new (P || (P = Promise))(function (resolve, reject) {
  3824. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  3825. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  3826. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  3827. step((generator = generator.apply(thisArg, _arguments || [])).next());
  3828. });
  3829. };
  3830. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3831. const tr = __nccwpck_require__(8159);
  3832. /**
  3833. * Exec a command.
  3834. * Output will be streamed to the live console.
  3835. * Returns promise with return code
  3836. *
  3837. * @param commandLine command to execute (can include additional args). Must be correctly escaped.
  3838. * @param args optional arguments for tool. Escaping is handled by the lib.
  3839. * @param options optional exec options. See ExecOptions
  3840. * @returns Promise<number> exit code
  3841. */
  3842. function exec(commandLine, args, options) {
  3843. return __awaiter(this, void 0, void 0, function* () {
  3844. const commandArgs = tr.argStringToArray(commandLine);
  3845. if (commandArgs.length === 0) {
  3846. throw new Error(`Parameter 'commandLine' cannot be null or empty.`);
  3847. }
  3848. // Path to tool to execute should be first arg
  3849. const toolPath = commandArgs[0];
  3850. args = commandArgs.slice(1).concat(args || []);
  3851. const runner = new tr.ToolRunner(toolPath, args, options);
  3852. return runner.exec();
  3853. });
  3854. }
  3855. exports.exec = exec;
  3856. //# sourceMappingURL=exec.js.map
  3857. /***/ }),
  3858. /***/ 8159:
  3859. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  3860. "use strict";
  3861. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3862. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3863. return new (P || (P = Promise))(function (resolve, reject) {
  3864. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  3865. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  3866. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  3867. step((generator = generator.apply(thisArg, _arguments || [])).next());
  3868. });
  3869. };
  3870. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3871. const os = __nccwpck_require__(2037);
  3872. const events = __nccwpck_require__(2361);
  3873. const child = __nccwpck_require__(2081);
  3874. /* eslint-disable @typescript-eslint/unbound-method */
  3875. const IS_WINDOWS = process.platform === 'win32';
  3876. /*
  3877. * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.
  3878. */
  3879. class ToolRunner extends events.EventEmitter {
  3880. constructor(toolPath, args, options) {
  3881. super();
  3882. if (!toolPath) {
  3883. throw new Error("Parameter 'toolPath' cannot be null or empty.");
  3884. }
  3885. this.toolPath = toolPath;
  3886. this.args = args || [];
  3887. this.options = options || {};
  3888. }
  3889. _debug(message) {
  3890. if (this.options.listeners && this.options.listeners.debug) {
  3891. this.options.listeners.debug(message);
  3892. }
  3893. }
  3894. _getCommandString(options, noPrefix) {
  3895. const toolPath = this._getSpawnFileName();
  3896. const args = this._getSpawnArgs(options);
  3897. let cmd = noPrefix ? '' : '[command]'; // omit prefix when piped to a second tool
  3898. if (IS_WINDOWS) {
  3899. // Windows + cmd file
  3900. if (this._isCmdFile()) {
  3901. cmd += toolPath;
  3902. for (const a of args) {
  3903. cmd += ` ${a}`;
  3904. }
  3905. }
  3906. // Windows + verbatim
  3907. else if (options.windowsVerbatimArguments) {
  3908. cmd += `"${toolPath}"`;
  3909. for (const a of args) {
  3910. cmd += ` ${a}`;
  3911. }
  3912. }
  3913. // Windows (regular)
  3914. else {
  3915. cmd += this._windowsQuoteCmdArg(toolPath);
  3916. for (const a of args) {
  3917. cmd += ` ${this._windowsQuoteCmdArg(a)}`;
  3918. }
  3919. }
  3920. }
  3921. else {
  3922. // OSX/Linux - this can likely be improved with some form of quoting.
  3923. // creating processes on Unix is fundamentally different than Windows.
  3924. // on Unix, execvp() takes an arg array.
  3925. cmd += toolPath;
  3926. for (const a of args) {
  3927. cmd += ` ${a}`;
  3928. }
  3929. }
  3930. return cmd;
  3931. }
  3932. _processLineBuffer(data, strBuffer, onLine) {
  3933. try {
  3934. let s = strBuffer + data.toString();
  3935. let n = s.indexOf(os.EOL);
  3936. while (n > -1) {
  3937. const line = s.substring(0, n);
  3938. onLine(line);
  3939. // the rest of the string ...
  3940. s = s.substring(n + os.EOL.length);
  3941. n = s.indexOf(os.EOL);
  3942. }
  3943. strBuffer = s;
  3944. }
  3945. catch (err) {
  3946. // streaming lines to console is best effort. Don't fail a build.
  3947. this._debug(`error processing line. Failed with error ${err}`);
  3948. }
  3949. }
  3950. _getSpawnFileName() {
  3951. if (IS_WINDOWS) {
  3952. if (this._isCmdFile()) {
  3953. return process.env['COMSPEC'] || 'cmd.exe';
  3954. }
  3955. }
  3956. return this.toolPath;
  3957. }
  3958. _getSpawnArgs(options) {
  3959. if (IS_WINDOWS) {
  3960. if (this._isCmdFile()) {
  3961. let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;
  3962. for (const a of this.args) {
  3963. argline += ' ';
  3964. argline += options.windowsVerbatimArguments
  3965. ? a
  3966. : this._windowsQuoteCmdArg(a);
  3967. }
  3968. argline += '"';
  3969. return [argline];
  3970. }
  3971. }
  3972. return this.args;
  3973. }
  3974. _endsWith(str, end) {
  3975. return str.endsWith(end);
  3976. }
  3977. _isCmdFile() {
  3978. const upperToolPath = this.toolPath.toUpperCase();
  3979. return (this._endsWith(upperToolPath, '.CMD') ||
  3980. this._endsWith(upperToolPath, '.BAT'));
  3981. }
  3982. _windowsQuoteCmdArg(arg) {
  3983. // for .exe, apply the normal quoting rules that libuv applies
  3984. if (!this._isCmdFile()) {
  3985. return this._uvQuoteCmdArg(arg);
  3986. }
  3987. // otherwise apply quoting rules specific to the cmd.exe command line parser.
  3988. // the libuv rules are generic and are not designed specifically for cmd.exe
  3989. // command line parser.
  3990. //
  3991. // for a detailed description of the cmd.exe command line parser, refer to
  3992. // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912
  3993. // need quotes for empty arg
  3994. if (!arg) {
  3995. return '""';
  3996. }
  3997. // determine whether the arg needs to be quoted
  3998. const cmdSpecialChars = [
  3999. ' ',
  4000. '\t',
  4001. '&',
  4002. '(',
  4003. ')',
  4004. '[',
  4005. ']',
  4006. '{',
  4007. '}',
  4008. '^',
  4009. '=',
  4010. ';',
  4011. '!',
  4012. "'",
  4013. '+',
  4014. ',',
  4015. '`',
  4016. '~',
  4017. '|',
  4018. '<',
  4019. '>',
  4020. '"'
  4021. ];
  4022. let needsQuotes = false;
  4023. for (const char of arg) {
  4024. if (cmdSpecialChars.some(x => x === char)) {
  4025. needsQuotes = true;
  4026. break;
  4027. }
  4028. }
  4029. // short-circuit if quotes not needed
  4030. if (!needsQuotes) {
  4031. return arg;
  4032. }
  4033. // the following quoting rules are very similar to the rules that by libuv applies.
  4034. //
  4035. // 1) wrap the string in quotes
  4036. //
  4037. // 2) double-up quotes - i.e. " => ""
  4038. //
  4039. // this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately
  4040. // doesn't work well with a cmd.exe command line.
  4041. //
  4042. // note, replacing " with "" also works well if the arg is passed to a downstream .NET console app.
  4043. // for example, the command line:
  4044. // foo.exe "myarg:""my val"""
  4045. // is parsed by a .NET console app into an arg array:
  4046. // [ "myarg:\"my val\"" ]
  4047. // which is the same end result when applying libuv quoting rules. although the actual
  4048. // command line from libuv quoting rules would look like:
  4049. // foo.exe "myarg:\"my val\""
  4050. //
  4051. // 3) double-up slashes that precede a quote,
  4052. // e.g. hello \world => "hello \world"
  4053. // hello\"world => "hello\\""world"
  4054. // hello\\"world => "hello\\\\""world"
  4055. // hello world\ => "hello world\\"
  4056. //
  4057. // technically this is not required for a cmd.exe command line, or the batch argument parser.
  4058. // the reasons for including this as a .cmd quoting rule are:
  4059. //
  4060. // a) this is optimized for the scenario where the argument is passed from the .cmd file to an
  4061. // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.
  4062. //
  4063. // b) it's what we've been doing previously (by deferring to node default behavior) and we
  4064. // haven't heard any complaints about that aspect.
  4065. //
  4066. // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be
  4067. // escaped when used on the command line directly - even though within a .cmd file % can be escaped
  4068. // by using %%.
  4069. //
  4070. // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts
  4071. // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.
  4072. //
  4073. // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would
  4074. // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the
  4075. // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args
  4076. // to an external program.
  4077. //
  4078. // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.
  4079. // % can be escaped within a .cmd file.
  4080. let reverse = '"';
  4081. let quoteHit = true;
  4082. for (let i = arg.length; i > 0; i--) {
  4083. // walk the string in reverse
  4084. reverse += arg[i - 1];
  4085. if (quoteHit && arg[i - 1] === '\\') {
  4086. reverse += '\\'; // double the slash
  4087. }
  4088. else if (arg[i - 1] === '"') {
  4089. quoteHit = true;
  4090. reverse += '"'; // double the quote
  4091. }
  4092. else {
  4093. quoteHit = false;
  4094. }
  4095. }
  4096. reverse += '"';
  4097. return reverse
  4098. .split('')
  4099. .reverse()
  4100. .join('');
  4101. }
  4102. _uvQuoteCmdArg(arg) {
  4103. // Tool runner wraps child_process.spawn() and needs to apply the same quoting as
  4104. // Node in certain cases where the undocumented spawn option windowsVerbatimArguments
  4105. // is used.
  4106. //
  4107. // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,
  4108. // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),
  4109. // pasting copyright notice from Node within this function:
  4110. //
  4111. // Copyright Joyent, Inc. and other Node contributors. All rights reserved.
  4112. //
  4113. // Permission is hereby granted, free of charge, to any person obtaining a copy
  4114. // of this software and associated documentation files (the "Software"), to
  4115. // deal in the Software without restriction, including without limitation the
  4116. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  4117. // sell copies of the Software, and to permit persons to whom the Software is
  4118. // furnished to do so, subject to the following conditions:
  4119. //
  4120. // The above copyright notice and this permission notice shall be included in
  4121. // all copies or substantial portions of the Software.
  4122. //
  4123. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  4124. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  4125. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  4126. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  4127. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  4128. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  4129. // IN THE SOFTWARE.
  4130. if (!arg) {
  4131. // Need double quotation for empty argument
  4132. return '""';
  4133. }
  4134. if (!arg.includes(' ') && !arg.includes('\t') && !arg.includes('"')) {
  4135. // No quotation needed
  4136. return arg;
  4137. }
  4138. if (!arg.includes('"') && !arg.includes('\\')) {
  4139. // No embedded double quotes or backslashes, so I can just wrap
  4140. // quote marks around the whole thing.
  4141. return `"${arg}"`;
  4142. }
  4143. // Expected input/output:
  4144. // input : hello"world
  4145. // output: "hello\"world"
  4146. // input : hello""world
  4147. // output: "hello\"\"world"
  4148. // input : hello\world
  4149. // output: hello\world
  4150. // input : hello\\world
  4151. // output: hello\\world
  4152. // input : hello\"world
  4153. // output: "hello\\\"world"
  4154. // input : hello\\"world
  4155. // output: "hello\\\\\"world"
  4156. // input : hello world\
  4157. // output: "hello world\\" - note the comment in libuv actually reads "hello world\"
  4158. // but it appears the comment is wrong, it should be "hello world\\"
  4159. let reverse = '"';
  4160. let quoteHit = true;
  4161. for (let i = arg.length; i > 0; i--) {
  4162. // walk the string in reverse
  4163. reverse += arg[i - 1];
  4164. if (quoteHit && arg[i - 1] === '\\') {
  4165. reverse += '\\';
  4166. }
  4167. else if (arg[i - 1] === '"') {
  4168. quoteHit = true;
  4169. reverse += '\\';
  4170. }
  4171. else {
  4172. quoteHit = false;
  4173. }
  4174. }
  4175. reverse += '"';
  4176. return reverse
  4177. .split('')
  4178. .reverse()
  4179. .join('');
  4180. }
  4181. _cloneExecOptions(options) {
  4182. options = options || {};
  4183. const result = {
  4184. cwd: options.cwd || process.cwd(),
  4185. env: options.env || process.env,
  4186. silent: options.silent || false,
  4187. windowsVerbatimArguments: options.windowsVerbatimArguments || false,
  4188. failOnStdErr: options.failOnStdErr || false,
  4189. ignoreReturnCode: options.ignoreReturnCode || false,
  4190. delay: options.delay || 10000
  4191. };
  4192. result.outStream = options.outStream || process.stdout;
  4193. result.errStream = options.errStream || process.stderr;
  4194. return result;
  4195. }
  4196. _getSpawnOptions(options, toolPath) {
  4197. options = options || {};
  4198. const result = {};
  4199. result.cwd = options.cwd;
  4200. result.env = options.env;
  4201. result['windowsVerbatimArguments'] =
  4202. options.windowsVerbatimArguments || this._isCmdFile();
  4203. if (options.windowsVerbatimArguments) {
  4204. result.argv0 = `"${toolPath}"`;
  4205. }
  4206. return result;
  4207. }
  4208. /**
  4209. * Exec a tool.
  4210. * Output will be streamed to the live console.
  4211. * Returns promise with return code
  4212. *
  4213. * @param tool path to tool to exec
  4214. * @param options optional exec options. See ExecOptions
  4215. * @returns number
  4216. */
  4217. exec() {
  4218. return __awaiter(this, void 0, void 0, function* () {
  4219. return new Promise((resolve, reject) => {
  4220. this._debug(`exec tool: ${this.toolPath}`);
  4221. this._debug('arguments:');
  4222. for (const arg of this.args) {
  4223. this._debug(` ${arg}`);
  4224. }
  4225. const optionsNonNull = this._cloneExecOptions(this.options);
  4226. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  4227. optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os.EOL);
  4228. }
  4229. const state = new ExecState(optionsNonNull, this.toolPath);
  4230. state.on('debug', (message) => {
  4231. this._debug(message);
  4232. });
  4233. const fileName = this._getSpawnFileName();
  4234. const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));
  4235. const stdbuffer = '';
  4236. if (cp.stdout) {
  4237. cp.stdout.on('data', (data) => {
  4238. if (this.options.listeners && this.options.listeners.stdout) {
  4239. this.options.listeners.stdout(data);
  4240. }
  4241. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  4242. optionsNonNull.outStream.write(data);
  4243. }
  4244. this._processLineBuffer(data, stdbuffer, (line) => {
  4245. if (this.options.listeners && this.options.listeners.stdline) {
  4246. this.options.listeners.stdline(line);
  4247. }
  4248. });
  4249. });
  4250. }
  4251. const errbuffer = '';
  4252. if (cp.stderr) {
  4253. cp.stderr.on('data', (data) => {
  4254. state.processStderr = true;
  4255. if (this.options.listeners && this.options.listeners.stderr) {
  4256. this.options.listeners.stderr(data);
  4257. }
  4258. if (!optionsNonNull.silent &&
  4259. optionsNonNull.errStream &&
  4260. optionsNonNull.outStream) {
  4261. const s = optionsNonNull.failOnStdErr
  4262. ? optionsNonNull.errStream
  4263. : optionsNonNull.outStream;
  4264. s.write(data);
  4265. }
  4266. this._processLineBuffer(data, errbuffer, (line) => {
  4267. if (this.options.listeners && this.options.listeners.errline) {
  4268. this.options.listeners.errline(line);
  4269. }
  4270. });
  4271. });
  4272. }
  4273. cp.on('error', (err) => {
  4274. state.processError = err.message;
  4275. state.processExited = true;
  4276. state.processClosed = true;
  4277. state.CheckComplete();
  4278. });
  4279. cp.on('exit', (code) => {
  4280. state.processExitCode = code;
  4281. state.processExited = true;
  4282. this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);
  4283. state.CheckComplete();
  4284. });
  4285. cp.on('close', (code) => {
  4286. state.processExitCode = code;
  4287. state.processExited = true;
  4288. state.processClosed = true;
  4289. this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);
  4290. state.CheckComplete();
  4291. });
  4292. state.on('done', (error, exitCode) => {
  4293. if (stdbuffer.length > 0) {
  4294. this.emit('stdline', stdbuffer);
  4295. }
  4296. if (errbuffer.length > 0) {
  4297. this.emit('errline', errbuffer);
  4298. }
  4299. cp.removeAllListeners();
  4300. if (error) {
  4301. reject(error);
  4302. }
  4303. else {
  4304. resolve(exitCode);
  4305. }
  4306. });
  4307. });
  4308. });
  4309. }
  4310. }
  4311. exports.ToolRunner = ToolRunner;
  4312. /**
  4313. * Convert an arg string to an array of args. Handles escaping
  4314. *
  4315. * @param argString string of arguments
  4316. * @returns string[] array of arguments
  4317. */
  4318. function argStringToArray(argString) {
  4319. const args = [];
  4320. let inQuotes = false;
  4321. let escaped = false;
  4322. let arg = '';
  4323. function append(c) {
  4324. // we only escape double quotes.
  4325. if (escaped && c !== '"') {
  4326. arg += '\\';
  4327. }
  4328. arg += c;
  4329. escaped = false;
  4330. }
  4331. for (let i = 0; i < argString.length; i++) {
  4332. const c = argString.charAt(i);
  4333. if (c === '"') {
  4334. if (!escaped) {
  4335. inQuotes = !inQuotes;
  4336. }
  4337. else {
  4338. append(c);
  4339. }
  4340. continue;
  4341. }
  4342. if (c === '\\' && escaped) {
  4343. append(c);
  4344. continue;
  4345. }
  4346. if (c === '\\' && inQuotes) {
  4347. escaped = true;
  4348. continue;
  4349. }
  4350. if (c === ' ' && !inQuotes) {
  4351. if (arg.length > 0) {
  4352. args.push(arg);
  4353. arg = '';
  4354. }
  4355. continue;
  4356. }
  4357. append(c);
  4358. }
  4359. if (arg.length > 0) {
  4360. args.push(arg.trim());
  4361. }
  4362. return args;
  4363. }
  4364. exports.argStringToArray = argStringToArray;
  4365. class ExecState extends events.EventEmitter {
  4366. constructor(options, toolPath) {
  4367. super();
  4368. this.processClosed = false; // tracks whether the process has exited and stdio is closed
  4369. this.processError = '';
  4370. this.processExitCode = 0;
  4371. this.processExited = false; // tracks whether the process has exited
  4372. this.processStderr = false; // tracks whether stderr was written to
  4373. this.delay = 10000; // 10 seconds
  4374. this.done = false;
  4375. this.timeout = null;
  4376. if (!toolPath) {
  4377. throw new Error('toolPath must not be empty');
  4378. }
  4379. this.options = options;
  4380. this.toolPath = toolPath;
  4381. if (options.delay) {
  4382. this.delay = options.delay;
  4383. }
  4384. }
  4385. CheckComplete() {
  4386. if (this.done) {
  4387. return;
  4388. }
  4389. if (this.processClosed) {
  4390. this._setResult();
  4391. }
  4392. else if (this.processExited) {
  4393. this.timeout = setTimeout(ExecState.HandleTimeout, this.delay, this);
  4394. }
  4395. }
  4396. _debug(message) {
  4397. this.emit('debug', message);
  4398. }
  4399. _setResult() {
  4400. // determine whether there is an error
  4401. let error;
  4402. if (this.processExited) {
  4403. if (this.processError) {
  4404. 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}`);
  4405. }
  4406. else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) {
  4407. error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
  4408. }
  4409. else if (this.processStderr && this.options.failOnStdErr) {
  4410. error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);
  4411. }
  4412. }
  4413. // clear the timeout
  4414. if (this.timeout) {
  4415. clearTimeout(this.timeout);
  4416. this.timeout = null;
  4417. }
  4418. this.done = true;
  4419. this.emit('done', error, this.processExitCode);
  4420. }
  4421. static HandleTimeout(state) {
  4422. if (state.done) {
  4423. return;
  4424. }
  4425. if (!state.processClosed && state.processExited) {
  4426. const message = `The STDIO streams did not close within ${state.delay /
  4427. 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.`;
  4428. state._debug(message);
  4429. }
  4430. state._setResult();
  4431. }
  4432. }
  4433. //# sourceMappingURL=toolrunner.js.map
  4434. /***/ }),
  4435. /***/ 4087:
  4436. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4437. "use strict";
  4438. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4439. exports.Context = void 0;
  4440. const fs_1 = __nccwpck_require__(7147);
  4441. const os_1 = __nccwpck_require__(2037);
  4442. class Context {
  4443. /**
  4444. * Hydrate the context from the environment
  4445. */
  4446. constructor() {
  4447. var _a, _b, _c;
  4448. this.payload = {};
  4449. if (process.env.GITHUB_EVENT_PATH) {
  4450. if ((0, fs_1.existsSync)(process.env.GITHUB_EVENT_PATH)) {
  4451. this.payload = JSON.parse((0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' }));
  4452. }
  4453. else {
  4454. const path = process.env.GITHUB_EVENT_PATH;
  4455. process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`);
  4456. }
  4457. }
  4458. this.eventName = process.env.GITHUB_EVENT_NAME;
  4459. this.sha = process.env.GITHUB_SHA;
  4460. this.ref = process.env.GITHUB_REF;
  4461. this.workflow = process.env.GITHUB_WORKFLOW;
  4462. this.action = process.env.GITHUB_ACTION;
  4463. this.actor = process.env.GITHUB_ACTOR;
  4464. this.job = process.env.GITHUB_JOB;
  4465. this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10);
  4466. this.runId = parseInt(process.env.GITHUB_RUN_ID, 10);
  4467. this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`;
  4468. this.serverUrl = (_b = process.env.GITHUB_SERVER_URL) !== null && _b !== void 0 ? _b : `https://github.com`;
  4469. this.graphqlUrl =
  4470. (_c = process.env.GITHUB_GRAPHQL_URL) !== null && _c !== void 0 ? _c : `https://api.github.com/graphql`;
  4471. }
  4472. get issue() {
  4473. const payload = this.payload;
  4474. return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number });
  4475. }
  4476. get repo() {
  4477. if (process.env.GITHUB_REPOSITORY) {
  4478. const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
  4479. return { owner, repo };
  4480. }
  4481. if (this.payload.repository) {
  4482. return {
  4483. owner: this.payload.repository.owner.login,
  4484. repo: this.payload.repository.name
  4485. };
  4486. }
  4487. throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'");
  4488. }
  4489. }
  4490. exports.Context = Context;
  4491. //# sourceMappingURL=context.js.map
  4492. /***/ }),
  4493. /***/ 5438:
  4494. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  4495. "use strict";
  4496. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4497. if (k2 === undefined) k2 = k;
  4498. var desc = Object.getOwnPropertyDescriptor(m, k);
  4499. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  4500. desc = { enumerable: true, get: function() { return m[k]; } };
  4501. }
  4502. Object.defineProperty(o, k2, desc);
  4503. }) : (function(o, m, k, k2) {
  4504. if (k2 === undefined) k2 = k;
  4505. o[k2] = m[k];
  4506. }));
  4507. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  4508. Object.defineProperty(o, "default", { enumerable: true, value: v });
  4509. }) : function(o, v) {
  4510. o["default"] = v;
  4511. });
  4512. var __importStar = (this && this.__importStar) || function (mod) {
  4513. if (mod && mod.__esModule) return mod;
  4514. var result = {};
  4515. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  4516. __setModuleDefault(result, mod);
  4517. return result;
  4518. };
  4519. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4520. exports.getOctokit = exports.context = void 0;
  4521. const Context = __importStar(__nccwpck_require__(4087));
  4522. const utils_1 = __nccwpck_require__(3030);
  4523. exports.context = new Context.Context();
  4524. /**
  4525. * Returns a hydrated octokit ready to use for GitHub Actions
  4526. *
  4527. * @param token the repo PAT or GITHUB_TOKEN
  4528. * @param options other options to set
  4529. */
  4530. function getOctokit(token, options, ...additionalPlugins) {
  4531. const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins);
  4532. return new GitHubWithPlugins((0, utils_1.getOctokitOptions)(token, options));
  4533. }
  4534. exports.getOctokit = getOctokit;
  4535. //# sourceMappingURL=github.js.map
  4536. /***/ }),
  4537. /***/ 7914:
  4538. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  4539. "use strict";
  4540. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4541. if (k2 === undefined) k2 = k;
  4542. var desc = Object.getOwnPropertyDescriptor(m, k);
  4543. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  4544. desc = { enumerable: true, get: function() { return m[k]; } };
  4545. }
  4546. Object.defineProperty(o, k2, desc);
  4547. }) : (function(o, m, k, k2) {
  4548. if (k2 === undefined) k2 = k;
  4549. o[k2] = m[k];
  4550. }));
  4551. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  4552. Object.defineProperty(o, "default", { enumerable: true, value: v });
  4553. }) : function(o, v) {
  4554. o["default"] = v;
  4555. });
  4556. var __importStar = (this && this.__importStar) || function (mod) {
  4557. if (mod && mod.__esModule) return mod;
  4558. var result = {};
  4559. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  4560. __setModuleDefault(result, mod);
  4561. return result;
  4562. };
  4563. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4564. exports.getApiBaseUrl = exports.getProxyFetch = exports.getProxyAgentDispatcher = exports.getProxyAgent = exports.getAuthString = void 0;
  4565. const httpClient = __importStar(__nccwpck_require__(6341));
  4566. const undici_1 = __nccwpck_require__(1773);
  4567. function getAuthString(token, options) {
  4568. if (!token && !options.auth) {
  4569. throw new Error('Parameter token or opts.auth is required');
  4570. }
  4571. else if (token && options.auth) {
  4572. throw new Error('Parameters token and opts.auth may not both be specified');
  4573. }
  4574. return typeof options.auth === 'string' ? options.auth : `token ${token}`;
  4575. }
  4576. exports.getAuthString = getAuthString;
  4577. function getProxyAgent(destinationUrl) {
  4578. const hc = new httpClient.HttpClient();
  4579. return hc.getAgent(destinationUrl);
  4580. }
  4581. exports.getProxyAgent = getProxyAgent;
  4582. function getProxyAgentDispatcher(destinationUrl) {
  4583. const hc = new httpClient.HttpClient();
  4584. return hc.getAgentDispatcher(destinationUrl);
  4585. }
  4586. exports.getProxyAgentDispatcher = getProxyAgentDispatcher;
  4587. function getProxyFetch(destinationUrl) {
  4588. const httpAgent = getProxyAgentDispatcher(destinationUrl);
  4589. const proxyFetch = (url, opts) => {
  4590. return (0, undici_1.fetch)(url, Object.assign(Object.assign({}, opts), { dispatcher: httpAgent }));
  4591. };
  4592. return proxyFetch;
  4593. }
  4594. exports.getProxyFetch = getProxyFetch;
  4595. function getApiBaseUrl() {
  4596. return process.env['GITHUB_API_URL'] || 'https://api.github.com';
  4597. }
  4598. exports.getApiBaseUrl = getApiBaseUrl;
  4599. //# sourceMappingURL=utils.js.map
  4600. /***/ }),
  4601. /***/ 3030:
  4602. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  4603. "use strict";
  4604. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4605. if (k2 === undefined) k2 = k;
  4606. var desc = Object.getOwnPropertyDescriptor(m, k);
  4607. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  4608. desc = { enumerable: true, get: function() { return m[k]; } };
  4609. }
  4610. Object.defineProperty(o, k2, desc);
  4611. }) : (function(o, m, k, k2) {
  4612. if (k2 === undefined) k2 = k;
  4613. o[k2] = m[k];
  4614. }));
  4615. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  4616. Object.defineProperty(o, "default", { enumerable: true, value: v });
  4617. }) : function(o, v) {
  4618. o["default"] = v;
  4619. });
  4620. var __importStar = (this && this.__importStar) || function (mod) {
  4621. if (mod && mod.__esModule) return mod;
  4622. var result = {};
  4623. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  4624. __setModuleDefault(result, mod);
  4625. return result;
  4626. };
  4627. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4628. exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0;
  4629. const Context = __importStar(__nccwpck_require__(4087));
  4630. const Utils = __importStar(__nccwpck_require__(7914));
  4631. // octokit + plugins
  4632. const core_1 = __nccwpck_require__(6762);
  4633. const plugin_rest_endpoint_methods_1 = __nccwpck_require__(3044);
  4634. const plugin_paginate_rest_1 = __nccwpck_require__(4193);
  4635. exports.context = new Context.Context();
  4636. const baseUrl = Utils.getApiBaseUrl();
  4637. exports.defaults = {
  4638. baseUrl,
  4639. request: {
  4640. agent: Utils.getProxyAgent(baseUrl),
  4641. fetch: Utils.getProxyFetch(baseUrl)
  4642. }
  4643. };
  4644. exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports.defaults);
  4645. /**
  4646. * Convience function to correctly format Octokit Options to pass into the constructor.
  4647. *
  4648. * @param token the repo PAT or GITHUB_TOKEN
  4649. * @param options other options to set
  4650. */
  4651. function getOctokitOptions(token, options) {
  4652. const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller
  4653. // Auth
  4654. const auth = Utils.getAuthString(token, opts);
  4655. if (auth) {
  4656. opts.auth = auth;
  4657. }
  4658. return opts;
  4659. }
  4660. exports.getOctokitOptions = getOctokitOptions;
  4661. //# sourceMappingURL=utils.js.map
  4662. /***/ }),
  4663. /***/ 6341:
  4664. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  4665. "use strict";
  4666. /* eslint-disable @typescript-eslint/no-explicit-any */
  4667. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4668. if (k2 === undefined) k2 = k;
  4669. var desc = Object.getOwnPropertyDescriptor(m, k);
  4670. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  4671. desc = { enumerable: true, get: function() { return m[k]; } };
  4672. }
  4673. Object.defineProperty(o, k2, desc);
  4674. }) : (function(o, m, k, k2) {
  4675. if (k2 === undefined) k2 = k;
  4676. o[k2] = m[k];
  4677. }));
  4678. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  4679. Object.defineProperty(o, "default", { enumerable: true, value: v });
  4680. }) : function(o, v) {
  4681. o["default"] = v;
  4682. });
  4683. var __importStar = (this && this.__importStar) || function (mod) {
  4684. if (mod && mod.__esModule) return mod;
  4685. var result = {};
  4686. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  4687. __setModuleDefault(result, mod);
  4688. return result;
  4689. };
  4690. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  4691. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  4692. return new (P || (P = Promise))(function (resolve, reject) {
  4693. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  4694. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  4695. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  4696. step((generator = generator.apply(thisArg, _arguments || [])).next());
  4697. });
  4698. };
  4699. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4700. exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
  4701. const http = __importStar(__nccwpck_require__(3685));
  4702. const https = __importStar(__nccwpck_require__(5687));
  4703. const pm = __importStar(__nccwpck_require__(3466));
  4704. const tunnel = __importStar(__nccwpck_require__(4294));
  4705. const undici_1 = __nccwpck_require__(1773);
  4706. var HttpCodes;
  4707. (function (HttpCodes) {
  4708. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  4709. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  4710. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  4711. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  4712. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  4713. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  4714. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  4715. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  4716. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  4717. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  4718. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  4719. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  4720. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  4721. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  4722. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  4723. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  4724. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  4725. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  4726. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  4727. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  4728. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  4729. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  4730. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  4731. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  4732. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  4733. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  4734. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  4735. })(HttpCodes || (exports.HttpCodes = HttpCodes = {}));
  4736. var Headers;
  4737. (function (Headers) {
  4738. Headers["Accept"] = "accept";
  4739. Headers["ContentType"] = "content-type";
  4740. })(Headers || (exports.Headers = Headers = {}));
  4741. var MediaTypes;
  4742. (function (MediaTypes) {
  4743. MediaTypes["ApplicationJson"] = "application/json";
  4744. })(MediaTypes || (exports.MediaTypes = MediaTypes = {}));
  4745. /**
  4746. * Returns the proxy URL, depending upon the supplied url and proxy environment variables.
  4747. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  4748. */
  4749. function getProxyUrl(serverUrl) {
  4750. const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
  4751. return proxyUrl ? proxyUrl.href : '';
  4752. }
  4753. exports.getProxyUrl = getProxyUrl;
  4754. const HttpRedirectCodes = [
  4755. HttpCodes.MovedPermanently,
  4756. HttpCodes.ResourceMoved,
  4757. HttpCodes.SeeOther,
  4758. HttpCodes.TemporaryRedirect,
  4759. HttpCodes.PermanentRedirect
  4760. ];
  4761. const HttpResponseRetryCodes = [
  4762. HttpCodes.BadGateway,
  4763. HttpCodes.ServiceUnavailable,
  4764. HttpCodes.GatewayTimeout
  4765. ];
  4766. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  4767. const ExponentialBackoffCeiling = 10;
  4768. const ExponentialBackoffTimeSlice = 5;
  4769. class HttpClientError extends Error {
  4770. constructor(message, statusCode) {
  4771. super(message);
  4772. this.name = 'HttpClientError';
  4773. this.statusCode = statusCode;
  4774. Object.setPrototypeOf(this, HttpClientError.prototype);
  4775. }
  4776. }
  4777. exports.HttpClientError = HttpClientError;
  4778. class HttpClientResponse {
  4779. constructor(message) {
  4780. this.message = message;
  4781. }
  4782. readBody() {
  4783. return __awaiter(this, void 0, void 0, function* () {
  4784. return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
  4785. let output = Buffer.alloc(0);
  4786. this.message.on('data', (chunk) => {
  4787. output = Buffer.concat([output, chunk]);
  4788. });
  4789. this.message.on('end', () => {
  4790. resolve(output.toString());
  4791. });
  4792. }));
  4793. });
  4794. }
  4795. readBodyBuffer() {
  4796. return __awaiter(this, void 0, void 0, function* () {
  4797. return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
  4798. const chunks = [];
  4799. this.message.on('data', (chunk) => {
  4800. chunks.push(chunk);
  4801. });
  4802. this.message.on('end', () => {
  4803. resolve(Buffer.concat(chunks));
  4804. });
  4805. }));
  4806. });
  4807. }
  4808. }
  4809. exports.HttpClientResponse = HttpClientResponse;
  4810. function isHttps(requestUrl) {
  4811. const parsedUrl = new URL(requestUrl);
  4812. return parsedUrl.protocol === 'https:';
  4813. }
  4814. exports.isHttps = isHttps;
  4815. class HttpClient {
  4816. constructor(userAgent, handlers, requestOptions) {
  4817. this._ignoreSslError = false;
  4818. this._allowRedirects = true;
  4819. this._allowRedirectDowngrade = false;
  4820. this._maxRedirects = 50;
  4821. this._allowRetries = false;
  4822. this._maxRetries = 1;
  4823. this._keepAlive = false;
  4824. this._disposed = false;
  4825. this.userAgent = userAgent;
  4826. this.handlers = handlers || [];
  4827. this.requestOptions = requestOptions;
  4828. if (requestOptions) {
  4829. if (requestOptions.ignoreSslError != null) {
  4830. this._ignoreSslError = requestOptions.ignoreSslError;
  4831. }
  4832. this._socketTimeout = requestOptions.socketTimeout;
  4833. if (requestOptions.allowRedirects != null) {
  4834. this._allowRedirects = requestOptions.allowRedirects;
  4835. }
  4836. if (requestOptions.allowRedirectDowngrade != null) {
  4837. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  4838. }
  4839. if (requestOptions.maxRedirects != null) {
  4840. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  4841. }
  4842. if (requestOptions.keepAlive != null) {
  4843. this._keepAlive = requestOptions.keepAlive;
  4844. }
  4845. if (requestOptions.allowRetries != null) {
  4846. this._allowRetries = requestOptions.allowRetries;
  4847. }
  4848. if (requestOptions.maxRetries != null) {
  4849. this._maxRetries = requestOptions.maxRetries;
  4850. }
  4851. }
  4852. }
  4853. options(requestUrl, additionalHeaders) {
  4854. return __awaiter(this, void 0, void 0, function* () {
  4855. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  4856. });
  4857. }
  4858. get(requestUrl, additionalHeaders) {
  4859. return __awaiter(this, void 0, void 0, function* () {
  4860. return this.request('GET', requestUrl, null, additionalHeaders || {});
  4861. });
  4862. }
  4863. del(requestUrl, additionalHeaders) {
  4864. return __awaiter(this, void 0, void 0, function* () {
  4865. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  4866. });
  4867. }
  4868. post(requestUrl, data, additionalHeaders) {
  4869. return __awaiter(this, void 0, void 0, function* () {
  4870. return this.request('POST', requestUrl, data, additionalHeaders || {});
  4871. });
  4872. }
  4873. patch(requestUrl, data, additionalHeaders) {
  4874. return __awaiter(this, void 0, void 0, function* () {
  4875. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  4876. });
  4877. }
  4878. put(requestUrl, data, additionalHeaders) {
  4879. return __awaiter(this, void 0, void 0, function* () {
  4880. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  4881. });
  4882. }
  4883. head(requestUrl, additionalHeaders) {
  4884. return __awaiter(this, void 0, void 0, function* () {
  4885. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  4886. });
  4887. }
  4888. sendStream(verb, requestUrl, stream, additionalHeaders) {
  4889. return __awaiter(this, void 0, void 0, function* () {
  4890. return this.request(verb, requestUrl, stream, additionalHeaders);
  4891. });
  4892. }
  4893. /**
  4894. * Gets a typed object from an endpoint
  4895. * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
  4896. */
  4897. getJson(requestUrl, additionalHeaders = {}) {
  4898. return __awaiter(this, void 0, void 0, function* () {
  4899. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  4900. const res = yield this.get(requestUrl, additionalHeaders);
  4901. return this._processResponse(res, this.requestOptions);
  4902. });
  4903. }
  4904. postJson(requestUrl, obj, additionalHeaders = {}) {
  4905. return __awaiter(this, void 0, void 0, function* () {
  4906. const data = JSON.stringify(obj, null, 2);
  4907. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  4908. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  4909. const res = yield this.post(requestUrl, data, additionalHeaders);
  4910. return this._processResponse(res, this.requestOptions);
  4911. });
  4912. }
  4913. putJson(requestUrl, obj, additionalHeaders = {}) {
  4914. return __awaiter(this, void 0, void 0, function* () {
  4915. const data = JSON.stringify(obj, null, 2);
  4916. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  4917. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  4918. const res = yield this.put(requestUrl, data, additionalHeaders);
  4919. return this._processResponse(res, this.requestOptions);
  4920. });
  4921. }
  4922. patchJson(requestUrl, obj, additionalHeaders = {}) {
  4923. return __awaiter(this, void 0, void 0, function* () {
  4924. const data = JSON.stringify(obj, null, 2);
  4925. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  4926. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  4927. const res = yield this.patch(requestUrl, data, additionalHeaders);
  4928. return this._processResponse(res, this.requestOptions);
  4929. });
  4930. }
  4931. /**
  4932. * Makes a raw http request.
  4933. * All other methods such as get, post, patch, and request ultimately call this.
  4934. * Prefer get, del, post and patch
  4935. */
  4936. request(verb, requestUrl, data, headers) {
  4937. return __awaiter(this, void 0, void 0, function* () {
  4938. if (this._disposed) {
  4939. throw new Error('Client has already been disposed.');
  4940. }
  4941. const parsedUrl = new URL(requestUrl);
  4942. let info = this._prepareRequest(verb, parsedUrl, headers);
  4943. // Only perform retries on reads since writes may not be idempotent.
  4944. const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb)
  4945. ? this._maxRetries + 1
  4946. : 1;
  4947. let numTries = 0;
  4948. let response;
  4949. do {
  4950. response = yield this.requestRaw(info, data);
  4951. // Check if it's an authentication challenge
  4952. if (response &&
  4953. response.message &&
  4954. response.message.statusCode === HttpCodes.Unauthorized) {
  4955. let authenticationHandler;
  4956. for (const handler of this.handlers) {
  4957. if (handler.canHandleAuthentication(response)) {
  4958. authenticationHandler = handler;
  4959. break;
  4960. }
  4961. }
  4962. if (authenticationHandler) {
  4963. return authenticationHandler.handleAuthentication(this, info, data);
  4964. }
  4965. else {
  4966. // We have received an unauthorized response but have no handlers to handle it.
  4967. // Let the response return to the caller.
  4968. return response;
  4969. }
  4970. }
  4971. let redirectsRemaining = this._maxRedirects;
  4972. while (response.message.statusCode &&
  4973. HttpRedirectCodes.includes(response.message.statusCode) &&
  4974. this._allowRedirects &&
  4975. redirectsRemaining > 0) {
  4976. const redirectUrl = response.message.headers['location'];
  4977. if (!redirectUrl) {
  4978. // if there's no location to redirect to, we won't
  4979. break;
  4980. }
  4981. const parsedRedirectUrl = new URL(redirectUrl);
  4982. if (parsedUrl.protocol === 'https:' &&
  4983. parsedUrl.protocol !== parsedRedirectUrl.protocol &&
  4984. !this._allowRedirectDowngrade) {
  4985. 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.');
  4986. }
  4987. // we need to finish reading the response before reassigning response
  4988. // which will leak the open socket.
  4989. yield response.readBody();
  4990. // strip authorization header if redirected to a different hostname
  4991. if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
  4992. for (const header in headers) {
  4993. // header names are case insensitive
  4994. if (header.toLowerCase() === 'authorization') {
  4995. delete headers[header];
  4996. }
  4997. }
  4998. }
  4999. // let's make the request with the new redirectUrl
  5000. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  5001. response = yield this.requestRaw(info, data);
  5002. redirectsRemaining--;
  5003. }
  5004. if (!response.message.statusCode ||
  5005. !HttpResponseRetryCodes.includes(response.message.statusCode)) {
  5006. // If not a retry code, return immediately instead of retrying
  5007. return response;
  5008. }
  5009. numTries += 1;
  5010. if (numTries < maxTries) {
  5011. yield response.readBody();
  5012. yield this._performExponentialBackoff(numTries);
  5013. }
  5014. } while (numTries < maxTries);
  5015. return response;
  5016. });
  5017. }
  5018. /**
  5019. * Needs to be called if keepAlive is set to true in request options.
  5020. */
  5021. dispose() {
  5022. if (this._agent) {
  5023. this._agent.destroy();
  5024. }
  5025. this._disposed = true;
  5026. }
  5027. /**
  5028. * Raw request.
  5029. * @param info
  5030. * @param data
  5031. */
  5032. requestRaw(info, data) {
  5033. return __awaiter(this, void 0, void 0, function* () {
  5034. return new Promise((resolve, reject) => {
  5035. function callbackForResult(err, res) {
  5036. if (err) {
  5037. reject(err);
  5038. }
  5039. else if (!res) {
  5040. // If `err` is not passed, then `res` must be passed.
  5041. reject(new Error('Unknown error'));
  5042. }
  5043. else {
  5044. resolve(res);
  5045. }
  5046. }
  5047. this.requestRawWithCallback(info, data, callbackForResult);
  5048. });
  5049. });
  5050. }
  5051. /**
  5052. * Raw request with callback.
  5053. * @param info
  5054. * @param data
  5055. * @param onResult
  5056. */
  5057. requestRawWithCallback(info, data, onResult) {
  5058. if (typeof data === 'string') {
  5059. if (!info.options.headers) {
  5060. info.options.headers = {};
  5061. }
  5062. info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
  5063. }
  5064. let callbackCalled = false;
  5065. function handleResult(err, res) {
  5066. if (!callbackCalled) {
  5067. callbackCalled = true;
  5068. onResult(err, res);
  5069. }
  5070. }
  5071. const req = info.httpModule.request(info.options, (msg) => {
  5072. const res = new HttpClientResponse(msg);
  5073. handleResult(undefined, res);
  5074. });
  5075. let socket;
  5076. req.on('socket', sock => {
  5077. socket = sock;
  5078. });
  5079. // If we ever get disconnected, we want the socket to timeout eventually
  5080. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  5081. if (socket) {
  5082. socket.end();
  5083. }
  5084. handleResult(new Error(`Request timeout: ${info.options.path}`));
  5085. });
  5086. req.on('error', function (err) {
  5087. // err has statusCode property
  5088. // res should have headers
  5089. handleResult(err);
  5090. });
  5091. if (data && typeof data === 'string') {
  5092. req.write(data, 'utf8');
  5093. }
  5094. if (data && typeof data !== 'string') {
  5095. data.on('close', function () {
  5096. req.end();
  5097. });
  5098. data.pipe(req);
  5099. }
  5100. else {
  5101. req.end();
  5102. }
  5103. }
  5104. /**
  5105. * Gets an http agent. This function is useful when you need an http agent that handles
  5106. * routing through a proxy server - depending upon the url and proxy environment variables.
  5107. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  5108. */
  5109. getAgent(serverUrl) {
  5110. const parsedUrl = new URL(serverUrl);
  5111. return this._getAgent(parsedUrl);
  5112. }
  5113. getAgentDispatcher(serverUrl) {
  5114. const parsedUrl = new URL(serverUrl);
  5115. const proxyUrl = pm.getProxyUrl(parsedUrl);
  5116. const useProxy = proxyUrl && proxyUrl.hostname;
  5117. if (useProxy) {
  5118. return this._getProxyAgentDispatcher(parsedUrl, proxyUrl);
  5119. }
  5120. else {
  5121. return this._getAgentDispatcher(parsedUrl);
  5122. }
  5123. }
  5124. _prepareRequest(method, requestUrl, headers) {
  5125. const info = {};
  5126. info.parsedUrl = requestUrl;
  5127. const usingSsl = info.parsedUrl.protocol === 'https:';
  5128. info.httpModule = usingSsl ? https : http;
  5129. const defaultPort = usingSsl ? 443 : 80;
  5130. info.options = {};
  5131. info.options.host = info.parsedUrl.hostname;
  5132. info.options.port = info.parsedUrl.port
  5133. ? parseInt(info.parsedUrl.port)
  5134. : defaultPort;
  5135. info.options.path =
  5136. (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  5137. info.options.method = method;
  5138. info.options.headers = this._mergeHeaders(headers);
  5139. if (this.userAgent != null) {
  5140. info.options.headers['user-agent'] = this.userAgent;
  5141. }
  5142. info.options.agent = this._getAgent(info.parsedUrl);
  5143. // gives handlers an opportunity to participate
  5144. if (this.handlers) {
  5145. for (const handler of this.handlers) {
  5146. handler.prepareRequest(info.options);
  5147. }
  5148. }
  5149. return info;
  5150. }
  5151. _mergeHeaders(headers) {
  5152. if (this.requestOptions && this.requestOptions.headers) {
  5153. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {}));
  5154. }
  5155. return lowercaseKeys(headers || {});
  5156. }
  5157. _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
  5158. let clientHeader;
  5159. if (this.requestOptions && this.requestOptions.headers) {
  5160. clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
  5161. }
  5162. return additionalHeaders[header] || clientHeader || _default;
  5163. }
  5164. _getAgent(parsedUrl) {
  5165. let agent;
  5166. const proxyUrl = pm.getProxyUrl(parsedUrl);
  5167. const useProxy = proxyUrl && proxyUrl.hostname;
  5168. if (this._keepAlive && useProxy) {
  5169. agent = this._proxyAgent;
  5170. }
  5171. if (this._keepAlive && !useProxy) {
  5172. agent = this._agent;
  5173. }
  5174. // if agent is already assigned use that agent.
  5175. if (agent) {
  5176. return agent;
  5177. }
  5178. const usingSsl = parsedUrl.protocol === 'https:';
  5179. let maxSockets = 100;
  5180. if (this.requestOptions) {
  5181. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  5182. }
  5183. // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.
  5184. if (proxyUrl && proxyUrl.hostname) {
  5185. const agentOptions = {
  5186. maxSockets,
  5187. keepAlive: this._keepAlive,
  5188. proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && {
  5189. proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`
  5190. })), { host: proxyUrl.hostname, port: proxyUrl.port })
  5191. };
  5192. let tunnelAgent;
  5193. const overHttps = proxyUrl.protocol === 'https:';
  5194. if (usingSsl) {
  5195. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  5196. }
  5197. else {
  5198. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  5199. }
  5200. agent = tunnelAgent(agentOptions);
  5201. this._proxyAgent = agent;
  5202. }
  5203. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  5204. if (this._keepAlive && !agent) {
  5205. const options = { keepAlive: this._keepAlive, maxSockets };
  5206. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  5207. this._agent = agent;
  5208. }
  5209. // if not using private agent and tunnel agent isn't setup then use global agent
  5210. if (!agent) {
  5211. agent = usingSsl ? https.globalAgent : http.globalAgent;
  5212. }
  5213. if (usingSsl && this._ignoreSslError) {
  5214. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  5215. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  5216. // we have to cast it to any and change it directly
  5217. agent.options = Object.assign(agent.options || {}, {
  5218. rejectUnauthorized: false
  5219. });
  5220. }
  5221. return agent;
  5222. }
  5223. _getProxyAgentDispatcher(parsedUrl, proxyUrl) {
  5224. let proxyAgent;
  5225. const useProxy = proxyUrl && proxyUrl.hostname;
  5226. if (this._keepAlive && useProxy) {
  5227. proxyAgent = this._proxyAgentDispatcher;
  5228. }
  5229. if (this._keepAlive && !useProxy) {
  5230. proxyAgent = this._agentDispatcher;
  5231. }
  5232. // if agent is already assigned use that agent.
  5233. if (proxyAgent) {
  5234. return proxyAgent;
  5235. }
  5236. const usingSsl = parsedUrl.protocol === 'https:';
  5237. let maxSockets = 100;
  5238. if (this.requestOptions) {
  5239. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  5240. }
  5241. // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.
  5242. if (proxyUrl && proxyUrl.hostname) {
  5243. proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: (!this._keepAlive ? 0 : 1) }, ((proxyUrl.username || proxyUrl.password) && {
  5244. token: `${proxyUrl.username}:${proxyUrl.password}`
  5245. })));
  5246. this._proxyAgentDispatcher = proxyAgent;
  5247. }
  5248. if (usingSsl && this._ignoreSslError) {
  5249. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  5250. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  5251. // we have to cast it to any and change it directly
  5252. proxyAgent.options = Object.assign(proxyAgent.options.requestTls || {}, {
  5253. rejectUnauthorized: false
  5254. });
  5255. }
  5256. return proxyAgent;
  5257. }
  5258. _getAgentDispatcher(parsedUrl) {
  5259. let agent;
  5260. if (this._keepAlive) {
  5261. agent = this._agentDispatcher;
  5262. }
  5263. // if agent is already assigned use that agent.
  5264. if (agent) {
  5265. return agent;
  5266. }
  5267. const usingSsl = parsedUrl.protocol === 'https:';
  5268. let maxSockets = 100;
  5269. if (this.requestOptions) {
  5270. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  5271. }
  5272. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  5273. if (!agent) {
  5274. agent = new undici_1.Agent({
  5275. pipelining: (!this._keepAlive ? 0 : 1),
  5276. });
  5277. this._agentDispatcher = agent;
  5278. }
  5279. if (usingSsl && this._ignoreSslError) {
  5280. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  5281. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  5282. // we have to cast it to any and change it directly
  5283. agent.options = Object.assign(agent.options.connect || {}, {
  5284. rejectUnauthorized: false
  5285. });
  5286. }
  5287. return agent;
  5288. }
  5289. _performExponentialBackoff(retryNumber) {
  5290. return __awaiter(this, void 0, void 0, function* () {
  5291. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  5292. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  5293. return new Promise(resolve => setTimeout(() => resolve(), ms));
  5294. });
  5295. }
  5296. _processResponse(res, options) {
  5297. return __awaiter(this, void 0, void 0, function* () {
  5298. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  5299. const statusCode = res.message.statusCode || 0;
  5300. const response = {
  5301. statusCode,
  5302. result: null,
  5303. headers: {}
  5304. };
  5305. // not found leads to null obj returned
  5306. if (statusCode === HttpCodes.NotFound) {
  5307. resolve(response);
  5308. }
  5309. // get the result from the body
  5310. function dateTimeDeserializer(key, value) {
  5311. if (typeof value === 'string') {
  5312. const a = new Date(value);
  5313. if (!isNaN(a.valueOf())) {
  5314. return a;
  5315. }
  5316. }
  5317. return value;
  5318. }
  5319. let obj;
  5320. let contents;
  5321. try {
  5322. contents = yield res.readBody();
  5323. if (contents && contents.length > 0) {
  5324. if (options && options.deserializeDates) {
  5325. obj = JSON.parse(contents, dateTimeDeserializer);
  5326. }
  5327. else {
  5328. obj = JSON.parse(contents);
  5329. }
  5330. response.result = obj;
  5331. }
  5332. response.headers = res.message.headers;
  5333. }
  5334. catch (err) {
  5335. // Invalid resource (contents not json); leaving result obj null
  5336. }
  5337. // note that 3xx redirects are handled by the http layer.
  5338. if (statusCode > 299) {
  5339. let msg;
  5340. // if exception/error in body, attempt to get better error
  5341. if (obj && obj.message) {
  5342. msg = obj.message;
  5343. }
  5344. else if (contents && contents.length > 0) {
  5345. // it may be the case that the exception is in the body message as string
  5346. msg = contents;
  5347. }
  5348. else {
  5349. msg = `Failed request: (${statusCode})`;
  5350. }
  5351. const err = new HttpClientError(msg, statusCode);
  5352. err.result = response.result;
  5353. reject(err);
  5354. }
  5355. else {
  5356. resolve(response);
  5357. }
  5358. }));
  5359. });
  5360. }
  5361. }
  5362. exports.HttpClient = HttpClient;
  5363. const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  5364. //# sourceMappingURL=index.js.map
  5365. /***/ }),
  5366. /***/ 3466:
  5367. /***/ ((__unused_webpack_module, exports) => {
  5368. "use strict";
  5369. Object.defineProperty(exports, "__esModule", ({ value: true }));
  5370. exports.checkBypass = exports.getProxyUrl = void 0;
  5371. function getProxyUrl(reqUrl) {
  5372. const usingSsl = reqUrl.protocol === 'https:';
  5373. if (checkBypass(reqUrl)) {
  5374. return undefined;
  5375. }
  5376. const proxyVar = (() => {
  5377. if (usingSsl) {
  5378. return process.env['https_proxy'] || process.env['HTTPS_PROXY'];
  5379. }
  5380. else {
  5381. return process.env['http_proxy'] || process.env['HTTP_PROXY'];
  5382. }
  5383. })();
  5384. if (proxyVar) {
  5385. try {
  5386. return new URL(proxyVar);
  5387. }
  5388. catch (_a) {
  5389. if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
  5390. return new URL(`http://${proxyVar}`);
  5391. }
  5392. }
  5393. else {
  5394. return undefined;
  5395. }
  5396. }
  5397. exports.getProxyUrl = getProxyUrl;
  5398. function checkBypass(reqUrl) {
  5399. if (!reqUrl.hostname) {
  5400. return false;
  5401. }
  5402. const reqHost = reqUrl.hostname;
  5403. if (isLoopbackAddress(reqHost)) {
  5404. return true;
  5405. }
  5406. const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
  5407. if (!noProxy) {
  5408. return false;
  5409. }
  5410. // Determine the request port
  5411. let reqPort;
  5412. if (reqUrl.port) {
  5413. reqPort = Number(reqUrl.port);
  5414. }
  5415. else if (reqUrl.protocol === 'http:') {
  5416. reqPort = 80;
  5417. }
  5418. else if (reqUrl.protocol === 'https:') {
  5419. reqPort = 443;
  5420. }
  5421. // Format the request hostname and hostname with port
  5422. const upperReqHosts = [reqUrl.hostname.toUpperCase()];
  5423. if (typeof reqPort === 'number') {
  5424. upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
  5425. }
  5426. // Compare request host against noproxy
  5427. for (const upperNoProxyItem of noProxy
  5428. .split(',')
  5429. .map(x => x.trim().toUpperCase())
  5430. .filter(x => x)) {
  5431. if (upperNoProxyItem === '*' ||
  5432. upperReqHosts.some(x => x === upperNoProxyItem ||
  5433. x.endsWith(`.${upperNoProxyItem}`) ||
  5434. (upperNoProxyItem.startsWith('.') &&
  5435. x.endsWith(`${upperNoProxyItem}`)))) {
  5436. return true;
  5437. }
  5438. }
  5439. return false;
  5440. }
  5441. exports.checkBypass = checkBypass;
  5442. function isLoopbackAddress(host) {
  5443. const hostLower = host.toLowerCase();
  5444. return (hostLower === 'localhost' ||
  5445. hostLower.startsWith('127.') ||
  5446. hostLower.startsWith('[::1]') ||
  5447. hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
  5448. }
  5449. //# sourceMappingURL=proxy.js.map
  5450. /***/ }),
  5451. /***/ 5526:
  5452. /***/ (function(__unused_webpack_module, exports) {
  5453. "use strict";
  5454. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  5455. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  5456. return new (P || (P = Promise))(function (resolve, reject) {
  5457. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  5458. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  5459. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  5460. step((generator = generator.apply(thisArg, _arguments || [])).next());
  5461. });
  5462. };
  5463. Object.defineProperty(exports, "__esModule", ({ value: true }));
  5464. exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0;
  5465. class BasicCredentialHandler {
  5466. constructor(username, password) {
  5467. this.username = username;
  5468. this.password = password;
  5469. }
  5470. prepareRequest(options) {
  5471. if (!options.headers) {
  5472. throw Error('The request has no headers');
  5473. }
  5474. options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`;
  5475. }
  5476. // This handler cannot handle 401
  5477. canHandleAuthentication() {
  5478. return false;
  5479. }
  5480. handleAuthentication() {
  5481. return __awaiter(this, void 0, void 0, function* () {
  5482. throw new Error('not implemented');
  5483. });
  5484. }
  5485. }
  5486. exports.BasicCredentialHandler = BasicCredentialHandler;
  5487. class BearerCredentialHandler {
  5488. constructor(token) {
  5489. this.token = token;
  5490. }
  5491. // currently implements pre-authorization
  5492. // TODO: support preAuth = false where it hooks on 401
  5493. prepareRequest(options) {
  5494. if (!options.headers) {
  5495. throw Error('The request has no headers');
  5496. }
  5497. options.headers['Authorization'] = `Bearer ${this.token}`;
  5498. }
  5499. // This handler cannot handle 401
  5500. canHandleAuthentication() {
  5501. return false;
  5502. }
  5503. handleAuthentication() {
  5504. return __awaiter(this, void 0, void 0, function* () {
  5505. throw new Error('not implemented');
  5506. });
  5507. }
  5508. }
  5509. exports.BearerCredentialHandler = BearerCredentialHandler;
  5510. class PersonalAccessTokenCredentialHandler {
  5511. constructor(token) {
  5512. this.token = token;
  5513. }
  5514. // currently implements pre-authorization
  5515. // TODO: support preAuth = false where it hooks on 401
  5516. prepareRequest(options) {
  5517. if (!options.headers) {
  5518. throw Error('The request has no headers');
  5519. }
  5520. options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`;
  5521. }
  5522. // This handler cannot handle 401
  5523. canHandleAuthentication() {
  5524. return false;
  5525. }
  5526. handleAuthentication() {
  5527. return __awaiter(this, void 0, void 0, function* () {
  5528. throw new Error('not implemented');
  5529. });
  5530. }
  5531. }
  5532. exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;
  5533. //# sourceMappingURL=auth.js.map
  5534. /***/ }),
  5535. /***/ 6255:
  5536. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  5537. "use strict";
  5538. /* eslint-disable @typescript-eslint/no-explicit-any */
  5539. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  5540. if (k2 === undefined) k2 = k;
  5541. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  5542. }) : (function(o, m, k, k2) {
  5543. if (k2 === undefined) k2 = k;
  5544. o[k2] = m[k];
  5545. }));
  5546. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  5547. Object.defineProperty(o, "default", { enumerable: true, value: v });
  5548. }) : function(o, v) {
  5549. o["default"] = v;
  5550. });
  5551. var __importStar = (this && this.__importStar) || function (mod) {
  5552. if (mod && mod.__esModule) return mod;
  5553. var result = {};
  5554. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  5555. __setModuleDefault(result, mod);
  5556. return result;
  5557. };
  5558. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  5559. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  5560. return new (P || (P = Promise))(function (resolve, reject) {
  5561. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  5562. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  5563. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  5564. step((generator = generator.apply(thisArg, _arguments || [])).next());
  5565. });
  5566. };
  5567. Object.defineProperty(exports, "__esModule", ({ value: true }));
  5568. exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
  5569. const http = __importStar(__nccwpck_require__(3685));
  5570. const https = __importStar(__nccwpck_require__(5687));
  5571. const pm = __importStar(__nccwpck_require__(9835));
  5572. const tunnel = __importStar(__nccwpck_require__(4294));
  5573. var HttpCodes;
  5574. (function (HttpCodes) {
  5575. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  5576. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  5577. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  5578. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  5579. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  5580. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  5581. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  5582. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  5583. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  5584. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  5585. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  5586. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  5587. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  5588. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  5589. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  5590. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  5591. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  5592. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  5593. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  5594. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  5595. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  5596. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  5597. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  5598. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  5599. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  5600. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  5601. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  5602. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  5603. var Headers;
  5604. (function (Headers) {
  5605. Headers["Accept"] = "accept";
  5606. Headers["ContentType"] = "content-type";
  5607. })(Headers = exports.Headers || (exports.Headers = {}));
  5608. var MediaTypes;
  5609. (function (MediaTypes) {
  5610. MediaTypes["ApplicationJson"] = "application/json";
  5611. })(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
  5612. /**
  5613. * Returns the proxy URL, depending upon the supplied url and proxy environment variables.
  5614. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  5615. */
  5616. function getProxyUrl(serverUrl) {
  5617. const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
  5618. return proxyUrl ? proxyUrl.href : '';
  5619. }
  5620. exports.getProxyUrl = getProxyUrl;
  5621. const HttpRedirectCodes = [
  5622. HttpCodes.MovedPermanently,
  5623. HttpCodes.ResourceMoved,
  5624. HttpCodes.SeeOther,
  5625. HttpCodes.TemporaryRedirect,
  5626. HttpCodes.PermanentRedirect
  5627. ];
  5628. const HttpResponseRetryCodes = [
  5629. HttpCodes.BadGateway,
  5630. HttpCodes.ServiceUnavailable,
  5631. HttpCodes.GatewayTimeout
  5632. ];
  5633. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  5634. const ExponentialBackoffCeiling = 10;
  5635. const ExponentialBackoffTimeSlice = 5;
  5636. class HttpClientError extends Error {
  5637. constructor(message, statusCode) {
  5638. super(message);
  5639. this.name = 'HttpClientError';
  5640. this.statusCode = statusCode;
  5641. Object.setPrototypeOf(this, HttpClientError.prototype);
  5642. }
  5643. }
  5644. exports.HttpClientError = HttpClientError;
  5645. class HttpClientResponse {
  5646. constructor(message) {
  5647. this.message = message;
  5648. }
  5649. readBody() {
  5650. return __awaiter(this, void 0, void 0, function* () {
  5651. return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
  5652. let output = Buffer.alloc(0);
  5653. this.message.on('data', (chunk) => {
  5654. output = Buffer.concat([output, chunk]);
  5655. });
  5656. this.message.on('end', () => {
  5657. resolve(output.toString());
  5658. });
  5659. }));
  5660. });
  5661. }
  5662. }
  5663. exports.HttpClientResponse = HttpClientResponse;
  5664. function isHttps(requestUrl) {
  5665. const parsedUrl = new URL(requestUrl);
  5666. return parsedUrl.protocol === 'https:';
  5667. }
  5668. exports.isHttps = isHttps;
  5669. class HttpClient {
  5670. constructor(userAgent, handlers, requestOptions) {
  5671. this._ignoreSslError = false;
  5672. this._allowRedirects = true;
  5673. this._allowRedirectDowngrade = false;
  5674. this._maxRedirects = 50;
  5675. this._allowRetries = false;
  5676. this._maxRetries = 1;
  5677. this._keepAlive = false;
  5678. this._disposed = false;
  5679. this.userAgent = userAgent;
  5680. this.handlers = handlers || [];
  5681. this.requestOptions = requestOptions;
  5682. if (requestOptions) {
  5683. if (requestOptions.ignoreSslError != null) {
  5684. this._ignoreSslError = requestOptions.ignoreSslError;
  5685. }
  5686. this._socketTimeout = requestOptions.socketTimeout;
  5687. if (requestOptions.allowRedirects != null) {
  5688. this._allowRedirects = requestOptions.allowRedirects;
  5689. }
  5690. if (requestOptions.allowRedirectDowngrade != null) {
  5691. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  5692. }
  5693. if (requestOptions.maxRedirects != null) {
  5694. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  5695. }
  5696. if (requestOptions.keepAlive != null) {
  5697. this._keepAlive = requestOptions.keepAlive;
  5698. }
  5699. if (requestOptions.allowRetries != null) {
  5700. this._allowRetries = requestOptions.allowRetries;
  5701. }
  5702. if (requestOptions.maxRetries != null) {
  5703. this._maxRetries = requestOptions.maxRetries;
  5704. }
  5705. }
  5706. }
  5707. options(requestUrl, additionalHeaders) {
  5708. return __awaiter(this, void 0, void 0, function* () {
  5709. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  5710. });
  5711. }
  5712. get(requestUrl, additionalHeaders) {
  5713. return __awaiter(this, void 0, void 0, function* () {
  5714. return this.request('GET', requestUrl, null, additionalHeaders || {});
  5715. });
  5716. }
  5717. del(requestUrl, additionalHeaders) {
  5718. return __awaiter(this, void 0, void 0, function* () {
  5719. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  5720. });
  5721. }
  5722. post(requestUrl, data, additionalHeaders) {
  5723. return __awaiter(this, void 0, void 0, function* () {
  5724. return this.request('POST', requestUrl, data, additionalHeaders || {});
  5725. });
  5726. }
  5727. patch(requestUrl, data, additionalHeaders) {
  5728. return __awaiter(this, void 0, void 0, function* () {
  5729. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  5730. });
  5731. }
  5732. put(requestUrl, data, additionalHeaders) {
  5733. return __awaiter(this, void 0, void 0, function* () {
  5734. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  5735. });
  5736. }
  5737. head(requestUrl, additionalHeaders) {
  5738. return __awaiter(this, void 0, void 0, function* () {
  5739. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  5740. });
  5741. }
  5742. sendStream(verb, requestUrl, stream, additionalHeaders) {
  5743. return __awaiter(this, void 0, void 0, function* () {
  5744. return this.request(verb, requestUrl, stream, additionalHeaders);
  5745. });
  5746. }
  5747. /**
  5748. * Gets a typed object from an endpoint
  5749. * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
  5750. */
  5751. getJson(requestUrl, additionalHeaders = {}) {
  5752. return __awaiter(this, void 0, void 0, function* () {
  5753. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5754. const res = yield this.get(requestUrl, additionalHeaders);
  5755. return this._processResponse(res, this.requestOptions);
  5756. });
  5757. }
  5758. postJson(requestUrl, obj, additionalHeaders = {}) {
  5759. return __awaiter(this, void 0, void 0, function* () {
  5760. const data = JSON.stringify(obj, null, 2);
  5761. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5762. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5763. const res = yield this.post(requestUrl, data, additionalHeaders);
  5764. return this._processResponse(res, this.requestOptions);
  5765. });
  5766. }
  5767. putJson(requestUrl, obj, additionalHeaders = {}) {
  5768. return __awaiter(this, void 0, void 0, function* () {
  5769. const data = JSON.stringify(obj, null, 2);
  5770. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5771. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5772. const res = yield this.put(requestUrl, data, additionalHeaders);
  5773. return this._processResponse(res, this.requestOptions);
  5774. });
  5775. }
  5776. patchJson(requestUrl, obj, additionalHeaders = {}) {
  5777. return __awaiter(this, void 0, void 0, function* () {
  5778. const data = JSON.stringify(obj, null, 2);
  5779. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5780. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5781. const res = yield this.patch(requestUrl, data, additionalHeaders);
  5782. return this._processResponse(res, this.requestOptions);
  5783. });
  5784. }
  5785. /**
  5786. * Makes a raw http request.
  5787. * All other methods such as get, post, patch, and request ultimately call this.
  5788. * Prefer get, del, post and patch
  5789. */
  5790. request(verb, requestUrl, data, headers) {
  5791. return __awaiter(this, void 0, void 0, function* () {
  5792. if (this._disposed) {
  5793. throw new Error('Client has already been disposed.');
  5794. }
  5795. const parsedUrl = new URL(requestUrl);
  5796. let info = this._prepareRequest(verb, parsedUrl, headers);
  5797. // Only perform retries on reads since writes may not be idempotent.
  5798. const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb)
  5799. ? this._maxRetries + 1
  5800. : 1;
  5801. let numTries = 0;
  5802. let response;
  5803. do {
  5804. response = yield this.requestRaw(info, data);
  5805. // Check if it's an authentication challenge
  5806. if (response &&
  5807. response.message &&
  5808. response.message.statusCode === HttpCodes.Unauthorized) {
  5809. let authenticationHandler;
  5810. for (const handler of this.handlers) {
  5811. if (handler.canHandleAuthentication(response)) {
  5812. authenticationHandler = handler;
  5813. break;
  5814. }
  5815. }
  5816. if (authenticationHandler) {
  5817. return authenticationHandler.handleAuthentication(this, info, data);
  5818. }
  5819. else {
  5820. // We have received an unauthorized response but have no handlers to handle it.
  5821. // Let the response return to the caller.
  5822. return response;
  5823. }
  5824. }
  5825. let redirectsRemaining = this._maxRedirects;
  5826. while (response.message.statusCode &&
  5827. HttpRedirectCodes.includes(response.message.statusCode) &&
  5828. this._allowRedirects &&
  5829. redirectsRemaining > 0) {
  5830. const redirectUrl = response.message.headers['location'];
  5831. if (!redirectUrl) {
  5832. // if there's no location to redirect to, we won't
  5833. break;
  5834. }
  5835. const parsedRedirectUrl = new URL(redirectUrl);
  5836. if (parsedUrl.protocol === 'https:' &&
  5837. parsedUrl.protocol !== parsedRedirectUrl.protocol &&
  5838. !this._allowRedirectDowngrade) {
  5839. 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.');
  5840. }
  5841. // we need to finish reading the response before reassigning response
  5842. // which will leak the open socket.
  5843. yield response.readBody();
  5844. // strip authorization header if redirected to a different hostname
  5845. if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
  5846. for (const header in headers) {
  5847. // header names are case insensitive
  5848. if (header.toLowerCase() === 'authorization') {
  5849. delete headers[header];
  5850. }
  5851. }
  5852. }
  5853. // let's make the request with the new redirectUrl
  5854. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  5855. response = yield this.requestRaw(info, data);
  5856. redirectsRemaining--;
  5857. }
  5858. if (!response.message.statusCode ||
  5859. !HttpResponseRetryCodes.includes(response.message.statusCode)) {
  5860. // If not a retry code, return immediately instead of retrying
  5861. return response;
  5862. }
  5863. numTries += 1;
  5864. if (numTries < maxTries) {
  5865. yield response.readBody();
  5866. yield this._performExponentialBackoff(numTries);
  5867. }
  5868. } while (numTries < maxTries);
  5869. return response;
  5870. });
  5871. }
  5872. /**
  5873. * Needs to be called if keepAlive is set to true in request options.
  5874. */
  5875. dispose() {
  5876. if (this._agent) {
  5877. this._agent.destroy();
  5878. }
  5879. this._disposed = true;
  5880. }
  5881. /**
  5882. * Raw request.
  5883. * @param info
  5884. * @param data
  5885. */
  5886. requestRaw(info, data) {
  5887. return __awaiter(this, void 0, void 0, function* () {
  5888. return new Promise((resolve, reject) => {
  5889. function callbackForResult(err, res) {
  5890. if (err) {
  5891. reject(err);
  5892. }
  5893. else if (!res) {
  5894. // If `err` is not passed, then `res` must be passed.
  5895. reject(new Error('Unknown error'));
  5896. }
  5897. else {
  5898. resolve(res);
  5899. }
  5900. }
  5901. this.requestRawWithCallback(info, data, callbackForResult);
  5902. });
  5903. });
  5904. }
  5905. /**
  5906. * Raw request with callback.
  5907. * @param info
  5908. * @param data
  5909. * @param onResult
  5910. */
  5911. requestRawWithCallback(info, data, onResult) {
  5912. if (typeof data === 'string') {
  5913. if (!info.options.headers) {
  5914. info.options.headers = {};
  5915. }
  5916. info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
  5917. }
  5918. let callbackCalled = false;
  5919. function handleResult(err, res) {
  5920. if (!callbackCalled) {
  5921. callbackCalled = true;
  5922. onResult(err, res);
  5923. }
  5924. }
  5925. const req = info.httpModule.request(info.options, (msg) => {
  5926. const res = new HttpClientResponse(msg);
  5927. handleResult(undefined, res);
  5928. });
  5929. let socket;
  5930. req.on('socket', sock => {
  5931. socket = sock;
  5932. });
  5933. // If we ever get disconnected, we want the socket to timeout eventually
  5934. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  5935. if (socket) {
  5936. socket.end();
  5937. }
  5938. handleResult(new Error(`Request timeout: ${info.options.path}`));
  5939. });
  5940. req.on('error', function (err) {
  5941. // err has statusCode property
  5942. // res should have headers
  5943. handleResult(err);
  5944. });
  5945. if (data && typeof data === 'string') {
  5946. req.write(data, 'utf8');
  5947. }
  5948. if (data && typeof data !== 'string') {
  5949. data.on('close', function () {
  5950. req.end();
  5951. });
  5952. data.pipe(req);
  5953. }
  5954. else {
  5955. req.end();
  5956. }
  5957. }
  5958. /**
  5959. * Gets an http agent. This function is useful when you need an http agent that handles
  5960. * routing through a proxy server - depending upon the url and proxy environment variables.
  5961. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  5962. */
  5963. getAgent(serverUrl) {
  5964. const parsedUrl = new URL(serverUrl);
  5965. return this._getAgent(parsedUrl);
  5966. }
  5967. _prepareRequest(method, requestUrl, headers) {
  5968. const info = {};
  5969. info.parsedUrl = requestUrl;
  5970. const usingSsl = info.parsedUrl.protocol === 'https:';
  5971. info.httpModule = usingSsl ? https : http;
  5972. const defaultPort = usingSsl ? 443 : 80;
  5973. info.options = {};
  5974. info.options.host = info.parsedUrl.hostname;
  5975. info.options.port = info.parsedUrl.port
  5976. ? parseInt(info.parsedUrl.port)
  5977. : defaultPort;
  5978. info.options.path =
  5979. (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  5980. info.options.method = method;
  5981. info.options.headers = this._mergeHeaders(headers);
  5982. if (this.userAgent != null) {
  5983. info.options.headers['user-agent'] = this.userAgent;
  5984. }
  5985. info.options.agent = this._getAgent(info.parsedUrl);
  5986. // gives handlers an opportunity to participate
  5987. if (this.handlers) {
  5988. for (const handler of this.handlers) {
  5989. handler.prepareRequest(info.options);
  5990. }
  5991. }
  5992. return info;
  5993. }
  5994. _mergeHeaders(headers) {
  5995. if (this.requestOptions && this.requestOptions.headers) {
  5996. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {}));
  5997. }
  5998. return lowercaseKeys(headers || {});
  5999. }
  6000. _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
  6001. let clientHeader;
  6002. if (this.requestOptions && this.requestOptions.headers) {
  6003. clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
  6004. }
  6005. return additionalHeaders[header] || clientHeader || _default;
  6006. }
  6007. _getAgent(parsedUrl) {
  6008. let agent;
  6009. const proxyUrl = pm.getProxyUrl(parsedUrl);
  6010. const useProxy = proxyUrl && proxyUrl.hostname;
  6011. if (this._keepAlive && useProxy) {
  6012. agent = this._proxyAgent;
  6013. }
  6014. if (this._keepAlive && !useProxy) {
  6015. agent = this._agent;
  6016. }
  6017. // if agent is already assigned use that agent.
  6018. if (agent) {
  6019. return agent;
  6020. }
  6021. const usingSsl = parsedUrl.protocol === 'https:';
  6022. let maxSockets = 100;
  6023. if (this.requestOptions) {
  6024. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  6025. }
  6026. // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.
  6027. if (proxyUrl && proxyUrl.hostname) {
  6028. const agentOptions = {
  6029. maxSockets,
  6030. keepAlive: this._keepAlive,
  6031. proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && {
  6032. proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`
  6033. })), { host: proxyUrl.hostname, port: proxyUrl.port })
  6034. };
  6035. let tunnelAgent;
  6036. const overHttps = proxyUrl.protocol === 'https:';
  6037. if (usingSsl) {
  6038. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  6039. }
  6040. else {
  6041. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  6042. }
  6043. agent = tunnelAgent(agentOptions);
  6044. this._proxyAgent = agent;
  6045. }
  6046. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  6047. if (this._keepAlive && !agent) {
  6048. const options = { keepAlive: this._keepAlive, maxSockets };
  6049. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  6050. this._agent = agent;
  6051. }
  6052. // if not using private agent and tunnel agent isn't setup then use global agent
  6053. if (!agent) {
  6054. agent = usingSsl ? https.globalAgent : http.globalAgent;
  6055. }
  6056. if (usingSsl && this._ignoreSslError) {
  6057. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  6058. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  6059. // we have to cast it to any and change it directly
  6060. agent.options = Object.assign(agent.options || {}, {
  6061. rejectUnauthorized: false
  6062. });
  6063. }
  6064. return agent;
  6065. }
  6066. _performExponentialBackoff(retryNumber) {
  6067. return __awaiter(this, void 0, void 0, function* () {
  6068. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  6069. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  6070. return new Promise(resolve => setTimeout(() => resolve(), ms));
  6071. });
  6072. }
  6073. _processResponse(res, options) {
  6074. return __awaiter(this, void 0, void 0, function* () {
  6075. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  6076. const statusCode = res.message.statusCode || 0;
  6077. const response = {
  6078. statusCode,
  6079. result: null,
  6080. headers: {}
  6081. };
  6082. // not found leads to null obj returned
  6083. if (statusCode === HttpCodes.NotFound) {
  6084. resolve(response);
  6085. }
  6086. // get the result from the body
  6087. function dateTimeDeserializer(key, value) {
  6088. if (typeof value === 'string') {
  6089. const a = new Date(value);
  6090. if (!isNaN(a.valueOf())) {
  6091. return a;
  6092. }
  6093. }
  6094. return value;
  6095. }
  6096. let obj;
  6097. let contents;
  6098. try {
  6099. contents = yield res.readBody();
  6100. if (contents && contents.length > 0) {
  6101. if (options && options.deserializeDates) {
  6102. obj = JSON.parse(contents, dateTimeDeserializer);
  6103. }
  6104. else {
  6105. obj = JSON.parse(contents);
  6106. }
  6107. response.result = obj;
  6108. }
  6109. response.headers = res.message.headers;
  6110. }
  6111. catch (err) {
  6112. // Invalid resource (contents not json); leaving result obj null
  6113. }
  6114. // note that 3xx redirects are handled by the http layer.
  6115. if (statusCode > 299) {
  6116. let msg;
  6117. // if exception/error in body, attempt to get better error
  6118. if (obj && obj.message) {
  6119. msg = obj.message;
  6120. }
  6121. else if (contents && contents.length > 0) {
  6122. // it may be the case that the exception is in the body message as string
  6123. msg = contents;
  6124. }
  6125. else {
  6126. msg = `Failed request: (${statusCode})`;
  6127. }
  6128. const err = new HttpClientError(msg, statusCode);
  6129. err.result = response.result;
  6130. reject(err);
  6131. }
  6132. else {
  6133. resolve(response);
  6134. }
  6135. }));
  6136. });
  6137. }
  6138. }
  6139. exports.HttpClient = HttpClient;
  6140. const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  6141. //# sourceMappingURL=index.js.map
  6142. /***/ }),
  6143. /***/ 9835:
  6144. /***/ ((__unused_webpack_module, exports) => {
  6145. "use strict";
  6146. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6147. exports.checkBypass = exports.getProxyUrl = void 0;
  6148. function getProxyUrl(reqUrl) {
  6149. const usingSsl = reqUrl.protocol === 'https:';
  6150. if (checkBypass(reqUrl)) {
  6151. return undefined;
  6152. }
  6153. const proxyVar = (() => {
  6154. if (usingSsl) {
  6155. return process.env['https_proxy'] || process.env['HTTPS_PROXY'];
  6156. }
  6157. else {
  6158. return process.env['http_proxy'] || process.env['HTTP_PROXY'];
  6159. }
  6160. })();
  6161. if (proxyVar) {
  6162. return new URL(proxyVar);
  6163. }
  6164. else {
  6165. return undefined;
  6166. }
  6167. }
  6168. exports.getProxyUrl = getProxyUrl;
  6169. function checkBypass(reqUrl) {
  6170. if (!reqUrl.hostname) {
  6171. return false;
  6172. }
  6173. const reqHost = reqUrl.hostname;
  6174. if (isLoopbackAddress(reqHost)) {
  6175. return true;
  6176. }
  6177. const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
  6178. if (!noProxy) {
  6179. return false;
  6180. }
  6181. // Determine the request port
  6182. let reqPort;
  6183. if (reqUrl.port) {
  6184. reqPort = Number(reqUrl.port);
  6185. }
  6186. else if (reqUrl.protocol === 'http:') {
  6187. reqPort = 80;
  6188. }
  6189. else if (reqUrl.protocol === 'https:') {
  6190. reqPort = 443;
  6191. }
  6192. // Format the request hostname and hostname with port
  6193. const upperReqHosts = [reqUrl.hostname.toUpperCase()];
  6194. if (typeof reqPort === 'number') {
  6195. upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
  6196. }
  6197. // Compare request host against noproxy
  6198. for (const upperNoProxyItem of noProxy
  6199. .split(',')
  6200. .map(x => x.trim().toUpperCase())
  6201. .filter(x => x)) {
  6202. if (upperNoProxyItem === '*' ||
  6203. upperReqHosts.some(x => x === upperNoProxyItem ||
  6204. x.endsWith(`.${upperNoProxyItem}`) ||
  6205. (upperNoProxyItem.startsWith('.') &&
  6206. x.endsWith(`${upperNoProxyItem}`)))) {
  6207. return true;
  6208. }
  6209. }
  6210. return false;
  6211. }
  6212. exports.checkBypass = checkBypass;
  6213. function isLoopbackAddress(host) {
  6214. const hostLower = host.toLowerCase();
  6215. return (hostLower === 'localhost' ||
  6216. hostLower.startsWith('127.') ||
  6217. hostLower.startsWith('[::1]') ||
  6218. hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
  6219. }
  6220. //# sourceMappingURL=proxy.js.map
  6221. /***/ }),
  6222. /***/ 1962:
  6223. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  6224. "use strict";
  6225. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6226. if (k2 === undefined) k2 = k;
  6227. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6228. }) : (function(o, m, k, k2) {
  6229. if (k2 === undefined) k2 = k;
  6230. o[k2] = m[k];
  6231. }));
  6232. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6233. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6234. }) : function(o, v) {
  6235. o["default"] = v;
  6236. });
  6237. var __importStar = (this && this.__importStar) || function (mod) {
  6238. if (mod && mod.__esModule) return mod;
  6239. var result = {};
  6240. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6241. __setModuleDefault(result, mod);
  6242. return result;
  6243. };
  6244. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6245. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6246. return new (P || (P = Promise))(function (resolve, reject) {
  6247. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6248. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6249. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6250. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6251. });
  6252. };
  6253. var _a;
  6254. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6255. 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;
  6256. const fs = __importStar(__nccwpck_require__(7147));
  6257. const path = __importStar(__nccwpck_require__(1017));
  6258. _a = fs.promises
  6259. // export const {open} = 'fs'
  6260. , 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;
  6261. // export const {open} = 'fs'
  6262. exports.IS_WINDOWS = process.platform === 'win32';
  6263. // See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691
  6264. exports.UV_FS_O_EXLOCK = 0x10000000;
  6265. exports.READONLY = fs.constants.O_RDONLY;
  6266. function exists(fsPath) {
  6267. return __awaiter(this, void 0, void 0, function* () {
  6268. try {
  6269. yield exports.stat(fsPath);
  6270. }
  6271. catch (err) {
  6272. if (err.code === 'ENOENT') {
  6273. return false;
  6274. }
  6275. throw err;
  6276. }
  6277. return true;
  6278. });
  6279. }
  6280. exports.exists = exists;
  6281. function isDirectory(fsPath, useStat = false) {
  6282. return __awaiter(this, void 0, void 0, function* () {
  6283. const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath);
  6284. return stats.isDirectory();
  6285. });
  6286. }
  6287. exports.isDirectory = isDirectory;
  6288. /**
  6289. * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
  6290. * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
  6291. */
  6292. function isRooted(p) {
  6293. p = normalizeSeparators(p);
  6294. if (!p) {
  6295. throw new Error('isRooted() parameter "p" cannot be empty');
  6296. }
  6297. if (exports.IS_WINDOWS) {
  6298. return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello
  6299. ); // e.g. C: or C:\hello
  6300. }
  6301. return p.startsWith('/');
  6302. }
  6303. exports.isRooted = isRooted;
  6304. /**
  6305. * Best effort attempt to determine whether a file exists and is executable.
  6306. * @param filePath file path to check
  6307. * @param extensions additional file extensions to try
  6308. * @return if file exists and is executable, returns the file path. otherwise empty string.
  6309. */
  6310. function tryGetExecutablePath(filePath, extensions) {
  6311. return __awaiter(this, void 0, void 0, function* () {
  6312. let stats = undefined;
  6313. try {
  6314. // test file exists
  6315. stats = yield exports.stat(filePath);
  6316. }
  6317. catch (err) {
  6318. if (err.code !== 'ENOENT') {
  6319. // eslint-disable-next-line no-console
  6320. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  6321. }
  6322. }
  6323. if (stats && stats.isFile()) {
  6324. if (exports.IS_WINDOWS) {
  6325. // on Windows, test for valid extension
  6326. const upperExt = path.extname(filePath).toUpperCase();
  6327. if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) {
  6328. return filePath;
  6329. }
  6330. }
  6331. else {
  6332. if (isUnixExecutable(stats)) {
  6333. return filePath;
  6334. }
  6335. }
  6336. }
  6337. // try each extension
  6338. const originalFilePath = filePath;
  6339. for (const extension of extensions) {
  6340. filePath = originalFilePath + extension;
  6341. stats = undefined;
  6342. try {
  6343. stats = yield exports.stat(filePath);
  6344. }
  6345. catch (err) {
  6346. if (err.code !== 'ENOENT') {
  6347. // eslint-disable-next-line no-console
  6348. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  6349. }
  6350. }
  6351. if (stats && stats.isFile()) {
  6352. if (exports.IS_WINDOWS) {
  6353. // preserve the case of the actual file (since an extension was appended)
  6354. try {
  6355. const directory = path.dirname(filePath);
  6356. const upperName = path.basename(filePath).toUpperCase();
  6357. for (const actualName of yield exports.readdir(directory)) {
  6358. if (upperName === actualName.toUpperCase()) {
  6359. filePath = path.join(directory, actualName);
  6360. break;
  6361. }
  6362. }
  6363. }
  6364. catch (err) {
  6365. // eslint-disable-next-line no-console
  6366. console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);
  6367. }
  6368. return filePath;
  6369. }
  6370. else {
  6371. if (isUnixExecutable(stats)) {
  6372. return filePath;
  6373. }
  6374. }
  6375. }
  6376. }
  6377. return '';
  6378. });
  6379. }
  6380. exports.tryGetExecutablePath = tryGetExecutablePath;
  6381. function normalizeSeparators(p) {
  6382. p = p || '';
  6383. if (exports.IS_WINDOWS) {
  6384. // convert slashes on Windows
  6385. p = p.replace(/\//g, '\\');
  6386. // remove redundant slashes
  6387. return p.replace(/\\\\+/g, '\\');
  6388. }
  6389. // remove redundant slashes
  6390. return p.replace(/\/\/+/g, '/');
  6391. }
  6392. // on Mac/Linux, test the execute bit
  6393. // R W X R W X R W X
  6394. // 256 128 64 32 16 8 4 2 1
  6395. function isUnixExecutable(stats) {
  6396. return ((stats.mode & 1) > 0 ||
  6397. ((stats.mode & 8) > 0 && stats.gid === process.getgid()) ||
  6398. ((stats.mode & 64) > 0 && stats.uid === process.getuid()));
  6399. }
  6400. // Get the path of cmd.exe in windows
  6401. function getCmdPath() {
  6402. var _a;
  6403. return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`;
  6404. }
  6405. exports.getCmdPath = getCmdPath;
  6406. //# sourceMappingURL=io-util.js.map
  6407. /***/ }),
  6408. /***/ 7436:
  6409. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  6410. "use strict";
  6411. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6412. if (k2 === undefined) k2 = k;
  6413. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6414. }) : (function(o, m, k, k2) {
  6415. if (k2 === undefined) k2 = k;
  6416. o[k2] = m[k];
  6417. }));
  6418. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6419. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6420. }) : function(o, v) {
  6421. o["default"] = v;
  6422. });
  6423. var __importStar = (this && this.__importStar) || function (mod) {
  6424. if (mod && mod.__esModule) return mod;
  6425. var result = {};
  6426. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6427. __setModuleDefault(result, mod);
  6428. return result;
  6429. };
  6430. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6431. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6432. return new (P || (P = Promise))(function (resolve, reject) {
  6433. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6434. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6435. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6436. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6437. });
  6438. };
  6439. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6440. exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0;
  6441. const assert_1 = __nccwpck_require__(9491);
  6442. const path = __importStar(__nccwpck_require__(1017));
  6443. const ioUtil = __importStar(__nccwpck_require__(1962));
  6444. /**
  6445. * Copies a file or folder.
  6446. * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
  6447. *
  6448. * @param source source path
  6449. * @param dest destination path
  6450. * @param options optional. See CopyOptions.
  6451. */
  6452. function cp(source, dest, options = {}) {
  6453. return __awaiter(this, void 0, void 0, function* () {
  6454. const { force, recursive, copySourceDirectory } = readCopyOptions(options);
  6455. const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
  6456. // Dest is an existing file, but not forcing
  6457. if (destStat && destStat.isFile() && !force) {
  6458. return;
  6459. }
  6460. // If dest is an existing directory, should copy inside.
  6461. const newDest = destStat && destStat.isDirectory() && copySourceDirectory
  6462. ? path.join(dest, path.basename(source))
  6463. : dest;
  6464. if (!(yield ioUtil.exists(source))) {
  6465. throw new Error(`no such file or directory: ${source}`);
  6466. }
  6467. const sourceStat = yield ioUtil.stat(source);
  6468. if (sourceStat.isDirectory()) {
  6469. if (!recursive) {
  6470. throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);
  6471. }
  6472. else {
  6473. yield cpDirRecursive(source, newDest, 0, force);
  6474. }
  6475. }
  6476. else {
  6477. if (path.relative(source, newDest) === '') {
  6478. // a file cannot be copied to itself
  6479. throw new Error(`'${newDest}' and '${source}' are the same file`);
  6480. }
  6481. yield copyFile(source, newDest, force);
  6482. }
  6483. });
  6484. }
  6485. exports.cp = cp;
  6486. /**
  6487. * Moves a path.
  6488. *
  6489. * @param source source path
  6490. * @param dest destination path
  6491. * @param options optional. See MoveOptions.
  6492. */
  6493. function mv(source, dest, options = {}) {
  6494. return __awaiter(this, void 0, void 0, function* () {
  6495. if (yield ioUtil.exists(dest)) {
  6496. let destExists = true;
  6497. if (yield ioUtil.isDirectory(dest)) {
  6498. // If dest is directory copy src into dest
  6499. dest = path.join(dest, path.basename(source));
  6500. destExists = yield ioUtil.exists(dest);
  6501. }
  6502. if (destExists) {
  6503. if (options.force == null || options.force) {
  6504. yield rmRF(dest);
  6505. }
  6506. else {
  6507. throw new Error('Destination already exists');
  6508. }
  6509. }
  6510. }
  6511. yield mkdirP(path.dirname(dest));
  6512. yield ioUtil.rename(source, dest);
  6513. });
  6514. }
  6515. exports.mv = mv;
  6516. /**
  6517. * Remove a path recursively with force
  6518. *
  6519. * @param inputPath path to remove
  6520. */
  6521. function rmRF(inputPath) {
  6522. return __awaiter(this, void 0, void 0, function* () {
  6523. if (ioUtil.IS_WINDOWS) {
  6524. // Check for invalid characters
  6525. // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
  6526. if (/[*"<>|]/.test(inputPath)) {
  6527. throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');
  6528. }
  6529. }
  6530. try {
  6531. // note if path does not exist, error is silent
  6532. yield ioUtil.rm(inputPath, {
  6533. force: true,
  6534. maxRetries: 3,
  6535. recursive: true,
  6536. retryDelay: 300
  6537. });
  6538. }
  6539. catch (err) {
  6540. throw new Error(`File was unable to be removed ${err}`);
  6541. }
  6542. });
  6543. }
  6544. exports.rmRF = rmRF;
  6545. /**
  6546. * Make a directory. Creates the full path with folders in between
  6547. * Will throw if it fails
  6548. *
  6549. * @param fsPath path to create
  6550. * @returns Promise<void>
  6551. */
  6552. function mkdirP(fsPath) {
  6553. return __awaiter(this, void 0, void 0, function* () {
  6554. assert_1.ok(fsPath, 'a path argument must be provided');
  6555. yield ioUtil.mkdir(fsPath, { recursive: true });
  6556. });
  6557. }
  6558. exports.mkdirP = mkdirP;
  6559. /**
  6560. * Returns path of a tool had the tool actually been invoked. Resolves via paths.
  6561. * If you check and the tool does not exist, it will throw.
  6562. *
  6563. * @param tool name of the tool
  6564. * @param check whether to check if tool exists
  6565. * @returns Promise<string> path to tool
  6566. */
  6567. function which(tool, check) {
  6568. return __awaiter(this, void 0, void 0, function* () {
  6569. if (!tool) {
  6570. throw new Error("parameter 'tool' is required");
  6571. }
  6572. // recursive when check=true
  6573. if (check) {
  6574. const result = yield which(tool, false);
  6575. if (!result) {
  6576. if (ioUtil.IS_WINDOWS) {
  6577. 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.`);
  6578. }
  6579. else {
  6580. 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.`);
  6581. }
  6582. }
  6583. return result;
  6584. }
  6585. const matches = yield findInPath(tool);
  6586. if (matches && matches.length > 0) {
  6587. return matches[0];
  6588. }
  6589. return '';
  6590. });
  6591. }
  6592. exports.which = which;
  6593. /**
  6594. * Returns a list of all occurrences of the given tool on the system path.
  6595. *
  6596. * @returns Promise<string[]> the paths of the tool
  6597. */
  6598. function findInPath(tool) {
  6599. return __awaiter(this, void 0, void 0, function* () {
  6600. if (!tool) {
  6601. throw new Error("parameter 'tool' is required");
  6602. }
  6603. // build the list of extensions to try
  6604. const extensions = [];
  6605. if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) {
  6606. for (const extension of process.env['PATHEXT'].split(path.delimiter)) {
  6607. if (extension) {
  6608. extensions.push(extension);
  6609. }
  6610. }
  6611. }
  6612. // if it's rooted, return it if exists. otherwise return empty.
  6613. if (ioUtil.isRooted(tool)) {
  6614. const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions);
  6615. if (filePath) {
  6616. return [filePath];
  6617. }
  6618. return [];
  6619. }
  6620. // if any path separators, return empty
  6621. if (tool.includes(path.sep)) {
  6622. return [];
  6623. }
  6624. // build the list of directories
  6625. //
  6626. // Note, technically "where" checks the current directory on Windows. From a toolkit perspective,
  6627. // it feels like we should not do this. Checking the current directory seems like more of a use
  6628. // case of a shell, and the which() function exposed by the toolkit should strive for consistency
  6629. // across platforms.
  6630. const directories = [];
  6631. if (process.env.PATH) {
  6632. for (const p of process.env.PATH.split(path.delimiter)) {
  6633. if (p) {
  6634. directories.push(p);
  6635. }
  6636. }
  6637. }
  6638. // find all matches
  6639. const matches = [];
  6640. for (const directory of directories) {
  6641. const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions);
  6642. if (filePath) {
  6643. matches.push(filePath);
  6644. }
  6645. }
  6646. return matches;
  6647. });
  6648. }
  6649. exports.findInPath = findInPath;
  6650. function readCopyOptions(options) {
  6651. const force = options.force == null ? true : options.force;
  6652. const recursive = Boolean(options.recursive);
  6653. const copySourceDirectory = options.copySourceDirectory == null
  6654. ? true
  6655. : Boolean(options.copySourceDirectory);
  6656. return { force, recursive, copySourceDirectory };
  6657. }
  6658. function cpDirRecursive(sourceDir, destDir, currentDepth, force) {
  6659. return __awaiter(this, void 0, void 0, function* () {
  6660. // Ensure there is not a run away recursive copy
  6661. if (currentDepth >= 255)
  6662. return;
  6663. currentDepth++;
  6664. yield mkdirP(destDir);
  6665. const files = yield ioUtil.readdir(sourceDir);
  6666. for (const fileName of files) {
  6667. const srcFile = `${sourceDir}/${fileName}`;
  6668. const destFile = `${destDir}/${fileName}`;
  6669. const srcFileStat = yield ioUtil.lstat(srcFile);
  6670. if (srcFileStat.isDirectory()) {
  6671. // Recurse
  6672. yield cpDirRecursive(srcFile, destFile, currentDepth, force);
  6673. }
  6674. else {
  6675. yield copyFile(srcFile, destFile, force);
  6676. }
  6677. }
  6678. // Change the mode for the newly created directory
  6679. yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode);
  6680. });
  6681. }
  6682. // Buffered file copy
  6683. function copyFile(srcFile, destFile, force) {
  6684. return __awaiter(this, void 0, void 0, function* () {
  6685. if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) {
  6686. // unlink/re-link it
  6687. try {
  6688. yield ioUtil.lstat(destFile);
  6689. yield ioUtil.unlink(destFile);
  6690. }
  6691. catch (e) {
  6692. // Try to override file permission
  6693. if (e.code === 'EPERM') {
  6694. yield ioUtil.chmod(destFile, '0666');
  6695. yield ioUtil.unlink(destFile);
  6696. }
  6697. // other errors = it doesn't exist, no work to do
  6698. }
  6699. // Copy over symlink
  6700. const symlinkFull = yield ioUtil.readlink(srcFile);
  6701. yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null);
  6702. }
  6703. else if (!(yield ioUtil.exists(destFile)) || force) {
  6704. yield ioUtil.copyFile(srcFile, destFile);
  6705. }
  6706. });
  6707. }
  6708. //# sourceMappingURL=io.js.map
  6709. /***/ }),
  6710. /***/ 7784:
  6711. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  6712. "use strict";
  6713. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6714. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6715. return new (P || (P = Promise))(function (resolve, reject) {
  6716. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6717. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6718. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6719. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6720. });
  6721. };
  6722. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6723. const core = __nccwpck_require__(2186);
  6724. const io = __nccwpck_require__(7436);
  6725. const fs = __nccwpck_require__(7147);
  6726. const os = __nccwpck_require__(2037);
  6727. const path = __nccwpck_require__(1017);
  6728. const httpm = __nccwpck_require__(5538);
  6729. const semver = __nccwpck_require__(562);
  6730. const uuidV4 = __nccwpck_require__(824);
  6731. const exec_1 = __nccwpck_require__(1514);
  6732. const assert_1 = __nccwpck_require__(9491);
  6733. class HTTPError extends Error {
  6734. constructor(httpStatusCode) {
  6735. super(`Unexpected HTTP response: ${httpStatusCode}`);
  6736. this.httpStatusCode = httpStatusCode;
  6737. Object.setPrototypeOf(this, new.target.prototype);
  6738. }
  6739. }
  6740. exports.HTTPError = HTTPError;
  6741. const IS_WINDOWS = process.platform === 'win32';
  6742. const userAgent = 'actions/tool-cache';
  6743. // On load grab temp directory and cache directory and remove them from env (currently don't want to expose this)
  6744. let tempDirectory = process.env['RUNNER_TEMP'] || '';
  6745. let cacheRoot = process.env['RUNNER_TOOL_CACHE'] || '';
  6746. // If directories not found, place them in common temp locations
  6747. if (!tempDirectory || !cacheRoot) {
  6748. let baseLocation;
  6749. if (IS_WINDOWS) {
  6750. // On windows use the USERPROFILE env variable
  6751. baseLocation = process.env['USERPROFILE'] || 'C:\\';
  6752. }
  6753. else {
  6754. if (process.platform === 'darwin') {
  6755. baseLocation = '/Users';
  6756. }
  6757. else {
  6758. baseLocation = '/home';
  6759. }
  6760. }
  6761. if (!tempDirectory) {
  6762. tempDirectory = path.join(baseLocation, 'actions', 'temp');
  6763. }
  6764. if (!cacheRoot) {
  6765. cacheRoot = path.join(baseLocation, 'actions', 'cache');
  6766. }
  6767. }
  6768. /**
  6769. * Download a tool from an url and stream it into a file
  6770. *
  6771. * @param url url of tool to download
  6772. * @returns path to downloaded tool
  6773. */
  6774. function downloadTool(url) {
  6775. return __awaiter(this, void 0, void 0, function* () {
  6776. // Wrap in a promise so that we can resolve from within stream callbacks
  6777. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  6778. try {
  6779. const http = new httpm.HttpClient(userAgent, [], {
  6780. allowRetries: true,
  6781. maxRetries: 3
  6782. });
  6783. const destPath = path.join(tempDirectory, uuidV4());
  6784. yield io.mkdirP(tempDirectory);
  6785. core.debug(`Downloading ${url}`);
  6786. core.debug(`Downloading ${destPath}`);
  6787. if (fs.existsSync(destPath)) {
  6788. throw new Error(`Destination file path ${destPath} already exists`);
  6789. }
  6790. const response = yield http.get(url);
  6791. if (response.message.statusCode !== 200) {
  6792. const err = new HTTPError(response.message.statusCode);
  6793. core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
  6794. throw err;
  6795. }
  6796. const file = fs.createWriteStream(destPath);
  6797. file.on('open', () => __awaiter(this, void 0, void 0, function* () {
  6798. try {
  6799. const stream = response.message.pipe(file);
  6800. stream.on('close', () => {
  6801. core.debug('download complete');
  6802. resolve(destPath);
  6803. });
  6804. }
  6805. catch (err) {
  6806. core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
  6807. reject(err);
  6808. }
  6809. }));
  6810. file.on('error', err => {
  6811. file.end();
  6812. reject(err);
  6813. });
  6814. }
  6815. catch (err) {
  6816. reject(err);
  6817. }
  6818. }));
  6819. });
  6820. }
  6821. exports.downloadTool = downloadTool;
  6822. /**
  6823. * Extract a .7z file
  6824. *
  6825. * @param file path to the .7z file
  6826. * @param dest destination directory. Optional.
  6827. * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this
  6828. * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will
  6829. * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is
  6830. * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line
  6831. * interface, it is smaller than the full command line interface, and it does support long paths. At the
  6832. * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.
  6833. * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path
  6834. * to 7zr.exe can be pass to this function.
  6835. * @returns path to the destination directory
  6836. */
  6837. function extract7z(file, dest, _7zPath) {
  6838. return __awaiter(this, void 0, void 0, function* () {
  6839. assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
  6840. assert_1.ok(file, 'parameter "file" is required');
  6841. dest = dest || (yield _createExtractFolder(dest));
  6842. const originalCwd = process.cwd();
  6843. process.chdir(dest);
  6844. if (_7zPath) {
  6845. try {
  6846. const args = [
  6847. 'x',
  6848. '-bb1',
  6849. '-bd',
  6850. '-sccUTF-8',
  6851. file
  6852. ];
  6853. const options = {
  6854. silent: true
  6855. };
  6856. yield exec_1.exec(`"${_7zPath}"`, args, options);
  6857. }
  6858. finally {
  6859. process.chdir(originalCwd);
  6860. }
  6861. }
  6862. else {
  6863. const escapedScript = path
  6864. .join(__dirname, '..', 'scripts', 'Invoke-7zdec.ps1')
  6865. .replace(/'/g, "''")
  6866. .replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  6867. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  6868. const escapedTarget = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  6869. const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;
  6870. const args = [
  6871. '-NoLogo',
  6872. '-Sta',
  6873. '-NoProfile',
  6874. '-NonInteractive',
  6875. '-ExecutionPolicy',
  6876. 'Unrestricted',
  6877. '-Command',
  6878. command
  6879. ];
  6880. const options = {
  6881. silent: true
  6882. };
  6883. try {
  6884. const powershellPath = yield io.which('powershell', true);
  6885. yield exec_1.exec(`"${powershellPath}"`, args, options);
  6886. }
  6887. finally {
  6888. process.chdir(originalCwd);
  6889. }
  6890. }
  6891. return dest;
  6892. });
  6893. }
  6894. exports.extract7z = extract7z;
  6895. /**
  6896. * Extract a tar
  6897. *
  6898. * @param file path to the tar
  6899. * @param dest destination directory. Optional.
  6900. * @param flags flags for the tar. Optional.
  6901. * @returns path to the destination directory
  6902. */
  6903. function extractTar(file, dest, flags = 'xz') {
  6904. return __awaiter(this, void 0, void 0, function* () {
  6905. if (!file) {
  6906. throw new Error("parameter 'file' is required");
  6907. }
  6908. dest = dest || (yield _createExtractFolder(dest));
  6909. const tarPath = yield io.which('tar', true);
  6910. yield exec_1.exec(`"${tarPath}"`, [flags, '-C', dest, '-f', file]);
  6911. return dest;
  6912. });
  6913. }
  6914. exports.extractTar = extractTar;
  6915. /**
  6916. * Extract a zip
  6917. *
  6918. * @param file path to the zip
  6919. * @param dest destination directory. Optional.
  6920. * @returns path to the destination directory
  6921. */
  6922. function extractZip(file, dest) {
  6923. return __awaiter(this, void 0, void 0, function* () {
  6924. if (!file) {
  6925. throw new Error("parameter 'file' is required");
  6926. }
  6927. dest = dest || (yield _createExtractFolder(dest));
  6928. if (IS_WINDOWS) {
  6929. yield extractZipWin(file, dest);
  6930. }
  6931. else {
  6932. yield extractZipNix(file, dest);
  6933. }
  6934. return dest;
  6935. });
  6936. }
  6937. exports.extractZip = extractZip;
  6938. function extractZipWin(file, dest) {
  6939. return __awaiter(this, void 0, void 0, function* () {
  6940. // build the powershell command
  6941. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  6942. const escapedDest = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  6943. const command = `$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}')`;
  6944. // run powershell
  6945. const powershellPath = yield io.which('powershell');
  6946. const args = [
  6947. '-NoLogo',
  6948. '-Sta',
  6949. '-NoProfile',
  6950. '-NonInteractive',
  6951. '-ExecutionPolicy',
  6952. 'Unrestricted',
  6953. '-Command',
  6954. command
  6955. ];
  6956. yield exec_1.exec(`"${powershellPath}"`, args);
  6957. });
  6958. }
  6959. function extractZipNix(file, dest) {
  6960. return __awaiter(this, void 0, void 0, function* () {
  6961. const unzipPath = yield io.which('unzip');
  6962. yield exec_1.exec(`"${unzipPath}"`, [file], { cwd: dest });
  6963. });
  6964. }
  6965. /**
  6966. * Caches a directory and installs it into the tool cacheDir
  6967. *
  6968. * @param sourceDir the directory to cache into tools
  6969. * @param tool tool name
  6970. * @param version version of the tool. semver format
  6971. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  6972. */
  6973. function cacheDir(sourceDir, tool, version, arch) {
  6974. return __awaiter(this, void 0, void 0, function* () {
  6975. version = semver.clean(version) || version;
  6976. arch = arch || os.arch();
  6977. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  6978. core.debug(`source dir: ${sourceDir}`);
  6979. if (!fs.statSync(sourceDir).isDirectory()) {
  6980. throw new Error('sourceDir is not a directory');
  6981. }
  6982. // Create the tool dir
  6983. const destPath = yield _createToolPath(tool, version, arch);
  6984. // copy each child item. do not move. move can fail on Windows
  6985. // due to anti-virus software having an open handle on a file.
  6986. for (const itemName of fs.readdirSync(sourceDir)) {
  6987. const s = path.join(sourceDir, itemName);
  6988. yield io.cp(s, destPath, { recursive: true });
  6989. }
  6990. // write .complete
  6991. _completeToolPath(tool, version, arch);
  6992. return destPath;
  6993. });
  6994. }
  6995. exports.cacheDir = cacheDir;
  6996. /**
  6997. * Caches a downloaded file (GUID) and installs it
  6998. * into the tool cache with a given targetName
  6999. *
  7000. * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.
  7001. * @param targetFile the name of the file name in the tools directory
  7002. * @param tool tool name
  7003. * @param version version of the tool. semver format
  7004. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  7005. */
  7006. function cacheFile(sourceFile, targetFile, tool, version, arch) {
  7007. return __awaiter(this, void 0, void 0, function* () {
  7008. version = semver.clean(version) || version;
  7009. arch = arch || os.arch();
  7010. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  7011. core.debug(`source file: ${sourceFile}`);
  7012. if (!fs.statSync(sourceFile).isFile()) {
  7013. throw new Error('sourceFile is not a file');
  7014. }
  7015. // create the tool dir
  7016. const destFolder = yield _createToolPath(tool, version, arch);
  7017. // copy instead of move. move can fail on Windows due to
  7018. // anti-virus software having an open handle on a file.
  7019. const destPath = path.join(destFolder, targetFile);
  7020. core.debug(`destination file ${destPath}`);
  7021. yield io.cp(sourceFile, destPath);
  7022. // write .complete
  7023. _completeToolPath(tool, version, arch);
  7024. return destFolder;
  7025. });
  7026. }
  7027. exports.cacheFile = cacheFile;
  7028. /**
  7029. * Finds the path to a tool version in the local installed tool cache
  7030. *
  7031. * @param toolName name of the tool
  7032. * @param versionSpec version of the tool
  7033. * @param arch optional arch. defaults to arch of computer
  7034. */
  7035. function find(toolName, versionSpec, arch) {
  7036. if (!toolName) {
  7037. throw new Error('toolName parameter is required');
  7038. }
  7039. if (!versionSpec) {
  7040. throw new Error('versionSpec parameter is required');
  7041. }
  7042. arch = arch || os.arch();
  7043. // attempt to resolve an explicit version
  7044. if (!_isExplicitVersion(versionSpec)) {
  7045. const localVersions = findAllVersions(toolName, arch);
  7046. const match = _evaluateVersions(localVersions, versionSpec);
  7047. versionSpec = match;
  7048. }
  7049. // check for the explicit version in the cache
  7050. let toolPath = '';
  7051. if (versionSpec) {
  7052. versionSpec = semver.clean(versionSpec) || '';
  7053. const cachePath = path.join(cacheRoot, toolName, versionSpec, arch);
  7054. core.debug(`checking cache: ${cachePath}`);
  7055. if (fs.existsSync(cachePath) && fs.existsSync(`${cachePath}.complete`)) {
  7056. core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);
  7057. toolPath = cachePath;
  7058. }
  7059. else {
  7060. core.debug('not found');
  7061. }
  7062. }
  7063. return toolPath;
  7064. }
  7065. exports.find = find;
  7066. /**
  7067. * Finds the paths to all versions of a tool that are installed in the local tool cache
  7068. *
  7069. * @param toolName name of the tool
  7070. * @param arch optional arch. defaults to arch of computer
  7071. */
  7072. function findAllVersions(toolName, arch) {
  7073. const versions = [];
  7074. arch = arch || os.arch();
  7075. const toolPath = path.join(cacheRoot, toolName);
  7076. if (fs.existsSync(toolPath)) {
  7077. const children = fs.readdirSync(toolPath);
  7078. for (const child of children) {
  7079. if (_isExplicitVersion(child)) {
  7080. const fullPath = path.join(toolPath, child, arch || '');
  7081. if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {
  7082. versions.push(child);
  7083. }
  7084. }
  7085. }
  7086. }
  7087. return versions;
  7088. }
  7089. exports.findAllVersions = findAllVersions;
  7090. function _createExtractFolder(dest) {
  7091. return __awaiter(this, void 0, void 0, function* () {
  7092. if (!dest) {
  7093. // create a temp dir
  7094. dest = path.join(tempDirectory, uuidV4());
  7095. }
  7096. yield io.mkdirP(dest);
  7097. return dest;
  7098. });
  7099. }
  7100. function _createToolPath(tool, version, arch) {
  7101. return __awaiter(this, void 0, void 0, function* () {
  7102. const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
  7103. core.debug(`destination ${folderPath}`);
  7104. const markerPath = `${folderPath}.complete`;
  7105. yield io.rmRF(folderPath);
  7106. yield io.rmRF(markerPath);
  7107. yield io.mkdirP(folderPath);
  7108. return folderPath;
  7109. });
  7110. }
  7111. function _completeToolPath(tool, version, arch) {
  7112. const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
  7113. const markerPath = `${folderPath}.complete`;
  7114. fs.writeFileSync(markerPath, '');
  7115. core.debug('finished caching tool');
  7116. }
  7117. function _isExplicitVersion(versionSpec) {
  7118. const c = semver.clean(versionSpec) || '';
  7119. core.debug(`isExplicit: ${c}`);
  7120. const valid = semver.valid(c) != null;
  7121. core.debug(`explicit? ${valid}`);
  7122. return valid;
  7123. }
  7124. function _evaluateVersions(versions, versionSpec) {
  7125. let version = '';
  7126. core.debug(`evaluating ${versions.length} versions`);
  7127. versions = versions.sort((a, b) => {
  7128. if (semver.gt(a, b)) {
  7129. return 1;
  7130. }
  7131. return -1;
  7132. });
  7133. for (let i = versions.length - 1; i >= 0; i--) {
  7134. const potential = versions[i];
  7135. const satisfied = semver.satisfies(potential, versionSpec);
  7136. if (satisfied) {
  7137. version = potential;
  7138. break;
  7139. }
  7140. }
  7141. if (version) {
  7142. core.debug(`matched: ${version}`);
  7143. }
  7144. else {
  7145. core.debug('match not found');
  7146. }
  7147. return version;
  7148. }
  7149. //# sourceMappingURL=tool-cache.js.map
  7150. /***/ }),
  7151. /***/ 562:
  7152. /***/ ((module, exports) => {
  7153. exports = module.exports = SemVer
  7154. var debug
  7155. /* istanbul ignore next */
  7156. if (typeof process === 'object' &&
  7157. process.env &&
  7158. process.env.NODE_DEBUG &&
  7159. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  7160. debug = function () {
  7161. var args = Array.prototype.slice.call(arguments, 0)
  7162. args.unshift('SEMVER')
  7163. console.log.apply(console, args)
  7164. }
  7165. } else {
  7166. debug = function () {}
  7167. }
  7168. // Note: this is the semver.org version of the spec that it implements
  7169. // Not necessarily the package version of this code.
  7170. exports.SEMVER_SPEC_VERSION = '2.0.0'
  7171. var MAX_LENGTH = 256
  7172. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  7173. /* istanbul ignore next */ 9007199254740991
  7174. // Max safe segment length for coercion.
  7175. var MAX_SAFE_COMPONENT_LENGTH = 16
  7176. // The actual regexps go on exports.re
  7177. var re = exports.re = []
  7178. var src = exports.src = []
  7179. var t = exports.tokens = {}
  7180. var R = 0
  7181. function tok (n) {
  7182. t[n] = R++
  7183. }
  7184. // The following Regular Expressions can be used for tokenizing,
  7185. // validating, and parsing SemVer version strings.
  7186. // ## Numeric Identifier
  7187. // A single `0`, or a non-zero digit followed by zero or more digits.
  7188. tok('NUMERICIDENTIFIER')
  7189. src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  7190. tok('NUMERICIDENTIFIERLOOSE')
  7191. src[t.NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  7192. // ## Non-numeric Identifier
  7193. // Zero or more digits, followed by a letter or hyphen, and then zero or
  7194. // more letters, digits, or hyphens.
  7195. tok('NONNUMERICIDENTIFIER')
  7196. src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  7197. // ## Main Version
  7198. // Three dot-separated numeric identifiers.
  7199. tok('MAINVERSION')
  7200. src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  7201. '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  7202. '(' + src[t.NUMERICIDENTIFIER] + ')'
  7203. tok('MAINVERSIONLOOSE')
  7204. src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  7205. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  7206. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'
  7207. // ## Pre-release Version Identifier
  7208. // A numeric identifier, or a non-numeric identifier.
  7209. tok('PRERELEASEIDENTIFIER')
  7210. src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +
  7211. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  7212. tok('PRERELEASEIDENTIFIERLOOSE')
  7213. src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +
  7214. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  7215. // ## Pre-release Version
  7216. // Hyphen, followed by one or more dot-separated pre-release version
  7217. // identifiers.
  7218. tok('PRERELEASE')
  7219. src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +
  7220. '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'
  7221. tok('PRERELEASELOOSE')
  7222. src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +
  7223. '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'
  7224. // ## Build Metadata Identifier
  7225. // Any combination of digits, letters, or hyphens.
  7226. tok('BUILDIDENTIFIER')
  7227. src[t.BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  7228. // ## Build Metadata
  7229. // Plus sign, followed by one or more period-separated build metadata
  7230. // identifiers.
  7231. tok('BUILD')
  7232. src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] +
  7233. '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))'
  7234. // ## Full Version String
  7235. // A main version, followed optionally by a pre-release version and
  7236. // build metadata.
  7237. // Note that the only major, minor, patch, and pre-release sections of
  7238. // the version string are capturing groups. The build metadata is not a
  7239. // capturing group, because it should not ever be used in version
  7240. // comparison.
  7241. tok('FULL')
  7242. tok('FULLPLAIN')
  7243. src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +
  7244. src[t.PRERELEASE] + '?' +
  7245. src[t.BUILD] + '?'
  7246. src[t.FULL] = '^' + src[t.FULLPLAIN] + '$'
  7247. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  7248. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  7249. // common in the npm registry.
  7250. tok('LOOSEPLAIN')
  7251. src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] +
  7252. src[t.PRERELEASELOOSE] + '?' +
  7253. src[t.BUILD] + '?'
  7254. tok('LOOSE')
  7255. src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'
  7256. tok('GTLT')
  7257. src[t.GTLT] = '((?:<|>)?=?)'
  7258. // Something like "2.*" or "1.2.x".
  7259. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  7260. // Only the first item is strictly required.
  7261. tok('XRANGEIDENTIFIERLOOSE')
  7262. src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  7263. tok('XRANGEIDENTIFIER')
  7264. src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*'
  7265. tok('XRANGEPLAIN')
  7266. src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +
  7267. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  7268. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  7269. '(?:' + src[t.PRERELEASE] + ')?' +
  7270. src[t.BUILD] + '?' +
  7271. ')?)?'
  7272. tok('XRANGEPLAINLOOSE')
  7273. src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  7274. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  7275. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  7276. '(?:' + src[t.PRERELEASELOOSE] + ')?' +
  7277. src[t.BUILD] + '?' +
  7278. ')?)?'
  7279. tok('XRANGE')
  7280. src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$'
  7281. tok('XRANGELOOSE')
  7282. src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$'
  7283. // Coercion.
  7284. // Extract anything that could conceivably be a part of a valid semver
  7285. tok('COERCE')
  7286. src[t.COERCE] = '(^|[^\\d])' +
  7287. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  7288. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  7289. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  7290. '(?:$|[^\\d])'
  7291. tok('COERCERTL')
  7292. re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')
  7293. // Tilde ranges.
  7294. // Meaning is "reasonably at or greater than"
  7295. tok('LONETILDE')
  7296. src[t.LONETILDE] = '(?:~>?)'
  7297. tok('TILDETRIM')
  7298. src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+'
  7299. re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')
  7300. var tildeTrimReplace = '$1~'
  7301. tok('TILDE')
  7302. src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'
  7303. tok('TILDELOOSE')
  7304. src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'
  7305. // Caret ranges.
  7306. // Meaning is "at least and backwards compatible with"
  7307. tok('LONECARET')
  7308. src[t.LONECARET] = '(?:\\^)'
  7309. tok('CARETTRIM')
  7310. src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+'
  7311. re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')
  7312. var caretTrimReplace = '$1^'
  7313. tok('CARET')
  7314. src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'
  7315. tok('CARETLOOSE')
  7316. src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'
  7317. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  7318. tok('COMPARATORLOOSE')
  7319. src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'
  7320. tok('COMPARATOR')
  7321. src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$'
  7322. // An expression to strip any whitespace between the gtlt and the thing
  7323. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  7324. tok('COMPARATORTRIM')
  7325. src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] +
  7326. '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'
  7327. // this one has to use the /g flag
  7328. re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')
  7329. var comparatorTrimReplace = '$1$2$3'
  7330. // Something like `1.2.3 - 1.2.4`
  7331. // Note that these all use the loose form, because they'll be
  7332. // checked against either the strict or loose comparator form
  7333. // later.
  7334. tok('HYPHENRANGE')
  7335. src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' +
  7336. '\\s+-\\s+' +
  7337. '(' + src[t.XRANGEPLAIN] + ')' +
  7338. '\\s*$'
  7339. tok('HYPHENRANGELOOSE')
  7340. src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +
  7341. '\\s+-\\s+' +
  7342. '(' + src[t.XRANGEPLAINLOOSE] + ')' +
  7343. '\\s*$'
  7344. // Star ranges basically just allow anything at all.
  7345. tok('STAR')
  7346. src[t.STAR] = '(<|>)?=?\\s*\\*'
  7347. // Compile to actual regexp objects.
  7348. // All are flag-free, unless they were created above with a flag.
  7349. for (var i = 0; i < R; i++) {
  7350. debug(i, src[i])
  7351. if (!re[i]) {
  7352. re[i] = new RegExp(src[i])
  7353. }
  7354. }
  7355. exports.parse = parse
  7356. function parse (version, options) {
  7357. if (!options || typeof options !== 'object') {
  7358. options = {
  7359. loose: !!options,
  7360. includePrerelease: false
  7361. }
  7362. }
  7363. if (version instanceof SemVer) {
  7364. return version
  7365. }
  7366. if (typeof version !== 'string') {
  7367. return null
  7368. }
  7369. if (version.length > MAX_LENGTH) {
  7370. return null
  7371. }
  7372. var r = options.loose ? re[t.LOOSE] : re[t.FULL]
  7373. if (!r.test(version)) {
  7374. return null
  7375. }
  7376. try {
  7377. return new SemVer(version, options)
  7378. } catch (er) {
  7379. return null
  7380. }
  7381. }
  7382. exports.valid = valid
  7383. function valid (version, options) {
  7384. var v = parse(version, options)
  7385. return v ? v.version : null
  7386. }
  7387. exports.clean = clean
  7388. function clean (version, options) {
  7389. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  7390. return s ? s.version : null
  7391. }
  7392. exports.SemVer = SemVer
  7393. function SemVer (version, options) {
  7394. if (!options || typeof options !== 'object') {
  7395. options = {
  7396. loose: !!options,
  7397. includePrerelease: false
  7398. }
  7399. }
  7400. if (version instanceof SemVer) {
  7401. if (version.loose === options.loose) {
  7402. return version
  7403. } else {
  7404. version = version.version
  7405. }
  7406. } else if (typeof version !== 'string') {
  7407. throw new TypeError('Invalid Version: ' + version)
  7408. }
  7409. if (version.length > MAX_LENGTH) {
  7410. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  7411. }
  7412. if (!(this instanceof SemVer)) {
  7413. return new SemVer(version, options)
  7414. }
  7415. debug('SemVer', version, options)
  7416. this.options = options
  7417. this.loose = !!options.loose
  7418. var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
  7419. if (!m) {
  7420. throw new TypeError('Invalid Version: ' + version)
  7421. }
  7422. this.raw = version
  7423. // these are actually numbers
  7424. this.major = +m[1]
  7425. this.minor = +m[2]
  7426. this.patch = +m[3]
  7427. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  7428. throw new TypeError('Invalid major version')
  7429. }
  7430. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  7431. throw new TypeError('Invalid minor version')
  7432. }
  7433. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  7434. throw new TypeError('Invalid patch version')
  7435. }
  7436. // numberify any prerelease numeric ids
  7437. if (!m[4]) {
  7438. this.prerelease = []
  7439. } else {
  7440. this.prerelease = m[4].split('.').map(function (id) {
  7441. if (/^[0-9]+$/.test(id)) {
  7442. var num = +id
  7443. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  7444. return num
  7445. }
  7446. }
  7447. return id
  7448. })
  7449. }
  7450. this.build = m[5] ? m[5].split('.') : []
  7451. this.format()
  7452. }
  7453. SemVer.prototype.format = function () {
  7454. this.version = this.major + '.' + this.minor + '.' + this.patch
  7455. if (this.prerelease.length) {
  7456. this.version += '-' + this.prerelease.join('.')
  7457. }
  7458. return this.version
  7459. }
  7460. SemVer.prototype.toString = function () {
  7461. return this.version
  7462. }
  7463. SemVer.prototype.compare = function (other) {
  7464. debug('SemVer.compare', this.version, this.options, other)
  7465. if (!(other instanceof SemVer)) {
  7466. other = new SemVer(other, this.options)
  7467. }
  7468. return this.compareMain(other) || this.comparePre(other)
  7469. }
  7470. SemVer.prototype.compareMain = function (other) {
  7471. if (!(other instanceof SemVer)) {
  7472. other = new SemVer(other, this.options)
  7473. }
  7474. return compareIdentifiers(this.major, other.major) ||
  7475. compareIdentifiers(this.minor, other.minor) ||
  7476. compareIdentifiers(this.patch, other.patch)
  7477. }
  7478. SemVer.prototype.comparePre = function (other) {
  7479. if (!(other instanceof SemVer)) {
  7480. other = new SemVer(other, this.options)
  7481. }
  7482. // NOT having a prerelease is > having one
  7483. if (this.prerelease.length && !other.prerelease.length) {
  7484. return -1
  7485. } else if (!this.prerelease.length && other.prerelease.length) {
  7486. return 1
  7487. } else if (!this.prerelease.length && !other.prerelease.length) {
  7488. return 0
  7489. }
  7490. var i = 0
  7491. do {
  7492. var a = this.prerelease[i]
  7493. var b = other.prerelease[i]
  7494. debug('prerelease compare', i, a, b)
  7495. if (a === undefined && b === undefined) {
  7496. return 0
  7497. } else if (b === undefined) {
  7498. return 1
  7499. } else if (a === undefined) {
  7500. return -1
  7501. } else if (a === b) {
  7502. continue
  7503. } else {
  7504. return compareIdentifiers(a, b)
  7505. }
  7506. } while (++i)
  7507. }
  7508. SemVer.prototype.compareBuild = function (other) {
  7509. if (!(other instanceof SemVer)) {
  7510. other = new SemVer(other, this.options)
  7511. }
  7512. var i = 0
  7513. do {
  7514. var a = this.build[i]
  7515. var b = other.build[i]
  7516. debug('prerelease compare', i, a, b)
  7517. if (a === undefined && b === undefined) {
  7518. return 0
  7519. } else if (b === undefined) {
  7520. return 1
  7521. } else if (a === undefined) {
  7522. return -1
  7523. } else if (a === b) {
  7524. continue
  7525. } else {
  7526. return compareIdentifiers(a, b)
  7527. }
  7528. } while (++i)
  7529. }
  7530. // preminor will bump the version up to the next minor release, and immediately
  7531. // down to pre-release. premajor and prepatch work the same way.
  7532. SemVer.prototype.inc = function (release, identifier) {
  7533. switch (release) {
  7534. case 'premajor':
  7535. this.prerelease.length = 0
  7536. this.patch = 0
  7537. this.minor = 0
  7538. this.major++
  7539. this.inc('pre', identifier)
  7540. break
  7541. case 'preminor':
  7542. this.prerelease.length = 0
  7543. this.patch = 0
  7544. this.minor++
  7545. this.inc('pre', identifier)
  7546. break
  7547. case 'prepatch':
  7548. // If this is already a prerelease, it will bump to the next version
  7549. // drop any prereleases that might already exist, since they are not
  7550. // relevant at this point.
  7551. this.prerelease.length = 0
  7552. this.inc('patch', identifier)
  7553. this.inc('pre', identifier)
  7554. break
  7555. // If the input is a non-prerelease version, this acts the same as
  7556. // prepatch.
  7557. case 'prerelease':
  7558. if (this.prerelease.length === 0) {
  7559. this.inc('patch', identifier)
  7560. }
  7561. this.inc('pre', identifier)
  7562. break
  7563. case 'major':
  7564. // If this is a pre-major version, bump up to the same major version.
  7565. // Otherwise increment major.
  7566. // 1.0.0-5 bumps to 1.0.0
  7567. // 1.1.0 bumps to 2.0.0
  7568. if (this.minor !== 0 ||
  7569. this.patch !== 0 ||
  7570. this.prerelease.length === 0) {
  7571. this.major++
  7572. }
  7573. this.minor = 0
  7574. this.patch = 0
  7575. this.prerelease = []
  7576. break
  7577. case 'minor':
  7578. // If this is a pre-minor version, bump up to the same minor version.
  7579. // Otherwise increment minor.
  7580. // 1.2.0-5 bumps to 1.2.0
  7581. // 1.2.1 bumps to 1.3.0
  7582. if (this.patch !== 0 || this.prerelease.length === 0) {
  7583. this.minor++
  7584. }
  7585. this.patch = 0
  7586. this.prerelease = []
  7587. break
  7588. case 'patch':
  7589. // If this is not a pre-release version, it will increment the patch.
  7590. // If it is a pre-release it will bump up to the same patch version.
  7591. // 1.2.0-5 patches to 1.2.0
  7592. // 1.2.0 patches to 1.2.1
  7593. if (this.prerelease.length === 0) {
  7594. this.patch++
  7595. }
  7596. this.prerelease = []
  7597. break
  7598. // This probably shouldn't be used publicly.
  7599. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  7600. case 'pre':
  7601. if (this.prerelease.length === 0) {
  7602. this.prerelease = [0]
  7603. } else {
  7604. var i = this.prerelease.length
  7605. while (--i >= 0) {
  7606. if (typeof this.prerelease[i] === 'number') {
  7607. this.prerelease[i]++
  7608. i = -2
  7609. }
  7610. }
  7611. if (i === -1) {
  7612. // didn't increment anything
  7613. this.prerelease.push(0)
  7614. }
  7615. }
  7616. if (identifier) {
  7617. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  7618. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  7619. if (this.prerelease[0] === identifier) {
  7620. if (isNaN(this.prerelease[1])) {
  7621. this.prerelease = [identifier, 0]
  7622. }
  7623. } else {
  7624. this.prerelease = [identifier, 0]
  7625. }
  7626. }
  7627. break
  7628. default:
  7629. throw new Error('invalid increment argument: ' + release)
  7630. }
  7631. this.format()
  7632. this.raw = this.version
  7633. return this
  7634. }
  7635. exports.inc = inc
  7636. function inc (version, release, loose, identifier) {
  7637. if (typeof (loose) === 'string') {
  7638. identifier = loose
  7639. loose = undefined
  7640. }
  7641. try {
  7642. return new SemVer(version, loose).inc(release, identifier).version
  7643. } catch (er) {
  7644. return null
  7645. }
  7646. }
  7647. exports.diff = diff
  7648. function diff (version1, version2) {
  7649. if (eq(version1, version2)) {
  7650. return null
  7651. } else {
  7652. var v1 = parse(version1)
  7653. var v2 = parse(version2)
  7654. var prefix = ''
  7655. if (v1.prerelease.length || v2.prerelease.length) {
  7656. prefix = 'pre'
  7657. var defaultResult = 'prerelease'
  7658. }
  7659. for (var key in v1) {
  7660. if (key === 'major' || key === 'minor' || key === 'patch') {
  7661. if (v1[key] !== v2[key]) {
  7662. return prefix + key
  7663. }
  7664. }
  7665. }
  7666. return defaultResult // may be undefined
  7667. }
  7668. }
  7669. exports.compareIdentifiers = compareIdentifiers
  7670. var numeric = /^[0-9]+$/
  7671. function compareIdentifiers (a, b) {
  7672. var anum = numeric.test(a)
  7673. var bnum = numeric.test(b)
  7674. if (anum && bnum) {
  7675. a = +a
  7676. b = +b
  7677. }
  7678. return a === b ? 0
  7679. : (anum && !bnum) ? -1
  7680. : (bnum && !anum) ? 1
  7681. : a < b ? -1
  7682. : 1
  7683. }
  7684. exports.rcompareIdentifiers = rcompareIdentifiers
  7685. function rcompareIdentifiers (a, b) {
  7686. return compareIdentifiers(b, a)
  7687. }
  7688. exports.major = major
  7689. function major (a, loose) {
  7690. return new SemVer(a, loose).major
  7691. }
  7692. exports.minor = minor
  7693. function minor (a, loose) {
  7694. return new SemVer(a, loose).minor
  7695. }
  7696. exports.patch = patch
  7697. function patch (a, loose) {
  7698. return new SemVer(a, loose).patch
  7699. }
  7700. exports.compare = compare
  7701. function compare (a, b, loose) {
  7702. return new SemVer(a, loose).compare(new SemVer(b, loose))
  7703. }
  7704. exports.compareLoose = compareLoose
  7705. function compareLoose (a, b) {
  7706. return compare(a, b, true)
  7707. }
  7708. exports.compareBuild = compareBuild
  7709. function compareBuild (a, b, loose) {
  7710. var versionA = new SemVer(a, loose)
  7711. var versionB = new SemVer(b, loose)
  7712. return versionA.compare(versionB) || versionA.compareBuild(versionB)
  7713. }
  7714. exports.rcompare = rcompare
  7715. function rcompare (a, b, loose) {
  7716. return compare(b, a, loose)
  7717. }
  7718. exports.sort = sort
  7719. function sort (list, loose) {
  7720. return list.sort(function (a, b) {
  7721. return exports.compareBuild(a, b, loose)
  7722. })
  7723. }
  7724. exports.rsort = rsort
  7725. function rsort (list, loose) {
  7726. return list.sort(function (a, b) {
  7727. return exports.compareBuild(b, a, loose)
  7728. })
  7729. }
  7730. exports.gt = gt
  7731. function gt (a, b, loose) {
  7732. return compare(a, b, loose) > 0
  7733. }
  7734. exports.lt = lt
  7735. function lt (a, b, loose) {
  7736. return compare(a, b, loose) < 0
  7737. }
  7738. exports.eq = eq
  7739. function eq (a, b, loose) {
  7740. return compare(a, b, loose) === 0
  7741. }
  7742. exports.neq = neq
  7743. function neq (a, b, loose) {
  7744. return compare(a, b, loose) !== 0
  7745. }
  7746. exports.gte = gte
  7747. function gte (a, b, loose) {
  7748. return compare(a, b, loose) >= 0
  7749. }
  7750. exports.lte = lte
  7751. function lte (a, b, loose) {
  7752. return compare(a, b, loose) <= 0
  7753. }
  7754. exports.cmp = cmp
  7755. function cmp (a, op, b, loose) {
  7756. switch (op) {
  7757. case '===':
  7758. if (typeof a === 'object')
  7759. a = a.version
  7760. if (typeof b === 'object')
  7761. b = b.version
  7762. return a === b
  7763. case '!==':
  7764. if (typeof a === 'object')
  7765. a = a.version
  7766. if (typeof b === 'object')
  7767. b = b.version
  7768. return a !== b
  7769. case '':
  7770. case '=':
  7771. case '==':
  7772. return eq(a, b, loose)
  7773. case '!=':
  7774. return neq(a, b, loose)
  7775. case '>':
  7776. return gt(a, b, loose)
  7777. case '>=':
  7778. return gte(a, b, loose)
  7779. case '<':
  7780. return lt(a, b, loose)
  7781. case '<=':
  7782. return lte(a, b, loose)
  7783. default:
  7784. throw new TypeError('Invalid operator: ' + op)
  7785. }
  7786. }
  7787. exports.Comparator = Comparator
  7788. function Comparator (comp, options) {
  7789. if (!options || typeof options !== 'object') {
  7790. options = {
  7791. loose: !!options,
  7792. includePrerelease: false
  7793. }
  7794. }
  7795. if (comp instanceof Comparator) {
  7796. if (comp.loose === !!options.loose) {
  7797. return comp
  7798. } else {
  7799. comp = comp.value
  7800. }
  7801. }
  7802. if (!(this instanceof Comparator)) {
  7803. return new Comparator(comp, options)
  7804. }
  7805. debug('comparator', comp, options)
  7806. this.options = options
  7807. this.loose = !!options.loose
  7808. this.parse(comp)
  7809. if (this.semver === ANY) {
  7810. this.value = ''
  7811. } else {
  7812. this.value = this.operator + this.semver.version
  7813. }
  7814. debug('comp', this)
  7815. }
  7816. var ANY = {}
  7817. Comparator.prototype.parse = function (comp) {
  7818. var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  7819. var m = comp.match(r)
  7820. if (!m) {
  7821. throw new TypeError('Invalid comparator: ' + comp)
  7822. }
  7823. this.operator = m[1] !== undefined ? m[1] : ''
  7824. if (this.operator === '=') {
  7825. this.operator = ''
  7826. }
  7827. // if it literally is just '>' or '' then allow anything.
  7828. if (!m[2]) {
  7829. this.semver = ANY
  7830. } else {
  7831. this.semver = new SemVer(m[2], this.options.loose)
  7832. }
  7833. }
  7834. Comparator.prototype.toString = function () {
  7835. return this.value
  7836. }
  7837. Comparator.prototype.test = function (version) {
  7838. debug('Comparator.test', version, this.options.loose)
  7839. if (this.semver === ANY || version === ANY) {
  7840. return true
  7841. }
  7842. if (typeof version === 'string') {
  7843. try {
  7844. version = new SemVer(version, this.options)
  7845. } catch (er) {
  7846. return false
  7847. }
  7848. }
  7849. return cmp(version, this.operator, this.semver, this.options)
  7850. }
  7851. Comparator.prototype.intersects = function (comp, options) {
  7852. if (!(comp instanceof Comparator)) {
  7853. throw new TypeError('a Comparator is required')
  7854. }
  7855. if (!options || typeof options !== 'object') {
  7856. options = {
  7857. loose: !!options,
  7858. includePrerelease: false
  7859. }
  7860. }
  7861. var rangeTmp
  7862. if (this.operator === '') {
  7863. if (this.value === '') {
  7864. return true
  7865. }
  7866. rangeTmp = new Range(comp.value, options)
  7867. return satisfies(this.value, rangeTmp, options)
  7868. } else if (comp.operator === '') {
  7869. if (comp.value === '') {
  7870. return true
  7871. }
  7872. rangeTmp = new Range(this.value, options)
  7873. return satisfies(comp.semver, rangeTmp, options)
  7874. }
  7875. var sameDirectionIncreasing =
  7876. (this.operator === '>=' || this.operator === '>') &&
  7877. (comp.operator === '>=' || comp.operator === '>')
  7878. var sameDirectionDecreasing =
  7879. (this.operator === '<=' || this.operator === '<') &&
  7880. (comp.operator === '<=' || comp.operator === '<')
  7881. var sameSemVer = this.semver.version === comp.semver.version
  7882. var differentDirectionsInclusive =
  7883. (this.operator === '>=' || this.operator === '<=') &&
  7884. (comp.operator === '>=' || comp.operator === '<=')
  7885. var oppositeDirectionsLessThan =
  7886. cmp(this.semver, '<', comp.semver, options) &&
  7887. ((this.operator === '>=' || this.operator === '>') &&
  7888. (comp.operator === '<=' || comp.operator === '<'))
  7889. var oppositeDirectionsGreaterThan =
  7890. cmp(this.semver, '>', comp.semver, options) &&
  7891. ((this.operator === '<=' || this.operator === '<') &&
  7892. (comp.operator === '>=' || comp.operator === '>'))
  7893. return sameDirectionIncreasing || sameDirectionDecreasing ||
  7894. (sameSemVer && differentDirectionsInclusive) ||
  7895. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  7896. }
  7897. exports.Range = Range
  7898. function Range (range, options) {
  7899. if (!options || typeof options !== 'object') {
  7900. options = {
  7901. loose: !!options,
  7902. includePrerelease: false
  7903. }
  7904. }
  7905. if (range instanceof Range) {
  7906. if (range.loose === !!options.loose &&
  7907. range.includePrerelease === !!options.includePrerelease) {
  7908. return range
  7909. } else {
  7910. return new Range(range.raw, options)
  7911. }
  7912. }
  7913. if (range instanceof Comparator) {
  7914. return new Range(range.value, options)
  7915. }
  7916. if (!(this instanceof Range)) {
  7917. return new Range(range, options)
  7918. }
  7919. this.options = options
  7920. this.loose = !!options.loose
  7921. this.includePrerelease = !!options.includePrerelease
  7922. // First, split based on boolean or ||
  7923. this.raw = range
  7924. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  7925. return this.parseRange(range.trim())
  7926. }, this).filter(function (c) {
  7927. // throw out any that are not relevant for whatever reason
  7928. return c.length
  7929. })
  7930. if (!this.set.length) {
  7931. throw new TypeError('Invalid SemVer Range: ' + range)
  7932. }
  7933. this.format()
  7934. }
  7935. Range.prototype.format = function () {
  7936. this.range = this.set.map(function (comps) {
  7937. return comps.join(' ').trim()
  7938. }).join('||').trim()
  7939. return this.range
  7940. }
  7941. Range.prototype.toString = function () {
  7942. return this.range
  7943. }
  7944. Range.prototype.parseRange = function (range) {
  7945. var loose = this.options.loose
  7946. range = range.trim()
  7947. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  7948. var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
  7949. range = range.replace(hr, hyphenReplace)
  7950. debug('hyphen replace', range)
  7951. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  7952. range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
  7953. debug('comparator trim', range, re[t.COMPARATORTRIM])
  7954. // `~ 1.2.3` => `~1.2.3`
  7955. range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
  7956. // `^ 1.2.3` => `^1.2.3`
  7957. range = range.replace(re[t.CARETTRIM], caretTrimReplace)
  7958. // normalize spaces
  7959. range = range.split(/\s+/).join(' ')
  7960. // At this point, the range is completely trimmed and
  7961. // ready to be split into comparators.
  7962. var compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  7963. var set = range.split(' ').map(function (comp) {
  7964. return parseComparator(comp, this.options)
  7965. }, this).join(' ').split(/\s+/)
  7966. if (this.options.loose) {
  7967. // in loose mode, throw out any that are not valid comparators
  7968. set = set.filter(function (comp) {
  7969. return !!comp.match(compRe)
  7970. })
  7971. }
  7972. set = set.map(function (comp) {
  7973. return new Comparator(comp, this.options)
  7974. }, this)
  7975. return set
  7976. }
  7977. Range.prototype.intersects = function (range, options) {
  7978. if (!(range instanceof Range)) {
  7979. throw new TypeError('a Range is required')
  7980. }
  7981. return this.set.some(function (thisComparators) {
  7982. return (
  7983. isSatisfiable(thisComparators, options) &&
  7984. range.set.some(function (rangeComparators) {
  7985. return (
  7986. isSatisfiable(rangeComparators, options) &&
  7987. thisComparators.every(function (thisComparator) {
  7988. return rangeComparators.every(function (rangeComparator) {
  7989. return thisComparator.intersects(rangeComparator, options)
  7990. })
  7991. })
  7992. )
  7993. })
  7994. )
  7995. })
  7996. }
  7997. // take a set of comparators and determine whether there
  7998. // exists a version which can satisfy it
  7999. function isSatisfiable (comparators, options) {
  8000. var result = true
  8001. var remainingComparators = comparators.slice()
  8002. var testComparator = remainingComparators.pop()
  8003. while (result && remainingComparators.length) {
  8004. result = remainingComparators.every(function (otherComparator) {
  8005. return testComparator.intersects(otherComparator, options)
  8006. })
  8007. testComparator = remainingComparators.pop()
  8008. }
  8009. return result
  8010. }
  8011. // Mostly just for testing and legacy API reasons
  8012. exports.toComparators = toComparators
  8013. function toComparators (range, options) {
  8014. return new Range(range, options).set.map(function (comp) {
  8015. return comp.map(function (c) {
  8016. return c.value
  8017. }).join(' ').trim().split(' ')
  8018. })
  8019. }
  8020. // comprised of xranges, tildes, stars, and gtlt's at this point.
  8021. // already replaced the hyphen ranges
  8022. // turn into a set of JUST comparators.
  8023. function parseComparator (comp, options) {
  8024. debug('comp', comp, options)
  8025. comp = replaceCarets(comp, options)
  8026. debug('caret', comp)
  8027. comp = replaceTildes(comp, options)
  8028. debug('tildes', comp)
  8029. comp = replaceXRanges(comp, options)
  8030. debug('xrange', comp)
  8031. comp = replaceStars(comp, options)
  8032. debug('stars', comp)
  8033. return comp
  8034. }
  8035. function isX (id) {
  8036. return !id || id.toLowerCase() === 'x' || id === '*'
  8037. }
  8038. // ~, ~> --> * (any, kinda silly)
  8039. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  8040. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  8041. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  8042. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  8043. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  8044. function replaceTildes (comp, options) {
  8045. return comp.trim().split(/\s+/).map(function (comp) {
  8046. return replaceTilde(comp, options)
  8047. }).join(' ')
  8048. }
  8049. function replaceTilde (comp, options) {
  8050. var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
  8051. return comp.replace(r, function (_, M, m, p, pr) {
  8052. debug('tilde', comp, _, M, m, p, pr)
  8053. var ret
  8054. if (isX(M)) {
  8055. ret = ''
  8056. } else if (isX(m)) {
  8057. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  8058. } else if (isX(p)) {
  8059. // ~1.2 == >=1.2.0 <1.3.0
  8060. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  8061. } else if (pr) {
  8062. debug('replaceTilde pr', pr)
  8063. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8064. ' <' + M + '.' + (+m + 1) + '.0'
  8065. } else {
  8066. // ~1.2.3 == >=1.2.3 <1.3.0
  8067. ret = '>=' + M + '.' + m + '.' + p +
  8068. ' <' + M + '.' + (+m + 1) + '.0'
  8069. }
  8070. debug('tilde return', ret)
  8071. return ret
  8072. })
  8073. }
  8074. // ^ --> * (any, kinda silly)
  8075. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  8076. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  8077. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  8078. // ^1.2.3 --> >=1.2.3 <2.0.0
  8079. // ^1.2.0 --> >=1.2.0 <2.0.0
  8080. function replaceCarets (comp, options) {
  8081. return comp.trim().split(/\s+/).map(function (comp) {
  8082. return replaceCaret(comp, options)
  8083. }).join(' ')
  8084. }
  8085. function replaceCaret (comp, options) {
  8086. debug('caret', comp, options)
  8087. var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
  8088. return comp.replace(r, function (_, M, m, p, pr) {
  8089. debug('caret', comp, _, M, m, p, pr)
  8090. var ret
  8091. if (isX(M)) {
  8092. ret = ''
  8093. } else if (isX(m)) {
  8094. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  8095. } else if (isX(p)) {
  8096. if (M === '0') {
  8097. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  8098. } else {
  8099. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  8100. }
  8101. } else if (pr) {
  8102. debug('replaceCaret pr', pr)
  8103. if (M === '0') {
  8104. if (m === '0') {
  8105. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8106. ' <' + M + '.' + m + '.' + (+p + 1)
  8107. } else {
  8108. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8109. ' <' + M + '.' + (+m + 1) + '.0'
  8110. }
  8111. } else {
  8112. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8113. ' <' + (+M + 1) + '.0.0'
  8114. }
  8115. } else {
  8116. debug('no pr')
  8117. if (M === '0') {
  8118. if (m === '0') {
  8119. ret = '>=' + M + '.' + m + '.' + p +
  8120. ' <' + M + '.' + m + '.' + (+p + 1)
  8121. } else {
  8122. ret = '>=' + M + '.' + m + '.' + p +
  8123. ' <' + M + '.' + (+m + 1) + '.0'
  8124. }
  8125. } else {
  8126. ret = '>=' + M + '.' + m + '.' + p +
  8127. ' <' + (+M + 1) + '.0.0'
  8128. }
  8129. }
  8130. debug('caret return', ret)
  8131. return ret
  8132. })
  8133. }
  8134. function replaceXRanges (comp, options) {
  8135. debug('replaceXRanges', comp, options)
  8136. return comp.split(/\s+/).map(function (comp) {
  8137. return replaceXRange(comp, options)
  8138. }).join(' ')
  8139. }
  8140. function replaceXRange (comp, options) {
  8141. comp = comp.trim()
  8142. var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
  8143. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  8144. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  8145. var xM = isX(M)
  8146. var xm = xM || isX(m)
  8147. var xp = xm || isX(p)
  8148. var anyX = xp
  8149. if (gtlt === '=' && anyX) {
  8150. gtlt = ''
  8151. }
  8152. // if we're including prereleases in the match, then we need
  8153. // to fix this to -0, the lowest possible prerelease value
  8154. pr = options.includePrerelease ? '-0' : ''
  8155. if (xM) {
  8156. if (gtlt === '>' || gtlt === '<') {
  8157. // nothing is allowed
  8158. ret = '<0.0.0-0'
  8159. } else {
  8160. // nothing is forbidden
  8161. ret = '*'
  8162. }
  8163. } else if (gtlt && anyX) {
  8164. // we know patch is an x, because we have any x at all.
  8165. // replace X with 0
  8166. if (xm) {
  8167. m = 0
  8168. }
  8169. p = 0
  8170. if (gtlt === '>') {
  8171. // >1 => >=2.0.0
  8172. // >1.2 => >=1.3.0
  8173. // >1.2.3 => >= 1.2.4
  8174. gtlt = '>='
  8175. if (xm) {
  8176. M = +M + 1
  8177. m = 0
  8178. p = 0
  8179. } else {
  8180. m = +m + 1
  8181. p = 0
  8182. }
  8183. } else if (gtlt === '<=') {
  8184. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  8185. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  8186. gtlt = '<'
  8187. if (xm) {
  8188. M = +M + 1
  8189. } else {
  8190. m = +m + 1
  8191. }
  8192. }
  8193. ret = gtlt + M + '.' + m + '.' + p + pr
  8194. } else if (xm) {
  8195. ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr
  8196. } else if (xp) {
  8197. ret = '>=' + M + '.' + m + '.0' + pr +
  8198. ' <' + M + '.' + (+m + 1) + '.0' + pr
  8199. }
  8200. debug('xRange return', ret)
  8201. return ret
  8202. })
  8203. }
  8204. // Because * is AND-ed with everything else in the comparator,
  8205. // and '' means "any version", just remove the *s entirely.
  8206. function replaceStars (comp, options) {
  8207. debug('replaceStars', comp, options)
  8208. // Looseness is ignored here. star is always as loose as it gets!
  8209. return comp.trim().replace(re[t.STAR], '')
  8210. }
  8211. // This function is passed to string.replace(re[t.HYPHENRANGE])
  8212. // M, m, patch, prerelease, build
  8213. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  8214. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  8215. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  8216. function hyphenReplace ($0,
  8217. from, fM, fm, fp, fpr, fb,
  8218. to, tM, tm, tp, tpr, tb) {
  8219. if (isX(fM)) {
  8220. from = ''
  8221. } else if (isX(fm)) {
  8222. from = '>=' + fM + '.0.0'
  8223. } else if (isX(fp)) {
  8224. from = '>=' + fM + '.' + fm + '.0'
  8225. } else {
  8226. from = '>=' + from
  8227. }
  8228. if (isX(tM)) {
  8229. to = ''
  8230. } else if (isX(tm)) {
  8231. to = '<' + (+tM + 1) + '.0.0'
  8232. } else if (isX(tp)) {
  8233. to = '<' + tM + '.' + (+tm + 1) + '.0'
  8234. } else if (tpr) {
  8235. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  8236. } else {
  8237. to = '<=' + to
  8238. }
  8239. return (from + ' ' + to).trim()
  8240. }
  8241. // if ANY of the sets match ALL of its comparators, then pass
  8242. Range.prototype.test = function (version) {
  8243. if (!version) {
  8244. return false
  8245. }
  8246. if (typeof version === 'string') {
  8247. try {
  8248. version = new SemVer(version, this.options)
  8249. } catch (er) {
  8250. return false
  8251. }
  8252. }
  8253. for (var i = 0; i < this.set.length; i++) {
  8254. if (testSet(this.set[i], version, this.options)) {
  8255. return true
  8256. }
  8257. }
  8258. return false
  8259. }
  8260. function testSet (set, version, options) {
  8261. for (var i = 0; i < set.length; i++) {
  8262. if (!set[i].test(version)) {
  8263. return false
  8264. }
  8265. }
  8266. if (version.prerelease.length && !options.includePrerelease) {
  8267. // Find the set of versions that are allowed to have prereleases
  8268. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  8269. // That should allow `1.2.3-pr.2` to pass.
  8270. // However, `1.2.4-alpha.notready` should NOT be allowed,
  8271. // even though it's within the range set by the comparators.
  8272. for (i = 0; i < set.length; i++) {
  8273. debug(set[i].semver)
  8274. if (set[i].semver === ANY) {
  8275. continue
  8276. }
  8277. if (set[i].semver.prerelease.length > 0) {
  8278. var allowed = set[i].semver
  8279. if (allowed.major === version.major &&
  8280. allowed.minor === version.minor &&
  8281. allowed.patch === version.patch) {
  8282. return true
  8283. }
  8284. }
  8285. }
  8286. // Version has a -pre, but it's not one of the ones we like.
  8287. return false
  8288. }
  8289. return true
  8290. }
  8291. exports.satisfies = satisfies
  8292. function satisfies (version, range, options) {
  8293. try {
  8294. range = new Range(range, options)
  8295. } catch (er) {
  8296. return false
  8297. }
  8298. return range.test(version)
  8299. }
  8300. exports.maxSatisfying = maxSatisfying
  8301. function maxSatisfying (versions, range, options) {
  8302. var max = null
  8303. var maxSV = null
  8304. try {
  8305. var rangeObj = new Range(range, options)
  8306. } catch (er) {
  8307. return null
  8308. }
  8309. versions.forEach(function (v) {
  8310. if (rangeObj.test(v)) {
  8311. // satisfies(v, range, options)
  8312. if (!max || maxSV.compare(v) === -1) {
  8313. // compare(max, v, true)
  8314. max = v
  8315. maxSV = new SemVer(max, options)
  8316. }
  8317. }
  8318. })
  8319. return max
  8320. }
  8321. exports.minSatisfying = minSatisfying
  8322. function minSatisfying (versions, range, options) {
  8323. var min = null
  8324. var minSV = null
  8325. try {
  8326. var rangeObj = new Range(range, options)
  8327. } catch (er) {
  8328. return null
  8329. }
  8330. versions.forEach(function (v) {
  8331. if (rangeObj.test(v)) {
  8332. // satisfies(v, range, options)
  8333. if (!min || minSV.compare(v) === 1) {
  8334. // compare(min, v, true)
  8335. min = v
  8336. minSV = new SemVer(min, options)
  8337. }
  8338. }
  8339. })
  8340. return min
  8341. }
  8342. exports.minVersion = minVersion
  8343. function minVersion (range, loose) {
  8344. range = new Range(range, loose)
  8345. var minver = new SemVer('0.0.0')
  8346. if (range.test(minver)) {
  8347. return minver
  8348. }
  8349. minver = new SemVer('0.0.0-0')
  8350. if (range.test(minver)) {
  8351. return minver
  8352. }
  8353. minver = null
  8354. for (var i = 0; i < range.set.length; ++i) {
  8355. var comparators = range.set[i]
  8356. comparators.forEach(function (comparator) {
  8357. // Clone to avoid manipulating the comparator's semver object.
  8358. var compver = new SemVer(comparator.semver.version)
  8359. switch (comparator.operator) {
  8360. case '>':
  8361. if (compver.prerelease.length === 0) {
  8362. compver.patch++
  8363. } else {
  8364. compver.prerelease.push(0)
  8365. }
  8366. compver.raw = compver.format()
  8367. /* fallthrough */
  8368. case '':
  8369. case '>=':
  8370. if (!minver || gt(minver, compver)) {
  8371. minver = compver
  8372. }
  8373. break
  8374. case '<':
  8375. case '<=':
  8376. /* Ignore maximum versions */
  8377. break
  8378. /* istanbul ignore next */
  8379. default:
  8380. throw new Error('Unexpected operation: ' + comparator.operator)
  8381. }
  8382. })
  8383. }
  8384. if (minver && range.test(minver)) {
  8385. return minver
  8386. }
  8387. return null
  8388. }
  8389. exports.validRange = validRange
  8390. function validRange (range, options) {
  8391. try {
  8392. // Return '*' instead of '' so that truthiness works.
  8393. // This will throw if it's invalid anyway
  8394. return new Range(range, options).range || '*'
  8395. } catch (er) {
  8396. return null
  8397. }
  8398. }
  8399. // Determine if version is less than all the versions possible in the range
  8400. exports.ltr = ltr
  8401. function ltr (version, range, options) {
  8402. return outside(version, range, '<', options)
  8403. }
  8404. // Determine if version is greater than all the versions possible in the range.
  8405. exports.gtr = gtr
  8406. function gtr (version, range, options) {
  8407. return outside(version, range, '>', options)
  8408. }
  8409. exports.outside = outside
  8410. function outside (version, range, hilo, options) {
  8411. version = new SemVer(version, options)
  8412. range = new Range(range, options)
  8413. var gtfn, ltefn, ltfn, comp, ecomp
  8414. switch (hilo) {
  8415. case '>':
  8416. gtfn = gt
  8417. ltefn = lte
  8418. ltfn = lt
  8419. comp = '>'
  8420. ecomp = '>='
  8421. break
  8422. case '<':
  8423. gtfn = lt
  8424. ltefn = gte
  8425. ltfn = gt
  8426. comp = '<'
  8427. ecomp = '<='
  8428. break
  8429. default:
  8430. throw new TypeError('Must provide a hilo val of "<" or ">"')
  8431. }
  8432. // If it satisifes the range it is not outside
  8433. if (satisfies(version, range, options)) {
  8434. return false
  8435. }
  8436. // From now on, variable terms are as if we're in "gtr" mode.
  8437. // but note that everything is flipped for the "ltr" function.
  8438. for (var i = 0; i < range.set.length; ++i) {
  8439. var comparators = range.set[i]
  8440. var high = null
  8441. var low = null
  8442. comparators.forEach(function (comparator) {
  8443. if (comparator.semver === ANY) {
  8444. comparator = new Comparator('>=0.0.0')
  8445. }
  8446. high = high || comparator
  8447. low = low || comparator
  8448. if (gtfn(comparator.semver, high.semver, options)) {
  8449. high = comparator
  8450. } else if (ltfn(comparator.semver, low.semver, options)) {
  8451. low = comparator
  8452. }
  8453. })
  8454. // If the edge version comparator has a operator then our version
  8455. // isn't outside it
  8456. if (high.operator === comp || high.operator === ecomp) {
  8457. return false
  8458. }
  8459. // If the lowest version comparator has an operator and our version
  8460. // is less than it then it isn't higher than the range
  8461. if ((!low.operator || low.operator === comp) &&
  8462. ltefn(version, low.semver)) {
  8463. return false
  8464. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  8465. return false
  8466. }
  8467. }
  8468. return true
  8469. }
  8470. exports.prerelease = prerelease
  8471. function prerelease (version, options) {
  8472. var parsed = parse(version, options)
  8473. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  8474. }
  8475. exports.intersects = intersects
  8476. function intersects (r1, r2, options) {
  8477. r1 = new Range(r1, options)
  8478. r2 = new Range(r2, options)
  8479. return r1.intersects(r2)
  8480. }
  8481. exports.coerce = coerce
  8482. function coerce (version, options) {
  8483. if (version instanceof SemVer) {
  8484. return version
  8485. }
  8486. if (typeof version === 'number') {
  8487. version = String(version)
  8488. }
  8489. if (typeof version !== 'string') {
  8490. return null
  8491. }
  8492. options = options || {}
  8493. var match = null
  8494. if (!options.rtl) {
  8495. match = version.match(re[t.COERCE])
  8496. } else {
  8497. // Find the right-most coercible string that does not share
  8498. // a terminus with a more left-ward coercible string.
  8499. // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
  8500. //
  8501. // Walk through the string checking with a /g regexp
  8502. // Manually set the index so as to pick up overlapping matches.
  8503. // Stop when we get a match that ends at the string end, since no
  8504. // coercible string can be more right-ward without the same terminus.
  8505. var next
  8506. while ((next = re[t.COERCERTL].exec(version)) &&
  8507. (!match || match.index + match[0].length !== version.length)
  8508. ) {
  8509. if (!match ||
  8510. next.index + next[0].length !== match.index + match[0].length) {
  8511. match = next
  8512. }
  8513. re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
  8514. }
  8515. // leave it in a clean state
  8516. re[t.COERCERTL].lastIndex = -1
  8517. }
  8518. if (match === null) {
  8519. return null
  8520. }
  8521. return parse(match[2] +
  8522. '.' + (match[3] || '0') +
  8523. '.' + (match[4] || '0'), options)
  8524. }
  8525. /***/ }),
  8526. /***/ 2856:
  8527. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  8528. "use strict";
  8529. const WritableStream = (__nccwpck_require__(4492).Writable)
  8530. const inherits = (__nccwpck_require__(7261).inherits)
  8531. const StreamSearch = __nccwpck_require__(8534)
  8532. const PartStream = __nccwpck_require__(8710)
  8533. const HeaderParser = __nccwpck_require__(333)
  8534. const DASH = 45
  8535. const B_ONEDASH = Buffer.from('-')
  8536. const B_CRLF = Buffer.from('\r\n')
  8537. const EMPTY_FN = function () {}
  8538. function Dicer (cfg) {
  8539. if (!(this instanceof Dicer)) { return new Dicer(cfg) }
  8540. WritableStream.call(this, cfg)
  8541. if (!cfg || (!cfg.headerFirst && typeof cfg.boundary !== 'string')) { throw new TypeError('Boundary required') }
  8542. if (typeof cfg.boundary === 'string') { this.setBoundary(cfg.boundary) } else { this._bparser = undefined }
  8543. this._headerFirst = cfg.headerFirst
  8544. this._dashes = 0
  8545. this._parts = 0
  8546. this._finished = false
  8547. this._realFinish = false
  8548. this._isPreamble = true
  8549. this._justMatched = false
  8550. this._firstWrite = true
  8551. this._inHeader = true
  8552. this._part = undefined
  8553. this._cb = undefined
  8554. this._ignoreData = false
  8555. this._partOpts = { highWaterMark: cfg.partHwm }
  8556. this._pause = false
  8557. const self = this
  8558. this._hparser = new HeaderParser(cfg)
  8559. this._hparser.on('header', function (header) {
  8560. self._inHeader = false
  8561. self._part.emit('header', header)
  8562. })
  8563. }
  8564. inherits(Dicer, WritableStream)
  8565. Dicer.prototype.emit = function (ev) {
  8566. if (ev === 'finish' && !this._realFinish) {
  8567. if (!this._finished) {
  8568. const self = this
  8569. process.nextTick(function () {
  8570. self.emit('error', new Error('Unexpected end of multipart data'))
  8571. if (self._part && !self._ignoreData) {
  8572. const type = (self._isPreamble ? 'Preamble' : 'Part')
  8573. self._part.emit('error', new Error(type + ' terminated early due to unexpected end of multipart data'))
  8574. self._part.push(null)
  8575. process.nextTick(function () {
  8576. self._realFinish = true
  8577. self.emit('finish')
  8578. self._realFinish = false
  8579. })
  8580. return
  8581. }
  8582. self._realFinish = true
  8583. self.emit('finish')
  8584. self._realFinish = false
  8585. })
  8586. }
  8587. } else { WritableStream.prototype.emit.apply(this, arguments) }
  8588. }
  8589. Dicer.prototype._write = function (data, encoding, cb) {
  8590. // ignore unexpected data (e.g. extra trailer data after finished)
  8591. if (!this._hparser && !this._bparser) { return cb() }
  8592. if (this._headerFirst && this._isPreamble) {
  8593. if (!this._part) {
  8594. this._part = new PartStream(this._partOpts)
  8595. if (this._events.preamble) { this.emit('preamble', this._part) } else { this._ignore() }
  8596. }
  8597. const r = this._hparser.push(data)
  8598. if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() }
  8599. }
  8600. // allows for "easier" testing
  8601. if (this._firstWrite) {
  8602. this._bparser.push(B_CRLF)
  8603. this._firstWrite = false
  8604. }
  8605. this._bparser.push(data)
  8606. if (this._pause) { this._cb = cb } else { cb() }
  8607. }
  8608. Dicer.prototype.reset = function () {
  8609. this._part = undefined
  8610. this._bparser = undefined
  8611. this._hparser = undefined
  8612. }
  8613. Dicer.prototype.setBoundary = function (boundary) {
  8614. const self = this
  8615. this._bparser = new StreamSearch('\r\n--' + boundary)
  8616. this._bparser.on('info', function (isMatch, data, start, end) {
  8617. self._oninfo(isMatch, data, start, end)
  8618. })
  8619. }
  8620. Dicer.prototype._ignore = function () {
  8621. if (this._part && !this._ignoreData) {
  8622. this._ignoreData = true
  8623. this._part.on('error', EMPTY_FN)
  8624. // we must perform some kind of read on the stream even though we are
  8625. // ignoring the data, otherwise node's Readable stream will not emit 'end'
  8626. // after pushing null to the stream
  8627. this._part.resume()
  8628. }
  8629. }
  8630. Dicer.prototype._oninfo = function (isMatch, data, start, end) {
  8631. let buf; const self = this; let i = 0; let r; let shouldWriteMore = true
  8632. if (!this._part && this._justMatched && data) {
  8633. while (this._dashes < 2 && (start + i) < end) {
  8634. if (data[start + i] === DASH) {
  8635. ++i
  8636. ++this._dashes
  8637. } else {
  8638. if (this._dashes) { buf = B_ONEDASH }
  8639. this._dashes = 0
  8640. break
  8641. }
  8642. }
  8643. if (this._dashes === 2) {
  8644. if ((start + i) < end && this._events.trailer) { this.emit('trailer', data.slice(start + i, end)) }
  8645. this.reset()
  8646. this._finished = true
  8647. // no more parts will be added
  8648. if (self._parts === 0) {
  8649. self._realFinish = true
  8650. self.emit('finish')
  8651. self._realFinish = false
  8652. }
  8653. }
  8654. if (this._dashes) { return }
  8655. }
  8656. if (this._justMatched) { this._justMatched = false }
  8657. if (!this._part) {
  8658. this._part = new PartStream(this._partOpts)
  8659. this._part._read = function (n) {
  8660. self._unpause()
  8661. }
  8662. 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() }
  8663. if (!this._isPreamble) { this._inHeader = true }
  8664. }
  8665. if (data && start < end && !this._ignoreData) {
  8666. if (this._isPreamble || !this._inHeader) {
  8667. if (buf) { shouldWriteMore = this._part.push(buf) }
  8668. shouldWriteMore = this._part.push(data.slice(start, end))
  8669. if (!shouldWriteMore) { this._pause = true }
  8670. } else if (!this._isPreamble && this._inHeader) {
  8671. if (buf) { this._hparser.push(buf) }
  8672. r = this._hparser.push(data.slice(start, end))
  8673. if (!this._inHeader && r !== undefined && r < end) { this._oninfo(false, data, start + r, end) }
  8674. }
  8675. }
  8676. if (isMatch) {
  8677. this._hparser.reset()
  8678. if (this._isPreamble) { this._isPreamble = false } else {
  8679. if (start !== end) {
  8680. ++this._parts
  8681. this._part.on('end', function () {
  8682. if (--self._parts === 0) {
  8683. if (self._finished) {
  8684. self._realFinish = true
  8685. self.emit('finish')
  8686. self._realFinish = false
  8687. } else {
  8688. self._unpause()
  8689. }
  8690. }
  8691. })
  8692. }
  8693. }
  8694. this._part.push(null)
  8695. this._part = undefined
  8696. this._ignoreData = false
  8697. this._justMatched = true
  8698. this._dashes = 0
  8699. }
  8700. }
  8701. Dicer.prototype._unpause = function () {
  8702. if (!this._pause) { return }
  8703. this._pause = false
  8704. if (this._cb) {
  8705. const cb = this._cb
  8706. this._cb = undefined
  8707. cb()
  8708. }
  8709. }
  8710. module.exports = Dicer
  8711. /***/ }),
  8712. /***/ 333:
  8713. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  8714. "use strict";
  8715. const EventEmitter = (__nccwpck_require__(5673).EventEmitter)
  8716. const inherits = (__nccwpck_require__(7261).inherits)
  8717. const getLimit = __nccwpck_require__(9692)
  8718. const StreamSearch = __nccwpck_require__(8534)
  8719. const B_DCRLF = Buffer.from('\r\n\r\n')
  8720. const RE_CRLF = /\r\n/g
  8721. const RE_HDR = /^([^:]+):[ \t]?([\x00-\xFF]+)?$/ // eslint-disable-line no-control-regex
  8722. function HeaderParser (cfg) {
  8723. EventEmitter.call(this)
  8724. cfg = cfg || {}
  8725. const self = this
  8726. this.nread = 0
  8727. this.maxed = false
  8728. this.npairs = 0
  8729. this.maxHeaderPairs = getLimit(cfg, 'maxHeaderPairs', 2000)
  8730. this.maxHeaderSize = getLimit(cfg, 'maxHeaderSize', 80 * 1024)
  8731. this.buffer = ''
  8732. this.header = {}
  8733. this.finished = false
  8734. this.ss = new StreamSearch(B_DCRLF)
  8735. this.ss.on('info', function (isMatch, data, start, end) {
  8736. if (data && !self.maxed) {
  8737. if (self.nread + end - start >= self.maxHeaderSize) {
  8738. end = self.maxHeaderSize - self.nread + start
  8739. self.nread = self.maxHeaderSize
  8740. self.maxed = true
  8741. } else { self.nread += (end - start) }
  8742. self.buffer += data.toString('binary', start, end)
  8743. }
  8744. if (isMatch) { self._finish() }
  8745. })
  8746. }
  8747. inherits(HeaderParser, EventEmitter)
  8748. HeaderParser.prototype.push = function (data) {
  8749. const r = this.ss.push(data)
  8750. if (this.finished) { return r }
  8751. }
  8752. HeaderParser.prototype.reset = function () {
  8753. this.finished = false
  8754. this.buffer = ''
  8755. this.header = {}
  8756. this.ss.reset()
  8757. }
  8758. HeaderParser.prototype._finish = function () {
  8759. if (this.buffer) { this._parseHeader() }
  8760. this.ss.matches = this.ss.maxMatches
  8761. const header = this.header
  8762. this.header = {}
  8763. this.buffer = ''
  8764. this.finished = true
  8765. this.nread = this.npairs = 0
  8766. this.maxed = false
  8767. this.emit('header', header)
  8768. }
  8769. HeaderParser.prototype._parseHeader = function () {
  8770. if (this.npairs === this.maxHeaderPairs) { return }
  8771. const lines = this.buffer.split(RE_CRLF)
  8772. const len = lines.length
  8773. let m, h
  8774. for (var i = 0; i < len; ++i) { // eslint-disable-line no-var
  8775. if (lines[i].length === 0) { continue }
  8776. if (lines[i][0] === '\t' || lines[i][0] === ' ') {
  8777. // folded header content
  8778. // RFC2822 says to just remove the CRLF and not the whitespace following
  8779. // it, so we follow the RFC and include the leading whitespace ...
  8780. if (h) {
  8781. this.header[h][this.header[h].length - 1] += lines[i]
  8782. continue
  8783. }
  8784. }
  8785. const posColon = lines[i].indexOf(':')
  8786. if (
  8787. posColon === -1 ||
  8788. posColon === 0
  8789. ) {
  8790. return
  8791. }
  8792. m = RE_HDR.exec(lines[i])
  8793. h = m[1].toLowerCase()
  8794. this.header[h] = this.header[h] || []
  8795. this.header[h].push((m[2] || ''))
  8796. if (++this.npairs === this.maxHeaderPairs) { break }
  8797. }
  8798. }
  8799. module.exports = HeaderParser
  8800. /***/ }),
  8801. /***/ 8710:
  8802. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  8803. "use strict";
  8804. const inherits = (__nccwpck_require__(7261).inherits)
  8805. const ReadableStream = (__nccwpck_require__(4492).Readable)
  8806. function PartStream (opts) {
  8807. ReadableStream.call(this, opts)
  8808. }
  8809. inherits(PartStream, ReadableStream)
  8810. PartStream.prototype._read = function (n) {}
  8811. module.exports = PartStream
  8812. /***/ }),
  8813. /***/ 8534:
  8814. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  8815. "use strict";
  8816. /**
  8817. * Copyright Brian White. All rights reserved.
  8818. *
  8819. * @see https://github.com/mscdex/streamsearch
  8820. *
  8821. * Permission is hereby granted, free of charge, to any person obtaining a copy
  8822. * of this software and associated documentation files (the "Software"), to
  8823. * deal in the Software without restriction, including without limitation the
  8824. * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  8825. * sell copies of the Software, and to permit persons to whom the Software is
  8826. * furnished to do so, subject to the following conditions:
  8827. *
  8828. * The above copyright notice and this permission notice shall be included in
  8829. * all copies or substantial portions of the Software.
  8830. *
  8831. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  8832. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  8833. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  8834. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  8835. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  8836. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  8837. * IN THE SOFTWARE.
  8838. *
  8839. * Based heavily on the Streaming Boyer-Moore-Horspool C++ implementation
  8840. * by Hongli Lai at: https://github.com/FooBarWidget/boyer-moore-horspool
  8841. */
  8842. const EventEmitter = (__nccwpck_require__(5673).EventEmitter)
  8843. const inherits = (__nccwpck_require__(7261).inherits)
  8844. function SBMH (needle) {
  8845. if (typeof needle === 'string') {
  8846. needle = Buffer.from(needle)
  8847. }
  8848. if (!Buffer.isBuffer(needle)) {
  8849. throw new TypeError('The needle has to be a String or a Buffer.')
  8850. }
  8851. const needleLength = needle.length
  8852. if (needleLength === 0) {
  8853. throw new Error('The needle cannot be an empty String/Buffer.')
  8854. }
  8855. if (needleLength > 256) {
  8856. throw new Error('The needle cannot have a length bigger than 256.')
  8857. }
  8858. this.maxMatches = Infinity
  8859. this.matches = 0
  8860. this._occ = new Array(256)
  8861. .fill(needleLength) // Initialize occurrence table.
  8862. this._lookbehind_size = 0
  8863. this._needle = needle
  8864. this._bufpos = 0
  8865. this._lookbehind = Buffer.alloc(needleLength)
  8866. // Populate occurrence table with analysis of the needle,
  8867. // ignoring last letter.
  8868. for (var i = 0; i < needleLength - 1; ++i) { // eslint-disable-line no-var
  8869. this._occ[needle[i]] = needleLength - 1 - i
  8870. }
  8871. }
  8872. inherits(SBMH, EventEmitter)
  8873. SBMH.prototype.reset = function () {
  8874. this._lookbehind_size = 0
  8875. this.matches = 0
  8876. this._bufpos = 0
  8877. }
  8878. SBMH.prototype.push = function (chunk, pos) {
  8879. if (!Buffer.isBuffer(chunk)) {
  8880. chunk = Buffer.from(chunk, 'binary')
  8881. }
  8882. const chlen = chunk.length
  8883. this._bufpos = pos || 0
  8884. let r
  8885. while (r !== chlen && this.matches < this.maxMatches) { r = this._sbmh_feed(chunk) }
  8886. return r
  8887. }
  8888. SBMH.prototype._sbmh_feed = function (data) {
  8889. const len = data.length
  8890. const needle = this._needle
  8891. const needleLength = needle.length
  8892. const lastNeedleChar = needle[needleLength - 1]
  8893. // Positive: points to a position in `data`
  8894. // pos == 3 points to data[3]
  8895. // Negative: points to a position in the lookbehind buffer
  8896. // pos == -2 points to lookbehind[lookbehind_size - 2]
  8897. let pos = -this._lookbehind_size
  8898. let ch
  8899. if (pos < 0) {
  8900. // Lookbehind buffer is not empty. Perform Boyer-Moore-Horspool
  8901. // search with character lookup code that considers both the
  8902. // lookbehind buffer and the current round's haystack data.
  8903. //
  8904. // Loop until
  8905. // there is a match.
  8906. // or until
  8907. // we've moved past the position that requires the
  8908. // lookbehind buffer. In this case we switch to the
  8909. // optimized loop.
  8910. // or until
  8911. // the character to look at lies outside the haystack.
  8912. while (pos < 0 && pos <= len - needleLength) {
  8913. ch = this._sbmh_lookup_char(data, pos + needleLength - 1)
  8914. if (
  8915. ch === lastNeedleChar &&
  8916. this._sbmh_memcmp(data, pos, needleLength - 1)
  8917. ) {
  8918. this._lookbehind_size = 0
  8919. ++this.matches
  8920. this.emit('info', true)
  8921. return (this._bufpos = pos + needleLength)
  8922. }
  8923. pos += this._occ[ch]
  8924. }
  8925. // No match.
  8926. if (pos < 0) {
  8927. // There's too few data for Boyer-Moore-Horspool to run,
  8928. // so let's use a different algorithm to skip as much as
  8929. // we can.
  8930. // Forward pos until
  8931. // the trailing part of lookbehind + data
  8932. // looks like the beginning of the needle
  8933. // or until
  8934. // pos == 0
  8935. while (pos < 0 && !this._sbmh_memcmp(data, pos, len - pos)) { ++pos }
  8936. }
  8937. if (pos >= 0) {
  8938. // Discard lookbehind buffer.
  8939. this.emit('info', false, this._lookbehind, 0, this._lookbehind_size)
  8940. this._lookbehind_size = 0
  8941. } else {
  8942. // Cut off part of the lookbehind buffer that has
  8943. // been processed and append the entire haystack
  8944. // into it.
  8945. const bytesToCutOff = this._lookbehind_size + pos
  8946. if (bytesToCutOff > 0) {
  8947. // The cut off data is guaranteed not to contain the needle.
  8948. this.emit('info', false, this._lookbehind, 0, bytesToCutOff)
  8949. }
  8950. this._lookbehind.copy(this._lookbehind, 0, bytesToCutOff,
  8951. this._lookbehind_size - bytesToCutOff)
  8952. this._lookbehind_size -= bytesToCutOff
  8953. data.copy(this._lookbehind, this._lookbehind_size)
  8954. this._lookbehind_size += len
  8955. this._bufpos = len
  8956. return len
  8957. }
  8958. }
  8959. pos += (pos >= 0) * this._bufpos
  8960. // Lookbehind buffer is now empty. We only need to check if the
  8961. // needle is in the haystack.
  8962. if (data.indexOf(needle, pos) !== -1) {
  8963. pos = data.indexOf(needle, pos)
  8964. ++this.matches
  8965. if (pos > 0) { this.emit('info', true, data, this._bufpos, pos) } else { this.emit('info', true) }
  8966. return (this._bufpos = pos + needleLength)
  8967. } else {
  8968. pos = len - needleLength
  8969. }
  8970. // There was no match. If there's trailing haystack data that we cannot
  8971. // match yet using the Boyer-Moore-Horspool algorithm (because the trailing
  8972. // data is less than the needle size) then match using a modified
  8973. // algorithm that starts matching from the beginning instead of the end.
  8974. // Whatever trailing data is left after running this algorithm is added to
  8975. // the lookbehind buffer.
  8976. while (
  8977. pos < len &&
  8978. (
  8979. data[pos] !== needle[0] ||
  8980. (
  8981. (Buffer.compare(
  8982. data.subarray(pos, pos + len - pos),
  8983. needle.subarray(0, len - pos)
  8984. ) !== 0)
  8985. )
  8986. )
  8987. ) {
  8988. ++pos
  8989. }
  8990. if (pos < len) {
  8991. data.copy(this._lookbehind, 0, pos, pos + (len - pos))
  8992. this._lookbehind_size = len - pos
  8993. }
  8994. // Everything until pos is guaranteed not to contain needle data.
  8995. if (pos > 0) { this.emit('info', false, data, this._bufpos, pos < len ? pos : len) }
  8996. this._bufpos = len
  8997. return len
  8998. }
  8999. SBMH.prototype._sbmh_lookup_char = function (data, pos) {
  9000. return (pos < 0)
  9001. ? this._lookbehind[this._lookbehind_size + pos]
  9002. : data[pos]
  9003. }
  9004. SBMH.prototype._sbmh_memcmp = function (data, pos, len) {
  9005. for (var i = 0; i < len; ++i) { // eslint-disable-line no-var
  9006. if (this._sbmh_lookup_char(data, pos + i) !== this._needle[i]) { return false }
  9007. }
  9008. return true
  9009. }
  9010. module.exports = SBMH
  9011. /***/ }),
  9012. /***/ 3438:
  9013. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9014. "use strict";
  9015. const WritableStream = (__nccwpck_require__(4492).Writable)
  9016. const { inherits } = __nccwpck_require__(7261)
  9017. const Dicer = __nccwpck_require__(2856)
  9018. const MultipartParser = __nccwpck_require__(415)
  9019. const UrlencodedParser = __nccwpck_require__(6780)
  9020. const parseParams = __nccwpck_require__(4426)
  9021. function Busboy (opts) {
  9022. if (!(this instanceof Busboy)) { return new Busboy(opts) }
  9023. if (typeof opts !== 'object') {
  9024. throw new TypeError('Busboy expected an options-Object.')
  9025. }
  9026. if (typeof opts.headers !== 'object') {
  9027. throw new TypeError('Busboy expected an options-Object with headers-attribute.')
  9028. }
  9029. if (typeof opts.headers['content-type'] !== 'string') {
  9030. throw new TypeError('Missing Content-Type-header.')
  9031. }
  9032. const {
  9033. headers,
  9034. ...streamOptions
  9035. } = opts
  9036. this.opts = {
  9037. autoDestroy: false,
  9038. ...streamOptions
  9039. }
  9040. WritableStream.call(this, this.opts)
  9041. this._done = false
  9042. this._parser = this.getParserByHeaders(headers)
  9043. this._finished = false
  9044. }
  9045. inherits(Busboy, WritableStream)
  9046. Busboy.prototype.emit = function (ev) {
  9047. if (ev === 'finish') {
  9048. if (!this._done) {
  9049. this._parser?.end()
  9050. return
  9051. } else if (this._finished) {
  9052. return
  9053. }
  9054. this._finished = true
  9055. }
  9056. WritableStream.prototype.emit.apply(this, arguments)
  9057. }
  9058. Busboy.prototype.getParserByHeaders = function (headers) {
  9059. const parsed = parseParams(headers['content-type'])
  9060. const cfg = {
  9061. defCharset: this.opts.defCharset,
  9062. fileHwm: this.opts.fileHwm,
  9063. headers,
  9064. highWaterMark: this.opts.highWaterMark,
  9065. isPartAFile: this.opts.isPartAFile,
  9066. limits: this.opts.limits,
  9067. parsedConType: parsed,
  9068. preservePath: this.opts.preservePath
  9069. }
  9070. if (MultipartParser.detect.test(parsed[0])) {
  9071. return new MultipartParser(this, cfg)
  9072. }
  9073. if (UrlencodedParser.detect.test(parsed[0])) {
  9074. return new UrlencodedParser(this, cfg)
  9075. }
  9076. throw new Error('Unsupported Content-Type.')
  9077. }
  9078. Busboy.prototype._write = function (chunk, encoding, cb) {
  9079. this._parser.write(chunk, cb)
  9080. }
  9081. module.exports = Busboy
  9082. module.exports["default"] = Busboy
  9083. module.exports.Busboy = Busboy
  9084. module.exports.Dicer = Dicer
  9085. /***/ }),
  9086. /***/ 415:
  9087. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9088. "use strict";
  9089. // TODO:
  9090. // * support 1 nested multipart level
  9091. // (see second multipart example here:
  9092. // http://www.w3.org/TR/html401/interact/forms.html#didx-multipartform-data)
  9093. // * support limits.fieldNameSize
  9094. // -- this will require modifications to utils.parseParams
  9095. const { Readable } = __nccwpck_require__(4492)
  9096. const { inherits } = __nccwpck_require__(7261)
  9097. const Dicer = __nccwpck_require__(2856)
  9098. const parseParams = __nccwpck_require__(4426)
  9099. const decodeText = __nccwpck_require__(9136)
  9100. const basename = __nccwpck_require__(496)
  9101. const getLimit = __nccwpck_require__(9692)
  9102. const RE_BOUNDARY = /^boundary$/i
  9103. const RE_FIELD = /^form-data$/i
  9104. const RE_CHARSET = /^charset$/i
  9105. const RE_FILENAME = /^filename$/i
  9106. const RE_NAME = /^name$/i
  9107. Multipart.detect = /^multipart\/form-data/i
  9108. function Multipart (boy, cfg) {
  9109. let i
  9110. let len
  9111. const self = this
  9112. let boundary
  9113. const limits = cfg.limits
  9114. const isPartAFile = cfg.isPartAFile || ((fieldName, contentType, fileName) => (contentType === 'application/octet-stream' || fileName !== undefined))
  9115. const parsedConType = cfg.parsedConType || []
  9116. const defCharset = cfg.defCharset || 'utf8'
  9117. const preservePath = cfg.preservePath
  9118. const fileOpts = { highWaterMark: cfg.fileHwm }
  9119. for (i = 0, len = parsedConType.length; i < len; ++i) {
  9120. if (Array.isArray(parsedConType[i]) &&
  9121. RE_BOUNDARY.test(parsedConType[i][0])) {
  9122. boundary = parsedConType[i][1]
  9123. break
  9124. }
  9125. }
  9126. function checkFinished () {
  9127. if (nends === 0 && finished && !boy._done) {
  9128. finished = false
  9129. self.end()
  9130. }
  9131. }
  9132. if (typeof boundary !== 'string') { throw new Error('Multipart: Boundary not found') }
  9133. const fieldSizeLimit = getLimit(limits, 'fieldSize', 1 * 1024 * 1024)
  9134. const fileSizeLimit = getLimit(limits, 'fileSize', Infinity)
  9135. const filesLimit = getLimit(limits, 'files', Infinity)
  9136. const fieldsLimit = getLimit(limits, 'fields', Infinity)
  9137. const partsLimit = getLimit(limits, 'parts', Infinity)
  9138. const headerPairsLimit = getLimit(limits, 'headerPairs', 2000)
  9139. const headerSizeLimit = getLimit(limits, 'headerSize', 80 * 1024)
  9140. let nfiles = 0
  9141. let nfields = 0
  9142. let nends = 0
  9143. let curFile
  9144. let curField
  9145. let finished = false
  9146. this._needDrain = false
  9147. this._pause = false
  9148. this._cb = undefined
  9149. this._nparts = 0
  9150. this._boy = boy
  9151. const parserCfg = {
  9152. boundary,
  9153. maxHeaderPairs: headerPairsLimit,
  9154. maxHeaderSize: headerSizeLimit,
  9155. partHwm: fileOpts.highWaterMark,
  9156. highWaterMark: cfg.highWaterMark
  9157. }
  9158. this.parser = new Dicer(parserCfg)
  9159. this.parser.on('drain', function () {
  9160. self._needDrain = false
  9161. if (self._cb && !self._pause) {
  9162. const cb = self._cb
  9163. self._cb = undefined
  9164. cb()
  9165. }
  9166. }).on('part', function onPart (part) {
  9167. if (++self._nparts > partsLimit) {
  9168. self.parser.removeListener('part', onPart)
  9169. self.parser.on('part', skipPart)
  9170. boy.hitPartsLimit = true
  9171. boy.emit('partsLimit')
  9172. return skipPart(part)
  9173. }
  9174. // hack because streams2 _always_ doesn't emit 'end' until nextTick, so let
  9175. // us emit 'end' early since we know the part has ended if we are already
  9176. // seeing the next part
  9177. if (curField) {
  9178. const field = curField
  9179. field.emit('end')
  9180. field.removeAllListeners('end')
  9181. }
  9182. part.on('header', function (header) {
  9183. let contype
  9184. let fieldname
  9185. let parsed
  9186. let charset
  9187. let encoding
  9188. let filename
  9189. let nsize = 0
  9190. if (header['content-type']) {
  9191. parsed = parseParams(header['content-type'][0])
  9192. if (parsed[0]) {
  9193. contype = parsed[0].toLowerCase()
  9194. for (i = 0, len = parsed.length; i < len; ++i) {
  9195. if (RE_CHARSET.test(parsed[i][0])) {
  9196. charset = parsed[i][1].toLowerCase()
  9197. break
  9198. }
  9199. }
  9200. }
  9201. }
  9202. if (contype === undefined) { contype = 'text/plain' }
  9203. if (charset === undefined) { charset = defCharset }
  9204. if (header['content-disposition']) {
  9205. parsed = parseParams(header['content-disposition'][0])
  9206. if (!RE_FIELD.test(parsed[0])) { return skipPart(part) }
  9207. for (i = 0, len = parsed.length; i < len; ++i) {
  9208. if (RE_NAME.test(parsed[i][0])) {
  9209. fieldname = parsed[i][1]
  9210. } else if (RE_FILENAME.test(parsed[i][0])) {
  9211. filename = parsed[i][1]
  9212. if (!preservePath) { filename = basename(filename) }
  9213. }
  9214. }
  9215. } else { return skipPart(part) }
  9216. if (header['content-transfer-encoding']) { encoding = header['content-transfer-encoding'][0].toLowerCase() } else { encoding = '7bit' }
  9217. let onData,
  9218. onEnd
  9219. if (isPartAFile(fieldname, contype, filename)) {
  9220. // file/binary field
  9221. if (nfiles === filesLimit) {
  9222. if (!boy.hitFilesLimit) {
  9223. boy.hitFilesLimit = true
  9224. boy.emit('filesLimit')
  9225. }
  9226. return skipPart(part)
  9227. }
  9228. ++nfiles
  9229. if (!boy._events.file) {
  9230. self.parser._ignore()
  9231. return
  9232. }
  9233. ++nends
  9234. const file = new FileStream(fileOpts)
  9235. curFile = file
  9236. file.on('end', function () {
  9237. --nends
  9238. self._pause = false
  9239. checkFinished()
  9240. if (self._cb && !self._needDrain) {
  9241. const cb = self._cb
  9242. self._cb = undefined
  9243. cb()
  9244. }
  9245. })
  9246. file._read = function (n) {
  9247. if (!self._pause) { return }
  9248. self._pause = false
  9249. if (self._cb && !self._needDrain) {
  9250. const cb = self._cb
  9251. self._cb = undefined
  9252. cb()
  9253. }
  9254. }
  9255. boy.emit('file', fieldname, file, filename, encoding, contype)
  9256. onData = function (data) {
  9257. if ((nsize += data.length) > fileSizeLimit) {
  9258. const extralen = fileSizeLimit - nsize + data.length
  9259. if (extralen > 0) { file.push(data.slice(0, extralen)) }
  9260. file.truncated = true
  9261. file.bytesRead = fileSizeLimit
  9262. part.removeAllListeners('data')
  9263. file.emit('limit')
  9264. return
  9265. } else if (!file.push(data)) { self._pause = true }
  9266. file.bytesRead = nsize
  9267. }
  9268. onEnd = function () {
  9269. curFile = undefined
  9270. file.push(null)
  9271. }
  9272. } else {
  9273. // non-file field
  9274. if (nfields === fieldsLimit) {
  9275. if (!boy.hitFieldsLimit) {
  9276. boy.hitFieldsLimit = true
  9277. boy.emit('fieldsLimit')
  9278. }
  9279. return skipPart(part)
  9280. }
  9281. ++nfields
  9282. ++nends
  9283. let buffer = ''
  9284. let truncated = false
  9285. curField = part
  9286. onData = function (data) {
  9287. if ((nsize += data.length) > fieldSizeLimit) {
  9288. const extralen = (fieldSizeLimit - (nsize - data.length))
  9289. buffer += data.toString('binary', 0, extralen)
  9290. truncated = true
  9291. part.removeAllListeners('data')
  9292. } else { buffer += data.toString('binary') }
  9293. }
  9294. onEnd = function () {
  9295. curField = undefined
  9296. if (buffer.length) { buffer = decodeText(buffer, 'binary', charset) }
  9297. boy.emit('field', fieldname, buffer, false, truncated, encoding, contype)
  9298. --nends
  9299. checkFinished()
  9300. }
  9301. }
  9302. /* As of node@2efe4ab761666 (v0.10.29+/v0.11.14+), busboy had become
  9303. broken. Streams2/streams3 is a huge black box of confusion, but
  9304. somehow overriding the sync state seems to fix things again (and still
  9305. seems to work for previous node versions).
  9306. */
  9307. part._readableState.sync = false
  9308. part.on('data', onData)
  9309. part.on('end', onEnd)
  9310. }).on('error', function (err) {
  9311. if (curFile) { curFile.emit('error', err) }
  9312. })
  9313. }).on('error', function (err) {
  9314. boy.emit('error', err)
  9315. }).on('finish', function () {
  9316. finished = true
  9317. checkFinished()
  9318. })
  9319. }
  9320. Multipart.prototype.write = function (chunk, cb) {
  9321. const r = this.parser.write(chunk)
  9322. if (r && !this._pause) {
  9323. cb()
  9324. } else {
  9325. this._needDrain = !r
  9326. this._cb = cb
  9327. }
  9328. }
  9329. Multipart.prototype.end = function () {
  9330. const self = this
  9331. if (self.parser.writable) {
  9332. self.parser.end()
  9333. } else if (!self._boy._done) {
  9334. process.nextTick(function () {
  9335. self._boy._done = true
  9336. self._boy.emit('finish')
  9337. })
  9338. }
  9339. }
  9340. function skipPart (part) {
  9341. part.resume()
  9342. }
  9343. function FileStream (opts) {
  9344. Readable.call(this, opts)
  9345. this.bytesRead = 0
  9346. this.truncated = false
  9347. }
  9348. inherits(FileStream, Readable)
  9349. FileStream.prototype._read = function (n) {}
  9350. module.exports = Multipart
  9351. /***/ }),
  9352. /***/ 6780:
  9353. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9354. "use strict";
  9355. const Decoder = __nccwpck_require__(9730)
  9356. const decodeText = __nccwpck_require__(9136)
  9357. const getLimit = __nccwpck_require__(9692)
  9358. const RE_CHARSET = /^charset$/i
  9359. UrlEncoded.detect = /^application\/x-www-form-urlencoded/i
  9360. function UrlEncoded (boy, cfg) {
  9361. const limits = cfg.limits
  9362. const parsedConType = cfg.parsedConType
  9363. this.boy = boy
  9364. this.fieldSizeLimit = getLimit(limits, 'fieldSize', 1 * 1024 * 1024)
  9365. this.fieldNameSizeLimit = getLimit(limits, 'fieldNameSize', 100)
  9366. this.fieldsLimit = getLimit(limits, 'fields', Infinity)
  9367. let charset
  9368. for (var i = 0, len = parsedConType.length; i < len; ++i) { // eslint-disable-line no-var
  9369. if (Array.isArray(parsedConType[i]) &&
  9370. RE_CHARSET.test(parsedConType[i][0])) {
  9371. charset = parsedConType[i][1].toLowerCase()
  9372. break
  9373. }
  9374. }
  9375. if (charset === undefined) { charset = cfg.defCharset || 'utf8' }
  9376. this.decoder = new Decoder()
  9377. this.charset = charset
  9378. this._fields = 0
  9379. this._state = 'key'
  9380. this._checkingBytes = true
  9381. this._bytesKey = 0
  9382. this._bytesVal = 0
  9383. this._key = ''
  9384. this._val = ''
  9385. this._keyTrunc = false
  9386. this._valTrunc = false
  9387. this._hitLimit = false
  9388. }
  9389. UrlEncoded.prototype.write = function (data, cb) {
  9390. if (this._fields === this.fieldsLimit) {
  9391. if (!this.boy.hitFieldsLimit) {
  9392. this.boy.hitFieldsLimit = true
  9393. this.boy.emit('fieldsLimit')
  9394. }
  9395. return cb()
  9396. }
  9397. let idxeq; let idxamp; let i; let p = 0; const len = data.length
  9398. while (p < len) {
  9399. if (this._state === 'key') {
  9400. idxeq = idxamp = undefined
  9401. for (i = p; i < len; ++i) {
  9402. if (!this._checkingBytes) { ++p }
  9403. if (data[i] === 0x3D/* = */) {
  9404. idxeq = i
  9405. break
  9406. } else if (data[i] === 0x26/* & */) {
  9407. idxamp = i
  9408. break
  9409. }
  9410. if (this._checkingBytes && this._bytesKey === this.fieldNameSizeLimit) {
  9411. this._hitLimit = true
  9412. break
  9413. } else if (this._checkingBytes) { ++this._bytesKey }
  9414. }
  9415. if (idxeq !== undefined) {
  9416. // key with assignment
  9417. if (idxeq > p) { this._key += this.decoder.write(data.toString('binary', p, idxeq)) }
  9418. this._state = 'val'
  9419. this._hitLimit = false
  9420. this._checkingBytes = true
  9421. this._val = ''
  9422. this._bytesVal = 0
  9423. this._valTrunc = false
  9424. this.decoder.reset()
  9425. p = idxeq + 1
  9426. } else if (idxamp !== undefined) {
  9427. // key with no assignment
  9428. ++this._fields
  9429. let key; const keyTrunc = this._keyTrunc
  9430. if (idxamp > p) { key = (this._key += this.decoder.write(data.toString('binary', p, idxamp))) } else { key = this._key }
  9431. this._hitLimit = false
  9432. this._checkingBytes = true
  9433. this._key = ''
  9434. this._bytesKey = 0
  9435. this._keyTrunc = false
  9436. this.decoder.reset()
  9437. if (key.length) {
  9438. this.boy.emit('field', decodeText(key, 'binary', this.charset),
  9439. '',
  9440. keyTrunc,
  9441. false)
  9442. }
  9443. p = idxamp + 1
  9444. if (this._fields === this.fieldsLimit) { return cb() }
  9445. } else if (this._hitLimit) {
  9446. // we may not have hit the actual limit if there are encoded bytes...
  9447. if (i > p) { this._key += this.decoder.write(data.toString('binary', p, i)) }
  9448. p = i
  9449. if ((this._bytesKey = this._key.length) === this.fieldNameSizeLimit) {
  9450. // yep, we actually did hit the limit
  9451. this._checkingBytes = false
  9452. this._keyTrunc = true
  9453. }
  9454. } else {
  9455. if (p < len) { this._key += this.decoder.write(data.toString('binary', p)) }
  9456. p = len
  9457. }
  9458. } else {
  9459. idxamp = undefined
  9460. for (i = p; i < len; ++i) {
  9461. if (!this._checkingBytes) { ++p }
  9462. if (data[i] === 0x26/* & */) {
  9463. idxamp = i
  9464. break
  9465. }
  9466. if (this._checkingBytes && this._bytesVal === this.fieldSizeLimit) {
  9467. this._hitLimit = true
  9468. break
  9469. } else if (this._checkingBytes) { ++this._bytesVal }
  9470. }
  9471. if (idxamp !== undefined) {
  9472. ++this._fields
  9473. if (idxamp > p) { this._val += this.decoder.write(data.toString('binary', p, idxamp)) }
  9474. this.boy.emit('field', decodeText(this._key, 'binary', this.charset),
  9475. decodeText(this._val, 'binary', this.charset),
  9476. this._keyTrunc,
  9477. this._valTrunc)
  9478. this._state = 'key'
  9479. this._hitLimit = false
  9480. this._checkingBytes = true
  9481. this._key = ''
  9482. this._bytesKey = 0
  9483. this._keyTrunc = false
  9484. this.decoder.reset()
  9485. p = idxamp + 1
  9486. if (this._fields === this.fieldsLimit) { return cb() }
  9487. } else if (this._hitLimit) {
  9488. // we may not have hit the actual limit if there are encoded bytes...
  9489. if (i > p) { this._val += this.decoder.write(data.toString('binary', p, i)) }
  9490. p = i
  9491. if ((this._val === '' && this.fieldSizeLimit === 0) ||
  9492. (this._bytesVal = this._val.length) === this.fieldSizeLimit) {
  9493. // yep, we actually did hit the limit
  9494. this._checkingBytes = false
  9495. this._valTrunc = true
  9496. }
  9497. } else {
  9498. if (p < len) { this._val += this.decoder.write(data.toString('binary', p)) }
  9499. p = len
  9500. }
  9501. }
  9502. }
  9503. cb()
  9504. }
  9505. UrlEncoded.prototype.end = function () {
  9506. if (this.boy._done) { return }
  9507. if (this._state === 'key' && this._key.length > 0) {
  9508. this.boy.emit('field', decodeText(this._key, 'binary', this.charset),
  9509. '',
  9510. this._keyTrunc,
  9511. false)
  9512. } else if (this._state === 'val') {
  9513. this.boy.emit('field', decodeText(this._key, 'binary', this.charset),
  9514. decodeText(this._val, 'binary', this.charset),
  9515. this._keyTrunc,
  9516. this._valTrunc)
  9517. }
  9518. this.boy._done = true
  9519. this.boy.emit('finish')
  9520. }
  9521. module.exports = UrlEncoded
  9522. /***/ }),
  9523. /***/ 9730:
  9524. /***/ ((module) => {
  9525. "use strict";
  9526. const RE_PLUS = /\+/g
  9527. const HEX = [
  9528. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  9529. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  9530. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  9531. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
  9532. 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  9533. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  9534. 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  9535. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  9536. ]
  9537. function Decoder () {
  9538. this.buffer = undefined
  9539. }
  9540. Decoder.prototype.write = function (str) {
  9541. // Replace '+' with ' ' before decoding
  9542. str = str.replace(RE_PLUS, ' ')
  9543. let res = ''
  9544. let i = 0; let p = 0; const len = str.length
  9545. for (; i < len; ++i) {
  9546. if (this.buffer !== undefined) {
  9547. if (!HEX[str.charCodeAt(i)]) {
  9548. res += '%' + this.buffer
  9549. this.buffer = undefined
  9550. --i // retry character
  9551. } else {
  9552. this.buffer += str[i]
  9553. ++p
  9554. if (this.buffer.length === 2) {
  9555. res += String.fromCharCode(parseInt(this.buffer, 16))
  9556. this.buffer = undefined
  9557. }
  9558. }
  9559. } else if (str[i] === '%') {
  9560. if (i > p) {
  9561. res += str.substring(p, i)
  9562. p = i
  9563. }
  9564. this.buffer = ''
  9565. ++p
  9566. }
  9567. }
  9568. if (p < len && this.buffer === undefined) { res += str.substring(p) }
  9569. return res
  9570. }
  9571. Decoder.prototype.reset = function () {
  9572. this.buffer = undefined
  9573. }
  9574. module.exports = Decoder
  9575. /***/ }),
  9576. /***/ 496:
  9577. /***/ ((module) => {
  9578. "use strict";
  9579. module.exports = function basename (path) {
  9580. if (typeof path !== 'string') { return '' }
  9581. for (var i = path.length - 1; i >= 0; --i) { // eslint-disable-line no-var
  9582. switch (path.charCodeAt(i)) {
  9583. case 0x2F: // '/'
  9584. case 0x5C: // '\'
  9585. path = path.slice(i + 1)
  9586. return (path === '..' || path === '.' ? '' : path)
  9587. }
  9588. }
  9589. return (path === '..' || path === '.' ? '' : path)
  9590. }
  9591. /***/ }),
  9592. /***/ 9136:
  9593. /***/ ((module) => {
  9594. "use strict";
  9595. // Node has always utf-8
  9596. const utf8Decoder = new TextDecoder('utf-8')
  9597. const textDecoders = new Map([
  9598. ['utf-8', utf8Decoder],
  9599. ['utf8', utf8Decoder]
  9600. ])
  9601. function decodeText (text, textEncoding, destEncoding) {
  9602. if (text) {
  9603. if (textDecoders.has(destEncoding)) {
  9604. try {
  9605. return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding))
  9606. } catch (e) { }
  9607. } else {
  9608. try {
  9609. textDecoders.set(destEncoding, new TextDecoder(destEncoding))
  9610. return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding))
  9611. } catch (e) { }
  9612. }
  9613. }
  9614. return text
  9615. }
  9616. module.exports = decodeText
  9617. /***/ }),
  9618. /***/ 9692:
  9619. /***/ ((module) => {
  9620. "use strict";
  9621. module.exports = function getLimit (limits, name, defaultLimit) {
  9622. if (
  9623. !limits ||
  9624. limits[name] === undefined ||
  9625. limits[name] === null
  9626. ) { return defaultLimit }
  9627. if (
  9628. typeof limits[name] !== 'number' ||
  9629. isNaN(limits[name])
  9630. ) { throw new TypeError('Limit ' + name + ' is not a valid number') }
  9631. return limits[name]
  9632. }
  9633. /***/ }),
  9634. /***/ 4426:
  9635. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9636. "use strict";
  9637. const decodeText = __nccwpck_require__(9136)
  9638. const RE_ENCODED = /%([a-fA-F0-9]{2})/g
  9639. function encodedReplacer (match, byte) {
  9640. return String.fromCharCode(parseInt(byte, 16))
  9641. }
  9642. function parseParams (str) {
  9643. const res = []
  9644. let state = 'key'
  9645. let charset = ''
  9646. let inquote = false
  9647. let escaping = false
  9648. let p = 0
  9649. let tmp = ''
  9650. for (var i = 0, len = str.length; i < len; ++i) { // eslint-disable-line no-var
  9651. const char = str[i]
  9652. if (char === '\\' && inquote) {
  9653. if (escaping) { escaping = false } else {
  9654. escaping = true
  9655. continue
  9656. }
  9657. } else if (char === '"') {
  9658. if (!escaping) {
  9659. if (inquote) {
  9660. inquote = false
  9661. state = 'key'
  9662. } else { inquote = true }
  9663. continue
  9664. } else { escaping = false }
  9665. } else {
  9666. if (escaping && inquote) { tmp += '\\' }
  9667. escaping = false
  9668. if ((state === 'charset' || state === 'lang') && char === "'") {
  9669. if (state === 'charset') {
  9670. state = 'lang'
  9671. charset = tmp.substring(1)
  9672. } else { state = 'value' }
  9673. tmp = ''
  9674. continue
  9675. } else if (state === 'key' &&
  9676. (char === '*' || char === '=') &&
  9677. res.length) {
  9678. if (char === '*') { state = 'charset' } else { state = 'value' }
  9679. res[p] = [tmp, undefined]
  9680. tmp = ''
  9681. continue
  9682. } else if (!inquote && char === ';') {
  9683. state = 'key'
  9684. if (charset) {
  9685. if (tmp.length) {
  9686. tmp = decodeText(tmp.replace(RE_ENCODED, encodedReplacer),
  9687. 'binary',
  9688. charset)
  9689. }
  9690. charset = ''
  9691. } else if (tmp.length) {
  9692. tmp = decodeText(tmp, 'binary', 'utf8')
  9693. }
  9694. if (res[p] === undefined) { res[p] = tmp } else { res[p][1] = tmp }
  9695. tmp = ''
  9696. ++p
  9697. continue
  9698. } else if (!inquote && (char === ' ' || char === '\t')) { continue }
  9699. }
  9700. tmp += char
  9701. }
  9702. if (charset && tmp.length) {
  9703. tmp = decodeText(tmp.replace(RE_ENCODED, encodedReplacer),
  9704. 'binary',
  9705. charset)
  9706. } else if (tmp) {
  9707. tmp = decodeText(tmp, 'binary', 'utf8')
  9708. }
  9709. if (res[p] === undefined) {
  9710. if (tmp) { res[p] = tmp }
  9711. } else { res[p][1] = tmp }
  9712. return res
  9713. }
  9714. module.exports = parseParams
  9715. /***/ }),
  9716. /***/ 334:
  9717. /***/ ((module) => {
  9718. "use strict";
  9719. var __defProp = Object.defineProperty;
  9720. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  9721. var __getOwnPropNames = Object.getOwnPropertyNames;
  9722. var __hasOwnProp = Object.prototype.hasOwnProperty;
  9723. var __export = (target, all) => {
  9724. for (var name in all)
  9725. __defProp(target, name, { get: all[name], enumerable: true });
  9726. };
  9727. var __copyProps = (to, from, except, desc) => {
  9728. if (from && typeof from === "object" || typeof from === "function") {
  9729. for (let key of __getOwnPropNames(from))
  9730. if (!__hasOwnProp.call(to, key) && key !== except)
  9731. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  9732. }
  9733. return to;
  9734. };
  9735. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  9736. // pkg/dist-src/index.js
  9737. var dist_src_exports = {};
  9738. __export(dist_src_exports, {
  9739. createTokenAuth: () => createTokenAuth
  9740. });
  9741. module.exports = __toCommonJS(dist_src_exports);
  9742. // pkg/dist-src/auth.js
  9743. var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
  9744. var REGEX_IS_INSTALLATION = /^ghs_/;
  9745. var REGEX_IS_USER_TO_SERVER = /^ghu_/;
  9746. async function auth(token) {
  9747. const isApp = token.split(/\./).length === 3;
  9748. const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
  9749. const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
  9750. const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
  9751. return {
  9752. type: "token",
  9753. token,
  9754. tokenType
  9755. };
  9756. }
  9757. // pkg/dist-src/with-authorization-prefix.js
  9758. function withAuthorizationPrefix(token) {
  9759. if (token.split(/\./).length === 3) {
  9760. return `bearer ${token}`;
  9761. }
  9762. return `token ${token}`;
  9763. }
  9764. // pkg/dist-src/hook.js
  9765. async function hook(token, request, route, parameters) {
  9766. const endpoint = request.endpoint.merge(
  9767. route,
  9768. parameters
  9769. );
  9770. endpoint.headers.authorization = withAuthorizationPrefix(token);
  9771. return request(endpoint);
  9772. }
  9773. // pkg/dist-src/index.js
  9774. var createTokenAuth = function createTokenAuth2(token) {
  9775. if (!token) {
  9776. throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
  9777. }
  9778. if (typeof token !== "string") {
  9779. throw new Error(
  9780. "[@octokit/auth-token] Token passed to createTokenAuth is not a string"
  9781. );
  9782. }
  9783. token = token.replace(/^(token|bearer) +/i, "");
  9784. return Object.assign(auth.bind(null, token), {
  9785. hook: hook.bind(null, token)
  9786. });
  9787. };
  9788. // Annotate the CommonJS export names for ESM import in node:
  9789. 0 && (0);
  9790. /***/ }),
  9791. /***/ 6762:
  9792. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9793. "use strict";
  9794. var __defProp = Object.defineProperty;
  9795. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  9796. var __getOwnPropNames = Object.getOwnPropertyNames;
  9797. var __hasOwnProp = Object.prototype.hasOwnProperty;
  9798. var __export = (target, all) => {
  9799. for (var name in all)
  9800. __defProp(target, name, { get: all[name], enumerable: true });
  9801. };
  9802. var __copyProps = (to, from, except, desc) => {
  9803. if (from && typeof from === "object" || typeof from === "function") {
  9804. for (let key of __getOwnPropNames(from))
  9805. if (!__hasOwnProp.call(to, key) && key !== except)
  9806. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  9807. }
  9808. return to;
  9809. };
  9810. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  9811. // pkg/dist-src/index.js
  9812. var dist_src_exports = {};
  9813. __export(dist_src_exports, {
  9814. Octokit: () => Octokit
  9815. });
  9816. module.exports = __toCommonJS(dist_src_exports);
  9817. var import_universal_user_agent = __nccwpck_require__(5030);
  9818. var import_before_after_hook = __nccwpck_require__(3682);
  9819. var import_request = __nccwpck_require__(6234);
  9820. var import_graphql = __nccwpck_require__(8467);
  9821. var import_auth_token = __nccwpck_require__(334);
  9822. // pkg/dist-src/version.js
  9823. var VERSION = "4.2.4";
  9824. // pkg/dist-src/index.js
  9825. var Octokit = class {
  9826. static defaults(defaults) {
  9827. const OctokitWithDefaults = class extends this {
  9828. constructor(...args) {
  9829. const options = args[0] || {};
  9830. if (typeof defaults === "function") {
  9831. super(defaults(options));
  9832. return;
  9833. }
  9834. super(
  9835. Object.assign(
  9836. {},
  9837. defaults,
  9838. options,
  9839. options.userAgent && defaults.userAgent ? {
  9840. userAgent: `${options.userAgent} ${defaults.userAgent}`
  9841. } : null
  9842. )
  9843. );
  9844. }
  9845. };
  9846. return OctokitWithDefaults;
  9847. }
  9848. /**
  9849. * Attach a plugin (or many) to your Octokit instance.
  9850. *
  9851. * @example
  9852. * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
  9853. */
  9854. static plugin(...newPlugins) {
  9855. var _a;
  9856. const currentPlugins = this.plugins;
  9857. const NewOctokit = (_a = class extends this {
  9858. }, _a.plugins = currentPlugins.concat(
  9859. newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
  9860. ), _a);
  9861. return NewOctokit;
  9862. }
  9863. constructor(options = {}) {
  9864. const hook = new import_before_after_hook.Collection();
  9865. const requestDefaults = {
  9866. baseUrl: import_request.request.endpoint.DEFAULTS.baseUrl,
  9867. headers: {},
  9868. request: Object.assign({}, options.request, {
  9869. // @ts-ignore internal usage only, no need to type
  9870. hook: hook.bind(null, "request")
  9871. }),
  9872. mediaType: {
  9873. previews: [],
  9874. format: ""
  9875. }
  9876. };
  9877. requestDefaults.headers["user-agent"] = [
  9878. options.userAgent,
  9879. `octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
  9880. ].filter(Boolean).join(" ");
  9881. if (options.baseUrl) {
  9882. requestDefaults.baseUrl = options.baseUrl;
  9883. }
  9884. if (options.previews) {
  9885. requestDefaults.mediaType.previews = options.previews;
  9886. }
  9887. if (options.timeZone) {
  9888. requestDefaults.headers["time-zone"] = options.timeZone;
  9889. }
  9890. this.request = import_request.request.defaults(requestDefaults);
  9891. this.graphql = (0, import_graphql.withCustomRequest)(this.request).defaults(requestDefaults);
  9892. this.log = Object.assign(
  9893. {
  9894. debug: () => {
  9895. },
  9896. info: () => {
  9897. },
  9898. warn: console.warn.bind(console),
  9899. error: console.error.bind(console)
  9900. },
  9901. options.log
  9902. );
  9903. this.hook = hook;
  9904. if (!options.authStrategy) {
  9905. if (!options.auth) {
  9906. this.auth = async () => ({
  9907. type: "unauthenticated"
  9908. });
  9909. } else {
  9910. const auth = (0, import_auth_token.createTokenAuth)(options.auth);
  9911. hook.wrap("request", auth.hook);
  9912. this.auth = auth;
  9913. }
  9914. } else {
  9915. const { authStrategy, ...otherOptions } = options;
  9916. const auth = authStrategy(
  9917. Object.assign(
  9918. {
  9919. request: this.request,
  9920. log: this.log,
  9921. // we pass the current octokit instance as well as its constructor options
  9922. // to allow for authentication strategies that return a new octokit instance
  9923. // that shares the same internal state as the current one. The original
  9924. // requirement for this was the "event-octokit" authentication strategy
  9925. // of https://github.com/probot/octokit-auth-probot.
  9926. octokit: this,
  9927. octokitOptions: otherOptions
  9928. },
  9929. options.auth
  9930. )
  9931. );
  9932. hook.wrap("request", auth.hook);
  9933. this.auth = auth;
  9934. }
  9935. const classConstructor = this.constructor;
  9936. classConstructor.plugins.forEach((plugin) => {
  9937. Object.assign(this, plugin(this, options));
  9938. });
  9939. }
  9940. };
  9941. Octokit.VERSION = VERSION;
  9942. Octokit.plugins = [];
  9943. // Annotate the CommonJS export names for ESM import in node:
  9944. 0 && (0);
  9945. /***/ }),
  9946. /***/ 9440:
  9947. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9948. "use strict";
  9949. var __defProp = Object.defineProperty;
  9950. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  9951. var __getOwnPropNames = Object.getOwnPropertyNames;
  9952. var __hasOwnProp = Object.prototype.hasOwnProperty;
  9953. var __export = (target, all) => {
  9954. for (var name in all)
  9955. __defProp(target, name, { get: all[name], enumerable: true });
  9956. };
  9957. var __copyProps = (to, from, except, desc) => {
  9958. if (from && typeof from === "object" || typeof from === "function") {
  9959. for (let key of __getOwnPropNames(from))
  9960. if (!__hasOwnProp.call(to, key) && key !== except)
  9961. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  9962. }
  9963. return to;
  9964. };
  9965. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  9966. // pkg/dist-src/index.js
  9967. var dist_src_exports = {};
  9968. __export(dist_src_exports, {
  9969. endpoint: () => endpoint
  9970. });
  9971. module.exports = __toCommonJS(dist_src_exports);
  9972. // pkg/dist-src/util/lowercase-keys.js
  9973. function lowercaseKeys(object) {
  9974. if (!object) {
  9975. return {};
  9976. }
  9977. return Object.keys(object).reduce((newObj, key) => {
  9978. newObj[key.toLowerCase()] = object[key];
  9979. return newObj;
  9980. }, {});
  9981. }
  9982. // pkg/dist-src/util/merge-deep.js
  9983. var import_is_plain_object = __nccwpck_require__(3287);
  9984. function mergeDeep(defaults, options) {
  9985. const result = Object.assign({}, defaults);
  9986. Object.keys(options).forEach((key) => {
  9987. if ((0, import_is_plain_object.isPlainObject)(options[key])) {
  9988. if (!(key in defaults))
  9989. Object.assign(result, { [key]: options[key] });
  9990. else
  9991. result[key] = mergeDeep(defaults[key], options[key]);
  9992. } else {
  9993. Object.assign(result, { [key]: options[key] });
  9994. }
  9995. });
  9996. return result;
  9997. }
  9998. // pkg/dist-src/util/remove-undefined-properties.js
  9999. function removeUndefinedProperties(obj) {
  10000. for (const key in obj) {
  10001. if (obj[key] === void 0) {
  10002. delete obj[key];
  10003. }
  10004. }
  10005. return obj;
  10006. }
  10007. // pkg/dist-src/merge.js
  10008. function merge(defaults, route, options) {
  10009. if (typeof route === "string") {
  10010. let [method, url] = route.split(" ");
  10011. options = Object.assign(url ? { method, url } : { url: method }, options);
  10012. } else {
  10013. options = Object.assign({}, route);
  10014. }
  10015. options.headers = lowercaseKeys(options.headers);
  10016. removeUndefinedProperties(options);
  10017. removeUndefinedProperties(options.headers);
  10018. const mergedOptions = mergeDeep(defaults || {}, options);
  10019. if (defaults && defaults.mediaType.previews.length) {
  10020. mergedOptions.mediaType.previews = defaults.mediaType.previews.filter((preview) => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
  10021. }
  10022. mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(
  10023. (preview) => preview.replace(/-preview/, "")
  10024. );
  10025. return mergedOptions;
  10026. }
  10027. // pkg/dist-src/util/add-query-parameters.js
  10028. function addQueryParameters(url, parameters) {
  10029. const separator = /\?/.test(url) ? "&" : "?";
  10030. const names = Object.keys(parameters);
  10031. if (names.length === 0) {
  10032. return url;
  10033. }
  10034. return url + separator + names.map((name) => {
  10035. if (name === "q") {
  10036. return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
  10037. }
  10038. return `${name}=${encodeURIComponent(parameters[name])}`;
  10039. }).join("&");
  10040. }
  10041. // pkg/dist-src/util/extract-url-variable-names.js
  10042. var urlVariableRegex = /\{[^}]+\}/g;
  10043. function removeNonChars(variableName) {
  10044. return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
  10045. }
  10046. function extractUrlVariableNames(url) {
  10047. const matches = url.match(urlVariableRegex);
  10048. if (!matches) {
  10049. return [];
  10050. }
  10051. return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
  10052. }
  10053. // pkg/dist-src/util/omit.js
  10054. function omit(object, keysToOmit) {
  10055. return Object.keys(object).filter((option) => !keysToOmit.includes(option)).reduce((obj, key) => {
  10056. obj[key] = object[key];
  10057. return obj;
  10058. }, {});
  10059. }
  10060. // pkg/dist-src/util/url-template.js
  10061. function encodeReserved(str) {
  10062. return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
  10063. if (!/%[0-9A-Fa-f]/.test(part)) {
  10064. part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
  10065. }
  10066. return part;
  10067. }).join("");
  10068. }
  10069. function encodeUnreserved(str) {
  10070. return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
  10071. return "%" + c.charCodeAt(0).toString(16).toUpperCase();
  10072. });
  10073. }
  10074. function encodeValue(operator, value, key) {
  10075. value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
  10076. if (key) {
  10077. return encodeUnreserved(key) + "=" + value;
  10078. } else {
  10079. return value;
  10080. }
  10081. }
  10082. function isDefined(value) {
  10083. return value !== void 0 && value !== null;
  10084. }
  10085. function isKeyOperator(operator) {
  10086. return operator === ";" || operator === "&" || operator === "?";
  10087. }
  10088. function getValues(context, operator, key, modifier) {
  10089. var value = context[key], result = [];
  10090. if (isDefined(value) && value !== "") {
  10091. if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
  10092. value = value.toString();
  10093. if (modifier && modifier !== "*") {
  10094. value = value.substring(0, parseInt(modifier, 10));
  10095. }
  10096. result.push(
  10097. encodeValue(operator, value, isKeyOperator(operator) ? key : "")
  10098. );
  10099. } else {
  10100. if (modifier === "*") {
  10101. if (Array.isArray(value)) {
  10102. value.filter(isDefined).forEach(function(value2) {
  10103. result.push(
  10104. encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
  10105. );
  10106. });
  10107. } else {
  10108. Object.keys(value).forEach(function(k) {
  10109. if (isDefined(value[k])) {
  10110. result.push(encodeValue(operator, value[k], k));
  10111. }
  10112. });
  10113. }
  10114. } else {
  10115. const tmp = [];
  10116. if (Array.isArray(value)) {
  10117. value.filter(isDefined).forEach(function(value2) {
  10118. tmp.push(encodeValue(operator, value2));
  10119. });
  10120. } else {
  10121. Object.keys(value).forEach(function(k) {
  10122. if (isDefined(value[k])) {
  10123. tmp.push(encodeUnreserved(k));
  10124. tmp.push(encodeValue(operator, value[k].toString()));
  10125. }
  10126. });
  10127. }
  10128. if (isKeyOperator(operator)) {
  10129. result.push(encodeUnreserved(key) + "=" + tmp.join(","));
  10130. } else if (tmp.length !== 0) {
  10131. result.push(tmp.join(","));
  10132. }
  10133. }
  10134. }
  10135. } else {
  10136. if (operator === ";") {
  10137. if (isDefined(value)) {
  10138. result.push(encodeUnreserved(key));
  10139. }
  10140. } else if (value === "" && (operator === "&" || operator === "?")) {
  10141. result.push(encodeUnreserved(key) + "=");
  10142. } else if (value === "") {
  10143. result.push("");
  10144. }
  10145. }
  10146. return result;
  10147. }
  10148. function parseUrl(template) {
  10149. return {
  10150. expand: expand.bind(null, template)
  10151. };
  10152. }
  10153. function expand(template, context) {
  10154. var operators = ["+", "#", ".", "/", ";", "?", "&"];
  10155. return template.replace(
  10156. /\{([^\{\}]+)\}|([^\{\}]+)/g,
  10157. function(_, expression, literal) {
  10158. if (expression) {
  10159. let operator = "";
  10160. const values = [];
  10161. if (operators.indexOf(expression.charAt(0)) !== -1) {
  10162. operator = expression.charAt(0);
  10163. expression = expression.substr(1);
  10164. }
  10165. expression.split(/,/g).forEach(function(variable) {
  10166. var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
  10167. values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
  10168. });
  10169. if (operator && operator !== "+") {
  10170. var separator = ",";
  10171. if (operator === "?") {
  10172. separator = "&";
  10173. } else if (operator !== "#") {
  10174. separator = operator;
  10175. }
  10176. return (values.length !== 0 ? operator : "") + values.join(separator);
  10177. } else {
  10178. return values.join(",");
  10179. }
  10180. } else {
  10181. return encodeReserved(literal);
  10182. }
  10183. }
  10184. );
  10185. }
  10186. // pkg/dist-src/parse.js
  10187. function parse(options) {
  10188. let method = options.method.toUpperCase();
  10189. let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
  10190. let headers = Object.assign({}, options.headers);
  10191. let body;
  10192. let parameters = omit(options, [
  10193. "method",
  10194. "baseUrl",
  10195. "url",
  10196. "headers",
  10197. "request",
  10198. "mediaType"
  10199. ]);
  10200. const urlVariableNames = extractUrlVariableNames(url);
  10201. url = parseUrl(url).expand(parameters);
  10202. if (!/^http/.test(url)) {
  10203. url = options.baseUrl + url;
  10204. }
  10205. const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl");
  10206. const remainingParameters = omit(parameters, omittedParameters);
  10207. const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
  10208. if (!isBinaryRequest) {
  10209. if (options.mediaType.format) {
  10210. headers.accept = headers.accept.split(/,/).map(
  10211. (preview) => preview.replace(
  10212. /application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
  10213. `application/vnd$1$2.${options.mediaType.format}`
  10214. )
  10215. ).join(",");
  10216. }
  10217. if (options.mediaType.previews.length) {
  10218. const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
  10219. headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
  10220. const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
  10221. return `application/vnd.github.${preview}-preview${format}`;
  10222. }).join(",");
  10223. }
  10224. }
  10225. if (["GET", "HEAD"].includes(method)) {
  10226. url = addQueryParameters(url, remainingParameters);
  10227. } else {
  10228. if ("data" in remainingParameters) {
  10229. body = remainingParameters.data;
  10230. } else {
  10231. if (Object.keys(remainingParameters).length) {
  10232. body = remainingParameters;
  10233. }
  10234. }
  10235. }
  10236. if (!headers["content-type"] && typeof body !== "undefined") {
  10237. headers["content-type"] = "application/json; charset=utf-8";
  10238. }
  10239. if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
  10240. body = "";
  10241. }
  10242. return Object.assign(
  10243. { method, url, headers },
  10244. typeof body !== "undefined" ? { body } : null,
  10245. options.request ? { request: options.request } : null
  10246. );
  10247. }
  10248. // pkg/dist-src/endpoint-with-defaults.js
  10249. function endpointWithDefaults(defaults, route, options) {
  10250. return parse(merge(defaults, route, options));
  10251. }
  10252. // pkg/dist-src/with-defaults.js
  10253. function withDefaults(oldDefaults, newDefaults) {
  10254. const DEFAULTS2 = merge(oldDefaults, newDefaults);
  10255. const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
  10256. return Object.assign(endpoint2, {
  10257. DEFAULTS: DEFAULTS2,
  10258. defaults: withDefaults.bind(null, DEFAULTS2),
  10259. merge: merge.bind(null, DEFAULTS2),
  10260. parse
  10261. });
  10262. }
  10263. // pkg/dist-src/defaults.js
  10264. var import_universal_user_agent = __nccwpck_require__(5030);
  10265. // pkg/dist-src/version.js
  10266. var VERSION = "7.0.6";
  10267. // pkg/dist-src/defaults.js
  10268. var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
  10269. var DEFAULTS = {
  10270. method: "GET",
  10271. baseUrl: "https://api.github.com",
  10272. headers: {
  10273. accept: "application/vnd.github.v3+json",
  10274. "user-agent": userAgent
  10275. },
  10276. mediaType: {
  10277. format: "",
  10278. previews: []
  10279. }
  10280. };
  10281. // pkg/dist-src/index.js
  10282. var endpoint = withDefaults(null, DEFAULTS);
  10283. // Annotate the CommonJS export names for ESM import in node:
  10284. 0 && (0);
  10285. /***/ }),
  10286. /***/ 8467:
  10287. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  10288. "use strict";
  10289. var __defProp = Object.defineProperty;
  10290. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  10291. var __getOwnPropNames = Object.getOwnPropertyNames;
  10292. var __hasOwnProp = Object.prototype.hasOwnProperty;
  10293. var __export = (target, all) => {
  10294. for (var name in all)
  10295. __defProp(target, name, { get: all[name], enumerable: true });
  10296. };
  10297. var __copyProps = (to, from, except, desc) => {
  10298. if (from && typeof from === "object" || typeof from === "function") {
  10299. for (let key of __getOwnPropNames(from))
  10300. if (!__hasOwnProp.call(to, key) && key !== except)
  10301. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  10302. }
  10303. return to;
  10304. };
  10305. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  10306. // pkg/dist-src/index.js
  10307. var dist_src_exports = {};
  10308. __export(dist_src_exports, {
  10309. GraphqlResponseError: () => GraphqlResponseError,
  10310. graphql: () => graphql2,
  10311. withCustomRequest: () => withCustomRequest
  10312. });
  10313. module.exports = __toCommonJS(dist_src_exports);
  10314. var import_request = __nccwpck_require__(6234);
  10315. var import_universal_user_agent = __nccwpck_require__(5030);
  10316. // pkg/dist-src/version.js
  10317. var VERSION = "5.0.6";
  10318. // pkg/dist-src/error.js
  10319. function _buildMessageForResponseErrors(data) {
  10320. return `Request failed due to following response errors:
  10321. ` + data.errors.map((e) => ` - ${e.message}`).join("\n");
  10322. }
  10323. var GraphqlResponseError = class extends Error {
  10324. constructor(request2, headers, response) {
  10325. super(_buildMessageForResponseErrors(response));
  10326. this.request = request2;
  10327. this.headers = headers;
  10328. this.response = response;
  10329. this.name = "GraphqlResponseError";
  10330. this.errors = response.errors;
  10331. this.data = response.data;
  10332. if (Error.captureStackTrace) {
  10333. Error.captureStackTrace(this, this.constructor);
  10334. }
  10335. }
  10336. };
  10337. // pkg/dist-src/graphql.js
  10338. var NON_VARIABLE_OPTIONS = [
  10339. "method",
  10340. "baseUrl",
  10341. "url",
  10342. "headers",
  10343. "request",
  10344. "query",
  10345. "mediaType"
  10346. ];
  10347. var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
  10348. var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
  10349. function graphql(request2, query, options) {
  10350. if (options) {
  10351. if (typeof query === "string" && "query" in options) {
  10352. return Promise.reject(
  10353. new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
  10354. );
  10355. }
  10356. for (const key in options) {
  10357. if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key))
  10358. continue;
  10359. return Promise.reject(
  10360. new Error(`[@octokit/graphql] "${key}" cannot be used as variable name`)
  10361. );
  10362. }
  10363. }
  10364. const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
  10365. const requestOptions = Object.keys(
  10366. parsedOptions
  10367. ).reduce((result, key) => {
  10368. if (NON_VARIABLE_OPTIONS.includes(key)) {
  10369. result[key] = parsedOptions[key];
  10370. return result;
  10371. }
  10372. if (!result.variables) {
  10373. result.variables = {};
  10374. }
  10375. result.variables[key] = parsedOptions[key];
  10376. return result;
  10377. }, {});
  10378. const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl;
  10379. if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
  10380. requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql");
  10381. }
  10382. return request2(requestOptions).then((response) => {
  10383. if (response.data.errors) {
  10384. const headers = {};
  10385. for (const key of Object.keys(response.headers)) {
  10386. headers[key] = response.headers[key];
  10387. }
  10388. throw new GraphqlResponseError(
  10389. requestOptions,
  10390. headers,
  10391. response.data
  10392. );
  10393. }
  10394. return response.data.data;
  10395. });
  10396. }
  10397. // pkg/dist-src/with-defaults.js
  10398. function withDefaults(request2, newDefaults) {
  10399. const newRequest = request2.defaults(newDefaults);
  10400. const newApi = (query, options) => {
  10401. return graphql(newRequest, query, options);
  10402. };
  10403. return Object.assign(newApi, {
  10404. defaults: withDefaults.bind(null, newRequest),
  10405. endpoint: newRequest.endpoint
  10406. });
  10407. }
  10408. // pkg/dist-src/index.js
  10409. var graphql2 = withDefaults(import_request.request, {
  10410. headers: {
  10411. "user-agent": `octokit-graphql.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
  10412. },
  10413. method: "POST",
  10414. url: "/graphql"
  10415. });
  10416. function withCustomRequest(customRequest) {
  10417. return withDefaults(customRequest, {
  10418. method: "POST",
  10419. url: "/graphql"
  10420. });
  10421. }
  10422. // Annotate the CommonJS export names for ESM import in node:
  10423. 0 && (0);
  10424. /***/ }),
  10425. /***/ 4193:
  10426. /***/ ((module) => {
  10427. "use strict";
  10428. var __defProp = Object.defineProperty;
  10429. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  10430. var __getOwnPropNames = Object.getOwnPropertyNames;
  10431. var __hasOwnProp = Object.prototype.hasOwnProperty;
  10432. var __export = (target, all) => {
  10433. for (var name in all)
  10434. __defProp(target, name, { get: all[name], enumerable: true });
  10435. };
  10436. var __copyProps = (to, from, except, desc) => {
  10437. if (from && typeof from === "object" || typeof from === "function") {
  10438. for (let key of __getOwnPropNames(from))
  10439. if (!__hasOwnProp.call(to, key) && key !== except)
  10440. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  10441. }
  10442. return to;
  10443. };
  10444. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  10445. // pkg/dist-src/index.js
  10446. var dist_src_exports = {};
  10447. __export(dist_src_exports, {
  10448. composePaginateRest: () => composePaginateRest,
  10449. isPaginatingEndpoint: () => isPaginatingEndpoint,
  10450. paginateRest: () => paginateRest,
  10451. paginatingEndpoints: () => paginatingEndpoints
  10452. });
  10453. module.exports = __toCommonJS(dist_src_exports);
  10454. // pkg/dist-src/version.js
  10455. var VERSION = "6.1.2";
  10456. // pkg/dist-src/normalize-paginated-list-response.js
  10457. function normalizePaginatedListResponse(response) {
  10458. if (!response.data) {
  10459. return {
  10460. ...response,
  10461. data: []
  10462. };
  10463. }
  10464. const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
  10465. if (!responseNeedsNormalization)
  10466. return response;
  10467. const incompleteResults = response.data.incomplete_results;
  10468. const repositorySelection = response.data.repository_selection;
  10469. const totalCount = response.data.total_count;
  10470. delete response.data.incomplete_results;
  10471. delete response.data.repository_selection;
  10472. delete response.data.total_count;
  10473. const namespaceKey = Object.keys(response.data)[0];
  10474. const data = response.data[namespaceKey];
  10475. response.data = data;
  10476. if (typeof incompleteResults !== "undefined") {
  10477. response.data.incomplete_results = incompleteResults;
  10478. }
  10479. if (typeof repositorySelection !== "undefined") {
  10480. response.data.repository_selection = repositorySelection;
  10481. }
  10482. response.data.total_count = totalCount;
  10483. return response;
  10484. }
  10485. // pkg/dist-src/iterator.js
  10486. function iterator(octokit, route, parameters) {
  10487. const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
  10488. const requestMethod = typeof route === "function" ? route : octokit.request;
  10489. const method = options.method;
  10490. const headers = options.headers;
  10491. let url = options.url;
  10492. return {
  10493. [Symbol.asyncIterator]: () => ({
  10494. async next() {
  10495. if (!url)
  10496. return { done: true };
  10497. try {
  10498. const response = await requestMethod({ method, url, headers });
  10499. const normalizedResponse = normalizePaginatedListResponse(response);
  10500. url = ((normalizedResponse.headers.link || "").match(
  10501. /<([^>]+)>;\s*rel="next"/
  10502. ) || [])[1];
  10503. return { value: normalizedResponse };
  10504. } catch (error) {
  10505. if (error.status !== 409)
  10506. throw error;
  10507. url = "";
  10508. return {
  10509. value: {
  10510. status: 200,
  10511. headers: {},
  10512. data: []
  10513. }
  10514. };
  10515. }
  10516. }
  10517. })
  10518. };
  10519. }
  10520. // pkg/dist-src/paginate.js
  10521. function paginate(octokit, route, parameters, mapFn) {
  10522. if (typeof parameters === "function") {
  10523. mapFn = parameters;
  10524. parameters = void 0;
  10525. }
  10526. return gather(
  10527. octokit,
  10528. [],
  10529. iterator(octokit, route, parameters)[Symbol.asyncIterator](),
  10530. mapFn
  10531. );
  10532. }
  10533. function gather(octokit, results, iterator2, mapFn) {
  10534. return iterator2.next().then((result) => {
  10535. if (result.done) {
  10536. return results;
  10537. }
  10538. let earlyExit = false;
  10539. function done() {
  10540. earlyExit = true;
  10541. }
  10542. results = results.concat(
  10543. mapFn ? mapFn(result.value, done) : result.value.data
  10544. );
  10545. if (earlyExit) {
  10546. return results;
  10547. }
  10548. return gather(octokit, results, iterator2, mapFn);
  10549. });
  10550. }
  10551. // pkg/dist-src/compose-paginate.js
  10552. var composePaginateRest = Object.assign(paginate, {
  10553. iterator
  10554. });
  10555. // pkg/dist-src/generated/paginating-endpoints.js
  10556. var paginatingEndpoints = [
  10557. "GET /app/hook/deliveries",
  10558. "GET /app/installation-requests",
  10559. "GET /app/installations",
  10560. "GET /enterprises/{enterprise}/dependabot/alerts",
  10561. "GET /enterprises/{enterprise}/secret-scanning/alerts",
  10562. "GET /events",
  10563. "GET /gists",
  10564. "GET /gists/public",
  10565. "GET /gists/starred",
  10566. "GET /gists/{gist_id}/comments",
  10567. "GET /gists/{gist_id}/commits",
  10568. "GET /gists/{gist_id}/forks",
  10569. "GET /installation/repositories",
  10570. "GET /issues",
  10571. "GET /licenses",
  10572. "GET /marketplace_listing/plans",
  10573. "GET /marketplace_listing/plans/{plan_id}/accounts",
  10574. "GET /marketplace_listing/stubbed/plans",
  10575. "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
  10576. "GET /networks/{owner}/{repo}/events",
  10577. "GET /notifications",
  10578. "GET /organizations",
  10579. "GET /organizations/{org}/personal-access-token-requests",
  10580. "GET /organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories",
  10581. "GET /organizations/{org}/personal-access-tokens",
  10582. "GET /organizations/{org}/personal-access-tokens/{pat_id}/repositories",
  10583. "GET /orgs/{org}/actions/cache/usage-by-repository",
  10584. "GET /orgs/{org}/actions/permissions/repositories",
  10585. "GET /orgs/{org}/actions/required_workflows",
  10586. "GET /orgs/{org}/actions/runners",
  10587. "GET /orgs/{org}/actions/secrets",
  10588. "GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
  10589. "GET /orgs/{org}/actions/variables",
  10590. "GET /orgs/{org}/actions/variables/{name}/repositories",
  10591. "GET /orgs/{org}/blocks",
  10592. "GET /orgs/{org}/code-scanning/alerts",
  10593. "GET /orgs/{org}/codespaces",
  10594. "GET /orgs/{org}/codespaces/secrets",
  10595. "GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
  10596. "GET /orgs/{org}/dependabot/alerts",
  10597. "GET /orgs/{org}/dependabot/secrets",
  10598. "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
  10599. "GET /orgs/{org}/events",
  10600. "GET /orgs/{org}/failed_invitations",
  10601. "GET /orgs/{org}/hooks",
  10602. "GET /orgs/{org}/hooks/{hook_id}/deliveries",
  10603. "GET /orgs/{org}/installations",
  10604. "GET /orgs/{org}/invitations",
  10605. "GET /orgs/{org}/invitations/{invitation_id}/teams",
  10606. "GET /orgs/{org}/issues",
  10607. "GET /orgs/{org}/members",
  10608. "GET /orgs/{org}/members/{username}/codespaces",
  10609. "GET /orgs/{org}/migrations",
  10610. "GET /orgs/{org}/migrations/{migration_id}/repositories",
  10611. "GET /orgs/{org}/outside_collaborators",
  10612. "GET /orgs/{org}/packages",
  10613. "GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
  10614. "GET /orgs/{org}/projects",
  10615. "GET /orgs/{org}/public_members",
  10616. "GET /orgs/{org}/repos",
  10617. "GET /orgs/{org}/secret-scanning/alerts",
  10618. "GET /orgs/{org}/teams",
  10619. "GET /orgs/{org}/teams/{team_slug}/discussions",
  10620. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
  10621. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
  10622. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
  10623. "GET /orgs/{org}/teams/{team_slug}/invitations",
  10624. "GET /orgs/{org}/teams/{team_slug}/members",
  10625. "GET /orgs/{org}/teams/{team_slug}/projects",
  10626. "GET /orgs/{org}/teams/{team_slug}/repos",
  10627. "GET /orgs/{org}/teams/{team_slug}/teams",
  10628. "GET /projects/columns/{column_id}/cards",
  10629. "GET /projects/{project_id}/collaborators",
  10630. "GET /projects/{project_id}/columns",
  10631. "GET /repos/{org}/{repo}/actions/required_workflows",
  10632. "GET /repos/{owner}/{repo}/actions/artifacts",
  10633. "GET /repos/{owner}/{repo}/actions/caches",
  10634. "GET /repos/{owner}/{repo}/actions/organization-secrets",
  10635. "GET /repos/{owner}/{repo}/actions/organization-variables",
  10636. "GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs",
  10637. "GET /repos/{owner}/{repo}/actions/runners",
  10638. "GET /repos/{owner}/{repo}/actions/runs",
  10639. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
  10640. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs",
  10641. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
  10642. "GET /repos/{owner}/{repo}/actions/secrets",
  10643. "GET /repos/{owner}/{repo}/actions/variables",
  10644. "GET /repos/{owner}/{repo}/actions/workflows",
  10645. "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
  10646. "GET /repos/{owner}/{repo}/assignees",
  10647. "GET /repos/{owner}/{repo}/branches",
  10648. "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
  10649. "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
  10650. "GET /repos/{owner}/{repo}/code-scanning/alerts",
  10651. "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
  10652. "GET /repos/{owner}/{repo}/code-scanning/analyses",
  10653. "GET /repos/{owner}/{repo}/codespaces",
  10654. "GET /repos/{owner}/{repo}/codespaces/devcontainers",
  10655. "GET /repos/{owner}/{repo}/codespaces/secrets",
  10656. "GET /repos/{owner}/{repo}/collaborators",
  10657. "GET /repos/{owner}/{repo}/comments",
  10658. "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",
  10659. "GET /repos/{owner}/{repo}/commits",
  10660. "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments",
  10661. "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",
  10662. "GET /repos/{owner}/{repo}/commits/{ref}/check-runs",
  10663. "GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
  10664. "GET /repos/{owner}/{repo}/commits/{ref}/status",
  10665. "GET /repos/{owner}/{repo}/commits/{ref}/statuses",
  10666. "GET /repos/{owner}/{repo}/contributors",
  10667. "GET /repos/{owner}/{repo}/dependabot/alerts",
  10668. "GET /repos/{owner}/{repo}/dependabot/secrets",
  10669. "GET /repos/{owner}/{repo}/deployments",
  10670. "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
  10671. "GET /repos/{owner}/{repo}/environments",
  10672. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
  10673. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps",
  10674. "GET /repos/{owner}/{repo}/events",
  10675. "GET /repos/{owner}/{repo}/forks",
  10676. "GET /repos/{owner}/{repo}/hooks",
  10677. "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
  10678. "GET /repos/{owner}/{repo}/invitations",
  10679. "GET /repos/{owner}/{repo}/issues",
  10680. "GET /repos/{owner}/{repo}/issues/comments",
  10681. "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
  10682. "GET /repos/{owner}/{repo}/issues/events",
  10683. "GET /repos/{owner}/{repo}/issues/{issue_number}/comments",
  10684. "GET /repos/{owner}/{repo}/issues/{issue_number}/events",
  10685. "GET /repos/{owner}/{repo}/issues/{issue_number}/labels",
  10686. "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",
  10687. "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",
  10688. "GET /repos/{owner}/{repo}/keys",
  10689. "GET /repos/{owner}/{repo}/labels",
  10690. "GET /repos/{owner}/{repo}/milestones",
  10691. "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels",
  10692. "GET /repos/{owner}/{repo}/notifications",
  10693. "GET /repos/{owner}/{repo}/pages/builds",
  10694. "GET /repos/{owner}/{repo}/projects",
  10695. "GET /repos/{owner}/{repo}/pulls",
  10696. "GET /repos/{owner}/{repo}/pulls/comments",
  10697. "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
  10698. "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",
  10699. "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
  10700. "GET /repos/{owner}/{repo}/pulls/{pull_number}/files",
  10701. "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews",
  10702. "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
  10703. "GET /repos/{owner}/{repo}/releases",
  10704. "GET /repos/{owner}/{repo}/releases/{release_id}/assets",
  10705. "GET /repos/{owner}/{repo}/releases/{release_id}/reactions",
  10706. "GET /repos/{owner}/{repo}/secret-scanning/alerts",
  10707. "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
  10708. "GET /repos/{owner}/{repo}/security-advisories",
  10709. "GET /repos/{owner}/{repo}/stargazers",
  10710. "GET /repos/{owner}/{repo}/subscribers",
  10711. "GET /repos/{owner}/{repo}/tags",
  10712. "GET /repos/{owner}/{repo}/teams",
  10713. "GET /repos/{owner}/{repo}/topics",
  10714. "GET /repositories",
  10715. "GET /repositories/{repository_id}/environments/{environment_name}/secrets",
  10716. "GET /repositories/{repository_id}/environments/{environment_name}/variables",
  10717. "GET /search/code",
  10718. "GET /search/commits",
  10719. "GET /search/issues",
  10720. "GET /search/labels",
  10721. "GET /search/repositories",
  10722. "GET /search/topics",
  10723. "GET /search/users",
  10724. "GET /teams/{team_id}/discussions",
  10725. "GET /teams/{team_id}/discussions/{discussion_number}/comments",
  10726. "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
  10727. "GET /teams/{team_id}/discussions/{discussion_number}/reactions",
  10728. "GET /teams/{team_id}/invitations",
  10729. "GET /teams/{team_id}/members",
  10730. "GET /teams/{team_id}/projects",
  10731. "GET /teams/{team_id}/repos",
  10732. "GET /teams/{team_id}/teams",
  10733. "GET /user/blocks",
  10734. "GET /user/codespaces",
  10735. "GET /user/codespaces/secrets",
  10736. "GET /user/emails",
  10737. "GET /user/followers",
  10738. "GET /user/following",
  10739. "GET /user/gpg_keys",
  10740. "GET /user/installations",
  10741. "GET /user/installations/{installation_id}/repositories",
  10742. "GET /user/issues",
  10743. "GET /user/keys",
  10744. "GET /user/marketplace_purchases",
  10745. "GET /user/marketplace_purchases/stubbed",
  10746. "GET /user/memberships/orgs",
  10747. "GET /user/migrations",
  10748. "GET /user/migrations/{migration_id}/repositories",
  10749. "GET /user/orgs",
  10750. "GET /user/packages",
  10751. "GET /user/packages/{package_type}/{package_name}/versions",
  10752. "GET /user/public_emails",
  10753. "GET /user/repos",
  10754. "GET /user/repository_invitations",
  10755. "GET /user/social_accounts",
  10756. "GET /user/ssh_signing_keys",
  10757. "GET /user/starred",
  10758. "GET /user/subscriptions",
  10759. "GET /user/teams",
  10760. "GET /users",
  10761. "GET /users/{username}/events",
  10762. "GET /users/{username}/events/orgs/{org}",
  10763. "GET /users/{username}/events/public",
  10764. "GET /users/{username}/followers",
  10765. "GET /users/{username}/following",
  10766. "GET /users/{username}/gists",
  10767. "GET /users/{username}/gpg_keys",
  10768. "GET /users/{username}/keys",
  10769. "GET /users/{username}/orgs",
  10770. "GET /users/{username}/packages",
  10771. "GET /users/{username}/projects",
  10772. "GET /users/{username}/received_events",
  10773. "GET /users/{username}/received_events/public",
  10774. "GET /users/{username}/repos",
  10775. "GET /users/{username}/social_accounts",
  10776. "GET /users/{username}/ssh_signing_keys",
  10777. "GET /users/{username}/starred",
  10778. "GET /users/{username}/subscriptions"
  10779. ];
  10780. // pkg/dist-src/paginating-endpoints.js
  10781. function isPaginatingEndpoint(arg) {
  10782. if (typeof arg === "string") {
  10783. return paginatingEndpoints.includes(arg);
  10784. } else {
  10785. return false;
  10786. }
  10787. }
  10788. // pkg/dist-src/index.js
  10789. function paginateRest(octokit) {
  10790. return {
  10791. paginate: Object.assign(paginate.bind(null, octokit), {
  10792. iterator: iterator.bind(null, octokit)
  10793. })
  10794. };
  10795. }
  10796. paginateRest.VERSION = VERSION;
  10797. // Annotate the CommonJS export names for ESM import in node:
  10798. 0 && (0);
  10799. /***/ }),
  10800. /***/ 3044:
  10801. /***/ ((module) => {
  10802. "use strict";
  10803. var __defProp = Object.defineProperty;
  10804. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  10805. var __getOwnPropNames = Object.getOwnPropertyNames;
  10806. var __hasOwnProp = Object.prototype.hasOwnProperty;
  10807. var __export = (target, all) => {
  10808. for (var name in all)
  10809. __defProp(target, name, { get: all[name], enumerable: true });
  10810. };
  10811. var __copyProps = (to, from, except, desc) => {
  10812. if (from && typeof from === "object" || typeof from === "function") {
  10813. for (let key of __getOwnPropNames(from))
  10814. if (!__hasOwnProp.call(to, key) && key !== except)
  10815. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  10816. }
  10817. return to;
  10818. };
  10819. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  10820. // pkg/dist-src/index.js
  10821. var dist_src_exports = {};
  10822. __export(dist_src_exports, {
  10823. legacyRestEndpointMethods: () => legacyRestEndpointMethods,
  10824. restEndpointMethods: () => restEndpointMethods
  10825. });
  10826. module.exports = __toCommonJS(dist_src_exports);
  10827. // pkg/dist-src/version.js
  10828. var VERSION = "7.2.3";
  10829. // pkg/dist-src/generated/endpoints.js
  10830. var Endpoints = {
  10831. actions: {
  10832. addCustomLabelsToSelfHostedRunnerForOrg: [
  10833. "POST /orgs/{org}/actions/runners/{runner_id}/labels"
  10834. ],
  10835. addCustomLabelsToSelfHostedRunnerForRepo: [
  10836. "POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
  10837. ],
  10838. addSelectedRepoToOrgSecret: [
  10839. "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
  10840. ],
  10841. addSelectedRepoToOrgVariable: [
  10842. "PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
  10843. ],
  10844. addSelectedRepoToRequiredWorkflow: [
  10845. "PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
  10846. ],
  10847. approveWorkflowRun: [
  10848. "POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
  10849. ],
  10850. cancelWorkflowRun: [
  10851. "POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
  10852. ],
  10853. createEnvironmentVariable: [
  10854. "POST /repositories/{repository_id}/environments/{environment_name}/variables"
  10855. ],
  10856. createOrUpdateEnvironmentSecret: [
  10857. "PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
  10858. ],
  10859. createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
  10860. createOrUpdateRepoSecret: [
  10861. "PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
  10862. ],
  10863. createOrgVariable: ["POST /orgs/{org}/actions/variables"],
  10864. createRegistrationTokenForOrg: [
  10865. "POST /orgs/{org}/actions/runners/registration-token"
  10866. ],
  10867. createRegistrationTokenForRepo: [
  10868. "POST /repos/{owner}/{repo}/actions/runners/registration-token"
  10869. ],
  10870. createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
  10871. createRemoveTokenForRepo: [
  10872. "POST /repos/{owner}/{repo}/actions/runners/remove-token"
  10873. ],
  10874. createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
  10875. createRequiredWorkflow: ["POST /orgs/{org}/actions/required_workflows"],
  10876. createWorkflowDispatch: [
  10877. "POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
  10878. ],
  10879. deleteActionsCacheById: [
  10880. "DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
  10881. ],
  10882. deleteActionsCacheByKey: [
  10883. "DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
  10884. ],
  10885. deleteArtifact: [
  10886. "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
  10887. ],
  10888. deleteEnvironmentSecret: [
  10889. "DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
  10890. ],
  10891. deleteEnvironmentVariable: [
  10892. "DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
  10893. ],
  10894. deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
  10895. deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
  10896. deleteRepoSecret: [
  10897. "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
  10898. ],
  10899. deleteRepoVariable: [
  10900. "DELETE /repos/{owner}/{repo}/actions/variables/{name}"
  10901. ],
  10902. deleteRequiredWorkflow: [
  10903. "DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}"
  10904. ],
  10905. deleteSelfHostedRunnerFromOrg: [
  10906. "DELETE /orgs/{org}/actions/runners/{runner_id}"
  10907. ],
  10908. deleteSelfHostedRunnerFromRepo: [
  10909. "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
  10910. ],
  10911. deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
  10912. deleteWorkflowRunLogs: [
  10913. "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
  10914. ],
  10915. disableSelectedRepositoryGithubActionsOrganization: [
  10916. "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
  10917. ],
  10918. disableWorkflow: [
  10919. "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
  10920. ],
  10921. downloadArtifact: [
  10922. "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
  10923. ],
  10924. downloadJobLogsForWorkflowRun: [
  10925. "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
  10926. ],
  10927. downloadWorkflowRunAttemptLogs: [
  10928. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
  10929. ],
  10930. downloadWorkflowRunLogs: [
  10931. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
  10932. ],
  10933. enableSelectedRepositoryGithubActionsOrganization: [
  10934. "PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
  10935. ],
  10936. enableWorkflow: [
  10937. "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
  10938. ],
  10939. generateRunnerJitconfigForOrg: [
  10940. "POST /orgs/{org}/actions/runners/generate-jitconfig"
  10941. ],
  10942. generateRunnerJitconfigForRepo: [
  10943. "POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
  10944. ],
  10945. getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
  10946. getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
  10947. getActionsCacheUsageByRepoForOrg: [
  10948. "GET /orgs/{org}/actions/cache/usage-by-repository"
  10949. ],
  10950. getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
  10951. getAllowedActionsOrganization: [
  10952. "GET /orgs/{org}/actions/permissions/selected-actions"
  10953. ],
  10954. getAllowedActionsRepository: [
  10955. "GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
  10956. ],
  10957. getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
  10958. getEnvironmentPublicKey: [
  10959. "GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"
  10960. ],
  10961. getEnvironmentSecret: [
  10962. "GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
  10963. ],
  10964. getEnvironmentVariable: [
  10965. "GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
  10966. ],
  10967. getGithubActionsDefaultWorkflowPermissionsOrganization: [
  10968. "GET /orgs/{org}/actions/permissions/workflow"
  10969. ],
  10970. getGithubActionsDefaultWorkflowPermissionsRepository: [
  10971. "GET /repos/{owner}/{repo}/actions/permissions/workflow"
  10972. ],
  10973. getGithubActionsPermissionsOrganization: [
  10974. "GET /orgs/{org}/actions/permissions"
  10975. ],
  10976. getGithubActionsPermissionsRepository: [
  10977. "GET /repos/{owner}/{repo}/actions/permissions"
  10978. ],
  10979. getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
  10980. getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
  10981. getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
  10982. getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
  10983. getPendingDeploymentsForRun: [
  10984. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
  10985. ],
  10986. getRepoPermissions: [
  10987. "GET /repos/{owner}/{repo}/actions/permissions",
  10988. {},
  10989. { renamed: ["actions", "getGithubActionsPermissionsRepository"] }
  10990. ],
  10991. getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
  10992. getRepoRequiredWorkflow: [
  10993. "GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}"
  10994. ],
  10995. getRepoRequiredWorkflowUsage: [
  10996. "GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing"
  10997. ],
  10998. getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
  10999. getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
  11000. getRequiredWorkflow: [
  11001. "GET /orgs/{org}/actions/required_workflows/{required_workflow_id}"
  11002. ],
  11003. getReviewsForRun: [
  11004. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
  11005. ],
  11006. getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
  11007. getSelfHostedRunnerForRepo: [
  11008. "GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
  11009. ],
  11010. getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
  11011. getWorkflowAccessToRepository: [
  11012. "GET /repos/{owner}/{repo}/actions/permissions/access"
  11013. ],
  11014. getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
  11015. getWorkflowRunAttempt: [
  11016. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
  11017. ],
  11018. getWorkflowRunUsage: [
  11019. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
  11020. ],
  11021. getWorkflowUsage: [
  11022. "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
  11023. ],
  11024. listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
  11025. listEnvironmentSecrets: [
  11026. "GET /repositories/{repository_id}/environments/{environment_name}/secrets"
  11027. ],
  11028. listEnvironmentVariables: [
  11029. "GET /repositories/{repository_id}/environments/{environment_name}/variables"
  11030. ],
  11031. listJobsForWorkflowRun: [
  11032. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
  11033. ],
  11034. listJobsForWorkflowRunAttempt: [
  11035. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
  11036. ],
  11037. listLabelsForSelfHostedRunnerForOrg: [
  11038. "GET /orgs/{org}/actions/runners/{runner_id}/labels"
  11039. ],
  11040. listLabelsForSelfHostedRunnerForRepo: [
  11041. "GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
  11042. ],
  11043. listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
  11044. listOrgVariables: ["GET /orgs/{org}/actions/variables"],
  11045. listRepoOrganizationSecrets: [
  11046. "GET /repos/{owner}/{repo}/actions/organization-secrets"
  11047. ],
  11048. listRepoOrganizationVariables: [
  11049. "GET /repos/{owner}/{repo}/actions/organization-variables"
  11050. ],
  11051. listRepoRequiredWorkflows: [
  11052. "GET /repos/{org}/{repo}/actions/required_workflows"
  11053. ],
  11054. listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
  11055. listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
  11056. listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
  11057. listRequiredWorkflowRuns: [
  11058. "GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs"
  11059. ],
  11060. listRequiredWorkflows: ["GET /orgs/{org}/actions/required_workflows"],
  11061. listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
  11062. listRunnerApplicationsForRepo: [
  11063. "GET /repos/{owner}/{repo}/actions/runners/downloads"
  11064. ],
  11065. listSelectedReposForOrgSecret: [
  11066. "GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
  11067. ],
  11068. listSelectedReposForOrgVariable: [
  11069. "GET /orgs/{org}/actions/variables/{name}/repositories"
  11070. ],
  11071. listSelectedRepositoriesEnabledGithubActionsOrganization: [
  11072. "GET /orgs/{org}/actions/permissions/repositories"
  11073. ],
  11074. listSelectedRepositoriesRequiredWorkflow: [
  11075. "GET /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
  11076. ],
  11077. listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
  11078. listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
  11079. listWorkflowRunArtifacts: [
  11080. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
  11081. ],
  11082. listWorkflowRuns: [
  11083. "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
  11084. ],
  11085. listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
  11086. reRunJobForWorkflowRun: [
  11087. "POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
  11088. ],
  11089. reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
  11090. reRunWorkflowFailedJobs: [
  11091. "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
  11092. ],
  11093. removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
  11094. "DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
  11095. ],
  11096. removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
  11097. "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
  11098. ],
  11099. removeCustomLabelFromSelfHostedRunnerForOrg: [
  11100. "DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
  11101. ],
  11102. removeCustomLabelFromSelfHostedRunnerForRepo: [
  11103. "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
  11104. ],
  11105. removeSelectedRepoFromOrgSecret: [
  11106. "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
  11107. ],
  11108. removeSelectedRepoFromOrgVariable: [
  11109. "DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
  11110. ],
  11111. removeSelectedRepoFromRequiredWorkflow: [
  11112. "DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
  11113. ],
  11114. reviewCustomGatesForRun: [
  11115. "POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
  11116. ],
  11117. reviewPendingDeploymentsForRun: [
  11118. "POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
  11119. ],
  11120. setAllowedActionsOrganization: [
  11121. "PUT /orgs/{org}/actions/permissions/selected-actions"
  11122. ],
  11123. setAllowedActionsRepository: [
  11124. "PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
  11125. ],
  11126. setCustomLabelsForSelfHostedRunnerForOrg: [
  11127. "PUT /orgs/{org}/actions/runners/{runner_id}/labels"
  11128. ],
  11129. setCustomLabelsForSelfHostedRunnerForRepo: [
  11130. "PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
  11131. ],
  11132. setGithubActionsDefaultWorkflowPermissionsOrganization: [
  11133. "PUT /orgs/{org}/actions/permissions/workflow"
  11134. ],
  11135. setGithubActionsDefaultWorkflowPermissionsRepository: [
  11136. "PUT /repos/{owner}/{repo}/actions/permissions/workflow"
  11137. ],
  11138. setGithubActionsPermissionsOrganization: [
  11139. "PUT /orgs/{org}/actions/permissions"
  11140. ],
  11141. setGithubActionsPermissionsRepository: [
  11142. "PUT /repos/{owner}/{repo}/actions/permissions"
  11143. ],
  11144. setSelectedReposForOrgSecret: [
  11145. "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
  11146. ],
  11147. setSelectedReposForOrgVariable: [
  11148. "PUT /orgs/{org}/actions/variables/{name}/repositories"
  11149. ],
  11150. setSelectedReposToRequiredWorkflow: [
  11151. "PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
  11152. ],
  11153. setSelectedRepositoriesEnabledGithubActionsOrganization: [
  11154. "PUT /orgs/{org}/actions/permissions/repositories"
  11155. ],
  11156. setWorkflowAccessToRepository: [
  11157. "PUT /repos/{owner}/{repo}/actions/permissions/access"
  11158. ],
  11159. updateEnvironmentVariable: [
  11160. "PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
  11161. ],
  11162. updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
  11163. updateRepoVariable: [
  11164. "PATCH /repos/{owner}/{repo}/actions/variables/{name}"
  11165. ],
  11166. updateRequiredWorkflow: [
  11167. "PATCH /orgs/{org}/actions/required_workflows/{required_workflow_id}"
  11168. ]
  11169. },
  11170. activity: {
  11171. checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
  11172. deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
  11173. deleteThreadSubscription: [
  11174. "DELETE /notifications/threads/{thread_id}/subscription"
  11175. ],
  11176. getFeeds: ["GET /feeds"],
  11177. getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
  11178. getThread: ["GET /notifications/threads/{thread_id}"],
  11179. getThreadSubscriptionForAuthenticatedUser: [
  11180. "GET /notifications/threads/{thread_id}/subscription"
  11181. ],
  11182. listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
  11183. listNotificationsForAuthenticatedUser: ["GET /notifications"],
  11184. listOrgEventsForAuthenticatedUser: [
  11185. "GET /users/{username}/events/orgs/{org}"
  11186. ],
  11187. listPublicEvents: ["GET /events"],
  11188. listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
  11189. listPublicEventsForUser: ["GET /users/{username}/events/public"],
  11190. listPublicOrgEvents: ["GET /orgs/{org}/events"],
  11191. listReceivedEventsForUser: ["GET /users/{username}/received_events"],
  11192. listReceivedPublicEventsForUser: [
  11193. "GET /users/{username}/received_events/public"
  11194. ],
  11195. listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
  11196. listRepoNotificationsForAuthenticatedUser: [
  11197. "GET /repos/{owner}/{repo}/notifications"
  11198. ],
  11199. listReposStarredByAuthenticatedUser: ["GET /user/starred"],
  11200. listReposStarredByUser: ["GET /users/{username}/starred"],
  11201. listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
  11202. listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
  11203. listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
  11204. listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
  11205. markNotificationsAsRead: ["PUT /notifications"],
  11206. markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
  11207. markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
  11208. setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
  11209. setThreadSubscription: [
  11210. "PUT /notifications/threads/{thread_id}/subscription"
  11211. ],
  11212. starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
  11213. unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
  11214. },
  11215. apps: {
  11216. addRepoToInstallation: [
  11217. "PUT /user/installations/{installation_id}/repositories/{repository_id}",
  11218. {},
  11219. { renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
  11220. ],
  11221. addRepoToInstallationForAuthenticatedUser: [
  11222. "PUT /user/installations/{installation_id}/repositories/{repository_id}"
  11223. ],
  11224. checkToken: ["POST /applications/{client_id}/token"],
  11225. createFromManifest: ["POST /app-manifests/{code}/conversions"],
  11226. createInstallationAccessToken: [
  11227. "POST /app/installations/{installation_id}/access_tokens"
  11228. ],
  11229. deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
  11230. deleteInstallation: ["DELETE /app/installations/{installation_id}"],
  11231. deleteToken: ["DELETE /applications/{client_id}/token"],
  11232. getAuthenticated: ["GET /app"],
  11233. getBySlug: ["GET /apps/{app_slug}"],
  11234. getInstallation: ["GET /app/installations/{installation_id}"],
  11235. getOrgInstallation: ["GET /orgs/{org}/installation"],
  11236. getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
  11237. getSubscriptionPlanForAccount: [
  11238. "GET /marketplace_listing/accounts/{account_id}"
  11239. ],
  11240. getSubscriptionPlanForAccountStubbed: [
  11241. "GET /marketplace_listing/stubbed/accounts/{account_id}"
  11242. ],
  11243. getUserInstallation: ["GET /users/{username}/installation"],
  11244. getWebhookConfigForApp: ["GET /app/hook/config"],
  11245. getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
  11246. listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
  11247. listAccountsForPlanStubbed: [
  11248. "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
  11249. ],
  11250. listInstallationReposForAuthenticatedUser: [
  11251. "GET /user/installations/{installation_id}/repositories"
  11252. ],
  11253. listInstallationRequestsForAuthenticatedApp: [
  11254. "GET /app/installation-requests"
  11255. ],
  11256. listInstallations: ["GET /app/installations"],
  11257. listInstallationsForAuthenticatedUser: ["GET /user/installations"],
  11258. listPlans: ["GET /marketplace_listing/plans"],
  11259. listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
  11260. listReposAccessibleToInstallation: ["GET /installation/repositories"],
  11261. listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
  11262. listSubscriptionsForAuthenticatedUserStubbed: [
  11263. "GET /user/marketplace_purchases/stubbed"
  11264. ],
  11265. listWebhookDeliveries: ["GET /app/hook/deliveries"],
  11266. redeliverWebhookDelivery: [
  11267. "POST /app/hook/deliveries/{delivery_id}/attempts"
  11268. ],
  11269. removeRepoFromInstallation: [
  11270. "DELETE /user/installations/{installation_id}/repositories/{repository_id}",
  11271. {},
  11272. { renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
  11273. ],
  11274. removeRepoFromInstallationForAuthenticatedUser: [
  11275. "DELETE /user/installations/{installation_id}/repositories/{repository_id}"
  11276. ],
  11277. resetToken: ["PATCH /applications/{client_id}/token"],
  11278. revokeInstallationAccessToken: ["DELETE /installation/token"],
  11279. scopeToken: ["POST /applications/{client_id}/token/scoped"],
  11280. suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
  11281. unsuspendInstallation: [
  11282. "DELETE /app/installations/{installation_id}/suspended"
  11283. ],
  11284. updateWebhookConfigForApp: ["PATCH /app/hook/config"]
  11285. },
  11286. billing: {
  11287. getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
  11288. getGithubActionsBillingUser: [
  11289. "GET /users/{username}/settings/billing/actions"
  11290. ],
  11291. getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
  11292. getGithubPackagesBillingUser: [
  11293. "GET /users/{username}/settings/billing/packages"
  11294. ],
  11295. getSharedStorageBillingOrg: [
  11296. "GET /orgs/{org}/settings/billing/shared-storage"
  11297. ],
  11298. getSharedStorageBillingUser: [
  11299. "GET /users/{username}/settings/billing/shared-storage"
  11300. ]
  11301. },
  11302. checks: {
  11303. create: ["POST /repos/{owner}/{repo}/check-runs"],
  11304. createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
  11305. get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
  11306. getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
  11307. listAnnotations: [
  11308. "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
  11309. ],
  11310. listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
  11311. listForSuite: [
  11312. "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
  11313. ],
  11314. listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
  11315. rerequestRun: [
  11316. "POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
  11317. ],
  11318. rerequestSuite: [
  11319. "POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
  11320. ],
  11321. setSuitesPreferences: [
  11322. "PATCH /repos/{owner}/{repo}/check-suites/preferences"
  11323. ],
  11324. update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
  11325. },
  11326. codeScanning: {
  11327. deleteAnalysis: [
  11328. "DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
  11329. ],
  11330. getAlert: [
  11331. "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
  11332. {},
  11333. { renamedParameters: { alert_id: "alert_number" } }
  11334. ],
  11335. getAnalysis: [
  11336. "GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
  11337. ],
  11338. getCodeqlDatabase: [
  11339. "GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
  11340. ],
  11341. getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
  11342. getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
  11343. listAlertInstances: [
  11344. "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
  11345. ],
  11346. listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
  11347. listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
  11348. listAlertsInstances: [
  11349. "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
  11350. {},
  11351. { renamed: ["codeScanning", "listAlertInstances"] }
  11352. ],
  11353. listCodeqlDatabases: [
  11354. "GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
  11355. ],
  11356. listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
  11357. updateAlert: [
  11358. "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
  11359. ],
  11360. updateDefaultSetup: [
  11361. "PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
  11362. ],
  11363. uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
  11364. },
  11365. codesOfConduct: {
  11366. getAllCodesOfConduct: ["GET /codes_of_conduct"],
  11367. getConductCode: ["GET /codes_of_conduct/{key}"]
  11368. },
  11369. codespaces: {
  11370. addRepositoryForSecretForAuthenticatedUser: [
  11371. "PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
  11372. ],
  11373. addSelectedRepoToOrgSecret: [
  11374. "PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
  11375. ],
  11376. codespaceMachinesForAuthenticatedUser: [
  11377. "GET /user/codespaces/{codespace_name}/machines"
  11378. ],
  11379. createForAuthenticatedUser: ["POST /user/codespaces"],
  11380. createOrUpdateOrgSecret: [
  11381. "PUT /orgs/{org}/codespaces/secrets/{secret_name}"
  11382. ],
  11383. createOrUpdateRepoSecret: [
  11384. "PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
  11385. ],
  11386. createOrUpdateSecretForAuthenticatedUser: [
  11387. "PUT /user/codespaces/secrets/{secret_name}"
  11388. ],
  11389. createWithPrForAuthenticatedUser: [
  11390. "POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
  11391. ],
  11392. createWithRepoForAuthenticatedUser: [
  11393. "POST /repos/{owner}/{repo}/codespaces"
  11394. ],
  11395. deleteCodespacesBillingUsers: [
  11396. "DELETE /orgs/{org}/codespaces/billing/selected_users"
  11397. ],
  11398. deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
  11399. deleteFromOrganization: [
  11400. "DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
  11401. ],
  11402. deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
  11403. deleteRepoSecret: [
  11404. "DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
  11405. ],
  11406. deleteSecretForAuthenticatedUser: [
  11407. "DELETE /user/codespaces/secrets/{secret_name}"
  11408. ],
  11409. exportForAuthenticatedUser: [
  11410. "POST /user/codespaces/{codespace_name}/exports"
  11411. ],
  11412. getCodespacesForUserInOrg: [
  11413. "GET /orgs/{org}/members/{username}/codespaces"
  11414. ],
  11415. getExportDetailsForAuthenticatedUser: [
  11416. "GET /user/codespaces/{codespace_name}/exports/{export_id}"
  11417. ],
  11418. getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
  11419. getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
  11420. getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
  11421. getPublicKeyForAuthenticatedUser: [
  11422. "GET /user/codespaces/secrets/public-key"
  11423. ],
  11424. getRepoPublicKey: [
  11425. "GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
  11426. ],
  11427. getRepoSecret: [
  11428. "GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
  11429. ],
  11430. getSecretForAuthenticatedUser: [
  11431. "GET /user/codespaces/secrets/{secret_name}"
  11432. ],
  11433. listDevcontainersInRepositoryForAuthenticatedUser: [
  11434. "GET /repos/{owner}/{repo}/codespaces/devcontainers"
  11435. ],
  11436. listForAuthenticatedUser: ["GET /user/codespaces"],
  11437. listInOrganization: [
  11438. "GET /orgs/{org}/codespaces",
  11439. {},
  11440. { renamedParameters: { org_id: "org" } }
  11441. ],
  11442. listInRepositoryForAuthenticatedUser: [
  11443. "GET /repos/{owner}/{repo}/codespaces"
  11444. ],
  11445. listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
  11446. listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
  11447. listRepositoriesForSecretForAuthenticatedUser: [
  11448. "GET /user/codespaces/secrets/{secret_name}/repositories"
  11449. ],
  11450. listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
  11451. listSelectedReposForOrgSecret: [
  11452. "GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
  11453. ],
  11454. preFlightWithRepoForAuthenticatedUser: [
  11455. "GET /repos/{owner}/{repo}/codespaces/new"
  11456. ],
  11457. publishForAuthenticatedUser: [
  11458. "POST /user/codespaces/{codespace_name}/publish"
  11459. ],
  11460. removeRepositoryForSecretForAuthenticatedUser: [
  11461. "DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
  11462. ],
  11463. removeSelectedRepoFromOrgSecret: [
  11464. "DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
  11465. ],
  11466. repoMachinesForAuthenticatedUser: [
  11467. "GET /repos/{owner}/{repo}/codespaces/machines"
  11468. ],
  11469. setCodespacesBilling: ["PUT /orgs/{org}/codespaces/billing"],
  11470. setCodespacesBillingUsers: [
  11471. "POST /orgs/{org}/codespaces/billing/selected_users"
  11472. ],
  11473. setRepositoriesForSecretForAuthenticatedUser: [
  11474. "PUT /user/codespaces/secrets/{secret_name}/repositories"
  11475. ],
  11476. setSelectedReposForOrgSecret: [
  11477. "PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
  11478. ],
  11479. startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
  11480. stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
  11481. stopInOrganization: [
  11482. "POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
  11483. ],
  11484. updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
  11485. },
  11486. dependabot: {
  11487. addSelectedRepoToOrgSecret: [
  11488. "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
  11489. ],
  11490. createOrUpdateOrgSecret: [
  11491. "PUT /orgs/{org}/dependabot/secrets/{secret_name}"
  11492. ],
  11493. createOrUpdateRepoSecret: [
  11494. "PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
  11495. ],
  11496. deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
  11497. deleteRepoSecret: [
  11498. "DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
  11499. ],
  11500. getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
  11501. getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
  11502. getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
  11503. getRepoPublicKey: [
  11504. "GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
  11505. ],
  11506. getRepoSecret: [
  11507. "GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
  11508. ],
  11509. listAlertsForEnterprise: [
  11510. "GET /enterprises/{enterprise}/dependabot/alerts"
  11511. ],
  11512. listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
  11513. listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
  11514. listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
  11515. listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
  11516. listSelectedReposForOrgSecret: [
  11517. "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
  11518. ],
  11519. removeSelectedRepoFromOrgSecret: [
  11520. "DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
  11521. ],
  11522. setSelectedReposForOrgSecret: [
  11523. "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
  11524. ],
  11525. updateAlert: [
  11526. "PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
  11527. ]
  11528. },
  11529. dependencyGraph: {
  11530. createRepositorySnapshot: [
  11531. "POST /repos/{owner}/{repo}/dependency-graph/snapshots"
  11532. ],
  11533. diffRange: [
  11534. "GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
  11535. ],
  11536. exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
  11537. },
  11538. emojis: { get: ["GET /emojis"] },
  11539. gists: {
  11540. checkIsStarred: ["GET /gists/{gist_id}/star"],
  11541. create: ["POST /gists"],
  11542. createComment: ["POST /gists/{gist_id}/comments"],
  11543. delete: ["DELETE /gists/{gist_id}"],
  11544. deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
  11545. fork: ["POST /gists/{gist_id}/forks"],
  11546. get: ["GET /gists/{gist_id}"],
  11547. getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
  11548. getRevision: ["GET /gists/{gist_id}/{sha}"],
  11549. list: ["GET /gists"],
  11550. listComments: ["GET /gists/{gist_id}/comments"],
  11551. listCommits: ["GET /gists/{gist_id}/commits"],
  11552. listForUser: ["GET /users/{username}/gists"],
  11553. listForks: ["GET /gists/{gist_id}/forks"],
  11554. listPublic: ["GET /gists/public"],
  11555. listStarred: ["GET /gists/starred"],
  11556. star: ["PUT /gists/{gist_id}/star"],
  11557. unstar: ["DELETE /gists/{gist_id}/star"],
  11558. update: ["PATCH /gists/{gist_id}"],
  11559. updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
  11560. },
  11561. git: {
  11562. createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
  11563. createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
  11564. createRef: ["POST /repos/{owner}/{repo}/git/refs"],
  11565. createTag: ["POST /repos/{owner}/{repo}/git/tags"],
  11566. createTree: ["POST /repos/{owner}/{repo}/git/trees"],
  11567. deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
  11568. getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
  11569. getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
  11570. getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
  11571. getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
  11572. getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
  11573. listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
  11574. updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
  11575. },
  11576. gitignore: {
  11577. getAllTemplates: ["GET /gitignore/templates"],
  11578. getTemplate: ["GET /gitignore/templates/{name}"]
  11579. },
  11580. interactions: {
  11581. getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
  11582. getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
  11583. getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
  11584. getRestrictionsForYourPublicRepos: [
  11585. "GET /user/interaction-limits",
  11586. {},
  11587. { renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
  11588. ],
  11589. removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
  11590. removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
  11591. removeRestrictionsForRepo: [
  11592. "DELETE /repos/{owner}/{repo}/interaction-limits"
  11593. ],
  11594. removeRestrictionsForYourPublicRepos: [
  11595. "DELETE /user/interaction-limits",
  11596. {},
  11597. { renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
  11598. ],
  11599. setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
  11600. setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
  11601. setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
  11602. setRestrictionsForYourPublicRepos: [
  11603. "PUT /user/interaction-limits",
  11604. {},
  11605. { renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
  11606. ]
  11607. },
  11608. issues: {
  11609. addAssignees: [
  11610. "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
  11611. ],
  11612. addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
  11613. checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
  11614. checkUserCanBeAssignedToIssue: [
  11615. "GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
  11616. ],
  11617. create: ["POST /repos/{owner}/{repo}/issues"],
  11618. createComment: [
  11619. "POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
  11620. ],
  11621. createLabel: ["POST /repos/{owner}/{repo}/labels"],
  11622. createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
  11623. deleteComment: [
  11624. "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
  11625. ],
  11626. deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
  11627. deleteMilestone: [
  11628. "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
  11629. ],
  11630. get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
  11631. getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
  11632. getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
  11633. getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
  11634. getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
  11635. list: ["GET /issues"],
  11636. listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
  11637. listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
  11638. listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
  11639. listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
  11640. listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
  11641. listEventsForTimeline: [
  11642. "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
  11643. ],
  11644. listForAuthenticatedUser: ["GET /user/issues"],
  11645. listForOrg: ["GET /orgs/{org}/issues"],
  11646. listForRepo: ["GET /repos/{owner}/{repo}/issues"],
  11647. listLabelsForMilestone: [
  11648. "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
  11649. ],
  11650. listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
  11651. listLabelsOnIssue: [
  11652. "GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
  11653. ],
  11654. listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
  11655. lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
  11656. removeAllLabels: [
  11657. "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
  11658. ],
  11659. removeAssignees: [
  11660. "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
  11661. ],
  11662. removeLabel: [
  11663. "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
  11664. ],
  11665. setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
  11666. unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
  11667. update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
  11668. updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
  11669. updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
  11670. updateMilestone: [
  11671. "PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
  11672. ]
  11673. },
  11674. licenses: {
  11675. get: ["GET /licenses/{license}"],
  11676. getAllCommonlyUsed: ["GET /licenses"],
  11677. getForRepo: ["GET /repos/{owner}/{repo}/license"]
  11678. },
  11679. markdown: {
  11680. render: ["POST /markdown"],
  11681. renderRaw: [
  11682. "POST /markdown/raw",
  11683. { headers: { "content-type": "text/plain; charset=utf-8" } }
  11684. ]
  11685. },
  11686. meta: {
  11687. get: ["GET /meta"],
  11688. getAllVersions: ["GET /versions"],
  11689. getOctocat: ["GET /octocat"],
  11690. getZen: ["GET /zen"],
  11691. root: ["GET /"]
  11692. },
  11693. migrations: {
  11694. cancelImport: ["DELETE /repos/{owner}/{repo}/import"],
  11695. deleteArchiveForAuthenticatedUser: [
  11696. "DELETE /user/migrations/{migration_id}/archive"
  11697. ],
  11698. deleteArchiveForOrg: [
  11699. "DELETE /orgs/{org}/migrations/{migration_id}/archive"
  11700. ],
  11701. downloadArchiveForOrg: [
  11702. "GET /orgs/{org}/migrations/{migration_id}/archive"
  11703. ],
  11704. getArchiveForAuthenticatedUser: [
  11705. "GET /user/migrations/{migration_id}/archive"
  11706. ],
  11707. getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"],
  11708. getImportStatus: ["GET /repos/{owner}/{repo}/import"],
  11709. getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"],
  11710. getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
  11711. getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
  11712. listForAuthenticatedUser: ["GET /user/migrations"],
  11713. listForOrg: ["GET /orgs/{org}/migrations"],
  11714. listReposForAuthenticatedUser: [
  11715. "GET /user/migrations/{migration_id}/repositories"
  11716. ],
  11717. listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
  11718. listReposForUser: [
  11719. "GET /user/migrations/{migration_id}/repositories",
  11720. {},
  11721. { renamed: ["migrations", "listReposForAuthenticatedUser"] }
  11722. ],
  11723. mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],
  11724. setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"],
  11725. startForAuthenticatedUser: ["POST /user/migrations"],
  11726. startForOrg: ["POST /orgs/{org}/migrations"],
  11727. startImport: ["PUT /repos/{owner}/{repo}/import"],
  11728. unlockRepoForAuthenticatedUser: [
  11729. "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
  11730. ],
  11731. unlockRepoForOrg: [
  11732. "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
  11733. ],
  11734. updateImport: ["PATCH /repos/{owner}/{repo}/import"]
  11735. },
  11736. orgs: {
  11737. addSecurityManagerTeam: [
  11738. "PUT /orgs/{org}/security-managers/teams/{team_slug}"
  11739. ],
  11740. blockUser: ["PUT /orgs/{org}/blocks/{username}"],
  11741. cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
  11742. checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
  11743. checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
  11744. checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
  11745. convertMemberToOutsideCollaborator: [
  11746. "PUT /orgs/{org}/outside_collaborators/{username}"
  11747. ],
  11748. createInvitation: ["POST /orgs/{org}/invitations"],
  11749. createWebhook: ["POST /orgs/{org}/hooks"],
  11750. delete: ["DELETE /orgs/{org}"],
  11751. deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
  11752. enableOrDisableSecurityProductOnAllOrgRepos: [
  11753. "POST /orgs/{org}/{security_product}/{enablement}"
  11754. ],
  11755. get: ["GET /orgs/{org}"],
  11756. getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
  11757. getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
  11758. getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
  11759. getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
  11760. getWebhookDelivery: [
  11761. "GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
  11762. ],
  11763. list: ["GET /organizations"],
  11764. listAppInstallations: ["GET /orgs/{org}/installations"],
  11765. listBlockedUsers: ["GET /orgs/{org}/blocks"],
  11766. listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
  11767. listForAuthenticatedUser: ["GET /user/orgs"],
  11768. listForUser: ["GET /users/{username}/orgs"],
  11769. listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
  11770. listMembers: ["GET /orgs/{org}/members"],
  11771. listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
  11772. listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
  11773. listPatGrantRepositories: [
  11774. "GET /organizations/{org}/personal-access-tokens/{pat_id}/repositories"
  11775. ],
  11776. listPatGrantRequestRepositories: [
  11777. "GET /organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories"
  11778. ],
  11779. listPatGrantRequests: [
  11780. "GET /organizations/{org}/personal-access-token-requests"
  11781. ],
  11782. listPatGrants: ["GET /organizations/{org}/personal-access-tokens"],
  11783. listPendingInvitations: ["GET /orgs/{org}/invitations"],
  11784. listPublicMembers: ["GET /orgs/{org}/public_members"],
  11785. listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"],
  11786. listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
  11787. listWebhooks: ["GET /orgs/{org}/hooks"],
  11788. pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
  11789. redeliverWebhookDelivery: [
  11790. "POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
  11791. ],
  11792. removeMember: ["DELETE /orgs/{org}/members/{username}"],
  11793. removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
  11794. removeOutsideCollaborator: [
  11795. "DELETE /orgs/{org}/outside_collaborators/{username}"
  11796. ],
  11797. removePublicMembershipForAuthenticatedUser: [
  11798. "DELETE /orgs/{org}/public_members/{username}"
  11799. ],
  11800. removeSecurityManagerTeam: [
  11801. "DELETE /orgs/{org}/security-managers/teams/{team_slug}"
  11802. ],
  11803. reviewPatGrantRequest: [
  11804. "POST /organizations/{org}/personal-access-token-requests/{pat_request_id}"
  11805. ],
  11806. reviewPatGrantRequestsInBulk: [
  11807. "POST /organizations/{org}/personal-access-token-requests"
  11808. ],
  11809. setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
  11810. setPublicMembershipForAuthenticatedUser: [
  11811. "PUT /orgs/{org}/public_members/{username}"
  11812. ],
  11813. unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
  11814. update: ["PATCH /orgs/{org}"],
  11815. updateMembershipForAuthenticatedUser: [
  11816. "PATCH /user/memberships/orgs/{org}"
  11817. ],
  11818. updatePatAccess: [
  11819. "POST /organizations/{org}/personal-access-tokens/{pat_id}"
  11820. ],
  11821. updatePatAccesses: ["POST /organizations/{org}/personal-access-tokens"],
  11822. updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
  11823. updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
  11824. },
  11825. packages: {
  11826. deletePackageForAuthenticatedUser: [
  11827. "DELETE /user/packages/{package_type}/{package_name}"
  11828. ],
  11829. deletePackageForOrg: [
  11830. "DELETE /orgs/{org}/packages/{package_type}/{package_name}"
  11831. ],
  11832. deletePackageForUser: [
  11833. "DELETE /users/{username}/packages/{package_type}/{package_name}"
  11834. ],
  11835. deletePackageVersionForAuthenticatedUser: [
  11836. "DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
  11837. ],
  11838. deletePackageVersionForOrg: [
  11839. "DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
  11840. ],
  11841. deletePackageVersionForUser: [
  11842. "DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
  11843. ],
  11844. getAllPackageVersionsForAPackageOwnedByAnOrg: [
  11845. "GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
  11846. {},
  11847. { renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
  11848. ],
  11849. getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
  11850. "GET /user/packages/{package_type}/{package_name}/versions",
  11851. {},
  11852. {
  11853. renamed: [
  11854. "packages",
  11855. "getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
  11856. ]
  11857. }
  11858. ],
  11859. getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
  11860. "GET /user/packages/{package_type}/{package_name}/versions"
  11861. ],
  11862. getAllPackageVersionsForPackageOwnedByOrg: [
  11863. "GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
  11864. ],
  11865. getAllPackageVersionsForPackageOwnedByUser: [
  11866. "GET /users/{username}/packages/{package_type}/{package_name}/versions"
  11867. ],
  11868. getPackageForAuthenticatedUser: [
  11869. "GET /user/packages/{package_type}/{package_name}"
  11870. ],
  11871. getPackageForOrganization: [
  11872. "GET /orgs/{org}/packages/{package_type}/{package_name}"
  11873. ],
  11874. getPackageForUser: [
  11875. "GET /users/{username}/packages/{package_type}/{package_name}"
  11876. ],
  11877. getPackageVersionForAuthenticatedUser: [
  11878. "GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
  11879. ],
  11880. getPackageVersionForOrganization: [
  11881. "GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
  11882. ],
  11883. getPackageVersionForUser: [
  11884. "GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
  11885. ],
  11886. listDockerMigrationConflictingPackagesForAuthenticatedUser: [
  11887. "GET /user/docker/conflicts"
  11888. ],
  11889. listDockerMigrationConflictingPackagesForOrganization: [
  11890. "GET /orgs/{org}/docker/conflicts"
  11891. ],
  11892. listDockerMigrationConflictingPackagesForUser: [
  11893. "GET /users/{username}/docker/conflicts"
  11894. ],
  11895. listPackagesForAuthenticatedUser: ["GET /user/packages"],
  11896. listPackagesForOrganization: ["GET /orgs/{org}/packages"],
  11897. listPackagesForUser: ["GET /users/{username}/packages"],
  11898. restorePackageForAuthenticatedUser: [
  11899. "POST /user/packages/{package_type}/{package_name}/restore{?token}"
  11900. ],
  11901. restorePackageForOrg: [
  11902. "POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
  11903. ],
  11904. restorePackageForUser: [
  11905. "POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
  11906. ],
  11907. restorePackageVersionForAuthenticatedUser: [
  11908. "POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
  11909. ],
  11910. restorePackageVersionForOrg: [
  11911. "POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
  11912. ],
  11913. restorePackageVersionForUser: [
  11914. "POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
  11915. ]
  11916. },
  11917. projects: {
  11918. addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
  11919. createCard: ["POST /projects/columns/{column_id}/cards"],
  11920. createColumn: ["POST /projects/{project_id}/columns"],
  11921. createForAuthenticatedUser: ["POST /user/projects"],
  11922. createForOrg: ["POST /orgs/{org}/projects"],
  11923. createForRepo: ["POST /repos/{owner}/{repo}/projects"],
  11924. delete: ["DELETE /projects/{project_id}"],
  11925. deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
  11926. deleteColumn: ["DELETE /projects/columns/{column_id}"],
  11927. get: ["GET /projects/{project_id}"],
  11928. getCard: ["GET /projects/columns/cards/{card_id}"],
  11929. getColumn: ["GET /projects/columns/{column_id}"],
  11930. getPermissionForUser: [
  11931. "GET /projects/{project_id}/collaborators/{username}/permission"
  11932. ],
  11933. listCards: ["GET /projects/columns/{column_id}/cards"],
  11934. listCollaborators: ["GET /projects/{project_id}/collaborators"],
  11935. listColumns: ["GET /projects/{project_id}/columns"],
  11936. listForOrg: ["GET /orgs/{org}/projects"],
  11937. listForRepo: ["GET /repos/{owner}/{repo}/projects"],
  11938. listForUser: ["GET /users/{username}/projects"],
  11939. moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
  11940. moveColumn: ["POST /projects/columns/{column_id}/moves"],
  11941. removeCollaborator: [
  11942. "DELETE /projects/{project_id}/collaborators/{username}"
  11943. ],
  11944. update: ["PATCH /projects/{project_id}"],
  11945. updateCard: ["PATCH /projects/columns/cards/{card_id}"],
  11946. updateColumn: ["PATCH /projects/columns/{column_id}"]
  11947. },
  11948. pulls: {
  11949. checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
  11950. create: ["POST /repos/{owner}/{repo}/pulls"],
  11951. createReplyForReviewComment: [
  11952. "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
  11953. ],
  11954. createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
  11955. createReviewComment: [
  11956. "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
  11957. ],
  11958. deletePendingReview: [
  11959. "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
  11960. ],
  11961. deleteReviewComment: [
  11962. "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
  11963. ],
  11964. dismissReview: [
  11965. "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
  11966. ],
  11967. get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
  11968. getReview: [
  11969. "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
  11970. ],
  11971. getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
  11972. list: ["GET /repos/{owner}/{repo}/pulls"],
  11973. listCommentsForReview: [
  11974. "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
  11975. ],
  11976. listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
  11977. listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
  11978. listRequestedReviewers: [
  11979. "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
  11980. ],
  11981. listReviewComments: [
  11982. "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
  11983. ],
  11984. listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
  11985. listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
  11986. merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
  11987. removeRequestedReviewers: [
  11988. "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
  11989. ],
  11990. requestReviewers: [
  11991. "POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
  11992. ],
  11993. submitReview: [
  11994. "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
  11995. ],
  11996. update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
  11997. updateBranch: [
  11998. "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
  11999. ],
  12000. updateReview: [
  12001. "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
  12002. ],
  12003. updateReviewComment: [
  12004. "PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
  12005. ]
  12006. },
  12007. rateLimit: { get: ["GET /rate_limit"] },
  12008. reactions: {
  12009. createForCommitComment: [
  12010. "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
  12011. ],
  12012. createForIssue: [
  12013. "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
  12014. ],
  12015. createForIssueComment: [
  12016. "POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
  12017. ],
  12018. createForPullRequestReviewComment: [
  12019. "POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
  12020. ],
  12021. createForRelease: [
  12022. "POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
  12023. ],
  12024. createForTeamDiscussionCommentInOrg: [
  12025. "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
  12026. ],
  12027. createForTeamDiscussionInOrg: [
  12028. "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
  12029. ],
  12030. deleteForCommitComment: [
  12031. "DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
  12032. ],
  12033. deleteForIssue: [
  12034. "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
  12035. ],
  12036. deleteForIssueComment: [
  12037. "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
  12038. ],
  12039. deleteForPullRequestComment: [
  12040. "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
  12041. ],
  12042. deleteForRelease: [
  12043. "DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
  12044. ],
  12045. deleteForTeamDiscussion: [
  12046. "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
  12047. ],
  12048. deleteForTeamDiscussionComment: [
  12049. "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
  12050. ],
  12051. listForCommitComment: [
  12052. "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
  12053. ],
  12054. listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
  12055. listForIssueComment: [
  12056. "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
  12057. ],
  12058. listForPullRequestReviewComment: [
  12059. "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
  12060. ],
  12061. listForRelease: [
  12062. "GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
  12063. ],
  12064. listForTeamDiscussionCommentInOrg: [
  12065. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
  12066. ],
  12067. listForTeamDiscussionInOrg: [
  12068. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
  12069. ]
  12070. },
  12071. repos: {
  12072. acceptInvitation: [
  12073. "PATCH /user/repository_invitations/{invitation_id}",
  12074. {},
  12075. { renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
  12076. ],
  12077. acceptInvitationForAuthenticatedUser: [
  12078. "PATCH /user/repository_invitations/{invitation_id}"
  12079. ],
  12080. addAppAccessRestrictions: [
  12081. "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
  12082. {},
  12083. { mapToData: "apps" }
  12084. ],
  12085. addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
  12086. addStatusCheckContexts: [
  12087. "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
  12088. {},
  12089. { mapToData: "contexts" }
  12090. ],
  12091. addTeamAccessRestrictions: [
  12092. "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
  12093. {},
  12094. { mapToData: "teams" }
  12095. ],
  12096. addUserAccessRestrictions: [
  12097. "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
  12098. {},
  12099. { mapToData: "users" }
  12100. ],
  12101. checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
  12102. checkVulnerabilityAlerts: [
  12103. "GET /repos/{owner}/{repo}/vulnerability-alerts"
  12104. ],
  12105. codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
  12106. compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
  12107. compareCommitsWithBasehead: [
  12108. "GET /repos/{owner}/{repo}/compare/{basehead}"
  12109. ],
  12110. createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
  12111. createCommitComment: [
  12112. "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
  12113. ],
  12114. createCommitSignatureProtection: [
  12115. "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
  12116. ],
  12117. createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
  12118. createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
  12119. createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
  12120. createDeploymentBranchPolicy: [
  12121. "POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
  12122. ],
  12123. createDeploymentProtectionRule: [
  12124. "POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
  12125. ],
  12126. createDeploymentStatus: [
  12127. "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
  12128. ],
  12129. createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
  12130. createForAuthenticatedUser: ["POST /user/repos"],
  12131. createFork: ["POST /repos/{owner}/{repo}/forks"],
  12132. createInOrg: ["POST /orgs/{org}/repos"],
  12133. createOrUpdateEnvironment: [
  12134. "PUT /repos/{owner}/{repo}/environments/{environment_name}"
  12135. ],
  12136. createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
  12137. createOrgRuleset: ["POST /orgs/{org}/rulesets"],
  12138. createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployment"],
  12139. createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
  12140. createRelease: ["POST /repos/{owner}/{repo}/releases"],
  12141. createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
  12142. createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
  12143. createUsingTemplate: [
  12144. "POST /repos/{template_owner}/{template_repo}/generate"
  12145. ],
  12146. createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
  12147. declineInvitation: [
  12148. "DELETE /user/repository_invitations/{invitation_id}",
  12149. {},
  12150. { renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
  12151. ],
  12152. declineInvitationForAuthenticatedUser: [
  12153. "DELETE /user/repository_invitations/{invitation_id}"
  12154. ],
  12155. delete: ["DELETE /repos/{owner}/{repo}"],
  12156. deleteAccessRestrictions: [
  12157. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
  12158. ],
  12159. deleteAdminBranchProtection: [
  12160. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
  12161. ],
  12162. deleteAnEnvironment: [
  12163. "DELETE /repos/{owner}/{repo}/environments/{environment_name}"
  12164. ],
  12165. deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
  12166. deleteBranchProtection: [
  12167. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
  12168. ],
  12169. deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
  12170. deleteCommitSignatureProtection: [
  12171. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
  12172. ],
  12173. deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
  12174. deleteDeployment: [
  12175. "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
  12176. ],
  12177. deleteDeploymentBranchPolicy: [
  12178. "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
  12179. ],
  12180. deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
  12181. deleteInvitation: [
  12182. "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
  12183. ],
  12184. deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
  12185. deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
  12186. deletePullRequestReviewProtection: [
  12187. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
  12188. ],
  12189. deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
  12190. deleteReleaseAsset: [
  12191. "DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
  12192. ],
  12193. deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
  12194. deleteTagProtection: [
  12195. "DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"
  12196. ],
  12197. deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
  12198. disableAutomatedSecurityFixes: [
  12199. "DELETE /repos/{owner}/{repo}/automated-security-fixes"
  12200. ],
  12201. disableDeploymentProtectionRule: [
  12202. "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
  12203. ],
  12204. disableLfsForRepo: ["DELETE /repos/{owner}/{repo}/lfs"],
  12205. disableVulnerabilityAlerts: [
  12206. "DELETE /repos/{owner}/{repo}/vulnerability-alerts"
  12207. ],
  12208. downloadArchive: [
  12209. "GET /repos/{owner}/{repo}/zipball/{ref}",
  12210. {},
  12211. { renamed: ["repos", "downloadZipballArchive"] }
  12212. ],
  12213. downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
  12214. downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
  12215. enableAutomatedSecurityFixes: [
  12216. "PUT /repos/{owner}/{repo}/automated-security-fixes"
  12217. ],
  12218. enableLfsForRepo: ["PUT /repos/{owner}/{repo}/lfs"],
  12219. enableVulnerabilityAlerts: [
  12220. "PUT /repos/{owner}/{repo}/vulnerability-alerts"
  12221. ],
  12222. generateReleaseNotes: [
  12223. "POST /repos/{owner}/{repo}/releases/generate-notes"
  12224. ],
  12225. get: ["GET /repos/{owner}/{repo}"],
  12226. getAccessRestrictions: [
  12227. "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
  12228. ],
  12229. getAdminBranchProtection: [
  12230. "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
  12231. ],
  12232. getAllDeploymentProtectionRules: [
  12233. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
  12234. ],
  12235. getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
  12236. getAllStatusCheckContexts: [
  12237. "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
  12238. ],
  12239. getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
  12240. getAppsWithAccessToProtectedBranch: [
  12241. "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
  12242. ],
  12243. getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
  12244. getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
  12245. getBranchProtection: [
  12246. "GET /repos/{owner}/{repo}/branches/{branch}/protection"
  12247. ],
  12248. getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
  12249. getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
  12250. getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
  12251. getCollaboratorPermissionLevel: [
  12252. "GET /repos/{owner}/{repo}/collaborators/{username}/permission"
  12253. ],
  12254. getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
  12255. getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
  12256. getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
  12257. getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
  12258. getCommitSignatureProtection: [
  12259. "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
  12260. ],
  12261. getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
  12262. getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
  12263. getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
  12264. getCustomDeploymentProtectionRule: [
  12265. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
  12266. ],
  12267. getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
  12268. getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
  12269. getDeploymentBranchPolicy: [
  12270. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
  12271. ],
  12272. getDeploymentStatus: [
  12273. "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
  12274. ],
  12275. getEnvironment: [
  12276. "GET /repos/{owner}/{repo}/environments/{environment_name}"
  12277. ],
  12278. getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
  12279. getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
  12280. getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
  12281. getOrgRulesets: ["GET /orgs/{org}/rulesets"],
  12282. getPages: ["GET /repos/{owner}/{repo}/pages"],
  12283. getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
  12284. getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
  12285. getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
  12286. getPullRequestReviewProtection: [
  12287. "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
  12288. ],
  12289. getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
  12290. getReadme: ["GET /repos/{owner}/{repo}/readme"],
  12291. getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
  12292. getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
  12293. getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
  12294. getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
  12295. getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
  12296. getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
  12297. getStatusChecksProtection: [
  12298. "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
  12299. ],
  12300. getTeamsWithAccessToProtectedBranch: [
  12301. "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
  12302. ],
  12303. getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
  12304. getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
  12305. getUsersWithAccessToProtectedBranch: [
  12306. "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
  12307. ],
  12308. getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
  12309. getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
  12310. getWebhookConfigForRepo: [
  12311. "GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
  12312. ],
  12313. getWebhookDelivery: [
  12314. "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
  12315. ],
  12316. listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
  12317. listBranches: ["GET /repos/{owner}/{repo}/branches"],
  12318. listBranchesForHeadCommit: [
  12319. "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
  12320. ],
  12321. listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
  12322. listCommentsForCommit: [
  12323. "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
  12324. ],
  12325. listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
  12326. listCommitStatusesForRef: [
  12327. "GET /repos/{owner}/{repo}/commits/{ref}/statuses"
  12328. ],
  12329. listCommits: ["GET /repos/{owner}/{repo}/commits"],
  12330. listContributors: ["GET /repos/{owner}/{repo}/contributors"],
  12331. listCustomDeploymentRuleIntegrations: [
  12332. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
  12333. ],
  12334. listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
  12335. listDeploymentBranchPolicies: [
  12336. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
  12337. ],
  12338. listDeploymentStatuses: [
  12339. "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
  12340. ],
  12341. listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
  12342. listForAuthenticatedUser: ["GET /user/repos"],
  12343. listForOrg: ["GET /orgs/{org}/repos"],
  12344. listForUser: ["GET /users/{username}/repos"],
  12345. listForks: ["GET /repos/{owner}/{repo}/forks"],
  12346. listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
  12347. listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
  12348. listLanguages: ["GET /repos/{owner}/{repo}/languages"],
  12349. listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
  12350. listPublic: ["GET /repositories"],
  12351. listPullRequestsAssociatedWithCommit: [
  12352. "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
  12353. ],
  12354. listReleaseAssets: [
  12355. "GET /repos/{owner}/{repo}/releases/{release_id}/assets"
  12356. ],
  12357. listReleases: ["GET /repos/{owner}/{repo}/releases"],
  12358. listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"],
  12359. listTags: ["GET /repos/{owner}/{repo}/tags"],
  12360. listTeams: ["GET /repos/{owner}/{repo}/teams"],
  12361. listWebhookDeliveries: [
  12362. "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
  12363. ],
  12364. listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
  12365. merge: ["POST /repos/{owner}/{repo}/merges"],
  12366. mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
  12367. pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
  12368. redeliverWebhookDelivery: [
  12369. "POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
  12370. ],
  12371. removeAppAccessRestrictions: [
  12372. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
  12373. {},
  12374. { mapToData: "apps" }
  12375. ],
  12376. removeCollaborator: [
  12377. "DELETE /repos/{owner}/{repo}/collaborators/{username}"
  12378. ],
  12379. removeStatusCheckContexts: [
  12380. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
  12381. {},
  12382. { mapToData: "contexts" }
  12383. ],
  12384. removeStatusCheckProtection: [
  12385. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
  12386. ],
  12387. removeTeamAccessRestrictions: [
  12388. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
  12389. {},
  12390. { mapToData: "teams" }
  12391. ],
  12392. removeUserAccessRestrictions: [
  12393. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
  12394. {},
  12395. { mapToData: "users" }
  12396. ],
  12397. renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
  12398. replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
  12399. requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
  12400. setAdminBranchProtection: [
  12401. "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
  12402. ],
  12403. setAppAccessRestrictions: [
  12404. "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
  12405. {},
  12406. { mapToData: "apps" }
  12407. ],
  12408. setStatusCheckContexts: [
  12409. "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
  12410. {},
  12411. { mapToData: "contexts" }
  12412. ],
  12413. setTeamAccessRestrictions: [
  12414. "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
  12415. {},
  12416. { mapToData: "teams" }
  12417. ],
  12418. setUserAccessRestrictions: [
  12419. "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
  12420. {},
  12421. { mapToData: "users" }
  12422. ],
  12423. testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
  12424. transfer: ["POST /repos/{owner}/{repo}/transfer"],
  12425. update: ["PATCH /repos/{owner}/{repo}"],
  12426. updateBranchProtection: [
  12427. "PUT /repos/{owner}/{repo}/branches/{branch}/protection"
  12428. ],
  12429. updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
  12430. updateDeploymentBranchPolicy: [
  12431. "PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
  12432. ],
  12433. updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
  12434. updateInvitation: [
  12435. "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
  12436. ],
  12437. updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
  12438. updatePullRequestReviewProtection: [
  12439. "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
  12440. ],
  12441. updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
  12442. updateReleaseAsset: [
  12443. "PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
  12444. ],
  12445. updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
  12446. updateStatusCheckPotection: [
  12447. "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
  12448. {},
  12449. { renamed: ["repos", "updateStatusCheckProtection"] }
  12450. ],
  12451. updateStatusCheckProtection: [
  12452. "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
  12453. ],
  12454. updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
  12455. updateWebhookConfigForRepo: [
  12456. "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
  12457. ],
  12458. uploadReleaseAsset: [
  12459. "POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
  12460. { baseUrl: "https://uploads.github.com" }
  12461. ]
  12462. },
  12463. search: {
  12464. code: ["GET /search/code"],
  12465. commits: ["GET /search/commits"],
  12466. issuesAndPullRequests: ["GET /search/issues"],
  12467. labels: ["GET /search/labels"],
  12468. repos: ["GET /search/repositories"],
  12469. topics: ["GET /search/topics"],
  12470. users: ["GET /search/users"]
  12471. },
  12472. secretScanning: {
  12473. getAlert: [
  12474. "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
  12475. ],
  12476. listAlertsForEnterprise: [
  12477. "GET /enterprises/{enterprise}/secret-scanning/alerts"
  12478. ],
  12479. listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
  12480. listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
  12481. listLocationsForAlert: [
  12482. "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
  12483. ],
  12484. updateAlert: [
  12485. "PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
  12486. ]
  12487. },
  12488. securityAdvisories: {
  12489. createPrivateVulnerabilityReport: [
  12490. "POST /repos/{owner}/{repo}/security-advisories/reports"
  12491. ],
  12492. createRepositoryAdvisory: [
  12493. "POST /repos/{owner}/{repo}/security-advisories"
  12494. ],
  12495. getRepositoryAdvisory: [
  12496. "GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
  12497. ],
  12498. listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
  12499. updateRepositoryAdvisory: [
  12500. "PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
  12501. ]
  12502. },
  12503. teams: {
  12504. addOrUpdateMembershipForUserInOrg: [
  12505. "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
  12506. ],
  12507. addOrUpdateProjectPermissionsInOrg: [
  12508. "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
  12509. ],
  12510. addOrUpdateRepoPermissionsInOrg: [
  12511. "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
  12512. ],
  12513. checkPermissionsForProjectInOrg: [
  12514. "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
  12515. ],
  12516. checkPermissionsForRepoInOrg: [
  12517. "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
  12518. ],
  12519. create: ["POST /orgs/{org}/teams"],
  12520. createDiscussionCommentInOrg: [
  12521. "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
  12522. ],
  12523. createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
  12524. deleteDiscussionCommentInOrg: [
  12525. "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
  12526. ],
  12527. deleteDiscussionInOrg: [
  12528. "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
  12529. ],
  12530. deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
  12531. getByName: ["GET /orgs/{org}/teams/{team_slug}"],
  12532. getDiscussionCommentInOrg: [
  12533. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
  12534. ],
  12535. getDiscussionInOrg: [
  12536. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
  12537. ],
  12538. getMembershipForUserInOrg: [
  12539. "GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
  12540. ],
  12541. list: ["GET /orgs/{org}/teams"],
  12542. listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
  12543. listDiscussionCommentsInOrg: [
  12544. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
  12545. ],
  12546. listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
  12547. listForAuthenticatedUser: ["GET /user/teams"],
  12548. listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
  12549. listPendingInvitationsInOrg: [
  12550. "GET /orgs/{org}/teams/{team_slug}/invitations"
  12551. ],
  12552. listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
  12553. listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
  12554. removeMembershipForUserInOrg: [
  12555. "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
  12556. ],
  12557. removeProjectInOrg: [
  12558. "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
  12559. ],
  12560. removeRepoInOrg: [
  12561. "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
  12562. ],
  12563. updateDiscussionCommentInOrg: [
  12564. "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
  12565. ],
  12566. updateDiscussionInOrg: [
  12567. "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
  12568. ],
  12569. updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
  12570. },
  12571. users: {
  12572. addEmailForAuthenticated: [
  12573. "POST /user/emails",
  12574. {},
  12575. { renamed: ["users", "addEmailForAuthenticatedUser"] }
  12576. ],
  12577. addEmailForAuthenticatedUser: ["POST /user/emails"],
  12578. addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
  12579. block: ["PUT /user/blocks/{username}"],
  12580. checkBlocked: ["GET /user/blocks/{username}"],
  12581. checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
  12582. checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
  12583. createGpgKeyForAuthenticated: [
  12584. "POST /user/gpg_keys",
  12585. {},
  12586. { renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
  12587. ],
  12588. createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
  12589. createPublicSshKeyForAuthenticated: [
  12590. "POST /user/keys",
  12591. {},
  12592. { renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
  12593. ],
  12594. createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
  12595. createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
  12596. deleteEmailForAuthenticated: [
  12597. "DELETE /user/emails",
  12598. {},
  12599. { renamed: ["users", "deleteEmailForAuthenticatedUser"] }
  12600. ],
  12601. deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
  12602. deleteGpgKeyForAuthenticated: [
  12603. "DELETE /user/gpg_keys/{gpg_key_id}",
  12604. {},
  12605. { renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
  12606. ],
  12607. deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
  12608. deletePublicSshKeyForAuthenticated: [
  12609. "DELETE /user/keys/{key_id}",
  12610. {},
  12611. { renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
  12612. ],
  12613. deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
  12614. deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
  12615. deleteSshSigningKeyForAuthenticatedUser: [
  12616. "DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
  12617. ],
  12618. follow: ["PUT /user/following/{username}"],
  12619. getAuthenticated: ["GET /user"],
  12620. getByUsername: ["GET /users/{username}"],
  12621. getContextForUser: ["GET /users/{username}/hovercard"],
  12622. getGpgKeyForAuthenticated: [
  12623. "GET /user/gpg_keys/{gpg_key_id}",
  12624. {},
  12625. { renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
  12626. ],
  12627. getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
  12628. getPublicSshKeyForAuthenticated: [
  12629. "GET /user/keys/{key_id}",
  12630. {},
  12631. { renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
  12632. ],
  12633. getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
  12634. getSshSigningKeyForAuthenticatedUser: [
  12635. "GET /user/ssh_signing_keys/{ssh_signing_key_id}"
  12636. ],
  12637. list: ["GET /users"],
  12638. listBlockedByAuthenticated: [
  12639. "GET /user/blocks",
  12640. {},
  12641. { renamed: ["users", "listBlockedByAuthenticatedUser"] }
  12642. ],
  12643. listBlockedByAuthenticatedUser: ["GET /user/blocks"],
  12644. listEmailsForAuthenticated: [
  12645. "GET /user/emails",
  12646. {},
  12647. { renamed: ["users", "listEmailsForAuthenticatedUser"] }
  12648. ],
  12649. listEmailsForAuthenticatedUser: ["GET /user/emails"],
  12650. listFollowedByAuthenticated: [
  12651. "GET /user/following",
  12652. {},
  12653. { renamed: ["users", "listFollowedByAuthenticatedUser"] }
  12654. ],
  12655. listFollowedByAuthenticatedUser: ["GET /user/following"],
  12656. listFollowersForAuthenticatedUser: ["GET /user/followers"],
  12657. listFollowersForUser: ["GET /users/{username}/followers"],
  12658. listFollowingForUser: ["GET /users/{username}/following"],
  12659. listGpgKeysForAuthenticated: [
  12660. "GET /user/gpg_keys",
  12661. {},
  12662. { renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
  12663. ],
  12664. listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
  12665. listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
  12666. listPublicEmailsForAuthenticated: [
  12667. "GET /user/public_emails",
  12668. {},
  12669. { renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
  12670. ],
  12671. listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
  12672. listPublicKeysForUser: ["GET /users/{username}/keys"],
  12673. listPublicSshKeysForAuthenticated: [
  12674. "GET /user/keys",
  12675. {},
  12676. { renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
  12677. ],
  12678. listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
  12679. listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
  12680. listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
  12681. listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
  12682. listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
  12683. setPrimaryEmailVisibilityForAuthenticated: [
  12684. "PATCH /user/email/visibility",
  12685. {},
  12686. { renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
  12687. ],
  12688. setPrimaryEmailVisibilityForAuthenticatedUser: [
  12689. "PATCH /user/email/visibility"
  12690. ],
  12691. unblock: ["DELETE /user/blocks/{username}"],
  12692. unfollow: ["DELETE /user/following/{username}"],
  12693. updateAuthenticated: ["PATCH /user"]
  12694. }
  12695. };
  12696. var endpoints_default = Endpoints;
  12697. // pkg/dist-src/endpoints-to-methods.js
  12698. var endpointMethodsMap = /* @__PURE__ */ new Map();
  12699. for (const [scope, endpoints] of Object.entries(endpoints_default)) {
  12700. for (const [methodName, endpoint] of Object.entries(endpoints)) {
  12701. const [route, defaults, decorations] = endpoint;
  12702. const [method, url] = route.split(/ /);
  12703. const endpointDefaults = Object.assign(
  12704. {
  12705. method,
  12706. url
  12707. },
  12708. defaults
  12709. );
  12710. if (!endpointMethodsMap.has(scope)) {
  12711. endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
  12712. }
  12713. endpointMethodsMap.get(scope).set(methodName, {
  12714. scope,
  12715. methodName,
  12716. endpointDefaults,
  12717. decorations
  12718. });
  12719. }
  12720. }
  12721. var handler = {
  12722. get({ octokit, scope, cache }, methodName) {
  12723. if (cache[methodName]) {
  12724. return cache[methodName];
  12725. }
  12726. const { decorations, endpointDefaults } = endpointMethodsMap.get(scope).get(methodName);
  12727. if (decorations) {
  12728. cache[methodName] = decorate(
  12729. octokit,
  12730. scope,
  12731. methodName,
  12732. endpointDefaults,
  12733. decorations
  12734. );
  12735. } else {
  12736. cache[methodName] = octokit.request.defaults(endpointDefaults);
  12737. }
  12738. return cache[methodName];
  12739. }
  12740. };
  12741. function endpointsToMethods(octokit) {
  12742. const newMethods = {};
  12743. for (const scope of endpointMethodsMap.keys()) {
  12744. newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);
  12745. }
  12746. return newMethods;
  12747. }
  12748. function decorate(octokit, scope, methodName, defaults, decorations) {
  12749. const requestWithDefaults = octokit.request.defaults(defaults);
  12750. function withDecorations(...args) {
  12751. let options = requestWithDefaults.endpoint.merge(...args);
  12752. if (decorations.mapToData) {
  12753. options = Object.assign({}, options, {
  12754. data: options[decorations.mapToData],
  12755. [decorations.mapToData]: void 0
  12756. });
  12757. return requestWithDefaults(options);
  12758. }
  12759. if (decorations.renamed) {
  12760. const [newScope, newMethodName] = decorations.renamed;
  12761. octokit.log.warn(
  12762. `octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
  12763. );
  12764. }
  12765. if (decorations.deprecated) {
  12766. octokit.log.warn(decorations.deprecated);
  12767. }
  12768. if (decorations.renamedParameters) {
  12769. const options2 = requestWithDefaults.endpoint.merge(...args);
  12770. for (const [name, alias] of Object.entries(
  12771. decorations.renamedParameters
  12772. )) {
  12773. if (name in options2) {
  12774. octokit.log.warn(
  12775. `"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
  12776. );
  12777. if (!(alias in options2)) {
  12778. options2[alias] = options2[name];
  12779. }
  12780. delete options2[name];
  12781. }
  12782. }
  12783. return requestWithDefaults(options2);
  12784. }
  12785. return requestWithDefaults(...args);
  12786. }
  12787. return Object.assign(withDecorations, requestWithDefaults);
  12788. }
  12789. // pkg/dist-src/index.js
  12790. function restEndpointMethods(octokit) {
  12791. const api = endpointsToMethods(octokit);
  12792. return {
  12793. rest: api
  12794. };
  12795. }
  12796. restEndpointMethods.VERSION = VERSION;
  12797. function legacyRestEndpointMethods(octokit) {
  12798. const api = endpointsToMethods(octokit);
  12799. return {
  12800. ...api,
  12801. rest: api
  12802. };
  12803. }
  12804. legacyRestEndpointMethods.VERSION = VERSION;
  12805. // Annotate the CommonJS export names for ESM import in node:
  12806. 0 && (0);
  12807. /***/ }),
  12808. /***/ 537:
  12809. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  12810. "use strict";
  12811. Object.defineProperty(exports, "__esModule", ({ value: true }));
  12812. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  12813. var deprecation = __nccwpck_require__(8932);
  12814. var once = _interopDefault(__nccwpck_require__(1223));
  12815. const logOnceCode = once(deprecation => console.warn(deprecation));
  12816. const logOnceHeaders = once(deprecation => console.warn(deprecation));
  12817. /**
  12818. * Error with extra properties to help with debugging
  12819. */
  12820. class RequestError extends Error {
  12821. constructor(message, statusCode, options) {
  12822. super(message);
  12823. // Maintains proper stack trace (only available on V8)
  12824. /* istanbul ignore next */
  12825. if (Error.captureStackTrace) {
  12826. Error.captureStackTrace(this, this.constructor);
  12827. }
  12828. this.name = "HttpError";
  12829. this.status = statusCode;
  12830. let headers;
  12831. if ("headers" in options && typeof options.headers !== "undefined") {
  12832. headers = options.headers;
  12833. }
  12834. if ("response" in options) {
  12835. this.response = options.response;
  12836. headers = options.response.headers;
  12837. }
  12838. // redact request credentials without mutating original request options
  12839. const requestCopy = Object.assign({}, options.request);
  12840. if (options.request.headers.authorization) {
  12841. requestCopy.headers = Object.assign({}, options.request.headers, {
  12842. authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
  12843. });
  12844. }
  12845. requestCopy.url = requestCopy.url
  12846. // client_id & client_secret can be passed as URL query parameters to increase rate limit
  12847. // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
  12848. .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]")
  12849. // OAuth tokens can be passed as URL query parameters, although it is not recommended
  12850. // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
  12851. .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
  12852. this.request = requestCopy;
  12853. // deprecations
  12854. Object.defineProperty(this, "code", {
  12855. get() {
  12856. logOnceCode(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
  12857. return statusCode;
  12858. }
  12859. });
  12860. Object.defineProperty(this, "headers", {
  12861. get() {
  12862. logOnceHeaders(new deprecation.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));
  12863. return headers || {};
  12864. }
  12865. });
  12866. }
  12867. }
  12868. exports.RequestError = RequestError;
  12869. //# sourceMappingURL=index.js.map
  12870. /***/ }),
  12871. /***/ 6234:
  12872. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  12873. "use strict";
  12874. var __create = Object.create;
  12875. var __defProp = Object.defineProperty;
  12876. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  12877. var __getOwnPropNames = Object.getOwnPropertyNames;
  12878. var __getProtoOf = Object.getPrototypeOf;
  12879. var __hasOwnProp = Object.prototype.hasOwnProperty;
  12880. var __export = (target, all) => {
  12881. for (var name in all)
  12882. __defProp(target, name, { get: all[name], enumerable: true });
  12883. };
  12884. var __copyProps = (to, from, except, desc) => {
  12885. if (from && typeof from === "object" || typeof from === "function") {
  12886. for (let key of __getOwnPropNames(from))
  12887. if (!__hasOwnProp.call(to, key) && key !== except)
  12888. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  12889. }
  12890. return to;
  12891. };
  12892. var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  12893. // If the importer is in node compatibility mode or this is not an ESM
  12894. // file that has been converted to a CommonJS file using a Babel-
  12895. // compatible transform (i.e. "__esModule" has not been set), then set
  12896. // "default" to the CommonJS "module.exports" for node compatibility.
  12897. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  12898. mod
  12899. ));
  12900. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  12901. // pkg/dist-src/index.js
  12902. var dist_src_exports = {};
  12903. __export(dist_src_exports, {
  12904. request: () => request
  12905. });
  12906. module.exports = __toCommonJS(dist_src_exports);
  12907. var import_endpoint = __nccwpck_require__(9440);
  12908. var import_universal_user_agent = __nccwpck_require__(5030);
  12909. // pkg/dist-src/version.js
  12910. var VERSION = "6.2.8";
  12911. // pkg/dist-src/fetch-wrapper.js
  12912. var import_is_plain_object = __nccwpck_require__(3287);
  12913. var import_node_fetch = __toESM(__nccwpck_require__(467));
  12914. var import_request_error = __nccwpck_require__(537);
  12915. // pkg/dist-src/get-buffer-response.js
  12916. function getBufferResponse(response) {
  12917. return response.arrayBuffer();
  12918. }
  12919. // pkg/dist-src/fetch-wrapper.js
  12920. function fetchWrapper(requestOptions) {
  12921. const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
  12922. if ((0, import_is_plain_object.isPlainObject)(requestOptions.body) || Array.isArray(requestOptions.body)) {
  12923. requestOptions.body = JSON.stringify(requestOptions.body);
  12924. }
  12925. let headers = {};
  12926. let status;
  12927. let url;
  12928. const fetch = requestOptions.request && requestOptions.request.fetch || globalThis.fetch || /* istanbul ignore next */
  12929. import_node_fetch.default;
  12930. return fetch(
  12931. requestOptions.url,
  12932. Object.assign(
  12933. {
  12934. method: requestOptions.method,
  12935. body: requestOptions.body,
  12936. headers: requestOptions.headers,
  12937. redirect: requestOptions.redirect,
  12938. // duplex must be set if request.body is ReadableStream or Async Iterables.
  12939. // See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
  12940. ...requestOptions.body && { duplex: "half" }
  12941. },
  12942. // `requestOptions.request.agent` type is incompatible
  12943. // see https://github.com/octokit/types.ts/pull/264
  12944. requestOptions.request
  12945. )
  12946. ).then(async (response) => {
  12947. url = response.url;
  12948. status = response.status;
  12949. for (const keyAndValue of response.headers) {
  12950. headers[keyAndValue[0]] = keyAndValue[1];
  12951. }
  12952. if ("deprecation" in headers) {
  12953. const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
  12954. const deprecationLink = matches && matches.pop();
  12955. log.warn(
  12956. `[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
  12957. );
  12958. }
  12959. if (status === 204 || status === 205) {
  12960. return;
  12961. }
  12962. if (requestOptions.method === "HEAD") {
  12963. if (status < 400) {
  12964. return;
  12965. }
  12966. throw new import_request_error.RequestError(response.statusText, status, {
  12967. response: {
  12968. url,
  12969. status,
  12970. headers,
  12971. data: void 0
  12972. },
  12973. request: requestOptions
  12974. });
  12975. }
  12976. if (status === 304) {
  12977. throw new import_request_error.RequestError("Not modified", status, {
  12978. response: {
  12979. url,
  12980. status,
  12981. headers,
  12982. data: await getResponseData(response)
  12983. },
  12984. request: requestOptions
  12985. });
  12986. }
  12987. if (status >= 400) {
  12988. const data = await getResponseData(response);
  12989. const error = new import_request_error.RequestError(toErrorMessage(data), status, {
  12990. response: {
  12991. url,
  12992. status,
  12993. headers,
  12994. data
  12995. },
  12996. request: requestOptions
  12997. });
  12998. throw error;
  12999. }
  13000. return getResponseData(response);
  13001. }).then((data) => {
  13002. return {
  13003. status,
  13004. url,
  13005. headers,
  13006. data
  13007. };
  13008. }).catch((error) => {
  13009. if (error instanceof import_request_error.RequestError)
  13010. throw error;
  13011. else if (error.name === "AbortError")
  13012. throw error;
  13013. throw new import_request_error.RequestError(error.message, 500, {
  13014. request: requestOptions
  13015. });
  13016. });
  13017. }
  13018. async function getResponseData(response) {
  13019. const contentType = response.headers.get("content-type");
  13020. if (/application\/json/.test(contentType)) {
  13021. return response.json();
  13022. }
  13023. if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
  13024. return response.text();
  13025. }
  13026. return getBufferResponse(response);
  13027. }
  13028. function toErrorMessage(data) {
  13029. if (typeof data === "string")
  13030. return data;
  13031. if ("message" in data) {
  13032. if (Array.isArray(data.errors)) {
  13033. return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}`;
  13034. }
  13035. return data.message;
  13036. }
  13037. return `Unknown error: ${JSON.stringify(data)}`;
  13038. }
  13039. // pkg/dist-src/with-defaults.js
  13040. function withDefaults(oldEndpoint, newDefaults) {
  13041. const endpoint2 = oldEndpoint.defaults(newDefaults);
  13042. const newApi = function(route, parameters) {
  13043. const endpointOptions = endpoint2.merge(route, parameters);
  13044. if (!endpointOptions.request || !endpointOptions.request.hook) {
  13045. return fetchWrapper(endpoint2.parse(endpointOptions));
  13046. }
  13047. const request2 = (route2, parameters2) => {
  13048. return fetchWrapper(
  13049. endpoint2.parse(endpoint2.merge(route2, parameters2))
  13050. );
  13051. };
  13052. Object.assign(request2, {
  13053. endpoint: endpoint2,
  13054. defaults: withDefaults.bind(null, endpoint2)
  13055. });
  13056. return endpointOptions.request.hook(request2, endpointOptions);
  13057. };
  13058. return Object.assign(newApi, {
  13059. endpoint: endpoint2,
  13060. defaults: withDefaults.bind(null, endpoint2)
  13061. });
  13062. }
  13063. // pkg/dist-src/index.js
  13064. var request = withDefaults(import_endpoint.endpoint, {
  13065. headers: {
  13066. "user-agent": `octokit-request.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
  13067. }
  13068. });
  13069. // Annotate the CommonJS export names for ESM import in node:
  13070. 0 && (0);
  13071. /***/ }),
  13072. /***/ 3682:
  13073. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  13074. var register = __nccwpck_require__(4670);
  13075. var addHook = __nccwpck_require__(5549);
  13076. var removeHook = __nccwpck_require__(6819);
  13077. // bind with array of arguments: https://stackoverflow.com/a/21792913
  13078. var bind = Function.bind;
  13079. var bindable = bind.bind(bind);
  13080. function bindApi(hook, state, name) {
  13081. var removeHookRef = bindable(removeHook, null).apply(
  13082. null,
  13083. name ? [state, name] : [state]
  13084. );
  13085. hook.api = { remove: removeHookRef };
  13086. hook.remove = removeHookRef;
  13087. ["before", "error", "after", "wrap"].forEach(function (kind) {
  13088. var args = name ? [state, kind, name] : [state, kind];
  13089. hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args);
  13090. });
  13091. }
  13092. function HookSingular() {
  13093. var singularHookName = "h";
  13094. var singularHookState = {
  13095. registry: {},
  13096. };
  13097. var singularHook = register.bind(null, singularHookState, singularHookName);
  13098. bindApi(singularHook, singularHookState, singularHookName);
  13099. return singularHook;
  13100. }
  13101. function HookCollection() {
  13102. var state = {
  13103. registry: {},
  13104. };
  13105. var hook = register.bind(null, state);
  13106. bindApi(hook, state);
  13107. return hook;
  13108. }
  13109. var collectionHookDeprecationMessageDisplayed = false;
  13110. function Hook() {
  13111. if (!collectionHookDeprecationMessageDisplayed) {
  13112. console.warn(
  13113. '[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'
  13114. );
  13115. collectionHookDeprecationMessageDisplayed = true;
  13116. }
  13117. return HookCollection();
  13118. }
  13119. Hook.Singular = HookSingular.bind();
  13120. Hook.Collection = HookCollection.bind();
  13121. module.exports = Hook;
  13122. // expose constructors as a named property for TypeScript
  13123. module.exports.Hook = Hook;
  13124. module.exports.Singular = Hook.Singular;
  13125. module.exports.Collection = Hook.Collection;
  13126. /***/ }),
  13127. /***/ 5549:
  13128. /***/ ((module) => {
  13129. module.exports = addHook;
  13130. function addHook(state, kind, name, hook) {
  13131. var orig = hook;
  13132. if (!state.registry[name]) {
  13133. state.registry[name] = [];
  13134. }
  13135. if (kind === "before") {
  13136. hook = function (method, options) {
  13137. return Promise.resolve()
  13138. .then(orig.bind(null, options))
  13139. .then(method.bind(null, options));
  13140. };
  13141. }
  13142. if (kind === "after") {
  13143. hook = function (method, options) {
  13144. var result;
  13145. return Promise.resolve()
  13146. .then(method.bind(null, options))
  13147. .then(function (result_) {
  13148. result = result_;
  13149. return orig(result, options);
  13150. })
  13151. .then(function () {
  13152. return result;
  13153. });
  13154. };
  13155. }
  13156. if (kind === "error") {
  13157. hook = function (method, options) {
  13158. return Promise.resolve()
  13159. .then(method.bind(null, options))
  13160. .catch(function (error) {
  13161. return orig(error, options);
  13162. });
  13163. };
  13164. }
  13165. state.registry[name].push({
  13166. hook: hook,
  13167. orig: orig,
  13168. });
  13169. }
  13170. /***/ }),
  13171. /***/ 4670:
  13172. /***/ ((module) => {
  13173. module.exports = register;
  13174. function register(state, name, method, options) {
  13175. if (typeof method !== "function") {
  13176. throw new Error("method for before hook must be a function");
  13177. }
  13178. if (!options) {
  13179. options = {};
  13180. }
  13181. if (Array.isArray(name)) {
  13182. return name.reverse().reduce(function (callback, name) {
  13183. return register.bind(null, state, name, callback, options);
  13184. }, method)();
  13185. }
  13186. return Promise.resolve().then(function () {
  13187. if (!state.registry[name]) {
  13188. return method(options);
  13189. }
  13190. return state.registry[name].reduce(function (method, registered) {
  13191. return registered.hook.bind(null, method, options);
  13192. }, method)();
  13193. });
  13194. }
  13195. /***/ }),
  13196. /***/ 6819:
  13197. /***/ ((module) => {
  13198. module.exports = removeHook;
  13199. function removeHook(state, name, method) {
  13200. if (!state.registry[name]) {
  13201. return;
  13202. }
  13203. var index = state.registry[name]
  13204. .map(function (registered) {
  13205. return registered.orig;
  13206. })
  13207. .indexOf(method);
  13208. if (index === -1) {
  13209. return;
  13210. }
  13211. state.registry[name].splice(index, 1);
  13212. }
  13213. /***/ }),
  13214. /***/ 8803:
  13215. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  13216. "use strict";
  13217. var GetIntrinsic = __nccwpck_require__(4538);
  13218. var callBind = __nccwpck_require__(2977);
  13219. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  13220. module.exports = function callBoundIntrinsic(name, allowMissing) {
  13221. var intrinsic = GetIntrinsic(name, !!allowMissing);
  13222. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  13223. return callBind(intrinsic);
  13224. }
  13225. return intrinsic;
  13226. };
  13227. /***/ }),
  13228. /***/ 2977:
  13229. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  13230. "use strict";
  13231. var bind = __nccwpck_require__(8334);
  13232. var GetIntrinsic = __nccwpck_require__(4538);
  13233. var $apply = GetIntrinsic('%Function.prototype.apply%');
  13234. var $call = GetIntrinsic('%Function.prototype.call%');
  13235. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  13236. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  13237. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  13238. var $max = GetIntrinsic('%Math.max%');
  13239. if ($defineProperty) {
  13240. try {
  13241. $defineProperty({}, 'a', { value: 1 });
  13242. } catch (e) {
  13243. // IE 8 has a broken defineProperty
  13244. $defineProperty = null;
  13245. }
  13246. }
  13247. module.exports = function callBind(originalFunction) {
  13248. var func = $reflectApply(bind, $call, arguments);
  13249. if ($gOPD && $defineProperty) {
  13250. var desc = $gOPD(func, 'length');
  13251. if (desc.configurable) {
  13252. // original length, plus the receiver, minus any additional arguments (after the receiver)
  13253. $defineProperty(
  13254. func,
  13255. 'length',
  13256. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  13257. );
  13258. }
  13259. }
  13260. return func;
  13261. };
  13262. var applyBind = function applyBind() {
  13263. return $reflectApply(bind, $apply, arguments);
  13264. };
  13265. if ($defineProperty) {
  13266. $defineProperty(module.exports, 'apply', { value: applyBind });
  13267. } else {
  13268. module.exports.apply = applyBind;
  13269. }
  13270. /***/ }),
  13271. /***/ 8932:
  13272. /***/ ((__unused_webpack_module, exports) => {
  13273. "use strict";
  13274. Object.defineProperty(exports, "__esModule", ({ value: true }));
  13275. class Deprecation extends Error {
  13276. constructor(message) {
  13277. super(message); // Maintains proper stack trace (only available on V8)
  13278. /* istanbul ignore next */
  13279. if (Error.captureStackTrace) {
  13280. Error.captureStackTrace(this, this.constructor);
  13281. }
  13282. this.name = 'Deprecation';
  13283. }
  13284. }
  13285. exports.Deprecation = Deprecation;
  13286. /***/ }),
  13287. /***/ 9320:
  13288. /***/ ((module) => {
  13289. "use strict";
  13290. /* eslint no-invalid-this: 1 */
  13291. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  13292. var slice = Array.prototype.slice;
  13293. var toStr = Object.prototype.toString;
  13294. var funcType = '[object Function]';
  13295. module.exports = function bind(that) {
  13296. var target = this;
  13297. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  13298. throw new TypeError(ERROR_MESSAGE + target);
  13299. }
  13300. var args = slice.call(arguments, 1);
  13301. var bound;
  13302. var binder = function () {
  13303. if (this instanceof bound) {
  13304. var result = target.apply(
  13305. this,
  13306. args.concat(slice.call(arguments))
  13307. );
  13308. if (Object(result) === result) {
  13309. return result;
  13310. }
  13311. return this;
  13312. } else {
  13313. return target.apply(
  13314. that,
  13315. args.concat(slice.call(arguments))
  13316. );
  13317. }
  13318. };
  13319. var boundLength = Math.max(0, target.length - args.length);
  13320. var boundArgs = [];
  13321. for (var i = 0; i < boundLength; i++) {
  13322. boundArgs.push('$' + i);
  13323. }
  13324. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  13325. if (target.prototype) {
  13326. var Empty = function Empty() {};
  13327. Empty.prototype = target.prototype;
  13328. bound.prototype = new Empty();
  13329. Empty.prototype = null;
  13330. }
  13331. return bound;
  13332. };
  13333. /***/ }),
  13334. /***/ 8334:
  13335. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  13336. "use strict";
  13337. var implementation = __nccwpck_require__(9320);
  13338. module.exports = Function.prototype.bind || implementation;
  13339. /***/ }),
  13340. /***/ 4538:
  13341. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  13342. "use strict";
  13343. var undefined;
  13344. var $SyntaxError = SyntaxError;
  13345. var $Function = Function;
  13346. var $TypeError = TypeError;
  13347. // eslint-disable-next-line consistent-return
  13348. var getEvalledConstructor = function (expressionSyntax) {
  13349. try {
  13350. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  13351. } catch (e) {}
  13352. };
  13353. var $gOPD = Object.getOwnPropertyDescriptor;
  13354. if ($gOPD) {
  13355. try {
  13356. $gOPD({}, '');
  13357. } catch (e) {
  13358. $gOPD = null; // this is IE 8, which has a broken gOPD
  13359. }
  13360. }
  13361. var throwTypeError = function () {
  13362. throw new $TypeError();
  13363. };
  13364. var ThrowTypeError = $gOPD
  13365. ? (function () {
  13366. try {
  13367. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  13368. arguments.callee; // IE 8 does not throw here
  13369. return throwTypeError;
  13370. } catch (calleeThrows) {
  13371. try {
  13372. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  13373. return $gOPD(arguments, 'callee').get;
  13374. } catch (gOPDthrows) {
  13375. return throwTypeError;
  13376. }
  13377. }
  13378. }())
  13379. : throwTypeError;
  13380. var hasSymbols = __nccwpck_require__(587)();
  13381. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  13382. var needsEval = {};
  13383. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  13384. var INTRINSICS = {
  13385. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  13386. '%Array%': Array,
  13387. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  13388. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  13389. '%AsyncFromSyncIteratorPrototype%': undefined,
  13390. '%AsyncFunction%': needsEval,
  13391. '%AsyncGenerator%': needsEval,
  13392. '%AsyncGeneratorFunction%': needsEval,
  13393. '%AsyncIteratorPrototype%': needsEval,
  13394. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  13395. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  13396. '%Boolean%': Boolean,
  13397. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  13398. '%Date%': Date,
  13399. '%decodeURI%': decodeURI,
  13400. '%decodeURIComponent%': decodeURIComponent,
  13401. '%encodeURI%': encodeURI,
  13402. '%encodeURIComponent%': encodeURIComponent,
  13403. '%Error%': Error,
  13404. '%eval%': eval, // eslint-disable-line no-eval
  13405. '%EvalError%': EvalError,
  13406. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  13407. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  13408. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  13409. '%Function%': $Function,
  13410. '%GeneratorFunction%': needsEval,
  13411. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  13412. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  13413. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  13414. '%isFinite%': isFinite,
  13415. '%isNaN%': isNaN,
  13416. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  13417. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  13418. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  13419. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  13420. '%Math%': Math,
  13421. '%Number%': Number,
  13422. '%Object%': Object,
  13423. '%parseFloat%': parseFloat,
  13424. '%parseInt%': parseInt,
  13425. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  13426. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  13427. '%RangeError%': RangeError,
  13428. '%ReferenceError%': ReferenceError,
  13429. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  13430. '%RegExp%': RegExp,
  13431. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  13432. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  13433. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  13434. '%String%': String,
  13435. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  13436. '%Symbol%': hasSymbols ? Symbol : undefined,
  13437. '%SyntaxError%': $SyntaxError,
  13438. '%ThrowTypeError%': ThrowTypeError,
  13439. '%TypedArray%': TypedArray,
  13440. '%TypeError%': $TypeError,
  13441. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  13442. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  13443. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  13444. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  13445. '%URIError%': URIError,
  13446. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  13447. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  13448. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  13449. };
  13450. var doEval = function doEval(name) {
  13451. var value;
  13452. if (name === '%AsyncFunction%') {
  13453. value = getEvalledConstructor('async function () {}');
  13454. } else if (name === '%GeneratorFunction%') {
  13455. value = getEvalledConstructor('function* () {}');
  13456. } else if (name === '%AsyncGeneratorFunction%') {
  13457. value = getEvalledConstructor('async function* () {}');
  13458. } else if (name === '%AsyncGenerator%') {
  13459. var fn = doEval('%AsyncGeneratorFunction%');
  13460. if (fn) {
  13461. value = fn.prototype;
  13462. }
  13463. } else if (name === '%AsyncIteratorPrototype%') {
  13464. var gen = doEval('%AsyncGenerator%');
  13465. if (gen) {
  13466. value = getProto(gen.prototype);
  13467. }
  13468. }
  13469. INTRINSICS[name] = value;
  13470. return value;
  13471. };
  13472. var LEGACY_ALIASES = {
  13473. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  13474. '%ArrayPrototype%': ['Array', 'prototype'],
  13475. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  13476. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  13477. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  13478. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  13479. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  13480. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  13481. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  13482. '%BooleanPrototype%': ['Boolean', 'prototype'],
  13483. '%DataViewPrototype%': ['DataView', 'prototype'],
  13484. '%DatePrototype%': ['Date', 'prototype'],
  13485. '%ErrorPrototype%': ['Error', 'prototype'],
  13486. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  13487. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  13488. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  13489. '%FunctionPrototype%': ['Function', 'prototype'],
  13490. '%Generator%': ['GeneratorFunction', 'prototype'],
  13491. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  13492. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  13493. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  13494. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  13495. '%JSONParse%': ['JSON', 'parse'],
  13496. '%JSONStringify%': ['JSON', 'stringify'],
  13497. '%MapPrototype%': ['Map', 'prototype'],
  13498. '%NumberPrototype%': ['Number', 'prototype'],
  13499. '%ObjectPrototype%': ['Object', 'prototype'],
  13500. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  13501. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  13502. '%PromisePrototype%': ['Promise', 'prototype'],
  13503. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  13504. '%Promise_all%': ['Promise', 'all'],
  13505. '%Promise_reject%': ['Promise', 'reject'],
  13506. '%Promise_resolve%': ['Promise', 'resolve'],
  13507. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  13508. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  13509. '%RegExpPrototype%': ['RegExp', 'prototype'],
  13510. '%SetPrototype%': ['Set', 'prototype'],
  13511. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  13512. '%StringPrototype%': ['String', 'prototype'],
  13513. '%SymbolPrototype%': ['Symbol', 'prototype'],
  13514. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  13515. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  13516. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  13517. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  13518. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  13519. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  13520. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  13521. '%URIErrorPrototype%': ['URIError', 'prototype'],
  13522. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  13523. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  13524. };
  13525. var bind = __nccwpck_require__(8334);
  13526. var hasOwn = __nccwpck_require__(6339);
  13527. var $concat = bind.call(Function.call, Array.prototype.concat);
  13528. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  13529. var $replace = bind.call(Function.call, String.prototype.replace);
  13530. var $strSlice = bind.call(Function.call, String.prototype.slice);
  13531. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  13532. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  13533. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  13534. var stringToPath = function stringToPath(string) {
  13535. var first = $strSlice(string, 0, 1);
  13536. var last = $strSlice(string, -1);
  13537. if (first === '%' && last !== '%') {
  13538. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  13539. } else if (last === '%' && first !== '%') {
  13540. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  13541. }
  13542. var result = [];
  13543. $replace(string, rePropName, function (match, number, quote, subString) {
  13544. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  13545. });
  13546. return result;
  13547. };
  13548. /* end adaptation */
  13549. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  13550. var intrinsicName = name;
  13551. var alias;
  13552. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  13553. alias = LEGACY_ALIASES[intrinsicName];
  13554. intrinsicName = '%' + alias[0] + '%';
  13555. }
  13556. if (hasOwn(INTRINSICS, intrinsicName)) {
  13557. var value = INTRINSICS[intrinsicName];
  13558. if (value === needsEval) {
  13559. value = doEval(intrinsicName);
  13560. }
  13561. if (typeof value === 'undefined' && !allowMissing) {
  13562. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  13563. }
  13564. return {
  13565. alias: alias,
  13566. name: intrinsicName,
  13567. value: value
  13568. };
  13569. }
  13570. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  13571. };
  13572. module.exports = function GetIntrinsic(name, allowMissing) {
  13573. if (typeof name !== 'string' || name.length === 0) {
  13574. throw new $TypeError('intrinsic name must be a non-empty string');
  13575. }
  13576. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  13577. throw new $TypeError('"allowMissing" argument must be a boolean');
  13578. }
  13579. var parts = stringToPath(name);
  13580. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  13581. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  13582. var intrinsicRealName = intrinsic.name;
  13583. var value = intrinsic.value;
  13584. var skipFurtherCaching = false;
  13585. var alias = intrinsic.alias;
  13586. if (alias) {
  13587. intrinsicBaseName = alias[0];
  13588. $spliceApply(parts, $concat([0, 1], alias));
  13589. }
  13590. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  13591. var part = parts[i];
  13592. var first = $strSlice(part, 0, 1);
  13593. var last = $strSlice(part, -1);
  13594. if (
  13595. (
  13596. (first === '"' || first === "'" || first === '`')
  13597. || (last === '"' || last === "'" || last === '`')
  13598. )
  13599. && first !== last
  13600. ) {
  13601. throw new $SyntaxError('property names with quotes must have matching quotes');
  13602. }
  13603. if (part === 'constructor' || !isOwn) {
  13604. skipFurtherCaching = true;
  13605. }
  13606. intrinsicBaseName += '.' + part;
  13607. intrinsicRealName = '%' + intrinsicBaseName + '%';
  13608. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  13609. value = INTRINSICS[intrinsicRealName];
  13610. } else if (value != null) {
  13611. if (!(part in value)) {
  13612. if (!allowMissing) {
  13613. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  13614. }
  13615. return void undefined;
  13616. }
  13617. if ($gOPD && (i + 1) >= parts.length) {
  13618. var desc = $gOPD(value, part);
  13619. isOwn = !!desc;
  13620. // By convention, when a data property is converted to an accessor
  13621. // property to emulate a data property that does not suffer from
  13622. // the override mistake, that accessor's getter is marked with
  13623. // an `originalValue` property. Here, when we detect this, we
  13624. // uphold the illusion by pretending to see that original data
  13625. // property, i.e., returning the value rather than the getter
  13626. // itself.
  13627. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  13628. value = desc.get;
  13629. } else {
  13630. value = value[part];
  13631. }
  13632. } else {
  13633. isOwn = hasOwn(value, part);
  13634. value = value[part];
  13635. }
  13636. if (isOwn && !skipFurtherCaching) {
  13637. INTRINSICS[intrinsicRealName] = value;
  13638. }
  13639. }
  13640. }
  13641. return value;
  13642. };
  13643. /***/ }),
  13644. /***/ 587:
  13645. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  13646. "use strict";
  13647. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  13648. var hasSymbolSham = __nccwpck_require__(7747);
  13649. module.exports = function hasNativeSymbols() {
  13650. if (typeof origSymbol !== 'function') { return false; }
  13651. if (typeof Symbol !== 'function') { return false; }
  13652. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  13653. if (typeof Symbol('bar') !== 'symbol') { return false; }
  13654. return hasSymbolSham();
  13655. };
  13656. /***/ }),
  13657. /***/ 7747:
  13658. /***/ ((module) => {
  13659. "use strict";
  13660. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  13661. module.exports = function hasSymbols() {
  13662. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  13663. if (typeof Symbol.iterator === 'symbol') { return true; }
  13664. var obj = {};
  13665. var sym = Symbol('test');
  13666. var symObj = Object(sym);
  13667. if (typeof sym === 'string') { return false; }
  13668. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  13669. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  13670. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  13671. // if (sym instanceof Symbol) { return false; }
  13672. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  13673. // if (!(symObj instanceof Symbol)) { return false; }
  13674. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  13675. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  13676. var symVal = 42;
  13677. obj[sym] = symVal;
  13678. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  13679. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  13680. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  13681. var syms = Object.getOwnPropertySymbols(obj);
  13682. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  13683. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  13684. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  13685. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  13686. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  13687. }
  13688. return true;
  13689. };
  13690. /***/ }),
  13691. /***/ 6339:
  13692. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  13693. "use strict";
  13694. var bind = __nccwpck_require__(8334);
  13695. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  13696. /***/ }),
  13697. /***/ 3287:
  13698. /***/ ((__unused_webpack_module, exports) => {
  13699. "use strict";
  13700. Object.defineProperty(exports, "__esModule", ({ value: true }));
  13701. /*!
  13702. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  13703. *
  13704. * Copyright (c) 2014-2017, Jon Schlinkert.
  13705. * Released under the MIT License.
  13706. */
  13707. function isObject(o) {
  13708. return Object.prototype.toString.call(o) === '[object Object]';
  13709. }
  13710. function isPlainObject(o) {
  13711. var ctor,prot;
  13712. if (isObject(o) === false) return false;
  13713. // If has modified constructor
  13714. ctor = o.constructor;
  13715. if (ctor === undefined) return true;
  13716. // If has modified prototype
  13717. prot = ctor.prototype;
  13718. if (isObject(prot) === false) return false;
  13719. // If constructor does not have an Object-specific method
  13720. if (prot.hasOwnProperty('isPrototypeOf') === false) {
  13721. return false;
  13722. }
  13723. // Most likely a plain Object
  13724. return true;
  13725. }
  13726. exports.isPlainObject = isPlainObject;
  13727. /***/ }),
  13728. /***/ 467:
  13729. /***/ ((module, exports, __nccwpck_require__) => {
  13730. "use strict";
  13731. Object.defineProperty(exports, "__esModule", ({ value: true }));
  13732. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  13733. var Stream = _interopDefault(__nccwpck_require__(2781));
  13734. var http = _interopDefault(__nccwpck_require__(3685));
  13735. var Url = _interopDefault(__nccwpck_require__(7310));
  13736. var whatwgUrl = _interopDefault(__nccwpck_require__(3323));
  13737. var https = _interopDefault(__nccwpck_require__(5687));
  13738. var zlib = _interopDefault(__nccwpck_require__(9796));
  13739. // Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
  13740. // fix for "Readable" isn't a named export issue
  13741. const Readable = Stream.Readable;
  13742. const BUFFER = Symbol('buffer');
  13743. const TYPE = Symbol('type');
  13744. class Blob {
  13745. constructor() {
  13746. this[TYPE] = '';
  13747. const blobParts = arguments[0];
  13748. const options = arguments[1];
  13749. const buffers = [];
  13750. let size = 0;
  13751. if (blobParts) {
  13752. const a = blobParts;
  13753. const length = Number(a.length);
  13754. for (let i = 0; i < length; i++) {
  13755. const element = a[i];
  13756. let buffer;
  13757. if (element instanceof Buffer) {
  13758. buffer = element;
  13759. } else if (ArrayBuffer.isView(element)) {
  13760. buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
  13761. } else if (element instanceof ArrayBuffer) {
  13762. buffer = Buffer.from(element);
  13763. } else if (element instanceof Blob) {
  13764. buffer = element[BUFFER];
  13765. } else {
  13766. buffer = Buffer.from(typeof element === 'string' ? element : String(element));
  13767. }
  13768. size += buffer.length;
  13769. buffers.push(buffer);
  13770. }
  13771. }
  13772. this[BUFFER] = Buffer.concat(buffers);
  13773. let type = options && options.type !== undefined && String(options.type).toLowerCase();
  13774. if (type && !/[^\u0020-\u007E]/.test(type)) {
  13775. this[TYPE] = type;
  13776. }
  13777. }
  13778. get size() {
  13779. return this[BUFFER].length;
  13780. }
  13781. get type() {
  13782. return this[TYPE];
  13783. }
  13784. text() {
  13785. return Promise.resolve(this[BUFFER].toString());
  13786. }
  13787. arrayBuffer() {
  13788. const buf = this[BUFFER];
  13789. const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  13790. return Promise.resolve(ab);
  13791. }
  13792. stream() {
  13793. const readable = new Readable();
  13794. readable._read = function () {};
  13795. readable.push(this[BUFFER]);
  13796. readable.push(null);
  13797. return readable;
  13798. }
  13799. toString() {
  13800. return '[object Blob]';
  13801. }
  13802. slice() {
  13803. const size = this.size;
  13804. const start = arguments[0];
  13805. const end = arguments[1];
  13806. let relativeStart, relativeEnd;
  13807. if (start === undefined) {
  13808. relativeStart = 0;
  13809. } else if (start < 0) {
  13810. relativeStart = Math.max(size + start, 0);
  13811. } else {
  13812. relativeStart = Math.min(start, size);
  13813. }
  13814. if (end === undefined) {
  13815. relativeEnd = size;
  13816. } else if (end < 0) {
  13817. relativeEnd = Math.max(size + end, 0);
  13818. } else {
  13819. relativeEnd = Math.min(end, size);
  13820. }
  13821. const span = Math.max(relativeEnd - relativeStart, 0);
  13822. const buffer = this[BUFFER];
  13823. const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
  13824. const blob = new Blob([], { type: arguments[2] });
  13825. blob[BUFFER] = slicedBuffer;
  13826. return blob;
  13827. }
  13828. }
  13829. Object.defineProperties(Blob.prototype, {
  13830. size: { enumerable: true },
  13831. type: { enumerable: true },
  13832. slice: { enumerable: true }
  13833. });
  13834. Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
  13835. value: 'Blob',
  13836. writable: false,
  13837. enumerable: false,
  13838. configurable: true
  13839. });
  13840. /**
  13841. * fetch-error.js
  13842. *
  13843. * FetchError interface for operational errors
  13844. */
  13845. /**
  13846. * Create FetchError instance
  13847. *
  13848. * @param String message Error message for human
  13849. * @param String type Error type for machine
  13850. * @param String systemError For Node.js system error
  13851. * @return FetchError
  13852. */
  13853. function FetchError(message, type, systemError) {
  13854. Error.call(this, message);
  13855. this.message = message;
  13856. this.type = type;
  13857. // when err.type is `system`, err.code contains system error code
  13858. if (systemError) {
  13859. this.code = this.errno = systemError.code;
  13860. }
  13861. // hide custom error implementation details from end-users
  13862. Error.captureStackTrace(this, this.constructor);
  13863. }
  13864. FetchError.prototype = Object.create(Error.prototype);
  13865. FetchError.prototype.constructor = FetchError;
  13866. FetchError.prototype.name = 'FetchError';
  13867. let convert;
  13868. try {
  13869. convert = (__nccwpck_require__(2877).convert);
  13870. } catch (e) {}
  13871. const INTERNALS = Symbol('Body internals');
  13872. // fix an issue where "PassThrough" isn't a named export for node <10
  13873. const PassThrough = Stream.PassThrough;
  13874. /**
  13875. * Body mixin
  13876. *
  13877. * Ref: https://fetch.spec.whatwg.org/#body
  13878. *
  13879. * @param Stream body Readable stream
  13880. * @param Object opts Response options
  13881. * @return Void
  13882. */
  13883. function Body(body) {
  13884. var _this = this;
  13885. var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  13886. _ref$size = _ref.size;
  13887. let size = _ref$size === undefined ? 0 : _ref$size;
  13888. var _ref$timeout = _ref.timeout;
  13889. let timeout = _ref$timeout === undefined ? 0 : _ref$timeout;
  13890. if (body == null) {
  13891. // body is undefined or null
  13892. body = null;
  13893. } else if (isURLSearchParams(body)) {
  13894. // body is a URLSearchParams
  13895. body = Buffer.from(body.toString());
  13896. } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  13897. // body is ArrayBuffer
  13898. body = Buffer.from(body);
  13899. } else if (ArrayBuffer.isView(body)) {
  13900. // body is ArrayBufferView
  13901. body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
  13902. } else if (body instanceof Stream) ; else {
  13903. // none of the above
  13904. // coerce to string then buffer
  13905. body = Buffer.from(String(body));
  13906. }
  13907. this[INTERNALS] = {
  13908. body,
  13909. disturbed: false,
  13910. error: null
  13911. };
  13912. this.size = size;
  13913. this.timeout = timeout;
  13914. if (body instanceof Stream) {
  13915. body.on('error', function (err) {
  13916. const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);
  13917. _this[INTERNALS].error = error;
  13918. });
  13919. }
  13920. }
  13921. Body.prototype = {
  13922. get body() {
  13923. return this[INTERNALS].body;
  13924. },
  13925. get bodyUsed() {
  13926. return this[INTERNALS].disturbed;
  13927. },
  13928. /**
  13929. * Decode response as ArrayBuffer
  13930. *
  13931. * @return Promise
  13932. */
  13933. arrayBuffer() {
  13934. return consumeBody.call(this).then(function (buf) {
  13935. return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  13936. });
  13937. },
  13938. /**
  13939. * Return raw response as Blob
  13940. *
  13941. * @return Promise
  13942. */
  13943. blob() {
  13944. let ct = this.headers && this.headers.get('content-type') || '';
  13945. return consumeBody.call(this).then(function (buf) {
  13946. return Object.assign(
  13947. // Prevent copying
  13948. new Blob([], {
  13949. type: ct.toLowerCase()
  13950. }), {
  13951. [BUFFER]: buf
  13952. });
  13953. });
  13954. },
  13955. /**
  13956. * Decode response as json
  13957. *
  13958. * @return Promise
  13959. */
  13960. json() {
  13961. var _this2 = this;
  13962. return consumeBody.call(this).then(function (buffer) {
  13963. try {
  13964. return JSON.parse(buffer.toString());
  13965. } catch (err) {
  13966. return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
  13967. }
  13968. });
  13969. },
  13970. /**
  13971. * Decode response as text
  13972. *
  13973. * @return Promise
  13974. */
  13975. text() {
  13976. return consumeBody.call(this).then(function (buffer) {
  13977. return buffer.toString();
  13978. });
  13979. },
  13980. /**
  13981. * Decode response as buffer (non-spec api)
  13982. *
  13983. * @return Promise
  13984. */
  13985. buffer() {
  13986. return consumeBody.call(this);
  13987. },
  13988. /**
  13989. * Decode response as text, while automatically detecting the encoding and
  13990. * trying to decode to UTF-8 (non-spec api)
  13991. *
  13992. * @return Promise
  13993. */
  13994. textConverted() {
  13995. var _this3 = this;
  13996. return consumeBody.call(this).then(function (buffer) {
  13997. return convertBody(buffer, _this3.headers);
  13998. });
  13999. }
  14000. };
  14001. // In browsers, all properties are enumerable.
  14002. Object.defineProperties(Body.prototype, {
  14003. body: { enumerable: true },
  14004. bodyUsed: { enumerable: true },
  14005. arrayBuffer: { enumerable: true },
  14006. blob: { enumerable: true },
  14007. json: { enumerable: true },
  14008. text: { enumerable: true }
  14009. });
  14010. Body.mixIn = function (proto) {
  14011. for (const name of Object.getOwnPropertyNames(Body.prototype)) {
  14012. // istanbul ignore else: future proof
  14013. if (!(name in proto)) {
  14014. const desc = Object.getOwnPropertyDescriptor(Body.prototype, name);
  14015. Object.defineProperty(proto, name, desc);
  14016. }
  14017. }
  14018. };
  14019. /**
  14020. * Consume and convert an entire Body to a Buffer.
  14021. *
  14022. * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body
  14023. *
  14024. * @return Promise
  14025. */
  14026. function consumeBody() {
  14027. var _this4 = this;
  14028. if (this[INTERNALS].disturbed) {
  14029. return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
  14030. }
  14031. this[INTERNALS].disturbed = true;
  14032. if (this[INTERNALS].error) {
  14033. return Body.Promise.reject(this[INTERNALS].error);
  14034. }
  14035. let body = this.body;
  14036. // body is null
  14037. if (body === null) {
  14038. return Body.Promise.resolve(Buffer.alloc(0));
  14039. }
  14040. // body is blob
  14041. if (isBlob(body)) {
  14042. body = body.stream();
  14043. }
  14044. // body is buffer
  14045. if (Buffer.isBuffer(body)) {
  14046. return Body.Promise.resolve(body);
  14047. }
  14048. // istanbul ignore if: should never happen
  14049. if (!(body instanceof Stream)) {
  14050. return Body.Promise.resolve(Buffer.alloc(0));
  14051. }
  14052. // body is stream
  14053. // get ready to actually consume the body
  14054. let accum = [];
  14055. let accumBytes = 0;
  14056. let abort = false;
  14057. return new Body.Promise(function (resolve, reject) {
  14058. let resTimeout;
  14059. // allow timeout on slow response body
  14060. if (_this4.timeout) {
  14061. resTimeout = setTimeout(function () {
  14062. abort = true;
  14063. reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));
  14064. }, _this4.timeout);
  14065. }
  14066. // handle stream errors
  14067. body.on('error', function (err) {
  14068. if (err.name === 'AbortError') {
  14069. // if the request was aborted, reject with this Error
  14070. abort = true;
  14071. reject(err);
  14072. } else {
  14073. // other errors, such as incorrect content-encoding
  14074. reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));
  14075. }
  14076. });
  14077. body.on('data', function (chunk) {
  14078. if (abort || chunk === null) {
  14079. return;
  14080. }
  14081. if (_this4.size && accumBytes + chunk.length > _this4.size) {
  14082. abort = true;
  14083. reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));
  14084. return;
  14085. }
  14086. accumBytes += chunk.length;
  14087. accum.push(chunk);
  14088. });
  14089. body.on('end', function () {
  14090. if (abort) {
  14091. return;
  14092. }
  14093. clearTimeout(resTimeout);
  14094. try {
  14095. resolve(Buffer.concat(accum, accumBytes));
  14096. } catch (err) {
  14097. // handle streams that have accumulated too much data (issue #414)
  14098. reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));
  14099. }
  14100. });
  14101. });
  14102. }
  14103. /**
  14104. * Detect buffer encoding and convert to target encoding
  14105. * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding
  14106. *
  14107. * @param Buffer buffer Incoming buffer
  14108. * @param String encoding Target encoding
  14109. * @return String
  14110. */
  14111. function convertBody(buffer, headers) {
  14112. if (typeof convert !== 'function') {
  14113. throw new Error('The package `encoding` must be installed to use the textConverted() function');
  14114. }
  14115. const ct = headers.get('content-type');
  14116. let charset = 'utf-8';
  14117. let res, str;
  14118. // header
  14119. if (ct) {
  14120. res = /charset=([^;]*)/i.exec(ct);
  14121. }
  14122. // no charset in content type, peek at response body for at most 1024 bytes
  14123. str = buffer.slice(0, 1024).toString();
  14124. // html5
  14125. if (!res && str) {
  14126. res = /<meta.+?charset=(['"])(.+?)\1/i.exec(str);
  14127. }
  14128. // html4
  14129. if (!res && str) {
  14130. res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
  14131. if (!res) {
  14132. res = /<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(str);
  14133. if (res) {
  14134. res.pop(); // drop last quote
  14135. }
  14136. }
  14137. if (res) {
  14138. res = /charset=(.*)/i.exec(res.pop());
  14139. }
  14140. }
  14141. // xml
  14142. if (!res && str) {
  14143. res = /<\?xml.+?encoding=(['"])(.+?)\1/i.exec(str);
  14144. }
  14145. // found charset
  14146. if (res) {
  14147. charset = res.pop();
  14148. // prevent decode issues when sites use incorrect encoding
  14149. // ref: https://hsivonen.fi/encoding-menu/
  14150. if (charset === 'gb2312' || charset === 'gbk') {
  14151. charset = 'gb18030';
  14152. }
  14153. }
  14154. // turn raw buffers into a single utf-8 buffer
  14155. return convert(buffer, 'UTF-8', charset).toString();
  14156. }
  14157. /**
  14158. * Detect a URLSearchParams object
  14159. * ref: https://github.com/bitinn/node-fetch/issues/296#issuecomment-307598143
  14160. *
  14161. * @param Object obj Object to detect by type or brand
  14162. * @return String
  14163. */
  14164. function isURLSearchParams(obj) {
  14165. // Duck-typing as a necessary condition.
  14166. 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') {
  14167. return false;
  14168. }
  14169. // Brand-checking and more duck-typing as optional condition.
  14170. return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';
  14171. }
  14172. /**
  14173. * Check if `obj` is a W3C `Blob` object (which `File` inherits from)
  14174. * @param {*} obj
  14175. * @return {boolean}
  14176. */
  14177. function isBlob(obj) {
  14178. 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]);
  14179. }
  14180. /**
  14181. * Clone body given Res/Req instance
  14182. *
  14183. * @param Mixed instance Response or Request instance
  14184. * @return Mixed
  14185. */
  14186. function clone(instance) {
  14187. let p1, p2;
  14188. let body = instance.body;
  14189. // don't allow cloning a used body
  14190. if (instance.bodyUsed) {
  14191. throw new Error('cannot clone body after it is used');
  14192. }
  14193. // check that body is a stream and not form-data object
  14194. // note: we can't clone the form-data object without having it as a dependency
  14195. if (body instanceof Stream && typeof body.getBoundary !== 'function') {
  14196. // tee instance body
  14197. p1 = new PassThrough();
  14198. p2 = new PassThrough();
  14199. body.pipe(p1);
  14200. body.pipe(p2);
  14201. // set instance body to teed body and return the other teed body
  14202. instance[INTERNALS].body = p1;
  14203. body = p2;
  14204. }
  14205. return body;
  14206. }
  14207. /**
  14208. * Performs the operation "extract a `Content-Type` value from |object|" as
  14209. * specified in the specification:
  14210. * https://fetch.spec.whatwg.org/#concept-bodyinit-extract
  14211. *
  14212. * This function assumes that instance.body is present.
  14213. *
  14214. * @param Mixed instance Any options.body input
  14215. */
  14216. function extractContentType(body) {
  14217. if (body === null) {
  14218. // body is null
  14219. return null;
  14220. } else if (typeof body === 'string') {
  14221. // body is string
  14222. return 'text/plain;charset=UTF-8';
  14223. } else if (isURLSearchParams(body)) {
  14224. // body is a URLSearchParams
  14225. return 'application/x-www-form-urlencoded;charset=UTF-8';
  14226. } else if (isBlob(body)) {
  14227. // body is blob
  14228. return body.type || null;
  14229. } else if (Buffer.isBuffer(body)) {
  14230. // body is buffer
  14231. return null;
  14232. } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  14233. // body is ArrayBuffer
  14234. return null;
  14235. } else if (ArrayBuffer.isView(body)) {
  14236. // body is ArrayBufferView
  14237. return null;
  14238. } else if (typeof body.getBoundary === 'function') {
  14239. // detect form data input from form-data module
  14240. return `multipart/form-data;boundary=${body.getBoundary()}`;
  14241. } else if (body instanceof Stream) {
  14242. // body is stream
  14243. // can't really do much about this
  14244. return null;
  14245. } else {
  14246. // Body constructor defaults other things to string
  14247. return 'text/plain;charset=UTF-8';
  14248. }
  14249. }
  14250. /**
  14251. * The Fetch Standard treats this as if "total bytes" is a property on the body.
  14252. * For us, we have to explicitly get it with a function.
  14253. *
  14254. * ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes
  14255. *
  14256. * @param Body instance Instance of Body
  14257. * @return Number? Number of bytes, or null if not possible
  14258. */
  14259. function getTotalBytes(instance) {
  14260. const body = instance.body;
  14261. if (body === null) {
  14262. // body is null
  14263. return 0;
  14264. } else if (isBlob(body)) {
  14265. return body.size;
  14266. } else if (Buffer.isBuffer(body)) {
  14267. // body is buffer
  14268. return body.length;
  14269. } else if (body && typeof body.getLengthSync === 'function') {
  14270. // detect form data input from form-data module
  14271. if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x
  14272. body.hasKnownLength && body.hasKnownLength()) {
  14273. // 2.x
  14274. return body.getLengthSync();
  14275. }
  14276. return null;
  14277. } else {
  14278. // body is stream
  14279. return null;
  14280. }
  14281. }
  14282. /**
  14283. * Write a Body to a Node.js WritableStream (e.g. http.Request) object.
  14284. *
  14285. * @param Body instance Instance of Body
  14286. * @return Void
  14287. */
  14288. function writeToStream(dest, instance) {
  14289. const body = instance.body;
  14290. if (body === null) {
  14291. // body is null
  14292. dest.end();
  14293. } else if (isBlob(body)) {
  14294. body.stream().pipe(dest);
  14295. } else if (Buffer.isBuffer(body)) {
  14296. // body is buffer
  14297. dest.write(body);
  14298. dest.end();
  14299. } else {
  14300. // body is stream
  14301. body.pipe(dest);
  14302. }
  14303. }
  14304. // expose Promise
  14305. Body.Promise = global.Promise;
  14306. /**
  14307. * headers.js
  14308. *
  14309. * Headers class offers convenient helpers
  14310. */
  14311. const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
  14312. const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
  14313. function validateName(name) {
  14314. name = `${name}`;
  14315. if (invalidTokenRegex.test(name) || name === '') {
  14316. throw new TypeError(`${name} is not a legal HTTP header name`);
  14317. }
  14318. }
  14319. function validateValue(value) {
  14320. value = `${value}`;
  14321. if (invalidHeaderCharRegex.test(value)) {
  14322. throw new TypeError(`${value} is not a legal HTTP header value`);
  14323. }
  14324. }
  14325. /**
  14326. * Find the key in the map object given a header name.
  14327. *
  14328. * Returns undefined if not found.
  14329. *
  14330. * @param String name Header name
  14331. * @return String|Undefined
  14332. */
  14333. function find(map, name) {
  14334. name = name.toLowerCase();
  14335. for (const key in map) {
  14336. if (key.toLowerCase() === name) {
  14337. return key;
  14338. }
  14339. }
  14340. return undefined;
  14341. }
  14342. const MAP = Symbol('map');
  14343. class Headers {
  14344. /**
  14345. * Headers class
  14346. *
  14347. * @param Object headers Response headers
  14348. * @return Void
  14349. */
  14350. constructor() {
  14351. let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  14352. this[MAP] = Object.create(null);
  14353. if (init instanceof Headers) {
  14354. const rawHeaders = init.raw();
  14355. const headerNames = Object.keys(rawHeaders);
  14356. for (const headerName of headerNames) {
  14357. for (const value of rawHeaders[headerName]) {
  14358. this.append(headerName, value);
  14359. }
  14360. }
  14361. return;
  14362. }
  14363. // We don't worry about converting prop to ByteString here as append()
  14364. // will handle it.
  14365. if (init == null) ; else if (typeof init === 'object') {
  14366. const method = init[Symbol.iterator];
  14367. if (method != null) {
  14368. if (typeof method !== 'function') {
  14369. throw new TypeError('Header pairs must be iterable');
  14370. }
  14371. // sequence<sequence<ByteString>>
  14372. // Note: per spec we have to first exhaust the lists then process them
  14373. const pairs = [];
  14374. for (const pair of init) {
  14375. if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {
  14376. throw new TypeError('Each header pair must be iterable');
  14377. }
  14378. pairs.push(Array.from(pair));
  14379. }
  14380. for (const pair of pairs) {
  14381. if (pair.length !== 2) {
  14382. throw new TypeError('Each header pair must be a name/value tuple');
  14383. }
  14384. this.append(pair[0], pair[1]);
  14385. }
  14386. } else {
  14387. // record<ByteString, ByteString>
  14388. for (const key of Object.keys(init)) {
  14389. const value = init[key];
  14390. this.append(key, value);
  14391. }
  14392. }
  14393. } else {
  14394. throw new TypeError('Provided initializer must be an object');
  14395. }
  14396. }
  14397. /**
  14398. * Return combined header value given name
  14399. *
  14400. * @param String name Header name
  14401. * @return Mixed
  14402. */
  14403. get(name) {
  14404. name = `${name}`;
  14405. validateName(name);
  14406. const key = find(this[MAP], name);
  14407. if (key === undefined) {
  14408. return null;
  14409. }
  14410. return this[MAP][key].join(', ');
  14411. }
  14412. /**
  14413. * Iterate over all headers
  14414. *
  14415. * @param Function callback Executed for each item with parameters (value, name, thisArg)
  14416. * @param Boolean thisArg `this` context for callback function
  14417. * @return Void
  14418. */
  14419. forEach(callback) {
  14420. let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
  14421. let pairs = getHeaders(this);
  14422. let i = 0;
  14423. while (i < pairs.length) {
  14424. var _pairs$i = pairs[i];
  14425. const name = _pairs$i[0],
  14426. value = _pairs$i[1];
  14427. callback.call(thisArg, value, name, this);
  14428. pairs = getHeaders(this);
  14429. i++;
  14430. }
  14431. }
  14432. /**
  14433. * Overwrite header values given name
  14434. *
  14435. * @param String name Header name
  14436. * @param String value Header value
  14437. * @return Void
  14438. */
  14439. set(name, value) {
  14440. name = `${name}`;
  14441. value = `${value}`;
  14442. validateName(name);
  14443. validateValue(value);
  14444. const key = find(this[MAP], name);
  14445. this[MAP][key !== undefined ? key : name] = [value];
  14446. }
  14447. /**
  14448. * Append a value onto existing header
  14449. *
  14450. * @param String name Header name
  14451. * @param String value Header value
  14452. * @return Void
  14453. */
  14454. append(name, value) {
  14455. name = `${name}`;
  14456. value = `${value}`;
  14457. validateName(name);
  14458. validateValue(value);
  14459. const key = find(this[MAP], name);
  14460. if (key !== undefined) {
  14461. this[MAP][key].push(value);
  14462. } else {
  14463. this[MAP][name] = [value];
  14464. }
  14465. }
  14466. /**
  14467. * Check for header name existence
  14468. *
  14469. * @param String name Header name
  14470. * @return Boolean
  14471. */
  14472. has(name) {
  14473. name = `${name}`;
  14474. validateName(name);
  14475. return find(this[MAP], name) !== undefined;
  14476. }
  14477. /**
  14478. * Delete all header values given name
  14479. *
  14480. * @param String name Header name
  14481. * @return Void
  14482. */
  14483. delete(name) {
  14484. name = `${name}`;
  14485. validateName(name);
  14486. const key = find(this[MAP], name);
  14487. if (key !== undefined) {
  14488. delete this[MAP][key];
  14489. }
  14490. }
  14491. /**
  14492. * Return raw headers (non-spec api)
  14493. *
  14494. * @return Object
  14495. */
  14496. raw() {
  14497. return this[MAP];
  14498. }
  14499. /**
  14500. * Get an iterator on keys.
  14501. *
  14502. * @return Iterator
  14503. */
  14504. keys() {
  14505. return createHeadersIterator(this, 'key');
  14506. }
  14507. /**
  14508. * Get an iterator on values.
  14509. *
  14510. * @return Iterator
  14511. */
  14512. values() {
  14513. return createHeadersIterator(this, 'value');
  14514. }
  14515. /**
  14516. * Get an iterator on entries.
  14517. *
  14518. * This is the default iterator of the Headers object.
  14519. *
  14520. * @return Iterator
  14521. */
  14522. [Symbol.iterator]() {
  14523. return createHeadersIterator(this, 'key+value');
  14524. }
  14525. }
  14526. Headers.prototype.entries = Headers.prototype[Symbol.iterator];
  14527. Object.defineProperty(Headers.prototype, Symbol.toStringTag, {
  14528. value: 'Headers',
  14529. writable: false,
  14530. enumerable: false,
  14531. configurable: true
  14532. });
  14533. Object.defineProperties(Headers.prototype, {
  14534. get: { enumerable: true },
  14535. forEach: { enumerable: true },
  14536. set: { enumerable: true },
  14537. append: { enumerable: true },
  14538. has: { enumerable: true },
  14539. delete: { enumerable: true },
  14540. keys: { enumerable: true },
  14541. values: { enumerable: true },
  14542. entries: { enumerable: true }
  14543. });
  14544. function getHeaders(headers) {
  14545. let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';
  14546. const keys = Object.keys(headers[MAP]).sort();
  14547. return keys.map(kind === 'key' ? function (k) {
  14548. return k.toLowerCase();
  14549. } : kind === 'value' ? function (k) {
  14550. return headers[MAP][k].join(', ');
  14551. } : function (k) {
  14552. return [k.toLowerCase(), headers[MAP][k].join(', ')];
  14553. });
  14554. }
  14555. const INTERNAL = Symbol('internal');
  14556. function createHeadersIterator(target, kind) {
  14557. const iterator = Object.create(HeadersIteratorPrototype);
  14558. iterator[INTERNAL] = {
  14559. target,
  14560. kind,
  14561. index: 0
  14562. };
  14563. return iterator;
  14564. }
  14565. const HeadersIteratorPrototype = Object.setPrototypeOf({
  14566. next() {
  14567. // istanbul ignore if
  14568. if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
  14569. throw new TypeError('Value of `this` is not a HeadersIterator');
  14570. }
  14571. var _INTERNAL = this[INTERNAL];
  14572. const target = _INTERNAL.target,
  14573. kind = _INTERNAL.kind,
  14574. index = _INTERNAL.index;
  14575. const values = getHeaders(target, kind);
  14576. const len = values.length;
  14577. if (index >= len) {
  14578. return {
  14579. value: undefined,
  14580. done: true
  14581. };
  14582. }
  14583. this[INTERNAL].index = index + 1;
  14584. return {
  14585. value: values[index],
  14586. done: false
  14587. };
  14588. }
  14589. }, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));
  14590. Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {
  14591. value: 'HeadersIterator',
  14592. writable: false,
  14593. enumerable: false,
  14594. configurable: true
  14595. });
  14596. /**
  14597. * Export the Headers object in a form that Node.js can consume.
  14598. *
  14599. * @param Headers headers
  14600. * @return Object
  14601. */
  14602. function exportNodeCompatibleHeaders(headers) {
  14603. const obj = Object.assign({ __proto__: null }, headers[MAP]);
  14604. // http.request() only supports string as Host header. This hack makes
  14605. // specifying custom Host header possible.
  14606. const hostHeaderKey = find(headers[MAP], 'Host');
  14607. if (hostHeaderKey !== undefined) {
  14608. obj[hostHeaderKey] = obj[hostHeaderKey][0];
  14609. }
  14610. return obj;
  14611. }
  14612. /**
  14613. * Create a Headers object from an object of headers, ignoring those that do
  14614. * not conform to HTTP grammar productions.
  14615. *
  14616. * @param Object obj Object of headers
  14617. * @return Headers
  14618. */
  14619. function createHeadersLenient(obj) {
  14620. const headers = new Headers();
  14621. for (const name of Object.keys(obj)) {
  14622. if (invalidTokenRegex.test(name)) {
  14623. continue;
  14624. }
  14625. if (Array.isArray(obj[name])) {
  14626. for (const val of obj[name]) {
  14627. if (invalidHeaderCharRegex.test(val)) {
  14628. continue;
  14629. }
  14630. if (headers[MAP][name] === undefined) {
  14631. headers[MAP][name] = [val];
  14632. } else {
  14633. headers[MAP][name].push(val);
  14634. }
  14635. }
  14636. } else if (!invalidHeaderCharRegex.test(obj[name])) {
  14637. headers[MAP][name] = [obj[name]];
  14638. }
  14639. }
  14640. return headers;
  14641. }
  14642. const INTERNALS$1 = Symbol('Response internals');
  14643. // fix an issue where "STATUS_CODES" aren't a named export for node <10
  14644. const STATUS_CODES = http.STATUS_CODES;
  14645. /**
  14646. * Response class
  14647. *
  14648. * @param Stream body Readable stream
  14649. * @param Object opts Response options
  14650. * @return Void
  14651. */
  14652. class Response {
  14653. constructor() {
  14654. let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  14655. let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  14656. Body.call(this, body, opts);
  14657. const status = opts.status || 200;
  14658. const headers = new Headers(opts.headers);
  14659. if (body != null && !headers.has('Content-Type')) {
  14660. const contentType = extractContentType(body);
  14661. if (contentType) {
  14662. headers.append('Content-Type', contentType);
  14663. }
  14664. }
  14665. this[INTERNALS$1] = {
  14666. url: opts.url,
  14667. status,
  14668. statusText: opts.statusText || STATUS_CODES[status],
  14669. headers,
  14670. counter: opts.counter
  14671. };
  14672. }
  14673. get url() {
  14674. return this[INTERNALS$1].url || '';
  14675. }
  14676. get status() {
  14677. return this[INTERNALS$1].status;
  14678. }
  14679. /**
  14680. * Convenience property representing if the request ended normally
  14681. */
  14682. get ok() {
  14683. return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;
  14684. }
  14685. get redirected() {
  14686. return this[INTERNALS$1].counter > 0;
  14687. }
  14688. get statusText() {
  14689. return this[INTERNALS$1].statusText;
  14690. }
  14691. get headers() {
  14692. return this[INTERNALS$1].headers;
  14693. }
  14694. /**
  14695. * Clone this response
  14696. *
  14697. * @return Response
  14698. */
  14699. clone() {
  14700. return new Response(clone(this), {
  14701. url: this.url,
  14702. status: this.status,
  14703. statusText: this.statusText,
  14704. headers: this.headers,
  14705. ok: this.ok,
  14706. redirected: this.redirected
  14707. });
  14708. }
  14709. }
  14710. Body.mixIn(Response.prototype);
  14711. Object.defineProperties(Response.prototype, {
  14712. url: { enumerable: true },
  14713. status: { enumerable: true },
  14714. ok: { enumerable: true },
  14715. redirected: { enumerable: true },
  14716. statusText: { enumerable: true },
  14717. headers: { enumerable: true },
  14718. clone: { enumerable: true }
  14719. });
  14720. Object.defineProperty(Response.prototype, Symbol.toStringTag, {
  14721. value: 'Response',
  14722. writable: false,
  14723. enumerable: false,
  14724. configurable: true
  14725. });
  14726. const INTERNALS$2 = Symbol('Request internals');
  14727. const URL = Url.URL || whatwgUrl.URL;
  14728. // fix an issue where "format", "parse" aren't a named export for node <10
  14729. const parse_url = Url.parse;
  14730. const format_url = Url.format;
  14731. /**
  14732. * Wrapper around `new URL` to handle arbitrary URLs
  14733. *
  14734. * @param {string} urlStr
  14735. * @return {void}
  14736. */
  14737. function parseURL(urlStr) {
  14738. /*
  14739. Check whether the URL is absolute or not
  14740. Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
  14741. Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
  14742. */
  14743. if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) {
  14744. urlStr = new URL(urlStr).toString();
  14745. }
  14746. // Fallback to old implementation for arbitrary URLs
  14747. return parse_url(urlStr);
  14748. }
  14749. const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
  14750. /**
  14751. * Check if a value is an instance of Request.
  14752. *
  14753. * @param Mixed input
  14754. * @return Boolean
  14755. */
  14756. function isRequest(input) {
  14757. return typeof input === 'object' && typeof input[INTERNALS$2] === 'object';
  14758. }
  14759. function isAbortSignal(signal) {
  14760. const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
  14761. return !!(proto && proto.constructor.name === 'AbortSignal');
  14762. }
  14763. /**
  14764. * Request class
  14765. *
  14766. * @param Mixed input Url or Request instance
  14767. * @param Object init Custom options
  14768. * @return Void
  14769. */
  14770. class Request {
  14771. constructor(input) {
  14772. let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  14773. let parsedURL;
  14774. // normalize input
  14775. if (!isRequest(input)) {
  14776. if (input && input.href) {
  14777. // in order to support Node.js' Url objects; though WHATWG's URL objects
  14778. // will fall into this branch also (since their `toString()` will return
  14779. // `href` property anyway)
  14780. parsedURL = parseURL(input.href);
  14781. } else {
  14782. // coerce input to a string before attempting to parse
  14783. parsedURL = parseURL(`${input}`);
  14784. }
  14785. input = {};
  14786. } else {
  14787. parsedURL = parseURL(input.url);
  14788. }
  14789. let method = init.method || input.method || 'GET';
  14790. method = method.toUpperCase();
  14791. if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {
  14792. throw new TypeError('Request with GET/HEAD method cannot have body');
  14793. }
  14794. let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
  14795. Body.call(this, inputBody, {
  14796. timeout: init.timeout || input.timeout || 0,
  14797. size: init.size || input.size || 0
  14798. });
  14799. const headers = new Headers(init.headers || input.headers || {});
  14800. if (inputBody != null && !headers.has('Content-Type')) {
  14801. const contentType = extractContentType(inputBody);
  14802. if (contentType) {
  14803. headers.append('Content-Type', contentType);
  14804. }
  14805. }
  14806. let signal = isRequest(input) ? input.signal : null;
  14807. if ('signal' in init) signal = init.signal;
  14808. if (signal != null && !isAbortSignal(signal)) {
  14809. throw new TypeError('Expected signal to be an instanceof AbortSignal');
  14810. }
  14811. this[INTERNALS$2] = {
  14812. method,
  14813. redirect: init.redirect || input.redirect || 'follow',
  14814. headers,
  14815. parsedURL,
  14816. signal
  14817. };
  14818. // node-fetch-only options
  14819. this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;
  14820. this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
  14821. this.counter = init.counter || input.counter || 0;
  14822. this.agent = init.agent || input.agent;
  14823. }
  14824. get method() {
  14825. return this[INTERNALS$2].method;
  14826. }
  14827. get url() {
  14828. return format_url(this[INTERNALS$2].parsedURL);
  14829. }
  14830. get headers() {
  14831. return this[INTERNALS$2].headers;
  14832. }
  14833. get redirect() {
  14834. return this[INTERNALS$2].redirect;
  14835. }
  14836. get signal() {
  14837. return this[INTERNALS$2].signal;
  14838. }
  14839. /**
  14840. * Clone this request
  14841. *
  14842. * @return Request
  14843. */
  14844. clone() {
  14845. return new Request(this);
  14846. }
  14847. }
  14848. Body.mixIn(Request.prototype);
  14849. Object.defineProperty(Request.prototype, Symbol.toStringTag, {
  14850. value: 'Request',
  14851. writable: false,
  14852. enumerable: false,
  14853. configurable: true
  14854. });
  14855. Object.defineProperties(Request.prototype, {
  14856. method: { enumerable: true },
  14857. url: { enumerable: true },
  14858. headers: { enumerable: true },
  14859. redirect: { enumerable: true },
  14860. clone: { enumerable: true },
  14861. signal: { enumerable: true }
  14862. });
  14863. /**
  14864. * Convert a Request to Node.js http request options.
  14865. *
  14866. * @param Request A Request instance
  14867. * @return Object The options object to be passed to http.request
  14868. */
  14869. function getNodeRequestOptions(request) {
  14870. const parsedURL = request[INTERNALS$2].parsedURL;
  14871. const headers = new Headers(request[INTERNALS$2].headers);
  14872. // fetch step 1.3
  14873. if (!headers.has('Accept')) {
  14874. headers.set('Accept', '*/*');
  14875. }
  14876. // Basic fetch
  14877. if (!parsedURL.protocol || !parsedURL.hostname) {
  14878. throw new TypeError('Only absolute URLs are supported');
  14879. }
  14880. if (!/^https?:$/.test(parsedURL.protocol)) {
  14881. throw new TypeError('Only HTTP(S) protocols are supported');
  14882. }
  14883. if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) {
  14884. throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');
  14885. }
  14886. // HTTP-network-or-cache fetch steps 2.4-2.7
  14887. let contentLengthValue = null;
  14888. if (request.body == null && /^(POST|PUT)$/i.test(request.method)) {
  14889. contentLengthValue = '0';
  14890. }
  14891. if (request.body != null) {
  14892. const totalBytes = getTotalBytes(request);
  14893. if (typeof totalBytes === 'number') {
  14894. contentLengthValue = String(totalBytes);
  14895. }
  14896. }
  14897. if (contentLengthValue) {
  14898. headers.set('Content-Length', contentLengthValue);
  14899. }
  14900. // HTTP-network-or-cache fetch step 2.11
  14901. if (!headers.has('User-Agent')) {
  14902. headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');
  14903. }
  14904. // HTTP-network-or-cache fetch step 2.15
  14905. if (request.compress && !headers.has('Accept-Encoding')) {
  14906. headers.set('Accept-Encoding', 'gzip,deflate');
  14907. }
  14908. let agent = request.agent;
  14909. if (typeof agent === 'function') {
  14910. agent = agent(parsedURL);
  14911. }
  14912. // HTTP-network fetch step 4.2
  14913. // chunked encoding is handled by Node.js
  14914. return Object.assign({}, parsedURL, {
  14915. method: request.method,
  14916. headers: exportNodeCompatibleHeaders(headers),
  14917. agent
  14918. });
  14919. }
  14920. /**
  14921. * abort-error.js
  14922. *
  14923. * AbortError interface for cancelled requests
  14924. */
  14925. /**
  14926. * Create AbortError instance
  14927. *
  14928. * @param String message Error message for human
  14929. * @return AbortError
  14930. */
  14931. function AbortError(message) {
  14932. Error.call(this, message);
  14933. this.type = 'aborted';
  14934. this.message = message;
  14935. // hide custom error implementation details from end-users
  14936. Error.captureStackTrace(this, this.constructor);
  14937. }
  14938. AbortError.prototype = Object.create(Error.prototype);
  14939. AbortError.prototype.constructor = AbortError;
  14940. AbortError.prototype.name = 'AbortError';
  14941. const URL$1 = Url.URL || whatwgUrl.URL;
  14942. // fix an issue where "PassThrough", "resolve" aren't a named export for node <10
  14943. const PassThrough$1 = Stream.PassThrough;
  14944. const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) {
  14945. const orig = new URL$1(original).hostname;
  14946. const dest = new URL$1(destination).hostname;
  14947. return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);
  14948. };
  14949. /**
  14950. * isSameProtocol reports whether the two provided URLs use the same protocol.
  14951. *
  14952. * Both domains must already be in canonical form.
  14953. * @param {string|URL} original
  14954. * @param {string|URL} destination
  14955. */
  14956. const isSameProtocol = function isSameProtocol(destination, original) {
  14957. const orig = new URL$1(original).protocol;
  14958. const dest = new URL$1(destination).protocol;
  14959. return orig === dest;
  14960. };
  14961. /**
  14962. * Fetch function
  14963. *
  14964. * @param Mixed url Absolute url or Request instance
  14965. * @param Object opts Fetch options
  14966. * @return Promise
  14967. */
  14968. function fetch(url, opts) {
  14969. // allow custom promise
  14970. if (!fetch.Promise) {
  14971. throw new Error('native promise missing, set fetch.Promise to your favorite alternative');
  14972. }
  14973. Body.Promise = fetch.Promise;
  14974. // wrap http.request into fetch
  14975. return new fetch.Promise(function (resolve, reject) {
  14976. // build request object
  14977. const request = new Request(url, opts);
  14978. const options = getNodeRequestOptions(request);
  14979. const send = (options.protocol === 'https:' ? https : http).request;
  14980. const signal = request.signal;
  14981. let response = null;
  14982. const abort = function abort() {
  14983. let error = new AbortError('The user aborted a request.');
  14984. reject(error);
  14985. if (request.body && request.body instanceof Stream.Readable) {
  14986. destroyStream(request.body, error);
  14987. }
  14988. if (!response || !response.body) return;
  14989. response.body.emit('error', error);
  14990. };
  14991. if (signal && signal.aborted) {
  14992. abort();
  14993. return;
  14994. }
  14995. const abortAndFinalize = function abortAndFinalize() {
  14996. abort();
  14997. finalize();
  14998. };
  14999. // send request
  15000. const req = send(options);
  15001. let reqTimeout;
  15002. if (signal) {
  15003. signal.addEventListener('abort', abortAndFinalize);
  15004. }
  15005. function finalize() {
  15006. req.abort();
  15007. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  15008. clearTimeout(reqTimeout);
  15009. }
  15010. if (request.timeout) {
  15011. req.once('socket', function (socket) {
  15012. reqTimeout = setTimeout(function () {
  15013. reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));
  15014. finalize();
  15015. }, request.timeout);
  15016. });
  15017. }
  15018. req.on('error', function (err) {
  15019. reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
  15020. if (response && response.body) {
  15021. destroyStream(response.body, err);
  15022. }
  15023. finalize();
  15024. });
  15025. fixResponseChunkedTransferBadEnding(req, function (err) {
  15026. if (signal && signal.aborted) {
  15027. return;
  15028. }
  15029. if (response && response.body) {
  15030. destroyStream(response.body, err);
  15031. }
  15032. });
  15033. /* c8 ignore next 18 */
  15034. if (parseInt(process.version.substring(1)) < 14) {
  15035. // Before Node.js 14, pipeline() does not fully support async iterators and does not always
  15036. // properly handle when the socket close/end events are out of order.
  15037. req.on('socket', function (s) {
  15038. s.addListener('close', function (hadError) {
  15039. // if a data listener is still present we didn't end cleanly
  15040. const hasDataListener = s.listenerCount('data') > 0;
  15041. // if end happened before close but the socket didn't emit an error, do it now
  15042. if (response && hasDataListener && !hadError && !(signal && signal.aborted)) {
  15043. const err = new Error('Premature close');
  15044. err.code = 'ERR_STREAM_PREMATURE_CLOSE';
  15045. response.body.emit('error', err);
  15046. }
  15047. });
  15048. });
  15049. }
  15050. req.on('response', function (res) {
  15051. clearTimeout(reqTimeout);
  15052. const headers = createHeadersLenient(res.headers);
  15053. // HTTP fetch step 5
  15054. if (fetch.isRedirect(res.statusCode)) {
  15055. // HTTP fetch step 5.2
  15056. const location = headers.get('Location');
  15057. // HTTP fetch step 5.3
  15058. let locationURL = null;
  15059. try {
  15060. locationURL = location === null ? null : new URL$1(location, request.url).toString();
  15061. } catch (err) {
  15062. // error here can only be invalid URL in Location: header
  15063. // do not throw when options.redirect == manual
  15064. // let the user extract the errorneous redirect URL
  15065. if (request.redirect !== 'manual') {
  15066. reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect'));
  15067. finalize();
  15068. return;
  15069. }
  15070. }
  15071. // HTTP fetch step 5.5
  15072. switch (request.redirect) {
  15073. case 'error':
  15074. reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
  15075. finalize();
  15076. return;
  15077. case 'manual':
  15078. // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL.
  15079. if (locationURL !== null) {
  15080. // handle corrupted header
  15081. try {
  15082. headers.set('Location', locationURL);
  15083. } catch (err) {
  15084. // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request
  15085. reject(err);
  15086. }
  15087. }
  15088. break;
  15089. case 'follow':
  15090. // HTTP-redirect fetch step 2
  15091. if (locationURL === null) {
  15092. break;
  15093. }
  15094. // HTTP-redirect fetch step 5
  15095. if (request.counter >= request.follow) {
  15096. reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));
  15097. finalize();
  15098. return;
  15099. }
  15100. // HTTP-redirect fetch step 6 (counter increment)
  15101. // Create a new Request object.
  15102. const requestOpts = {
  15103. headers: new Headers(request.headers),
  15104. follow: request.follow,
  15105. counter: request.counter + 1,
  15106. agent: request.agent,
  15107. compress: request.compress,
  15108. method: request.method,
  15109. body: request.body,
  15110. signal: request.signal,
  15111. timeout: request.timeout,
  15112. size: request.size
  15113. };
  15114. if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
  15115. for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {
  15116. requestOpts.headers.delete(name);
  15117. }
  15118. }
  15119. // HTTP-redirect fetch step 9
  15120. if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {
  15121. reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));
  15122. finalize();
  15123. return;
  15124. }
  15125. // HTTP-redirect fetch step 11
  15126. if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {
  15127. requestOpts.method = 'GET';
  15128. requestOpts.body = undefined;
  15129. requestOpts.headers.delete('content-length');
  15130. }
  15131. // HTTP-redirect fetch step 15
  15132. resolve(fetch(new Request(locationURL, requestOpts)));
  15133. finalize();
  15134. return;
  15135. }
  15136. }
  15137. // prepare response
  15138. res.once('end', function () {
  15139. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  15140. });
  15141. let body = res.pipe(new PassThrough$1());
  15142. const response_options = {
  15143. url: request.url,
  15144. status: res.statusCode,
  15145. statusText: res.statusMessage,
  15146. headers: headers,
  15147. size: request.size,
  15148. timeout: request.timeout,
  15149. counter: request.counter
  15150. };
  15151. // HTTP-network fetch step 12.1.1.3
  15152. const codings = headers.get('Content-Encoding');
  15153. // HTTP-network fetch step 12.1.1.4: handle content codings
  15154. // in following scenarios we ignore compression support
  15155. // 1. compression support is disabled
  15156. // 2. HEAD request
  15157. // 3. no Content-Encoding header
  15158. // 4. no content response (204)
  15159. // 5. content not modified response (304)
  15160. if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {
  15161. response = new Response(body, response_options);
  15162. resolve(response);
  15163. return;
  15164. }
  15165. // For Node v6+
  15166. // Be less strict when decoding compressed responses, since sometimes
  15167. // servers send slightly invalid responses that are still accepted
  15168. // by common browsers.
  15169. // Always using Z_SYNC_FLUSH is what cURL does.
  15170. const zlibOptions = {
  15171. flush: zlib.Z_SYNC_FLUSH,
  15172. finishFlush: zlib.Z_SYNC_FLUSH
  15173. };
  15174. // for gzip
  15175. if (codings == 'gzip' || codings == 'x-gzip') {
  15176. body = body.pipe(zlib.createGunzip(zlibOptions));
  15177. response = new Response(body, response_options);
  15178. resolve(response);
  15179. return;
  15180. }
  15181. // for deflate
  15182. if (codings == 'deflate' || codings == 'x-deflate') {
  15183. // handle the infamous raw deflate response from old servers
  15184. // a hack for old IIS and Apache servers
  15185. const raw = res.pipe(new PassThrough$1());
  15186. raw.once('data', function (chunk) {
  15187. // see http://stackoverflow.com/questions/37519828
  15188. if ((chunk[0] & 0x0F) === 0x08) {
  15189. body = body.pipe(zlib.createInflate());
  15190. } else {
  15191. body = body.pipe(zlib.createInflateRaw());
  15192. }
  15193. response = new Response(body, response_options);
  15194. resolve(response);
  15195. });
  15196. raw.on('end', function () {
  15197. // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted.
  15198. if (!response) {
  15199. response = new Response(body, response_options);
  15200. resolve(response);
  15201. }
  15202. });
  15203. return;
  15204. }
  15205. // for br
  15206. if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {
  15207. body = body.pipe(zlib.createBrotliDecompress());
  15208. response = new Response(body, response_options);
  15209. resolve(response);
  15210. return;
  15211. }
  15212. // otherwise, use response as-is
  15213. response = new Response(body, response_options);
  15214. resolve(response);
  15215. });
  15216. writeToStream(req, request);
  15217. });
  15218. }
  15219. function fixResponseChunkedTransferBadEnding(request, errorCallback) {
  15220. let socket;
  15221. request.on('socket', function (s) {
  15222. socket = s;
  15223. });
  15224. request.on('response', function (response) {
  15225. const headers = response.headers;
  15226. if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {
  15227. response.once('close', function (hadError) {
  15228. // tests for socket presence, as in some situations the
  15229. // the 'socket' event is not triggered for the request
  15230. // (happens in deno), avoids `TypeError`
  15231. // if a data listener is still present we didn't end cleanly
  15232. const hasDataListener = socket && socket.listenerCount('data') > 0;
  15233. if (hasDataListener && !hadError) {
  15234. const err = new Error('Premature close');
  15235. err.code = 'ERR_STREAM_PREMATURE_CLOSE';
  15236. errorCallback(err);
  15237. }
  15238. });
  15239. }
  15240. });
  15241. }
  15242. function destroyStream(stream, err) {
  15243. if (stream.destroy) {
  15244. stream.destroy(err);
  15245. } else {
  15246. // node < 8
  15247. stream.emit('error', err);
  15248. stream.end();
  15249. }
  15250. }
  15251. /**
  15252. * Redirect code matching
  15253. *
  15254. * @param Number code Status code
  15255. * @return Boolean
  15256. */
  15257. fetch.isRedirect = function (code) {
  15258. return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
  15259. };
  15260. // expose Promise
  15261. fetch.Promise = global.Promise;
  15262. module.exports = exports = fetch;
  15263. Object.defineProperty(exports, "__esModule", ({ value: true }));
  15264. exports["default"] = exports;
  15265. exports.Headers = Headers;
  15266. exports.Request = Request;
  15267. exports.Response = Response;
  15268. exports.FetchError = FetchError;
  15269. exports.AbortError = AbortError;
  15270. /***/ }),
  15271. /***/ 2299:
  15272. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  15273. "use strict";
  15274. var punycode = __nccwpck_require__(5477);
  15275. var mappingTable = __nccwpck_require__(1907);
  15276. var PROCESSING_OPTIONS = {
  15277. TRANSITIONAL: 0,
  15278. NONTRANSITIONAL: 1
  15279. };
  15280. function normalize(str) { // fix bug in v8
  15281. return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000');
  15282. }
  15283. function findStatus(val) {
  15284. var start = 0;
  15285. var end = mappingTable.length - 1;
  15286. while (start <= end) {
  15287. var mid = Math.floor((start + end) / 2);
  15288. var target = mappingTable[mid];
  15289. if (target[0][0] <= val && target[0][1] >= val) {
  15290. return target;
  15291. } else if (target[0][0] > val) {
  15292. end = mid - 1;
  15293. } else {
  15294. start = mid + 1;
  15295. }
  15296. }
  15297. return null;
  15298. }
  15299. var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  15300. function countSymbols(string) {
  15301. return string
  15302. // replace every surrogate pair with a BMP symbol
  15303. .replace(regexAstralSymbols, '_')
  15304. // then get the length
  15305. .length;
  15306. }
  15307. function mapChars(domain_name, useSTD3, processing_option) {
  15308. var hasError = false;
  15309. var processed = "";
  15310. var len = countSymbols(domain_name);
  15311. for (var i = 0; i < len; ++i) {
  15312. var codePoint = domain_name.codePointAt(i);
  15313. var status = findStatus(codePoint);
  15314. switch (status[1]) {
  15315. case "disallowed":
  15316. hasError = true;
  15317. processed += String.fromCodePoint(codePoint);
  15318. break;
  15319. case "ignored":
  15320. break;
  15321. case "mapped":
  15322. processed += String.fromCodePoint.apply(String, status[2]);
  15323. break;
  15324. case "deviation":
  15325. if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) {
  15326. processed += String.fromCodePoint.apply(String, status[2]);
  15327. } else {
  15328. processed += String.fromCodePoint(codePoint);
  15329. }
  15330. break;
  15331. case "valid":
  15332. processed += String.fromCodePoint(codePoint);
  15333. break;
  15334. case "disallowed_STD3_mapped":
  15335. if (useSTD3) {
  15336. hasError = true;
  15337. processed += String.fromCodePoint(codePoint);
  15338. } else {
  15339. processed += String.fromCodePoint.apply(String, status[2]);
  15340. }
  15341. break;
  15342. case "disallowed_STD3_valid":
  15343. if (useSTD3) {
  15344. hasError = true;
  15345. }
  15346. processed += String.fromCodePoint(codePoint);
  15347. break;
  15348. }
  15349. }
  15350. return {
  15351. string: processed,
  15352. error: hasError
  15353. };
  15354. }
  15355. 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]/;
  15356. function validateLabel(label, processing_option) {
  15357. if (label.substr(0, 4) === "xn--") {
  15358. label = punycode.toUnicode(label);
  15359. processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
  15360. }
  15361. var error = false;
  15362. if (normalize(label) !== label ||
  15363. (label[3] === "-" && label[4] === "-") ||
  15364. label[0] === "-" || label[label.length - 1] === "-" ||
  15365. label.indexOf(".") !== -1 ||
  15366. label.search(combiningMarksRegex) === 0) {
  15367. error = true;
  15368. }
  15369. var len = countSymbols(label);
  15370. for (var i = 0; i < len; ++i) {
  15371. var status = findStatus(label.codePointAt(i));
  15372. if ((processing === PROCESSING_OPTIONS.TRANSITIONAL && status[1] !== "valid") ||
  15373. (processing === PROCESSING_OPTIONS.NONTRANSITIONAL &&
  15374. status[1] !== "valid" && status[1] !== "deviation")) {
  15375. error = true;
  15376. break;
  15377. }
  15378. }
  15379. return {
  15380. label: label,
  15381. error: error
  15382. };
  15383. }
  15384. function processing(domain_name, useSTD3, processing_option) {
  15385. var result = mapChars(domain_name, useSTD3, processing_option);
  15386. result.string = normalize(result.string);
  15387. var labels = result.string.split(".");
  15388. for (var i = 0; i < labels.length; ++i) {
  15389. try {
  15390. var validation = validateLabel(labels[i]);
  15391. labels[i] = validation.label;
  15392. result.error = result.error || validation.error;
  15393. } catch(e) {
  15394. result.error = true;
  15395. }
  15396. }
  15397. return {
  15398. string: labels.join("."),
  15399. error: result.error
  15400. };
  15401. }
  15402. module.exports.toASCII = function(domain_name, useSTD3, processing_option, verifyDnsLength) {
  15403. var result = processing(domain_name, useSTD3, processing_option);
  15404. var labels = result.string.split(".");
  15405. labels = labels.map(function(l) {
  15406. try {
  15407. return punycode.toASCII(l);
  15408. } catch(e) {
  15409. result.error = true;
  15410. return l;
  15411. }
  15412. });
  15413. if (verifyDnsLength) {
  15414. var total = labels.slice(0, labels.length - 1).join(".").length;
  15415. if (total.length > 253 || total.length === 0) {
  15416. result.error = true;
  15417. }
  15418. for (var i=0; i < labels.length; ++i) {
  15419. if (labels.length > 63 || labels.length === 0) {
  15420. result.error = true;
  15421. break;
  15422. }
  15423. }
  15424. }
  15425. if (result.error) return null;
  15426. return labels.join(".");
  15427. };
  15428. module.exports.toUnicode = function(domain_name, useSTD3) {
  15429. var result = processing(domain_name, useSTD3, PROCESSING_OPTIONS.NONTRANSITIONAL);
  15430. return {
  15431. domain: result.string,
  15432. error: result.error
  15433. };
  15434. };
  15435. module.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS;
  15436. /***/ }),
  15437. /***/ 5871:
  15438. /***/ ((module) => {
  15439. "use strict";
  15440. var conversions = {};
  15441. module.exports = conversions;
  15442. function sign(x) {
  15443. return x < 0 ? -1 : 1;
  15444. }
  15445. function evenRound(x) {
  15446. // Round x to the nearest integer, choosing the even integer if it lies halfway between two.
  15447. if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. floor)
  15448. return Math.floor(x);
  15449. } else {
  15450. return Math.round(x);
  15451. }
  15452. }
  15453. function createNumberConversion(bitLength, typeOpts) {
  15454. if (!typeOpts.unsigned) {
  15455. --bitLength;
  15456. }
  15457. const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength);
  15458. const upperBound = Math.pow(2, bitLength) - 1;
  15459. const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength);
  15460. const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1);
  15461. return function(V, opts) {
  15462. if (!opts) opts = {};
  15463. let x = +V;
  15464. if (opts.enforceRange) {
  15465. if (!Number.isFinite(x)) {
  15466. throw new TypeError("Argument is not a finite number");
  15467. }
  15468. x = sign(x) * Math.floor(Math.abs(x));
  15469. if (x < lowerBound || x > upperBound) {
  15470. throw new TypeError("Argument is not in byte range");
  15471. }
  15472. return x;
  15473. }
  15474. if (!isNaN(x) && opts.clamp) {
  15475. x = evenRound(x);
  15476. if (x < lowerBound) x = lowerBound;
  15477. if (x > upperBound) x = upperBound;
  15478. return x;
  15479. }
  15480. if (!Number.isFinite(x) || x === 0) {
  15481. return 0;
  15482. }
  15483. x = sign(x) * Math.floor(Math.abs(x));
  15484. x = x % moduloVal;
  15485. if (!typeOpts.unsigned && x >= moduloBound) {
  15486. return x - moduloVal;
  15487. } else if (typeOpts.unsigned) {
  15488. if (x < 0) {
  15489. x += moduloVal;
  15490. } else if (x === -0) { // don't return negative zero
  15491. return 0;
  15492. }
  15493. }
  15494. return x;
  15495. }
  15496. }
  15497. conversions["void"] = function () {
  15498. return undefined;
  15499. };
  15500. conversions["boolean"] = function (val) {
  15501. return !!val;
  15502. };
  15503. conversions["byte"] = createNumberConversion(8, { unsigned: false });
  15504. conversions["octet"] = createNumberConversion(8, { unsigned: true });
  15505. conversions["short"] = createNumberConversion(16, { unsigned: false });
  15506. conversions["unsigned short"] = createNumberConversion(16, { unsigned: true });
  15507. conversions["long"] = createNumberConversion(32, { unsigned: false });
  15508. conversions["unsigned long"] = createNumberConversion(32, { unsigned: true });
  15509. conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 });
  15510. conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 });
  15511. conversions["double"] = function (V) {
  15512. const x = +V;
  15513. if (!Number.isFinite(x)) {
  15514. throw new TypeError("Argument is not a finite floating-point value");
  15515. }
  15516. return x;
  15517. };
  15518. conversions["unrestricted double"] = function (V) {
  15519. const x = +V;
  15520. if (isNaN(x)) {
  15521. throw new TypeError("Argument is NaN");
  15522. }
  15523. return x;
  15524. };
  15525. // not quite valid, but good enough for JS
  15526. conversions["float"] = conversions["double"];
  15527. conversions["unrestricted float"] = conversions["unrestricted double"];
  15528. conversions["DOMString"] = function (V, opts) {
  15529. if (!opts) opts = {};
  15530. if (opts.treatNullAsEmptyString && V === null) {
  15531. return "";
  15532. }
  15533. return String(V);
  15534. };
  15535. conversions["ByteString"] = function (V, opts) {
  15536. const x = String(V);
  15537. let c = undefined;
  15538. for (let i = 0; (c = x.codePointAt(i)) !== undefined; ++i) {
  15539. if (c > 255) {
  15540. throw new TypeError("Argument is not a valid bytestring");
  15541. }
  15542. }
  15543. return x;
  15544. };
  15545. conversions["USVString"] = function (V) {
  15546. const S = String(V);
  15547. const n = S.length;
  15548. const U = [];
  15549. for (let i = 0; i < n; ++i) {
  15550. const c = S.charCodeAt(i);
  15551. if (c < 0xD800 || c > 0xDFFF) {
  15552. U.push(String.fromCodePoint(c));
  15553. } else if (0xDC00 <= c && c <= 0xDFFF) {
  15554. U.push(String.fromCodePoint(0xFFFD));
  15555. } else {
  15556. if (i === n - 1) {
  15557. U.push(String.fromCodePoint(0xFFFD));
  15558. } else {
  15559. const d = S.charCodeAt(i + 1);
  15560. if (0xDC00 <= d && d <= 0xDFFF) {
  15561. const a = c & 0x3FF;
  15562. const b = d & 0x3FF;
  15563. U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b));
  15564. ++i;
  15565. } else {
  15566. U.push(String.fromCodePoint(0xFFFD));
  15567. }
  15568. }
  15569. }
  15570. }
  15571. return U.join('');
  15572. };
  15573. conversions["Date"] = function (V, opts) {
  15574. if (!(V instanceof Date)) {
  15575. throw new TypeError("Argument is not a Date object");
  15576. }
  15577. if (isNaN(V)) {
  15578. return undefined;
  15579. }
  15580. return V;
  15581. };
  15582. conversions["RegExp"] = function (V, opts) {
  15583. if (!(V instanceof RegExp)) {
  15584. V = new RegExp(V);
  15585. }
  15586. return V;
  15587. };
  15588. /***/ }),
  15589. /***/ 8262:
  15590. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  15591. "use strict";
  15592. const usm = __nccwpck_require__(33);
  15593. exports.implementation = class URLImpl {
  15594. constructor(constructorArgs) {
  15595. const url = constructorArgs[0];
  15596. const base = constructorArgs[1];
  15597. let parsedBase = null;
  15598. if (base !== undefined) {
  15599. parsedBase = usm.basicURLParse(base);
  15600. if (parsedBase === "failure") {
  15601. throw new TypeError("Invalid base URL");
  15602. }
  15603. }
  15604. const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase });
  15605. if (parsedURL === "failure") {
  15606. throw new TypeError("Invalid URL");
  15607. }
  15608. this._url = parsedURL;
  15609. // TODO: query stuff
  15610. }
  15611. get href() {
  15612. return usm.serializeURL(this._url);
  15613. }
  15614. set href(v) {
  15615. const parsedURL = usm.basicURLParse(v);
  15616. if (parsedURL === "failure") {
  15617. throw new TypeError("Invalid URL");
  15618. }
  15619. this._url = parsedURL;
  15620. }
  15621. get origin() {
  15622. return usm.serializeURLOrigin(this._url);
  15623. }
  15624. get protocol() {
  15625. return this._url.scheme + ":";
  15626. }
  15627. set protocol(v) {
  15628. usm.basicURLParse(v + ":", { url: this._url, stateOverride: "scheme start" });
  15629. }
  15630. get username() {
  15631. return this._url.username;
  15632. }
  15633. set username(v) {
  15634. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  15635. return;
  15636. }
  15637. usm.setTheUsername(this._url, v);
  15638. }
  15639. get password() {
  15640. return this._url.password;
  15641. }
  15642. set password(v) {
  15643. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  15644. return;
  15645. }
  15646. usm.setThePassword(this._url, v);
  15647. }
  15648. get host() {
  15649. const url = this._url;
  15650. if (url.host === null) {
  15651. return "";
  15652. }
  15653. if (url.port === null) {
  15654. return usm.serializeHost(url.host);
  15655. }
  15656. return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port);
  15657. }
  15658. set host(v) {
  15659. if (this._url.cannotBeABaseURL) {
  15660. return;
  15661. }
  15662. usm.basicURLParse(v, { url: this._url, stateOverride: "host" });
  15663. }
  15664. get hostname() {
  15665. if (this._url.host === null) {
  15666. return "";
  15667. }
  15668. return usm.serializeHost(this._url.host);
  15669. }
  15670. set hostname(v) {
  15671. if (this._url.cannotBeABaseURL) {
  15672. return;
  15673. }
  15674. usm.basicURLParse(v, { url: this._url, stateOverride: "hostname" });
  15675. }
  15676. get port() {
  15677. if (this._url.port === null) {
  15678. return "";
  15679. }
  15680. return usm.serializeInteger(this._url.port);
  15681. }
  15682. set port(v) {
  15683. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  15684. return;
  15685. }
  15686. if (v === "") {
  15687. this._url.port = null;
  15688. } else {
  15689. usm.basicURLParse(v, { url: this._url, stateOverride: "port" });
  15690. }
  15691. }
  15692. get pathname() {
  15693. if (this._url.cannotBeABaseURL) {
  15694. return this._url.path[0];
  15695. }
  15696. if (this._url.path.length === 0) {
  15697. return "";
  15698. }
  15699. return "/" + this._url.path.join("/");
  15700. }
  15701. set pathname(v) {
  15702. if (this._url.cannotBeABaseURL) {
  15703. return;
  15704. }
  15705. this._url.path = [];
  15706. usm.basicURLParse(v, { url: this._url, stateOverride: "path start" });
  15707. }
  15708. get search() {
  15709. if (this._url.query === null || this._url.query === "") {
  15710. return "";
  15711. }
  15712. return "?" + this._url.query;
  15713. }
  15714. set search(v) {
  15715. // TODO: query stuff
  15716. const url = this._url;
  15717. if (v === "") {
  15718. url.query = null;
  15719. return;
  15720. }
  15721. const input = v[0] === "?" ? v.substring(1) : v;
  15722. url.query = "";
  15723. usm.basicURLParse(input, { url, stateOverride: "query" });
  15724. }
  15725. get hash() {
  15726. if (this._url.fragment === null || this._url.fragment === "") {
  15727. return "";
  15728. }
  15729. return "#" + this._url.fragment;
  15730. }
  15731. set hash(v) {
  15732. if (v === "") {
  15733. this._url.fragment = null;
  15734. return;
  15735. }
  15736. const input = v[0] === "#" ? v.substring(1) : v;
  15737. this._url.fragment = "";
  15738. usm.basicURLParse(input, { url: this._url, stateOverride: "fragment" });
  15739. }
  15740. toJSON() {
  15741. return this.href;
  15742. }
  15743. };
  15744. /***/ }),
  15745. /***/ 653:
  15746. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  15747. "use strict";
  15748. const conversions = __nccwpck_require__(5871);
  15749. const utils = __nccwpck_require__(276);
  15750. const Impl = __nccwpck_require__(8262);
  15751. const impl = utils.implSymbol;
  15752. function URL(url) {
  15753. if (!this || this[impl] || !(this instanceof URL)) {
  15754. throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");
  15755. }
  15756. if (arguments.length < 1) {
  15757. throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present.");
  15758. }
  15759. const args = [];
  15760. for (let i = 0; i < arguments.length && i < 2; ++i) {
  15761. args[i] = arguments[i];
  15762. }
  15763. args[0] = conversions["USVString"](args[0]);
  15764. if (args[1] !== undefined) {
  15765. args[1] = conversions["USVString"](args[1]);
  15766. }
  15767. module.exports.setup(this, args);
  15768. }
  15769. URL.prototype.toJSON = function toJSON() {
  15770. if (!this || !module.exports.is(this)) {
  15771. throw new TypeError("Illegal invocation");
  15772. }
  15773. const args = [];
  15774. for (let i = 0; i < arguments.length && i < 0; ++i) {
  15775. args[i] = arguments[i];
  15776. }
  15777. return this[impl].toJSON.apply(this[impl], args);
  15778. };
  15779. Object.defineProperty(URL.prototype, "href", {
  15780. get() {
  15781. return this[impl].href;
  15782. },
  15783. set(V) {
  15784. V = conversions["USVString"](V);
  15785. this[impl].href = V;
  15786. },
  15787. enumerable: true,
  15788. configurable: true
  15789. });
  15790. URL.prototype.toString = function () {
  15791. if (!this || !module.exports.is(this)) {
  15792. throw new TypeError("Illegal invocation");
  15793. }
  15794. return this.href;
  15795. };
  15796. Object.defineProperty(URL.prototype, "origin", {
  15797. get() {
  15798. return this[impl].origin;
  15799. },
  15800. enumerable: true,
  15801. configurable: true
  15802. });
  15803. Object.defineProperty(URL.prototype, "protocol", {
  15804. get() {
  15805. return this[impl].protocol;
  15806. },
  15807. set(V) {
  15808. V = conversions["USVString"](V);
  15809. this[impl].protocol = V;
  15810. },
  15811. enumerable: true,
  15812. configurable: true
  15813. });
  15814. Object.defineProperty(URL.prototype, "username", {
  15815. get() {
  15816. return this[impl].username;
  15817. },
  15818. set(V) {
  15819. V = conversions["USVString"](V);
  15820. this[impl].username = V;
  15821. },
  15822. enumerable: true,
  15823. configurable: true
  15824. });
  15825. Object.defineProperty(URL.prototype, "password", {
  15826. get() {
  15827. return this[impl].password;
  15828. },
  15829. set(V) {
  15830. V = conversions["USVString"](V);
  15831. this[impl].password = V;
  15832. },
  15833. enumerable: true,
  15834. configurable: true
  15835. });
  15836. Object.defineProperty(URL.prototype, "host", {
  15837. get() {
  15838. return this[impl].host;
  15839. },
  15840. set(V) {
  15841. V = conversions["USVString"](V);
  15842. this[impl].host = V;
  15843. },
  15844. enumerable: true,
  15845. configurable: true
  15846. });
  15847. Object.defineProperty(URL.prototype, "hostname", {
  15848. get() {
  15849. return this[impl].hostname;
  15850. },
  15851. set(V) {
  15852. V = conversions["USVString"](V);
  15853. this[impl].hostname = V;
  15854. },
  15855. enumerable: true,
  15856. configurable: true
  15857. });
  15858. Object.defineProperty(URL.prototype, "port", {
  15859. get() {
  15860. return this[impl].port;
  15861. },
  15862. set(V) {
  15863. V = conversions["USVString"](V);
  15864. this[impl].port = V;
  15865. },
  15866. enumerable: true,
  15867. configurable: true
  15868. });
  15869. Object.defineProperty(URL.prototype, "pathname", {
  15870. get() {
  15871. return this[impl].pathname;
  15872. },
  15873. set(V) {
  15874. V = conversions["USVString"](V);
  15875. this[impl].pathname = V;
  15876. },
  15877. enumerable: true,
  15878. configurable: true
  15879. });
  15880. Object.defineProperty(URL.prototype, "search", {
  15881. get() {
  15882. return this[impl].search;
  15883. },
  15884. set(V) {
  15885. V = conversions["USVString"](V);
  15886. this[impl].search = V;
  15887. },
  15888. enumerable: true,
  15889. configurable: true
  15890. });
  15891. Object.defineProperty(URL.prototype, "hash", {
  15892. get() {
  15893. return this[impl].hash;
  15894. },
  15895. set(V) {
  15896. V = conversions["USVString"](V);
  15897. this[impl].hash = V;
  15898. },
  15899. enumerable: true,
  15900. configurable: true
  15901. });
  15902. module.exports = {
  15903. is(obj) {
  15904. return !!obj && obj[impl] instanceof Impl.implementation;
  15905. },
  15906. create(constructorArgs, privateData) {
  15907. let obj = Object.create(URL.prototype);
  15908. this.setup(obj, constructorArgs, privateData);
  15909. return obj;
  15910. },
  15911. setup(obj, constructorArgs, privateData) {
  15912. if (!privateData) privateData = {};
  15913. privateData.wrapper = obj;
  15914. obj[impl] = new Impl.implementation(constructorArgs, privateData);
  15915. obj[impl][utils.wrapperSymbol] = obj;
  15916. },
  15917. interface: URL,
  15918. expose: {
  15919. Window: { URL: URL },
  15920. Worker: { URL: URL }
  15921. }
  15922. };
  15923. /***/ }),
  15924. /***/ 3323:
  15925. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  15926. "use strict";
  15927. exports.URL = __nccwpck_require__(653)["interface"];
  15928. exports.serializeURL = __nccwpck_require__(33).serializeURL;
  15929. exports.serializeURLOrigin = __nccwpck_require__(33).serializeURLOrigin;
  15930. exports.basicURLParse = __nccwpck_require__(33).basicURLParse;
  15931. exports.setTheUsername = __nccwpck_require__(33).setTheUsername;
  15932. exports.setThePassword = __nccwpck_require__(33).setThePassword;
  15933. exports.serializeHost = __nccwpck_require__(33).serializeHost;
  15934. exports.serializeInteger = __nccwpck_require__(33).serializeInteger;
  15935. exports.parseURL = __nccwpck_require__(33).parseURL;
  15936. /***/ }),
  15937. /***/ 33:
  15938. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  15939. "use strict";
  15940. const punycode = __nccwpck_require__(5477);
  15941. const tr46 = __nccwpck_require__(2299);
  15942. const specialSchemes = {
  15943. ftp: 21,
  15944. file: null,
  15945. gopher: 70,
  15946. http: 80,
  15947. https: 443,
  15948. ws: 80,
  15949. wss: 443
  15950. };
  15951. const failure = Symbol("failure");
  15952. function countSymbols(str) {
  15953. return punycode.ucs2.decode(str).length;
  15954. }
  15955. function at(input, idx) {
  15956. const c = input[idx];
  15957. return isNaN(c) ? undefined : String.fromCodePoint(c);
  15958. }
  15959. function isASCIIDigit(c) {
  15960. return c >= 0x30 && c <= 0x39;
  15961. }
  15962. function isASCIIAlpha(c) {
  15963. return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A);
  15964. }
  15965. function isASCIIAlphanumeric(c) {
  15966. return isASCIIAlpha(c) || isASCIIDigit(c);
  15967. }
  15968. function isASCIIHex(c) {
  15969. return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66);
  15970. }
  15971. function isSingleDot(buffer) {
  15972. return buffer === "." || buffer.toLowerCase() === "%2e";
  15973. }
  15974. function isDoubleDot(buffer) {
  15975. buffer = buffer.toLowerCase();
  15976. return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e";
  15977. }
  15978. function isWindowsDriveLetterCodePoints(cp1, cp2) {
  15979. return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124);
  15980. }
  15981. function isWindowsDriveLetterString(string) {
  15982. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|");
  15983. }
  15984. function isNormalizedWindowsDriveLetterString(string) {
  15985. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
  15986. }
  15987. function containsForbiddenHostCodePoint(string) {
  15988. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1;
  15989. }
  15990. function containsForbiddenHostCodePointExcludingPercent(string) {
  15991. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1;
  15992. }
  15993. function isSpecialScheme(scheme) {
  15994. return specialSchemes[scheme] !== undefined;
  15995. }
  15996. function isSpecial(url) {
  15997. return isSpecialScheme(url.scheme);
  15998. }
  15999. function defaultPort(scheme) {
  16000. return specialSchemes[scheme];
  16001. }
  16002. function percentEncode(c) {
  16003. let hex = c.toString(16).toUpperCase();
  16004. if (hex.length === 1) {
  16005. hex = "0" + hex;
  16006. }
  16007. return "%" + hex;
  16008. }
  16009. function utf8PercentEncode(c) {
  16010. const buf = new Buffer(c);
  16011. let str = "";
  16012. for (let i = 0; i < buf.length; ++i) {
  16013. str += percentEncode(buf[i]);
  16014. }
  16015. return str;
  16016. }
  16017. function utf8PercentDecode(str) {
  16018. const input = new Buffer(str);
  16019. const output = [];
  16020. for (let i = 0; i < input.length; ++i) {
  16021. if (input[i] !== 37) {
  16022. output.push(input[i]);
  16023. } else if (input[i] === 37 && isASCIIHex(input[i + 1]) && isASCIIHex(input[i + 2])) {
  16024. output.push(parseInt(input.slice(i + 1, i + 3).toString(), 16));
  16025. i += 2;
  16026. } else {
  16027. output.push(input[i]);
  16028. }
  16029. }
  16030. return new Buffer(output).toString();
  16031. }
  16032. function isC0ControlPercentEncode(c) {
  16033. return c <= 0x1F || c > 0x7E;
  16034. }
  16035. const extraPathPercentEncodeSet = new Set([32, 34, 35, 60, 62, 63, 96, 123, 125]);
  16036. function isPathPercentEncode(c) {
  16037. return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c);
  16038. }
  16039. const extraUserinfoPercentEncodeSet =
  16040. new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]);
  16041. function isUserinfoPercentEncode(c) {
  16042. return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c);
  16043. }
  16044. function percentEncodeChar(c, encodeSetPredicate) {
  16045. const cStr = String.fromCodePoint(c);
  16046. if (encodeSetPredicate(c)) {
  16047. return utf8PercentEncode(cStr);
  16048. }
  16049. return cStr;
  16050. }
  16051. function parseIPv4Number(input) {
  16052. let R = 10;
  16053. if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
  16054. input = input.substring(2);
  16055. R = 16;
  16056. } else if (input.length >= 2 && input.charAt(0) === "0") {
  16057. input = input.substring(1);
  16058. R = 8;
  16059. }
  16060. if (input === "") {
  16061. return 0;
  16062. }
  16063. const regex = R === 10 ? /[^0-9]/ : (R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/);
  16064. if (regex.test(input)) {
  16065. return failure;
  16066. }
  16067. return parseInt(input, R);
  16068. }
  16069. function parseIPv4(input) {
  16070. const parts = input.split(".");
  16071. if (parts[parts.length - 1] === "") {
  16072. if (parts.length > 1) {
  16073. parts.pop();
  16074. }
  16075. }
  16076. if (parts.length > 4) {
  16077. return input;
  16078. }
  16079. const numbers = [];
  16080. for (const part of parts) {
  16081. if (part === "") {
  16082. return input;
  16083. }
  16084. const n = parseIPv4Number(part);
  16085. if (n === failure) {
  16086. return input;
  16087. }
  16088. numbers.push(n);
  16089. }
  16090. for (let i = 0; i < numbers.length - 1; ++i) {
  16091. if (numbers[i] > 255) {
  16092. return failure;
  16093. }
  16094. }
  16095. if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) {
  16096. return failure;
  16097. }
  16098. let ipv4 = numbers.pop();
  16099. let counter = 0;
  16100. for (const n of numbers) {
  16101. ipv4 += n * Math.pow(256, 3 - counter);
  16102. ++counter;
  16103. }
  16104. return ipv4;
  16105. }
  16106. function serializeIPv4(address) {
  16107. let output = "";
  16108. let n = address;
  16109. for (let i = 1; i <= 4; ++i) {
  16110. output = String(n % 256) + output;
  16111. if (i !== 4) {
  16112. output = "." + output;
  16113. }
  16114. n = Math.floor(n / 256);
  16115. }
  16116. return output;
  16117. }
  16118. function parseIPv6(input) {
  16119. const address = [0, 0, 0, 0, 0, 0, 0, 0];
  16120. let pieceIndex = 0;
  16121. let compress = null;
  16122. let pointer = 0;
  16123. input = punycode.ucs2.decode(input);
  16124. if (input[pointer] === 58) {
  16125. if (input[pointer + 1] !== 58) {
  16126. return failure;
  16127. }
  16128. pointer += 2;
  16129. ++pieceIndex;
  16130. compress = pieceIndex;
  16131. }
  16132. while (pointer < input.length) {
  16133. if (pieceIndex === 8) {
  16134. return failure;
  16135. }
  16136. if (input[pointer] === 58) {
  16137. if (compress !== null) {
  16138. return failure;
  16139. }
  16140. ++pointer;
  16141. ++pieceIndex;
  16142. compress = pieceIndex;
  16143. continue;
  16144. }
  16145. let value = 0;
  16146. let length = 0;
  16147. while (length < 4 && isASCIIHex(input[pointer])) {
  16148. value = value * 0x10 + parseInt(at(input, pointer), 16);
  16149. ++pointer;
  16150. ++length;
  16151. }
  16152. if (input[pointer] === 46) {
  16153. if (length === 0) {
  16154. return failure;
  16155. }
  16156. pointer -= length;
  16157. if (pieceIndex > 6) {
  16158. return failure;
  16159. }
  16160. let numbersSeen = 0;
  16161. while (input[pointer] !== undefined) {
  16162. let ipv4Piece = null;
  16163. if (numbersSeen > 0) {
  16164. if (input[pointer] === 46 && numbersSeen < 4) {
  16165. ++pointer;
  16166. } else {
  16167. return failure;
  16168. }
  16169. }
  16170. if (!isASCIIDigit(input[pointer])) {
  16171. return failure;
  16172. }
  16173. while (isASCIIDigit(input[pointer])) {
  16174. const number = parseInt(at(input, pointer));
  16175. if (ipv4Piece === null) {
  16176. ipv4Piece = number;
  16177. } else if (ipv4Piece === 0) {
  16178. return failure;
  16179. } else {
  16180. ipv4Piece = ipv4Piece * 10 + number;
  16181. }
  16182. if (ipv4Piece > 255) {
  16183. return failure;
  16184. }
  16185. ++pointer;
  16186. }
  16187. address[pieceIndex] = address[pieceIndex] * 0x100 + ipv4Piece;
  16188. ++numbersSeen;
  16189. if (numbersSeen === 2 || numbersSeen === 4) {
  16190. ++pieceIndex;
  16191. }
  16192. }
  16193. if (numbersSeen !== 4) {
  16194. return failure;
  16195. }
  16196. break;
  16197. } else if (input[pointer] === 58) {
  16198. ++pointer;
  16199. if (input[pointer] === undefined) {
  16200. return failure;
  16201. }
  16202. } else if (input[pointer] !== undefined) {
  16203. return failure;
  16204. }
  16205. address[pieceIndex] = value;
  16206. ++pieceIndex;
  16207. }
  16208. if (compress !== null) {
  16209. let swaps = pieceIndex - compress;
  16210. pieceIndex = 7;
  16211. while (pieceIndex !== 0 && swaps > 0) {
  16212. const temp = address[compress + swaps - 1];
  16213. address[compress + swaps - 1] = address[pieceIndex];
  16214. address[pieceIndex] = temp;
  16215. --pieceIndex;
  16216. --swaps;
  16217. }
  16218. } else if (compress === null && pieceIndex !== 8) {
  16219. return failure;
  16220. }
  16221. return address;
  16222. }
  16223. function serializeIPv6(address) {
  16224. let output = "";
  16225. const seqResult = findLongestZeroSequence(address);
  16226. const compress = seqResult.idx;
  16227. let ignore0 = false;
  16228. for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) {
  16229. if (ignore0 && address[pieceIndex] === 0) {
  16230. continue;
  16231. } else if (ignore0) {
  16232. ignore0 = false;
  16233. }
  16234. if (compress === pieceIndex) {
  16235. const separator = pieceIndex === 0 ? "::" : ":";
  16236. output += separator;
  16237. ignore0 = true;
  16238. continue;
  16239. }
  16240. output += address[pieceIndex].toString(16);
  16241. if (pieceIndex !== 7) {
  16242. output += ":";
  16243. }
  16244. }
  16245. return output;
  16246. }
  16247. function parseHost(input, isSpecialArg) {
  16248. if (input[0] === "[") {
  16249. if (input[input.length - 1] !== "]") {
  16250. return failure;
  16251. }
  16252. return parseIPv6(input.substring(1, input.length - 1));
  16253. }
  16254. if (!isSpecialArg) {
  16255. return parseOpaqueHost(input);
  16256. }
  16257. const domain = utf8PercentDecode(input);
  16258. const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false);
  16259. if (asciiDomain === null) {
  16260. return failure;
  16261. }
  16262. if (containsForbiddenHostCodePoint(asciiDomain)) {
  16263. return failure;
  16264. }
  16265. const ipv4Host = parseIPv4(asciiDomain);
  16266. if (typeof ipv4Host === "number" || ipv4Host === failure) {
  16267. return ipv4Host;
  16268. }
  16269. return asciiDomain;
  16270. }
  16271. function parseOpaqueHost(input) {
  16272. if (containsForbiddenHostCodePointExcludingPercent(input)) {
  16273. return failure;
  16274. }
  16275. let output = "";
  16276. const decoded = punycode.ucs2.decode(input);
  16277. for (let i = 0; i < decoded.length; ++i) {
  16278. output += percentEncodeChar(decoded[i], isC0ControlPercentEncode);
  16279. }
  16280. return output;
  16281. }
  16282. function findLongestZeroSequence(arr) {
  16283. let maxIdx = null;
  16284. let maxLen = 1; // only find elements > 1
  16285. let currStart = null;
  16286. let currLen = 0;
  16287. for (let i = 0; i < arr.length; ++i) {
  16288. if (arr[i] !== 0) {
  16289. if (currLen > maxLen) {
  16290. maxIdx = currStart;
  16291. maxLen = currLen;
  16292. }
  16293. currStart = null;
  16294. currLen = 0;
  16295. } else {
  16296. if (currStart === null) {
  16297. currStart = i;
  16298. }
  16299. ++currLen;
  16300. }
  16301. }
  16302. // if trailing zeros
  16303. if (currLen > maxLen) {
  16304. maxIdx = currStart;
  16305. maxLen = currLen;
  16306. }
  16307. return {
  16308. idx: maxIdx,
  16309. len: maxLen
  16310. };
  16311. }
  16312. function serializeHost(host) {
  16313. if (typeof host === "number") {
  16314. return serializeIPv4(host);
  16315. }
  16316. // IPv6 serializer
  16317. if (host instanceof Array) {
  16318. return "[" + serializeIPv6(host) + "]";
  16319. }
  16320. return host;
  16321. }
  16322. function trimControlChars(url) {
  16323. return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
  16324. }
  16325. function trimTabAndNewline(url) {
  16326. return url.replace(/\u0009|\u000A|\u000D/g, "");
  16327. }
  16328. function shortenPath(url) {
  16329. const path = url.path;
  16330. if (path.length === 0) {
  16331. return;
  16332. }
  16333. if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) {
  16334. return;
  16335. }
  16336. path.pop();
  16337. }
  16338. function includesCredentials(url) {
  16339. return url.username !== "" || url.password !== "";
  16340. }
  16341. function cannotHaveAUsernamePasswordPort(url) {
  16342. return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
  16343. }
  16344. function isNormalizedWindowsDriveLetter(string) {
  16345. return /^[A-Za-z]:$/.test(string);
  16346. }
  16347. function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
  16348. this.pointer = 0;
  16349. this.input = input;
  16350. this.base = base || null;
  16351. this.encodingOverride = encodingOverride || "utf-8";
  16352. this.stateOverride = stateOverride;
  16353. this.url = url;
  16354. this.failure = false;
  16355. this.parseError = false;
  16356. if (!this.url) {
  16357. this.url = {
  16358. scheme: "",
  16359. username: "",
  16360. password: "",
  16361. host: null,
  16362. port: null,
  16363. path: [],
  16364. query: null,
  16365. fragment: null,
  16366. cannotBeABaseURL: false
  16367. };
  16368. const res = trimControlChars(this.input);
  16369. if (res !== this.input) {
  16370. this.parseError = true;
  16371. }
  16372. this.input = res;
  16373. }
  16374. const res = trimTabAndNewline(this.input);
  16375. if (res !== this.input) {
  16376. this.parseError = true;
  16377. }
  16378. this.input = res;
  16379. this.state = stateOverride || "scheme start";
  16380. this.buffer = "";
  16381. this.atFlag = false;
  16382. this.arrFlag = false;
  16383. this.passwordTokenSeenFlag = false;
  16384. this.input = punycode.ucs2.decode(this.input);
  16385. for (; this.pointer <= this.input.length; ++this.pointer) {
  16386. const c = this.input[this.pointer];
  16387. const cStr = isNaN(c) ? undefined : String.fromCodePoint(c);
  16388. // exec state machine
  16389. const ret = this["parse " + this.state](c, cStr);
  16390. if (!ret) {
  16391. break; // terminate algorithm
  16392. } else if (ret === failure) {
  16393. this.failure = true;
  16394. break;
  16395. }
  16396. }
  16397. }
  16398. URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) {
  16399. if (isASCIIAlpha(c)) {
  16400. this.buffer += cStr.toLowerCase();
  16401. this.state = "scheme";
  16402. } else if (!this.stateOverride) {
  16403. this.state = "no scheme";
  16404. --this.pointer;
  16405. } else {
  16406. this.parseError = true;
  16407. return failure;
  16408. }
  16409. return true;
  16410. };
  16411. URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) {
  16412. if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) {
  16413. this.buffer += cStr.toLowerCase();
  16414. } else if (c === 58) {
  16415. if (this.stateOverride) {
  16416. if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) {
  16417. return false;
  16418. }
  16419. if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) {
  16420. return false;
  16421. }
  16422. if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") {
  16423. return false;
  16424. }
  16425. if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) {
  16426. return false;
  16427. }
  16428. }
  16429. this.url.scheme = this.buffer;
  16430. this.buffer = "";
  16431. if (this.stateOverride) {
  16432. return false;
  16433. }
  16434. if (this.url.scheme === "file") {
  16435. if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) {
  16436. this.parseError = true;
  16437. }
  16438. this.state = "file";
  16439. } else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) {
  16440. this.state = "special relative or authority";
  16441. } else if (isSpecial(this.url)) {
  16442. this.state = "special authority slashes";
  16443. } else if (this.input[this.pointer + 1] === 47) {
  16444. this.state = "path or authority";
  16445. ++this.pointer;
  16446. } else {
  16447. this.url.cannotBeABaseURL = true;
  16448. this.url.path.push("");
  16449. this.state = "cannot-be-a-base-URL path";
  16450. }
  16451. } else if (!this.stateOverride) {
  16452. this.buffer = "";
  16453. this.state = "no scheme";
  16454. this.pointer = -1;
  16455. } else {
  16456. this.parseError = true;
  16457. return failure;
  16458. }
  16459. return true;
  16460. };
  16461. URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) {
  16462. if (this.base === null || (this.base.cannotBeABaseURL && c !== 35)) {
  16463. return failure;
  16464. } else if (this.base.cannotBeABaseURL && c === 35) {
  16465. this.url.scheme = this.base.scheme;
  16466. this.url.path = this.base.path.slice();
  16467. this.url.query = this.base.query;
  16468. this.url.fragment = "";
  16469. this.url.cannotBeABaseURL = true;
  16470. this.state = "fragment";
  16471. } else if (this.base.scheme === "file") {
  16472. this.state = "file";
  16473. --this.pointer;
  16474. } else {
  16475. this.state = "relative";
  16476. --this.pointer;
  16477. }
  16478. return true;
  16479. };
  16480. URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) {
  16481. if (c === 47 && this.input[this.pointer + 1] === 47) {
  16482. this.state = "special authority ignore slashes";
  16483. ++this.pointer;
  16484. } else {
  16485. this.parseError = true;
  16486. this.state = "relative";
  16487. --this.pointer;
  16488. }
  16489. return true;
  16490. };
  16491. URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) {
  16492. if (c === 47) {
  16493. this.state = "authority";
  16494. } else {
  16495. this.state = "path";
  16496. --this.pointer;
  16497. }
  16498. return true;
  16499. };
  16500. URLStateMachine.prototype["parse relative"] = function parseRelative(c) {
  16501. this.url.scheme = this.base.scheme;
  16502. if (isNaN(c)) {
  16503. this.url.username = this.base.username;
  16504. this.url.password = this.base.password;
  16505. this.url.host = this.base.host;
  16506. this.url.port = this.base.port;
  16507. this.url.path = this.base.path.slice();
  16508. this.url.query = this.base.query;
  16509. } else if (c === 47) {
  16510. this.state = "relative slash";
  16511. } else if (c === 63) {
  16512. this.url.username = this.base.username;
  16513. this.url.password = this.base.password;
  16514. this.url.host = this.base.host;
  16515. this.url.port = this.base.port;
  16516. this.url.path = this.base.path.slice();
  16517. this.url.query = "";
  16518. this.state = "query";
  16519. } else if (c === 35) {
  16520. this.url.username = this.base.username;
  16521. this.url.password = this.base.password;
  16522. this.url.host = this.base.host;
  16523. this.url.port = this.base.port;
  16524. this.url.path = this.base.path.slice();
  16525. this.url.query = this.base.query;
  16526. this.url.fragment = "";
  16527. this.state = "fragment";
  16528. } else if (isSpecial(this.url) && c === 92) {
  16529. this.parseError = true;
  16530. this.state = "relative slash";
  16531. } else {
  16532. this.url.username = this.base.username;
  16533. this.url.password = this.base.password;
  16534. this.url.host = this.base.host;
  16535. this.url.port = this.base.port;
  16536. this.url.path = this.base.path.slice(0, this.base.path.length - 1);
  16537. this.state = "path";
  16538. --this.pointer;
  16539. }
  16540. return true;
  16541. };
  16542. URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) {
  16543. if (isSpecial(this.url) && (c === 47 || c === 92)) {
  16544. if (c === 92) {
  16545. this.parseError = true;
  16546. }
  16547. this.state = "special authority ignore slashes";
  16548. } else if (c === 47) {
  16549. this.state = "authority";
  16550. } else {
  16551. this.url.username = this.base.username;
  16552. this.url.password = this.base.password;
  16553. this.url.host = this.base.host;
  16554. this.url.port = this.base.port;
  16555. this.state = "path";
  16556. --this.pointer;
  16557. }
  16558. return true;
  16559. };
  16560. URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) {
  16561. if (c === 47 && this.input[this.pointer + 1] === 47) {
  16562. this.state = "special authority ignore slashes";
  16563. ++this.pointer;
  16564. } else {
  16565. this.parseError = true;
  16566. this.state = "special authority ignore slashes";
  16567. --this.pointer;
  16568. }
  16569. return true;
  16570. };
  16571. URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) {
  16572. if (c !== 47 && c !== 92) {
  16573. this.state = "authority";
  16574. --this.pointer;
  16575. } else {
  16576. this.parseError = true;
  16577. }
  16578. return true;
  16579. };
  16580. URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) {
  16581. if (c === 64) {
  16582. this.parseError = true;
  16583. if (this.atFlag) {
  16584. this.buffer = "%40" + this.buffer;
  16585. }
  16586. this.atFlag = true;
  16587. // careful, this is based on buffer and has its own pointer (this.pointer != pointer) and inner chars
  16588. const len = countSymbols(this.buffer);
  16589. for (let pointer = 0; pointer < len; ++pointer) {
  16590. const codePoint = this.buffer.codePointAt(pointer);
  16591. if (codePoint === 58 && !this.passwordTokenSeenFlag) {
  16592. this.passwordTokenSeenFlag = true;
  16593. continue;
  16594. }
  16595. const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode);
  16596. if (this.passwordTokenSeenFlag) {
  16597. this.url.password += encodedCodePoints;
  16598. } else {
  16599. this.url.username += encodedCodePoints;
  16600. }
  16601. }
  16602. this.buffer = "";
  16603. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  16604. (isSpecial(this.url) && c === 92)) {
  16605. if (this.atFlag && this.buffer === "") {
  16606. this.parseError = true;
  16607. return failure;
  16608. }
  16609. this.pointer -= countSymbols(this.buffer) + 1;
  16610. this.buffer = "";
  16611. this.state = "host";
  16612. } else {
  16613. this.buffer += cStr;
  16614. }
  16615. return true;
  16616. };
  16617. URLStateMachine.prototype["parse hostname"] =
  16618. URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
  16619. if (this.stateOverride && this.url.scheme === "file") {
  16620. --this.pointer;
  16621. this.state = "file host";
  16622. } else if (c === 58 && !this.arrFlag) {
  16623. if (this.buffer === "") {
  16624. this.parseError = true;
  16625. return failure;
  16626. }
  16627. const host = parseHost(this.buffer, isSpecial(this.url));
  16628. if (host === failure) {
  16629. return failure;
  16630. }
  16631. this.url.host = host;
  16632. this.buffer = "";
  16633. this.state = "port";
  16634. if (this.stateOverride === "hostname") {
  16635. return false;
  16636. }
  16637. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  16638. (isSpecial(this.url) && c === 92)) {
  16639. --this.pointer;
  16640. if (isSpecial(this.url) && this.buffer === "") {
  16641. this.parseError = true;
  16642. return failure;
  16643. } else if (this.stateOverride && this.buffer === "" &&
  16644. (includesCredentials(this.url) || this.url.port !== null)) {
  16645. this.parseError = true;
  16646. return false;
  16647. }
  16648. const host = parseHost(this.buffer, isSpecial(this.url));
  16649. if (host === failure) {
  16650. return failure;
  16651. }
  16652. this.url.host = host;
  16653. this.buffer = "";
  16654. this.state = "path start";
  16655. if (this.stateOverride) {
  16656. return false;
  16657. }
  16658. } else {
  16659. if (c === 91) {
  16660. this.arrFlag = true;
  16661. } else if (c === 93) {
  16662. this.arrFlag = false;
  16663. }
  16664. this.buffer += cStr;
  16665. }
  16666. return true;
  16667. };
  16668. URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) {
  16669. if (isASCIIDigit(c)) {
  16670. this.buffer += cStr;
  16671. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  16672. (isSpecial(this.url) && c === 92) ||
  16673. this.stateOverride) {
  16674. if (this.buffer !== "") {
  16675. const port = parseInt(this.buffer);
  16676. if (port > Math.pow(2, 16) - 1) {
  16677. this.parseError = true;
  16678. return failure;
  16679. }
  16680. this.url.port = port === defaultPort(this.url.scheme) ? null : port;
  16681. this.buffer = "";
  16682. }
  16683. if (this.stateOverride) {
  16684. return false;
  16685. }
  16686. this.state = "path start";
  16687. --this.pointer;
  16688. } else {
  16689. this.parseError = true;
  16690. return failure;
  16691. }
  16692. return true;
  16693. };
  16694. const fileOtherwiseCodePoints = new Set([47, 92, 63, 35]);
  16695. URLStateMachine.prototype["parse file"] = function parseFile(c) {
  16696. this.url.scheme = "file";
  16697. if (c === 47 || c === 92) {
  16698. if (c === 92) {
  16699. this.parseError = true;
  16700. }
  16701. this.state = "file slash";
  16702. } else if (this.base !== null && this.base.scheme === "file") {
  16703. if (isNaN(c)) {
  16704. this.url.host = this.base.host;
  16705. this.url.path = this.base.path.slice();
  16706. this.url.query = this.base.query;
  16707. } else if (c === 63) {
  16708. this.url.host = this.base.host;
  16709. this.url.path = this.base.path.slice();
  16710. this.url.query = "";
  16711. this.state = "query";
  16712. } else if (c === 35) {
  16713. this.url.host = this.base.host;
  16714. this.url.path = this.base.path.slice();
  16715. this.url.query = this.base.query;
  16716. this.url.fragment = "";
  16717. this.state = "fragment";
  16718. } else {
  16719. if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points
  16720. !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) ||
  16721. (this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points
  16722. !fileOtherwiseCodePoints.has(this.input[this.pointer + 2]))) {
  16723. this.url.host = this.base.host;
  16724. this.url.path = this.base.path.slice();
  16725. shortenPath(this.url);
  16726. } else {
  16727. this.parseError = true;
  16728. }
  16729. this.state = "path";
  16730. --this.pointer;
  16731. }
  16732. } else {
  16733. this.state = "path";
  16734. --this.pointer;
  16735. }
  16736. return true;
  16737. };
  16738. URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) {
  16739. if (c === 47 || c === 92) {
  16740. if (c === 92) {
  16741. this.parseError = true;
  16742. }
  16743. this.state = "file host";
  16744. } else {
  16745. if (this.base !== null && this.base.scheme === "file") {
  16746. if (isNormalizedWindowsDriveLetterString(this.base.path[0])) {
  16747. this.url.path.push(this.base.path[0]);
  16748. } else {
  16749. this.url.host = this.base.host;
  16750. }
  16751. }
  16752. this.state = "path";
  16753. --this.pointer;
  16754. }
  16755. return true;
  16756. };
  16757. URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) {
  16758. if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) {
  16759. --this.pointer;
  16760. if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) {
  16761. this.parseError = true;
  16762. this.state = "path";
  16763. } else if (this.buffer === "") {
  16764. this.url.host = "";
  16765. if (this.stateOverride) {
  16766. return false;
  16767. }
  16768. this.state = "path start";
  16769. } else {
  16770. let host = parseHost(this.buffer, isSpecial(this.url));
  16771. if (host === failure) {
  16772. return failure;
  16773. }
  16774. if (host === "localhost") {
  16775. host = "";
  16776. }
  16777. this.url.host = host;
  16778. if (this.stateOverride) {
  16779. return false;
  16780. }
  16781. this.buffer = "";
  16782. this.state = "path start";
  16783. }
  16784. } else {
  16785. this.buffer += cStr;
  16786. }
  16787. return true;
  16788. };
  16789. URLStateMachine.prototype["parse path start"] = function parsePathStart(c) {
  16790. if (isSpecial(this.url)) {
  16791. if (c === 92) {
  16792. this.parseError = true;
  16793. }
  16794. this.state = "path";
  16795. if (c !== 47 && c !== 92) {
  16796. --this.pointer;
  16797. }
  16798. } else if (!this.stateOverride && c === 63) {
  16799. this.url.query = "";
  16800. this.state = "query";
  16801. } else if (!this.stateOverride && c === 35) {
  16802. this.url.fragment = "";
  16803. this.state = "fragment";
  16804. } else if (c !== undefined) {
  16805. this.state = "path";
  16806. if (c !== 47) {
  16807. --this.pointer;
  16808. }
  16809. }
  16810. return true;
  16811. };
  16812. URLStateMachine.prototype["parse path"] = function parsePath(c) {
  16813. if (isNaN(c) || c === 47 || (isSpecial(this.url) && c === 92) ||
  16814. (!this.stateOverride && (c === 63 || c === 35))) {
  16815. if (isSpecial(this.url) && c === 92) {
  16816. this.parseError = true;
  16817. }
  16818. if (isDoubleDot(this.buffer)) {
  16819. shortenPath(this.url);
  16820. if (c !== 47 && !(isSpecial(this.url) && c === 92)) {
  16821. this.url.path.push("");
  16822. }
  16823. } else if (isSingleDot(this.buffer) && c !== 47 &&
  16824. !(isSpecial(this.url) && c === 92)) {
  16825. this.url.path.push("");
  16826. } else if (!isSingleDot(this.buffer)) {
  16827. if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) {
  16828. if (this.url.host !== "" && this.url.host !== null) {
  16829. this.parseError = true;
  16830. this.url.host = "";
  16831. }
  16832. this.buffer = this.buffer[0] + ":";
  16833. }
  16834. this.url.path.push(this.buffer);
  16835. }
  16836. this.buffer = "";
  16837. if (this.url.scheme === "file" && (c === undefined || c === 63 || c === 35)) {
  16838. while (this.url.path.length > 1 && this.url.path[0] === "") {
  16839. this.parseError = true;
  16840. this.url.path.shift();
  16841. }
  16842. }
  16843. if (c === 63) {
  16844. this.url.query = "";
  16845. this.state = "query";
  16846. }
  16847. if (c === 35) {
  16848. this.url.fragment = "";
  16849. this.state = "fragment";
  16850. }
  16851. } else {
  16852. // TODO: If c is not a URL code point and not "%", parse error.
  16853. if (c === 37 &&
  16854. (!isASCIIHex(this.input[this.pointer + 1]) ||
  16855. !isASCIIHex(this.input[this.pointer + 2]))) {
  16856. this.parseError = true;
  16857. }
  16858. this.buffer += percentEncodeChar(c, isPathPercentEncode);
  16859. }
  16860. return true;
  16861. };
  16862. URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) {
  16863. if (c === 63) {
  16864. this.url.query = "";
  16865. this.state = "query";
  16866. } else if (c === 35) {
  16867. this.url.fragment = "";
  16868. this.state = "fragment";
  16869. } else {
  16870. // TODO: Add: not a URL code point
  16871. if (!isNaN(c) && c !== 37) {
  16872. this.parseError = true;
  16873. }
  16874. if (c === 37 &&
  16875. (!isASCIIHex(this.input[this.pointer + 1]) ||
  16876. !isASCIIHex(this.input[this.pointer + 2]))) {
  16877. this.parseError = true;
  16878. }
  16879. if (!isNaN(c)) {
  16880. this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode);
  16881. }
  16882. }
  16883. return true;
  16884. };
  16885. URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) {
  16886. if (isNaN(c) || (!this.stateOverride && c === 35)) {
  16887. if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") {
  16888. this.encodingOverride = "utf-8";
  16889. }
  16890. const buffer = new Buffer(this.buffer); // TODO: Use encoding override instead
  16891. for (let i = 0; i < buffer.length; ++i) {
  16892. if (buffer[i] < 0x21 || buffer[i] > 0x7E || buffer[i] === 0x22 || buffer[i] === 0x23 ||
  16893. buffer[i] === 0x3C || buffer[i] === 0x3E) {
  16894. this.url.query += percentEncode(buffer[i]);
  16895. } else {
  16896. this.url.query += String.fromCodePoint(buffer[i]);
  16897. }
  16898. }
  16899. this.buffer = "";
  16900. if (c === 35) {
  16901. this.url.fragment = "";
  16902. this.state = "fragment";
  16903. }
  16904. } else {
  16905. // TODO: If c is not a URL code point and not "%", parse error.
  16906. if (c === 37 &&
  16907. (!isASCIIHex(this.input[this.pointer + 1]) ||
  16908. !isASCIIHex(this.input[this.pointer + 2]))) {
  16909. this.parseError = true;
  16910. }
  16911. this.buffer += cStr;
  16912. }
  16913. return true;
  16914. };
  16915. URLStateMachine.prototype["parse fragment"] = function parseFragment(c) {
  16916. if (isNaN(c)) { // do nothing
  16917. } else if (c === 0x0) {
  16918. this.parseError = true;
  16919. } else {
  16920. // TODO: If c is not a URL code point and not "%", parse error.
  16921. if (c === 37 &&
  16922. (!isASCIIHex(this.input[this.pointer + 1]) ||
  16923. !isASCIIHex(this.input[this.pointer + 2]))) {
  16924. this.parseError = true;
  16925. }
  16926. this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode);
  16927. }
  16928. return true;
  16929. };
  16930. function serializeURL(url, excludeFragment) {
  16931. let output = url.scheme + ":";
  16932. if (url.host !== null) {
  16933. output += "//";
  16934. if (url.username !== "" || url.password !== "") {
  16935. output += url.username;
  16936. if (url.password !== "") {
  16937. output += ":" + url.password;
  16938. }
  16939. output += "@";
  16940. }
  16941. output += serializeHost(url.host);
  16942. if (url.port !== null) {
  16943. output += ":" + url.port;
  16944. }
  16945. } else if (url.host === null && url.scheme === "file") {
  16946. output += "//";
  16947. }
  16948. if (url.cannotBeABaseURL) {
  16949. output += url.path[0];
  16950. } else {
  16951. for (const string of url.path) {
  16952. output += "/" + string;
  16953. }
  16954. }
  16955. if (url.query !== null) {
  16956. output += "?" + url.query;
  16957. }
  16958. if (!excludeFragment && url.fragment !== null) {
  16959. output += "#" + url.fragment;
  16960. }
  16961. return output;
  16962. }
  16963. function serializeOrigin(tuple) {
  16964. let result = tuple.scheme + "://";
  16965. result += serializeHost(tuple.host);
  16966. if (tuple.port !== null) {
  16967. result += ":" + tuple.port;
  16968. }
  16969. return result;
  16970. }
  16971. module.exports.serializeURL = serializeURL;
  16972. module.exports.serializeURLOrigin = function (url) {
  16973. // https://url.spec.whatwg.org/#concept-url-origin
  16974. switch (url.scheme) {
  16975. case "blob":
  16976. try {
  16977. return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0]));
  16978. } catch (e) {
  16979. // serializing an opaque origin returns "null"
  16980. return "null";
  16981. }
  16982. case "ftp":
  16983. case "gopher":
  16984. case "http":
  16985. case "https":
  16986. case "ws":
  16987. case "wss":
  16988. return serializeOrigin({
  16989. scheme: url.scheme,
  16990. host: url.host,
  16991. port: url.port
  16992. });
  16993. case "file":
  16994. // spec says "exercise to the reader", chrome says "file://"
  16995. return "file://";
  16996. default:
  16997. // serializing an opaque origin returns "null"
  16998. return "null";
  16999. }
  17000. };
  17001. module.exports.basicURLParse = function (input, options) {
  17002. if (options === undefined) {
  17003. options = {};
  17004. }
  17005. const usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride);
  17006. if (usm.failure) {
  17007. return "failure";
  17008. }
  17009. return usm.url;
  17010. };
  17011. module.exports.setTheUsername = function (url, username) {
  17012. url.username = "";
  17013. const decoded = punycode.ucs2.decode(username);
  17014. for (let i = 0; i < decoded.length; ++i) {
  17015. url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  17016. }
  17017. };
  17018. module.exports.setThePassword = function (url, password) {
  17019. url.password = "";
  17020. const decoded = punycode.ucs2.decode(password);
  17021. for (let i = 0; i < decoded.length; ++i) {
  17022. url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  17023. }
  17024. };
  17025. module.exports.serializeHost = serializeHost;
  17026. module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
  17027. module.exports.serializeInteger = function (integer) {
  17028. return String(integer);
  17029. };
  17030. module.exports.parseURL = function (input, options) {
  17031. if (options === undefined) {
  17032. options = {};
  17033. }
  17034. // We don't handle blobs, so this just delegates:
  17035. return module.exports.basicURLParse(input, { baseURL: options.baseURL, encodingOverride: options.encodingOverride });
  17036. };
  17037. /***/ }),
  17038. /***/ 276:
  17039. /***/ ((module) => {
  17040. "use strict";
  17041. module.exports.mixin = function mixin(target, source) {
  17042. const keys = Object.getOwnPropertyNames(source);
  17043. for (let i = 0; i < keys.length; ++i) {
  17044. Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i]));
  17045. }
  17046. };
  17047. module.exports.wrapperSymbol = Symbol("wrapper");
  17048. module.exports.implSymbol = Symbol("impl");
  17049. module.exports.wrapperForImpl = function (impl) {
  17050. return impl[module.exports.wrapperSymbol];
  17051. };
  17052. module.exports.implForWrapper = function (wrapper) {
  17053. return wrapper[module.exports.implSymbol];
  17054. };
  17055. /***/ }),
  17056. /***/ 504:
  17057. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17058. var hasMap = typeof Map === 'function' && Map.prototype;
  17059. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  17060. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  17061. var mapForEach = hasMap && Map.prototype.forEach;
  17062. var hasSet = typeof Set === 'function' && Set.prototype;
  17063. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  17064. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  17065. var setForEach = hasSet && Set.prototype.forEach;
  17066. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  17067. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  17068. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  17069. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  17070. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  17071. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  17072. var booleanValueOf = Boolean.prototype.valueOf;
  17073. var objectToString = Object.prototype.toString;
  17074. var functionToString = Function.prototype.toString;
  17075. var match = String.prototype.match;
  17076. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  17077. var gOPS = Object.getOwnPropertySymbols;
  17078. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  17079. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  17080. var isEnumerable = Object.prototype.propertyIsEnumerable;
  17081. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  17082. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  17083. ? function (O) {
  17084. return O.__proto__; // eslint-disable-line no-proto
  17085. }
  17086. : null
  17087. );
  17088. var inspectCustom = (__nccwpck_require__(7265).custom);
  17089. var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
  17090. var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
  17091. module.exports = function inspect_(obj, options, depth, seen) {
  17092. var opts = options || {};
  17093. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  17094. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  17095. }
  17096. if (
  17097. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  17098. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  17099. : opts.maxStringLength !== null
  17100. )
  17101. ) {
  17102. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  17103. }
  17104. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  17105. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  17106. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  17107. }
  17108. if (
  17109. has(opts, 'indent')
  17110. && opts.indent !== null
  17111. && opts.indent !== '\t'
  17112. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  17113. ) {
  17114. throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
  17115. }
  17116. if (typeof obj === 'undefined') {
  17117. return 'undefined';
  17118. }
  17119. if (obj === null) {
  17120. return 'null';
  17121. }
  17122. if (typeof obj === 'boolean') {
  17123. return obj ? 'true' : 'false';
  17124. }
  17125. if (typeof obj === 'string') {
  17126. return inspectString(obj, opts);
  17127. }
  17128. if (typeof obj === 'number') {
  17129. if (obj === 0) {
  17130. return Infinity / obj > 0 ? '0' : '-0';
  17131. }
  17132. return String(obj);
  17133. }
  17134. if (typeof obj === 'bigint') {
  17135. return String(obj) + 'n';
  17136. }
  17137. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  17138. if (typeof depth === 'undefined') { depth = 0; }
  17139. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  17140. return isArray(obj) ? '[Array]' : '[Object]';
  17141. }
  17142. var indent = getIndent(opts, depth);
  17143. if (typeof seen === 'undefined') {
  17144. seen = [];
  17145. } else if (indexOf(seen, obj) >= 0) {
  17146. return '[Circular]';
  17147. }
  17148. function inspect(value, from, noIndent) {
  17149. if (from) {
  17150. seen = seen.slice();
  17151. seen.push(from);
  17152. }
  17153. if (noIndent) {
  17154. var newOpts = {
  17155. depth: opts.depth
  17156. };
  17157. if (has(opts, 'quoteStyle')) {
  17158. newOpts.quoteStyle = opts.quoteStyle;
  17159. }
  17160. return inspect_(value, newOpts, depth + 1, seen);
  17161. }
  17162. return inspect_(value, opts, depth + 1, seen);
  17163. }
  17164. if (typeof obj === 'function') {
  17165. var name = nameOf(obj);
  17166. var keys = arrObjKeys(obj, inspect);
  17167. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
  17168. }
  17169. if (isSymbol(obj)) {
  17170. var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  17171. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  17172. }
  17173. if (isElement(obj)) {
  17174. var s = '<' + String(obj.nodeName).toLowerCase();
  17175. var attrs = obj.attributes || [];
  17176. for (var i = 0; i < attrs.length; i++) {
  17177. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  17178. }
  17179. s += '>';
  17180. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  17181. s += '</' + String(obj.nodeName).toLowerCase() + '>';
  17182. return s;
  17183. }
  17184. if (isArray(obj)) {
  17185. if (obj.length === 0) { return '[]'; }
  17186. var xs = arrObjKeys(obj, inspect);
  17187. if (indent && !singleLineValues(xs)) {
  17188. return '[' + indentedJoin(xs, indent) + ']';
  17189. }
  17190. return '[ ' + xs.join(', ') + ' ]';
  17191. }
  17192. if (isError(obj)) {
  17193. var parts = arrObjKeys(obj, inspect);
  17194. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  17195. return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
  17196. }
  17197. if (typeof obj === 'object' && customInspect) {
  17198. if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
  17199. return obj[inspectSymbol]();
  17200. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  17201. return obj.inspect();
  17202. }
  17203. }
  17204. if (isMap(obj)) {
  17205. var mapParts = [];
  17206. mapForEach.call(obj, function (value, key) {
  17207. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  17208. });
  17209. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  17210. }
  17211. if (isSet(obj)) {
  17212. var setParts = [];
  17213. setForEach.call(obj, function (value) {
  17214. setParts.push(inspect(value, obj));
  17215. });
  17216. return collectionOf('Set', setSize.call(obj), setParts, indent);
  17217. }
  17218. if (isWeakMap(obj)) {
  17219. return weakCollectionOf('WeakMap');
  17220. }
  17221. if (isWeakSet(obj)) {
  17222. return weakCollectionOf('WeakSet');
  17223. }
  17224. if (isWeakRef(obj)) {
  17225. return weakCollectionOf('WeakRef');
  17226. }
  17227. if (isNumber(obj)) {
  17228. return markBoxed(inspect(Number(obj)));
  17229. }
  17230. if (isBigInt(obj)) {
  17231. return markBoxed(inspect(bigIntValueOf.call(obj)));
  17232. }
  17233. if (isBoolean(obj)) {
  17234. return markBoxed(booleanValueOf.call(obj));
  17235. }
  17236. if (isString(obj)) {
  17237. return markBoxed(inspect(String(obj)));
  17238. }
  17239. if (!isDate(obj) && !isRegExp(obj)) {
  17240. var ys = arrObjKeys(obj, inspect);
  17241. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  17242. var protoTag = obj instanceof Object ? '' : 'null prototype';
  17243. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
  17244. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  17245. var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
  17246. if (ys.length === 0) { return tag + '{}'; }
  17247. if (indent) {
  17248. return tag + '{' + indentedJoin(ys, indent) + '}';
  17249. }
  17250. return tag + '{ ' + ys.join(', ') + ' }';
  17251. }
  17252. return String(obj);
  17253. };
  17254. function wrapQuotes(s, defaultStyle, opts) {
  17255. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  17256. return quoteChar + s + quoteChar;
  17257. }
  17258. function quote(s) {
  17259. return String(s).replace(/"/g, '&quot;');
  17260. }
  17261. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  17262. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  17263. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  17264. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  17265. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  17266. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  17267. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  17268. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  17269. function isSymbol(obj) {
  17270. if (hasShammedSymbols) {
  17271. return obj && typeof obj === 'object' && obj instanceof Symbol;
  17272. }
  17273. if (typeof obj === 'symbol') {
  17274. return true;
  17275. }
  17276. if (!obj || typeof obj !== 'object' || !symToString) {
  17277. return false;
  17278. }
  17279. try {
  17280. symToString.call(obj);
  17281. return true;
  17282. } catch (e) {}
  17283. return false;
  17284. }
  17285. function isBigInt(obj) {
  17286. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  17287. return false;
  17288. }
  17289. try {
  17290. bigIntValueOf.call(obj);
  17291. return true;
  17292. } catch (e) {}
  17293. return false;
  17294. }
  17295. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  17296. function has(obj, key) {
  17297. return hasOwn.call(obj, key);
  17298. }
  17299. function toStr(obj) {
  17300. return objectToString.call(obj);
  17301. }
  17302. function nameOf(f) {
  17303. if (f.name) { return f.name; }
  17304. var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  17305. if (m) { return m[1]; }
  17306. return null;
  17307. }
  17308. function indexOf(xs, x) {
  17309. if (xs.indexOf) { return xs.indexOf(x); }
  17310. for (var i = 0, l = xs.length; i < l; i++) {
  17311. if (xs[i] === x) { return i; }
  17312. }
  17313. return -1;
  17314. }
  17315. function isMap(x) {
  17316. if (!mapSize || !x || typeof x !== 'object') {
  17317. return false;
  17318. }
  17319. try {
  17320. mapSize.call(x);
  17321. try {
  17322. setSize.call(x);
  17323. } catch (s) {
  17324. return true;
  17325. }
  17326. return x instanceof Map; // core-js workaround, pre-v2.5.0
  17327. } catch (e) {}
  17328. return false;
  17329. }
  17330. function isWeakMap(x) {
  17331. if (!weakMapHas || !x || typeof x !== 'object') {
  17332. return false;
  17333. }
  17334. try {
  17335. weakMapHas.call(x, weakMapHas);
  17336. try {
  17337. weakSetHas.call(x, weakSetHas);
  17338. } catch (s) {
  17339. return true;
  17340. }
  17341. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  17342. } catch (e) {}
  17343. return false;
  17344. }
  17345. function isWeakRef(x) {
  17346. if (!weakRefDeref || !x || typeof x !== 'object') {
  17347. return false;
  17348. }
  17349. try {
  17350. weakRefDeref.call(x);
  17351. return true;
  17352. } catch (e) {}
  17353. return false;
  17354. }
  17355. function isSet(x) {
  17356. if (!setSize || !x || typeof x !== 'object') {
  17357. return false;
  17358. }
  17359. try {
  17360. setSize.call(x);
  17361. try {
  17362. mapSize.call(x);
  17363. } catch (m) {
  17364. return true;
  17365. }
  17366. return x instanceof Set; // core-js workaround, pre-v2.5.0
  17367. } catch (e) {}
  17368. return false;
  17369. }
  17370. function isWeakSet(x) {
  17371. if (!weakSetHas || !x || typeof x !== 'object') {
  17372. return false;
  17373. }
  17374. try {
  17375. weakSetHas.call(x, weakSetHas);
  17376. try {
  17377. weakMapHas.call(x, weakMapHas);
  17378. } catch (s) {
  17379. return true;
  17380. }
  17381. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  17382. } catch (e) {}
  17383. return false;
  17384. }
  17385. function isElement(x) {
  17386. if (!x || typeof x !== 'object') { return false; }
  17387. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  17388. return true;
  17389. }
  17390. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  17391. }
  17392. function inspectString(str, opts) {
  17393. if (str.length > opts.maxStringLength) {
  17394. var remaining = str.length - opts.maxStringLength;
  17395. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  17396. return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
  17397. }
  17398. // eslint-disable-next-line no-control-regex
  17399. var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
  17400. return wrapQuotes(s, 'single', opts);
  17401. }
  17402. function lowbyte(c) {
  17403. var n = c.charCodeAt(0);
  17404. var x = {
  17405. 8: 'b',
  17406. 9: 't',
  17407. 10: 'n',
  17408. 12: 'f',
  17409. 13: 'r'
  17410. }[n];
  17411. if (x) { return '\\' + x; }
  17412. return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
  17413. }
  17414. function markBoxed(str) {
  17415. return 'Object(' + str + ')';
  17416. }
  17417. function weakCollectionOf(type) {
  17418. return type + ' { ? }';
  17419. }
  17420. function collectionOf(type, size, entries, indent) {
  17421. var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
  17422. return type + ' (' + size + ') {' + joinedEntries + '}';
  17423. }
  17424. function singleLineValues(xs) {
  17425. for (var i = 0; i < xs.length; i++) {
  17426. if (indexOf(xs[i], '\n') >= 0) {
  17427. return false;
  17428. }
  17429. }
  17430. return true;
  17431. }
  17432. function getIndent(opts, depth) {
  17433. var baseIndent;
  17434. if (opts.indent === '\t') {
  17435. baseIndent = '\t';
  17436. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  17437. baseIndent = Array(opts.indent + 1).join(' ');
  17438. } else {
  17439. return null;
  17440. }
  17441. return {
  17442. base: baseIndent,
  17443. prev: Array(depth + 1).join(baseIndent)
  17444. };
  17445. }
  17446. function indentedJoin(xs, indent) {
  17447. if (xs.length === 0) { return ''; }
  17448. var lineJoiner = '\n' + indent.prev + indent.base;
  17449. return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
  17450. }
  17451. function arrObjKeys(obj, inspect) {
  17452. var isArr = isArray(obj);
  17453. var xs = [];
  17454. if (isArr) {
  17455. xs.length = obj.length;
  17456. for (var i = 0; i < obj.length; i++) {
  17457. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  17458. }
  17459. }
  17460. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  17461. var symMap;
  17462. if (hasShammedSymbols) {
  17463. symMap = {};
  17464. for (var k = 0; k < syms.length; k++) {
  17465. symMap['$' + syms[k]] = syms[k];
  17466. }
  17467. }
  17468. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  17469. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  17470. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  17471. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  17472. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  17473. continue; // eslint-disable-line no-restricted-syntax, no-continue
  17474. } else if ((/[^\w$]/).test(key)) {
  17475. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  17476. } else {
  17477. xs.push(key + ': ' + inspect(obj[key], obj));
  17478. }
  17479. }
  17480. if (typeof gOPS === 'function') {
  17481. for (var j = 0; j < syms.length; j++) {
  17482. if (isEnumerable.call(obj, syms[j])) {
  17483. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  17484. }
  17485. }
  17486. }
  17487. return xs;
  17488. }
  17489. /***/ }),
  17490. /***/ 7265:
  17491. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17492. module.exports = __nccwpck_require__(3837).inspect;
  17493. /***/ }),
  17494. /***/ 1223:
  17495. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17496. var wrappy = __nccwpck_require__(2940)
  17497. module.exports = wrappy(once)
  17498. module.exports.strict = wrappy(onceStrict)
  17499. once.proto = once(function () {
  17500. Object.defineProperty(Function.prototype, 'once', {
  17501. value: function () {
  17502. return once(this)
  17503. },
  17504. configurable: true
  17505. })
  17506. Object.defineProperty(Function.prototype, 'onceStrict', {
  17507. value: function () {
  17508. return onceStrict(this)
  17509. },
  17510. configurable: true
  17511. })
  17512. })
  17513. function once (fn) {
  17514. var f = function () {
  17515. if (f.called) return f.value
  17516. f.called = true
  17517. return f.value = fn.apply(this, arguments)
  17518. }
  17519. f.called = false
  17520. return f
  17521. }
  17522. function onceStrict (fn) {
  17523. var f = function () {
  17524. if (f.called)
  17525. throw new Error(f.onceError)
  17526. f.called = true
  17527. return f.value = fn.apply(this, arguments)
  17528. }
  17529. var name = fn.name || 'Function wrapped with `once`'
  17530. f.onceError = name + " shouldn't be called more than once"
  17531. f.called = false
  17532. return f
  17533. }
  17534. /***/ }),
  17535. /***/ 4907:
  17536. /***/ ((module) => {
  17537. "use strict";
  17538. var replace = String.prototype.replace;
  17539. var percentTwenties = /%20/g;
  17540. var Format = {
  17541. RFC1738: 'RFC1738',
  17542. RFC3986: 'RFC3986'
  17543. };
  17544. module.exports = {
  17545. 'default': Format.RFC3986,
  17546. formatters: {
  17547. RFC1738: function (value) {
  17548. return replace.call(value, percentTwenties, '+');
  17549. },
  17550. RFC3986: function (value) {
  17551. return String(value);
  17552. }
  17553. },
  17554. RFC1738: Format.RFC1738,
  17555. RFC3986: Format.RFC3986
  17556. };
  17557. /***/ }),
  17558. /***/ 2760:
  17559. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17560. "use strict";
  17561. var stringify = __nccwpck_require__(9954);
  17562. var parse = __nccwpck_require__(3912);
  17563. var formats = __nccwpck_require__(4907);
  17564. module.exports = {
  17565. formats: formats,
  17566. parse: parse,
  17567. stringify: stringify
  17568. };
  17569. /***/ }),
  17570. /***/ 3912:
  17571. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17572. "use strict";
  17573. var utils = __nccwpck_require__(2360);
  17574. var has = Object.prototype.hasOwnProperty;
  17575. var isArray = Array.isArray;
  17576. var defaults = {
  17577. allowDots: false,
  17578. allowPrototypes: false,
  17579. allowSparse: false,
  17580. arrayLimit: 20,
  17581. charset: 'utf-8',
  17582. charsetSentinel: false,
  17583. comma: false,
  17584. decoder: utils.decode,
  17585. delimiter: '&',
  17586. depth: 5,
  17587. ignoreQueryPrefix: false,
  17588. interpretNumericEntities: false,
  17589. parameterLimit: 1000,
  17590. parseArrays: true,
  17591. plainObjects: false,
  17592. strictNullHandling: false
  17593. };
  17594. var interpretNumericEntities = function (str) {
  17595. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  17596. return String.fromCharCode(parseInt(numberStr, 10));
  17597. });
  17598. };
  17599. var parseArrayValue = function (val, options) {
  17600. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  17601. return val.split(',');
  17602. }
  17603. return val;
  17604. };
  17605. // This is what browsers will submit when the ✓ character occurs in an
  17606. // application/x-www-form-urlencoded body and the encoding of the page containing
  17607. // the form is iso-8859-1, or when the submitted form has an accept-charset
  17608. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  17609. // the ✓ character, such as us-ascii.
  17610. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  17611. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  17612. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  17613. var parseValues = function parseQueryStringValues(str, options) {
  17614. var obj = {};
  17615. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  17616. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  17617. var parts = cleanStr.split(options.delimiter, limit);
  17618. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  17619. var i;
  17620. var charset = options.charset;
  17621. if (options.charsetSentinel) {
  17622. for (i = 0; i < parts.length; ++i) {
  17623. if (parts[i].indexOf('utf8=') === 0) {
  17624. if (parts[i] === charsetSentinel) {
  17625. charset = 'utf-8';
  17626. } else if (parts[i] === isoSentinel) {
  17627. charset = 'iso-8859-1';
  17628. }
  17629. skipIndex = i;
  17630. i = parts.length; // The eslint settings do not allow break;
  17631. }
  17632. }
  17633. }
  17634. for (i = 0; i < parts.length; ++i) {
  17635. if (i === skipIndex) {
  17636. continue;
  17637. }
  17638. var part = parts[i];
  17639. var bracketEqualsPos = part.indexOf(']=');
  17640. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  17641. var key, val;
  17642. if (pos === -1) {
  17643. key = options.decoder(part, defaults.decoder, charset, 'key');
  17644. val = options.strictNullHandling ? null : '';
  17645. } else {
  17646. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  17647. val = utils.maybeMap(
  17648. parseArrayValue(part.slice(pos + 1), options),
  17649. function (encodedVal) {
  17650. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  17651. }
  17652. );
  17653. }
  17654. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  17655. val = interpretNumericEntities(val);
  17656. }
  17657. if (part.indexOf('[]=') > -1) {
  17658. val = isArray(val) ? [val] : val;
  17659. }
  17660. if (has.call(obj, key)) {
  17661. obj[key] = utils.combine(obj[key], val);
  17662. } else {
  17663. obj[key] = val;
  17664. }
  17665. }
  17666. return obj;
  17667. };
  17668. var parseObject = function (chain, val, options, valuesParsed) {
  17669. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  17670. for (var i = chain.length - 1; i >= 0; --i) {
  17671. var obj;
  17672. var root = chain[i];
  17673. if (root === '[]' && options.parseArrays) {
  17674. obj = [].concat(leaf);
  17675. } else {
  17676. obj = options.plainObjects ? Object.create(null) : {};
  17677. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  17678. var index = parseInt(cleanRoot, 10);
  17679. if (!options.parseArrays && cleanRoot === '') {
  17680. obj = { 0: leaf };
  17681. } else if (
  17682. !isNaN(index)
  17683. && root !== cleanRoot
  17684. && String(index) === cleanRoot
  17685. && index >= 0
  17686. && (options.parseArrays && index <= options.arrayLimit)
  17687. ) {
  17688. obj = [];
  17689. obj[index] = leaf;
  17690. } else if (cleanRoot !== '__proto__') {
  17691. obj[cleanRoot] = leaf;
  17692. }
  17693. }
  17694. leaf = obj;
  17695. }
  17696. return leaf;
  17697. };
  17698. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  17699. if (!givenKey) {
  17700. return;
  17701. }
  17702. // Transform dot notation to bracket notation
  17703. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  17704. // The regex chunks
  17705. var brackets = /(\[[^[\]]*])/;
  17706. var child = /(\[[^[\]]*])/g;
  17707. // Get the parent
  17708. var segment = options.depth > 0 && brackets.exec(key);
  17709. var parent = segment ? key.slice(0, segment.index) : key;
  17710. // Stash the parent if it exists
  17711. var keys = [];
  17712. if (parent) {
  17713. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  17714. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  17715. if (!options.allowPrototypes) {
  17716. return;
  17717. }
  17718. }
  17719. keys.push(parent);
  17720. }
  17721. // Loop through children appending to the array until we hit depth
  17722. var i = 0;
  17723. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  17724. i += 1;
  17725. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  17726. if (!options.allowPrototypes) {
  17727. return;
  17728. }
  17729. }
  17730. keys.push(segment[1]);
  17731. }
  17732. // If there's a remainder, just add whatever is left
  17733. if (segment) {
  17734. keys.push('[' + key.slice(segment.index) + ']');
  17735. }
  17736. return parseObject(keys, val, options, valuesParsed);
  17737. };
  17738. var normalizeParseOptions = function normalizeParseOptions(opts) {
  17739. if (!opts) {
  17740. return defaults;
  17741. }
  17742. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  17743. throw new TypeError('Decoder has to be a function.');
  17744. }
  17745. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  17746. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  17747. }
  17748. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  17749. return {
  17750. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  17751. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  17752. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  17753. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  17754. charset: charset,
  17755. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  17756. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  17757. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  17758. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  17759. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  17760. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  17761. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  17762. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  17763. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  17764. parseArrays: opts.parseArrays !== false,
  17765. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  17766. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  17767. };
  17768. };
  17769. module.exports = function (str, opts) {
  17770. var options = normalizeParseOptions(opts);
  17771. if (str === '' || str === null || typeof str === 'undefined') {
  17772. return options.plainObjects ? Object.create(null) : {};
  17773. }
  17774. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  17775. var obj = options.plainObjects ? Object.create(null) : {};
  17776. // Iterate over the keys and setup the new object
  17777. var keys = Object.keys(tempObj);
  17778. for (var i = 0; i < keys.length; ++i) {
  17779. var key = keys[i];
  17780. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  17781. obj = utils.merge(obj, newObj, options);
  17782. }
  17783. if (options.allowSparse === true) {
  17784. return obj;
  17785. }
  17786. return utils.compact(obj);
  17787. };
  17788. /***/ }),
  17789. /***/ 9954:
  17790. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17791. "use strict";
  17792. var getSideChannel = __nccwpck_require__(4334);
  17793. var utils = __nccwpck_require__(2360);
  17794. var formats = __nccwpck_require__(4907);
  17795. var has = Object.prototype.hasOwnProperty;
  17796. var arrayPrefixGenerators = {
  17797. brackets: function brackets(prefix) {
  17798. return prefix + '[]';
  17799. },
  17800. comma: 'comma',
  17801. indices: function indices(prefix, key) {
  17802. return prefix + '[' + key + ']';
  17803. },
  17804. repeat: function repeat(prefix) {
  17805. return prefix;
  17806. }
  17807. };
  17808. var isArray = Array.isArray;
  17809. var split = String.prototype.split;
  17810. var push = Array.prototype.push;
  17811. var pushToArray = function (arr, valueOrArray) {
  17812. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  17813. };
  17814. var toISO = Date.prototype.toISOString;
  17815. var defaultFormat = formats['default'];
  17816. var defaults = {
  17817. addQueryPrefix: false,
  17818. allowDots: false,
  17819. charset: 'utf-8',
  17820. charsetSentinel: false,
  17821. delimiter: '&',
  17822. encode: true,
  17823. encoder: utils.encode,
  17824. encodeValuesOnly: false,
  17825. format: defaultFormat,
  17826. formatter: formats.formatters[defaultFormat],
  17827. // deprecated
  17828. indices: false,
  17829. serializeDate: function serializeDate(date) {
  17830. return toISO.call(date);
  17831. },
  17832. skipNulls: false,
  17833. strictNullHandling: false
  17834. };
  17835. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  17836. return typeof v === 'string'
  17837. || typeof v === 'number'
  17838. || typeof v === 'boolean'
  17839. || typeof v === 'symbol'
  17840. || typeof v === 'bigint';
  17841. };
  17842. var sentinel = {};
  17843. var stringify = function stringify(
  17844. object,
  17845. prefix,
  17846. generateArrayPrefix,
  17847. commaRoundTrip,
  17848. strictNullHandling,
  17849. skipNulls,
  17850. encoder,
  17851. filter,
  17852. sort,
  17853. allowDots,
  17854. serializeDate,
  17855. format,
  17856. formatter,
  17857. encodeValuesOnly,
  17858. charset,
  17859. sideChannel
  17860. ) {
  17861. var obj = object;
  17862. var tmpSc = sideChannel;
  17863. var step = 0;
  17864. var findFlag = false;
  17865. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  17866. // Where object last appeared in the ref tree
  17867. var pos = tmpSc.get(object);
  17868. step += 1;
  17869. if (typeof pos !== 'undefined') {
  17870. if (pos === step) {
  17871. throw new RangeError('Cyclic object value');
  17872. } else {
  17873. findFlag = true; // Break while
  17874. }
  17875. }
  17876. if (typeof tmpSc.get(sentinel) === 'undefined') {
  17877. step = 0;
  17878. }
  17879. }
  17880. if (typeof filter === 'function') {
  17881. obj = filter(prefix, obj);
  17882. } else if (obj instanceof Date) {
  17883. obj = serializeDate(obj);
  17884. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  17885. obj = utils.maybeMap(obj, function (value) {
  17886. if (value instanceof Date) {
  17887. return serializeDate(value);
  17888. }
  17889. return value;
  17890. });
  17891. }
  17892. if (obj === null) {
  17893. if (strictNullHandling) {
  17894. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  17895. }
  17896. obj = '';
  17897. }
  17898. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  17899. if (encoder) {
  17900. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  17901. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  17902. var valuesArray = split.call(String(obj), ',');
  17903. var valuesJoined = '';
  17904. for (var i = 0; i < valuesArray.length; ++i) {
  17905. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  17906. }
  17907. return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
  17908. }
  17909. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  17910. }
  17911. return [formatter(prefix) + '=' + formatter(String(obj))];
  17912. }
  17913. var values = [];
  17914. if (typeof obj === 'undefined') {
  17915. return values;
  17916. }
  17917. var objKeys;
  17918. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  17919. // we need to join elements in
  17920. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  17921. } else if (isArray(filter)) {
  17922. objKeys = filter;
  17923. } else {
  17924. var keys = Object.keys(obj);
  17925. objKeys = sort ? keys.sort(sort) : keys;
  17926. }
  17927. var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
  17928. for (var j = 0; j < objKeys.length; ++j) {
  17929. var key = objKeys[j];
  17930. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  17931. if (skipNulls && value === null) {
  17932. continue;
  17933. }
  17934. var keyPrefix = isArray(obj)
  17935. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
  17936. : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
  17937. sideChannel.set(object, step);
  17938. var valueSideChannel = getSideChannel();
  17939. valueSideChannel.set(sentinel, sideChannel);
  17940. pushToArray(values, stringify(
  17941. value,
  17942. keyPrefix,
  17943. generateArrayPrefix,
  17944. commaRoundTrip,
  17945. strictNullHandling,
  17946. skipNulls,
  17947. encoder,
  17948. filter,
  17949. sort,
  17950. allowDots,
  17951. serializeDate,
  17952. format,
  17953. formatter,
  17954. encodeValuesOnly,
  17955. charset,
  17956. valueSideChannel
  17957. ));
  17958. }
  17959. return values;
  17960. };
  17961. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  17962. if (!opts) {
  17963. return defaults;
  17964. }
  17965. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  17966. throw new TypeError('Encoder has to be a function.');
  17967. }
  17968. var charset = opts.charset || defaults.charset;
  17969. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  17970. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  17971. }
  17972. var format = formats['default'];
  17973. if (typeof opts.format !== 'undefined') {
  17974. if (!has.call(formats.formatters, opts.format)) {
  17975. throw new TypeError('Unknown format option provided.');
  17976. }
  17977. format = opts.format;
  17978. }
  17979. var formatter = formats.formatters[format];
  17980. var filter = defaults.filter;
  17981. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  17982. filter = opts.filter;
  17983. }
  17984. return {
  17985. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  17986. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  17987. charset: charset,
  17988. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  17989. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  17990. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  17991. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  17992. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  17993. filter: filter,
  17994. format: format,
  17995. formatter: formatter,
  17996. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  17997. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  17998. sort: typeof opts.sort === 'function' ? opts.sort : null,
  17999. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  18000. };
  18001. };
  18002. module.exports = function (object, opts) {
  18003. var obj = object;
  18004. var options = normalizeStringifyOptions(opts);
  18005. var objKeys;
  18006. var filter;
  18007. if (typeof options.filter === 'function') {
  18008. filter = options.filter;
  18009. obj = filter('', obj);
  18010. } else if (isArray(options.filter)) {
  18011. filter = options.filter;
  18012. objKeys = filter;
  18013. }
  18014. var keys = [];
  18015. if (typeof obj !== 'object' || obj === null) {
  18016. return '';
  18017. }
  18018. var arrayFormat;
  18019. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  18020. arrayFormat = opts.arrayFormat;
  18021. } else if (opts && 'indices' in opts) {
  18022. arrayFormat = opts.indices ? 'indices' : 'repeat';
  18023. } else {
  18024. arrayFormat = 'indices';
  18025. }
  18026. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  18027. if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
  18028. throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
  18029. }
  18030. var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
  18031. if (!objKeys) {
  18032. objKeys = Object.keys(obj);
  18033. }
  18034. if (options.sort) {
  18035. objKeys.sort(options.sort);
  18036. }
  18037. var sideChannel = getSideChannel();
  18038. for (var i = 0; i < objKeys.length; ++i) {
  18039. var key = objKeys[i];
  18040. if (options.skipNulls && obj[key] === null) {
  18041. continue;
  18042. }
  18043. pushToArray(keys, stringify(
  18044. obj[key],
  18045. key,
  18046. generateArrayPrefix,
  18047. commaRoundTrip,
  18048. options.strictNullHandling,
  18049. options.skipNulls,
  18050. options.encode ? options.encoder : null,
  18051. options.filter,
  18052. options.sort,
  18053. options.allowDots,
  18054. options.serializeDate,
  18055. options.format,
  18056. options.formatter,
  18057. options.encodeValuesOnly,
  18058. options.charset,
  18059. sideChannel
  18060. ));
  18061. }
  18062. var joined = keys.join(options.delimiter);
  18063. var prefix = options.addQueryPrefix === true ? '?' : '';
  18064. if (options.charsetSentinel) {
  18065. if (options.charset === 'iso-8859-1') {
  18066. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  18067. prefix += 'utf8=%26%2310003%3B&';
  18068. } else {
  18069. // encodeURIComponent('✓')
  18070. prefix += 'utf8=%E2%9C%93&';
  18071. }
  18072. }
  18073. return joined.length > 0 ? prefix + joined : '';
  18074. };
  18075. /***/ }),
  18076. /***/ 2360:
  18077. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  18078. "use strict";
  18079. var formats = __nccwpck_require__(4907);
  18080. var has = Object.prototype.hasOwnProperty;
  18081. var isArray = Array.isArray;
  18082. var hexTable = (function () {
  18083. var array = [];
  18084. for (var i = 0; i < 256; ++i) {
  18085. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  18086. }
  18087. return array;
  18088. }());
  18089. var compactQueue = function compactQueue(queue) {
  18090. while (queue.length > 1) {
  18091. var item = queue.pop();
  18092. var obj = item.obj[item.prop];
  18093. if (isArray(obj)) {
  18094. var compacted = [];
  18095. for (var j = 0; j < obj.length; ++j) {
  18096. if (typeof obj[j] !== 'undefined') {
  18097. compacted.push(obj[j]);
  18098. }
  18099. }
  18100. item.obj[item.prop] = compacted;
  18101. }
  18102. }
  18103. };
  18104. var arrayToObject = function arrayToObject(source, options) {
  18105. var obj = options && options.plainObjects ? Object.create(null) : {};
  18106. for (var i = 0; i < source.length; ++i) {
  18107. if (typeof source[i] !== 'undefined') {
  18108. obj[i] = source[i];
  18109. }
  18110. }
  18111. return obj;
  18112. };
  18113. var merge = function merge(target, source, options) {
  18114. /* eslint no-param-reassign: 0 */
  18115. if (!source) {
  18116. return target;
  18117. }
  18118. if (typeof source !== 'object') {
  18119. if (isArray(target)) {
  18120. target.push(source);
  18121. } else if (target && typeof target === 'object') {
  18122. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  18123. target[source] = true;
  18124. }
  18125. } else {
  18126. return [target, source];
  18127. }
  18128. return target;
  18129. }
  18130. if (!target || typeof target !== 'object') {
  18131. return [target].concat(source);
  18132. }
  18133. var mergeTarget = target;
  18134. if (isArray(target) && !isArray(source)) {
  18135. mergeTarget = arrayToObject(target, options);
  18136. }
  18137. if (isArray(target) && isArray(source)) {
  18138. source.forEach(function (item, i) {
  18139. if (has.call(target, i)) {
  18140. var targetItem = target[i];
  18141. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  18142. target[i] = merge(targetItem, item, options);
  18143. } else {
  18144. target.push(item);
  18145. }
  18146. } else {
  18147. target[i] = item;
  18148. }
  18149. });
  18150. return target;
  18151. }
  18152. return Object.keys(source).reduce(function (acc, key) {
  18153. var value = source[key];
  18154. if (has.call(acc, key)) {
  18155. acc[key] = merge(acc[key], value, options);
  18156. } else {
  18157. acc[key] = value;
  18158. }
  18159. return acc;
  18160. }, mergeTarget);
  18161. };
  18162. var assign = function assignSingleSource(target, source) {
  18163. return Object.keys(source).reduce(function (acc, key) {
  18164. acc[key] = source[key];
  18165. return acc;
  18166. }, target);
  18167. };
  18168. var decode = function (str, decoder, charset) {
  18169. var strWithoutPlus = str.replace(/\+/g, ' ');
  18170. if (charset === 'iso-8859-1') {
  18171. // unescape never throws, no try...catch needed:
  18172. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  18173. }
  18174. // utf-8
  18175. try {
  18176. return decodeURIComponent(strWithoutPlus);
  18177. } catch (e) {
  18178. return strWithoutPlus;
  18179. }
  18180. };
  18181. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  18182. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  18183. // It has been adapted here for stricter adherence to RFC 3986
  18184. if (str.length === 0) {
  18185. return str;
  18186. }
  18187. var string = str;
  18188. if (typeof str === 'symbol') {
  18189. string = Symbol.prototype.toString.call(str);
  18190. } else if (typeof str !== 'string') {
  18191. string = String(str);
  18192. }
  18193. if (charset === 'iso-8859-1') {
  18194. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  18195. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  18196. });
  18197. }
  18198. var out = '';
  18199. for (var i = 0; i < string.length; ++i) {
  18200. var c = string.charCodeAt(i);
  18201. if (
  18202. c === 0x2D // -
  18203. || c === 0x2E // .
  18204. || c === 0x5F // _
  18205. || c === 0x7E // ~
  18206. || (c >= 0x30 && c <= 0x39) // 0-9
  18207. || (c >= 0x41 && c <= 0x5A) // a-z
  18208. || (c >= 0x61 && c <= 0x7A) // A-Z
  18209. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  18210. ) {
  18211. out += string.charAt(i);
  18212. continue;
  18213. }
  18214. if (c < 0x80) {
  18215. out = out + hexTable[c];
  18216. continue;
  18217. }
  18218. if (c < 0x800) {
  18219. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  18220. continue;
  18221. }
  18222. if (c < 0xD800 || c >= 0xE000) {
  18223. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  18224. continue;
  18225. }
  18226. i += 1;
  18227. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  18228. /* eslint operator-linebreak: [2, "before"] */
  18229. out += hexTable[0xF0 | (c >> 18)]
  18230. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  18231. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  18232. + hexTable[0x80 | (c & 0x3F)];
  18233. }
  18234. return out;
  18235. };
  18236. var compact = function compact(value) {
  18237. var queue = [{ obj: { o: value }, prop: 'o' }];
  18238. var refs = [];
  18239. for (var i = 0; i < queue.length; ++i) {
  18240. var item = queue[i];
  18241. var obj = item.obj[item.prop];
  18242. var keys = Object.keys(obj);
  18243. for (var j = 0; j < keys.length; ++j) {
  18244. var key = keys[j];
  18245. var val = obj[key];
  18246. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  18247. queue.push({ obj: obj, prop: key });
  18248. refs.push(val);
  18249. }
  18250. }
  18251. }
  18252. compactQueue(queue);
  18253. return value;
  18254. };
  18255. var isRegExp = function isRegExp(obj) {
  18256. return Object.prototype.toString.call(obj) === '[object RegExp]';
  18257. };
  18258. var isBuffer = function isBuffer(obj) {
  18259. if (!obj || typeof obj !== 'object') {
  18260. return false;
  18261. }
  18262. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  18263. };
  18264. var combine = function combine(a, b) {
  18265. return [].concat(a, b);
  18266. };
  18267. var maybeMap = function maybeMap(val, fn) {
  18268. if (isArray(val)) {
  18269. var mapped = [];
  18270. for (var i = 0; i < val.length; i += 1) {
  18271. mapped.push(fn(val[i]));
  18272. }
  18273. return mapped;
  18274. }
  18275. return fn(val);
  18276. };
  18277. module.exports = {
  18278. arrayToObject: arrayToObject,
  18279. assign: assign,
  18280. combine: combine,
  18281. compact: compact,
  18282. decode: decode,
  18283. encode: encode,
  18284. isBuffer: isBuffer,
  18285. isRegExp: isRegExp,
  18286. maybeMap: maybeMap,
  18287. merge: merge
  18288. };
  18289. /***/ }),
  18290. /***/ 4334:
  18291. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  18292. "use strict";
  18293. var GetIntrinsic = __nccwpck_require__(4538);
  18294. var callBound = __nccwpck_require__(8803);
  18295. var inspect = __nccwpck_require__(504);
  18296. var $TypeError = GetIntrinsic('%TypeError%');
  18297. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  18298. var $Map = GetIntrinsic('%Map%', true);
  18299. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  18300. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  18301. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  18302. var $mapGet = callBound('Map.prototype.get', true);
  18303. var $mapSet = callBound('Map.prototype.set', true);
  18304. var $mapHas = callBound('Map.prototype.has', true);
  18305. /*
  18306. * This function traverses the list returning the node corresponding to the
  18307. * given key.
  18308. *
  18309. * That node is also moved to the head of the list, so that if it's accessed
  18310. * again we don't need to traverse the whole list. By doing so, all the recently
  18311. * used nodes can be accessed relatively quickly.
  18312. */
  18313. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  18314. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  18315. if (curr.key === key) {
  18316. prev.next = curr.next;
  18317. curr.next = list.next;
  18318. list.next = curr; // eslint-disable-line no-param-reassign
  18319. return curr;
  18320. }
  18321. }
  18322. };
  18323. var listGet = function (objects, key) {
  18324. var node = listGetNode(objects, key);
  18325. return node && node.value;
  18326. };
  18327. var listSet = function (objects, key, value) {
  18328. var node = listGetNode(objects, key);
  18329. if (node) {
  18330. node.value = value;
  18331. } else {
  18332. // Prepend the new node to the beginning of the list
  18333. objects.next = { // eslint-disable-line no-param-reassign
  18334. key: key,
  18335. next: objects.next,
  18336. value: value
  18337. };
  18338. }
  18339. };
  18340. var listHas = function (objects, key) {
  18341. return !!listGetNode(objects, key);
  18342. };
  18343. module.exports = function getSideChannel() {
  18344. var $wm;
  18345. var $m;
  18346. var $o;
  18347. var channel = {
  18348. assert: function (key) {
  18349. if (!channel.has(key)) {
  18350. throw new $TypeError('Side channel does not contain ' + inspect(key));
  18351. }
  18352. },
  18353. get: function (key) { // eslint-disable-line consistent-return
  18354. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  18355. if ($wm) {
  18356. return $weakMapGet($wm, key);
  18357. }
  18358. } else if ($Map) {
  18359. if ($m) {
  18360. return $mapGet($m, key);
  18361. }
  18362. } else {
  18363. if ($o) { // eslint-disable-line no-lonely-if
  18364. return listGet($o, key);
  18365. }
  18366. }
  18367. },
  18368. has: function (key) {
  18369. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  18370. if ($wm) {
  18371. return $weakMapHas($wm, key);
  18372. }
  18373. } else if ($Map) {
  18374. if ($m) {
  18375. return $mapHas($m, key);
  18376. }
  18377. } else {
  18378. if ($o) { // eslint-disable-line no-lonely-if
  18379. return listHas($o, key);
  18380. }
  18381. }
  18382. return false;
  18383. },
  18384. set: function (key, value) {
  18385. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  18386. if (!$wm) {
  18387. $wm = new $WeakMap();
  18388. }
  18389. $weakMapSet($wm, key, value);
  18390. } else if ($Map) {
  18391. if (!$m) {
  18392. $m = new $Map();
  18393. }
  18394. $mapSet($m, key, value);
  18395. } else {
  18396. if (!$o) {
  18397. /*
  18398. * Initialize the linked list as an empty node, so that we don't have
  18399. * to special-case handling of the first node: we can always refer to
  18400. * it as (previous node).next, instead of something like (list).head
  18401. */
  18402. $o = { key: {}, next: null };
  18403. }
  18404. listSet($o, key, value);
  18405. }
  18406. }
  18407. };
  18408. return channel;
  18409. };
  18410. /***/ }),
  18411. /***/ 4294:
  18412. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  18413. module.exports = __nccwpck_require__(4219);
  18414. /***/ }),
  18415. /***/ 4219:
  18416. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  18417. "use strict";
  18418. var net = __nccwpck_require__(1808);
  18419. var tls = __nccwpck_require__(4404);
  18420. var http = __nccwpck_require__(3685);
  18421. var https = __nccwpck_require__(5687);
  18422. var events = __nccwpck_require__(2361);
  18423. var assert = __nccwpck_require__(9491);
  18424. var util = __nccwpck_require__(3837);
  18425. exports.httpOverHttp = httpOverHttp;
  18426. exports.httpsOverHttp = httpsOverHttp;
  18427. exports.httpOverHttps = httpOverHttps;
  18428. exports.httpsOverHttps = httpsOverHttps;
  18429. function httpOverHttp(options) {
  18430. var agent = new TunnelingAgent(options);
  18431. agent.request = http.request;
  18432. return agent;
  18433. }
  18434. function httpsOverHttp(options) {
  18435. var agent = new TunnelingAgent(options);
  18436. agent.request = http.request;
  18437. agent.createSocket = createSecureSocket;
  18438. agent.defaultPort = 443;
  18439. return agent;
  18440. }
  18441. function httpOverHttps(options) {
  18442. var agent = new TunnelingAgent(options);
  18443. agent.request = https.request;
  18444. return agent;
  18445. }
  18446. function httpsOverHttps(options) {
  18447. var agent = new TunnelingAgent(options);
  18448. agent.request = https.request;
  18449. agent.createSocket = createSecureSocket;
  18450. agent.defaultPort = 443;
  18451. return agent;
  18452. }
  18453. function TunnelingAgent(options) {
  18454. var self = this;
  18455. self.options = options || {};
  18456. self.proxyOptions = self.options.proxy || {};
  18457. self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
  18458. self.requests = [];
  18459. self.sockets = [];
  18460. self.on('free', function onFree(socket, host, port, localAddress) {
  18461. var options = toOptions(host, port, localAddress);
  18462. for (var i = 0, len = self.requests.length; i < len; ++i) {
  18463. var pending = self.requests[i];
  18464. if (pending.host === options.host && pending.port === options.port) {
  18465. // Detect the request to connect same origin server,
  18466. // reuse the connection.
  18467. self.requests.splice(i, 1);
  18468. pending.request.onSocket(socket);
  18469. return;
  18470. }
  18471. }
  18472. socket.destroy();
  18473. self.removeSocket(socket);
  18474. });
  18475. }
  18476. util.inherits(TunnelingAgent, events.EventEmitter);
  18477. TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
  18478. var self = this;
  18479. var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
  18480. if (self.sockets.length >= this.maxSockets) {
  18481. // We are over limit so we'll add it to the queue.
  18482. self.requests.push(options);
  18483. return;
  18484. }
  18485. // If we are under maxSockets create a new one.
  18486. self.createSocket(options, function(socket) {
  18487. socket.on('free', onFree);
  18488. socket.on('close', onCloseOrRemove);
  18489. socket.on('agentRemove', onCloseOrRemove);
  18490. req.onSocket(socket);
  18491. function onFree() {
  18492. self.emit('free', socket, options);
  18493. }
  18494. function onCloseOrRemove(err) {
  18495. self.removeSocket(socket);
  18496. socket.removeListener('free', onFree);
  18497. socket.removeListener('close', onCloseOrRemove);
  18498. socket.removeListener('agentRemove', onCloseOrRemove);
  18499. }
  18500. });
  18501. };
  18502. TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
  18503. var self = this;
  18504. var placeholder = {};
  18505. self.sockets.push(placeholder);
  18506. var connectOptions = mergeOptions({}, self.proxyOptions, {
  18507. method: 'CONNECT',
  18508. path: options.host + ':' + options.port,
  18509. agent: false,
  18510. headers: {
  18511. host: options.host + ':' + options.port
  18512. }
  18513. });
  18514. if (options.localAddress) {
  18515. connectOptions.localAddress = options.localAddress;
  18516. }
  18517. if (connectOptions.proxyAuth) {
  18518. connectOptions.headers = connectOptions.headers || {};
  18519. connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
  18520. new Buffer(connectOptions.proxyAuth).toString('base64');
  18521. }
  18522. debug('making CONNECT request');
  18523. var connectReq = self.request(connectOptions);
  18524. connectReq.useChunkedEncodingByDefault = false; // for v0.6
  18525. connectReq.once('response', onResponse); // for v0.6
  18526. connectReq.once('upgrade', onUpgrade); // for v0.6
  18527. connectReq.once('connect', onConnect); // for v0.7 or later
  18528. connectReq.once('error', onError);
  18529. connectReq.end();
  18530. function onResponse(res) {
  18531. // Very hacky. This is necessary to avoid http-parser leaks.
  18532. res.upgrade = true;
  18533. }
  18534. function onUpgrade(res, socket, head) {
  18535. // Hacky.
  18536. process.nextTick(function() {
  18537. onConnect(res, socket, head);
  18538. });
  18539. }
  18540. function onConnect(res, socket, head) {
  18541. connectReq.removeAllListeners();
  18542. socket.removeAllListeners();
  18543. if (res.statusCode !== 200) {
  18544. debug('tunneling socket could not be established, statusCode=%d',
  18545. res.statusCode);
  18546. socket.destroy();
  18547. var error = new Error('tunneling socket could not be established, ' +
  18548. 'statusCode=' + res.statusCode);
  18549. error.code = 'ECONNRESET';
  18550. options.request.emit('error', error);
  18551. self.removeSocket(placeholder);
  18552. return;
  18553. }
  18554. if (head.length > 0) {
  18555. debug('got illegal response body from proxy');
  18556. socket.destroy();
  18557. var error = new Error('got illegal response body from proxy');
  18558. error.code = 'ECONNRESET';
  18559. options.request.emit('error', error);
  18560. self.removeSocket(placeholder);
  18561. return;
  18562. }
  18563. debug('tunneling connection has established');
  18564. self.sockets[self.sockets.indexOf(placeholder)] = socket;
  18565. return cb(socket);
  18566. }
  18567. function onError(cause) {
  18568. connectReq.removeAllListeners();
  18569. debug('tunneling socket could not be established, cause=%s\n',
  18570. cause.message, cause.stack);
  18571. var error = new Error('tunneling socket could not be established, ' +
  18572. 'cause=' + cause.message);
  18573. error.code = 'ECONNRESET';
  18574. options.request.emit('error', error);
  18575. self.removeSocket(placeholder);
  18576. }
  18577. };
  18578. TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
  18579. var pos = this.sockets.indexOf(socket)
  18580. if (pos === -1) {
  18581. return;
  18582. }
  18583. this.sockets.splice(pos, 1);
  18584. var pending = this.requests.shift();
  18585. if (pending) {
  18586. // If we have pending requests and a socket gets closed a new one
  18587. // needs to be created to take over in the pool for the one that closed.
  18588. this.createSocket(pending, function(socket) {
  18589. pending.request.onSocket(socket);
  18590. });
  18591. }
  18592. };
  18593. function createSecureSocket(options, cb) {
  18594. var self = this;
  18595. TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
  18596. var hostHeader = options.request.getHeader('host');
  18597. var tlsOptions = mergeOptions({}, self.options, {
  18598. socket: socket,
  18599. servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
  18600. });
  18601. // 0 is dummy port for v0.6
  18602. var secureSocket = tls.connect(0, tlsOptions);
  18603. self.sockets[self.sockets.indexOf(socket)] = secureSocket;
  18604. cb(secureSocket);
  18605. });
  18606. }
  18607. function toOptions(host, port, localAddress) {
  18608. if (typeof host === 'string') { // since v0.10
  18609. return {
  18610. host: host,
  18611. port: port,
  18612. localAddress: localAddress
  18613. };
  18614. }
  18615. return host; // for v0.11 or later
  18616. }
  18617. function mergeOptions(target) {
  18618. for (var i = 1, len = arguments.length; i < len; ++i) {
  18619. var overrides = arguments[i];
  18620. if (typeof overrides === 'object') {
  18621. var keys = Object.keys(overrides);
  18622. for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
  18623. var k = keys[j];
  18624. if (overrides[k] !== undefined) {
  18625. target[k] = overrides[k];
  18626. }
  18627. }
  18628. }
  18629. }
  18630. return target;
  18631. }
  18632. var debug;
  18633. if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
  18634. debug = function() {
  18635. var args = Array.prototype.slice.call(arguments);
  18636. if (typeof args[0] === 'string') {
  18637. args[0] = 'TUNNEL: ' + args[0];
  18638. } else {
  18639. args.unshift('TUNNEL:');
  18640. }
  18641. console.error.apply(console, args);
  18642. }
  18643. } else {
  18644. debug = function() {};
  18645. }
  18646. exports.debug = debug; // for test
  18647. /***/ }),
  18648. /***/ 5538:
  18649. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  18650. "use strict";
  18651. // Copyright (c) Microsoft. All rights reserved.
  18652. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  18653. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  18654. return new (P || (P = Promise))(function (resolve, reject) {
  18655. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  18656. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  18657. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  18658. step((generator = generator.apply(thisArg, _arguments || [])).next());
  18659. });
  18660. };
  18661. Object.defineProperty(exports, "__esModule", ({ value: true }));
  18662. const url = __nccwpck_require__(7310);
  18663. const http = __nccwpck_require__(3685);
  18664. const https = __nccwpck_require__(5687);
  18665. const util = __nccwpck_require__(9470);
  18666. let fs;
  18667. let tunnel;
  18668. var HttpCodes;
  18669. (function (HttpCodes) {
  18670. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  18671. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  18672. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  18673. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  18674. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  18675. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  18676. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  18677. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  18678. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  18679. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  18680. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  18681. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  18682. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  18683. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  18684. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  18685. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  18686. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  18687. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  18688. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  18689. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  18690. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  18691. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  18692. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  18693. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  18694. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  18695. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  18696. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  18697. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  18698. const HttpRedirectCodes = [HttpCodes.MovedPermanently, HttpCodes.ResourceMoved, HttpCodes.SeeOther, HttpCodes.TemporaryRedirect, HttpCodes.PermanentRedirect];
  18699. const HttpResponseRetryCodes = [HttpCodes.BadGateway, HttpCodes.ServiceUnavailable, HttpCodes.GatewayTimeout];
  18700. const NetworkRetryErrors = ['ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED'];
  18701. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  18702. const ExponentialBackoffCeiling = 10;
  18703. const ExponentialBackoffTimeSlice = 5;
  18704. class HttpClientResponse {
  18705. constructor(message) {
  18706. this.message = message;
  18707. }
  18708. readBody() {
  18709. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  18710. let buffer = Buffer.alloc(0);
  18711. const encodingCharset = util.obtainContentCharset(this);
  18712. // Extract Encoding from header: 'content-encoding'
  18713. // Match `gzip`, `gzip, deflate` variations of GZIP encoding
  18714. const contentEncoding = this.message.headers['content-encoding'] || '';
  18715. const isGzippedEncoded = new RegExp('(gzip$)|(gzip, *deflate)').test(contentEncoding);
  18716. this.message.on('data', function (data) {
  18717. const chunk = (typeof data === 'string') ? Buffer.from(data, encodingCharset) : data;
  18718. buffer = Buffer.concat([buffer, chunk]);
  18719. }).on('end', function () {
  18720. return __awaiter(this, void 0, void 0, function* () {
  18721. if (isGzippedEncoded) { // Process GZipped Response Body HERE
  18722. const gunzippedBody = yield util.decompressGzippedContent(buffer, encodingCharset);
  18723. resolve(gunzippedBody);
  18724. }
  18725. else {
  18726. resolve(buffer.toString(encodingCharset));
  18727. }
  18728. });
  18729. }).on('error', function (err) {
  18730. reject(err);
  18731. });
  18732. }));
  18733. }
  18734. }
  18735. exports.HttpClientResponse = HttpClientResponse;
  18736. function isHttps(requestUrl) {
  18737. let parsedUrl = url.parse(requestUrl);
  18738. return parsedUrl.protocol === 'https:';
  18739. }
  18740. exports.isHttps = isHttps;
  18741. var EnvironmentVariables;
  18742. (function (EnvironmentVariables) {
  18743. EnvironmentVariables["HTTP_PROXY"] = "HTTP_PROXY";
  18744. EnvironmentVariables["HTTPS_PROXY"] = "HTTPS_PROXY";
  18745. EnvironmentVariables["NO_PROXY"] = "NO_PROXY";
  18746. })(EnvironmentVariables || (EnvironmentVariables = {}));
  18747. class HttpClient {
  18748. constructor(userAgent, handlers, requestOptions) {
  18749. this._ignoreSslError = false;
  18750. this._allowRedirects = true;
  18751. this._allowRedirectDowngrade = false;
  18752. this._maxRedirects = 50;
  18753. this._allowRetries = false;
  18754. this._maxRetries = 1;
  18755. this._keepAlive = false;
  18756. this._disposed = false;
  18757. this.userAgent = userAgent;
  18758. this.handlers = handlers || [];
  18759. let no_proxy = process.env[EnvironmentVariables.NO_PROXY];
  18760. if (no_proxy) {
  18761. this._httpProxyBypassHosts = [];
  18762. no_proxy.split(',').forEach(bypass => {
  18763. this._httpProxyBypassHosts.push(util.buildProxyBypassRegexFromEnv(bypass));
  18764. });
  18765. }
  18766. this.requestOptions = requestOptions;
  18767. if (requestOptions) {
  18768. if (requestOptions.ignoreSslError != null) {
  18769. this._ignoreSslError = requestOptions.ignoreSslError;
  18770. }
  18771. this._socketTimeout = requestOptions.socketTimeout;
  18772. this._httpProxy = requestOptions.proxy;
  18773. if (requestOptions.proxy && requestOptions.proxy.proxyBypassHosts) {
  18774. this._httpProxyBypassHosts = [];
  18775. requestOptions.proxy.proxyBypassHosts.forEach(bypass => {
  18776. this._httpProxyBypassHosts.push(new RegExp(bypass, 'i'));
  18777. });
  18778. }
  18779. this._certConfig = requestOptions.cert;
  18780. if (this._certConfig) {
  18781. // If using cert, need fs
  18782. fs = __nccwpck_require__(7147);
  18783. // cache the cert content into memory, so we don't have to read it from disk every time
  18784. if (this._certConfig.caFile && fs.existsSync(this._certConfig.caFile)) {
  18785. this._ca = fs.readFileSync(this._certConfig.caFile, 'utf8');
  18786. }
  18787. if (this._certConfig.certFile && fs.existsSync(this._certConfig.certFile)) {
  18788. this._cert = fs.readFileSync(this._certConfig.certFile, 'utf8');
  18789. }
  18790. if (this._certConfig.keyFile && fs.existsSync(this._certConfig.keyFile)) {
  18791. this._key = fs.readFileSync(this._certConfig.keyFile, 'utf8');
  18792. }
  18793. }
  18794. if (requestOptions.allowRedirects != null) {
  18795. this._allowRedirects = requestOptions.allowRedirects;
  18796. }
  18797. if (requestOptions.allowRedirectDowngrade != null) {
  18798. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  18799. }
  18800. if (requestOptions.maxRedirects != null) {
  18801. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  18802. }
  18803. if (requestOptions.keepAlive != null) {
  18804. this._keepAlive = requestOptions.keepAlive;
  18805. }
  18806. if (requestOptions.allowRetries != null) {
  18807. this._allowRetries = requestOptions.allowRetries;
  18808. }
  18809. if (requestOptions.maxRetries != null) {
  18810. this._maxRetries = requestOptions.maxRetries;
  18811. }
  18812. }
  18813. }
  18814. options(requestUrl, additionalHeaders) {
  18815. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  18816. }
  18817. get(requestUrl, additionalHeaders) {
  18818. return this.request('GET', requestUrl, null, additionalHeaders || {});
  18819. }
  18820. del(requestUrl, additionalHeaders) {
  18821. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  18822. }
  18823. post(requestUrl, data, additionalHeaders) {
  18824. return this.request('POST', requestUrl, data, additionalHeaders || {});
  18825. }
  18826. patch(requestUrl, data, additionalHeaders) {
  18827. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  18828. }
  18829. put(requestUrl, data, additionalHeaders) {
  18830. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  18831. }
  18832. head(requestUrl, additionalHeaders) {
  18833. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  18834. }
  18835. sendStream(verb, requestUrl, stream, additionalHeaders) {
  18836. return this.request(verb, requestUrl, stream, additionalHeaders);
  18837. }
  18838. /**
  18839. * Makes a raw http request.
  18840. * All other methods such as get, post, patch, and request ultimately call this.
  18841. * Prefer get, del, post and patch
  18842. */
  18843. request(verb, requestUrl, data, headers) {
  18844. return __awaiter(this, void 0, void 0, function* () {
  18845. if (this._disposed) {
  18846. throw new Error("Client has already been disposed.");
  18847. }
  18848. let parsedUrl = url.parse(requestUrl);
  18849. let info = this._prepareRequest(verb, parsedUrl, headers);
  18850. // Only perform retries on reads since writes may not be idempotent.
  18851. let maxTries = (this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1) ? this._maxRetries + 1 : 1;
  18852. let numTries = 0;
  18853. let response;
  18854. while (numTries < maxTries) {
  18855. try {
  18856. response = yield this.requestRaw(info, data);
  18857. }
  18858. catch (err) {
  18859. numTries++;
  18860. if (err && err.code && NetworkRetryErrors.indexOf(err.code) > -1 && numTries < maxTries) {
  18861. yield this._performExponentialBackoff(numTries);
  18862. continue;
  18863. }
  18864. throw err;
  18865. }
  18866. // Check if it's an authentication challenge
  18867. if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) {
  18868. let authenticationHandler;
  18869. for (let i = 0; i < this.handlers.length; i++) {
  18870. if (this.handlers[i].canHandleAuthentication(response)) {
  18871. authenticationHandler = this.handlers[i];
  18872. break;
  18873. }
  18874. }
  18875. if (authenticationHandler) {
  18876. return authenticationHandler.handleAuthentication(this, info, data);
  18877. }
  18878. else {
  18879. // We have received an unauthorized response but have no handlers to handle it.
  18880. // Let the response return to the caller.
  18881. return response;
  18882. }
  18883. }
  18884. let redirectsRemaining = this._maxRedirects;
  18885. while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1
  18886. && this._allowRedirects
  18887. && redirectsRemaining > 0) {
  18888. const redirectUrl = response.message.headers["location"];
  18889. if (!redirectUrl) {
  18890. // if there's no location to redirect to, we won't
  18891. break;
  18892. }
  18893. let parsedRedirectUrl = url.parse(redirectUrl);
  18894. if (parsedUrl.protocol == 'https:' && parsedUrl.protocol != parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) {
  18895. 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.");
  18896. }
  18897. // we need to finish reading the response before reassigning response
  18898. // which will leak the open socket.
  18899. yield response.readBody();
  18900. // let's make the request with the new redirectUrl
  18901. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  18902. response = yield this.requestRaw(info, data);
  18903. redirectsRemaining--;
  18904. }
  18905. if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
  18906. // If not a retry code, return immediately instead of retrying
  18907. return response;
  18908. }
  18909. numTries += 1;
  18910. if (numTries < maxTries) {
  18911. yield response.readBody();
  18912. yield this._performExponentialBackoff(numTries);
  18913. }
  18914. }
  18915. return response;
  18916. });
  18917. }
  18918. /**
  18919. * Needs to be called if keepAlive is set to true in request options.
  18920. */
  18921. dispose() {
  18922. if (this._agent) {
  18923. this._agent.destroy();
  18924. }
  18925. this._disposed = true;
  18926. }
  18927. /**
  18928. * Raw request.
  18929. * @param info
  18930. * @param data
  18931. */
  18932. requestRaw(info, data) {
  18933. return new Promise((resolve, reject) => {
  18934. let callbackForResult = function (err, res) {
  18935. if (err) {
  18936. reject(err);
  18937. }
  18938. resolve(res);
  18939. };
  18940. this.requestRawWithCallback(info, data, callbackForResult);
  18941. });
  18942. }
  18943. /**
  18944. * Raw request with callback.
  18945. * @param info
  18946. * @param data
  18947. * @param onResult
  18948. */
  18949. requestRawWithCallback(info, data, onResult) {
  18950. let socket;
  18951. if (typeof (data) === 'string') {
  18952. info.options.headers["Content-Length"] = Buffer.byteLength(data, 'utf8');
  18953. }
  18954. let callbackCalled = false;
  18955. let handleResult = (err, res) => {
  18956. if (!callbackCalled) {
  18957. callbackCalled = true;
  18958. onResult(err, res);
  18959. }
  18960. };
  18961. let req = info.httpModule.request(info.options, (msg) => {
  18962. let res = new HttpClientResponse(msg);
  18963. handleResult(null, res);
  18964. });
  18965. req.on('socket', (sock) => {
  18966. socket = sock;
  18967. });
  18968. // If we ever get disconnected, we want the socket to timeout eventually
  18969. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  18970. if (socket) {
  18971. socket.destroy();
  18972. }
  18973. handleResult(new Error('Request timeout: ' + info.options.path), null);
  18974. });
  18975. req.on('error', function (err) {
  18976. // err has statusCode property
  18977. // res should have headers
  18978. handleResult(err, null);
  18979. });
  18980. if (data && typeof (data) === 'string') {
  18981. req.write(data, 'utf8');
  18982. }
  18983. if (data && typeof (data) !== 'string') {
  18984. data.on('close', function () {
  18985. req.end();
  18986. });
  18987. data.pipe(req);
  18988. }
  18989. else {
  18990. req.end();
  18991. }
  18992. }
  18993. _prepareRequest(method, requestUrl, headers) {
  18994. const info = {};
  18995. info.parsedUrl = requestUrl;
  18996. const usingSsl = info.parsedUrl.protocol === 'https:';
  18997. info.httpModule = usingSsl ? https : http;
  18998. const defaultPort = usingSsl ? 443 : 80;
  18999. info.options = {};
  19000. info.options.host = info.parsedUrl.hostname;
  19001. info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;
  19002. info.options.path = (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  19003. info.options.method = method;
  19004. info.options.timeout = (this.requestOptions && this.requestOptions.socketTimeout) || this._socketTimeout;
  19005. this._socketTimeout = info.options.timeout;
  19006. info.options.headers = this._mergeHeaders(headers);
  19007. if (this.userAgent != null) {
  19008. info.options.headers["user-agent"] = this.userAgent;
  19009. }
  19010. info.options.agent = this._getAgent(info.parsedUrl);
  19011. // gives handlers an opportunity to participate
  19012. if (this.handlers && !this._isPresigned(url.format(requestUrl))) {
  19013. this.handlers.forEach((handler) => {
  19014. handler.prepareRequest(info.options);
  19015. });
  19016. }
  19017. return info;
  19018. }
  19019. _isPresigned(requestUrl) {
  19020. if (this.requestOptions && this.requestOptions.presignedUrlPatterns) {
  19021. const patterns = this.requestOptions.presignedUrlPatterns;
  19022. for (let i = 0; i < patterns.length; i++) {
  19023. if (requestUrl.match(patterns[i])) {
  19024. return true;
  19025. }
  19026. }
  19027. }
  19028. return false;
  19029. }
  19030. _mergeHeaders(headers) {
  19031. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
  19032. if (this.requestOptions && this.requestOptions.headers) {
  19033. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
  19034. }
  19035. return lowercaseKeys(headers || {});
  19036. }
  19037. _getAgent(parsedUrl) {
  19038. let agent;
  19039. let proxy = this._getProxy(parsedUrl);
  19040. let useProxy = proxy.proxyUrl && proxy.proxyUrl.hostname && !this._isMatchInBypassProxyList(parsedUrl);
  19041. if (this._keepAlive && useProxy) {
  19042. agent = this._proxyAgent;
  19043. }
  19044. if (this._keepAlive && !useProxy) {
  19045. agent = this._agent;
  19046. }
  19047. // if agent is already assigned use that agent.
  19048. if (!!agent) {
  19049. return agent;
  19050. }
  19051. const usingSsl = parsedUrl.protocol === 'https:';
  19052. let maxSockets = 100;
  19053. if (!!this.requestOptions) {
  19054. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  19055. }
  19056. if (useProxy) {
  19057. // If using proxy, need tunnel
  19058. if (!tunnel) {
  19059. tunnel = __nccwpck_require__(4294);
  19060. }
  19061. const agentOptions = {
  19062. maxSockets: maxSockets,
  19063. keepAlive: this._keepAlive,
  19064. proxy: {
  19065. proxyAuth: proxy.proxyAuth,
  19066. host: proxy.proxyUrl.hostname,
  19067. port: proxy.proxyUrl.port
  19068. },
  19069. };
  19070. let tunnelAgent;
  19071. const overHttps = proxy.proxyUrl.protocol === 'https:';
  19072. if (usingSsl) {
  19073. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  19074. }
  19075. else {
  19076. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  19077. }
  19078. agent = tunnelAgent(agentOptions);
  19079. this._proxyAgent = agent;
  19080. }
  19081. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  19082. if (this._keepAlive && !agent) {
  19083. const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };
  19084. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  19085. this._agent = agent;
  19086. }
  19087. // if not using private agent and tunnel agent isn't setup then use global agent
  19088. if (!agent) {
  19089. agent = usingSsl ? https.globalAgent : http.globalAgent;
  19090. }
  19091. if (usingSsl && this._ignoreSslError) {
  19092. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  19093. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  19094. // we have to cast it to any and change it directly
  19095. agent.options = Object.assign(agent.options || {}, { rejectUnauthorized: false });
  19096. }
  19097. if (usingSsl && this._certConfig) {
  19098. agent.options = Object.assign(agent.options || {}, { ca: this._ca, cert: this._cert, key: this._key, passphrase: this._certConfig.passphrase });
  19099. }
  19100. return agent;
  19101. }
  19102. _getProxy(parsedUrl) {
  19103. let usingSsl = parsedUrl.protocol === 'https:';
  19104. let proxyConfig = this._httpProxy;
  19105. // fallback to http_proxy and https_proxy env
  19106. let https_proxy = process.env[EnvironmentVariables.HTTPS_PROXY];
  19107. let http_proxy = process.env[EnvironmentVariables.HTTP_PROXY];
  19108. if (!proxyConfig) {
  19109. if (https_proxy && usingSsl) {
  19110. proxyConfig = {
  19111. proxyUrl: https_proxy
  19112. };
  19113. }
  19114. else if (http_proxy) {
  19115. proxyConfig = {
  19116. proxyUrl: http_proxy
  19117. };
  19118. }
  19119. }
  19120. let proxyUrl;
  19121. let proxyAuth;
  19122. if (proxyConfig) {
  19123. if (proxyConfig.proxyUrl.length > 0) {
  19124. proxyUrl = url.parse(proxyConfig.proxyUrl);
  19125. }
  19126. if (proxyConfig.proxyUsername || proxyConfig.proxyPassword) {
  19127. proxyAuth = proxyConfig.proxyUsername + ":" + proxyConfig.proxyPassword;
  19128. }
  19129. }
  19130. return { proxyUrl: proxyUrl, proxyAuth: proxyAuth };
  19131. }
  19132. _isMatchInBypassProxyList(parsedUrl) {
  19133. if (!this._httpProxyBypassHosts) {
  19134. return false;
  19135. }
  19136. let bypass = false;
  19137. this._httpProxyBypassHosts.forEach(bypassHost => {
  19138. if (bypassHost.test(parsedUrl.href)) {
  19139. bypass = true;
  19140. }
  19141. });
  19142. return bypass;
  19143. }
  19144. _performExponentialBackoff(retryNumber) {
  19145. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  19146. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  19147. return new Promise(resolve => setTimeout(() => resolve(), ms));
  19148. }
  19149. }
  19150. exports.HttpClient = HttpClient;
  19151. /***/ }),
  19152. /***/ 9470:
  19153. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  19154. "use strict";
  19155. // Copyright (c) Microsoft. All rights reserved.
  19156. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  19157. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  19158. return new (P || (P = Promise))(function (resolve, reject) {
  19159. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  19160. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  19161. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  19162. step((generator = generator.apply(thisArg, _arguments || [])).next());
  19163. });
  19164. };
  19165. Object.defineProperty(exports, "__esModule", ({ value: true }));
  19166. const qs = __nccwpck_require__(2760);
  19167. const url = __nccwpck_require__(7310);
  19168. const path = __nccwpck_require__(1017);
  19169. const zlib = __nccwpck_require__(9796);
  19170. /**
  19171. * creates an url from a request url and optional base url (http://server:8080)
  19172. * @param {string} resource - a fully qualified url or relative path
  19173. * @param {string} baseUrl - an optional baseUrl (http://server:8080)
  19174. * @param {IRequestOptions} options - an optional options object, could include QueryParameters e.g.
  19175. * @return {string} - resultant url
  19176. */
  19177. function getUrl(resource, baseUrl, queryParams) {
  19178. const pathApi = path.posix || path;
  19179. let requestUrl = '';
  19180. if (!baseUrl) {
  19181. requestUrl = resource;
  19182. }
  19183. else if (!resource) {
  19184. requestUrl = baseUrl;
  19185. }
  19186. else {
  19187. const base = url.parse(baseUrl);
  19188. const resultantUrl = url.parse(resource);
  19189. // resource (specific per request) elements take priority
  19190. resultantUrl.protocol = resultantUrl.protocol || base.protocol;
  19191. resultantUrl.auth = resultantUrl.auth || base.auth;
  19192. resultantUrl.host = resultantUrl.host || base.host;
  19193. resultantUrl.pathname = pathApi.resolve(base.pathname, resultantUrl.pathname);
  19194. if (!resultantUrl.pathname.endsWith('/') && resource.endsWith('/')) {
  19195. resultantUrl.pathname += '/';
  19196. }
  19197. requestUrl = url.format(resultantUrl);
  19198. }
  19199. return queryParams ?
  19200. getUrlWithParsedQueryParams(requestUrl, queryParams) :
  19201. requestUrl;
  19202. }
  19203. exports.getUrl = getUrl;
  19204. /**
  19205. *
  19206. * @param {string} requestUrl
  19207. * @param {IRequestQueryParams} queryParams
  19208. * @return {string} - Request's URL with Query Parameters appended/parsed.
  19209. */
  19210. function getUrlWithParsedQueryParams(requestUrl, queryParams) {
  19211. const url = requestUrl.replace(/\?$/g, ''); // Clean any extra end-of-string "?" character
  19212. const parsedQueryParams = qs.stringify(queryParams.params, buildParamsStringifyOptions(queryParams));
  19213. return `${url}${parsedQueryParams}`;
  19214. }
  19215. /**
  19216. * Build options for QueryParams Stringifying.
  19217. *
  19218. * @param {IRequestQueryParams} queryParams
  19219. * @return {object}
  19220. */
  19221. function buildParamsStringifyOptions(queryParams) {
  19222. let options = {
  19223. addQueryPrefix: true,
  19224. delimiter: (queryParams.options || {}).separator || '&',
  19225. allowDots: (queryParams.options || {}).shouldAllowDots || false,
  19226. arrayFormat: (queryParams.options || {}).arrayFormat || 'repeat',
  19227. encodeValuesOnly: (queryParams.options || {}).shouldOnlyEncodeValues || true
  19228. };
  19229. return options;
  19230. }
  19231. /**
  19232. * Decompress/Decode gzip encoded JSON
  19233. * Using Node.js built-in zlib module
  19234. *
  19235. * @param {Buffer} buffer
  19236. * @param {string} charset? - optional; defaults to 'utf-8'
  19237. * @return {Promise<string>}
  19238. */
  19239. function decompressGzippedContent(buffer, charset) {
  19240. return __awaiter(this, void 0, void 0, function* () {
  19241. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  19242. zlib.gunzip(buffer, function (error, buffer) {
  19243. if (error) {
  19244. reject(error);
  19245. }
  19246. resolve(buffer.toString(charset || 'utf-8'));
  19247. });
  19248. }));
  19249. });
  19250. }
  19251. exports.decompressGzippedContent = decompressGzippedContent;
  19252. /**
  19253. * Builds a RegExp to test urls against for deciding
  19254. * wether to bypass proxy from an entry of the
  19255. * environment variable setting NO_PROXY
  19256. *
  19257. * @param {string} bypass
  19258. * @return {RegExp}
  19259. */
  19260. function buildProxyBypassRegexFromEnv(bypass) {
  19261. try {
  19262. // We need to keep this around for back-compat purposes
  19263. return new RegExp(bypass, 'i');
  19264. }
  19265. catch (err) {
  19266. if (err instanceof SyntaxError && (bypass || "").startsWith("*")) {
  19267. let wildcardEscaped = bypass.replace('*', '(.*)');
  19268. return new RegExp(wildcardEscaped, 'i');
  19269. }
  19270. throw err;
  19271. }
  19272. }
  19273. exports.buildProxyBypassRegexFromEnv = buildProxyBypassRegexFromEnv;
  19274. /**
  19275. * Obtain Response's Content Charset.
  19276. * Through inspecting `content-type` response header.
  19277. * It Returns 'utf-8' if NO charset specified/matched.
  19278. *
  19279. * @param {IHttpClientResponse} response
  19280. * @return {string} - Content Encoding Charset; Default=utf-8
  19281. */
  19282. function obtainContentCharset(response) {
  19283. // Find the charset, if specified.
  19284. // Search for the `charset=CHARSET` string, not including `;,\r\n`
  19285. // Example: content-type: 'application/json;charset=utf-8'
  19286. // |__ matches would be ['charset=utf-8', 'utf-8', index: 18, input: 'application/json; charset=utf-8']
  19287. // |_____ matches[1] would have the charset :tada: , in our example it's utf-8
  19288. // However, if the matches Array was empty or no charset found, 'utf-8' would be returned by default.
  19289. const nodeSupportedEncodings = ['ascii', 'utf8', 'utf16le', 'ucs2', 'base64', 'binary', 'hex'];
  19290. const contentType = response.message.headers['content-type'] || '';
  19291. const matches = contentType.match(/charset=([^;,\r\n]+)/i);
  19292. return (matches && matches[1] && nodeSupportedEncodings.indexOf(matches[1]) != -1) ? matches[1] : 'utf-8';
  19293. }
  19294. exports.obtainContentCharset = obtainContentCharset;
  19295. /***/ }),
  19296. /***/ 1773:
  19297. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  19298. "use strict";
  19299. const Client = __nccwpck_require__(3598)
  19300. const Dispatcher = __nccwpck_require__(412)
  19301. const errors = __nccwpck_require__(8045)
  19302. const Pool = __nccwpck_require__(4634)
  19303. const BalancedPool = __nccwpck_require__(7931)
  19304. const Agent = __nccwpck_require__(7890)
  19305. const util = __nccwpck_require__(3983)
  19306. const { InvalidArgumentError } = errors
  19307. const api = __nccwpck_require__(4059)
  19308. const buildConnector = __nccwpck_require__(2067)
  19309. const MockClient = __nccwpck_require__(8687)
  19310. const MockAgent = __nccwpck_require__(6771)
  19311. const MockPool = __nccwpck_require__(6193)
  19312. const mockErrors = __nccwpck_require__(888)
  19313. const ProxyAgent = __nccwpck_require__(7858)
  19314. const { getGlobalDispatcher, setGlobalDispatcher } = __nccwpck_require__(1892)
  19315. const DecoratorHandler = __nccwpck_require__(6930)
  19316. const RedirectHandler = __nccwpck_require__(2860)
  19317. const createRedirectInterceptor = __nccwpck_require__(8861)
  19318. let hasCrypto
  19319. try {
  19320. __nccwpck_require__(6113)
  19321. hasCrypto = true
  19322. } catch {
  19323. hasCrypto = false
  19324. }
  19325. Object.assign(Dispatcher.prototype, api)
  19326. module.exports.Dispatcher = Dispatcher
  19327. module.exports.Client = Client
  19328. module.exports.Pool = Pool
  19329. module.exports.BalancedPool = BalancedPool
  19330. module.exports.Agent = Agent
  19331. module.exports.ProxyAgent = ProxyAgent
  19332. module.exports.DecoratorHandler = DecoratorHandler
  19333. module.exports.RedirectHandler = RedirectHandler
  19334. module.exports.createRedirectInterceptor = createRedirectInterceptor
  19335. module.exports.buildConnector = buildConnector
  19336. module.exports.errors = errors
  19337. function makeDispatcher (fn) {
  19338. return (url, opts, handler) => {
  19339. if (typeof opts === 'function') {
  19340. handler = opts
  19341. opts = null
  19342. }
  19343. if (!url || (typeof url !== 'string' && typeof url !== 'object' && !(url instanceof URL))) {
  19344. throw new InvalidArgumentError('invalid url')
  19345. }
  19346. if (opts != null && typeof opts !== 'object') {
  19347. throw new InvalidArgumentError('invalid opts')
  19348. }
  19349. if (opts && opts.path != null) {
  19350. if (typeof opts.path !== 'string') {
  19351. throw new InvalidArgumentError('invalid opts.path')
  19352. }
  19353. let path = opts.path
  19354. if (!opts.path.startsWith('/')) {
  19355. path = `/${path}`
  19356. }
  19357. url = new URL(util.parseOrigin(url).origin + path)
  19358. } else {
  19359. if (!opts) {
  19360. opts = typeof url === 'object' ? url : {}
  19361. }
  19362. url = util.parseURL(url)
  19363. }
  19364. const { agent, dispatcher = getGlobalDispatcher() } = opts
  19365. if (agent) {
  19366. throw new InvalidArgumentError('unsupported opts.agent. Did you mean opts.client?')
  19367. }
  19368. return fn.call(dispatcher, {
  19369. ...opts,
  19370. origin: url.origin,
  19371. path: url.search ? `${url.pathname}${url.search}` : url.pathname,
  19372. method: opts.method || (opts.body ? 'PUT' : 'GET')
  19373. }, handler)
  19374. }
  19375. }
  19376. module.exports.setGlobalDispatcher = setGlobalDispatcher
  19377. module.exports.getGlobalDispatcher = getGlobalDispatcher
  19378. if (util.nodeMajor > 16 || (util.nodeMajor === 16 && util.nodeMinor >= 8)) {
  19379. let fetchImpl = null
  19380. module.exports.fetch = async function fetch (resource) {
  19381. if (!fetchImpl) {
  19382. fetchImpl = (__nccwpck_require__(4881).fetch)
  19383. }
  19384. try {
  19385. return await fetchImpl(...arguments)
  19386. } catch (err) {
  19387. if (typeof err === 'object') {
  19388. Error.captureStackTrace(err, this)
  19389. }
  19390. throw err
  19391. }
  19392. }
  19393. module.exports.Headers = __nccwpck_require__(554).Headers
  19394. module.exports.Response = __nccwpck_require__(7823).Response
  19395. module.exports.Request = __nccwpck_require__(8359).Request
  19396. module.exports.FormData = __nccwpck_require__(2015).FormData
  19397. module.exports.File = __nccwpck_require__(8511).File
  19398. module.exports.FileReader = __nccwpck_require__(1446).FileReader
  19399. const { setGlobalOrigin, getGlobalOrigin } = __nccwpck_require__(1246)
  19400. module.exports.setGlobalOrigin = setGlobalOrigin
  19401. module.exports.getGlobalOrigin = getGlobalOrigin
  19402. const { CacheStorage } = __nccwpck_require__(7907)
  19403. const { kConstruct } = __nccwpck_require__(9174)
  19404. // Cache & CacheStorage are tightly coupled with fetch. Even if it may run
  19405. // in an older version of Node, it doesn't have any use without fetch.
  19406. module.exports.caches = new CacheStorage(kConstruct)
  19407. }
  19408. if (util.nodeMajor >= 16) {
  19409. const { deleteCookie, getCookies, getSetCookies, setCookie } = __nccwpck_require__(1724)
  19410. module.exports.deleteCookie = deleteCookie
  19411. module.exports.getCookies = getCookies
  19412. module.exports.getSetCookies = getSetCookies
  19413. module.exports.setCookie = setCookie
  19414. const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
  19415. module.exports.parseMIMEType = parseMIMEType
  19416. module.exports.serializeAMimeType = serializeAMimeType
  19417. }
  19418. if (util.nodeMajor >= 18 && hasCrypto) {
  19419. const { WebSocket } = __nccwpck_require__(4284)
  19420. module.exports.WebSocket = WebSocket
  19421. }
  19422. module.exports.request = makeDispatcher(api.request)
  19423. module.exports.stream = makeDispatcher(api.stream)
  19424. module.exports.pipeline = makeDispatcher(api.pipeline)
  19425. module.exports.connect = makeDispatcher(api.connect)
  19426. module.exports.upgrade = makeDispatcher(api.upgrade)
  19427. module.exports.MockClient = MockClient
  19428. module.exports.MockPool = MockPool
  19429. module.exports.MockAgent = MockAgent
  19430. module.exports.mockErrors = mockErrors
  19431. /***/ }),
  19432. /***/ 7890:
  19433. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  19434. "use strict";
  19435. const { InvalidArgumentError } = __nccwpck_require__(8045)
  19436. const { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = __nccwpck_require__(2785)
  19437. const DispatcherBase = __nccwpck_require__(4839)
  19438. const Pool = __nccwpck_require__(4634)
  19439. const Client = __nccwpck_require__(3598)
  19440. const util = __nccwpck_require__(3983)
  19441. const createRedirectInterceptor = __nccwpck_require__(8861)
  19442. const { WeakRef, FinalizationRegistry } = __nccwpck_require__(6436)()
  19443. const kOnConnect = Symbol('onConnect')
  19444. const kOnDisconnect = Symbol('onDisconnect')
  19445. const kOnConnectionError = Symbol('onConnectionError')
  19446. const kMaxRedirections = Symbol('maxRedirections')
  19447. const kOnDrain = Symbol('onDrain')
  19448. const kFactory = Symbol('factory')
  19449. const kFinalizer = Symbol('finalizer')
  19450. const kOptions = Symbol('options')
  19451. function defaultFactory (origin, opts) {
  19452. return opts && opts.connections === 1
  19453. ? new Client(origin, opts)
  19454. : new Pool(origin, opts)
  19455. }
  19456. class Agent extends DispatcherBase {
  19457. constructor ({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) {
  19458. super()
  19459. if (typeof factory !== 'function') {
  19460. throw new InvalidArgumentError('factory must be a function.')
  19461. }
  19462. if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {
  19463. throw new InvalidArgumentError('connect must be a function or an object')
  19464. }
  19465. if (!Number.isInteger(maxRedirections) || maxRedirections < 0) {
  19466. throw new InvalidArgumentError('maxRedirections must be a positive number')
  19467. }
  19468. if (connect && typeof connect !== 'function') {
  19469. connect = { ...connect }
  19470. }
  19471. this[kInterceptors] = options.interceptors && options.interceptors.Agent && Array.isArray(options.interceptors.Agent)
  19472. ? options.interceptors.Agent
  19473. : [createRedirectInterceptor({ maxRedirections })]
  19474. this[kOptions] = { ...util.deepClone(options), connect }
  19475. this[kOptions].interceptors = options.interceptors
  19476. ? { ...options.interceptors }
  19477. : undefined
  19478. this[kMaxRedirections] = maxRedirections
  19479. this[kFactory] = factory
  19480. this[kClients] = new Map()
  19481. this[kFinalizer] = new FinalizationRegistry(/* istanbul ignore next: gc is undeterministic */ key => {
  19482. const ref = this[kClients].get(key)
  19483. if (ref !== undefined && ref.deref() === undefined) {
  19484. this[kClients].delete(key)
  19485. }
  19486. })
  19487. const agent = this
  19488. this[kOnDrain] = (origin, targets) => {
  19489. agent.emit('drain', origin, [agent, ...targets])
  19490. }
  19491. this[kOnConnect] = (origin, targets) => {
  19492. agent.emit('connect', origin, [agent, ...targets])
  19493. }
  19494. this[kOnDisconnect] = (origin, targets, err) => {
  19495. agent.emit('disconnect', origin, [agent, ...targets], err)
  19496. }
  19497. this[kOnConnectionError] = (origin, targets, err) => {
  19498. agent.emit('connectionError', origin, [agent, ...targets], err)
  19499. }
  19500. }
  19501. get [kRunning] () {
  19502. let ret = 0
  19503. for (const ref of this[kClients].values()) {
  19504. const client = ref.deref()
  19505. /* istanbul ignore next: gc is undeterministic */
  19506. if (client) {
  19507. ret += client[kRunning]
  19508. }
  19509. }
  19510. return ret
  19511. }
  19512. [kDispatch] (opts, handler) {
  19513. let key
  19514. if (opts.origin && (typeof opts.origin === 'string' || opts.origin instanceof URL)) {
  19515. key = String(opts.origin)
  19516. } else {
  19517. throw new InvalidArgumentError('opts.origin must be a non-empty string or URL.')
  19518. }
  19519. const ref = this[kClients].get(key)
  19520. let dispatcher = ref ? ref.deref() : null
  19521. if (!dispatcher) {
  19522. dispatcher = this[kFactory](opts.origin, this[kOptions])
  19523. .on('drain', this[kOnDrain])
  19524. .on('connect', this[kOnConnect])
  19525. .on('disconnect', this[kOnDisconnect])
  19526. .on('connectionError', this[kOnConnectionError])
  19527. this[kClients].set(key, new WeakRef(dispatcher))
  19528. this[kFinalizer].register(dispatcher, key)
  19529. }
  19530. return dispatcher.dispatch(opts, handler)
  19531. }
  19532. async [kClose] () {
  19533. const closePromises = []
  19534. for (const ref of this[kClients].values()) {
  19535. const client = ref.deref()
  19536. /* istanbul ignore else: gc is undeterministic */
  19537. if (client) {
  19538. closePromises.push(client.close())
  19539. }
  19540. }
  19541. await Promise.all(closePromises)
  19542. }
  19543. async [kDestroy] (err) {
  19544. const destroyPromises = []
  19545. for (const ref of this[kClients].values()) {
  19546. const client = ref.deref()
  19547. /* istanbul ignore else: gc is undeterministic */
  19548. if (client) {
  19549. destroyPromises.push(client.destroy(err))
  19550. }
  19551. }
  19552. await Promise.all(destroyPromises)
  19553. }
  19554. }
  19555. module.exports = Agent
  19556. /***/ }),
  19557. /***/ 7032:
  19558. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  19559. const { addAbortListener } = __nccwpck_require__(3983)
  19560. const { RequestAbortedError } = __nccwpck_require__(8045)
  19561. const kListener = Symbol('kListener')
  19562. const kSignal = Symbol('kSignal')
  19563. function abort (self) {
  19564. if (self.abort) {
  19565. self.abort()
  19566. } else {
  19567. self.onError(new RequestAbortedError())
  19568. }
  19569. }
  19570. function addSignal (self, signal) {
  19571. self[kSignal] = null
  19572. self[kListener] = null
  19573. if (!signal) {
  19574. return
  19575. }
  19576. if (signal.aborted) {
  19577. abort(self)
  19578. return
  19579. }
  19580. self[kSignal] = signal
  19581. self[kListener] = () => {
  19582. abort(self)
  19583. }
  19584. addAbortListener(self[kSignal], self[kListener])
  19585. }
  19586. function removeSignal (self) {
  19587. if (!self[kSignal]) {
  19588. return
  19589. }
  19590. if ('removeEventListener' in self[kSignal]) {
  19591. self[kSignal].removeEventListener('abort', self[kListener])
  19592. } else {
  19593. self[kSignal].removeListener('abort', self[kListener])
  19594. }
  19595. self[kSignal] = null
  19596. self[kListener] = null
  19597. }
  19598. module.exports = {
  19599. addSignal,
  19600. removeSignal
  19601. }
  19602. /***/ }),
  19603. /***/ 9744:
  19604. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  19605. "use strict";
  19606. const { AsyncResource } = __nccwpck_require__(852)
  19607. const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(8045)
  19608. const util = __nccwpck_require__(3983)
  19609. const { addSignal, removeSignal } = __nccwpck_require__(7032)
  19610. class ConnectHandler extends AsyncResource {
  19611. constructor (opts, callback) {
  19612. if (!opts || typeof opts !== 'object') {
  19613. throw new InvalidArgumentError('invalid opts')
  19614. }
  19615. if (typeof callback !== 'function') {
  19616. throw new InvalidArgumentError('invalid callback')
  19617. }
  19618. const { signal, opaque, responseHeaders } = opts
  19619. if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {
  19620. throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')
  19621. }
  19622. super('UNDICI_CONNECT')
  19623. this.opaque = opaque || null
  19624. this.responseHeaders = responseHeaders || null
  19625. this.callback = callback
  19626. this.abort = null
  19627. addSignal(this, signal)
  19628. }
  19629. onConnect (abort, context) {
  19630. if (!this.callback) {
  19631. throw new RequestAbortedError()
  19632. }
  19633. this.abort = abort
  19634. this.context = context
  19635. }
  19636. onHeaders () {
  19637. throw new SocketError('bad connect', null)
  19638. }
  19639. onUpgrade (statusCode, rawHeaders, socket) {
  19640. const { callback, opaque, context } = this
  19641. removeSignal(this)
  19642. this.callback = null
  19643. let headers = rawHeaders
  19644. // Indicates is an HTTP2Session
  19645. if (headers != null) {
  19646. headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  19647. }
  19648. this.runInAsyncScope(callback, null, null, {
  19649. statusCode,
  19650. headers,
  19651. socket,
  19652. opaque,
  19653. context
  19654. })
  19655. }
  19656. onError (err) {
  19657. const { callback, opaque } = this
  19658. removeSignal(this)
  19659. if (callback) {
  19660. this.callback = null
  19661. queueMicrotask(() => {
  19662. this.runInAsyncScope(callback, null, err, { opaque })
  19663. })
  19664. }
  19665. }
  19666. }
  19667. function connect (opts, callback) {
  19668. if (callback === undefined) {
  19669. return new Promise((resolve, reject) => {
  19670. connect.call(this, opts, (err, data) => {
  19671. return err ? reject(err) : resolve(data)
  19672. })
  19673. })
  19674. }
  19675. try {
  19676. const connectHandler = new ConnectHandler(opts, callback)
  19677. this.dispatch({ ...opts, method: 'CONNECT' }, connectHandler)
  19678. } catch (err) {
  19679. if (typeof callback !== 'function') {
  19680. throw err
  19681. }
  19682. const opaque = opts && opts.opaque
  19683. queueMicrotask(() => callback(err, { opaque }))
  19684. }
  19685. }
  19686. module.exports = connect
  19687. /***/ }),
  19688. /***/ 8752:
  19689. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  19690. "use strict";
  19691. const {
  19692. Readable,
  19693. Duplex,
  19694. PassThrough
  19695. } = __nccwpck_require__(2781)
  19696. const {
  19697. InvalidArgumentError,
  19698. InvalidReturnValueError,
  19699. RequestAbortedError
  19700. } = __nccwpck_require__(8045)
  19701. const util = __nccwpck_require__(3983)
  19702. const { AsyncResource } = __nccwpck_require__(852)
  19703. const { addSignal, removeSignal } = __nccwpck_require__(7032)
  19704. const assert = __nccwpck_require__(9491)
  19705. const kResume = Symbol('resume')
  19706. class PipelineRequest extends Readable {
  19707. constructor () {
  19708. super({ autoDestroy: true })
  19709. this[kResume] = null
  19710. }
  19711. _read () {
  19712. const { [kResume]: resume } = this
  19713. if (resume) {
  19714. this[kResume] = null
  19715. resume()
  19716. }
  19717. }
  19718. _destroy (err, callback) {
  19719. this._read()
  19720. callback(err)
  19721. }
  19722. }
  19723. class PipelineResponse extends Readable {
  19724. constructor (resume) {
  19725. super({ autoDestroy: true })
  19726. this[kResume] = resume
  19727. }
  19728. _read () {
  19729. this[kResume]()
  19730. }
  19731. _destroy (err, callback) {
  19732. if (!err && !this._readableState.endEmitted) {
  19733. err = new RequestAbortedError()
  19734. }
  19735. callback(err)
  19736. }
  19737. }
  19738. class PipelineHandler extends AsyncResource {
  19739. constructor (opts, handler) {
  19740. if (!opts || typeof opts !== 'object') {
  19741. throw new InvalidArgumentError('invalid opts')
  19742. }
  19743. if (typeof handler !== 'function') {
  19744. throw new InvalidArgumentError('invalid handler')
  19745. }
  19746. const { signal, method, opaque, onInfo, responseHeaders } = opts
  19747. if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {
  19748. throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')
  19749. }
  19750. if (method === 'CONNECT') {
  19751. throw new InvalidArgumentError('invalid method')
  19752. }
  19753. if (onInfo && typeof onInfo !== 'function') {
  19754. throw new InvalidArgumentError('invalid onInfo callback')
  19755. }
  19756. super('UNDICI_PIPELINE')
  19757. this.opaque = opaque || null
  19758. this.responseHeaders = responseHeaders || null
  19759. this.handler = handler
  19760. this.abort = null
  19761. this.context = null
  19762. this.onInfo = onInfo || null
  19763. this.req = new PipelineRequest().on('error', util.nop)
  19764. this.ret = new Duplex({
  19765. readableObjectMode: opts.objectMode,
  19766. autoDestroy: true,
  19767. read: () => {
  19768. const { body } = this
  19769. if (body && body.resume) {
  19770. body.resume()
  19771. }
  19772. },
  19773. write: (chunk, encoding, callback) => {
  19774. const { req } = this
  19775. if (req.push(chunk, encoding) || req._readableState.destroyed) {
  19776. callback()
  19777. } else {
  19778. req[kResume] = callback
  19779. }
  19780. },
  19781. destroy: (err, callback) => {
  19782. const { body, req, res, ret, abort } = this
  19783. if (!err && !ret._readableState.endEmitted) {
  19784. err = new RequestAbortedError()
  19785. }
  19786. if (abort && err) {
  19787. abort()
  19788. }
  19789. util.destroy(body, err)
  19790. util.destroy(req, err)
  19791. util.destroy(res, err)
  19792. removeSignal(this)
  19793. callback(err)
  19794. }
  19795. }).on('prefinish', () => {
  19796. const { req } = this
  19797. // Node < 15 does not call _final in same tick.
  19798. req.push(null)
  19799. })
  19800. this.res = null
  19801. addSignal(this, signal)
  19802. }
  19803. onConnect (abort, context) {
  19804. const { ret, res } = this
  19805. assert(!res, 'pipeline cannot be retried')
  19806. if (ret.destroyed) {
  19807. throw new RequestAbortedError()
  19808. }
  19809. this.abort = abort
  19810. this.context = context
  19811. }
  19812. onHeaders (statusCode, rawHeaders, resume) {
  19813. const { opaque, handler, context } = this
  19814. if (statusCode < 200) {
  19815. if (this.onInfo) {
  19816. const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  19817. this.onInfo({ statusCode, headers })
  19818. }
  19819. return
  19820. }
  19821. this.res = new PipelineResponse(resume)
  19822. let body
  19823. try {
  19824. this.handler = null
  19825. const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  19826. body = this.runInAsyncScope(handler, null, {
  19827. statusCode,
  19828. headers,
  19829. opaque,
  19830. body: this.res,
  19831. context
  19832. })
  19833. } catch (err) {
  19834. this.res.on('error', util.nop)
  19835. throw err
  19836. }
  19837. if (!body || typeof body.on !== 'function') {
  19838. throw new InvalidReturnValueError('expected Readable')
  19839. }
  19840. body
  19841. .on('data', (chunk) => {
  19842. const { ret, body } = this
  19843. if (!ret.push(chunk) && body.pause) {
  19844. body.pause()
  19845. }
  19846. })
  19847. .on('error', (err) => {
  19848. const { ret } = this
  19849. util.destroy(ret, err)
  19850. })
  19851. .on('end', () => {
  19852. const { ret } = this
  19853. ret.push(null)
  19854. })
  19855. .on('close', () => {
  19856. const { ret } = this
  19857. if (!ret._readableState.ended) {
  19858. util.destroy(ret, new RequestAbortedError())
  19859. }
  19860. })
  19861. this.body = body
  19862. }
  19863. onData (chunk) {
  19864. const { res } = this
  19865. return res.push(chunk)
  19866. }
  19867. onComplete (trailers) {
  19868. const { res } = this
  19869. res.push(null)
  19870. }
  19871. onError (err) {
  19872. const { ret } = this
  19873. this.handler = null
  19874. util.destroy(ret, err)
  19875. }
  19876. }
  19877. function pipeline (opts, handler) {
  19878. try {
  19879. const pipelineHandler = new PipelineHandler(opts, handler)
  19880. this.dispatch({ ...opts, body: pipelineHandler.req }, pipelineHandler)
  19881. return pipelineHandler.ret
  19882. } catch (err) {
  19883. return new PassThrough().destroy(err)
  19884. }
  19885. }
  19886. module.exports = pipeline
  19887. /***/ }),
  19888. /***/ 5448:
  19889. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  19890. "use strict";
  19891. const Readable = __nccwpck_require__(3858)
  19892. const {
  19893. InvalidArgumentError,
  19894. RequestAbortedError
  19895. } = __nccwpck_require__(8045)
  19896. const util = __nccwpck_require__(3983)
  19897. const { getResolveErrorBodyCallback } = __nccwpck_require__(7474)
  19898. const { AsyncResource } = __nccwpck_require__(852)
  19899. const { addSignal, removeSignal } = __nccwpck_require__(7032)
  19900. class RequestHandler extends AsyncResource {
  19901. constructor (opts, callback) {
  19902. if (!opts || typeof opts !== 'object') {
  19903. throw new InvalidArgumentError('invalid opts')
  19904. }
  19905. const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError, highWaterMark } = opts
  19906. try {
  19907. if (typeof callback !== 'function') {
  19908. throw new InvalidArgumentError('invalid callback')
  19909. }
  19910. if (highWaterMark && (typeof highWaterMark !== 'number' || highWaterMark < 0)) {
  19911. throw new InvalidArgumentError('invalid highWaterMark')
  19912. }
  19913. if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {
  19914. throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')
  19915. }
  19916. if (method === 'CONNECT') {
  19917. throw new InvalidArgumentError('invalid method')
  19918. }
  19919. if (onInfo && typeof onInfo !== 'function') {
  19920. throw new InvalidArgumentError('invalid onInfo callback')
  19921. }
  19922. super('UNDICI_REQUEST')
  19923. } catch (err) {
  19924. if (util.isStream(body)) {
  19925. util.destroy(body.on('error', util.nop), err)
  19926. }
  19927. throw err
  19928. }
  19929. this.responseHeaders = responseHeaders || null
  19930. this.opaque = opaque || null
  19931. this.callback = callback
  19932. this.res = null
  19933. this.abort = null
  19934. this.body = body
  19935. this.trailers = {}
  19936. this.context = null
  19937. this.onInfo = onInfo || null
  19938. this.throwOnError = throwOnError
  19939. this.highWaterMark = highWaterMark
  19940. if (util.isStream(body)) {
  19941. body.on('error', (err) => {
  19942. this.onError(err)
  19943. })
  19944. }
  19945. addSignal(this, signal)
  19946. }
  19947. onConnect (abort, context) {
  19948. if (!this.callback) {
  19949. throw new RequestAbortedError()
  19950. }
  19951. this.abort = abort
  19952. this.context = context
  19953. }
  19954. onHeaders (statusCode, rawHeaders, resume, statusMessage) {
  19955. const { callback, opaque, abort, context, responseHeaders, highWaterMark } = this
  19956. const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  19957. if (statusCode < 200) {
  19958. if (this.onInfo) {
  19959. this.onInfo({ statusCode, headers })
  19960. }
  19961. return
  19962. }
  19963. const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers
  19964. const contentType = parsedHeaders['content-type']
  19965. const body = new Readable({ resume, abort, contentType, highWaterMark })
  19966. this.callback = null
  19967. this.res = body
  19968. if (callback !== null) {
  19969. if (this.throwOnError && statusCode >= 400) {
  19970. this.runInAsyncScope(getResolveErrorBodyCallback, null,
  19971. { callback, body, contentType, statusCode, statusMessage, headers }
  19972. )
  19973. } else {
  19974. this.runInAsyncScope(callback, null, null, {
  19975. statusCode,
  19976. headers,
  19977. trailers: this.trailers,
  19978. opaque,
  19979. body,
  19980. context
  19981. })
  19982. }
  19983. }
  19984. }
  19985. onData (chunk) {
  19986. const { res } = this
  19987. return res.push(chunk)
  19988. }
  19989. onComplete (trailers) {
  19990. const { res } = this
  19991. removeSignal(this)
  19992. util.parseHeaders(trailers, this.trailers)
  19993. res.push(null)
  19994. }
  19995. onError (err) {
  19996. const { res, callback, body, opaque } = this
  19997. removeSignal(this)
  19998. if (callback) {
  19999. // TODO: Does this need queueMicrotask?
  20000. this.callback = null
  20001. queueMicrotask(() => {
  20002. this.runInAsyncScope(callback, null, err, { opaque })
  20003. })
  20004. }
  20005. if (res) {
  20006. this.res = null
  20007. // Ensure all queued handlers are invoked before destroying res.
  20008. queueMicrotask(() => {
  20009. util.destroy(res, err)
  20010. })
  20011. }
  20012. if (body) {
  20013. this.body = null
  20014. util.destroy(body, err)
  20015. }
  20016. }
  20017. }
  20018. function request (opts, callback) {
  20019. if (callback === undefined) {
  20020. return new Promise((resolve, reject) => {
  20021. request.call(this, opts, (err, data) => {
  20022. return err ? reject(err) : resolve(data)
  20023. })
  20024. })
  20025. }
  20026. try {
  20027. this.dispatch(opts, new RequestHandler(opts, callback))
  20028. } catch (err) {
  20029. if (typeof callback !== 'function') {
  20030. throw err
  20031. }
  20032. const opaque = opts && opts.opaque
  20033. queueMicrotask(() => callback(err, { opaque }))
  20034. }
  20035. }
  20036. module.exports = request
  20037. /***/ }),
  20038. /***/ 5395:
  20039. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  20040. "use strict";
  20041. const { finished, PassThrough } = __nccwpck_require__(2781)
  20042. const {
  20043. InvalidArgumentError,
  20044. InvalidReturnValueError,
  20045. RequestAbortedError
  20046. } = __nccwpck_require__(8045)
  20047. const util = __nccwpck_require__(3983)
  20048. const { getResolveErrorBodyCallback } = __nccwpck_require__(7474)
  20049. const { AsyncResource } = __nccwpck_require__(852)
  20050. const { addSignal, removeSignal } = __nccwpck_require__(7032)
  20051. class StreamHandler extends AsyncResource {
  20052. constructor (opts, factory, callback) {
  20053. if (!opts || typeof opts !== 'object') {
  20054. throw new InvalidArgumentError('invalid opts')
  20055. }
  20056. const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError } = opts
  20057. try {
  20058. if (typeof callback !== 'function') {
  20059. throw new InvalidArgumentError('invalid callback')
  20060. }
  20061. if (typeof factory !== 'function') {
  20062. throw new InvalidArgumentError('invalid factory')
  20063. }
  20064. if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {
  20065. throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')
  20066. }
  20067. if (method === 'CONNECT') {
  20068. throw new InvalidArgumentError('invalid method')
  20069. }
  20070. if (onInfo && typeof onInfo !== 'function') {
  20071. throw new InvalidArgumentError('invalid onInfo callback')
  20072. }
  20073. super('UNDICI_STREAM')
  20074. } catch (err) {
  20075. if (util.isStream(body)) {
  20076. util.destroy(body.on('error', util.nop), err)
  20077. }
  20078. throw err
  20079. }
  20080. this.responseHeaders = responseHeaders || null
  20081. this.opaque = opaque || null
  20082. this.factory = factory
  20083. this.callback = callback
  20084. this.res = null
  20085. this.abort = null
  20086. this.context = null
  20087. this.trailers = null
  20088. this.body = body
  20089. this.onInfo = onInfo || null
  20090. this.throwOnError = throwOnError || false
  20091. if (util.isStream(body)) {
  20092. body.on('error', (err) => {
  20093. this.onError(err)
  20094. })
  20095. }
  20096. addSignal(this, signal)
  20097. }
  20098. onConnect (abort, context) {
  20099. if (!this.callback) {
  20100. throw new RequestAbortedError()
  20101. }
  20102. this.abort = abort
  20103. this.context = context
  20104. }
  20105. onHeaders (statusCode, rawHeaders, resume, statusMessage) {
  20106. const { factory, opaque, context, callback, responseHeaders } = this
  20107. const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  20108. if (statusCode < 200) {
  20109. if (this.onInfo) {
  20110. this.onInfo({ statusCode, headers })
  20111. }
  20112. return
  20113. }
  20114. this.factory = null
  20115. let res
  20116. if (this.throwOnError && statusCode >= 400) {
  20117. const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers
  20118. const contentType = parsedHeaders['content-type']
  20119. res = new PassThrough()
  20120. this.callback = null
  20121. this.runInAsyncScope(getResolveErrorBodyCallback, null,
  20122. { callback, body: res, contentType, statusCode, statusMessage, headers }
  20123. )
  20124. } else {
  20125. res = this.runInAsyncScope(factory, null, {
  20126. statusCode,
  20127. headers,
  20128. opaque,
  20129. context
  20130. })
  20131. if (
  20132. !res ||
  20133. typeof res.write !== 'function' ||
  20134. typeof res.end !== 'function' ||
  20135. typeof res.on !== 'function'
  20136. ) {
  20137. throw new InvalidReturnValueError('expected Writable')
  20138. }
  20139. // TODO: Avoid finished. It registers an unnecessary amount of listeners.
  20140. finished(res, { readable: false }, (err) => {
  20141. const { callback, res, opaque, trailers, abort } = this
  20142. this.res = null
  20143. if (err || !res.readable) {
  20144. util.destroy(res, err)
  20145. }
  20146. this.callback = null
  20147. this.runInAsyncScope(callback, null, err || null, { opaque, trailers })
  20148. if (err) {
  20149. abort()
  20150. }
  20151. })
  20152. }
  20153. res.on('drain', resume)
  20154. this.res = res
  20155. const needDrain = res.writableNeedDrain !== undefined
  20156. ? res.writableNeedDrain
  20157. : res._writableState && res._writableState.needDrain
  20158. return needDrain !== true
  20159. }
  20160. onData (chunk) {
  20161. const { res } = this
  20162. return res.write(chunk)
  20163. }
  20164. onComplete (trailers) {
  20165. const { res } = this
  20166. removeSignal(this)
  20167. this.trailers = util.parseHeaders(trailers)
  20168. res.end()
  20169. }
  20170. onError (err) {
  20171. const { res, callback, opaque, body } = this
  20172. removeSignal(this)
  20173. this.factory = null
  20174. if (res) {
  20175. this.res = null
  20176. util.destroy(res, err)
  20177. } else if (callback) {
  20178. this.callback = null
  20179. queueMicrotask(() => {
  20180. this.runInAsyncScope(callback, null, err, { opaque })
  20181. })
  20182. }
  20183. if (body) {
  20184. this.body = null
  20185. util.destroy(body, err)
  20186. }
  20187. }
  20188. }
  20189. function stream (opts, factory, callback) {
  20190. if (callback === undefined) {
  20191. return new Promise((resolve, reject) => {
  20192. stream.call(this, opts, factory, (err, data) => {
  20193. return err ? reject(err) : resolve(data)
  20194. })
  20195. })
  20196. }
  20197. try {
  20198. this.dispatch(opts, new StreamHandler(opts, factory, callback))
  20199. } catch (err) {
  20200. if (typeof callback !== 'function') {
  20201. throw err
  20202. }
  20203. const opaque = opts && opts.opaque
  20204. queueMicrotask(() => callback(err, { opaque }))
  20205. }
  20206. }
  20207. module.exports = stream
  20208. /***/ }),
  20209. /***/ 6923:
  20210. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  20211. "use strict";
  20212. const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(8045)
  20213. const { AsyncResource } = __nccwpck_require__(852)
  20214. const util = __nccwpck_require__(3983)
  20215. const { addSignal, removeSignal } = __nccwpck_require__(7032)
  20216. const assert = __nccwpck_require__(9491)
  20217. class UpgradeHandler extends AsyncResource {
  20218. constructor (opts, callback) {
  20219. if (!opts || typeof opts !== 'object') {
  20220. throw new InvalidArgumentError('invalid opts')
  20221. }
  20222. if (typeof callback !== 'function') {
  20223. throw new InvalidArgumentError('invalid callback')
  20224. }
  20225. const { signal, opaque, responseHeaders } = opts
  20226. if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {
  20227. throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')
  20228. }
  20229. super('UNDICI_UPGRADE')
  20230. this.responseHeaders = responseHeaders || null
  20231. this.opaque = opaque || null
  20232. this.callback = callback
  20233. this.abort = null
  20234. this.context = null
  20235. addSignal(this, signal)
  20236. }
  20237. onConnect (abort, context) {
  20238. if (!this.callback) {
  20239. throw new RequestAbortedError()
  20240. }
  20241. this.abort = abort
  20242. this.context = null
  20243. }
  20244. onHeaders () {
  20245. throw new SocketError('bad upgrade', null)
  20246. }
  20247. onUpgrade (statusCode, rawHeaders, socket) {
  20248. const { callback, opaque, context } = this
  20249. assert.strictEqual(statusCode, 101)
  20250. removeSignal(this)
  20251. this.callback = null
  20252. const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  20253. this.runInAsyncScope(callback, null, null, {
  20254. headers,
  20255. socket,
  20256. opaque,
  20257. context
  20258. })
  20259. }
  20260. onError (err) {
  20261. const { callback, opaque } = this
  20262. removeSignal(this)
  20263. if (callback) {
  20264. this.callback = null
  20265. queueMicrotask(() => {
  20266. this.runInAsyncScope(callback, null, err, { opaque })
  20267. })
  20268. }
  20269. }
  20270. }
  20271. function upgrade (opts, callback) {
  20272. if (callback === undefined) {
  20273. return new Promise((resolve, reject) => {
  20274. upgrade.call(this, opts, (err, data) => {
  20275. return err ? reject(err) : resolve(data)
  20276. })
  20277. })
  20278. }
  20279. try {
  20280. const upgradeHandler = new UpgradeHandler(opts, callback)
  20281. this.dispatch({
  20282. ...opts,
  20283. method: opts.method || 'GET',
  20284. upgrade: opts.protocol || 'Websocket'
  20285. }, upgradeHandler)
  20286. } catch (err) {
  20287. if (typeof callback !== 'function') {
  20288. throw err
  20289. }
  20290. const opaque = opts && opts.opaque
  20291. queueMicrotask(() => callback(err, { opaque }))
  20292. }
  20293. }
  20294. module.exports = upgrade
  20295. /***/ }),
  20296. /***/ 4059:
  20297. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  20298. "use strict";
  20299. module.exports.request = __nccwpck_require__(5448)
  20300. module.exports.stream = __nccwpck_require__(5395)
  20301. module.exports.pipeline = __nccwpck_require__(8752)
  20302. module.exports.upgrade = __nccwpck_require__(6923)
  20303. module.exports.connect = __nccwpck_require__(9744)
  20304. /***/ }),
  20305. /***/ 3858:
  20306. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  20307. "use strict";
  20308. // Ported from https://github.com/nodejs/undici/pull/907
  20309. const assert = __nccwpck_require__(9491)
  20310. const { Readable } = __nccwpck_require__(2781)
  20311. const { RequestAbortedError, NotSupportedError, InvalidArgumentError } = __nccwpck_require__(8045)
  20312. const util = __nccwpck_require__(3983)
  20313. const { ReadableStreamFrom, toUSVString } = __nccwpck_require__(3983)
  20314. let Blob
  20315. const kConsume = Symbol('kConsume')
  20316. const kReading = Symbol('kReading')
  20317. const kBody = Symbol('kBody')
  20318. const kAbort = Symbol('abort')
  20319. const kContentType = Symbol('kContentType')
  20320. module.exports = class BodyReadable extends Readable {
  20321. constructor ({
  20322. resume,
  20323. abort,
  20324. contentType = '',
  20325. highWaterMark = 64 * 1024 // Same as nodejs fs streams.
  20326. }) {
  20327. super({
  20328. autoDestroy: true,
  20329. read: resume,
  20330. highWaterMark
  20331. })
  20332. this._readableState.dataEmitted = false
  20333. this[kAbort] = abort
  20334. this[kConsume] = null
  20335. this[kBody] = null
  20336. this[kContentType] = contentType
  20337. // Is stream being consumed through Readable API?
  20338. // This is an optimization so that we avoid checking
  20339. // for 'data' and 'readable' listeners in the hot path
  20340. // inside push().
  20341. this[kReading] = false
  20342. }
  20343. destroy (err) {
  20344. if (this.destroyed) {
  20345. // Node < 16
  20346. return this
  20347. }
  20348. if (!err && !this._readableState.endEmitted) {
  20349. err = new RequestAbortedError()
  20350. }
  20351. if (err) {
  20352. this[kAbort]()
  20353. }
  20354. return super.destroy(err)
  20355. }
  20356. emit (ev, ...args) {
  20357. if (ev === 'data') {
  20358. // Node < 16.7
  20359. this._readableState.dataEmitted = true
  20360. } else if (ev === 'error') {
  20361. // Node < 16
  20362. this._readableState.errorEmitted = true
  20363. }
  20364. return super.emit(ev, ...args)
  20365. }
  20366. on (ev, ...args) {
  20367. if (ev === 'data' || ev === 'readable') {
  20368. this[kReading] = true
  20369. }
  20370. return super.on(ev, ...args)
  20371. }
  20372. addListener (ev, ...args) {
  20373. return this.on(ev, ...args)
  20374. }
  20375. off (ev, ...args) {
  20376. const ret = super.off(ev, ...args)
  20377. if (ev === 'data' || ev === 'readable') {
  20378. this[kReading] = (
  20379. this.listenerCount('data') > 0 ||
  20380. this.listenerCount('readable') > 0
  20381. )
  20382. }
  20383. return ret
  20384. }
  20385. removeListener (ev, ...args) {
  20386. return this.off(ev, ...args)
  20387. }
  20388. push (chunk) {
  20389. if (this[kConsume] && chunk !== null && this.readableLength === 0) {
  20390. consumePush(this[kConsume], chunk)
  20391. return this[kReading] ? super.push(chunk) : true
  20392. }
  20393. return super.push(chunk)
  20394. }
  20395. // https://fetch.spec.whatwg.org/#dom-body-text
  20396. async text () {
  20397. return consume(this, 'text')
  20398. }
  20399. // https://fetch.spec.whatwg.org/#dom-body-json
  20400. async json () {
  20401. return consume(this, 'json')
  20402. }
  20403. // https://fetch.spec.whatwg.org/#dom-body-blob
  20404. async blob () {
  20405. return consume(this, 'blob')
  20406. }
  20407. // https://fetch.spec.whatwg.org/#dom-body-arraybuffer
  20408. async arrayBuffer () {
  20409. return consume(this, 'arrayBuffer')
  20410. }
  20411. // https://fetch.spec.whatwg.org/#dom-body-formdata
  20412. async formData () {
  20413. // TODO: Implement.
  20414. throw new NotSupportedError()
  20415. }
  20416. // https://fetch.spec.whatwg.org/#dom-body-bodyused
  20417. get bodyUsed () {
  20418. return util.isDisturbed(this)
  20419. }
  20420. // https://fetch.spec.whatwg.org/#dom-body-body
  20421. get body () {
  20422. if (!this[kBody]) {
  20423. this[kBody] = ReadableStreamFrom(this)
  20424. if (this[kConsume]) {
  20425. // TODO: Is this the best way to force a lock?
  20426. this[kBody].getReader() // Ensure stream is locked.
  20427. assert(this[kBody].locked)
  20428. }
  20429. }
  20430. return this[kBody]
  20431. }
  20432. async dump (opts) {
  20433. let limit = opts && Number.isFinite(opts.limit) ? opts.limit : 262144
  20434. const signal = opts && opts.signal
  20435. const abortFn = () => {
  20436. this.destroy()
  20437. }
  20438. let signalListenerCleanup
  20439. if (signal) {
  20440. if (typeof signal !== 'object' || !('aborted' in signal)) {
  20441. throw new InvalidArgumentError('signal must be an AbortSignal')
  20442. }
  20443. util.throwIfAborted(signal)
  20444. signalListenerCleanup = util.addAbortListener(signal, abortFn)
  20445. }
  20446. try {
  20447. for await (const chunk of this) {
  20448. util.throwIfAborted(signal)
  20449. limit -= Buffer.byteLength(chunk)
  20450. if (limit < 0) {
  20451. return
  20452. }
  20453. }
  20454. } catch {
  20455. util.throwIfAborted(signal)
  20456. } finally {
  20457. if (typeof signalListenerCleanup === 'function') {
  20458. signalListenerCleanup()
  20459. } else if (signalListenerCleanup) {
  20460. signalListenerCleanup[Symbol.dispose]()
  20461. }
  20462. }
  20463. }
  20464. }
  20465. // https://streams.spec.whatwg.org/#readablestream-locked
  20466. function isLocked (self) {
  20467. // Consume is an implicit lock.
  20468. return (self[kBody] && self[kBody].locked === true) || self[kConsume]
  20469. }
  20470. // https://fetch.spec.whatwg.org/#body-unusable
  20471. function isUnusable (self) {
  20472. return util.isDisturbed(self) || isLocked(self)
  20473. }
  20474. async function consume (stream, type) {
  20475. if (isUnusable(stream)) {
  20476. throw new TypeError('unusable')
  20477. }
  20478. assert(!stream[kConsume])
  20479. return new Promise((resolve, reject) => {
  20480. stream[kConsume] = {
  20481. type,
  20482. stream,
  20483. resolve,
  20484. reject,
  20485. length: 0,
  20486. body: []
  20487. }
  20488. stream
  20489. .on('error', function (err) {
  20490. consumeFinish(this[kConsume], err)
  20491. })
  20492. .on('close', function () {
  20493. if (this[kConsume].body !== null) {
  20494. consumeFinish(this[kConsume], new RequestAbortedError())
  20495. }
  20496. })
  20497. process.nextTick(consumeStart, stream[kConsume])
  20498. })
  20499. }
  20500. function consumeStart (consume) {
  20501. if (consume.body === null) {
  20502. return
  20503. }
  20504. const { _readableState: state } = consume.stream
  20505. for (const chunk of state.buffer) {
  20506. consumePush(consume, chunk)
  20507. }
  20508. if (state.endEmitted) {
  20509. consumeEnd(this[kConsume])
  20510. } else {
  20511. consume.stream.on('end', function () {
  20512. consumeEnd(this[kConsume])
  20513. })
  20514. }
  20515. consume.stream.resume()
  20516. while (consume.stream.read() != null) {
  20517. // Loop
  20518. }
  20519. }
  20520. function consumeEnd (consume) {
  20521. const { type, body, resolve, stream, length } = consume
  20522. try {
  20523. if (type === 'text') {
  20524. resolve(toUSVString(Buffer.concat(body)))
  20525. } else if (type === 'json') {
  20526. resolve(JSON.parse(Buffer.concat(body)))
  20527. } else if (type === 'arrayBuffer') {
  20528. const dst = new Uint8Array(length)
  20529. let pos = 0
  20530. for (const buf of body) {
  20531. dst.set(buf, pos)
  20532. pos += buf.byteLength
  20533. }
  20534. resolve(dst)
  20535. } else if (type === 'blob') {
  20536. if (!Blob) {
  20537. Blob = (__nccwpck_require__(4300).Blob)
  20538. }
  20539. resolve(new Blob(body, { type: stream[kContentType] }))
  20540. }
  20541. consumeFinish(consume)
  20542. } catch (err) {
  20543. stream.destroy(err)
  20544. }
  20545. }
  20546. function consumePush (consume, chunk) {
  20547. consume.length += chunk.length
  20548. consume.body.push(chunk)
  20549. }
  20550. function consumeFinish (consume, err) {
  20551. if (consume.body === null) {
  20552. return
  20553. }
  20554. if (err) {
  20555. consume.reject(err)
  20556. } else {
  20557. consume.resolve()
  20558. }
  20559. consume.type = null
  20560. consume.stream = null
  20561. consume.resolve = null
  20562. consume.reject = null
  20563. consume.length = 0
  20564. consume.body = null
  20565. }
  20566. /***/ }),
  20567. /***/ 7474:
  20568. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  20569. const assert = __nccwpck_require__(9491)
  20570. const {
  20571. ResponseStatusCodeError
  20572. } = __nccwpck_require__(8045)
  20573. const { toUSVString } = __nccwpck_require__(3983)
  20574. async function getResolveErrorBodyCallback ({ callback, body, contentType, statusCode, statusMessage, headers }) {
  20575. assert(body)
  20576. let chunks = []
  20577. let limit = 0
  20578. for await (const chunk of body) {
  20579. chunks.push(chunk)
  20580. limit += chunk.length
  20581. if (limit > 128 * 1024) {
  20582. chunks = null
  20583. break
  20584. }
  20585. }
  20586. if (statusCode === 204 || !contentType || !chunks) {
  20587. process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers))
  20588. return
  20589. }
  20590. try {
  20591. if (contentType.startsWith('application/json')) {
  20592. const payload = JSON.parse(toUSVString(Buffer.concat(chunks)))
  20593. process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers, payload))
  20594. return
  20595. }
  20596. if (contentType.startsWith('text/')) {
  20597. const payload = toUSVString(Buffer.concat(chunks))
  20598. process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers, payload))
  20599. return
  20600. }
  20601. } catch (err) {
  20602. // Process in a fallback if error
  20603. }
  20604. process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers))
  20605. }
  20606. module.exports = { getResolveErrorBodyCallback }
  20607. /***/ }),
  20608. /***/ 7931:
  20609. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  20610. "use strict";
  20611. const {
  20612. BalancedPoolMissingUpstreamError,
  20613. InvalidArgumentError
  20614. } = __nccwpck_require__(8045)
  20615. const {
  20616. PoolBase,
  20617. kClients,
  20618. kNeedDrain,
  20619. kAddClient,
  20620. kRemoveClient,
  20621. kGetDispatcher
  20622. } = __nccwpck_require__(3198)
  20623. const Pool = __nccwpck_require__(4634)
  20624. const { kUrl, kInterceptors } = __nccwpck_require__(2785)
  20625. const { parseOrigin } = __nccwpck_require__(3983)
  20626. const kFactory = Symbol('factory')
  20627. const kOptions = Symbol('options')
  20628. const kGreatestCommonDivisor = Symbol('kGreatestCommonDivisor')
  20629. const kCurrentWeight = Symbol('kCurrentWeight')
  20630. const kIndex = Symbol('kIndex')
  20631. const kWeight = Symbol('kWeight')
  20632. const kMaxWeightPerServer = Symbol('kMaxWeightPerServer')
  20633. const kErrorPenalty = Symbol('kErrorPenalty')
  20634. function getGreatestCommonDivisor (a, b) {
  20635. if (b === 0) return a
  20636. return getGreatestCommonDivisor(b, a % b)
  20637. }
  20638. function defaultFactory (origin, opts) {
  20639. return new Pool(origin, opts)
  20640. }
  20641. class BalancedPool extends PoolBase {
  20642. constructor (upstreams = [], { factory = defaultFactory, ...opts } = {}) {
  20643. super()
  20644. this[kOptions] = opts
  20645. this[kIndex] = -1
  20646. this[kCurrentWeight] = 0
  20647. this[kMaxWeightPerServer] = this[kOptions].maxWeightPerServer || 100
  20648. this[kErrorPenalty] = this[kOptions].errorPenalty || 15
  20649. if (!Array.isArray(upstreams)) {
  20650. upstreams = [upstreams]
  20651. }
  20652. if (typeof factory !== 'function') {
  20653. throw new InvalidArgumentError('factory must be a function.')
  20654. }
  20655. this[kInterceptors] = opts.interceptors && opts.interceptors.BalancedPool && Array.isArray(opts.interceptors.BalancedPool)
  20656. ? opts.interceptors.BalancedPool
  20657. : []
  20658. this[kFactory] = factory
  20659. for (const upstream of upstreams) {
  20660. this.addUpstream(upstream)
  20661. }
  20662. this._updateBalancedPoolStats()
  20663. }
  20664. addUpstream (upstream) {
  20665. const upstreamOrigin = parseOrigin(upstream).origin
  20666. if (this[kClients].find((pool) => (
  20667. pool[kUrl].origin === upstreamOrigin &&
  20668. pool.closed !== true &&
  20669. pool.destroyed !== true
  20670. ))) {
  20671. return this
  20672. }
  20673. const pool = this[kFactory](upstreamOrigin, Object.assign({}, this[kOptions]))
  20674. this[kAddClient](pool)
  20675. pool.on('connect', () => {
  20676. pool[kWeight] = Math.min(this[kMaxWeightPerServer], pool[kWeight] + this[kErrorPenalty])
  20677. })
  20678. pool.on('connectionError', () => {
  20679. pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty])
  20680. this._updateBalancedPoolStats()
  20681. })
  20682. pool.on('disconnect', (...args) => {
  20683. const err = args[2]
  20684. if (err && err.code === 'UND_ERR_SOCKET') {
  20685. // decrease the weight of the pool.
  20686. pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty])
  20687. this._updateBalancedPoolStats()
  20688. }
  20689. })
  20690. for (const client of this[kClients]) {
  20691. client[kWeight] = this[kMaxWeightPerServer]
  20692. }
  20693. this._updateBalancedPoolStats()
  20694. return this
  20695. }
  20696. _updateBalancedPoolStats () {
  20697. this[kGreatestCommonDivisor] = this[kClients].map(p => p[kWeight]).reduce(getGreatestCommonDivisor, 0)
  20698. }
  20699. removeUpstream (upstream) {
  20700. const upstreamOrigin = parseOrigin(upstream).origin
  20701. const pool = this[kClients].find((pool) => (
  20702. pool[kUrl].origin === upstreamOrigin &&
  20703. pool.closed !== true &&
  20704. pool.destroyed !== true
  20705. ))
  20706. if (pool) {
  20707. this[kRemoveClient](pool)
  20708. }
  20709. return this
  20710. }
  20711. get upstreams () {
  20712. return this[kClients]
  20713. .filter(dispatcher => dispatcher.closed !== true && dispatcher.destroyed !== true)
  20714. .map((p) => p[kUrl].origin)
  20715. }
  20716. [kGetDispatcher] () {
  20717. // We validate that pools is greater than 0,
  20718. // otherwise we would have to wait until an upstream
  20719. // is added, which might never happen.
  20720. if (this[kClients].length === 0) {
  20721. throw new BalancedPoolMissingUpstreamError()
  20722. }
  20723. const dispatcher = this[kClients].find(dispatcher => (
  20724. !dispatcher[kNeedDrain] &&
  20725. dispatcher.closed !== true &&
  20726. dispatcher.destroyed !== true
  20727. ))
  20728. if (!dispatcher) {
  20729. return
  20730. }
  20731. const allClientsBusy = this[kClients].map(pool => pool[kNeedDrain]).reduce((a, b) => a && b, true)
  20732. if (allClientsBusy) {
  20733. return
  20734. }
  20735. let counter = 0
  20736. let maxWeightIndex = this[kClients].findIndex(pool => !pool[kNeedDrain])
  20737. while (counter++ < this[kClients].length) {
  20738. this[kIndex] = (this[kIndex] + 1) % this[kClients].length
  20739. const pool = this[kClients][this[kIndex]]
  20740. // find pool index with the largest weight
  20741. if (pool[kWeight] > this[kClients][maxWeightIndex][kWeight] && !pool[kNeedDrain]) {
  20742. maxWeightIndex = this[kIndex]
  20743. }
  20744. // decrease the current weight every `this[kClients].length`.
  20745. if (this[kIndex] === 0) {
  20746. // Set the current weight to the next lower weight.
  20747. this[kCurrentWeight] = this[kCurrentWeight] - this[kGreatestCommonDivisor]
  20748. if (this[kCurrentWeight] <= 0) {
  20749. this[kCurrentWeight] = this[kMaxWeightPerServer]
  20750. }
  20751. }
  20752. if (pool[kWeight] >= this[kCurrentWeight] && (!pool[kNeedDrain])) {
  20753. return pool
  20754. }
  20755. }
  20756. this[kCurrentWeight] = this[kClients][maxWeightIndex][kWeight]
  20757. this[kIndex] = maxWeightIndex
  20758. return this[kClients][maxWeightIndex]
  20759. }
  20760. }
  20761. module.exports = BalancedPool
  20762. /***/ }),
  20763. /***/ 6101:
  20764. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  20765. "use strict";
  20766. const { kConstruct } = __nccwpck_require__(9174)
  20767. const { urlEquals, fieldValues: getFieldValues } = __nccwpck_require__(2396)
  20768. const { kEnumerableProperty, isDisturbed } = __nccwpck_require__(3983)
  20769. const { kHeadersList } = __nccwpck_require__(2785)
  20770. const { webidl } = __nccwpck_require__(1744)
  20771. const { Response, cloneResponse } = __nccwpck_require__(7823)
  20772. const { Request } = __nccwpck_require__(8359)
  20773. const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(5861)
  20774. const { fetching } = __nccwpck_require__(4881)
  20775. const { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = __nccwpck_require__(2538)
  20776. const assert = __nccwpck_require__(9491)
  20777. const { getGlobalDispatcher } = __nccwpck_require__(1892)
  20778. /**
  20779. * @see https://w3c.github.io/ServiceWorker/#dfn-cache-batch-operation
  20780. * @typedef {Object} CacheBatchOperation
  20781. * @property {'delete' | 'put'} type
  20782. * @property {any} request
  20783. * @property {any} response
  20784. * @property {import('../../types/cache').CacheQueryOptions} options
  20785. */
  20786. /**
  20787. * @see https://w3c.github.io/ServiceWorker/#dfn-request-response-list
  20788. * @typedef {[any, any][]} requestResponseList
  20789. */
  20790. class Cache {
  20791. /**
  20792. * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list
  20793. * @type {requestResponseList}
  20794. */
  20795. #relevantRequestResponseList
  20796. constructor () {
  20797. if (arguments[0] !== kConstruct) {
  20798. webidl.illegalConstructor()
  20799. }
  20800. this.#relevantRequestResponseList = arguments[1]
  20801. }
  20802. async match (request, options = {}) {
  20803. webidl.brandCheck(this, Cache)
  20804. webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.match' })
  20805. request = webidl.converters.RequestInfo(request)
  20806. options = webidl.converters.CacheQueryOptions(options)
  20807. const p = await this.matchAll(request, options)
  20808. if (p.length === 0) {
  20809. return
  20810. }
  20811. return p[0]
  20812. }
  20813. async matchAll (request = undefined, options = {}) {
  20814. webidl.brandCheck(this, Cache)
  20815. if (request !== undefined) request = webidl.converters.RequestInfo(request)
  20816. options = webidl.converters.CacheQueryOptions(options)
  20817. // 1.
  20818. let r = null
  20819. // 2.
  20820. if (request !== undefined) {
  20821. if (request instanceof Request) {
  20822. // 2.1.1
  20823. r = request[kState]
  20824. // 2.1.2
  20825. if (r.method !== 'GET' && !options.ignoreMethod) {
  20826. return []
  20827. }
  20828. } else if (typeof request === 'string') {
  20829. // 2.2.1
  20830. r = new Request(request)[kState]
  20831. }
  20832. }
  20833. // 5.
  20834. // 5.1
  20835. const responses = []
  20836. // 5.2
  20837. if (request === undefined) {
  20838. // 5.2.1
  20839. for (const requestResponse of this.#relevantRequestResponseList) {
  20840. responses.push(requestResponse[1])
  20841. }
  20842. } else { // 5.3
  20843. // 5.3.1
  20844. const requestResponses = this.#queryCache(r, options)
  20845. // 5.3.2
  20846. for (const requestResponse of requestResponses) {
  20847. responses.push(requestResponse[1])
  20848. }
  20849. }
  20850. // 5.4
  20851. // We don't implement CORs so we don't need to loop over the responses, yay!
  20852. // 5.5.1
  20853. const responseList = []
  20854. // 5.5.2
  20855. for (const response of responses) {
  20856. // 5.5.2.1
  20857. const responseObject = new Response(response.body?.source ?? null)
  20858. const body = responseObject[kState].body
  20859. responseObject[kState] = response
  20860. responseObject[kState].body = body
  20861. responseObject[kHeaders][kHeadersList] = response.headersList
  20862. responseObject[kHeaders][kGuard] = 'immutable'
  20863. responseList.push(responseObject)
  20864. }
  20865. // 6.
  20866. return Object.freeze(responseList)
  20867. }
  20868. async add (request) {
  20869. webidl.brandCheck(this, Cache)
  20870. webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.add' })
  20871. request = webidl.converters.RequestInfo(request)
  20872. // 1.
  20873. const requests = [request]
  20874. // 2.
  20875. const responseArrayPromise = this.addAll(requests)
  20876. // 3.
  20877. return await responseArrayPromise
  20878. }
  20879. async addAll (requests) {
  20880. webidl.brandCheck(this, Cache)
  20881. webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.addAll' })
  20882. requests = webidl.converters['sequence<RequestInfo>'](requests)
  20883. // 1.
  20884. const responsePromises = []
  20885. // 2.
  20886. const requestList = []
  20887. // 3.
  20888. for (const request of requests) {
  20889. if (typeof request === 'string') {
  20890. continue
  20891. }
  20892. // 3.1
  20893. const r = request[kState]
  20894. // 3.2
  20895. if (!urlIsHttpHttpsScheme(r.url) || r.method !== 'GET') {
  20896. throw webidl.errors.exception({
  20897. header: 'Cache.addAll',
  20898. message: 'Expected http/s scheme when method is not GET.'
  20899. })
  20900. }
  20901. }
  20902. // 4.
  20903. /** @type {ReturnType<typeof fetching>[]} */
  20904. const fetchControllers = []
  20905. // 5.
  20906. for (const request of requests) {
  20907. // 5.1
  20908. const r = new Request(request)[kState]
  20909. // 5.2
  20910. if (!urlIsHttpHttpsScheme(r.url)) {
  20911. throw webidl.errors.exception({
  20912. header: 'Cache.addAll',
  20913. message: 'Expected http/s scheme.'
  20914. })
  20915. }
  20916. // 5.4
  20917. r.initiator = 'fetch'
  20918. r.destination = 'subresource'
  20919. // 5.5
  20920. requestList.push(r)
  20921. // 5.6
  20922. const responsePromise = createDeferredPromise()
  20923. // 5.7
  20924. fetchControllers.push(fetching({
  20925. request: r,
  20926. dispatcher: getGlobalDispatcher(),
  20927. processResponse (response) {
  20928. // 1.
  20929. if (response.type === 'error' || response.status === 206 || response.status < 200 || response.status > 299) {
  20930. responsePromise.reject(webidl.errors.exception({
  20931. header: 'Cache.addAll',
  20932. message: 'Received an invalid status code or the request failed.'
  20933. }))
  20934. } else if (response.headersList.contains('vary')) { // 2.
  20935. // 2.1
  20936. const fieldValues = getFieldValues(response.headersList.get('vary'))
  20937. // 2.2
  20938. for (const fieldValue of fieldValues) {
  20939. // 2.2.1
  20940. if (fieldValue === '*') {
  20941. responsePromise.reject(webidl.errors.exception({
  20942. header: 'Cache.addAll',
  20943. message: 'invalid vary field value'
  20944. }))
  20945. for (const controller of fetchControllers) {
  20946. controller.abort()
  20947. }
  20948. return
  20949. }
  20950. }
  20951. }
  20952. },
  20953. processResponseEndOfBody (response) {
  20954. // 1.
  20955. if (response.aborted) {
  20956. responsePromise.reject(new DOMException('aborted', 'AbortError'))
  20957. return
  20958. }
  20959. // 2.
  20960. responsePromise.resolve(response)
  20961. }
  20962. }))
  20963. // 5.8
  20964. responsePromises.push(responsePromise.promise)
  20965. }
  20966. // 6.
  20967. const p = Promise.all(responsePromises)
  20968. // 7.
  20969. const responses = await p
  20970. // 7.1
  20971. const operations = []
  20972. // 7.2
  20973. let index = 0
  20974. // 7.3
  20975. for (const response of responses) {
  20976. // 7.3.1
  20977. /** @type {CacheBatchOperation} */
  20978. const operation = {
  20979. type: 'put', // 7.3.2
  20980. request: requestList[index], // 7.3.3
  20981. response // 7.3.4
  20982. }
  20983. operations.push(operation) // 7.3.5
  20984. index++ // 7.3.6
  20985. }
  20986. // 7.5
  20987. const cacheJobPromise = createDeferredPromise()
  20988. // 7.6.1
  20989. let errorData = null
  20990. // 7.6.2
  20991. try {
  20992. this.#batchCacheOperations(operations)
  20993. } catch (e) {
  20994. errorData = e
  20995. }
  20996. // 7.6.3
  20997. queueMicrotask(() => {
  20998. // 7.6.3.1
  20999. if (errorData === null) {
  21000. cacheJobPromise.resolve(undefined)
  21001. } else {
  21002. // 7.6.3.2
  21003. cacheJobPromise.reject(errorData)
  21004. }
  21005. })
  21006. // 7.7
  21007. return cacheJobPromise.promise
  21008. }
  21009. async put (request, response) {
  21010. webidl.brandCheck(this, Cache)
  21011. webidl.argumentLengthCheck(arguments, 2, { header: 'Cache.put' })
  21012. request = webidl.converters.RequestInfo(request)
  21013. response = webidl.converters.Response(response)
  21014. // 1.
  21015. let innerRequest = null
  21016. // 2.
  21017. if (request instanceof Request) {
  21018. innerRequest = request[kState]
  21019. } else { // 3.
  21020. innerRequest = new Request(request)[kState]
  21021. }
  21022. // 4.
  21023. if (!urlIsHttpHttpsScheme(innerRequest.url) || innerRequest.method !== 'GET') {
  21024. throw webidl.errors.exception({
  21025. header: 'Cache.put',
  21026. message: 'Expected an http/s scheme when method is not GET'
  21027. })
  21028. }
  21029. // 5.
  21030. const innerResponse = response[kState]
  21031. // 6.
  21032. if (innerResponse.status === 206) {
  21033. throw webidl.errors.exception({
  21034. header: 'Cache.put',
  21035. message: 'Got 206 status'
  21036. })
  21037. }
  21038. // 7.
  21039. if (innerResponse.headersList.contains('vary')) {
  21040. // 7.1.
  21041. const fieldValues = getFieldValues(innerResponse.headersList.get('vary'))
  21042. // 7.2.
  21043. for (const fieldValue of fieldValues) {
  21044. // 7.2.1
  21045. if (fieldValue === '*') {
  21046. throw webidl.errors.exception({
  21047. header: 'Cache.put',
  21048. message: 'Got * vary field value'
  21049. })
  21050. }
  21051. }
  21052. }
  21053. // 8.
  21054. if (innerResponse.body && (isDisturbed(innerResponse.body.stream) || innerResponse.body.stream.locked)) {
  21055. throw webidl.errors.exception({
  21056. header: 'Cache.put',
  21057. message: 'Response body is locked or disturbed'
  21058. })
  21059. }
  21060. // 9.
  21061. const clonedResponse = cloneResponse(innerResponse)
  21062. // 10.
  21063. const bodyReadPromise = createDeferredPromise()
  21064. // 11.
  21065. if (innerResponse.body != null) {
  21066. // 11.1
  21067. const stream = innerResponse.body.stream
  21068. // 11.2
  21069. const reader = stream.getReader()
  21070. // 11.3
  21071. readAllBytes(reader).then(bodyReadPromise.resolve, bodyReadPromise.reject)
  21072. } else {
  21073. bodyReadPromise.resolve(undefined)
  21074. }
  21075. // 12.
  21076. /** @type {CacheBatchOperation[]} */
  21077. const operations = []
  21078. // 13.
  21079. /** @type {CacheBatchOperation} */
  21080. const operation = {
  21081. type: 'put', // 14.
  21082. request: innerRequest, // 15.
  21083. response: clonedResponse // 16.
  21084. }
  21085. // 17.
  21086. operations.push(operation)
  21087. // 19.
  21088. const bytes = await bodyReadPromise.promise
  21089. if (clonedResponse.body != null) {
  21090. clonedResponse.body.source = bytes
  21091. }
  21092. // 19.1
  21093. const cacheJobPromise = createDeferredPromise()
  21094. // 19.2.1
  21095. let errorData = null
  21096. // 19.2.2
  21097. try {
  21098. this.#batchCacheOperations(operations)
  21099. } catch (e) {
  21100. errorData = e
  21101. }
  21102. // 19.2.3
  21103. queueMicrotask(() => {
  21104. // 19.2.3.1
  21105. if (errorData === null) {
  21106. cacheJobPromise.resolve()
  21107. } else { // 19.2.3.2
  21108. cacheJobPromise.reject(errorData)
  21109. }
  21110. })
  21111. return cacheJobPromise.promise
  21112. }
  21113. async delete (request, options = {}) {
  21114. webidl.brandCheck(this, Cache)
  21115. webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.delete' })
  21116. request = webidl.converters.RequestInfo(request)
  21117. options = webidl.converters.CacheQueryOptions(options)
  21118. /**
  21119. * @type {Request}
  21120. */
  21121. let r = null
  21122. if (request instanceof Request) {
  21123. r = request[kState]
  21124. if (r.method !== 'GET' && !options.ignoreMethod) {
  21125. return false
  21126. }
  21127. } else {
  21128. assert(typeof request === 'string')
  21129. r = new Request(request)[kState]
  21130. }
  21131. /** @type {CacheBatchOperation[]} */
  21132. const operations = []
  21133. /** @type {CacheBatchOperation} */
  21134. const operation = {
  21135. type: 'delete',
  21136. request: r,
  21137. options
  21138. }
  21139. operations.push(operation)
  21140. const cacheJobPromise = createDeferredPromise()
  21141. let errorData = null
  21142. let requestResponses
  21143. try {
  21144. requestResponses = this.#batchCacheOperations(operations)
  21145. } catch (e) {
  21146. errorData = e
  21147. }
  21148. queueMicrotask(() => {
  21149. if (errorData === null) {
  21150. cacheJobPromise.resolve(!!requestResponses?.length)
  21151. } else {
  21152. cacheJobPromise.reject(errorData)
  21153. }
  21154. })
  21155. return cacheJobPromise.promise
  21156. }
  21157. /**
  21158. * @see https://w3c.github.io/ServiceWorker/#dom-cache-keys
  21159. * @param {any} request
  21160. * @param {import('../../types/cache').CacheQueryOptions} options
  21161. * @returns {readonly Request[]}
  21162. */
  21163. async keys (request = undefined, options = {}) {
  21164. webidl.brandCheck(this, Cache)
  21165. if (request !== undefined) request = webidl.converters.RequestInfo(request)
  21166. options = webidl.converters.CacheQueryOptions(options)
  21167. // 1.
  21168. let r = null
  21169. // 2.
  21170. if (request !== undefined) {
  21171. // 2.1
  21172. if (request instanceof Request) {
  21173. // 2.1.1
  21174. r = request[kState]
  21175. // 2.1.2
  21176. if (r.method !== 'GET' && !options.ignoreMethod) {
  21177. return []
  21178. }
  21179. } else if (typeof request === 'string') { // 2.2
  21180. r = new Request(request)[kState]
  21181. }
  21182. }
  21183. // 4.
  21184. const promise = createDeferredPromise()
  21185. // 5.
  21186. // 5.1
  21187. const requests = []
  21188. // 5.2
  21189. if (request === undefined) {
  21190. // 5.2.1
  21191. for (const requestResponse of this.#relevantRequestResponseList) {
  21192. // 5.2.1.1
  21193. requests.push(requestResponse[0])
  21194. }
  21195. } else { // 5.3
  21196. // 5.3.1
  21197. const requestResponses = this.#queryCache(r, options)
  21198. // 5.3.2
  21199. for (const requestResponse of requestResponses) {
  21200. // 5.3.2.1
  21201. requests.push(requestResponse[0])
  21202. }
  21203. }
  21204. // 5.4
  21205. queueMicrotask(() => {
  21206. // 5.4.1
  21207. const requestList = []
  21208. // 5.4.2
  21209. for (const request of requests) {
  21210. const requestObject = new Request('https://a')
  21211. requestObject[kState] = request
  21212. requestObject[kHeaders][kHeadersList] = request.headersList
  21213. requestObject[kHeaders][kGuard] = 'immutable'
  21214. requestObject[kRealm] = request.client
  21215. // 5.4.2.1
  21216. requestList.push(requestObject)
  21217. }
  21218. // 5.4.3
  21219. promise.resolve(Object.freeze(requestList))
  21220. })
  21221. return promise.promise
  21222. }
  21223. /**
  21224. * @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm
  21225. * @param {CacheBatchOperation[]} operations
  21226. * @returns {requestResponseList}
  21227. */
  21228. #batchCacheOperations (operations) {
  21229. // 1.
  21230. const cache = this.#relevantRequestResponseList
  21231. // 2.
  21232. const backupCache = [...cache]
  21233. // 3.
  21234. const addedItems = []
  21235. // 4.1
  21236. const resultList = []
  21237. try {
  21238. // 4.2
  21239. for (const operation of operations) {
  21240. // 4.2.1
  21241. if (operation.type !== 'delete' && operation.type !== 'put') {
  21242. throw webidl.errors.exception({
  21243. header: 'Cache.#batchCacheOperations',
  21244. message: 'operation type does not match "delete" or "put"'
  21245. })
  21246. }
  21247. // 4.2.2
  21248. if (operation.type === 'delete' && operation.response != null) {
  21249. throw webidl.errors.exception({
  21250. header: 'Cache.#batchCacheOperations',
  21251. message: 'delete operation should not have an associated response'
  21252. })
  21253. }
  21254. // 4.2.3
  21255. if (this.#queryCache(operation.request, operation.options, addedItems).length) {
  21256. throw new DOMException('???', 'InvalidStateError')
  21257. }
  21258. // 4.2.4
  21259. let requestResponses
  21260. // 4.2.5
  21261. if (operation.type === 'delete') {
  21262. // 4.2.5.1
  21263. requestResponses = this.#queryCache(operation.request, operation.options)
  21264. // TODO: the spec is wrong, this is needed to pass WPTs
  21265. if (requestResponses.length === 0) {
  21266. return []
  21267. }
  21268. // 4.2.5.2
  21269. for (const requestResponse of requestResponses) {
  21270. const idx = cache.indexOf(requestResponse)
  21271. assert(idx !== -1)
  21272. // 4.2.5.2.1
  21273. cache.splice(idx, 1)
  21274. }
  21275. } else if (operation.type === 'put') { // 4.2.6
  21276. // 4.2.6.1
  21277. if (operation.response == null) {
  21278. throw webidl.errors.exception({
  21279. header: 'Cache.#batchCacheOperations',
  21280. message: 'put operation should have an associated response'
  21281. })
  21282. }
  21283. // 4.2.6.2
  21284. const r = operation.request
  21285. // 4.2.6.3
  21286. if (!urlIsHttpHttpsScheme(r.url)) {
  21287. throw webidl.errors.exception({
  21288. header: 'Cache.#batchCacheOperations',
  21289. message: 'expected http or https scheme'
  21290. })
  21291. }
  21292. // 4.2.6.4
  21293. if (r.method !== 'GET') {
  21294. throw webidl.errors.exception({
  21295. header: 'Cache.#batchCacheOperations',
  21296. message: 'not get method'
  21297. })
  21298. }
  21299. // 4.2.6.5
  21300. if (operation.options != null) {
  21301. throw webidl.errors.exception({
  21302. header: 'Cache.#batchCacheOperations',
  21303. message: 'options must not be defined'
  21304. })
  21305. }
  21306. // 4.2.6.6
  21307. requestResponses = this.#queryCache(operation.request)
  21308. // 4.2.6.7
  21309. for (const requestResponse of requestResponses) {
  21310. const idx = cache.indexOf(requestResponse)
  21311. assert(idx !== -1)
  21312. // 4.2.6.7.1
  21313. cache.splice(idx, 1)
  21314. }
  21315. // 4.2.6.8
  21316. cache.push([operation.request, operation.response])
  21317. // 4.2.6.10
  21318. addedItems.push([operation.request, operation.response])
  21319. }
  21320. // 4.2.7
  21321. resultList.push([operation.request, operation.response])
  21322. }
  21323. // 4.3
  21324. return resultList
  21325. } catch (e) { // 5.
  21326. // 5.1
  21327. this.#relevantRequestResponseList.length = 0
  21328. // 5.2
  21329. this.#relevantRequestResponseList = backupCache
  21330. // 5.3
  21331. throw e
  21332. }
  21333. }
  21334. /**
  21335. * @see https://w3c.github.io/ServiceWorker/#query-cache
  21336. * @param {any} requestQuery
  21337. * @param {import('../../types/cache').CacheQueryOptions} options
  21338. * @param {requestResponseList} targetStorage
  21339. * @returns {requestResponseList}
  21340. */
  21341. #queryCache (requestQuery, options, targetStorage) {
  21342. /** @type {requestResponseList} */
  21343. const resultList = []
  21344. const storage = targetStorage ?? this.#relevantRequestResponseList
  21345. for (const requestResponse of storage) {
  21346. const [cachedRequest, cachedResponse] = requestResponse
  21347. if (this.#requestMatchesCachedItem(requestQuery, cachedRequest, cachedResponse, options)) {
  21348. resultList.push(requestResponse)
  21349. }
  21350. }
  21351. return resultList
  21352. }
  21353. /**
  21354. * @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm
  21355. * @param {any} requestQuery
  21356. * @param {any} request
  21357. * @param {any | null} response
  21358. * @param {import('../../types/cache').CacheQueryOptions | undefined} options
  21359. * @returns {boolean}
  21360. */
  21361. #requestMatchesCachedItem (requestQuery, request, response = null, options) {
  21362. // if (options?.ignoreMethod === false && request.method === 'GET') {
  21363. // return false
  21364. // }
  21365. const queryURL = new URL(requestQuery.url)
  21366. const cachedURL = new URL(request.url)
  21367. if (options?.ignoreSearch) {
  21368. cachedURL.search = ''
  21369. queryURL.search = ''
  21370. }
  21371. if (!urlEquals(queryURL, cachedURL, true)) {
  21372. return false
  21373. }
  21374. if (
  21375. response == null ||
  21376. options?.ignoreVary ||
  21377. !response.headersList.contains('vary')
  21378. ) {
  21379. return true
  21380. }
  21381. const fieldValues = getFieldValues(response.headersList.get('vary'))
  21382. for (const fieldValue of fieldValues) {
  21383. if (fieldValue === '*') {
  21384. return false
  21385. }
  21386. const requestValue = request.headersList.get(fieldValue)
  21387. const queryValue = requestQuery.headersList.get(fieldValue)
  21388. // If one has the header and the other doesn't, or one has
  21389. // a different value than the other, return false
  21390. if (requestValue !== queryValue) {
  21391. return false
  21392. }
  21393. }
  21394. return true
  21395. }
  21396. }
  21397. Object.defineProperties(Cache.prototype, {
  21398. [Symbol.toStringTag]: {
  21399. value: 'Cache',
  21400. configurable: true
  21401. },
  21402. match: kEnumerableProperty,
  21403. matchAll: kEnumerableProperty,
  21404. add: kEnumerableProperty,
  21405. addAll: kEnumerableProperty,
  21406. put: kEnumerableProperty,
  21407. delete: kEnumerableProperty,
  21408. keys: kEnumerableProperty
  21409. })
  21410. const cacheQueryOptionConverters = [
  21411. {
  21412. key: 'ignoreSearch',
  21413. converter: webidl.converters.boolean,
  21414. defaultValue: false
  21415. },
  21416. {
  21417. key: 'ignoreMethod',
  21418. converter: webidl.converters.boolean,
  21419. defaultValue: false
  21420. },
  21421. {
  21422. key: 'ignoreVary',
  21423. converter: webidl.converters.boolean,
  21424. defaultValue: false
  21425. }
  21426. ]
  21427. webidl.converters.CacheQueryOptions = webidl.dictionaryConverter(cacheQueryOptionConverters)
  21428. webidl.converters.MultiCacheQueryOptions = webidl.dictionaryConverter([
  21429. ...cacheQueryOptionConverters,
  21430. {
  21431. key: 'cacheName',
  21432. converter: webidl.converters.DOMString
  21433. }
  21434. ])
  21435. webidl.converters.Response = webidl.interfaceConverter(Response)
  21436. webidl.converters['sequence<RequestInfo>'] = webidl.sequenceConverter(
  21437. webidl.converters.RequestInfo
  21438. )
  21439. module.exports = {
  21440. Cache
  21441. }
  21442. /***/ }),
  21443. /***/ 7907:
  21444. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  21445. "use strict";
  21446. const { kConstruct } = __nccwpck_require__(9174)
  21447. const { Cache } = __nccwpck_require__(6101)
  21448. const { webidl } = __nccwpck_require__(1744)
  21449. const { kEnumerableProperty } = __nccwpck_require__(3983)
  21450. class CacheStorage {
  21451. /**
  21452. * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-name-to-cache-map
  21453. * @type {Map<string, import('./cache').requestResponseList}
  21454. */
  21455. #caches = new Map()
  21456. constructor () {
  21457. if (arguments[0] !== kConstruct) {
  21458. webidl.illegalConstructor()
  21459. }
  21460. }
  21461. async match (request, options = {}) {
  21462. webidl.brandCheck(this, CacheStorage)
  21463. webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.match' })
  21464. request = webidl.converters.RequestInfo(request)
  21465. options = webidl.converters.MultiCacheQueryOptions(options)
  21466. // 1.
  21467. if (options.cacheName != null) {
  21468. // 1.1.1.1
  21469. if (this.#caches.has(options.cacheName)) {
  21470. // 1.1.1.1.1
  21471. const cacheList = this.#caches.get(options.cacheName)
  21472. const cache = new Cache(kConstruct, cacheList)
  21473. return await cache.match(request, options)
  21474. }
  21475. } else { // 2.
  21476. // 2.2
  21477. for (const cacheList of this.#caches.values()) {
  21478. const cache = new Cache(kConstruct, cacheList)
  21479. // 2.2.1.2
  21480. const response = await cache.match(request, options)
  21481. if (response !== undefined) {
  21482. return response
  21483. }
  21484. }
  21485. }
  21486. }
  21487. /**
  21488. * @see https://w3c.github.io/ServiceWorker/#cache-storage-has
  21489. * @param {string} cacheName
  21490. * @returns {Promise<boolean>}
  21491. */
  21492. async has (cacheName) {
  21493. webidl.brandCheck(this, CacheStorage)
  21494. webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.has' })
  21495. cacheName = webidl.converters.DOMString(cacheName)
  21496. // 2.1.1
  21497. // 2.2
  21498. return this.#caches.has(cacheName)
  21499. }
  21500. /**
  21501. * @see https://w3c.github.io/ServiceWorker/#dom-cachestorage-open
  21502. * @param {string} cacheName
  21503. * @returns {Promise<Cache>}
  21504. */
  21505. async open (cacheName) {
  21506. webidl.brandCheck(this, CacheStorage)
  21507. webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.open' })
  21508. cacheName = webidl.converters.DOMString(cacheName)
  21509. // 2.1
  21510. if (this.#caches.has(cacheName)) {
  21511. // await caches.open('v1') !== await caches.open('v1')
  21512. // 2.1.1
  21513. const cache = this.#caches.get(cacheName)
  21514. // 2.1.1.1
  21515. return new Cache(kConstruct, cache)
  21516. }
  21517. // 2.2
  21518. const cache = []
  21519. // 2.3
  21520. this.#caches.set(cacheName, cache)
  21521. // 2.4
  21522. return new Cache(kConstruct, cache)
  21523. }
  21524. /**
  21525. * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete
  21526. * @param {string} cacheName
  21527. * @returns {Promise<boolean>}
  21528. */
  21529. async delete (cacheName) {
  21530. webidl.brandCheck(this, CacheStorage)
  21531. webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.delete' })
  21532. cacheName = webidl.converters.DOMString(cacheName)
  21533. return this.#caches.delete(cacheName)
  21534. }
  21535. /**
  21536. * @see https://w3c.github.io/ServiceWorker/#cache-storage-keys
  21537. * @returns {string[]}
  21538. */
  21539. async keys () {
  21540. webidl.brandCheck(this, CacheStorage)
  21541. // 2.1
  21542. const keys = this.#caches.keys()
  21543. // 2.2
  21544. return [...keys]
  21545. }
  21546. }
  21547. Object.defineProperties(CacheStorage.prototype, {
  21548. [Symbol.toStringTag]: {
  21549. value: 'CacheStorage',
  21550. configurable: true
  21551. },
  21552. match: kEnumerableProperty,
  21553. has: kEnumerableProperty,
  21554. open: kEnumerableProperty,
  21555. delete: kEnumerableProperty,
  21556. keys: kEnumerableProperty
  21557. })
  21558. module.exports = {
  21559. CacheStorage
  21560. }
  21561. /***/ }),
  21562. /***/ 9174:
  21563. /***/ ((module) => {
  21564. "use strict";
  21565. module.exports = {
  21566. kConstruct: Symbol('constructable')
  21567. }
  21568. /***/ }),
  21569. /***/ 2396:
  21570. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  21571. "use strict";
  21572. const assert = __nccwpck_require__(9491)
  21573. const { URLSerializer } = __nccwpck_require__(685)
  21574. const { isValidHeaderName } = __nccwpck_require__(2538)
  21575. /**
  21576. * @see https://url.spec.whatwg.org/#concept-url-equals
  21577. * @param {URL} A
  21578. * @param {URL} B
  21579. * @param {boolean | undefined} excludeFragment
  21580. * @returns {boolean}
  21581. */
  21582. function urlEquals (A, B, excludeFragment = false) {
  21583. const serializedA = URLSerializer(A, excludeFragment)
  21584. const serializedB = URLSerializer(B, excludeFragment)
  21585. return serializedA === serializedB
  21586. }
  21587. /**
  21588. * @see https://github.com/chromium/chromium/blob/694d20d134cb553d8d89e5500b9148012b1ba299/content/browser/cache_storage/cache_storage_cache.cc#L260-L262
  21589. * @param {string} header
  21590. */
  21591. function fieldValues (header) {
  21592. assert(header !== null)
  21593. const values = []
  21594. for (let value of header.split(',')) {
  21595. value = value.trim()
  21596. if (!value.length) {
  21597. continue
  21598. } else if (!isValidHeaderName(value)) {
  21599. continue
  21600. }
  21601. values.push(value)
  21602. }
  21603. return values
  21604. }
  21605. module.exports = {
  21606. urlEquals,
  21607. fieldValues
  21608. }
  21609. /***/ }),
  21610. /***/ 3598:
  21611. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  21612. "use strict";
  21613. // @ts-check
  21614. /* global WebAssembly */
  21615. const assert = __nccwpck_require__(9491)
  21616. const net = __nccwpck_require__(1808)
  21617. const { pipeline } = __nccwpck_require__(2781)
  21618. const util = __nccwpck_require__(3983)
  21619. const timers = __nccwpck_require__(9459)
  21620. const Request = __nccwpck_require__(2905)
  21621. const DispatcherBase = __nccwpck_require__(4839)
  21622. const {
  21623. RequestContentLengthMismatchError,
  21624. ResponseContentLengthMismatchError,
  21625. InvalidArgumentError,
  21626. RequestAbortedError,
  21627. HeadersTimeoutError,
  21628. HeadersOverflowError,
  21629. SocketError,
  21630. InformationalError,
  21631. BodyTimeoutError,
  21632. HTTPParserError,
  21633. ResponseExceededMaxSizeError,
  21634. ClientDestroyedError
  21635. } = __nccwpck_require__(8045)
  21636. const buildConnector = __nccwpck_require__(2067)
  21637. const {
  21638. kUrl,
  21639. kReset,
  21640. kServerName,
  21641. kClient,
  21642. kBusy,
  21643. kParser,
  21644. kConnect,
  21645. kBlocking,
  21646. kResuming,
  21647. kRunning,
  21648. kPending,
  21649. kSize,
  21650. kWriting,
  21651. kQueue,
  21652. kConnected,
  21653. kConnecting,
  21654. kNeedDrain,
  21655. kNoRef,
  21656. kKeepAliveDefaultTimeout,
  21657. kHostHeader,
  21658. kPendingIdx,
  21659. kRunningIdx,
  21660. kError,
  21661. kPipelining,
  21662. kSocket,
  21663. kKeepAliveTimeoutValue,
  21664. kMaxHeadersSize,
  21665. kKeepAliveMaxTimeout,
  21666. kKeepAliveTimeoutThreshold,
  21667. kHeadersTimeout,
  21668. kBodyTimeout,
  21669. kStrictContentLength,
  21670. kConnector,
  21671. kMaxRedirections,
  21672. kMaxRequests,
  21673. kCounter,
  21674. kClose,
  21675. kDestroy,
  21676. kDispatch,
  21677. kInterceptors,
  21678. kLocalAddress,
  21679. kMaxResponseSize,
  21680. kHTTPConnVersion,
  21681. // HTTP2
  21682. kHost,
  21683. kHTTP2Session,
  21684. kHTTP2SessionState,
  21685. kHTTP2BuildRequest,
  21686. kHTTP2CopyHeaders,
  21687. kHTTP1BuildRequest
  21688. } = __nccwpck_require__(2785)
  21689. /** @type {import('http2')} */
  21690. let http2
  21691. try {
  21692. http2 = __nccwpck_require__(5158)
  21693. } catch {
  21694. // @ts-ignore
  21695. http2 = { constants: {} }
  21696. }
  21697. const {
  21698. constants: {
  21699. HTTP2_HEADER_AUTHORITY,
  21700. HTTP2_HEADER_METHOD,
  21701. HTTP2_HEADER_PATH,
  21702. HTTP2_HEADER_CONTENT_LENGTH,
  21703. HTTP2_HEADER_EXPECT,
  21704. HTTP2_HEADER_STATUS
  21705. }
  21706. } = http2
  21707. // Experimental
  21708. let h2ExperimentalWarned = false
  21709. const FastBuffer = Buffer[Symbol.species]
  21710. const kClosedResolve = Symbol('kClosedResolve')
  21711. const channels = {}
  21712. try {
  21713. const diagnosticsChannel = __nccwpck_require__(7643)
  21714. channels.sendHeaders = diagnosticsChannel.channel('undici:client:sendHeaders')
  21715. channels.beforeConnect = diagnosticsChannel.channel('undici:client:beforeConnect')
  21716. channels.connectError = diagnosticsChannel.channel('undici:client:connectError')
  21717. channels.connected = diagnosticsChannel.channel('undici:client:connected')
  21718. } catch {
  21719. channels.sendHeaders = { hasSubscribers: false }
  21720. channels.beforeConnect = { hasSubscribers: false }
  21721. channels.connectError = { hasSubscribers: false }
  21722. channels.connected = { hasSubscribers: false }
  21723. }
  21724. /**
  21725. * @type {import('../types/client').default}
  21726. */
  21727. class Client extends DispatcherBase {
  21728. /**
  21729. *
  21730. * @param {string|URL} url
  21731. * @param {import('../types/client').Client.Options} options
  21732. */
  21733. constructor (url, {
  21734. interceptors,
  21735. maxHeaderSize,
  21736. headersTimeout,
  21737. socketTimeout,
  21738. requestTimeout,
  21739. connectTimeout,
  21740. bodyTimeout,
  21741. idleTimeout,
  21742. keepAlive,
  21743. keepAliveTimeout,
  21744. maxKeepAliveTimeout,
  21745. keepAliveMaxTimeout,
  21746. keepAliveTimeoutThreshold,
  21747. socketPath,
  21748. pipelining,
  21749. tls,
  21750. strictContentLength,
  21751. maxCachedSessions,
  21752. maxRedirections,
  21753. connect,
  21754. maxRequestsPerClient,
  21755. localAddress,
  21756. maxResponseSize,
  21757. autoSelectFamily,
  21758. autoSelectFamilyAttemptTimeout,
  21759. // h2
  21760. allowH2,
  21761. maxConcurrentStreams
  21762. } = {}) {
  21763. super()
  21764. if (keepAlive !== undefined) {
  21765. throw new InvalidArgumentError('unsupported keepAlive, use pipelining=0 instead')
  21766. }
  21767. if (socketTimeout !== undefined) {
  21768. throw new InvalidArgumentError('unsupported socketTimeout, use headersTimeout & bodyTimeout instead')
  21769. }
  21770. if (requestTimeout !== undefined) {
  21771. throw new InvalidArgumentError('unsupported requestTimeout, use headersTimeout & bodyTimeout instead')
  21772. }
  21773. if (idleTimeout !== undefined) {
  21774. throw new InvalidArgumentError('unsupported idleTimeout, use keepAliveTimeout instead')
  21775. }
  21776. if (maxKeepAliveTimeout !== undefined) {
  21777. throw new InvalidArgumentError('unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead')
  21778. }
  21779. if (maxHeaderSize != null && !Number.isFinite(maxHeaderSize)) {
  21780. throw new InvalidArgumentError('invalid maxHeaderSize')
  21781. }
  21782. if (socketPath != null && typeof socketPath !== 'string') {
  21783. throw new InvalidArgumentError('invalid socketPath')
  21784. }
  21785. if (connectTimeout != null && (!Number.isFinite(connectTimeout) || connectTimeout < 0)) {
  21786. throw new InvalidArgumentError('invalid connectTimeout')
  21787. }
  21788. if (keepAliveTimeout != null && (!Number.isFinite(keepAliveTimeout) || keepAliveTimeout <= 0)) {
  21789. throw new InvalidArgumentError('invalid keepAliveTimeout')
  21790. }
  21791. if (keepAliveMaxTimeout != null && (!Number.isFinite(keepAliveMaxTimeout) || keepAliveMaxTimeout <= 0)) {
  21792. throw new InvalidArgumentError('invalid keepAliveMaxTimeout')
  21793. }
  21794. if (keepAliveTimeoutThreshold != null && !Number.isFinite(keepAliveTimeoutThreshold)) {
  21795. throw new InvalidArgumentError('invalid keepAliveTimeoutThreshold')
  21796. }
  21797. if (headersTimeout != null && (!Number.isInteger(headersTimeout) || headersTimeout < 0)) {
  21798. throw new InvalidArgumentError('headersTimeout must be a positive integer or zero')
  21799. }
  21800. if (bodyTimeout != null && (!Number.isInteger(bodyTimeout) || bodyTimeout < 0)) {
  21801. throw new InvalidArgumentError('bodyTimeout must be a positive integer or zero')
  21802. }
  21803. if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {
  21804. throw new InvalidArgumentError('connect must be a function or an object')
  21805. }
  21806. if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {
  21807. throw new InvalidArgumentError('maxRedirections must be a positive number')
  21808. }
  21809. if (maxRequestsPerClient != null && (!Number.isInteger(maxRequestsPerClient) || maxRequestsPerClient < 0)) {
  21810. throw new InvalidArgumentError('maxRequestsPerClient must be a positive number')
  21811. }
  21812. if (localAddress != null && (typeof localAddress !== 'string' || net.isIP(localAddress) === 0)) {
  21813. throw new InvalidArgumentError('localAddress must be valid string IP address')
  21814. }
  21815. if (maxResponseSize != null && (!Number.isInteger(maxResponseSize) || maxResponseSize < -1)) {
  21816. throw new InvalidArgumentError('maxResponseSize must be a positive number')
  21817. }
  21818. if (
  21819. autoSelectFamilyAttemptTimeout != null &&
  21820. (!Number.isInteger(autoSelectFamilyAttemptTimeout) || autoSelectFamilyAttemptTimeout < -1)
  21821. ) {
  21822. throw new InvalidArgumentError('autoSelectFamilyAttemptTimeout must be a positive number')
  21823. }
  21824. // h2
  21825. if (allowH2 != null && typeof allowH2 !== 'boolean') {
  21826. throw new InvalidArgumentError('allowH2 must be a valid boolean value')
  21827. }
  21828. if (maxConcurrentStreams != null && (typeof maxConcurrentStreams !== 'number' || maxConcurrentStreams < 1)) {
  21829. throw new InvalidArgumentError('maxConcurrentStreams must be a possitive integer, greater than 0')
  21830. }
  21831. if (typeof connect !== 'function') {
  21832. connect = buildConnector({
  21833. ...tls,
  21834. maxCachedSessions,
  21835. allowH2,
  21836. socketPath,
  21837. timeout: connectTimeout,
  21838. ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),
  21839. ...connect
  21840. })
  21841. }
  21842. this[kInterceptors] = interceptors && interceptors.Client && Array.isArray(interceptors.Client)
  21843. ? interceptors.Client
  21844. : [createRedirectInterceptor({ maxRedirections })]
  21845. this[kUrl] = util.parseOrigin(url)
  21846. this[kConnector] = connect
  21847. this[kSocket] = null
  21848. this[kPipelining] = pipelining != null ? pipelining : 1
  21849. this[kMaxHeadersSize] = maxHeaderSize || 16384
  21850. this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout
  21851. this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 600e3 : keepAliveMaxTimeout
  21852. this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold
  21853. this[kKeepAliveTimeoutValue] = this[kKeepAliveDefaultTimeout]
  21854. this[kServerName] = null
  21855. this[kLocalAddress] = localAddress != null ? localAddress : null
  21856. this[kResuming] = 0 // 0, idle, 1, scheduled, 2 resuming
  21857. this[kNeedDrain] = 0 // 0, idle, 1, scheduled, 2 resuming
  21858. this[kHostHeader] = `host: ${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}\r\n`
  21859. this[kBodyTimeout] = bodyTimeout != null ? bodyTimeout : 300e3
  21860. this[kHeadersTimeout] = headersTimeout != null ? headersTimeout : 300e3
  21861. this[kStrictContentLength] = strictContentLength == null ? true : strictContentLength
  21862. this[kMaxRedirections] = maxRedirections
  21863. this[kMaxRequests] = maxRequestsPerClient
  21864. this[kClosedResolve] = null
  21865. this[kMaxResponseSize] = maxResponseSize > -1 ? maxResponseSize : -1
  21866. this[kHTTPConnVersion] = 'h1'
  21867. // HTTP/2
  21868. this[kHTTP2Session] = null
  21869. this[kHTTP2SessionState] = !allowH2
  21870. ? null
  21871. : {
  21872. // streams: null, // Fixed queue of streams - For future support of `push`
  21873. openStreams: 0, // Keep track of them to decide wether or not unref the session
  21874. maxConcurrentStreams: maxConcurrentStreams != null ? maxConcurrentStreams : 100 // Max peerConcurrentStreams for a Node h2 server
  21875. }
  21876. this[kHost] = `${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}`
  21877. // kQueue is built up of 3 sections separated by
  21878. // the kRunningIdx and kPendingIdx indices.
  21879. // | complete | running | pending |
  21880. // ^ kRunningIdx ^ kPendingIdx ^ kQueue.length
  21881. // kRunningIdx points to the first running element.
  21882. // kPendingIdx points to the first pending element.
  21883. // This implements a fast queue with an amortized
  21884. // time of O(1).
  21885. this[kQueue] = []
  21886. this[kRunningIdx] = 0
  21887. this[kPendingIdx] = 0
  21888. }
  21889. get pipelining () {
  21890. return this[kPipelining]
  21891. }
  21892. set pipelining (value) {
  21893. this[kPipelining] = value
  21894. resume(this, true)
  21895. }
  21896. get [kPending] () {
  21897. return this[kQueue].length - this[kPendingIdx]
  21898. }
  21899. get [kRunning] () {
  21900. return this[kPendingIdx] - this[kRunningIdx]
  21901. }
  21902. get [kSize] () {
  21903. return this[kQueue].length - this[kRunningIdx]
  21904. }
  21905. get [kConnected] () {
  21906. return !!this[kSocket] && !this[kConnecting] && !this[kSocket].destroyed
  21907. }
  21908. get [kBusy] () {
  21909. const socket = this[kSocket]
  21910. return (
  21911. (socket && (socket[kReset] || socket[kWriting] || socket[kBlocking])) ||
  21912. (this[kSize] >= (this[kPipelining] || 1)) ||
  21913. this[kPending] > 0
  21914. )
  21915. }
  21916. /* istanbul ignore: only used for test */
  21917. [kConnect] (cb) {
  21918. connect(this)
  21919. this.once('connect', cb)
  21920. }
  21921. [kDispatch] (opts, handler) {
  21922. const origin = opts.origin || this[kUrl].origin
  21923. const request = this[kHTTPConnVersion] === 'h2'
  21924. ? Request[kHTTP2BuildRequest](origin, opts, handler)
  21925. : Request[kHTTP1BuildRequest](origin, opts, handler)
  21926. this[kQueue].push(request)
  21927. if (this[kResuming]) {
  21928. // Do nothing.
  21929. } else if (util.bodyLength(request.body) == null && util.isIterable(request.body)) {
  21930. // Wait a tick in case stream/iterator is ended in the same tick.
  21931. this[kResuming] = 1
  21932. process.nextTick(resume, this)
  21933. } else {
  21934. resume(this, true)
  21935. }
  21936. if (this[kResuming] && this[kNeedDrain] !== 2 && this[kBusy]) {
  21937. this[kNeedDrain] = 2
  21938. }
  21939. return this[kNeedDrain] < 2
  21940. }
  21941. async [kClose] () {
  21942. // TODO: for H2 we need to gracefully flush the remaining enqueued
  21943. // request and close each stream.
  21944. return new Promise((resolve) => {
  21945. if (!this[kSize]) {
  21946. resolve(null)
  21947. } else {
  21948. this[kClosedResolve] = resolve
  21949. }
  21950. })
  21951. }
  21952. async [kDestroy] (err) {
  21953. return new Promise((resolve) => {
  21954. const requests = this[kQueue].splice(this[kPendingIdx])
  21955. for (let i = 0; i < requests.length; i++) {
  21956. const request = requests[i]
  21957. errorRequest(this, request, err)
  21958. }
  21959. const callback = () => {
  21960. if (this[kClosedResolve]) {
  21961. // TODO (fix): Should we error here with ClientDestroyedError?
  21962. this[kClosedResolve]()
  21963. this[kClosedResolve] = null
  21964. }
  21965. resolve()
  21966. }
  21967. if (this[kHTTP2Session] != null) {
  21968. util.destroy(this[kHTTP2Session], err)
  21969. this[kHTTP2Session] = null
  21970. this[kHTTP2SessionState] = null
  21971. }
  21972. if (!this[kSocket]) {
  21973. queueMicrotask(callback)
  21974. } else {
  21975. util.destroy(this[kSocket].on('close', callback), err)
  21976. }
  21977. resume(this)
  21978. })
  21979. }
  21980. }
  21981. function onHttp2SessionError (err) {
  21982. assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')
  21983. this[kSocket][kError] = err
  21984. onError(this[kClient], err)
  21985. }
  21986. function onHttp2FrameError (type, code, id) {
  21987. const err = new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`)
  21988. if (id === 0) {
  21989. this[kSocket][kError] = err
  21990. onError(this[kClient], err)
  21991. }
  21992. }
  21993. function onHttp2SessionEnd () {
  21994. util.destroy(this, new SocketError('other side closed'))
  21995. util.destroy(this[kSocket], new SocketError('other side closed'))
  21996. }
  21997. function onHTTP2GoAway (code) {
  21998. const client = this[kClient]
  21999. const err = new InformationalError(`HTTP/2: "GOAWAY" frame received with code ${code}`)
  22000. client[kSocket] = null
  22001. client[kHTTP2Session] = null
  22002. if (client.destroyed) {
  22003. assert(this[kPending] === 0)
  22004. // Fail entire queue.
  22005. const requests = client[kQueue].splice(client[kRunningIdx])
  22006. for (let i = 0; i < requests.length; i++) {
  22007. const request = requests[i]
  22008. errorRequest(this, request, err)
  22009. }
  22010. } else if (client[kRunning] > 0) {
  22011. // Fail head of pipeline.
  22012. const request = client[kQueue][client[kRunningIdx]]
  22013. client[kQueue][client[kRunningIdx]++] = null
  22014. errorRequest(client, request, err)
  22015. }
  22016. client[kPendingIdx] = client[kRunningIdx]
  22017. assert(client[kRunning] === 0)
  22018. client.emit('disconnect',
  22019. client[kUrl],
  22020. [client],
  22021. err
  22022. )
  22023. resume(client)
  22024. }
  22025. const constants = __nccwpck_require__(953)
  22026. const createRedirectInterceptor = __nccwpck_require__(8861)
  22027. const EMPTY_BUF = Buffer.alloc(0)
  22028. async function lazyllhttp () {
  22029. const llhttpWasmData = process.env.JEST_WORKER_ID ? __nccwpck_require__(1145) : undefined
  22030. let mod
  22031. try {
  22032. mod = await WebAssembly.compile(Buffer.from(__nccwpck_require__(5627), 'base64'))
  22033. } catch (e) {
  22034. /* istanbul ignore next */
  22035. // We could check if the error was caused by the simd option not
  22036. // being enabled, but the occurring of this other error
  22037. // * https://github.com/emscripten-core/emscripten/issues/11495
  22038. // got me to remove that check to avoid breaking Node 12.
  22039. mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || __nccwpck_require__(1145), 'base64'))
  22040. }
  22041. return await WebAssembly.instantiate(mod, {
  22042. env: {
  22043. /* eslint-disable camelcase */
  22044. wasm_on_url: (p, at, len) => {
  22045. /* istanbul ignore next */
  22046. return 0
  22047. },
  22048. wasm_on_status: (p, at, len) => {
  22049. assert.strictEqual(currentParser.ptr, p)
  22050. const start = at - currentBufferPtr + currentBufferRef.byteOffset
  22051. return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
  22052. },
  22053. wasm_on_message_begin: (p) => {
  22054. assert.strictEqual(currentParser.ptr, p)
  22055. return currentParser.onMessageBegin() || 0
  22056. },
  22057. wasm_on_header_field: (p, at, len) => {
  22058. assert.strictEqual(currentParser.ptr, p)
  22059. const start = at - currentBufferPtr + currentBufferRef.byteOffset
  22060. return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
  22061. },
  22062. wasm_on_header_value: (p, at, len) => {
  22063. assert.strictEqual(currentParser.ptr, p)
  22064. const start = at - currentBufferPtr + currentBufferRef.byteOffset
  22065. return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
  22066. },
  22067. wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => {
  22068. assert.strictEqual(currentParser.ptr, p)
  22069. return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0
  22070. },
  22071. wasm_on_body: (p, at, len) => {
  22072. assert.strictEqual(currentParser.ptr, p)
  22073. const start = at - currentBufferPtr + currentBufferRef.byteOffset
  22074. return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
  22075. },
  22076. wasm_on_message_complete: (p) => {
  22077. assert.strictEqual(currentParser.ptr, p)
  22078. return currentParser.onMessageComplete() || 0
  22079. }
  22080. /* eslint-enable camelcase */
  22081. }
  22082. })
  22083. }
  22084. let llhttpInstance = null
  22085. let llhttpPromise = lazyllhttp()
  22086. llhttpPromise.catch()
  22087. let currentParser = null
  22088. let currentBufferRef = null
  22089. let currentBufferSize = 0
  22090. let currentBufferPtr = null
  22091. const TIMEOUT_HEADERS = 1
  22092. const TIMEOUT_BODY = 2
  22093. const TIMEOUT_IDLE = 3
  22094. class Parser {
  22095. constructor (client, socket, { exports }) {
  22096. assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0)
  22097. this.llhttp = exports
  22098. this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE)
  22099. this.client = client
  22100. this.socket = socket
  22101. this.timeout = null
  22102. this.timeoutValue = null
  22103. this.timeoutType = null
  22104. this.statusCode = null
  22105. this.statusText = ''
  22106. this.upgrade = false
  22107. this.headers = []
  22108. this.headersSize = 0
  22109. this.headersMaxSize = client[kMaxHeadersSize]
  22110. this.shouldKeepAlive = false
  22111. this.paused = false
  22112. this.resume = this.resume.bind(this)
  22113. this.bytesRead = 0
  22114. this.keepAlive = ''
  22115. this.contentLength = ''
  22116. this.connection = ''
  22117. this.maxResponseSize = client[kMaxResponseSize]
  22118. }
  22119. setTimeout (value, type) {
  22120. this.timeoutType = type
  22121. if (value !== this.timeoutValue) {
  22122. timers.clearTimeout(this.timeout)
  22123. if (value) {
  22124. this.timeout = timers.setTimeout(onParserTimeout, value, this)
  22125. // istanbul ignore else: only for jest
  22126. if (this.timeout.unref) {
  22127. this.timeout.unref()
  22128. }
  22129. } else {
  22130. this.timeout = null
  22131. }
  22132. this.timeoutValue = value
  22133. } else if (this.timeout) {
  22134. // istanbul ignore else: only for jest
  22135. if (this.timeout.refresh) {
  22136. this.timeout.refresh()
  22137. }
  22138. }
  22139. }
  22140. resume () {
  22141. if (this.socket.destroyed || !this.paused) {
  22142. return
  22143. }
  22144. assert(this.ptr != null)
  22145. assert(currentParser == null)
  22146. this.llhttp.llhttp_resume(this.ptr)
  22147. assert(this.timeoutType === TIMEOUT_BODY)
  22148. if (this.timeout) {
  22149. // istanbul ignore else: only for jest
  22150. if (this.timeout.refresh) {
  22151. this.timeout.refresh()
  22152. }
  22153. }
  22154. this.paused = false
  22155. this.execute(this.socket.read() || EMPTY_BUF) // Flush parser.
  22156. this.readMore()
  22157. }
  22158. readMore () {
  22159. while (!this.paused && this.ptr) {
  22160. const chunk = this.socket.read()
  22161. if (chunk === null) {
  22162. break
  22163. }
  22164. this.execute(chunk)
  22165. }
  22166. }
  22167. execute (data) {
  22168. assert(this.ptr != null)
  22169. assert(currentParser == null)
  22170. assert(!this.paused)
  22171. const { socket, llhttp } = this
  22172. if (data.length > currentBufferSize) {
  22173. if (currentBufferPtr) {
  22174. llhttp.free(currentBufferPtr)
  22175. }
  22176. currentBufferSize = Math.ceil(data.length / 4096) * 4096
  22177. currentBufferPtr = llhttp.malloc(currentBufferSize)
  22178. }
  22179. new Uint8Array(llhttp.memory.buffer, currentBufferPtr, currentBufferSize).set(data)
  22180. // Call `execute` on the wasm parser.
  22181. // We pass the `llhttp_parser` pointer address, the pointer address of buffer view data,
  22182. // and finally the length of bytes to parse.
  22183. // The return value is an error code or `constants.ERROR.OK`.
  22184. try {
  22185. let ret
  22186. try {
  22187. currentBufferRef = data
  22188. currentParser = this
  22189. ret = llhttp.llhttp_execute(this.ptr, currentBufferPtr, data.length)
  22190. /* eslint-disable-next-line no-useless-catch */
  22191. } catch (err) {
  22192. /* istanbul ignore next: difficult to make a test case for */
  22193. throw err
  22194. } finally {
  22195. currentParser = null
  22196. currentBufferRef = null
  22197. }
  22198. const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr
  22199. if (ret === constants.ERROR.PAUSED_UPGRADE) {
  22200. this.onUpgrade(data.slice(offset))
  22201. } else if (ret === constants.ERROR.PAUSED) {
  22202. this.paused = true
  22203. socket.unshift(data.slice(offset))
  22204. } else if (ret !== constants.ERROR.OK) {
  22205. const ptr = llhttp.llhttp_get_error_reason(this.ptr)
  22206. let message = ''
  22207. /* istanbul ignore else: difficult to make a test case for */
  22208. if (ptr) {
  22209. const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0)
  22210. message =
  22211. 'Response does not match the HTTP/1.1 protocol (' +
  22212. Buffer.from(llhttp.memory.buffer, ptr, len).toString() +
  22213. ')'
  22214. }
  22215. throw new HTTPParserError(message, constants.ERROR[ret], data.slice(offset))
  22216. }
  22217. } catch (err) {
  22218. util.destroy(socket, err)
  22219. }
  22220. }
  22221. destroy () {
  22222. assert(this.ptr != null)
  22223. assert(currentParser == null)
  22224. this.llhttp.llhttp_free(this.ptr)
  22225. this.ptr = null
  22226. timers.clearTimeout(this.timeout)
  22227. this.timeout = null
  22228. this.timeoutValue = null
  22229. this.timeoutType = null
  22230. this.paused = false
  22231. }
  22232. onStatus (buf) {
  22233. this.statusText = buf.toString()
  22234. }
  22235. onMessageBegin () {
  22236. const { socket, client } = this
  22237. /* istanbul ignore next: difficult to make a test case for */
  22238. if (socket.destroyed) {
  22239. return -1
  22240. }
  22241. const request = client[kQueue][client[kRunningIdx]]
  22242. if (!request) {
  22243. return -1
  22244. }
  22245. }
  22246. onHeaderField (buf) {
  22247. const len = this.headers.length
  22248. if ((len & 1) === 0) {
  22249. this.headers.push(buf)
  22250. } else {
  22251. this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])
  22252. }
  22253. this.trackHeader(buf.length)
  22254. }
  22255. onHeaderValue (buf) {
  22256. let len = this.headers.length
  22257. if ((len & 1) === 1) {
  22258. this.headers.push(buf)
  22259. len += 1
  22260. } else {
  22261. this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])
  22262. }
  22263. const key = this.headers[len - 2]
  22264. if (key.length === 10 && key.toString().toLowerCase() === 'keep-alive') {
  22265. this.keepAlive += buf.toString()
  22266. } else if (key.length === 10 && key.toString().toLowerCase() === 'connection') {
  22267. this.connection += buf.toString()
  22268. } else if (key.length === 14 && key.toString().toLowerCase() === 'content-length') {
  22269. this.contentLength += buf.toString()
  22270. }
  22271. this.trackHeader(buf.length)
  22272. }
  22273. trackHeader (len) {
  22274. this.headersSize += len
  22275. if (this.headersSize >= this.headersMaxSize) {
  22276. util.destroy(this.socket, new HeadersOverflowError())
  22277. }
  22278. }
  22279. onUpgrade (head) {
  22280. const { upgrade, client, socket, headers, statusCode } = this
  22281. assert(upgrade)
  22282. const request = client[kQueue][client[kRunningIdx]]
  22283. assert(request)
  22284. assert(!socket.destroyed)
  22285. assert(socket === client[kSocket])
  22286. assert(!this.paused)
  22287. assert(request.upgrade || request.method === 'CONNECT')
  22288. this.statusCode = null
  22289. this.statusText = ''
  22290. this.shouldKeepAlive = null
  22291. assert(this.headers.length % 2 === 0)
  22292. this.headers = []
  22293. this.headersSize = 0
  22294. socket.unshift(head)
  22295. socket[kParser].destroy()
  22296. socket[kParser] = null
  22297. socket[kClient] = null
  22298. socket[kError] = null
  22299. socket
  22300. .removeListener('error', onSocketError)
  22301. .removeListener('readable', onSocketReadable)
  22302. .removeListener('end', onSocketEnd)
  22303. .removeListener('close', onSocketClose)
  22304. client[kSocket] = null
  22305. client[kQueue][client[kRunningIdx]++] = null
  22306. client.emit('disconnect', client[kUrl], [client], new InformationalError('upgrade'))
  22307. try {
  22308. request.onUpgrade(statusCode, headers, socket)
  22309. } catch (err) {
  22310. util.destroy(socket, err)
  22311. }
  22312. resume(client)
  22313. }
  22314. onHeadersComplete (statusCode, upgrade, shouldKeepAlive) {
  22315. const { client, socket, headers, statusText } = this
  22316. /* istanbul ignore next: difficult to make a test case for */
  22317. if (socket.destroyed) {
  22318. return -1
  22319. }
  22320. const request = client[kQueue][client[kRunningIdx]]
  22321. /* istanbul ignore next: difficult to make a test case for */
  22322. if (!request) {
  22323. return -1
  22324. }
  22325. assert(!this.upgrade)
  22326. assert(this.statusCode < 200)
  22327. if (statusCode === 100) {
  22328. util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket)))
  22329. return -1
  22330. }
  22331. /* this can only happen if server is misbehaving */
  22332. if (upgrade && !request.upgrade) {
  22333. util.destroy(socket, new SocketError('bad upgrade', util.getSocketInfo(socket)))
  22334. return -1
  22335. }
  22336. assert.strictEqual(this.timeoutType, TIMEOUT_HEADERS)
  22337. this.statusCode = statusCode
  22338. this.shouldKeepAlive = (
  22339. shouldKeepAlive ||
  22340. // Override llhttp value which does not allow keepAlive for HEAD.
  22341. (request.method === 'HEAD' && !socket[kReset] && this.connection.toLowerCase() === 'keep-alive')
  22342. )
  22343. if (this.statusCode >= 200) {
  22344. const bodyTimeout = request.bodyTimeout != null
  22345. ? request.bodyTimeout
  22346. : client[kBodyTimeout]
  22347. this.setTimeout(bodyTimeout, TIMEOUT_BODY)
  22348. } else if (this.timeout) {
  22349. // istanbul ignore else: only for jest
  22350. if (this.timeout.refresh) {
  22351. this.timeout.refresh()
  22352. }
  22353. }
  22354. if (request.method === 'CONNECT') {
  22355. assert(client[kRunning] === 1)
  22356. this.upgrade = true
  22357. return 2
  22358. }
  22359. if (upgrade) {
  22360. assert(client[kRunning] === 1)
  22361. this.upgrade = true
  22362. return 2
  22363. }
  22364. assert(this.headers.length % 2 === 0)
  22365. this.headers = []
  22366. this.headersSize = 0
  22367. if (this.shouldKeepAlive && client[kPipelining]) {
  22368. const keepAliveTimeout = this.keepAlive ? util.parseKeepAliveTimeout(this.keepAlive) : null
  22369. if (keepAliveTimeout != null) {
  22370. const timeout = Math.min(
  22371. keepAliveTimeout - client[kKeepAliveTimeoutThreshold],
  22372. client[kKeepAliveMaxTimeout]
  22373. )
  22374. if (timeout <= 0) {
  22375. socket[kReset] = true
  22376. } else {
  22377. client[kKeepAliveTimeoutValue] = timeout
  22378. }
  22379. } else {
  22380. client[kKeepAliveTimeoutValue] = client[kKeepAliveDefaultTimeout]
  22381. }
  22382. } else {
  22383. // Stop more requests from being dispatched.
  22384. socket[kReset] = true
  22385. }
  22386. let pause
  22387. try {
  22388. pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false
  22389. } catch (err) {
  22390. util.destroy(socket, err)
  22391. return -1
  22392. }
  22393. if (request.method === 'HEAD') {
  22394. return 1
  22395. }
  22396. if (statusCode < 200) {
  22397. return 1
  22398. }
  22399. if (socket[kBlocking]) {
  22400. socket[kBlocking] = false
  22401. resume(client)
  22402. }
  22403. return pause ? constants.ERROR.PAUSED : 0
  22404. }
  22405. onBody (buf) {
  22406. const { client, socket, statusCode, maxResponseSize } = this
  22407. if (socket.destroyed) {
  22408. return -1
  22409. }
  22410. const request = client[kQueue][client[kRunningIdx]]
  22411. assert(request)
  22412. assert.strictEqual(this.timeoutType, TIMEOUT_BODY)
  22413. if (this.timeout) {
  22414. // istanbul ignore else: only for jest
  22415. if (this.timeout.refresh) {
  22416. this.timeout.refresh()
  22417. }
  22418. }
  22419. assert(statusCode >= 200)
  22420. if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {
  22421. util.destroy(socket, new ResponseExceededMaxSizeError())
  22422. return -1
  22423. }
  22424. this.bytesRead += buf.length
  22425. try {
  22426. if (request.onData(buf) === false) {
  22427. return constants.ERROR.PAUSED
  22428. }
  22429. } catch (err) {
  22430. util.destroy(socket, err)
  22431. return -1
  22432. }
  22433. }
  22434. onMessageComplete () {
  22435. const { client, socket, statusCode, upgrade, headers, contentLength, bytesRead, shouldKeepAlive } = this
  22436. if (socket.destroyed && (!statusCode || shouldKeepAlive)) {
  22437. return -1
  22438. }
  22439. if (upgrade) {
  22440. return
  22441. }
  22442. const request = client[kQueue][client[kRunningIdx]]
  22443. assert(request)
  22444. assert(statusCode >= 100)
  22445. this.statusCode = null
  22446. this.statusText = ''
  22447. this.bytesRead = 0
  22448. this.contentLength = ''
  22449. this.keepAlive = ''
  22450. this.connection = ''
  22451. assert(this.headers.length % 2 === 0)
  22452. this.headers = []
  22453. this.headersSize = 0
  22454. if (statusCode < 200) {
  22455. return
  22456. }
  22457. /* istanbul ignore next: should be handled by llhttp? */
  22458. if (request.method !== 'HEAD' && contentLength && bytesRead !== parseInt(contentLength, 10)) {
  22459. util.destroy(socket, new ResponseContentLengthMismatchError())
  22460. return -1
  22461. }
  22462. try {
  22463. request.onComplete(headers)
  22464. } catch (err) {
  22465. errorRequest(client, request, err)
  22466. }
  22467. client[kQueue][client[kRunningIdx]++] = null
  22468. if (socket[kWriting]) {
  22469. assert.strictEqual(client[kRunning], 0)
  22470. // Response completed before request.
  22471. util.destroy(socket, new InformationalError('reset'))
  22472. return constants.ERROR.PAUSED
  22473. } else if (!shouldKeepAlive) {
  22474. util.destroy(socket, new InformationalError('reset'))
  22475. return constants.ERROR.PAUSED
  22476. } else if (socket[kReset] && client[kRunning] === 0) {
  22477. // Destroy socket once all requests have completed.
  22478. // The request at the tail of the pipeline is the one
  22479. // that requested reset and no further requests should
  22480. // have been queued since then.
  22481. util.destroy(socket, new InformationalError('reset'))
  22482. return constants.ERROR.PAUSED
  22483. } else if (client[kPipelining] === 1) {
  22484. // We must wait a full event loop cycle to reuse this socket to make sure
  22485. // that non-spec compliant servers are not closing the connection even if they
  22486. // said they won't.
  22487. setImmediate(resume, client)
  22488. } else {
  22489. resume(client)
  22490. }
  22491. }
  22492. }
  22493. function onParserTimeout (parser) {
  22494. const { socket, timeoutType, client } = parser
  22495. /* istanbul ignore else */
  22496. if (timeoutType === TIMEOUT_HEADERS) {
  22497. if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) {
  22498. assert(!parser.paused, 'cannot be paused while waiting for headers')
  22499. util.destroy(socket, new HeadersTimeoutError())
  22500. }
  22501. } else if (timeoutType === TIMEOUT_BODY) {
  22502. if (!parser.paused) {
  22503. util.destroy(socket, new BodyTimeoutError())
  22504. }
  22505. } else if (timeoutType === TIMEOUT_IDLE) {
  22506. assert(client[kRunning] === 0 && client[kKeepAliveTimeoutValue])
  22507. util.destroy(socket, new InformationalError('socket idle timeout'))
  22508. }
  22509. }
  22510. function onSocketReadable () {
  22511. const { [kParser]: parser } = this
  22512. parser.readMore()
  22513. }
  22514. function onSocketError (err) {
  22515. const { [kClient]: client, [kParser]: parser } = this
  22516. assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')
  22517. if (client[kHTTPConnVersion] !== 'h2') {
  22518. // On Mac OS, we get an ECONNRESET even if there is a full body to be forwarded
  22519. // to the user.
  22520. if (err.code === 'ECONNRESET' && parser.statusCode && !parser.shouldKeepAlive) {
  22521. // We treat all incoming data so for as a valid response.
  22522. parser.onMessageComplete()
  22523. return
  22524. }
  22525. }
  22526. this[kError] = err
  22527. onError(this[kClient], err)
  22528. }
  22529. function onError (client, err) {
  22530. if (
  22531. client[kRunning] === 0 &&
  22532. err.code !== 'UND_ERR_INFO' &&
  22533. err.code !== 'UND_ERR_SOCKET'
  22534. ) {
  22535. // Error is not caused by running request and not a recoverable
  22536. // socket error.
  22537. assert(client[kPendingIdx] === client[kRunningIdx])
  22538. const requests = client[kQueue].splice(client[kRunningIdx])
  22539. for (let i = 0; i < requests.length; i++) {
  22540. const request = requests[i]
  22541. errorRequest(client, request, err)
  22542. }
  22543. assert(client[kSize] === 0)
  22544. }
  22545. }
  22546. function onSocketEnd () {
  22547. const { [kParser]: parser, [kClient]: client } = this
  22548. if (client[kHTTPConnVersion] !== 'h2') {
  22549. if (parser.statusCode && !parser.shouldKeepAlive) {
  22550. // We treat all incoming data so far as a valid response.
  22551. parser.onMessageComplete()
  22552. return
  22553. }
  22554. }
  22555. util.destroy(this, new SocketError('other side closed', util.getSocketInfo(this)))
  22556. }
  22557. function onSocketClose () {
  22558. const { [kClient]: client, [kParser]: parser } = this
  22559. if (client[kHTTPConnVersion] === 'h1' && parser) {
  22560. if (!this[kError] && parser.statusCode && !parser.shouldKeepAlive) {
  22561. // We treat all incoming data so far as a valid response.
  22562. parser.onMessageComplete()
  22563. }
  22564. this[kParser].destroy()
  22565. this[kParser] = null
  22566. }
  22567. const err = this[kError] || new SocketError('closed', util.getSocketInfo(this))
  22568. client[kSocket] = null
  22569. if (client.destroyed) {
  22570. assert(client[kPending] === 0)
  22571. // Fail entire queue.
  22572. const requests = client[kQueue].splice(client[kRunningIdx])
  22573. for (let i = 0; i < requests.length; i++) {
  22574. const request = requests[i]
  22575. errorRequest(client, request, err)
  22576. }
  22577. } else if (client[kRunning] > 0 && err.code !== 'UND_ERR_INFO') {
  22578. // Fail head of pipeline.
  22579. const request = client[kQueue][client[kRunningIdx]]
  22580. client[kQueue][client[kRunningIdx]++] = null
  22581. errorRequest(client, request, err)
  22582. }
  22583. client[kPendingIdx] = client[kRunningIdx]
  22584. assert(client[kRunning] === 0)
  22585. client.emit('disconnect', client[kUrl], [client], err)
  22586. resume(client)
  22587. }
  22588. async function connect (client) {
  22589. assert(!client[kConnecting])
  22590. assert(!client[kSocket])
  22591. let { host, hostname, protocol, port } = client[kUrl]
  22592. // Resolve ipv6
  22593. if (hostname[0] === '[') {
  22594. const idx = hostname.indexOf(']')
  22595. assert(idx !== -1)
  22596. const ip = hostname.substr(1, idx - 1)
  22597. assert(net.isIP(ip))
  22598. hostname = ip
  22599. }
  22600. client[kConnecting] = true
  22601. if (channels.beforeConnect.hasSubscribers) {
  22602. channels.beforeConnect.publish({
  22603. connectParams: {
  22604. host,
  22605. hostname,
  22606. protocol,
  22607. port,
  22608. servername: client[kServerName],
  22609. localAddress: client[kLocalAddress]
  22610. },
  22611. connector: client[kConnector]
  22612. })
  22613. }
  22614. try {
  22615. const socket = await new Promise((resolve, reject) => {
  22616. client[kConnector]({
  22617. host,
  22618. hostname,
  22619. protocol,
  22620. port,
  22621. servername: client[kServerName],
  22622. localAddress: client[kLocalAddress]
  22623. }, (err, socket) => {
  22624. if (err) {
  22625. reject(err)
  22626. } else {
  22627. resolve(socket)
  22628. }
  22629. })
  22630. })
  22631. if (client.destroyed) {
  22632. util.destroy(socket.on('error', () => {}), new ClientDestroyedError())
  22633. return
  22634. }
  22635. client[kConnecting] = false
  22636. assert(socket)
  22637. const isH2 = socket.alpnProtocol === 'h2'
  22638. if (isH2) {
  22639. if (!h2ExperimentalWarned) {
  22640. h2ExperimentalWarned = true
  22641. process.emitWarning('H2 support is experimental, expect them to change at any time.', {
  22642. code: 'UNDICI-H2'
  22643. })
  22644. }
  22645. const session = http2.connect(client[kUrl], {
  22646. createConnection: () => socket,
  22647. peerMaxConcurrentStreams: client[kHTTP2SessionState].maxConcurrentStreams
  22648. })
  22649. client[kHTTPConnVersion] = 'h2'
  22650. session[kClient] = client
  22651. session[kSocket] = socket
  22652. session.on('error', onHttp2SessionError)
  22653. session.on('frameError', onHttp2FrameError)
  22654. session.on('end', onHttp2SessionEnd)
  22655. session.on('goaway', onHTTP2GoAway)
  22656. session.on('close', onSocketClose)
  22657. session.unref()
  22658. client[kHTTP2Session] = session
  22659. socket[kHTTP2Session] = session
  22660. } else {
  22661. if (!llhttpInstance) {
  22662. llhttpInstance = await llhttpPromise
  22663. llhttpPromise = null
  22664. }
  22665. socket[kNoRef] = false
  22666. socket[kWriting] = false
  22667. socket[kReset] = false
  22668. socket[kBlocking] = false
  22669. socket[kParser] = new Parser(client, socket, llhttpInstance)
  22670. }
  22671. socket[kCounter] = 0
  22672. socket[kMaxRequests] = client[kMaxRequests]
  22673. socket[kClient] = client
  22674. socket[kError] = null
  22675. socket
  22676. .on('error', onSocketError)
  22677. .on('readable', onSocketReadable)
  22678. .on('end', onSocketEnd)
  22679. .on('close', onSocketClose)
  22680. client[kSocket] = socket
  22681. if (channels.connected.hasSubscribers) {
  22682. channels.connected.publish({
  22683. connectParams: {
  22684. host,
  22685. hostname,
  22686. protocol,
  22687. port,
  22688. servername: client[kServerName],
  22689. localAddress: client[kLocalAddress]
  22690. },
  22691. connector: client[kConnector],
  22692. socket
  22693. })
  22694. }
  22695. client.emit('connect', client[kUrl], [client])
  22696. } catch (err) {
  22697. if (client.destroyed) {
  22698. return
  22699. }
  22700. client[kConnecting] = false
  22701. if (channels.connectError.hasSubscribers) {
  22702. channels.connectError.publish({
  22703. connectParams: {
  22704. host,
  22705. hostname,
  22706. protocol,
  22707. port,
  22708. servername: client[kServerName],
  22709. localAddress: client[kLocalAddress]
  22710. },
  22711. connector: client[kConnector],
  22712. error: err
  22713. })
  22714. }
  22715. if (err.code === 'ERR_TLS_CERT_ALTNAME_INVALID') {
  22716. assert(client[kRunning] === 0)
  22717. while (client[kPending] > 0 && client[kQueue][client[kPendingIdx]].servername === client[kServerName]) {
  22718. const request = client[kQueue][client[kPendingIdx]++]
  22719. errorRequest(client, request, err)
  22720. }
  22721. } else {
  22722. onError(client, err)
  22723. }
  22724. client.emit('connectionError', client[kUrl], [client], err)
  22725. }
  22726. resume(client)
  22727. }
  22728. function emitDrain (client) {
  22729. client[kNeedDrain] = 0
  22730. client.emit('drain', client[kUrl], [client])
  22731. }
  22732. function resume (client, sync) {
  22733. if (client[kResuming] === 2) {
  22734. return
  22735. }
  22736. client[kResuming] = 2
  22737. _resume(client, sync)
  22738. client[kResuming] = 0
  22739. if (client[kRunningIdx] > 256) {
  22740. client[kQueue].splice(0, client[kRunningIdx])
  22741. client[kPendingIdx] -= client[kRunningIdx]
  22742. client[kRunningIdx] = 0
  22743. }
  22744. }
  22745. function _resume (client, sync) {
  22746. while (true) {
  22747. if (client.destroyed) {
  22748. assert(client[kPending] === 0)
  22749. return
  22750. }
  22751. if (client[kClosedResolve] && !client[kSize]) {
  22752. client[kClosedResolve]()
  22753. client[kClosedResolve] = null
  22754. return
  22755. }
  22756. const socket = client[kSocket]
  22757. if (socket && !socket.destroyed && socket.alpnProtocol !== 'h2') {
  22758. if (client[kSize] === 0) {
  22759. if (!socket[kNoRef] && socket.unref) {
  22760. socket.unref()
  22761. socket[kNoRef] = true
  22762. }
  22763. } else if (socket[kNoRef] && socket.ref) {
  22764. socket.ref()
  22765. socket[kNoRef] = false
  22766. }
  22767. if (client[kSize] === 0) {
  22768. if (socket[kParser].timeoutType !== TIMEOUT_IDLE) {
  22769. socket[kParser].setTimeout(client[kKeepAliveTimeoutValue], TIMEOUT_IDLE)
  22770. }
  22771. } else if (client[kRunning] > 0 && socket[kParser].statusCode < 200) {
  22772. if (socket[kParser].timeoutType !== TIMEOUT_HEADERS) {
  22773. const request = client[kQueue][client[kRunningIdx]]
  22774. const headersTimeout = request.headersTimeout != null
  22775. ? request.headersTimeout
  22776. : client[kHeadersTimeout]
  22777. socket[kParser].setTimeout(headersTimeout, TIMEOUT_HEADERS)
  22778. }
  22779. }
  22780. }
  22781. if (client[kBusy]) {
  22782. client[kNeedDrain] = 2
  22783. } else if (client[kNeedDrain] === 2) {
  22784. if (sync) {
  22785. client[kNeedDrain] = 1
  22786. process.nextTick(emitDrain, client)
  22787. } else {
  22788. emitDrain(client)
  22789. }
  22790. continue
  22791. }
  22792. if (client[kPending] === 0) {
  22793. return
  22794. }
  22795. if (client[kRunning] >= (client[kPipelining] || 1)) {
  22796. return
  22797. }
  22798. const request = client[kQueue][client[kPendingIdx]]
  22799. if (client[kUrl].protocol === 'https:' && client[kServerName] !== request.servername) {
  22800. if (client[kRunning] > 0) {
  22801. return
  22802. }
  22803. client[kServerName] = request.servername
  22804. if (socket && socket.servername !== request.servername) {
  22805. util.destroy(socket, new InformationalError('servername changed'))
  22806. return
  22807. }
  22808. }
  22809. if (client[kConnecting]) {
  22810. return
  22811. }
  22812. if (!socket && !client[kHTTP2Session]) {
  22813. connect(client)
  22814. return
  22815. }
  22816. if (socket.destroyed || socket[kWriting] || socket[kReset] || socket[kBlocking]) {
  22817. return
  22818. }
  22819. if (client[kRunning] > 0 && !request.idempotent) {
  22820. // Non-idempotent request cannot be retried.
  22821. // Ensure that no other requests are inflight and
  22822. // could cause failure.
  22823. return
  22824. }
  22825. if (client[kRunning] > 0 && (request.upgrade || request.method === 'CONNECT')) {
  22826. // Don't dispatch an upgrade until all preceding requests have completed.
  22827. // A misbehaving server might upgrade the connection before all pipelined
  22828. // request has completed.
  22829. return
  22830. }
  22831. if (util.isStream(request.body) && util.bodyLength(request.body) === 0) {
  22832. request.body
  22833. .on('data', /* istanbul ignore next */ function () {
  22834. /* istanbul ignore next */
  22835. assert(false)
  22836. })
  22837. .on('error', function (err) {
  22838. errorRequest(client, request, err)
  22839. })
  22840. .on('end', function () {
  22841. util.destroy(this)
  22842. })
  22843. request.body = null
  22844. }
  22845. if (client[kRunning] > 0 &&
  22846. (util.isStream(request.body) || util.isAsyncIterable(request.body))) {
  22847. // Request with stream or iterator body can error while other requests
  22848. // are inflight and indirectly error those as well.
  22849. // Ensure this doesn't happen by waiting for inflight
  22850. // to complete before dispatching.
  22851. // Request with stream or iterator body cannot be retried.
  22852. // Ensure that no other requests are inflight and
  22853. // could cause failure.
  22854. return
  22855. }
  22856. if (!request.aborted && write(client, request)) {
  22857. client[kPendingIdx]++
  22858. } else {
  22859. client[kQueue].splice(client[kPendingIdx], 1)
  22860. }
  22861. }
  22862. }
  22863. function write (client, request) {
  22864. if (client[kHTTPConnVersion] === 'h2') {
  22865. writeH2(client, client[kHTTP2Session], request)
  22866. return
  22867. }
  22868. const { body, method, path, host, upgrade, headers, blocking, reset } = request
  22869. // https://tools.ietf.org/html/rfc7231#section-4.3.1
  22870. // https://tools.ietf.org/html/rfc7231#section-4.3.2
  22871. // https://tools.ietf.org/html/rfc7231#section-4.3.5
  22872. // Sending a payload body on a request that does not
  22873. // expect it can cause undefined behavior on some
  22874. // servers and corrupt connection state. Do not
  22875. // re-use the connection for further requests.
  22876. const expectsPayload = (
  22877. method === 'PUT' ||
  22878. method === 'POST' ||
  22879. method === 'PATCH'
  22880. )
  22881. if (body && typeof body.read === 'function') {
  22882. // Try to read EOF in order to get length.
  22883. body.read(0)
  22884. }
  22885. let contentLength = util.bodyLength(body)
  22886. if (contentLength === null) {
  22887. contentLength = request.contentLength
  22888. }
  22889. if (contentLength === 0 && !expectsPayload) {
  22890. // https://tools.ietf.org/html/rfc7230#section-3.3.2
  22891. // A user agent SHOULD NOT send a Content-Length header field when
  22892. // the request message does not contain a payload body and the method
  22893. // semantics do not anticipate such a body.
  22894. contentLength = null
  22895. }
  22896. if (request.contentLength !== null && request.contentLength !== contentLength) {
  22897. if (client[kStrictContentLength]) {
  22898. errorRequest(client, request, new RequestContentLengthMismatchError())
  22899. return false
  22900. }
  22901. process.emitWarning(new RequestContentLengthMismatchError())
  22902. }
  22903. const socket = client[kSocket]
  22904. try {
  22905. request.onConnect((err) => {
  22906. if (request.aborted || request.completed) {
  22907. return
  22908. }
  22909. errorRequest(client, request, err || new RequestAbortedError())
  22910. util.destroy(socket, new InformationalError('aborted'))
  22911. })
  22912. } catch (err) {
  22913. errorRequest(client, request, err)
  22914. }
  22915. if (request.aborted) {
  22916. return false
  22917. }
  22918. if (method === 'HEAD') {
  22919. // https://github.com/mcollina/undici/issues/258
  22920. // Close after a HEAD request to interop with misbehaving servers
  22921. // that may send a body in the response.
  22922. socket[kReset] = true
  22923. }
  22924. if (upgrade || method === 'CONNECT') {
  22925. // On CONNECT or upgrade, block pipeline from dispatching further
  22926. // requests on this connection.
  22927. socket[kReset] = true
  22928. }
  22929. if (reset != null) {
  22930. socket[kReset] = reset
  22931. }
  22932. if (client[kMaxRequests] && socket[kCounter]++ >= client[kMaxRequests]) {
  22933. socket[kReset] = true
  22934. }
  22935. if (blocking) {
  22936. socket[kBlocking] = true
  22937. }
  22938. let header = `${method} ${path} HTTP/1.1\r\n`
  22939. if (typeof host === 'string') {
  22940. header += `host: ${host}\r\n`
  22941. } else {
  22942. header += client[kHostHeader]
  22943. }
  22944. if (upgrade) {
  22945. header += `connection: upgrade\r\nupgrade: ${upgrade}\r\n`
  22946. } else if (client[kPipelining] && !socket[kReset]) {
  22947. header += 'connection: keep-alive\r\n'
  22948. } else {
  22949. header += 'connection: close\r\n'
  22950. }
  22951. if (headers) {
  22952. header += headers
  22953. }
  22954. if (channels.sendHeaders.hasSubscribers) {
  22955. channels.sendHeaders.publish({ request, headers: header, socket })
  22956. }
  22957. /* istanbul ignore else: assertion */
  22958. if (!body) {
  22959. if (contentLength === 0) {
  22960. socket.write(`${header}content-length: 0\r\n\r\n`, 'latin1')
  22961. } else {
  22962. assert(contentLength === null, 'no body must not have content length')
  22963. socket.write(`${header}\r\n`, 'latin1')
  22964. }
  22965. request.onRequestSent()
  22966. } else if (util.isBuffer(body)) {
  22967. assert(contentLength === body.byteLength, 'buffer body must have content length')
  22968. socket.cork()
  22969. socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1')
  22970. socket.write(body)
  22971. socket.uncork()
  22972. request.onBodySent(body)
  22973. request.onRequestSent()
  22974. if (!expectsPayload) {
  22975. socket[kReset] = true
  22976. }
  22977. } else if (util.isBlobLike(body)) {
  22978. if (typeof body.stream === 'function') {
  22979. writeIterable({ body: body.stream(), client, request, socket, contentLength, header, expectsPayload })
  22980. } else {
  22981. writeBlob({ body, client, request, socket, contentLength, header, expectsPayload })
  22982. }
  22983. } else if (util.isStream(body)) {
  22984. writeStream({ body, client, request, socket, contentLength, header, expectsPayload })
  22985. } else if (util.isIterable(body)) {
  22986. writeIterable({ body, client, request, socket, contentLength, header, expectsPayload })
  22987. } else {
  22988. assert(false)
  22989. }
  22990. return true
  22991. }
  22992. function writeH2 (client, session, request) {
  22993. const { body, method, path, host, upgrade, expectContinue, signal, headers: reqHeaders } = request
  22994. let headers
  22995. if (typeof reqHeaders === 'string') headers = Request[kHTTP2CopyHeaders](reqHeaders.trim())
  22996. else headers = reqHeaders
  22997. if (upgrade) {
  22998. errorRequest(client, request, new Error('Upgrade not supported for H2'))
  22999. return false
  23000. }
  23001. try {
  23002. // TODO(HTTP/2): Should we call onConnect immediately or on stream ready event?
  23003. request.onConnect((err) => {
  23004. if (request.aborted || request.completed) {
  23005. return
  23006. }
  23007. errorRequest(client, request, err || new RequestAbortedError())
  23008. })
  23009. } catch (err) {
  23010. errorRequest(client, request, err)
  23011. }
  23012. if (request.aborted) {
  23013. return false
  23014. }
  23015. let stream
  23016. const h2State = client[kHTTP2SessionState]
  23017. headers[HTTP2_HEADER_AUTHORITY] = host || client[kHost]
  23018. headers[HTTP2_HEADER_PATH] = path
  23019. if (method === 'CONNECT') {
  23020. session.ref()
  23021. // we are already connected, streams are pending, first request
  23022. // will create a new stream. We trigger a request to create the stream and wait until
  23023. // `ready` event is triggered
  23024. // We disabled endStream to allow the user to write to the stream
  23025. stream = session.request(headers, { endStream: false, signal })
  23026. if (stream.id && !stream.pending) {
  23027. request.onUpgrade(null, null, stream)
  23028. ++h2State.openStreams
  23029. } else {
  23030. stream.once('ready', () => {
  23031. request.onUpgrade(null, null, stream)
  23032. ++h2State.openStreams
  23033. })
  23034. }
  23035. stream.once('close', () => {
  23036. h2State.openStreams -= 1
  23037. // TODO(HTTP/2): unref only if current streams count is 0
  23038. if (h2State.openStreams === 0) session.unref()
  23039. })
  23040. return true
  23041. } else {
  23042. headers[HTTP2_HEADER_METHOD] = method
  23043. }
  23044. // https://tools.ietf.org/html/rfc7231#section-4.3.1
  23045. // https://tools.ietf.org/html/rfc7231#section-4.3.2
  23046. // https://tools.ietf.org/html/rfc7231#section-4.3.5
  23047. // Sending a payload body on a request that does not
  23048. // expect it can cause undefined behavior on some
  23049. // servers and corrupt connection state. Do not
  23050. // re-use the connection for further requests.
  23051. const expectsPayload = (
  23052. method === 'PUT' ||
  23053. method === 'POST' ||
  23054. method === 'PATCH'
  23055. )
  23056. if (body && typeof body.read === 'function') {
  23057. // Try to read EOF in order to get length.
  23058. body.read(0)
  23059. }
  23060. let contentLength = util.bodyLength(body)
  23061. if (contentLength == null) {
  23062. contentLength = request.contentLength
  23063. }
  23064. if (contentLength === 0 || !expectsPayload) {
  23065. // https://tools.ietf.org/html/rfc7230#section-3.3.2
  23066. // A user agent SHOULD NOT send a Content-Length header field when
  23067. // the request message does not contain a payload body and the method
  23068. // semantics do not anticipate such a body.
  23069. contentLength = null
  23070. }
  23071. if (request.contentLength != null && request.contentLength !== contentLength) {
  23072. if (client[kStrictContentLength]) {
  23073. errorRequest(client, request, new RequestContentLengthMismatchError())
  23074. return false
  23075. }
  23076. process.emitWarning(new RequestContentLengthMismatchError())
  23077. }
  23078. if (contentLength != null) {
  23079. assert(body, 'no body must not have content length')
  23080. headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`
  23081. }
  23082. session.ref()
  23083. const shouldEndStream = method === 'GET' || method === 'HEAD'
  23084. if (expectContinue) {
  23085. headers[HTTP2_HEADER_EXPECT] = '100-continue'
  23086. /**
  23087. * @type {import('node:http2').ClientHttp2Stream}
  23088. */
  23089. stream = session.request(headers, { endStream: shouldEndStream, signal })
  23090. stream.once('continue', writeBodyH2)
  23091. } else {
  23092. /** @type {import('node:http2').ClientHttp2Stream} */
  23093. stream = session.request(headers, {
  23094. endStream: shouldEndStream,
  23095. signal
  23096. })
  23097. writeBodyH2()
  23098. }
  23099. // Increment counter as we have new several streams open
  23100. ++h2State.openStreams
  23101. stream.once('response', headers => {
  23102. if (request.onHeaders(Number(headers[HTTP2_HEADER_STATUS]), headers, stream.resume.bind(stream), '') === false) {
  23103. stream.pause()
  23104. }
  23105. })
  23106. stream.once('end', () => {
  23107. request.onComplete([])
  23108. })
  23109. stream.on('data', (chunk) => {
  23110. if (request.onData(chunk) === false) stream.pause()
  23111. })
  23112. stream.once('close', () => {
  23113. h2State.openStreams -= 1
  23114. // TODO(HTTP/2): unref only if current streams count is 0
  23115. if (h2State.openStreams === 0) session.unref()
  23116. })
  23117. stream.once('error', function (err) {
  23118. if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) {
  23119. h2State.streams -= 1
  23120. util.destroy(stream, err)
  23121. }
  23122. })
  23123. stream.once('frameError', (type, code) => {
  23124. const err = new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`)
  23125. errorRequest(client, request, err)
  23126. if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) {
  23127. h2State.streams -= 1
  23128. util.destroy(stream, err)
  23129. }
  23130. })
  23131. // stream.on('aborted', () => {
  23132. // // TODO(HTTP/2): Support aborted
  23133. // })
  23134. // stream.on('timeout', () => {
  23135. // // TODO(HTTP/2): Support timeout
  23136. // })
  23137. // stream.on('push', headers => {
  23138. // // TODO(HTTP/2): Suppor push
  23139. // })
  23140. // stream.on('trailers', headers => {
  23141. // // TODO(HTTP/2): Support trailers
  23142. // })
  23143. return true
  23144. function writeBodyH2 () {
  23145. /* istanbul ignore else: assertion */
  23146. if (!body) {
  23147. request.onRequestSent()
  23148. } else if (util.isBuffer(body)) {
  23149. assert(contentLength === body.byteLength, 'buffer body must have content length')
  23150. stream.cork()
  23151. stream.write(body)
  23152. stream.uncork()
  23153. request.onBodySent(body)
  23154. request.onRequestSent()
  23155. } else if (util.isBlobLike(body)) {
  23156. if (typeof body.stream === 'function') {
  23157. writeIterable({
  23158. client,
  23159. request,
  23160. contentLength,
  23161. h2stream: stream,
  23162. expectsPayload,
  23163. body: body.stream(),
  23164. socket: client[kSocket],
  23165. header: ''
  23166. })
  23167. } else {
  23168. writeBlob({
  23169. body,
  23170. client,
  23171. request,
  23172. contentLength,
  23173. expectsPayload,
  23174. h2stream: stream,
  23175. header: '',
  23176. socket: client[kSocket]
  23177. })
  23178. }
  23179. } else if (util.isStream(body)) {
  23180. writeStream({
  23181. body,
  23182. client,
  23183. request,
  23184. contentLength,
  23185. expectsPayload,
  23186. socket: client[kSocket],
  23187. h2stream: stream,
  23188. header: ''
  23189. })
  23190. } else if (util.isIterable(body)) {
  23191. writeIterable({
  23192. body,
  23193. client,
  23194. request,
  23195. contentLength,
  23196. expectsPayload,
  23197. header: '',
  23198. h2stream: stream,
  23199. socket: client[kSocket]
  23200. })
  23201. } else {
  23202. assert(false)
  23203. }
  23204. }
  23205. }
  23206. function writeStream ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
  23207. assert(contentLength !== 0 || client[kRunning] === 0, 'stream body cannot be pipelined')
  23208. if (client[kHTTPConnVersion] === 'h2') {
  23209. // For HTTP/2, is enough to pipe the stream
  23210. const pipe = pipeline(
  23211. body,
  23212. h2stream,
  23213. (err) => {
  23214. if (err) {
  23215. util.destroy(body, err)
  23216. util.destroy(h2stream, err)
  23217. } else {
  23218. request.onRequestSent()
  23219. }
  23220. }
  23221. )
  23222. pipe.on('data', onPipeData)
  23223. pipe.once('end', () => {
  23224. pipe.removeListener('data', onPipeData)
  23225. util.destroy(pipe)
  23226. })
  23227. function onPipeData (chunk) {
  23228. request.onBodySent(chunk)
  23229. }
  23230. return
  23231. }
  23232. let finished = false
  23233. const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header })
  23234. const onData = function (chunk) {
  23235. if (finished) {
  23236. return
  23237. }
  23238. try {
  23239. if (!writer.write(chunk) && this.pause) {
  23240. this.pause()
  23241. }
  23242. } catch (err) {
  23243. util.destroy(this, err)
  23244. }
  23245. }
  23246. const onDrain = function () {
  23247. if (finished) {
  23248. return
  23249. }
  23250. if (body.resume) {
  23251. body.resume()
  23252. }
  23253. }
  23254. const onAbort = function () {
  23255. onFinished(new RequestAbortedError())
  23256. }
  23257. const onFinished = function (err) {
  23258. if (finished) {
  23259. return
  23260. }
  23261. finished = true
  23262. assert(socket.destroyed || (socket[kWriting] && client[kRunning] <= 1))
  23263. socket
  23264. .off('drain', onDrain)
  23265. .off('error', onFinished)
  23266. body
  23267. .removeListener('data', onData)
  23268. .removeListener('end', onFinished)
  23269. .removeListener('error', onFinished)
  23270. .removeListener('close', onAbort)
  23271. if (!err) {
  23272. try {
  23273. writer.end()
  23274. } catch (er) {
  23275. err = er
  23276. }
  23277. }
  23278. writer.destroy(err)
  23279. if (err && (err.code !== 'UND_ERR_INFO' || err.message !== 'reset')) {
  23280. util.destroy(body, err)
  23281. } else {
  23282. util.destroy(body)
  23283. }
  23284. }
  23285. body
  23286. .on('data', onData)
  23287. .on('end', onFinished)
  23288. .on('error', onFinished)
  23289. .on('close', onAbort)
  23290. if (body.resume) {
  23291. body.resume()
  23292. }
  23293. socket
  23294. .on('drain', onDrain)
  23295. .on('error', onFinished)
  23296. }
  23297. async function writeBlob ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
  23298. assert(contentLength === body.size, 'blob body must have content length')
  23299. const isH2 = client[kHTTPConnVersion] === 'h2'
  23300. try {
  23301. if (contentLength != null && contentLength !== body.size) {
  23302. throw new RequestContentLengthMismatchError()
  23303. }
  23304. const buffer = Buffer.from(await body.arrayBuffer())
  23305. if (isH2) {
  23306. h2stream.cork()
  23307. h2stream.write(buffer)
  23308. h2stream.uncork()
  23309. } else {
  23310. socket.cork()
  23311. socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1')
  23312. socket.write(buffer)
  23313. socket.uncork()
  23314. }
  23315. request.onBodySent(buffer)
  23316. request.onRequestSent()
  23317. if (!expectsPayload) {
  23318. socket[kReset] = true
  23319. }
  23320. resume(client)
  23321. } catch (err) {
  23322. util.destroy(isH2 ? h2stream : socket, err)
  23323. }
  23324. }
  23325. async function writeIterable ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
  23326. assert(contentLength !== 0 || client[kRunning] === 0, 'iterator body cannot be pipelined')
  23327. let callback = null
  23328. function onDrain () {
  23329. if (callback) {
  23330. const cb = callback
  23331. callback = null
  23332. cb()
  23333. }
  23334. }
  23335. const waitForDrain = () => new Promise((resolve, reject) => {
  23336. assert(callback === null)
  23337. if (socket[kError]) {
  23338. reject(socket[kError])
  23339. } else {
  23340. callback = resolve
  23341. }
  23342. })
  23343. if (client[kHTTPConnVersion] === 'h2') {
  23344. h2stream
  23345. .on('close', onDrain)
  23346. .on('drain', onDrain)
  23347. try {
  23348. // It's up to the user to somehow abort the async iterable.
  23349. for await (const chunk of body) {
  23350. if (socket[kError]) {
  23351. throw socket[kError]
  23352. }
  23353. if (!h2stream.write(chunk)) {
  23354. await waitForDrain()
  23355. }
  23356. }
  23357. } catch (err) {
  23358. h2stream.destroy(err)
  23359. } finally {
  23360. h2stream
  23361. .off('close', onDrain)
  23362. .off('drain', onDrain)
  23363. }
  23364. return
  23365. }
  23366. socket
  23367. .on('close', onDrain)
  23368. .on('drain', onDrain)
  23369. const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header })
  23370. try {
  23371. // It's up to the user to somehow abort the async iterable.
  23372. for await (const chunk of body) {
  23373. if (socket[kError]) {
  23374. throw socket[kError]
  23375. }
  23376. if (!writer.write(chunk)) {
  23377. await waitForDrain()
  23378. }
  23379. }
  23380. writer.end()
  23381. } catch (err) {
  23382. writer.destroy(err)
  23383. } finally {
  23384. socket
  23385. .off('close', onDrain)
  23386. .off('drain', onDrain)
  23387. }
  23388. }
  23389. class AsyncWriter {
  23390. constructor ({ socket, request, contentLength, client, expectsPayload, header }) {
  23391. this.socket = socket
  23392. this.request = request
  23393. this.contentLength = contentLength
  23394. this.client = client
  23395. this.bytesWritten = 0
  23396. this.expectsPayload = expectsPayload
  23397. this.header = header
  23398. socket[kWriting] = true
  23399. }
  23400. write (chunk) {
  23401. const { socket, request, contentLength, client, bytesWritten, expectsPayload, header } = this
  23402. if (socket[kError]) {
  23403. throw socket[kError]
  23404. }
  23405. if (socket.destroyed) {
  23406. return false
  23407. }
  23408. const len = Buffer.byteLength(chunk)
  23409. if (!len) {
  23410. return true
  23411. }
  23412. // We should defer writing chunks.
  23413. if (contentLength !== null && bytesWritten + len > contentLength) {
  23414. if (client[kStrictContentLength]) {
  23415. throw new RequestContentLengthMismatchError()
  23416. }
  23417. process.emitWarning(new RequestContentLengthMismatchError())
  23418. }
  23419. socket.cork()
  23420. if (bytesWritten === 0) {
  23421. if (!expectsPayload) {
  23422. socket[kReset] = true
  23423. }
  23424. if (contentLength === null) {
  23425. socket.write(`${header}transfer-encoding: chunked\r\n`, 'latin1')
  23426. } else {
  23427. socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1')
  23428. }
  23429. }
  23430. if (contentLength === null) {
  23431. socket.write(`\r\n${len.toString(16)}\r\n`, 'latin1')
  23432. }
  23433. this.bytesWritten += len
  23434. const ret = socket.write(chunk)
  23435. socket.uncork()
  23436. request.onBodySent(chunk)
  23437. if (!ret) {
  23438. if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
  23439. // istanbul ignore else: only for jest
  23440. if (socket[kParser].timeout.refresh) {
  23441. socket[kParser].timeout.refresh()
  23442. }
  23443. }
  23444. }
  23445. return ret
  23446. }
  23447. end () {
  23448. const { socket, contentLength, client, bytesWritten, expectsPayload, header, request } = this
  23449. request.onRequestSent()
  23450. socket[kWriting] = false
  23451. if (socket[kError]) {
  23452. throw socket[kError]
  23453. }
  23454. if (socket.destroyed) {
  23455. return
  23456. }
  23457. if (bytesWritten === 0) {
  23458. if (expectsPayload) {
  23459. // https://tools.ietf.org/html/rfc7230#section-3.3.2
  23460. // A user agent SHOULD send a Content-Length in a request message when
  23461. // no Transfer-Encoding is sent and the request method defines a meaning
  23462. // for an enclosed payload body.
  23463. socket.write(`${header}content-length: 0\r\n\r\n`, 'latin1')
  23464. } else {
  23465. socket.write(`${header}\r\n`, 'latin1')
  23466. }
  23467. } else if (contentLength === null) {
  23468. socket.write('\r\n0\r\n\r\n', 'latin1')
  23469. }
  23470. if (contentLength !== null && bytesWritten !== contentLength) {
  23471. if (client[kStrictContentLength]) {
  23472. throw new RequestContentLengthMismatchError()
  23473. } else {
  23474. process.emitWarning(new RequestContentLengthMismatchError())
  23475. }
  23476. }
  23477. if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
  23478. // istanbul ignore else: only for jest
  23479. if (socket[kParser].timeout.refresh) {
  23480. socket[kParser].timeout.refresh()
  23481. }
  23482. }
  23483. resume(client)
  23484. }
  23485. destroy (err) {
  23486. const { socket, client } = this
  23487. socket[kWriting] = false
  23488. if (err) {
  23489. assert(client[kRunning] <= 1, 'pipeline should only contain this request')
  23490. util.destroy(socket, err)
  23491. }
  23492. }
  23493. }
  23494. function errorRequest (client, request, err) {
  23495. try {
  23496. request.onError(err)
  23497. assert(request.aborted)
  23498. } catch (err) {
  23499. client.emit('error', err)
  23500. }
  23501. }
  23502. module.exports = Client
  23503. /***/ }),
  23504. /***/ 6436:
  23505. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23506. "use strict";
  23507. /* istanbul ignore file: only for Node 12 */
  23508. const { kConnected, kSize } = __nccwpck_require__(2785)
  23509. class CompatWeakRef {
  23510. constructor (value) {
  23511. this.value = value
  23512. }
  23513. deref () {
  23514. return this.value[kConnected] === 0 && this.value[kSize] === 0
  23515. ? undefined
  23516. : this.value
  23517. }
  23518. }
  23519. class CompatFinalizer {
  23520. constructor (finalizer) {
  23521. this.finalizer = finalizer
  23522. }
  23523. register (dispatcher, key) {
  23524. dispatcher.on('disconnect', () => {
  23525. if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) {
  23526. this.finalizer(key)
  23527. }
  23528. })
  23529. }
  23530. }
  23531. module.exports = function () {
  23532. // FIXME: remove workaround when the Node bug is fixed
  23533. // https://github.com/nodejs/node/issues/49344#issuecomment-1741776308
  23534. if (process.env.NODE_V8_COVERAGE) {
  23535. return {
  23536. WeakRef: CompatWeakRef,
  23537. FinalizationRegistry: CompatFinalizer
  23538. }
  23539. }
  23540. return {
  23541. WeakRef: global.WeakRef || CompatWeakRef,
  23542. FinalizationRegistry: global.FinalizationRegistry || CompatFinalizer
  23543. }
  23544. }
  23545. /***/ }),
  23546. /***/ 663:
  23547. /***/ ((module) => {
  23548. "use strict";
  23549. // https://wicg.github.io/cookie-store/#cookie-maximum-attribute-value-size
  23550. const maxAttributeValueSize = 1024
  23551. // https://wicg.github.io/cookie-store/#cookie-maximum-name-value-pair-size
  23552. const maxNameValuePairSize = 4096
  23553. module.exports = {
  23554. maxAttributeValueSize,
  23555. maxNameValuePairSize
  23556. }
  23557. /***/ }),
  23558. /***/ 1724:
  23559. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23560. "use strict";
  23561. const { parseSetCookie } = __nccwpck_require__(4408)
  23562. const { stringify, getHeadersList } = __nccwpck_require__(3121)
  23563. const { webidl } = __nccwpck_require__(1744)
  23564. const { Headers } = __nccwpck_require__(554)
  23565. /**
  23566. * @typedef {Object} Cookie
  23567. * @property {string} name
  23568. * @property {string} value
  23569. * @property {Date|number|undefined} expires
  23570. * @property {number|undefined} maxAge
  23571. * @property {string|undefined} domain
  23572. * @property {string|undefined} path
  23573. * @property {boolean|undefined} secure
  23574. * @property {boolean|undefined} httpOnly
  23575. * @property {'Strict'|'Lax'|'None'} sameSite
  23576. * @property {string[]} unparsed
  23577. */
  23578. /**
  23579. * @param {Headers} headers
  23580. * @returns {Record<string, string>}
  23581. */
  23582. function getCookies (headers) {
  23583. webidl.argumentLengthCheck(arguments, 1, { header: 'getCookies' })
  23584. webidl.brandCheck(headers, Headers, { strict: false })
  23585. const cookie = headers.get('cookie')
  23586. const out = {}
  23587. if (!cookie) {
  23588. return out
  23589. }
  23590. for (const piece of cookie.split(';')) {
  23591. const [name, ...value] = piece.split('=')
  23592. out[name.trim()] = value.join('=')
  23593. }
  23594. return out
  23595. }
  23596. /**
  23597. * @param {Headers} headers
  23598. * @param {string} name
  23599. * @param {{ path?: string, domain?: string }|undefined} attributes
  23600. * @returns {void}
  23601. */
  23602. function deleteCookie (headers, name, attributes) {
  23603. webidl.argumentLengthCheck(arguments, 2, { header: 'deleteCookie' })
  23604. webidl.brandCheck(headers, Headers, { strict: false })
  23605. name = webidl.converters.DOMString(name)
  23606. attributes = webidl.converters.DeleteCookieAttributes(attributes)
  23607. // Matches behavior of
  23608. // https://github.com/denoland/deno_std/blob/63827b16330b82489a04614027c33b7904e08be5/http/cookie.ts#L278
  23609. setCookie(headers, {
  23610. name,
  23611. value: '',
  23612. expires: new Date(0),
  23613. ...attributes
  23614. })
  23615. }
  23616. /**
  23617. * @param {Headers} headers
  23618. * @returns {Cookie[]}
  23619. */
  23620. function getSetCookies (headers) {
  23621. webidl.argumentLengthCheck(arguments, 1, { header: 'getSetCookies' })
  23622. webidl.brandCheck(headers, Headers, { strict: false })
  23623. const cookies = getHeadersList(headers).cookies
  23624. if (!cookies) {
  23625. return []
  23626. }
  23627. // In older versions of undici, cookies is a list of name:value.
  23628. return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair))
  23629. }
  23630. /**
  23631. * @param {Headers} headers
  23632. * @param {Cookie} cookie
  23633. * @returns {void}
  23634. */
  23635. function setCookie (headers, cookie) {
  23636. webidl.argumentLengthCheck(arguments, 2, { header: 'setCookie' })
  23637. webidl.brandCheck(headers, Headers, { strict: false })
  23638. cookie = webidl.converters.Cookie(cookie)
  23639. const str = stringify(cookie)
  23640. if (str) {
  23641. headers.append('Set-Cookie', stringify(cookie))
  23642. }
  23643. }
  23644. webidl.converters.DeleteCookieAttributes = webidl.dictionaryConverter([
  23645. {
  23646. converter: webidl.nullableConverter(webidl.converters.DOMString),
  23647. key: 'path',
  23648. defaultValue: null
  23649. },
  23650. {
  23651. converter: webidl.nullableConverter(webidl.converters.DOMString),
  23652. key: 'domain',
  23653. defaultValue: null
  23654. }
  23655. ])
  23656. webidl.converters.Cookie = webidl.dictionaryConverter([
  23657. {
  23658. converter: webidl.converters.DOMString,
  23659. key: 'name'
  23660. },
  23661. {
  23662. converter: webidl.converters.DOMString,
  23663. key: 'value'
  23664. },
  23665. {
  23666. converter: webidl.nullableConverter((value) => {
  23667. if (typeof value === 'number') {
  23668. return webidl.converters['unsigned long long'](value)
  23669. }
  23670. return new Date(value)
  23671. }),
  23672. key: 'expires',
  23673. defaultValue: null
  23674. },
  23675. {
  23676. converter: webidl.nullableConverter(webidl.converters['long long']),
  23677. key: 'maxAge',
  23678. defaultValue: null
  23679. },
  23680. {
  23681. converter: webidl.nullableConverter(webidl.converters.DOMString),
  23682. key: 'domain',
  23683. defaultValue: null
  23684. },
  23685. {
  23686. converter: webidl.nullableConverter(webidl.converters.DOMString),
  23687. key: 'path',
  23688. defaultValue: null
  23689. },
  23690. {
  23691. converter: webidl.nullableConverter(webidl.converters.boolean),
  23692. key: 'secure',
  23693. defaultValue: null
  23694. },
  23695. {
  23696. converter: webidl.nullableConverter(webidl.converters.boolean),
  23697. key: 'httpOnly',
  23698. defaultValue: null
  23699. },
  23700. {
  23701. converter: webidl.converters.USVString,
  23702. key: 'sameSite',
  23703. allowedValues: ['Strict', 'Lax', 'None']
  23704. },
  23705. {
  23706. converter: webidl.sequenceConverter(webidl.converters.DOMString),
  23707. key: 'unparsed',
  23708. defaultValue: []
  23709. }
  23710. ])
  23711. module.exports = {
  23712. getCookies,
  23713. deleteCookie,
  23714. getSetCookies,
  23715. setCookie
  23716. }
  23717. /***/ }),
  23718. /***/ 4408:
  23719. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23720. "use strict";
  23721. const { maxNameValuePairSize, maxAttributeValueSize } = __nccwpck_require__(663)
  23722. const { isCTLExcludingHtab } = __nccwpck_require__(3121)
  23723. const { collectASequenceOfCodePointsFast } = __nccwpck_require__(685)
  23724. const assert = __nccwpck_require__(9491)
  23725. /**
  23726. * @description Parses the field-value attributes of a set-cookie header string.
  23727. * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4
  23728. * @param {string} header
  23729. * @returns if the header is invalid, null will be returned
  23730. */
  23731. function parseSetCookie (header) {
  23732. // 1. If the set-cookie-string contains a %x00-08 / %x0A-1F / %x7F
  23733. // character (CTL characters excluding HTAB): Abort these steps and
  23734. // ignore the set-cookie-string entirely.
  23735. if (isCTLExcludingHtab(header)) {
  23736. return null
  23737. }
  23738. let nameValuePair = ''
  23739. let unparsedAttributes = ''
  23740. let name = ''
  23741. let value = ''
  23742. // 2. If the set-cookie-string contains a %x3B (";") character:
  23743. if (header.includes(';')) {
  23744. // 1. The name-value-pair string consists of the characters up to,
  23745. // but not including, the first %x3B (";"), and the unparsed-
  23746. // attributes consist of the remainder of the set-cookie-string
  23747. // (including the %x3B (";") in question).
  23748. const position = { position: 0 }
  23749. nameValuePair = collectASequenceOfCodePointsFast(';', header, position)
  23750. unparsedAttributes = header.slice(position.position)
  23751. } else {
  23752. // Otherwise:
  23753. // 1. The name-value-pair string consists of all the characters
  23754. // contained in the set-cookie-string, and the unparsed-
  23755. // attributes is the empty string.
  23756. nameValuePair = header
  23757. }
  23758. // 3. If the name-value-pair string lacks a %x3D ("=") character, then
  23759. // the name string is empty, and the value string is the value of
  23760. // name-value-pair.
  23761. if (!nameValuePair.includes('=')) {
  23762. value = nameValuePair
  23763. } else {
  23764. // Otherwise, the name string consists of the characters up to, but
  23765. // not including, the first %x3D ("=") character, and the (possibly
  23766. // empty) value string consists of the characters after the first
  23767. // %x3D ("=") character.
  23768. const position = { position: 0 }
  23769. name = collectASequenceOfCodePointsFast(
  23770. '=',
  23771. nameValuePair,
  23772. position
  23773. )
  23774. value = nameValuePair.slice(position.position + 1)
  23775. }
  23776. // 4. Remove any leading or trailing WSP characters from the name
  23777. // string and the value string.
  23778. name = name.trim()
  23779. value = value.trim()
  23780. // 5. If the sum of the lengths of the name string and the value string
  23781. // is more than 4096 octets, abort these steps and ignore the set-
  23782. // cookie-string entirely.
  23783. if (name.length + value.length > maxNameValuePairSize) {
  23784. return null
  23785. }
  23786. // 6. The cookie-name is the name string, and the cookie-value is the
  23787. // value string.
  23788. return {
  23789. name, value, ...parseUnparsedAttributes(unparsedAttributes)
  23790. }
  23791. }
  23792. /**
  23793. * Parses the remaining attributes of a set-cookie header
  23794. * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4
  23795. * @param {string} unparsedAttributes
  23796. * @param {[Object.<string, unknown>]={}} cookieAttributeList
  23797. */
  23798. function parseUnparsedAttributes (unparsedAttributes, cookieAttributeList = {}) {
  23799. // 1. If the unparsed-attributes string is empty, skip the rest of
  23800. // these steps.
  23801. if (unparsedAttributes.length === 0) {
  23802. return cookieAttributeList
  23803. }
  23804. // 2. Discard the first character of the unparsed-attributes (which
  23805. // will be a %x3B (";") character).
  23806. assert(unparsedAttributes[0] === ';')
  23807. unparsedAttributes = unparsedAttributes.slice(1)
  23808. let cookieAv = ''
  23809. // 3. If the remaining unparsed-attributes contains a %x3B (";")
  23810. // character:
  23811. if (unparsedAttributes.includes(';')) {
  23812. // 1. Consume the characters of the unparsed-attributes up to, but
  23813. // not including, the first %x3B (";") character.
  23814. cookieAv = collectASequenceOfCodePointsFast(
  23815. ';',
  23816. unparsedAttributes,
  23817. { position: 0 }
  23818. )
  23819. unparsedAttributes = unparsedAttributes.slice(cookieAv.length)
  23820. } else {
  23821. // Otherwise:
  23822. // 1. Consume the remainder of the unparsed-attributes.
  23823. cookieAv = unparsedAttributes
  23824. unparsedAttributes = ''
  23825. }
  23826. // Let the cookie-av string be the characters consumed in this step.
  23827. let attributeName = ''
  23828. let attributeValue = ''
  23829. // 4. If the cookie-av string contains a %x3D ("=") character:
  23830. if (cookieAv.includes('=')) {
  23831. // 1. The (possibly empty) attribute-name string consists of the
  23832. // characters up to, but not including, the first %x3D ("=")
  23833. // character, and the (possibly empty) attribute-value string
  23834. // consists of the characters after the first %x3D ("=")
  23835. // character.
  23836. const position = { position: 0 }
  23837. attributeName = collectASequenceOfCodePointsFast(
  23838. '=',
  23839. cookieAv,
  23840. position
  23841. )
  23842. attributeValue = cookieAv.slice(position.position + 1)
  23843. } else {
  23844. // Otherwise:
  23845. // 1. The attribute-name string consists of the entire cookie-av
  23846. // string, and the attribute-value string is empty.
  23847. attributeName = cookieAv
  23848. }
  23849. // 5. Remove any leading or trailing WSP characters from the attribute-
  23850. // name string and the attribute-value string.
  23851. attributeName = attributeName.trim()
  23852. attributeValue = attributeValue.trim()
  23853. // 6. If the attribute-value is longer than 1024 octets, ignore the
  23854. // cookie-av string and return to Step 1 of this algorithm.
  23855. if (attributeValue.length > maxAttributeValueSize) {
  23856. return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)
  23857. }
  23858. // 7. Process the attribute-name and attribute-value according to the
  23859. // requirements in the following subsections. (Notice that
  23860. // attributes with unrecognized attribute-names are ignored.)
  23861. const attributeNameLowercase = attributeName.toLowerCase()
  23862. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.1
  23863. // If the attribute-name case-insensitively matches the string
  23864. // "Expires", the user agent MUST process the cookie-av as follows.
  23865. if (attributeNameLowercase === 'expires') {
  23866. // 1. Let the expiry-time be the result of parsing the attribute-value
  23867. // as cookie-date (see Section 5.1.1).
  23868. const expiryTime = new Date(attributeValue)
  23869. // 2. If the attribute-value failed to parse as a cookie date, ignore
  23870. // the cookie-av.
  23871. cookieAttributeList.expires = expiryTime
  23872. } else if (attributeNameLowercase === 'max-age') {
  23873. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.2
  23874. // If the attribute-name case-insensitively matches the string "Max-
  23875. // Age", the user agent MUST process the cookie-av as follows.
  23876. // 1. If the first character of the attribute-value is not a DIGIT or a
  23877. // "-" character, ignore the cookie-av.
  23878. const charCode = attributeValue.charCodeAt(0)
  23879. if ((charCode < 48 || charCode > 57) && attributeValue[0] !== '-') {
  23880. return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)
  23881. }
  23882. // 2. If the remainder of attribute-value contains a non-DIGIT
  23883. // character, ignore the cookie-av.
  23884. if (!/^\d+$/.test(attributeValue)) {
  23885. return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)
  23886. }
  23887. // 3. Let delta-seconds be the attribute-value converted to an integer.
  23888. const deltaSeconds = Number(attributeValue)
  23889. // 4. Let cookie-age-limit be the maximum age of the cookie (which
  23890. // SHOULD be 400 days or less, see Section 4.1.2.2).
  23891. // 5. Set delta-seconds to the smaller of its present value and cookie-
  23892. // age-limit.
  23893. // deltaSeconds = Math.min(deltaSeconds * 1000, maxExpiresMs)
  23894. // 6. If delta-seconds is less than or equal to zero (0), let expiry-
  23895. // time be the earliest representable date and time. Otherwise, let
  23896. // the expiry-time be the current date and time plus delta-seconds
  23897. // seconds.
  23898. // const expiryTime = deltaSeconds <= 0 ? Date.now() : Date.now() + deltaSeconds
  23899. // 7. Append an attribute to the cookie-attribute-list with an
  23900. // attribute-name of Max-Age and an attribute-value of expiry-time.
  23901. cookieAttributeList.maxAge = deltaSeconds
  23902. } else if (attributeNameLowercase === 'domain') {
  23903. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.3
  23904. // If the attribute-name case-insensitively matches the string "Domain",
  23905. // the user agent MUST process the cookie-av as follows.
  23906. // 1. Let cookie-domain be the attribute-value.
  23907. let cookieDomain = attributeValue
  23908. // 2. If cookie-domain starts with %x2E ("."), let cookie-domain be
  23909. // cookie-domain without its leading %x2E (".").
  23910. if (cookieDomain[0] === '.') {
  23911. cookieDomain = cookieDomain.slice(1)
  23912. }
  23913. // 3. Convert the cookie-domain to lower case.
  23914. cookieDomain = cookieDomain.toLowerCase()
  23915. // 4. Append an attribute to the cookie-attribute-list with an
  23916. // attribute-name of Domain and an attribute-value of cookie-domain.
  23917. cookieAttributeList.domain = cookieDomain
  23918. } else if (attributeNameLowercase === 'path') {
  23919. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.4
  23920. // If the attribute-name case-insensitively matches the string "Path",
  23921. // the user agent MUST process the cookie-av as follows.
  23922. // 1. If the attribute-value is empty or if the first character of the
  23923. // attribute-value is not %x2F ("/"):
  23924. let cookiePath = ''
  23925. if (attributeValue.length === 0 || attributeValue[0] !== '/') {
  23926. // 1. Let cookie-path be the default-path.
  23927. cookiePath = '/'
  23928. } else {
  23929. // Otherwise:
  23930. // 1. Let cookie-path be the attribute-value.
  23931. cookiePath = attributeValue
  23932. }
  23933. // 2. Append an attribute to the cookie-attribute-list with an
  23934. // attribute-name of Path and an attribute-value of cookie-path.
  23935. cookieAttributeList.path = cookiePath
  23936. } else if (attributeNameLowercase === 'secure') {
  23937. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.5
  23938. // If the attribute-name case-insensitively matches the string "Secure",
  23939. // the user agent MUST append an attribute to the cookie-attribute-list
  23940. // with an attribute-name of Secure and an empty attribute-value.
  23941. cookieAttributeList.secure = true
  23942. } else if (attributeNameLowercase === 'httponly') {
  23943. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.6
  23944. // If the attribute-name case-insensitively matches the string
  23945. // "HttpOnly", the user agent MUST append an attribute to the cookie-
  23946. // attribute-list with an attribute-name of HttpOnly and an empty
  23947. // attribute-value.
  23948. cookieAttributeList.httpOnly = true
  23949. } else if (attributeNameLowercase === 'samesite') {
  23950. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.7
  23951. // If the attribute-name case-insensitively matches the string
  23952. // "SameSite", the user agent MUST process the cookie-av as follows:
  23953. // 1. Let enforcement be "Default".
  23954. let enforcement = 'Default'
  23955. const attributeValueLowercase = attributeValue.toLowerCase()
  23956. // 2. If cookie-av's attribute-value is a case-insensitive match for
  23957. // "None", set enforcement to "None".
  23958. if (attributeValueLowercase.includes('none')) {
  23959. enforcement = 'None'
  23960. }
  23961. // 3. If cookie-av's attribute-value is a case-insensitive match for
  23962. // "Strict", set enforcement to "Strict".
  23963. if (attributeValueLowercase.includes('strict')) {
  23964. enforcement = 'Strict'
  23965. }
  23966. // 4. If cookie-av's attribute-value is a case-insensitive match for
  23967. // "Lax", set enforcement to "Lax".
  23968. if (attributeValueLowercase.includes('lax')) {
  23969. enforcement = 'Lax'
  23970. }
  23971. // 5. Append an attribute to the cookie-attribute-list with an
  23972. // attribute-name of "SameSite" and an attribute-value of
  23973. // enforcement.
  23974. cookieAttributeList.sameSite = enforcement
  23975. } else {
  23976. cookieAttributeList.unparsed ??= []
  23977. cookieAttributeList.unparsed.push(`${attributeName}=${attributeValue}`)
  23978. }
  23979. // 8. Return to Step 1 of this algorithm.
  23980. return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)
  23981. }
  23982. module.exports = {
  23983. parseSetCookie,
  23984. parseUnparsedAttributes
  23985. }
  23986. /***/ }),
  23987. /***/ 3121:
  23988. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23989. "use strict";
  23990. const assert = __nccwpck_require__(9491)
  23991. const { kHeadersList } = __nccwpck_require__(2785)
  23992. function isCTLExcludingHtab (value) {
  23993. if (value.length === 0) {
  23994. return false
  23995. }
  23996. for (const char of value) {
  23997. const code = char.charCodeAt(0)
  23998. if (
  23999. (code >= 0x00 || code <= 0x08) ||
  24000. (code >= 0x0A || code <= 0x1F) ||
  24001. code === 0x7F
  24002. ) {
  24003. return false
  24004. }
  24005. }
  24006. }
  24007. /**
  24008. CHAR = <any US-ASCII character (octets 0 - 127)>
  24009. token = 1*<any CHAR except CTLs or separators>
  24010. separators = "(" | ")" | "<" | ">" | "@"
  24011. | "," | ";" | ":" | "\" | <">
  24012. | "/" | "[" | "]" | "?" | "="
  24013. | "{" | "}" | SP | HT
  24014. * @param {string} name
  24015. */
  24016. function validateCookieName (name) {
  24017. for (const char of name) {
  24018. const code = char.charCodeAt(0)
  24019. if (
  24020. (code <= 0x20 || code > 0x7F) ||
  24021. char === '(' ||
  24022. char === ')' ||
  24023. char === '>' ||
  24024. char === '<' ||
  24025. char === '@' ||
  24026. char === ',' ||
  24027. char === ';' ||
  24028. char === ':' ||
  24029. char === '\\' ||
  24030. char === '"' ||
  24031. char === '/' ||
  24032. char === '[' ||
  24033. char === ']' ||
  24034. char === '?' ||
  24035. char === '=' ||
  24036. char === '{' ||
  24037. char === '}'
  24038. ) {
  24039. throw new Error('Invalid cookie name')
  24040. }
  24041. }
  24042. }
  24043. /**
  24044. cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
  24045. cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
  24046. ; US-ASCII characters excluding CTLs,
  24047. ; whitespace DQUOTE, comma, semicolon,
  24048. ; and backslash
  24049. * @param {string} value
  24050. */
  24051. function validateCookieValue (value) {
  24052. for (const char of value) {
  24053. const code = char.charCodeAt(0)
  24054. if (
  24055. code < 0x21 || // exclude CTLs (0-31)
  24056. code === 0x22 ||
  24057. code === 0x2C ||
  24058. code === 0x3B ||
  24059. code === 0x5C ||
  24060. code > 0x7E // non-ascii
  24061. ) {
  24062. throw new Error('Invalid header value')
  24063. }
  24064. }
  24065. }
  24066. /**
  24067. * path-value = <any CHAR except CTLs or ";">
  24068. * @param {string} path
  24069. */
  24070. function validateCookiePath (path) {
  24071. for (const char of path) {
  24072. const code = char.charCodeAt(0)
  24073. if (code < 0x21 || char === ';') {
  24074. throw new Error('Invalid cookie path')
  24075. }
  24076. }
  24077. }
  24078. /**
  24079. * I have no idea why these values aren't allowed to be honest,
  24080. * but Deno tests these. - Khafra
  24081. * @param {string} domain
  24082. */
  24083. function validateCookieDomain (domain) {
  24084. if (
  24085. domain.startsWith('-') ||
  24086. domain.endsWith('.') ||
  24087. domain.endsWith('-')
  24088. ) {
  24089. throw new Error('Invalid cookie domain')
  24090. }
  24091. }
  24092. /**
  24093. * @see https://www.rfc-editor.org/rfc/rfc7231#section-7.1.1.1
  24094. * @param {number|Date} date
  24095. IMF-fixdate = day-name "," SP date1 SP time-of-day SP GMT
  24096. ; fixed length/zone/capitalization subset of the format
  24097. ; see Section 3.3 of [RFC5322]
  24098. day-name = %x4D.6F.6E ; "Mon", case-sensitive
  24099. / %x54.75.65 ; "Tue", case-sensitive
  24100. / %x57.65.64 ; "Wed", case-sensitive
  24101. / %x54.68.75 ; "Thu", case-sensitive
  24102. / %x46.72.69 ; "Fri", case-sensitive
  24103. / %x53.61.74 ; "Sat", case-sensitive
  24104. / %x53.75.6E ; "Sun", case-sensitive
  24105. date1 = day SP month SP year
  24106. ; e.g., 02 Jun 1982
  24107. day = 2DIGIT
  24108. month = %x4A.61.6E ; "Jan", case-sensitive
  24109. / %x46.65.62 ; "Feb", case-sensitive
  24110. / %x4D.61.72 ; "Mar", case-sensitive
  24111. / %x41.70.72 ; "Apr", case-sensitive
  24112. / %x4D.61.79 ; "May", case-sensitive
  24113. / %x4A.75.6E ; "Jun", case-sensitive
  24114. / %x4A.75.6C ; "Jul", case-sensitive
  24115. / %x41.75.67 ; "Aug", case-sensitive
  24116. / %x53.65.70 ; "Sep", case-sensitive
  24117. / %x4F.63.74 ; "Oct", case-sensitive
  24118. / %x4E.6F.76 ; "Nov", case-sensitive
  24119. / %x44.65.63 ; "Dec", case-sensitive
  24120. year = 4DIGIT
  24121. GMT = %x47.4D.54 ; "GMT", case-sensitive
  24122. time-of-day = hour ":" minute ":" second
  24123. ; 00:00:00 - 23:59:60 (leap second)
  24124. hour = 2DIGIT
  24125. minute = 2DIGIT
  24126. second = 2DIGIT
  24127. */
  24128. function toIMFDate (date) {
  24129. if (typeof date === 'number') {
  24130. date = new Date(date)
  24131. }
  24132. const days = [
  24133. 'Sun', 'Mon', 'Tue', 'Wed',
  24134. 'Thu', 'Fri', 'Sat'
  24135. ]
  24136. const months = [
  24137. 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
  24138. 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
  24139. ]
  24140. const dayName = days[date.getUTCDay()]
  24141. const day = date.getUTCDate().toString().padStart(2, '0')
  24142. const month = months[date.getUTCMonth()]
  24143. const year = date.getUTCFullYear()
  24144. const hour = date.getUTCHours().toString().padStart(2, '0')
  24145. const minute = date.getUTCMinutes().toString().padStart(2, '0')
  24146. const second = date.getUTCSeconds().toString().padStart(2, '0')
  24147. return `${dayName}, ${day} ${month} ${year} ${hour}:${minute}:${second} GMT`
  24148. }
  24149. /**
  24150. max-age-av = "Max-Age=" non-zero-digit *DIGIT
  24151. ; In practice, both expires-av and max-age-av
  24152. ; are limited to dates representable by the
  24153. ; user agent.
  24154. * @param {number} maxAge
  24155. */
  24156. function validateCookieMaxAge (maxAge) {
  24157. if (maxAge < 0) {
  24158. throw new Error('Invalid cookie max-age')
  24159. }
  24160. }
  24161. /**
  24162. * @see https://www.rfc-editor.org/rfc/rfc6265#section-4.1.1
  24163. * @param {import('./index').Cookie} cookie
  24164. */
  24165. function stringify (cookie) {
  24166. if (cookie.name.length === 0) {
  24167. return null
  24168. }
  24169. validateCookieName(cookie.name)
  24170. validateCookieValue(cookie.value)
  24171. const out = [`${cookie.name}=${cookie.value}`]
  24172. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-prefixes-00#section-3.1
  24173. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-prefixes-00#section-3.2
  24174. if (cookie.name.startsWith('__Secure-')) {
  24175. cookie.secure = true
  24176. }
  24177. if (cookie.name.startsWith('__Host-')) {
  24178. cookie.secure = true
  24179. cookie.domain = null
  24180. cookie.path = '/'
  24181. }
  24182. if (cookie.secure) {
  24183. out.push('Secure')
  24184. }
  24185. if (cookie.httpOnly) {
  24186. out.push('HttpOnly')
  24187. }
  24188. if (typeof cookie.maxAge === 'number') {
  24189. validateCookieMaxAge(cookie.maxAge)
  24190. out.push(`Max-Age=${cookie.maxAge}`)
  24191. }
  24192. if (cookie.domain) {
  24193. validateCookieDomain(cookie.domain)
  24194. out.push(`Domain=${cookie.domain}`)
  24195. }
  24196. if (cookie.path) {
  24197. validateCookiePath(cookie.path)
  24198. out.push(`Path=${cookie.path}`)
  24199. }
  24200. if (cookie.expires && cookie.expires.toString() !== 'Invalid Date') {
  24201. out.push(`Expires=${toIMFDate(cookie.expires)}`)
  24202. }
  24203. if (cookie.sameSite) {
  24204. out.push(`SameSite=${cookie.sameSite}`)
  24205. }
  24206. for (const part of cookie.unparsed) {
  24207. if (!part.includes('=')) {
  24208. throw new Error('Invalid unparsed')
  24209. }
  24210. const [key, ...value] = part.split('=')
  24211. out.push(`${key.trim()}=${value.join('=')}`)
  24212. }
  24213. return out.join('; ')
  24214. }
  24215. let kHeadersListNode
  24216. function getHeadersList (headers) {
  24217. if (headers[kHeadersList]) {
  24218. return headers[kHeadersList]
  24219. }
  24220. if (!kHeadersListNode) {
  24221. kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
  24222. (symbol) => symbol.description === 'headers list'
  24223. )
  24224. assert(kHeadersListNode, 'Headers cannot be parsed')
  24225. }
  24226. const headersList = headers[kHeadersListNode]
  24227. assert(headersList)
  24228. return headersList
  24229. }
  24230. module.exports = {
  24231. isCTLExcludingHtab,
  24232. stringify,
  24233. getHeadersList
  24234. }
  24235. /***/ }),
  24236. /***/ 2067:
  24237. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24238. "use strict";
  24239. const net = __nccwpck_require__(1808)
  24240. const assert = __nccwpck_require__(9491)
  24241. const util = __nccwpck_require__(3983)
  24242. const { InvalidArgumentError, ConnectTimeoutError } = __nccwpck_require__(8045)
  24243. let tls // include tls conditionally since it is not always available
  24244. // TODO: session re-use does not wait for the first
  24245. // connection to resolve the session and might therefore
  24246. // resolve the same servername multiple times even when
  24247. // re-use is enabled.
  24248. let SessionCache
  24249. // FIXME: remove workaround when the Node bug is fixed
  24250. // https://github.com/nodejs/node/issues/49344#issuecomment-1741776308
  24251. if (global.FinalizationRegistry && !process.env.NODE_V8_COVERAGE) {
  24252. SessionCache = class WeakSessionCache {
  24253. constructor (maxCachedSessions) {
  24254. this._maxCachedSessions = maxCachedSessions
  24255. this._sessionCache = new Map()
  24256. this._sessionRegistry = new global.FinalizationRegistry((key) => {
  24257. if (this._sessionCache.size < this._maxCachedSessions) {
  24258. return
  24259. }
  24260. const ref = this._sessionCache.get(key)
  24261. if (ref !== undefined && ref.deref() === undefined) {
  24262. this._sessionCache.delete(key)
  24263. }
  24264. })
  24265. }
  24266. get (sessionKey) {
  24267. const ref = this._sessionCache.get(sessionKey)
  24268. return ref ? ref.deref() : null
  24269. }
  24270. set (sessionKey, session) {
  24271. if (this._maxCachedSessions === 0) {
  24272. return
  24273. }
  24274. this._sessionCache.set(sessionKey, new WeakRef(session))
  24275. this._sessionRegistry.register(session, sessionKey)
  24276. }
  24277. }
  24278. } else {
  24279. SessionCache = class SimpleSessionCache {
  24280. constructor (maxCachedSessions) {
  24281. this._maxCachedSessions = maxCachedSessions
  24282. this._sessionCache = new Map()
  24283. }
  24284. get (sessionKey) {
  24285. return this._sessionCache.get(sessionKey)
  24286. }
  24287. set (sessionKey, session) {
  24288. if (this._maxCachedSessions === 0) {
  24289. return
  24290. }
  24291. if (this._sessionCache.size >= this._maxCachedSessions) {
  24292. // remove the oldest session
  24293. const { value: oldestKey } = this._sessionCache.keys().next()
  24294. this._sessionCache.delete(oldestKey)
  24295. }
  24296. this._sessionCache.set(sessionKey, session)
  24297. }
  24298. }
  24299. }
  24300. function buildConnector ({ allowH2, maxCachedSessions, socketPath, timeout, ...opts }) {
  24301. if (maxCachedSessions != null && (!Number.isInteger(maxCachedSessions) || maxCachedSessions < 0)) {
  24302. throw new InvalidArgumentError('maxCachedSessions must be a positive integer or zero')
  24303. }
  24304. const options = { path: socketPath, ...opts }
  24305. const sessionCache = new SessionCache(maxCachedSessions == null ? 100 : maxCachedSessions)
  24306. timeout = timeout == null ? 10e3 : timeout
  24307. allowH2 = allowH2 != null ? allowH2 : false
  24308. return function connect ({ hostname, host, protocol, port, servername, localAddress, httpSocket }, callback) {
  24309. let socket
  24310. if (protocol === 'https:') {
  24311. if (!tls) {
  24312. tls = __nccwpck_require__(4404)
  24313. }
  24314. servername = servername || options.servername || util.getServerName(host) || null
  24315. const sessionKey = servername || hostname
  24316. const session = sessionCache.get(sessionKey) || null
  24317. assert(sessionKey)
  24318. socket = tls.connect({
  24319. highWaterMark: 16384, // TLS in node can't have bigger HWM anyway...
  24320. ...options,
  24321. servername,
  24322. session,
  24323. localAddress,
  24324. // TODO(HTTP/2): Add support for h2c
  24325. ALPNProtocols: allowH2 ? ['http/1.1', 'h2'] : ['http/1.1'],
  24326. socket: httpSocket, // upgrade socket connection
  24327. port: port || 443,
  24328. host: hostname
  24329. })
  24330. socket
  24331. .on('session', function (session) {
  24332. // TODO (fix): Can a session become invalid once established? Don't think so?
  24333. sessionCache.set(sessionKey, session)
  24334. })
  24335. } else {
  24336. assert(!httpSocket, 'httpSocket can only be sent on TLS update')
  24337. socket = net.connect({
  24338. highWaterMark: 64 * 1024, // Same as nodejs fs streams.
  24339. ...options,
  24340. localAddress,
  24341. port: port || 80,
  24342. host: hostname
  24343. })
  24344. }
  24345. // Set TCP keep alive options on the socket here instead of in connect() for the case of assigning the socket
  24346. if (options.keepAlive == null || options.keepAlive) {
  24347. const keepAliveInitialDelay = options.keepAliveInitialDelay === undefined ? 60e3 : options.keepAliveInitialDelay
  24348. socket.setKeepAlive(true, keepAliveInitialDelay)
  24349. }
  24350. const cancelTimeout = setupTimeout(() => onConnectTimeout(socket), timeout)
  24351. socket
  24352. .setNoDelay(true)
  24353. .once(protocol === 'https:' ? 'secureConnect' : 'connect', function () {
  24354. cancelTimeout()
  24355. if (callback) {
  24356. const cb = callback
  24357. callback = null
  24358. cb(null, this)
  24359. }
  24360. })
  24361. .on('error', function (err) {
  24362. cancelTimeout()
  24363. if (callback) {
  24364. const cb = callback
  24365. callback = null
  24366. cb(err)
  24367. }
  24368. })
  24369. return socket
  24370. }
  24371. }
  24372. function setupTimeout (onConnectTimeout, timeout) {
  24373. if (!timeout) {
  24374. return () => {}
  24375. }
  24376. let s1 = null
  24377. let s2 = null
  24378. const timeoutId = setTimeout(() => {
  24379. // setImmediate is added to make sure that we priotorise socket error events over timeouts
  24380. s1 = setImmediate(() => {
  24381. if (process.platform === 'win32') {
  24382. // Windows needs an extra setImmediate probably due to implementation differences in the socket logic
  24383. s2 = setImmediate(() => onConnectTimeout())
  24384. } else {
  24385. onConnectTimeout()
  24386. }
  24387. })
  24388. }, timeout)
  24389. return () => {
  24390. clearTimeout(timeoutId)
  24391. clearImmediate(s1)
  24392. clearImmediate(s2)
  24393. }
  24394. }
  24395. function onConnectTimeout (socket) {
  24396. util.destroy(socket, new ConnectTimeoutError())
  24397. }
  24398. module.exports = buildConnector
  24399. /***/ }),
  24400. /***/ 8045:
  24401. /***/ ((module) => {
  24402. "use strict";
  24403. class UndiciError extends Error {
  24404. constructor (message) {
  24405. super(message)
  24406. this.name = 'UndiciError'
  24407. this.code = 'UND_ERR'
  24408. }
  24409. }
  24410. class ConnectTimeoutError extends UndiciError {
  24411. constructor (message) {
  24412. super(message)
  24413. Error.captureStackTrace(this, ConnectTimeoutError)
  24414. this.name = 'ConnectTimeoutError'
  24415. this.message = message || 'Connect Timeout Error'
  24416. this.code = 'UND_ERR_CONNECT_TIMEOUT'
  24417. }
  24418. }
  24419. class HeadersTimeoutError extends UndiciError {
  24420. constructor (message) {
  24421. super(message)
  24422. Error.captureStackTrace(this, HeadersTimeoutError)
  24423. this.name = 'HeadersTimeoutError'
  24424. this.message = message || 'Headers Timeout Error'
  24425. this.code = 'UND_ERR_HEADERS_TIMEOUT'
  24426. }
  24427. }
  24428. class HeadersOverflowError extends UndiciError {
  24429. constructor (message) {
  24430. super(message)
  24431. Error.captureStackTrace(this, HeadersOverflowError)
  24432. this.name = 'HeadersOverflowError'
  24433. this.message = message || 'Headers Overflow Error'
  24434. this.code = 'UND_ERR_HEADERS_OVERFLOW'
  24435. }
  24436. }
  24437. class BodyTimeoutError extends UndiciError {
  24438. constructor (message) {
  24439. super(message)
  24440. Error.captureStackTrace(this, BodyTimeoutError)
  24441. this.name = 'BodyTimeoutError'
  24442. this.message = message || 'Body Timeout Error'
  24443. this.code = 'UND_ERR_BODY_TIMEOUT'
  24444. }
  24445. }
  24446. class ResponseStatusCodeError extends UndiciError {
  24447. constructor (message, statusCode, headers, body) {
  24448. super(message)
  24449. Error.captureStackTrace(this, ResponseStatusCodeError)
  24450. this.name = 'ResponseStatusCodeError'
  24451. this.message = message || 'Response Status Code Error'
  24452. this.code = 'UND_ERR_RESPONSE_STATUS_CODE'
  24453. this.body = body
  24454. this.status = statusCode
  24455. this.statusCode = statusCode
  24456. this.headers = headers
  24457. }
  24458. }
  24459. class InvalidArgumentError extends UndiciError {
  24460. constructor (message) {
  24461. super(message)
  24462. Error.captureStackTrace(this, InvalidArgumentError)
  24463. this.name = 'InvalidArgumentError'
  24464. this.message = message || 'Invalid Argument Error'
  24465. this.code = 'UND_ERR_INVALID_ARG'
  24466. }
  24467. }
  24468. class InvalidReturnValueError extends UndiciError {
  24469. constructor (message) {
  24470. super(message)
  24471. Error.captureStackTrace(this, InvalidReturnValueError)
  24472. this.name = 'InvalidReturnValueError'
  24473. this.message = message || 'Invalid Return Value Error'
  24474. this.code = 'UND_ERR_INVALID_RETURN_VALUE'
  24475. }
  24476. }
  24477. class RequestAbortedError extends UndiciError {
  24478. constructor (message) {
  24479. super(message)
  24480. Error.captureStackTrace(this, RequestAbortedError)
  24481. this.name = 'AbortError'
  24482. this.message = message || 'Request aborted'
  24483. this.code = 'UND_ERR_ABORTED'
  24484. }
  24485. }
  24486. class InformationalError extends UndiciError {
  24487. constructor (message) {
  24488. super(message)
  24489. Error.captureStackTrace(this, InformationalError)
  24490. this.name = 'InformationalError'
  24491. this.message = message || 'Request information'
  24492. this.code = 'UND_ERR_INFO'
  24493. }
  24494. }
  24495. class RequestContentLengthMismatchError extends UndiciError {
  24496. constructor (message) {
  24497. super(message)
  24498. Error.captureStackTrace(this, RequestContentLengthMismatchError)
  24499. this.name = 'RequestContentLengthMismatchError'
  24500. this.message = message || 'Request body length does not match content-length header'
  24501. this.code = 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'
  24502. }
  24503. }
  24504. class ResponseContentLengthMismatchError extends UndiciError {
  24505. constructor (message) {
  24506. super(message)
  24507. Error.captureStackTrace(this, ResponseContentLengthMismatchError)
  24508. this.name = 'ResponseContentLengthMismatchError'
  24509. this.message = message || 'Response body length does not match content-length header'
  24510. this.code = 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH'
  24511. }
  24512. }
  24513. class ClientDestroyedError extends UndiciError {
  24514. constructor (message) {
  24515. super(message)
  24516. Error.captureStackTrace(this, ClientDestroyedError)
  24517. this.name = 'ClientDestroyedError'
  24518. this.message = message || 'The client is destroyed'
  24519. this.code = 'UND_ERR_DESTROYED'
  24520. }
  24521. }
  24522. class ClientClosedError extends UndiciError {
  24523. constructor (message) {
  24524. super(message)
  24525. Error.captureStackTrace(this, ClientClosedError)
  24526. this.name = 'ClientClosedError'
  24527. this.message = message || 'The client is closed'
  24528. this.code = 'UND_ERR_CLOSED'
  24529. }
  24530. }
  24531. class SocketError extends UndiciError {
  24532. constructor (message, socket) {
  24533. super(message)
  24534. Error.captureStackTrace(this, SocketError)
  24535. this.name = 'SocketError'
  24536. this.message = message || 'Socket error'
  24537. this.code = 'UND_ERR_SOCKET'
  24538. this.socket = socket
  24539. }
  24540. }
  24541. class NotSupportedError extends UndiciError {
  24542. constructor (message) {
  24543. super(message)
  24544. Error.captureStackTrace(this, NotSupportedError)
  24545. this.name = 'NotSupportedError'
  24546. this.message = message || 'Not supported error'
  24547. this.code = 'UND_ERR_NOT_SUPPORTED'
  24548. }
  24549. }
  24550. class BalancedPoolMissingUpstreamError extends UndiciError {
  24551. constructor (message) {
  24552. super(message)
  24553. Error.captureStackTrace(this, NotSupportedError)
  24554. this.name = 'MissingUpstreamError'
  24555. this.message = message || 'No upstream has been added to the BalancedPool'
  24556. this.code = 'UND_ERR_BPL_MISSING_UPSTREAM'
  24557. }
  24558. }
  24559. class HTTPParserError extends Error {
  24560. constructor (message, code, data) {
  24561. super(message)
  24562. Error.captureStackTrace(this, HTTPParserError)
  24563. this.name = 'HTTPParserError'
  24564. this.code = code ? `HPE_${code}` : undefined
  24565. this.data = data ? data.toString() : undefined
  24566. }
  24567. }
  24568. class ResponseExceededMaxSizeError extends UndiciError {
  24569. constructor (message) {
  24570. super(message)
  24571. Error.captureStackTrace(this, ResponseExceededMaxSizeError)
  24572. this.name = 'ResponseExceededMaxSizeError'
  24573. this.message = message || 'Response content exceeded max size'
  24574. this.code = 'UND_ERR_RES_EXCEEDED_MAX_SIZE'
  24575. }
  24576. }
  24577. module.exports = {
  24578. HTTPParserError,
  24579. UndiciError,
  24580. HeadersTimeoutError,
  24581. HeadersOverflowError,
  24582. BodyTimeoutError,
  24583. RequestContentLengthMismatchError,
  24584. ConnectTimeoutError,
  24585. ResponseStatusCodeError,
  24586. InvalidArgumentError,
  24587. InvalidReturnValueError,
  24588. RequestAbortedError,
  24589. ClientDestroyedError,
  24590. ClientClosedError,
  24591. InformationalError,
  24592. SocketError,
  24593. NotSupportedError,
  24594. ResponseContentLengthMismatchError,
  24595. BalancedPoolMissingUpstreamError,
  24596. ResponseExceededMaxSizeError
  24597. }
  24598. /***/ }),
  24599. /***/ 2905:
  24600. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24601. "use strict";
  24602. const {
  24603. InvalidArgumentError,
  24604. NotSupportedError
  24605. } = __nccwpck_require__(8045)
  24606. const assert = __nccwpck_require__(9491)
  24607. const { kHTTP2BuildRequest, kHTTP2CopyHeaders, kHTTP1BuildRequest } = __nccwpck_require__(2785)
  24608. const util = __nccwpck_require__(3983)
  24609. // tokenRegExp and headerCharRegex have been lifted from
  24610. // https://github.com/nodejs/node/blob/main/lib/_http_common.js
  24611. /**
  24612. * Verifies that the given val is a valid HTTP token
  24613. * per the rules defined in RFC 7230
  24614. * See https://tools.ietf.org/html/rfc7230#section-3.2.6
  24615. */
  24616. const tokenRegExp = /^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/
  24617. /**
  24618. * Matches if val contains an invalid field-vchar
  24619. * field-value = *( field-content / obs-fold )
  24620. * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
  24621. * field-vchar = VCHAR / obs-text
  24622. */
  24623. const headerCharRegex = /[^\t\x20-\x7e\x80-\xff]/
  24624. // Verifies that a given path is valid does not contain control chars \x00 to \x20
  24625. const invalidPathRegex = /[^\u0021-\u00ff]/
  24626. const kHandler = Symbol('handler')
  24627. const channels = {}
  24628. let extractBody
  24629. try {
  24630. const diagnosticsChannel = __nccwpck_require__(7643)
  24631. channels.create = diagnosticsChannel.channel('undici:request:create')
  24632. channels.bodySent = diagnosticsChannel.channel('undici:request:bodySent')
  24633. channels.headers = diagnosticsChannel.channel('undici:request:headers')
  24634. channels.trailers = diagnosticsChannel.channel('undici:request:trailers')
  24635. channels.error = diagnosticsChannel.channel('undici:request:error')
  24636. } catch {
  24637. channels.create = { hasSubscribers: false }
  24638. channels.bodySent = { hasSubscribers: false }
  24639. channels.headers = { hasSubscribers: false }
  24640. channels.trailers = { hasSubscribers: false }
  24641. channels.error = { hasSubscribers: false }
  24642. }
  24643. class Request {
  24644. constructor (origin, {
  24645. path,
  24646. method,
  24647. body,
  24648. headers,
  24649. query,
  24650. idempotent,
  24651. blocking,
  24652. upgrade,
  24653. headersTimeout,
  24654. bodyTimeout,
  24655. reset,
  24656. throwOnError,
  24657. expectContinue
  24658. }, handler) {
  24659. if (typeof path !== 'string') {
  24660. throw new InvalidArgumentError('path must be a string')
  24661. } else if (
  24662. path[0] !== '/' &&
  24663. !(path.startsWith('http://') || path.startsWith('https://')) &&
  24664. method !== 'CONNECT'
  24665. ) {
  24666. throw new InvalidArgumentError('path must be an absolute URL or start with a slash')
  24667. } else if (invalidPathRegex.exec(path) !== null) {
  24668. throw new InvalidArgumentError('invalid request path')
  24669. }
  24670. if (typeof method !== 'string') {
  24671. throw new InvalidArgumentError('method must be a string')
  24672. } else if (tokenRegExp.exec(method) === null) {
  24673. throw new InvalidArgumentError('invalid request method')
  24674. }
  24675. if (upgrade && typeof upgrade !== 'string') {
  24676. throw new InvalidArgumentError('upgrade must be a string')
  24677. }
  24678. if (headersTimeout != null && (!Number.isFinite(headersTimeout) || headersTimeout < 0)) {
  24679. throw new InvalidArgumentError('invalid headersTimeout')
  24680. }
  24681. if (bodyTimeout != null && (!Number.isFinite(bodyTimeout) || bodyTimeout < 0)) {
  24682. throw new InvalidArgumentError('invalid bodyTimeout')
  24683. }
  24684. if (reset != null && typeof reset !== 'boolean') {
  24685. throw new InvalidArgumentError('invalid reset')
  24686. }
  24687. if (expectContinue != null && typeof expectContinue !== 'boolean') {
  24688. throw new InvalidArgumentError('invalid expectContinue')
  24689. }
  24690. this.headersTimeout = headersTimeout
  24691. this.bodyTimeout = bodyTimeout
  24692. this.throwOnError = throwOnError === true
  24693. this.method = method
  24694. if (body == null) {
  24695. this.body = null
  24696. } else if (util.isStream(body)) {
  24697. this.body = body
  24698. } else if (util.isBuffer(body)) {
  24699. this.body = body.byteLength ? body : null
  24700. } else if (ArrayBuffer.isView(body)) {
  24701. this.body = body.buffer.byteLength ? Buffer.from(body.buffer, body.byteOffset, body.byteLength) : null
  24702. } else if (body instanceof ArrayBuffer) {
  24703. this.body = body.byteLength ? Buffer.from(body) : null
  24704. } else if (typeof body === 'string') {
  24705. this.body = body.length ? Buffer.from(body) : null
  24706. } else if (util.isFormDataLike(body) || util.isIterable(body) || util.isBlobLike(body)) {
  24707. this.body = body
  24708. } else {
  24709. throw new InvalidArgumentError('body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable')
  24710. }
  24711. this.completed = false
  24712. this.aborted = false
  24713. this.upgrade = upgrade || null
  24714. this.path = query ? util.buildURL(path, query) : path
  24715. this.origin = origin
  24716. this.idempotent = idempotent == null
  24717. ? method === 'HEAD' || method === 'GET'
  24718. : idempotent
  24719. this.blocking = blocking == null ? false : blocking
  24720. this.reset = reset == null ? null : reset
  24721. this.host = null
  24722. this.contentLength = null
  24723. this.contentType = null
  24724. this.headers = ''
  24725. // Only for H2
  24726. this.expectContinue = expectContinue != null ? expectContinue : false
  24727. if (Array.isArray(headers)) {
  24728. if (headers.length % 2 !== 0) {
  24729. throw new InvalidArgumentError('headers array must be even')
  24730. }
  24731. for (let i = 0; i < headers.length; i += 2) {
  24732. processHeader(this, headers[i], headers[i + 1])
  24733. }
  24734. } else if (headers && typeof headers === 'object') {
  24735. const keys = Object.keys(headers)
  24736. for (let i = 0; i < keys.length; i++) {
  24737. const key = keys[i]
  24738. processHeader(this, key, headers[key])
  24739. }
  24740. } else if (headers != null) {
  24741. throw new InvalidArgumentError('headers must be an object or an array')
  24742. }
  24743. if (util.isFormDataLike(this.body)) {
  24744. if (util.nodeMajor < 16 || (util.nodeMajor === 16 && util.nodeMinor < 8)) {
  24745. throw new InvalidArgumentError('Form-Data bodies are only supported in node v16.8 and newer.')
  24746. }
  24747. if (!extractBody) {
  24748. extractBody = (__nccwpck_require__(9990).extractBody)
  24749. }
  24750. const [bodyStream, contentType] = extractBody(body)
  24751. if (this.contentType == null) {
  24752. this.contentType = contentType
  24753. this.headers += `content-type: ${contentType}\r\n`
  24754. }
  24755. this.body = bodyStream.stream
  24756. this.contentLength = bodyStream.length
  24757. } else if (util.isBlobLike(body) && this.contentType == null && body.type) {
  24758. this.contentType = body.type
  24759. this.headers += `content-type: ${body.type}\r\n`
  24760. }
  24761. util.validateHandler(handler, method, upgrade)
  24762. this.servername = util.getServerName(this.host)
  24763. this[kHandler] = handler
  24764. if (channels.create.hasSubscribers) {
  24765. channels.create.publish({ request: this })
  24766. }
  24767. }
  24768. onBodySent (chunk) {
  24769. if (this[kHandler].onBodySent) {
  24770. try {
  24771. this[kHandler].onBodySent(chunk)
  24772. } catch (err) {
  24773. this.onError(err)
  24774. }
  24775. }
  24776. }
  24777. onRequestSent () {
  24778. if (channels.bodySent.hasSubscribers) {
  24779. channels.bodySent.publish({ request: this })
  24780. }
  24781. }
  24782. onConnect (abort) {
  24783. assert(!this.aborted)
  24784. assert(!this.completed)
  24785. return this[kHandler].onConnect(abort)
  24786. }
  24787. onHeaders (statusCode, headers, resume, statusText) {
  24788. assert(!this.aborted)
  24789. assert(!this.completed)
  24790. if (channels.headers.hasSubscribers) {
  24791. channels.headers.publish({ request: this, response: { statusCode, headers, statusText } })
  24792. }
  24793. return this[kHandler].onHeaders(statusCode, headers, resume, statusText)
  24794. }
  24795. onData (chunk) {
  24796. assert(!this.aborted)
  24797. assert(!this.completed)
  24798. return this[kHandler].onData(chunk)
  24799. }
  24800. onUpgrade (statusCode, headers, socket) {
  24801. assert(!this.aborted)
  24802. assert(!this.completed)
  24803. return this[kHandler].onUpgrade(statusCode, headers, socket)
  24804. }
  24805. onComplete (trailers) {
  24806. assert(!this.aborted)
  24807. this.completed = true
  24808. if (channels.trailers.hasSubscribers) {
  24809. channels.trailers.publish({ request: this, trailers })
  24810. }
  24811. return this[kHandler].onComplete(trailers)
  24812. }
  24813. onError (error) {
  24814. if (channels.error.hasSubscribers) {
  24815. channels.error.publish({ request: this, error })
  24816. }
  24817. if (this.aborted) {
  24818. return
  24819. }
  24820. this.aborted = true
  24821. return this[kHandler].onError(error)
  24822. }
  24823. // TODO: adjust to support H2
  24824. addHeader (key, value) {
  24825. processHeader(this, key, value)
  24826. return this
  24827. }
  24828. static [kHTTP1BuildRequest] (origin, opts, handler) {
  24829. // TODO: Migrate header parsing here, to make Requests
  24830. // HTTP agnostic
  24831. return new Request(origin, opts, handler)
  24832. }
  24833. static [kHTTP2BuildRequest] (origin, opts, handler) {
  24834. const headers = opts.headers
  24835. opts = { ...opts, headers: null }
  24836. const request = new Request(origin, opts, handler)
  24837. request.headers = {}
  24838. if (Array.isArray(headers)) {
  24839. if (headers.length % 2 !== 0) {
  24840. throw new InvalidArgumentError('headers array must be even')
  24841. }
  24842. for (let i = 0; i < headers.length; i += 2) {
  24843. processHeader(request, headers[i], headers[i + 1], true)
  24844. }
  24845. } else if (headers && typeof headers === 'object') {
  24846. const keys = Object.keys(headers)
  24847. for (let i = 0; i < keys.length; i++) {
  24848. const key = keys[i]
  24849. processHeader(request, key, headers[key], true)
  24850. }
  24851. } else if (headers != null) {
  24852. throw new InvalidArgumentError('headers must be an object or an array')
  24853. }
  24854. return request
  24855. }
  24856. static [kHTTP2CopyHeaders] (raw) {
  24857. const rawHeaders = raw.split('\r\n')
  24858. const headers = {}
  24859. for (const header of rawHeaders) {
  24860. const [key, value] = header.split(': ')
  24861. if (value == null || value.length === 0) continue
  24862. if (headers[key]) headers[key] += `,${value}`
  24863. else headers[key] = value
  24864. }
  24865. return headers
  24866. }
  24867. }
  24868. function processHeaderValue (key, val, skipAppend) {
  24869. if (val && typeof val === 'object') {
  24870. throw new InvalidArgumentError(`invalid ${key} header`)
  24871. }
  24872. val = val != null ? `${val}` : ''
  24873. if (headerCharRegex.exec(val) !== null) {
  24874. throw new InvalidArgumentError(`invalid ${key} header`)
  24875. }
  24876. return skipAppend ? val : `${key}: ${val}\r\n`
  24877. }
  24878. function processHeader (request, key, val, skipAppend = false) {
  24879. if (val && (typeof val === 'object' && !Array.isArray(val))) {
  24880. throw new InvalidArgumentError(`invalid ${key} header`)
  24881. } else if (val === undefined) {
  24882. return
  24883. }
  24884. if (
  24885. request.host === null &&
  24886. key.length === 4 &&
  24887. key.toLowerCase() === 'host'
  24888. ) {
  24889. if (headerCharRegex.exec(val) !== null) {
  24890. throw new InvalidArgumentError(`invalid ${key} header`)
  24891. }
  24892. // Consumed by Client
  24893. request.host = val
  24894. } else if (
  24895. request.contentLength === null &&
  24896. key.length === 14 &&
  24897. key.toLowerCase() === 'content-length'
  24898. ) {
  24899. request.contentLength = parseInt(val, 10)
  24900. if (!Number.isFinite(request.contentLength)) {
  24901. throw new InvalidArgumentError('invalid content-length header')
  24902. }
  24903. } else if (
  24904. request.contentType === null &&
  24905. key.length === 12 &&
  24906. key.toLowerCase() === 'content-type'
  24907. ) {
  24908. request.contentType = val
  24909. request.headers += processHeaderValue(key, val)
  24910. } else if (
  24911. key.length === 17 &&
  24912. key.toLowerCase() === 'transfer-encoding'
  24913. ) {
  24914. throw new InvalidArgumentError('invalid transfer-encoding header')
  24915. } else if (
  24916. key.length === 10 &&
  24917. key.toLowerCase() === 'connection'
  24918. ) {
  24919. const value = typeof val === 'string' ? val.toLowerCase() : null
  24920. if (value !== 'close' && value !== 'keep-alive') {
  24921. throw new InvalidArgumentError('invalid connection header')
  24922. } else if (value === 'close') {
  24923. request.reset = true
  24924. }
  24925. } else if (
  24926. key.length === 10 &&
  24927. key.toLowerCase() === 'keep-alive'
  24928. ) {
  24929. throw new InvalidArgumentError('invalid keep-alive header')
  24930. } else if (
  24931. key.length === 7 &&
  24932. key.toLowerCase() === 'upgrade'
  24933. ) {
  24934. throw new InvalidArgumentError('invalid upgrade header')
  24935. } else if (
  24936. key.length === 6 &&
  24937. key.toLowerCase() === 'expect'
  24938. ) {
  24939. throw new NotSupportedError('expect header not supported')
  24940. } else if (tokenRegExp.exec(key) === null) {
  24941. throw new InvalidArgumentError('invalid header key')
  24942. } else {
  24943. if (Array.isArray(val)) {
  24944. for (let i = 0; i < val.length; i++) {
  24945. if (skipAppend) {
  24946. if (request.headers[key]) request.headers[key] += `,${processHeaderValue(key, val[i], skipAppend)}`
  24947. else request.headers[key] = processHeaderValue(key, val[i], skipAppend)
  24948. } else {
  24949. request.headers += processHeaderValue(key, val[i])
  24950. }
  24951. }
  24952. } else {
  24953. if (skipAppend) request.headers[key] = processHeaderValue(key, val, skipAppend)
  24954. else request.headers += processHeaderValue(key, val)
  24955. }
  24956. }
  24957. }
  24958. module.exports = Request
  24959. /***/ }),
  24960. /***/ 2785:
  24961. /***/ ((module) => {
  24962. module.exports = {
  24963. kClose: Symbol('close'),
  24964. kDestroy: Symbol('destroy'),
  24965. kDispatch: Symbol('dispatch'),
  24966. kUrl: Symbol('url'),
  24967. kWriting: Symbol('writing'),
  24968. kResuming: Symbol('resuming'),
  24969. kQueue: Symbol('queue'),
  24970. kConnect: Symbol('connect'),
  24971. kConnecting: Symbol('connecting'),
  24972. kHeadersList: Symbol('headers list'),
  24973. kKeepAliveDefaultTimeout: Symbol('default keep alive timeout'),
  24974. kKeepAliveMaxTimeout: Symbol('max keep alive timeout'),
  24975. kKeepAliveTimeoutThreshold: Symbol('keep alive timeout threshold'),
  24976. kKeepAliveTimeoutValue: Symbol('keep alive timeout'),
  24977. kKeepAlive: Symbol('keep alive'),
  24978. kHeadersTimeout: Symbol('headers timeout'),
  24979. kBodyTimeout: Symbol('body timeout'),
  24980. kServerName: Symbol('server name'),
  24981. kLocalAddress: Symbol('local address'),
  24982. kHost: Symbol('host'),
  24983. kNoRef: Symbol('no ref'),
  24984. kBodyUsed: Symbol('used'),
  24985. kRunning: Symbol('running'),
  24986. kBlocking: Symbol('blocking'),
  24987. kPending: Symbol('pending'),
  24988. kSize: Symbol('size'),
  24989. kBusy: Symbol('busy'),
  24990. kQueued: Symbol('queued'),
  24991. kFree: Symbol('free'),
  24992. kConnected: Symbol('connected'),
  24993. kClosed: Symbol('closed'),
  24994. kNeedDrain: Symbol('need drain'),
  24995. kReset: Symbol('reset'),
  24996. kDestroyed: Symbol.for('nodejs.stream.destroyed'),
  24997. kMaxHeadersSize: Symbol('max headers size'),
  24998. kRunningIdx: Symbol('running index'),
  24999. kPendingIdx: Symbol('pending index'),
  25000. kError: Symbol('error'),
  25001. kClients: Symbol('clients'),
  25002. kClient: Symbol('client'),
  25003. kParser: Symbol('parser'),
  25004. kOnDestroyed: Symbol('destroy callbacks'),
  25005. kPipelining: Symbol('pipelining'),
  25006. kSocket: Symbol('socket'),
  25007. kHostHeader: Symbol('host header'),
  25008. kConnector: Symbol('connector'),
  25009. kStrictContentLength: Symbol('strict content length'),
  25010. kMaxRedirections: Symbol('maxRedirections'),
  25011. kMaxRequests: Symbol('maxRequestsPerClient'),
  25012. kProxy: Symbol('proxy agent options'),
  25013. kCounter: Symbol('socket request counter'),
  25014. kInterceptors: Symbol('dispatch interceptors'),
  25015. kMaxResponseSize: Symbol('max response size'),
  25016. kHTTP2Session: Symbol('http2Session'),
  25017. kHTTP2SessionState: Symbol('http2Session state'),
  25018. kHTTP2BuildRequest: Symbol('http2 build request'),
  25019. kHTTP1BuildRequest: Symbol('http1 build request'),
  25020. kHTTP2CopyHeaders: Symbol('http2 copy headers'),
  25021. kHTTPConnVersion: Symbol('http connection version')
  25022. }
  25023. /***/ }),
  25024. /***/ 3983:
  25025. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  25026. "use strict";
  25027. const assert = __nccwpck_require__(9491)
  25028. const { kDestroyed, kBodyUsed } = __nccwpck_require__(2785)
  25029. const { IncomingMessage } = __nccwpck_require__(3685)
  25030. const stream = __nccwpck_require__(2781)
  25031. const net = __nccwpck_require__(1808)
  25032. const { InvalidArgumentError } = __nccwpck_require__(8045)
  25033. const { Blob } = __nccwpck_require__(4300)
  25034. const nodeUtil = __nccwpck_require__(3837)
  25035. const { stringify } = __nccwpck_require__(3477)
  25036. const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v))
  25037. function nop () {}
  25038. function isStream (obj) {
  25039. return obj && typeof obj === 'object' && typeof obj.pipe === 'function' && typeof obj.on === 'function'
  25040. }
  25041. // based on https://github.com/node-fetch/fetch-blob/blob/8ab587d34080de94140b54f07168451e7d0b655e/index.js#L229-L241 (MIT License)
  25042. function isBlobLike (object) {
  25043. return (Blob && object instanceof Blob) || (
  25044. object &&
  25045. typeof object === 'object' &&
  25046. (typeof object.stream === 'function' ||
  25047. typeof object.arrayBuffer === 'function') &&
  25048. /^(Blob|File)$/.test(object[Symbol.toStringTag])
  25049. )
  25050. }
  25051. function buildURL (url, queryParams) {
  25052. if (url.includes('?') || url.includes('#')) {
  25053. throw new Error('Query params cannot be passed when url already contains "?" or "#".')
  25054. }
  25055. const stringified = stringify(queryParams)
  25056. if (stringified) {
  25057. url += '?' + stringified
  25058. }
  25059. return url
  25060. }
  25061. function parseURL (url) {
  25062. if (typeof url === 'string') {
  25063. url = new URL(url)
  25064. if (!/^https?:/.test(url.origin || url.protocol)) {
  25065. throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')
  25066. }
  25067. return url
  25068. }
  25069. if (!url || typeof url !== 'object') {
  25070. throw new InvalidArgumentError('Invalid URL: The URL argument must be a non-null object.')
  25071. }
  25072. if (!/^https?:/.test(url.origin || url.protocol)) {
  25073. throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')
  25074. }
  25075. if (!(url instanceof URL)) {
  25076. if (url.port != null && url.port !== '' && !Number.isFinite(parseInt(url.port))) {
  25077. throw new InvalidArgumentError('Invalid URL: port must be a valid integer or a string representation of an integer.')
  25078. }
  25079. if (url.path != null && typeof url.path !== 'string') {
  25080. throw new InvalidArgumentError('Invalid URL path: the path must be a string or null/undefined.')
  25081. }
  25082. if (url.pathname != null && typeof url.pathname !== 'string') {
  25083. throw new InvalidArgumentError('Invalid URL pathname: the pathname must be a string or null/undefined.')
  25084. }
  25085. if (url.hostname != null && typeof url.hostname !== 'string') {
  25086. throw new InvalidArgumentError('Invalid URL hostname: the hostname must be a string or null/undefined.')
  25087. }
  25088. if (url.origin != null && typeof url.origin !== 'string') {
  25089. throw new InvalidArgumentError('Invalid URL origin: the origin must be a string or null/undefined.')
  25090. }
  25091. const port = url.port != null
  25092. ? url.port
  25093. : (url.protocol === 'https:' ? 443 : 80)
  25094. let origin = url.origin != null
  25095. ? url.origin
  25096. : `${url.protocol}//${url.hostname}:${port}`
  25097. let path = url.path != null
  25098. ? url.path
  25099. : `${url.pathname || ''}${url.search || ''}`
  25100. if (origin.endsWith('/')) {
  25101. origin = origin.substring(0, origin.length - 1)
  25102. }
  25103. if (path && !path.startsWith('/')) {
  25104. path = `/${path}`
  25105. }
  25106. // new URL(path, origin) is unsafe when `path` contains an absolute URL
  25107. // From https://developer.mozilla.org/en-US/docs/Web/API/URL/URL:
  25108. // If first parameter is a relative URL, second param is required, and will be used as the base URL.
  25109. // If first parameter is an absolute URL, a given second param will be ignored.
  25110. url = new URL(origin + path)
  25111. }
  25112. return url
  25113. }
  25114. function parseOrigin (url) {
  25115. url = parseURL(url)
  25116. if (url.pathname !== '/' || url.search || url.hash) {
  25117. throw new InvalidArgumentError('invalid url')
  25118. }
  25119. return url
  25120. }
  25121. function getHostname (host) {
  25122. if (host[0] === '[') {
  25123. const idx = host.indexOf(']')
  25124. assert(idx !== -1)
  25125. return host.substr(1, idx - 1)
  25126. }
  25127. const idx = host.indexOf(':')
  25128. if (idx === -1) return host
  25129. return host.substr(0, idx)
  25130. }
  25131. // IP addresses are not valid server names per RFC6066
  25132. // > Currently, the only server names supported are DNS hostnames
  25133. function getServerName (host) {
  25134. if (!host) {
  25135. return null
  25136. }
  25137. assert.strictEqual(typeof host, 'string')
  25138. const servername = getHostname(host)
  25139. if (net.isIP(servername)) {
  25140. return ''
  25141. }
  25142. return servername
  25143. }
  25144. function deepClone (obj) {
  25145. return JSON.parse(JSON.stringify(obj))
  25146. }
  25147. function isAsyncIterable (obj) {
  25148. return !!(obj != null && typeof obj[Symbol.asyncIterator] === 'function')
  25149. }
  25150. function isIterable (obj) {
  25151. return !!(obj != null && (typeof obj[Symbol.iterator] === 'function' || typeof obj[Symbol.asyncIterator] === 'function'))
  25152. }
  25153. function bodyLength (body) {
  25154. if (body == null) {
  25155. return 0
  25156. } else if (isStream(body)) {
  25157. const state = body._readableState
  25158. return state && state.objectMode === false && state.ended === true && Number.isFinite(state.length)
  25159. ? state.length
  25160. : null
  25161. } else if (isBlobLike(body)) {
  25162. return body.size != null ? body.size : null
  25163. } else if (isBuffer(body)) {
  25164. return body.byteLength
  25165. }
  25166. return null
  25167. }
  25168. function isDestroyed (stream) {
  25169. return !stream || !!(stream.destroyed || stream[kDestroyed])
  25170. }
  25171. function isReadableAborted (stream) {
  25172. const state = stream && stream._readableState
  25173. return isDestroyed(stream) && state && !state.endEmitted
  25174. }
  25175. function destroy (stream, err) {
  25176. if (!isStream(stream) || isDestroyed(stream)) {
  25177. return
  25178. }
  25179. if (typeof stream.destroy === 'function') {
  25180. if (Object.getPrototypeOf(stream).constructor === IncomingMessage) {
  25181. // See: https://github.com/nodejs/node/pull/38505/files
  25182. stream.socket = null
  25183. }
  25184. stream.destroy(err)
  25185. } else if (err) {
  25186. process.nextTick((stream, err) => {
  25187. stream.emit('error', err)
  25188. }, stream, err)
  25189. }
  25190. if (stream.destroyed !== true) {
  25191. stream[kDestroyed] = true
  25192. }
  25193. }
  25194. const KEEPALIVE_TIMEOUT_EXPR = /timeout=(\d+)/
  25195. function parseKeepAliveTimeout (val) {
  25196. const m = val.toString().match(KEEPALIVE_TIMEOUT_EXPR)
  25197. return m ? parseInt(m[1], 10) * 1000 : null
  25198. }
  25199. function parseHeaders (headers, obj = {}) {
  25200. // For H2 support
  25201. if (!Array.isArray(headers)) return headers
  25202. for (let i = 0; i < headers.length; i += 2) {
  25203. const key = headers[i].toString().toLowerCase()
  25204. let val = obj[key]
  25205. if (!val) {
  25206. if (Array.isArray(headers[i + 1])) {
  25207. obj[key] = headers[i + 1]
  25208. } else {
  25209. obj[key] = headers[i + 1].toString('utf8')
  25210. }
  25211. } else {
  25212. if (!Array.isArray(val)) {
  25213. val = [val]
  25214. obj[key] = val
  25215. }
  25216. val.push(headers[i + 1].toString('utf8'))
  25217. }
  25218. }
  25219. // See https://github.com/nodejs/node/pull/46528
  25220. if ('content-length' in obj && 'content-disposition' in obj) {
  25221. obj['content-disposition'] = Buffer.from(obj['content-disposition']).toString('latin1')
  25222. }
  25223. return obj
  25224. }
  25225. function parseRawHeaders (headers) {
  25226. const ret = []
  25227. let hasContentLength = false
  25228. let contentDispositionIdx = -1
  25229. for (let n = 0; n < headers.length; n += 2) {
  25230. const key = headers[n + 0].toString()
  25231. const val = headers[n + 1].toString('utf8')
  25232. if (key.length === 14 && (key === 'content-length' || key.toLowerCase() === 'content-length')) {
  25233. ret.push(key, val)
  25234. hasContentLength = true
  25235. } else if (key.length === 19 && (key === 'content-disposition' || key.toLowerCase() === 'content-disposition')) {
  25236. contentDispositionIdx = ret.push(key, val) - 1
  25237. } else {
  25238. ret.push(key, val)
  25239. }
  25240. }
  25241. // See https://github.com/nodejs/node/pull/46528
  25242. if (hasContentLength && contentDispositionIdx !== -1) {
  25243. ret[contentDispositionIdx] = Buffer.from(ret[contentDispositionIdx]).toString('latin1')
  25244. }
  25245. return ret
  25246. }
  25247. function isBuffer (buffer) {
  25248. // See, https://github.com/mcollina/undici/pull/319
  25249. return buffer instanceof Uint8Array || Buffer.isBuffer(buffer)
  25250. }
  25251. function validateHandler (handler, method, upgrade) {
  25252. if (!handler || typeof handler !== 'object') {
  25253. throw new InvalidArgumentError('handler must be an object')
  25254. }
  25255. if (typeof handler.onConnect !== 'function') {
  25256. throw new InvalidArgumentError('invalid onConnect method')
  25257. }
  25258. if (typeof handler.onError !== 'function') {
  25259. throw new InvalidArgumentError('invalid onError method')
  25260. }
  25261. if (typeof handler.onBodySent !== 'function' && handler.onBodySent !== undefined) {
  25262. throw new InvalidArgumentError('invalid onBodySent method')
  25263. }
  25264. if (upgrade || method === 'CONNECT') {
  25265. if (typeof handler.onUpgrade !== 'function') {
  25266. throw new InvalidArgumentError('invalid onUpgrade method')
  25267. }
  25268. } else {
  25269. if (typeof handler.onHeaders !== 'function') {
  25270. throw new InvalidArgumentError('invalid onHeaders method')
  25271. }
  25272. if (typeof handler.onData !== 'function') {
  25273. throw new InvalidArgumentError('invalid onData method')
  25274. }
  25275. if (typeof handler.onComplete !== 'function') {
  25276. throw new InvalidArgumentError('invalid onComplete method')
  25277. }
  25278. }
  25279. }
  25280. // A body is disturbed if it has been read from and it cannot
  25281. // be re-used without losing state or data.
  25282. function isDisturbed (body) {
  25283. return !!(body && (
  25284. stream.isDisturbed
  25285. ? stream.isDisturbed(body) || body[kBodyUsed] // TODO (fix): Why is body[kBodyUsed] needed?
  25286. : body[kBodyUsed] ||
  25287. body.readableDidRead ||
  25288. (body._readableState && body._readableState.dataEmitted) ||
  25289. isReadableAborted(body)
  25290. ))
  25291. }
  25292. function isErrored (body) {
  25293. return !!(body && (
  25294. stream.isErrored
  25295. ? stream.isErrored(body)
  25296. : /state: 'errored'/.test(nodeUtil.inspect(body)
  25297. )))
  25298. }
  25299. function isReadable (body) {
  25300. return !!(body && (
  25301. stream.isReadable
  25302. ? stream.isReadable(body)
  25303. : /state: 'readable'/.test(nodeUtil.inspect(body)
  25304. )))
  25305. }
  25306. function getSocketInfo (socket) {
  25307. return {
  25308. localAddress: socket.localAddress,
  25309. localPort: socket.localPort,
  25310. remoteAddress: socket.remoteAddress,
  25311. remotePort: socket.remotePort,
  25312. remoteFamily: socket.remoteFamily,
  25313. timeout: socket.timeout,
  25314. bytesWritten: socket.bytesWritten,
  25315. bytesRead: socket.bytesRead
  25316. }
  25317. }
  25318. async function * convertIterableToBuffer (iterable) {
  25319. for await (const chunk of iterable) {
  25320. yield Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk)
  25321. }
  25322. }
  25323. let ReadableStream
  25324. function ReadableStreamFrom (iterable) {
  25325. if (!ReadableStream) {
  25326. ReadableStream = (__nccwpck_require__(5356).ReadableStream)
  25327. }
  25328. if (ReadableStream.from) {
  25329. return ReadableStream.from(convertIterableToBuffer(iterable))
  25330. }
  25331. let iterator
  25332. return new ReadableStream(
  25333. {
  25334. async start () {
  25335. iterator = iterable[Symbol.asyncIterator]()
  25336. },
  25337. async pull (controller) {
  25338. const { done, value } = await iterator.next()
  25339. if (done) {
  25340. queueMicrotask(() => {
  25341. controller.close()
  25342. })
  25343. } else {
  25344. const buf = Buffer.isBuffer(value) ? value : Buffer.from(value)
  25345. controller.enqueue(new Uint8Array(buf))
  25346. }
  25347. return controller.desiredSize > 0
  25348. },
  25349. async cancel (reason) {
  25350. await iterator.return()
  25351. }
  25352. },
  25353. 0
  25354. )
  25355. }
  25356. // The chunk should be a FormData instance and contains
  25357. // all the required methods.
  25358. function isFormDataLike (object) {
  25359. return (
  25360. object &&
  25361. typeof object === 'object' &&
  25362. typeof object.append === 'function' &&
  25363. typeof object.delete === 'function' &&
  25364. typeof object.get === 'function' &&
  25365. typeof object.getAll === 'function' &&
  25366. typeof object.has === 'function' &&
  25367. typeof object.set === 'function' &&
  25368. object[Symbol.toStringTag] === 'FormData'
  25369. )
  25370. }
  25371. function throwIfAborted (signal) {
  25372. if (!signal) { return }
  25373. if (typeof signal.throwIfAborted === 'function') {
  25374. signal.throwIfAborted()
  25375. } else {
  25376. if (signal.aborted) {
  25377. // DOMException not available < v17.0.0
  25378. const err = new Error('The operation was aborted')
  25379. err.name = 'AbortError'
  25380. throw err
  25381. }
  25382. }
  25383. }
  25384. let events
  25385. function addAbortListener (signal, listener) {
  25386. if (typeof Symbol.dispose === 'symbol') {
  25387. if (!events) {
  25388. events = __nccwpck_require__(2361)
  25389. }
  25390. if (typeof events.addAbortListener === 'function' && 'aborted' in signal) {
  25391. return events.addAbortListener(signal, listener)
  25392. }
  25393. }
  25394. if ('addEventListener' in signal) {
  25395. signal.addEventListener('abort', listener, { once: true })
  25396. return () => signal.removeEventListener('abort', listener)
  25397. }
  25398. signal.addListener('abort', listener)
  25399. return () => signal.removeListener('abort', listener)
  25400. }
  25401. const hasToWellFormed = !!String.prototype.toWellFormed
  25402. /**
  25403. * @param {string} val
  25404. */
  25405. function toUSVString (val) {
  25406. if (hasToWellFormed) {
  25407. return `${val}`.toWellFormed()
  25408. } else if (nodeUtil.toUSVString) {
  25409. return nodeUtil.toUSVString(val)
  25410. }
  25411. return `${val}`
  25412. }
  25413. const kEnumerableProperty = Object.create(null)
  25414. kEnumerableProperty.enumerable = true
  25415. module.exports = {
  25416. kEnumerableProperty,
  25417. nop,
  25418. isDisturbed,
  25419. isErrored,
  25420. isReadable,
  25421. toUSVString,
  25422. isReadableAborted,
  25423. isBlobLike,
  25424. parseOrigin,
  25425. parseURL,
  25426. getServerName,
  25427. isStream,
  25428. isIterable,
  25429. isAsyncIterable,
  25430. isDestroyed,
  25431. parseRawHeaders,
  25432. parseHeaders,
  25433. parseKeepAliveTimeout,
  25434. destroy,
  25435. bodyLength,
  25436. deepClone,
  25437. ReadableStreamFrom,
  25438. isBuffer,
  25439. validateHandler,
  25440. getSocketInfo,
  25441. isFormDataLike,
  25442. buildURL,
  25443. throwIfAborted,
  25444. addAbortListener,
  25445. nodeMajor,
  25446. nodeMinor,
  25447. nodeHasAutoSelectFamily: nodeMajor > 18 || (nodeMajor === 18 && nodeMinor >= 13)
  25448. }
  25449. /***/ }),
  25450. /***/ 4839:
  25451. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  25452. "use strict";
  25453. const Dispatcher = __nccwpck_require__(412)
  25454. const {
  25455. ClientDestroyedError,
  25456. ClientClosedError,
  25457. InvalidArgumentError
  25458. } = __nccwpck_require__(8045)
  25459. const { kDestroy, kClose, kDispatch, kInterceptors } = __nccwpck_require__(2785)
  25460. const kDestroyed = Symbol('destroyed')
  25461. const kClosed = Symbol('closed')
  25462. const kOnDestroyed = Symbol('onDestroyed')
  25463. const kOnClosed = Symbol('onClosed')
  25464. const kInterceptedDispatch = Symbol('Intercepted Dispatch')
  25465. class DispatcherBase extends Dispatcher {
  25466. constructor () {
  25467. super()
  25468. this[kDestroyed] = false
  25469. this[kOnDestroyed] = null
  25470. this[kClosed] = false
  25471. this[kOnClosed] = []
  25472. }
  25473. get destroyed () {
  25474. return this[kDestroyed]
  25475. }
  25476. get closed () {
  25477. return this[kClosed]
  25478. }
  25479. get interceptors () {
  25480. return this[kInterceptors]
  25481. }
  25482. set interceptors (newInterceptors) {
  25483. if (newInterceptors) {
  25484. for (let i = newInterceptors.length - 1; i >= 0; i--) {
  25485. const interceptor = this[kInterceptors][i]
  25486. if (typeof interceptor !== 'function') {
  25487. throw new InvalidArgumentError('interceptor must be an function')
  25488. }
  25489. }
  25490. }
  25491. this[kInterceptors] = newInterceptors
  25492. }
  25493. close (callback) {
  25494. if (callback === undefined) {
  25495. return new Promise((resolve, reject) => {
  25496. this.close((err, data) => {
  25497. return err ? reject(err) : resolve(data)
  25498. })
  25499. })
  25500. }
  25501. if (typeof callback !== 'function') {
  25502. throw new InvalidArgumentError('invalid callback')
  25503. }
  25504. if (this[kDestroyed]) {
  25505. queueMicrotask(() => callback(new ClientDestroyedError(), null))
  25506. return
  25507. }
  25508. if (this[kClosed]) {
  25509. if (this[kOnClosed]) {
  25510. this[kOnClosed].push(callback)
  25511. } else {
  25512. queueMicrotask(() => callback(null, null))
  25513. }
  25514. return
  25515. }
  25516. this[kClosed] = true
  25517. this[kOnClosed].push(callback)
  25518. const onClosed = () => {
  25519. const callbacks = this[kOnClosed]
  25520. this[kOnClosed] = null
  25521. for (let i = 0; i < callbacks.length; i++) {
  25522. callbacks[i](null, null)
  25523. }
  25524. }
  25525. // Should not error.
  25526. this[kClose]()
  25527. .then(() => this.destroy())
  25528. .then(() => {
  25529. queueMicrotask(onClosed)
  25530. })
  25531. }
  25532. destroy (err, callback) {
  25533. if (typeof err === 'function') {
  25534. callback = err
  25535. err = null
  25536. }
  25537. if (callback === undefined) {
  25538. return new Promise((resolve, reject) => {
  25539. this.destroy(err, (err, data) => {
  25540. return err ? /* istanbul ignore next: should never error */ reject(err) : resolve(data)
  25541. })
  25542. })
  25543. }
  25544. if (typeof callback !== 'function') {
  25545. throw new InvalidArgumentError('invalid callback')
  25546. }
  25547. if (this[kDestroyed]) {
  25548. if (this[kOnDestroyed]) {
  25549. this[kOnDestroyed].push(callback)
  25550. } else {
  25551. queueMicrotask(() => callback(null, null))
  25552. }
  25553. return
  25554. }
  25555. if (!err) {
  25556. err = new ClientDestroyedError()
  25557. }
  25558. this[kDestroyed] = true
  25559. this[kOnDestroyed] = this[kOnDestroyed] || []
  25560. this[kOnDestroyed].push(callback)
  25561. const onDestroyed = () => {
  25562. const callbacks = this[kOnDestroyed]
  25563. this[kOnDestroyed] = null
  25564. for (let i = 0; i < callbacks.length; i++) {
  25565. callbacks[i](null, null)
  25566. }
  25567. }
  25568. // Should not error.
  25569. this[kDestroy](err).then(() => {
  25570. queueMicrotask(onDestroyed)
  25571. })
  25572. }
  25573. [kInterceptedDispatch] (opts, handler) {
  25574. if (!this[kInterceptors] || this[kInterceptors].length === 0) {
  25575. this[kInterceptedDispatch] = this[kDispatch]
  25576. return this[kDispatch](opts, handler)
  25577. }
  25578. let dispatch = this[kDispatch].bind(this)
  25579. for (let i = this[kInterceptors].length - 1; i >= 0; i--) {
  25580. dispatch = this[kInterceptors][i](dispatch)
  25581. }
  25582. this[kInterceptedDispatch] = dispatch
  25583. return dispatch(opts, handler)
  25584. }
  25585. dispatch (opts, handler) {
  25586. if (!handler || typeof handler !== 'object') {
  25587. throw new InvalidArgumentError('handler must be an object')
  25588. }
  25589. try {
  25590. if (!opts || typeof opts !== 'object') {
  25591. throw new InvalidArgumentError('opts must be an object.')
  25592. }
  25593. if (this[kDestroyed] || this[kOnDestroyed]) {
  25594. throw new ClientDestroyedError()
  25595. }
  25596. if (this[kClosed]) {
  25597. throw new ClientClosedError()
  25598. }
  25599. return this[kInterceptedDispatch](opts, handler)
  25600. } catch (err) {
  25601. if (typeof handler.onError !== 'function') {
  25602. throw new InvalidArgumentError('invalid onError method')
  25603. }
  25604. handler.onError(err)
  25605. return false
  25606. }
  25607. }
  25608. }
  25609. module.exports = DispatcherBase
  25610. /***/ }),
  25611. /***/ 412:
  25612. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  25613. "use strict";
  25614. const EventEmitter = __nccwpck_require__(2361)
  25615. class Dispatcher extends EventEmitter {
  25616. dispatch () {
  25617. throw new Error('not implemented')
  25618. }
  25619. close () {
  25620. throw new Error('not implemented')
  25621. }
  25622. destroy () {
  25623. throw new Error('not implemented')
  25624. }
  25625. }
  25626. module.exports = Dispatcher
  25627. /***/ }),
  25628. /***/ 9990:
  25629. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  25630. "use strict";
  25631. const Busboy = __nccwpck_require__(3438)
  25632. const util = __nccwpck_require__(3983)
  25633. const {
  25634. ReadableStreamFrom,
  25635. isBlobLike,
  25636. isReadableStreamLike,
  25637. readableStreamClose,
  25638. createDeferredPromise,
  25639. fullyReadBody
  25640. } = __nccwpck_require__(2538)
  25641. const { FormData } = __nccwpck_require__(2015)
  25642. const { kState } = __nccwpck_require__(5861)
  25643. const { webidl } = __nccwpck_require__(1744)
  25644. const { DOMException, structuredClone } = __nccwpck_require__(1037)
  25645. const { Blob, File: NativeFile } = __nccwpck_require__(4300)
  25646. const { kBodyUsed } = __nccwpck_require__(2785)
  25647. const assert = __nccwpck_require__(9491)
  25648. const { isErrored } = __nccwpck_require__(3983)
  25649. const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
  25650. const { File: UndiciFile } = __nccwpck_require__(8511)
  25651. const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
  25652. let ReadableStream = globalThis.ReadableStream
  25653. /** @type {globalThis['File']} */
  25654. const File = NativeFile ?? UndiciFile
  25655. // https://fetch.spec.whatwg.org/#concept-bodyinit-extract
  25656. function extractBody (object, keepalive = false) {
  25657. if (!ReadableStream) {
  25658. ReadableStream = (__nccwpck_require__(5356).ReadableStream)
  25659. }
  25660. // 1. Let stream be null.
  25661. let stream = null
  25662. // 2. If object is a ReadableStream object, then set stream to object.
  25663. if (object instanceof ReadableStream) {
  25664. stream = object
  25665. } else if (isBlobLike(object)) {
  25666. // 3. Otherwise, if object is a Blob object, set stream to the
  25667. // result of running object’s get stream.
  25668. stream = object.stream()
  25669. } else {
  25670. // 4. Otherwise, set stream to a new ReadableStream object, and set
  25671. // up stream.
  25672. stream = new ReadableStream({
  25673. async pull (controller) {
  25674. controller.enqueue(
  25675. typeof source === 'string' ? new TextEncoder().encode(source) : source
  25676. )
  25677. queueMicrotask(() => readableStreamClose(controller))
  25678. },
  25679. start () {},
  25680. type: undefined
  25681. })
  25682. }
  25683. // 5. Assert: stream is a ReadableStream object.
  25684. assert(isReadableStreamLike(stream))
  25685. // 6. Let action be null.
  25686. let action = null
  25687. // 7. Let source be null.
  25688. let source = null
  25689. // 8. Let length be null.
  25690. let length = null
  25691. // 9. Let type be null.
  25692. let type = null
  25693. // 10. Switch on object:
  25694. if (typeof object === 'string') {
  25695. // Set source to the UTF-8 encoding of object.
  25696. // Note: setting source to a Uint8Array here breaks some mocking assumptions.
  25697. source = object
  25698. // Set type to `text/plain;charset=UTF-8`.
  25699. type = 'text/plain;charset=UTF-8'
  25700. } else if (object instanceof URLSearchParams) {
  25701. // URLSearchParams
  25702. // spec says to run application/x-www-form-urlencoded on body.list
  25703. // this is implemented in Node.js as apart of an URLSearchParams instance toString method
  25704. // See: https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L490
  25705. // and https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L1100
  25706. // Set source to the result of running the application/x-www-form-urlencoded serializer with object’s list.
  25707. source = object.toString()
  25708. // Set type to `application/x-www-form-urlencoded;charset=UTF-8`.
  25709. type = 'application/x-www-form-urlencoded;charset=UTF-8'
  25710. } else if (isArrayBuffer(object)) {
  25711. // BufferSource/ArrayBuffer
  25712. // Set source to a copy of the bytes held by object.
  25713. source = new Uint8Array(object.slice())
  25714. } else if (ArrayBuffer.isView(object)) {
  25715. // BufferSource/ArrayBufferView
  25716. // Set source to a copy of the bytes held by object.
  25717. source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
  25718. } else if (util.isFormDataLike(object)) {
  25719. const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
  25720. const prefix = `--${boundary}\r\nContent-Disposition: form-data`
  25721. /*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
  25722. const escape = (str) =>
  25723. str.replace(/\n/g, '%0A').replace(/\r/g, '%0D').replace(/"/g, '%22')
  25724. const normalizeLinefeeds = (value) => value.replace(/\r?\n|\r/g, '\r\n')
  25725. // Set action to this step: run the multipart/form-data
  25726. // encoding algorithm, with object’s entry list and UTF-8.
  25727. // - This ensures that the body is immutable and can't be changed afterwords
  25728. // - That the content-length is calculated in advance.
  25729. // - And that all parts are pre-encoded and ready to be sent.
  25730. const enc = new TextEncoder()
  25731. const blobParts = []
  25732. const rn = new Uint8Array([13, 10]) // '\r\n'
  25733. length = 0
  25734. let hasUnknownSizeValue = false
  25735. for (const [name, value] of object) {
  25736. if (typeof value === 'string') {
  25737. const chunk = enc.encode(prefix +
  25738. `; name="${escape(normalizeLinefeeds(name))}"` +
  25739. `\r\n\r\n${normalizeLinefeeds(value)}\r\n`)
  25740. blobParts.push(chunk)
  25741. length += chunk.byteLength
  25742. } else {
  25743. const chunk = enc.encode(`${prefix}; name="${escape(normalizeLinefeeds(name))}"` +
  25744. (value.name ? `; filename="${escape(value.name)}"` : '') + '\r\n' +
  25745. `Content-Type: ${
  25746. value.type || 'application/octet-stream'
  25747. }\r\n\r\n`)
  25748. blobParts.push(chunk, value, rn)
  25749. if (typeof value.size === 'number') {
  25750. length += chunk.byteLength + value.size + rn.byteLength
  25751. } else {
  25752. hasUnknownSizeValue = true
  25753. }
  25754. }
  25755. }
  25756. const chunk = enc.encode(`--${boundary}--`)
  25757. blobParts.push(chunk)
  25758. length += chunk.byteLength
  25759. if (hasUnknownSizeValue) {
  25760. length = null
  25761. }
  25762. // Set source to object.
  25763. source = object
  25764. action = async function * () {
  25765. for (const part of blobParts) {
  25766. if (part.stream) {
  25767. yield * part.stream()
  25768. } else {
  25769. yield part
  25770. }
  25771. }
  25772. }
  25773. // Set type to `multipart/form-data; boundary=`,
  25774. // followed by the multipart/form-data boundary string generated
  25775. // by the multipart/form-data encoding algorithm.
  25776. type = 'multipart/form-data; boundary=' + boundary
  25777. } else if (isBlobLike(object)) {
  25778. // Blob
  25779. // Set source to object.
  25780. source = object
  25781. // Set length to object’s size.
  25782. length = object.size
  25783. // If object’s type attribute is not the empty byte sequence, set
  25784. // type to its value.
  25785. if (object.type) {
  25786. type = object.type
  25787. }
  25788. } else if (typeof object[Symbol.asyncIterator] === 'function') {
  25789. // If keepalive is true, then throw a TypeError.
  25790. if (keepalive) {
  25791. throw new TypeError('keepalive')
  25792. }
  25793. // If object is disturbed or locked, then throw a TypeError.
  25794. if (util.isDisturbed(object) || object.locked) {
  25795. throw new TypeError(
  25796. 'Response body object should not be disturbed or locked'
  25797. )
  25798. }
  25799. stream =
  25800. object instanceof ReadableStream ? object : ReadableStreamFrom(object)
  25801. }
  25802. // 11. If source is a byte sequence, then set action to a
  25803. // step that returns source and length to source’s length.
  25804. if (typeof source === 'string' || util.isBuffer(source)) {
  25805. length = Buffer.byteLength(source)
  25806. }
  25807. // 12. If action is non-null, then run these steps in in parallel:
  25808. if (action != null) {
  25809. // Run action.
  25810. let iterator
  25811. stream = new ReadableStream({
  25812. async start () {
  25813. iterator = action(object)[Symbol.asyncIterator]()
  25814. },
  25815. async pull (controller) {
  25816. const { value, done } = await iterator.next()
  25817. if (done) {
  25818. // When running action is done, close stream.
  25819. queueMicrotask(() => {
  25820. controller.close()
  25821. })
  25822. } else {
  25823. // Whenever one or more bytes are available and stream is not errored,
  25824. // enqueue a Uint8Array wrapping an ArrayBuffer containing the available
  25825. // bytes into stream.
  25826. if (!isErrored(stream)) {
  25827. controller.enqueue(new Uint8Array(value))
  25828. }
  25829. }
  25830. return controller.desiredSize > 0
  25831. },
  25832. async cancel (reason) {
  25833. await iterator.return()
  25834. },
  25835. type: undefined
  25836. })
  25837. }
  25838. // 13. Let body be a body whose stream is stream, source is source,
  25839. // and length is length.
  25840. const body = { stream, source, length }
  25841. // 14. Return (body, type).
  25842. return [body, type]
  25843. }
  25844. // https://fetch.spec.whatwg.org/#bodyinit-safely-extract
  25845. function safelyExtractBody (object, keepalive = false) {
  25846. if (!ReadableStream) {
  25847. // istanbul ignore next
  25848. ReadableStream = (__nccwpck_require__(5356).ReadableStream)
  25849. }
  25850. // To safely extract a body and a `Content-Type` value from
  25851. // a byte sequence or BodyInit object object, run these steps:
  25852. // 1. If object is a ReadableStream object, then:
  25853. if (object instanceof ReadableStream) {
  25854. // Assert: object is neither disturbed nor locked.
  25855. // istanbul ignore next
  25856. assert(!util.isDisturbed(object), 'The body has already been consumed.')
  25857. // istanbul ignore next
  25858. assert(!object.locked, 'The stream is locked.')
  25859. }
  25860. // 2. Return the results of extracting object.
  25861. return extractBody(object, keepalive)
  25862. }
  25863. function cloneBody (body) {
  25864. // To clone a body body, run these steps:
  25865. // https://fetch.spec.whatwg.org/#concept-body-clone
  25866. // 1. Let « out1, out2 » be the result of teeing body’s stream.
  25867. const [out1, out2] = body.stream.tee()
  25868. const out2Clone = structuredClone(out2, { transfer: [out2] })
  25869. // This, for whatever reasons, unrefs out2Clone which allows
  25870. // the process to exit by itself.
  25871. const [, finalClone] = out2Clone.tee()
  25872. // 2. Set body’s stream to out1.
  25873. body.stream = out1
  25874. // 3. Return a body whose stream is out2 and other members are copied from body.
  25875. return {
  25876. stream: finalClone,
  25877. length: body.length,
  25878. source: body.source
  25879. }
  25880. }
  25881. async function * consumeBody (body) {
  25882. if (body) {
  25883. if (isUint8Array(body)) {
  25884. yield body
  25885. } else {
  25886. const stream = body.stream
  25887. if (util.isDisturbed(stream)) {
  25888. throw new TypeError('The body has already been consumed.')
  25889. }
  25890. if (stream.locked) {
  25891. throw new TypeError('The stream is locked.')
  25892. }
  25893. // Compat.
  25894. stream[kBodyUsed] = true
  25895. yield * stream
  25896. }
  25897. }
  25898. }
  25899. function throwIfAborted (state) {
  25900. if (state.aborted) {
  25901. throw new DOMException('The operation was aborted.', 'AbortError')
  25902. }
  25903. }
  25904. function bodyMixinMethods (instance) {
  25905. const methods = {
  25906. blob () {
  25907. // The blob() method steps are to return the result of
  25908. // running consume body with this and the following step
  25909. // given a byte sequence bytes: return a Blob whose
  25910. // contents are bytes and whose type attribute is this’s
  25911. // MIME type.
  25912. return specConsumeBody(this, (bytes) => {
  25913. let mimeType = bodyMimeType(this)
  25914. if (mimeType === 'failure') {
  25915. mimeType = ''
  25916. } else if (mimeType) {
  25917. mimeType = serializeAMimeType(mimeType)
  25918. }
  25919. // Return a Blob whose contents are bytes and type attribute
  25920. // is mimeType.
  25921. return new Blob([bytes], { type: mimeType })
  25922. }, instance)
  25923. },
  25924. arrayBuffer () {
  25925. // The arrayBuffer() method steps are to return the result
  25926. // of running consume body with this and the following step
  25927. // given a byte sequence bytes: return a new ArrayBuffer
  25928. // whose contents are bytes.
  25929. return specConsumeBody(this, (bytes) => {
  25930. return new Uint8Array(bytes).buffer
  25931. }, instance)
  25932. },
  25933. text () {
  25934. // The text() method steps are to return the result of running
  25935. // consume body with this and UTF-8 decode.
  25936. return specConsumeBody(this, utf8DecodeBytes, instance)
  25937. },
  25938. json () {
  25939. // The json() method steps are to return the result of running
  25940. // consume body with this and parse JSON from bytes.
  25941. return specConsumeBody(this, parseJSONFromBytes, instance)
  25942. },
  25943. async formData () {
  25944. webidl.brandCheck(this, instance)
  25945. throwIfAborted(this[kState])
  25946. const contentType = this.headers.get('Content-Type')
  25947. // If mimeType’s essence is "multipart/form-data", then:
  25948. if (/multipart\/form-data/.test(contentType)) {
  25949. const headers = {}
  25950. for (const [key, value] of this.headers) headers[key.toLowerCase()] = value
  25951. const responseFormData = new FormData()
  25952. let busboy
  25953. try {
  25954. busboy = new Busboy({
  25955. headers,
  25956. preservePath: true
  25957. })
  25958. } catch (err) {
  25959. throw new DOMException(`${err}`, 'AbortError')
  25960. }
  25961. busboy.on('field', (name, value) => {
  25962. responseFormData.append(name, value)
  25963. })
  25964. busboy.on('file', (name, value, filename, encoding, mimeType) => {
  25965. const chunks = []
  25966. if (encoding === 'base64' || encoding.toLowerCase() === 'base64') {
  25967. let base64chunk = ''
  25968. value.on('data', (chunk) => {
  25969. base64chunk += chunk.toString().replace(/[\r\n]/gm, '')
  25970. const end = base64chunk.length - base64chunk.length % 4
  25971. chunks.push(Buffer.from(base64chunk.slice(0, end), 'base64'))
  25972. base64chunk = base64chunk.slice(end)
  25973. })
  25974. value.on('end', () => {
  25975. chunks.push(Buffer.from(base64chunk, 'base64'))
  25976. responseFormData.append(name, new File(chunks, filename, { type: mimeType }))
  25977. })
  25978. } else {
  25979. value.on('data', (chunk) => {
  25980. chunks.push(chunk)
  25981. })
  25982. value.on('end', () => {
  25983. responseFormData.append(name, new File(chunks, filename, { type: mimeType }))
  25984. })
  25985. }
  25986. })
  25987. const busboyResolve = new Promise((resolve, reject) => {
  25988. busboy.on('finish', resolve)
  25989. busboy.on('error', (err) => reject(new TypeError(err)))
  25990. })
  25991. if (this.body !== null) for await (const chunk of consumeBody(this[kState].body)) busboy.write(chunk)
  25992. busboy.end()
  25993. await busboyResolve
  25994. return responseFormData
  25995. } else if (/application\/x-www-form-urlencoded/.test(contentType)) {
  25996. // Otherwise, if mimeType’s essence is "application/x-www-form-urlencoded", then:
  25997. // 1. Let entries be the result of parsing bytes.
  25998. let entries
  25999. try {
  26000. let text = ''
  26001. // application/x-www-form-urlencoded parser will keep the BOM.
  26002. // https://url.spec.whatwg.org/#concept-urlencoded-parser
  26003. const textDecoder = new TextDecoder('utf-8', { ignoreBOM: true })
  26004. for await (const chunk of consumeBody(this[kState].body)) {
  26005. if (!isUint8Array(chunk)) {
  26006. throw new TypeError('Expected Uint8Array chunk')
  26007. }
  26008. text += textDecoder.decode(chunk, { stream: true })
  26009. }
  26010. text += textDecoder.decode()
  26011. entries = new URLSearchParams(text)
  26012. } catch (err) {
  26013. // istanbul ignore next: Unclear when new URLSearchParams can fail on a string.
  26014. // 2. If entries is failure, then throw a TypeError.
  26015. throw Object.assign(new TypeError(), { cause: err })
  26016. }
  26017. // 3. Return a new FormData object whose entries are entries.
  26018. const formData = new FormData()
  26019. for (const [name, value] of entries) {
  26020. formData.append(name, value)
  26021. }
  26022. return formData
  26023. } else {
  26024. // Wait a tick before checking if the request has been aborted.
  26025. // Otherwise, a TypeError can be thrown when an AbortError should.
  26026. await Promise.resolve()
  26027. throwIfAborted(this[kState])
  26028. // Otherwise, throw a TypeError.
  26029. throw webidl.errors.exception({
  26030. header: `${instance.name}.formData`,
  26031. message: 'Could not parse content as FormData.'
  26032. })
  26033. }
  26034. }
  26035. }
  26036. return methods
  26037. }
  26038. function mixinBody (prototype) {
  26039. Object.assign(prototype.prototype, bodyMixinMethods(prototype))
  26040. }
  26041. /**
  26042. * @see https://fetch.spec.whatwg.org/#concept-body-consume-body
  26043. * @param {Response|Request} object
  26044. * @param {(value: unknown) => unknown} convertBytesToJSValue
  26045. * @param {Response|Request} instance
  26046. */
  26047. async function specConsumeBody (object, convertBytesToJSValue, instance) {
  26048. webidl.brandCheck(object, instance)
  26049. throwIfAborted(object[kState])
  26050. // 1. If object is unusable, then return a promise rejected
  26051. // with a TypeError.
  26052. if (bodyUnusable(object[kState].body)) {
  26053. throw new TypeError('Body is unusable')
  26054. }
  26055. // 2. Let promise be a new promise.
  26056. const promise = createDeferredPromise()
  26057. // 3. Let errorSteps given error be to reject promise with error.
  26058. const errorSteps = (error) => promise.reject(error)
  26059. // 4. Let successSteps given a byte sequence data be to resolve
  26060. // promise with the result of running convertBytesToJSValue
  26061. // with data. If that threw an exception, then run errorSteps
  26062. // with that exception.
  26063. const successSteps = (data) => {
  26064. try {
  26065. promise.resolve(convertBytesToJSValue(data))
  26066. } catch (e) {
  26067. errorSteps(e)
  26068. }
  26069. }
  26070. // 5. If object’s body is null, then run successSteps with an
  26071. // empty byte sequence.
  26072. if (object[kState].body == null) {
  26073. successSteps(new Uint8Array())
  26074. return promise.promise
  26075. }
  26076. // 6. Otherwise, fully read object’s body given successSteps,
  26077. // errorSteps, and object’s relevant global object.
  26078. await fullyReadBody(object[kState].body, successSteps, errorSteps)
  26079. // 7. Return promise.
  26080. return promise.promise
  26081. }
  26082. // https://fetch.spec.whatwg.org/#body-unusable
  26083. function bodyUnusable (body) {
  26084. // An object including the Body interface mixin is
  26085. // said to be unusable if its body is non-null and
  26086. // its body’s stream is disturbed or locked.
  26087. return body != null && (body.stream.locked || util.isDisturbed(body.stream))
  26088. }
  26089. /**
  26090. * @see https://encoding.spec.whatwg.org/#utf-8-decode
  26091. * @param {Buffer} buffer
  26092. */
  26093. function utf8DecodeBytes (buffer) {
  26094. if (buffer.length === 0) {
  26095. return ''
  26096. }
  26097. // 1. Let buffer be the result of peeking three bytes from
  26098. // ioQueue, converted to a byte sequence.
  26099. // 2. If buffer is 0xEF 0xBB 0xBF, then read three
  26100. // bytes from ioQueue. (Do nothing with those bytes.)
  26101. if (buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) {
  26102. buffer = buffer.subarray(3)
  26103. }
  26104. // 3. Process a queue with an instance of UTF-8’s
  26105. // decoder, ioQueue, output, and "replacement".
  26106. const output = new TextDecoder().decode(buffer)
  26107. // 4. Return output.
  26108. return output
  26109. }
  26110. /**
  26111. * @see https://infra.spec.whatwg.org/#parse-json-bytes-to-a-javascript-value
  26112. * @param {Uint8Array} bytes
  26113. */
  26114. function parseJSONFromBytes (bytes) {
  26115. return JSON.parse(utf8DecodeBytes(bytes))
  26116. }
  26117. /**
  26118. * @see https://fetch.spec.whatwg.org/#concept-body-mime-type
  26119. * @param {import('./response').Response|import('./request').Request} object
  26120. */
  26121. function bodyMimeType (object) {
  26122. const { headersList } = object[kState]
  26123. const contentType = headersList.get('content-type')
  26124. if (contentType === null) {
  26125. return 'failure'
  26126. }
  26127. return parseMIMEType(contentType)
  26128. }
  26129. module.exports = {
  26130. extractBody,
  26131. safelyExtractBody,
  26132. cloneBody,
  26133. mixinBody
  26134. }
  26135. /***/ }),
  26136. /***/ 1037:
  26137. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  26138. "use strict";
  26139. const { MessageChannel, receiveMessageOnPort } = __nccwpck_require__(1267)
  26140. const corsSafeListedMethods = ['GET', 'HEAD', 'POST']
  26141. const nullBodyStatus = [101, 204, 205, 304]
  26142. const redirectStatus = [301, 302, 303, 307, 308]
  26143. // https://fetch.spec.whatwg.org/#block-bad-port
  26144. const badPorts = [
  26145. '1', '7', '9', '11', '13', '15', '17', '19', '20', '21', '22', '23', '25', '37', '42', '43', '53', '69', '77', '79',
  26146. '87', '95', '101', '102', '103', '104', '109', '110', '111', '113', '115', '117', '119', '123', '135', '137',
  26147. '139', '143', '161', '179', '389', '427', '465', '512', '513', '514', '515', '526', '530', '531', '532',
  26148. '540', '548', '554', '556', '563', '587', '601', '636', '989', '990', '993', '995', '1719', '1720', '1723',
  26149. '2049', '3659', '4045', '5060', '5061', '6000', '6566', '6665', '6666', '6667', '6668', '6669', '6697',
  26150. '10080'
  26151. ]
  26152. // https://w3c.github.io/webappsec-referrer-policy/#referrer-policies
  26153. const referrerPolicy = [
  26154. '',
  26155. 'no-referrer',
  26156. 'no-referrer-when-downgrade',
  26157. 'same-origin',
  26158. 'origin',
  26159. 'strict-origin',
  26160. 'origin-when-cross-origin',
  26161. 'strict-origin-when-cross-origin',
  26162. 'unsafe-url'
  26163. ]
  26164. const requestRedirect = ['follow', 'manual', 'error']
  26165. const safeMethods = ['GET', 'HEAD', 'OPTIONS', 'TRACE']
  26166. const requestMode = ['navigate', 'same-origin', 'no-cors', 'cors']
  26167. const requestCredentials = ['omit', 'same-origin', 'include']
  26168. const requestCache = [
  26169. 'default',
  26170. 'no-store',
  26171. 'reload',
  26172. 'no-cache',
  26173. 'force-cache',
  26174. 'only-if-cached'
  26175. ]
  26176. // https://fetch.spec.whatwg.org/#request-body-header-name
  26177. const requestBodyHeader = [
  26178. 'content-encoding',
  26179. 'content-language',
  26180. 'content-location',
  26181. 'content-type',
  26182. // See https://github.com/nodejs/undici/issues/2021
  26183. // 'Content-Length' is a forbidden header name, which is typically
  26184. // removed in the Headers implementation. However, undici doesn't
  26185. // filter out headers, so we add it here.
  26186. 'content-length'
  26187. ]
  26188. // https://fetch.spec.whatwg.org/#enumdef-requestduplex
  26189. const requestDuplex = [
  26190. 'half'
  26191. ]
  26192. // http://fetch.spec.whatwg.org/#forbidden-method
  26193. const forbiddenMethods = ['CONNECT', 'TRACE', 'TRACK']
  26194. const subresource = [
  26195. 'audio',
  26196. 'audioworklet',
  26197. 'font',
  26198. 'image',
  26199. 'manifest',
  26200. 'paintworklet',
  26201. 'script',
  26202. 'style',
  26203. 'track',
  26204. 'video',
  26205. 'xslt',
  26206. ''
  26207. ]
  26208. /** @type {globalThis['DOMException']} */
  26209. const DOMException = globalThis.DOMException ?? (() => {
  26210. // DOMException was only made a global in Node v17.0.0,
  26211. // but fetch supports >= v16.8.
  26212. try {
  26213. atob('~')
  26214. } catch (err) {
  26215. return Object.getPrototypeOf(err).constructor
  26216. }
  26217. })()
  26218. let channel
  26219. /** @type {globalThis['structuredClone']} */
  26220. const structuredClone =
  26221. globalThis.structuredClone ??
  26222. // https://github.com/nodejs/node/blob/b27ae24dcc4251bad726d9d84baf678d1f707fed/lib/internal/structured_clone.js
  26223. // structuredClone was added in v17.0.0, but fetch supports v16.8
  26224. function structuredClone (value, options = undefined) {
  26225. if (arguments.length === 0) {
  26226. throw new TypeError('missing argument')
  26227. }
  26228. if (!channel) {
  26229. channel = new MessageChannel()
  26230. }
  26231. channel.port1.unref()
  26232. channel.port2.unref()
  26233. channel.port1.postMessage(value, options?.transfer)
  26234. return receiveMessageOnPort(channel.port2).message
  26235. }
  26236. module.exports = {
  26237. DOMException,
  26238. structuredClone,
  26239. subresource,
  26240. forbiddenMethods,
  26241. requestBodyHeader,
  26242. referrerPolicy,
  26243. requestRedirect,
  26244. requestMode,
  26245. requestCredentials,
  26246. requestCache,
  26247. redirectStatus,
  26248. corsSafeListedMethods,
  26249. nullBodyStatus,
  26250. safeMethods,
  26251. badPorts,
  26252. requestDuplex
  26253. }
  26254. /***/ }),
  26255. /***/ 685:
  26256. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  26257. const assert = __nccwpck_require__(9491)
  26258. const { atob } = __nccwpck_require__(4300)
  26259. const { isomorphicDecode } = __nccwpck_require__(2538)
  26260. const encoder = new TextEncoder()
  26261. /**
  26262. * @see https://mimesniff.spec.whatwg.org/#http-token-code-point
  26263. */
  26264. const HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+-.^_|~A-Za-z0-9]+$/
  26265. const HTTP_WHITESPACE_REGEX = /(\u000A|\u000D|\u0009|\u0020)/ // eslint-disable-line
  26266. /**
  26267. * @see https://mimesniff.spec.whatwg.org/#http-quoted-string-token-code-point
  26268. */
  26269. const HTTP_QUOTED_STRING_TOKENS = /[\u0009|\u0020-\u007E|\u0080-\u00FF]/ // eslint-disable-line
  26270. // https://fetch.spec.whatwg.org/#data-url-processor
  26271. /** @param {URL} dataURL */
  26272. function dataURLProcessor (dataURL) {
  26273. // 1. Assert: dataURL’s scheme is "data".
  26274. assert(dataURL.protocol === 'data:')
  26275. // 2. Let input be the result of running the URL
  26276. // serializer on dataURL with exclude fragment
  26277. // set to true.
  26278. let input = URLSerializer(dataURL, true)
  26279. // 3. Remove the leading "data:" string from input.
  26280. input = input.slice(5)
  26281. // 4. Let position point at the start of input.
  26282. const position = { position: 0 }
  26283. // 5. Let mimeType be the result of collecting a
  26284. // sequence of code points that are not equal
  26285. // to U+002C (,), given position.
  26286. let mimeType = collectASequenceOfCodePointsFast(
  26287. ',',
  26288. input,
  26289. position
  26290. )
  26291. // 6. Strip leading and trailing ASCII whitespace
  26292. // from mimeType.
  26293. // Undici implementation note: we need to store the
  26294. // length because if the mimetype has spaces removed,
  26295. // the wrong amount will be sliced from the input in
  26296. // step #9
  26297. const mimeTypeLength = mimeType.length
  26298. mimeType = removeASCIIWhitespace(mimeType, true, true)
  26299. // 7. If position is past the end of input, then
  26300. // return failure
  26301. if (position.position >= input.length) {
  26302. return 'failure'
  26303. }
  26304. // 8. Advance position by 1.
  26305. position.position++
  26306. // 9. Let encodedBody be the remainder of input.
  26307. const encodedBody = input.slice(mimeTypeLength + 1)
  26308. // 10. Let body be the percent-decoding of encodedBody.
  26309. let body = stringPercentDecode(encodedBody)
  26310. // 11. If mimeType ends with U+003B (;), followed by
  26311. // zero or more U+0020 SPACE, followed by an ASCII
  26312. // case-insensitive match for "base64", then:
  26313. if (/;(\u0020){0,}base64$/i.test(mimeType)) {
  26314. // 1. Let stringBody be the isomorphic decode of body.
  26315. const stringBody = isomorphicDecode(body)
  26316. // 2. Set body to the forgiving-base64 decode of
  26317. // stringBody.
  26318. body = forgivingBase64(stringBody)
  26319. // 3. If body is failure, then return failure.
  26320. if (body === 'failure') {
  26321. return 'failure'
  26322. }
  26323. // 4. Remove the last 6 code points from mimeType.
  26324. mimeType = mimeType.slice(0, -6)
  26325. // 5. Remove trailing U+0020 SPACE code points from mimeType,
  26326. // if any.
  26327. mimeType = mimeType.replace(/(\u0020)+$/, '')
  26328. // 6. Remove the last U+003B (;) code point from mimeType.
  26329. mimeType = mimeType.slice(0, -1)
  26330. }
  26331. // 12. If mimeType starts with U+003B (;), then prepend
  26332. // "text/plain" to mimeType.
  26333. if (mimeType.startsWith(';')) {
  26334. mimeType = 'text/plain' + mimeType
  26335. }
  26336. // 13. Let mimeTypeRecord be the result of parsing
  26337. // mimeType.
  26338. let mimeTypeRecord = parseMIMEType(mimeType)
  26339. // 14. If mimeTypeRecord is failure, then set
  26340. // mimeTypeRecord to text/plain;charset=US-ASCII.
  26341. if (mimeTypeRecord === 'failure') {
  26342. mimeTypeRecord = parseMIMEType('text/plain;charset=US-ASCII')
  26343. }
  26344. // 15. Return a new data: URL struct whose MIME
  26345. // type is mimeTypeRecord and body is body.
  26346. // https://fetch.spec.whatwg.org/#data-url-struct
  26347. return { mimeType: mimeTypeRecord, body }
  26348. }
  26349. // https://url.spec.whatwg.org/#concept-url-serializer
  26350. /**
  26351. * @param {URL} url
  26352. * @param {boolean} excludeFragment
  26353. */
  26354. function URLSerializer (url, excludeFragment = false) {
  26355. const href = url.href
  26356. if (!excludeFragment) {
  26357. return href
  26358. }
  26359. const hash = href.lastIndexOf('#')
  26360. if (hash === -1) {
  26361. return href
  26362. }
  26363. return href.slice(0, hash)
  26364. }
  26365. // https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points
  26366. /**
  26367. * @param {(char: string) => boolean} condition
  26368. * @param {string} input
  26369. * @param {{ position: number }} position
  26370. */
  26371. function collectASequenceOfCodePoints (condition, input, position) {
  26372. // 1. Let result be the empty string.
  26373. let result = ''
  26374. // 2. While position doesn’t point past the end of input and the
  26375. // code point at position within input meets the condition condition:
  26376. while (position.position < input.length && condition(input[position.position])) {
  26377. // 1. Append that code point to the end of result.
  26378. result += input[position.position]
  26379. // 2. Advance position by 1.
  26380. position.position++
  26381. }
  26382. // 3. Return result.
  26383. return result
  26384. }
  26385. /**
  26386. * A faster collectASequenceOfCodePoints that only works when comparing a single character.
  26387. * @param {string} char
  26388. * @param {string} input
  26389. * @param {{ position: number }} position
  26390. */
  26391. function collectASequenceOfCodePointsFast (char, input, position) {
  26392. const idx = input.indexOf(char, position.position)
  26393. const start = position.position
  26394. if (idx === -1) {
  26395. position.position = input.length
  26396. return input.slice(start)
  26397. }
  26398. position.position = idx
  26399. return input.slice(start, position.position)
  26400. }
  26401. // https://url.spec.whatwg.org/#string-percent-decode
  26402. /** @param {string} input */
  26403. function stringPercentDecode (input) {
  26404. // 1. Let bytes be the UTF-8 encoding of input.
  26405. const bytes = encoder.encode(input)
  26406. // 2. Return the percent-decoding of bytes.
  26407. return percentDecode(bytes)
  26408. }
  26409. // https://url.spec.whatwg.org/#percent-decode
  26410. /** @param {Uint8Array} input */
  26411. function percentDecode (input) {
  26412. // 1. Let output be an empty byte sequence.
  26413. /** @type {number[]} */
  26414. const output = []
  26415. // 2. For each byte byte in input:
  26416. for (let i = 0; i < input.length; i++) {
  26417. const byte = input[i]
  26418. // 1. If byte is not 0x25 (%), then append byte to output.
  26419. if (byte !== 0x25) {
  26420. output.push(byte)
  26421. // 2. Otherwise, if byte is 0x25 (%) and the next two bytes
  26422. // after byte in input are not in the ranges
  26423. // 0x30 (0) to 0x39 (9), 0x41 (A) to 0x46 (F),
  26424. // and 0x61 (a) to 0x66 (f), all inclusive, append byte
  26425. // to output.
  26426. } else if (
  26427. byte === 0x25 &&
  26428. !/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(input[i + 1], input[i + 2]))
  26429. ) {
  26430. output.push(0x25)
  26431. // 3. Otherwise:
  26432. } else {
  26433. // 1. Let bytePoint be the two bytes after byte in input,
  26434. // decoded, and then interpreted as hexadecimal number.
  26435. const nextTwoBytes = String.fromCharCode(input[i + 1], input[i + 2])
  26436. const bytePoint = Number.parseInt(nextTwoBytes, 16)
  26437. // 2. Append a byte whose value is bytePoint to output.
  26438. output.push(bytePoint)
  26439. // 3. Skip the next two bytes in input.
  26440. i += 2
  26441. }
  26442. }
  26443. // 3. Return output.
  26444. return Uint8Array.from(output)
  26445. }
  26446. // https://mimesniff.spec.whatwg.org/#parse-a-mime-type
  26447. /** @param {string} input */
  26448. function parseMIMEType (input) {
  26449. // 1. Remove any leading and trailing HTTP whitespace
  26450. // from input.
  26451. input = removeHTTPWhitespace(input, true, true)
  26452. // 2. Let position be a position variable for input,
  26453. // initially pointing at the start of input.
  26454. const position = { position: 0 }
  26455. // 3. Let type be the result of collecting a sequence
  26456. // of code points that are not U+002F (/) from
  26457. // input, given position.
  26458. const type = collectASequenceOfCodePointsFast(
  26459. '/',
  26460. input,
  26461. position
  26462. )
  26463. // 4. If type is the empty string or does not solely
  26464. // contain HTTP token code points, then return failure.
  26465. // https://mimesniff.spec.whatwg.org/#http-token-code-point
  26466. if (type.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(type)) {
  26467. return 'failure'
  26468. }
  26469. // 5. If position is past the end of input, then return
  26470. // failure
  26471. if (position.position > input.length) {
  26472. return 'failure'
  26473. }
  26474. // 6. Advance position by 1. (This skips past U+002F (/).)
  26475. position.position++
  26476. // 7. Let subtype be the result of collecting a sequence of
  26477. // code points that are not U+003B (;) from input, given
  26478. // position.
  26479. let subtype = collectASequenceOfCodePointsFast(
  26480. ';',
  26481. input,
  26482. position
  26483. )
  26484. // 8. Remove any trailing HTTP whitespace from subtype.
  26485. subtype = removeHTTPWhitespace(subtype, false, true)
  26486. // 9. If subtype is the empty string or does not solely
  26487. // contain HTTP token code points, then return failure.
  26488. if (subtype.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(subtype)) {
  26489. return 'failure'
  26490. }
  26491. const typeLowercase = type.toLowerCase()
  26492. const subtypeLowercase = subtype.toLowerCase()
  26493. // 10. Let mimeType be a new MIME type record whose type
  26494. // is type, in ASCII lowercase, and subtype is subtype,
  26495. // in ASCII lowercase.
  26496. // https://mimesniff.spec.whatwg.org/#mime-type
  26497. const mimeType = {
  26498. type: typeLowercase,
  26499. subtype: subtypeLowercase,
  26500. /** @type {Map<string, string>} */
  26501. parameters: new Map(),
  26502. // https://mimesniff.spec.whatwg.org/#mime-type-essence
  26503. essence: `${typeLowercase}/${subtypeLowercase}`
  26504. }
  26505. // 11. While position is not past the end of input:
  26506. while (position.position < input.length) {
  26507. // 1. Advance position by 1. (This skips past U+003B (;).)
  26508. position.position++
  26509. // 2. Collect a sequence of code points that are HTTP
  26510. // whitespace from input given position.
  26511. collectASequenceOfCodePoints(
  26512. // https://fetch.spec.whatwg.org/#http-whitespace
  26513. char => HTTP_WHITESPACE_REGEX.test(char),
  26514. input,
  26515. position
  26516. )
  26517. // 3. Let parameterName be the result of collecting a
  26518. // sequence of code points that are not U+003B (;)
  26519. // or U+003D (=) from input, given position.
  26520. let parameterName = collectASequenceOfCodePoints(
  26521. (char) => char !== ';' && char !== '=',
  26522. input,
  26523. position
  26524. )
  26525. // 4. Set parameterName to parameterName, in ASCII
  26526. // lowercase.
  26527. parameterName = parameterName.toLowerCase()
  26528. // 5. If position is not past the end of input, then:
  26529. if (position.position < input.length) {
  26530. // 1. If the code point at position within input is
  26531. // U+003B (;), then continue.
  26532. if (input[position.position] === ';') {
  26533. continue
  26534. }
  26535. // 2. Advance position by 1. (This skips past U+003D (=).)
  26536. position.position++
  26537. }
  26538. // 6. If position is past the end of input, then break.
  26539. if (position.position > input.length) {
  26540. break
  26541. }
  26542. // 7. Let parameterValue be null.
  26543. let parameterValue = null
  26544. // 8. If the code point at position within input is
  26545. // U+0022 ("), then:
  26546. if (input[position.position] === '"') {
  26547. // 1. Set parameterValue to the result of collecting
  26548. // an HTTP quoted string from input, given position
  26549. // and the extract-value flag.
  26550. parameterValue = collectAnHTTPQuotedString(input, position, true)
  26551. // 2. Collect a sequence of code points that are not
  26552. // U+003B (;) from input, given position.
  26553. collectASequenceOfCodePointsFast(
  26554. ';',
  26555. input,
  26556. position
  26557. )
  26558. // 9. Otherwise:
  26559. } else {
  26560. // 1. Set parameterValue to the result of collecting
  26561. // a sequence of code points that are not U+003B (;)
  26562. // from input, given position.
  26563. parameterValue = collectASequenceOfCodePointsFast(
  26564. ';',
  26565. input,
  26566. position
  26567. )
  26568. // 2. Remove any trailing HTTP whitespace from parameterValue.
  26569. parameterValue = removeHTTPWhitespace(parameterValue, false, true)
  26570. // 3. If parameterValue is the empty string, then continue.
  26571. if (parameterValue.length === 0) {
  26572. continue
  26573. }
  26574. }
  26575. // 10. If all of the following are true
  26576. // - parameterName is not the empty string
  26577. // - parameterName solely contains HTTP token code points
  26578. // - parameterValue solely contains HTTP quoted-string token code points
  26579. // - mimeType’s parameters[parameterName] does not exist
  26580. // then set mimeType’s parameters[parameterName] to parameterValue.
  26581. if (
  26582. parameterName.length !== 0 &&
  26583. HTTP_TOKEN_CODEPOINTS.test(parameterName) &&
  26584. (parameterValue.length === 0 || HTTP_QUOTED_STRING_TOKENS.test(parameterValue)) &&
  26585. !mimeType.parameters.has(parameterName)
  26586. ) {
  26587. mimeType.parameters.set(parameterName, parameterValue)
  26588. }
  26589. }
  26590. // 12. Return mimeType.
  26591. return mimeType
  26592. }
  26593. // https://infra.spec.whatwg.org/#forgiving-base64-decode
  26594. /** @param {string} data */
  26595. function forgivingBase64 (data) {
  26596. // 1. Remove all ASCII whitespace from data.
  26597. data = data.replace(/[\u0009\u000A\u000C\u000D\u0020]/g, '') // eslint-disable-line
  26598. // 2. If data’s code point length divides by 4 leaving
  26599. // no remainder, then:
  26600. if (data.length % 4 === 0) {
  26601. // 1. If data ends with one or two U+003D (=) code points,
  26602. // then remove them from data.
  26603. data = data.replace(/=?=$/, '')
  26604. }
  26605. // 3. If data’s code point length divides by 4 leaving
  26606. // a remainder of 1, then return failure.
  26607. if (data.length % 4 === 1) {
  26608. return 'failure'
  26609. }
  26610. // 4. If data contains a code point that is not one of
  26611. // U+002B (+)
  26612. // U+002F (/)
  26613. // ASCII alphanumeric
  26614. // then return failure.
  26615. if (/[^+/0-9A-Za-z]/.test(data)) {
  26616. return 'failure'
  26617. }
  26618. const binary = atob(data)
  26619. const bytes = new Uint8Array(binary.length)
  26620. for (let byte = 0; byte < binary.length; byte++) {
  26621. bytes[byte] = binary.charCodeAt(byte)
  26622. }
  26623. return bytes
  26624. }
  26625. // https://fetch.spec.whatwg.org/#collect-an-http-quoted-string
  26626. // tests: https://fetch.spec.whatwg.org/#example-http-quoted-string
  26627. /**
  26628. * @param {string} input
  26629. * @param {{ position: number }} position
  26630. * @param {boolean?} extractValue
  26631. */
  26632. function collectAnHTTPQuotedString (input, position, extractValue) {
  26633. // 1. Let positionStart be position.
  26634. const positionStart = position.position
  26635. // 2. Let value be the empty string.
  26636. let value = ''
  26637. // 3. Assert: the code point at position within input
  26638. // is U+0022 (").
  26639. assert(input[position.position] === '"')
  26640. // 4. Advance position by 1.
  26641. position.position++
  26642. // 5. While true:
  26643. while (true) {
  26644. // 1. Append the result of collecting a sequence of code points
  26645. // that are not U+0022 (") or U+005C (\) from input, given
  26646. // position, to value.
  26647. value += collectASequenceOfCodePoints(
  26648. (char) => char !== '"' && char !== '\\',
  26649. input,
  26650. position
  26651. )
  26652. // 2. If position is past the end of input, then break.
  26653. if (position.position >= input.length) {
  26654. break
  26655. }
  26656. // 3. Let quoteOrBackslash be the code point at position within
  26657. // input.
  26658. const quoteOrBackslash = input[position.position]
  26659. // 4. Advance position by 1.
  26660. position.position++
  26661. // 5. If quoteOrBackslash is U+005C (\), then:
  26662. if (quoteOrBackslash === '\\') {
  26663. // 1. If position is past the end of input, then append
  26664. // U+005C (\) to value and break.
  26665. if (position.position >= input.length) {
  26666. value += '\\'
  26667. break
  26668. }
  26669. // 2. Append the code point at position within input to value.
  26670. value += input[position.position]
  26671. // 3. Advance position by 1.
  26672. position.position++
  26673. // 6. Otherwise:
  26674. } else {
  26675. // 1. Assert: quoteOrBackslash is U+0022 (").
  26676. assert(quoteOrBackslash === '"')
  26677. // 2. Break.
  26678. break
  26679. }
  26680. }
  26681. // 6. If the extract-value flag is set, then return value.
  26682. if (extractValue) {
  26683. return value
  26684. }
  26685. // 7. Return the code points from positionStart to position,
  26686. // inclusive, within input.
  26687. return input.slice(positionStart, position.position)
  26688. }
  26689. /**
  26690. * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
  26691. */
  26692. function serializeAMimeType (mimeType) {
  26693. assert(mimeType !== 'failure')
  26694. const { parameters, essence } = mimeType
  26695. // 1. Let serialization be the concatenation of mimeType’s
  26696. // type, U+002F (/), and mimeType’s subtype.
  26697. let serialization = essence
  26698. // 2. For each name → value of mimeType’s parameters:
  26699. for (let [name, value] of parameters.entries()) {
  26700. // 1. Append U+003B (;) to serialization.
  26701. serialization += ';'
  26702. // 2. Append name to serialization.
  26703. serialization += name
  26704. // 3. Append U+003D (=) to serialization.
  26705. serialization += '='
  26706. // 4. If value does not solely contain HTTP token code
  26707. // points or value is the empty string, then:
  26708. if (!HTTP_TOKEN_CODEPOINTS.test(value)) {
  26709. // 1. Precede each occurence of U+0022 (") or
  26710. // U+005C (\) in value with U+005C (\).
  26711. value = value.replace(/(\\|")/g, '\\$1')
  26712. // 2. Prepend U+0022 (") to value.
  26713. value = '"' + value
  26714. // 3. Append U+0022 (") to value.
  26715. value += '"'
  26716. }
  26717. // 5. Append value to serialization.
  26718. serialization += value
  26719. }
  26720. // 3. Return serialization.
  26721. return serialization
  26722. }
  26723. /**
  26724. * @see https://fetch.spec.whatwg.org/#http-whitespace
  26725. * @param {string} char
  26726. */
  26727. function isHTTPWhiteSpace (char) {
  26728. return char === '\r' || char === '\n' || char === '\t' || char === ' '
  26729. }
  26730. /**
  26731. * @see https://fetch.spec.whatwg.org/#http-whitespace
  26732. * @param {string} str
  26733. */
  26734. function removeHTTPWhitespace (str, leading = true, trailing = true) {
  26735. let lead = 0
  26736. let trail = str.length - 1
  26737. if (leading) {
  26738. for (; lead < str.length && isHTTPWhiteSpace(str[lead]); lead++);
  26739. }
  26740. if (trailing) {
  26741. for (; trail > 0 && isHTTPWhiteSpace(str[trail]); trail--);
  26742. }
  26743. return str.slice(lead, trail + 1)
  26744. }
  26745. /**
  26746. * @see https://infra.spec.whatwg.org/#ascii-whitespace
  26747. * @param {string} char
  26748. */
  26749. function isASCIIWhitespace (char) {
  26750. return char === '\r' || char === '\n' || char === '\t' || char === '\f' || char === ' '
  26751. }
  26752. /**
  26753. * @see https://infra.spec.whatwg.org/#strip-leading-and-trailing-ascii-whitespace
  26754. */
  26755. function removeASCIIWhitespace (str, leading = true, trailing = true) {
  26756. let lead = 0
  26757. let trail = str.length - 1
  26758. if (leading) {
  26759. for (; lead < str.length && isASCIIWhitespace(str[lead]); lead++);
  26760. }
  26761. if (trailing) {
  26762. for (; trail > 0 && isASCIIWhitespace(str[trail]); trail--);
  26763. }
  26764. return str.slice(lead, trail + 1)
  26765. }
  26766. module.exports = {
  26767. dataURLProcessor,
  26768. URLSerializer,
  26769. collectASequenceOfCodePoints,
  26770. collectASequenceOfCodePointsFast,
  26771. stringPercentDecode,
  26772. parseMIMEType,
  26773. collectAnHTTPQuotedString,
  26774. serializeAMimeType
  26775. }
  26776. /***/ }),
  26777. /***/ 8511:
  26778. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  26779. "use strict";
  26780. const { Blob, File: NativeFile } = __nccwpck_require__(4300)
  26781. const { types } = __nccwpck_require__(3837)
  26782. const { kState } = __nccwpck_require__(5861)
  26783. const { isBlobLike } = __nccwpck_require__(2538)
  26784. const { webidl } = __nccwpck_require__(1744)
  26785. const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
  26786. const { kEnumerableProperty } = __nccwpck_require__(3983)
  26787. class File extends Blob {
  26788. constructor (fileBits, fileName, options = {}) {
  26789. // The File constructor is invoked with two or three parameters, depending
  26790. // on whether the optional dictionary parameter is used. When the File()
  26791. // constructor is invoked, user agents must run the following steps:
  26792. webidl.argumentLengthCheck(arguments, 2, { header: 'File constructor' })
  26793. fileBits = webidl.converters['sequence<BlobPart>'](fileBits)
  26794. fileName = webidl.converters.USVString(fileName)
  26795. options = webidl.converters.FilePropertyBag(options)
  26796. // 1. Let bytes be the result of processing blob parts given fileBits and
  26797. // options.
  26798. // Note: Blob handles this for us
  26799. // 2. Let n be the fileName argument to the constructor.
  26800. const n = fileName
  26801. // 3. Process FilePropertyBag dictionary argument by running the following
  26802. // substeps:
  26803. // 1. If the type member is provided and is not the empty string, let t
  26804. // be set to the type dictionary member. If t contains any characters
  26805. // outside the range U+0020 to U+007E, then set t to the empty string
  26806. // and return from these substeps.
  26807. // 2. Convert every character in t to ASCII lowercase.
  26808. let t = options.type
  26809. let d
  26810. // eslint-disable-next-line no-labels
  26811. substep: {
  26812. if (t) {
  26813. t = parseMIMEType(t)
  26814. if (t === 'failure') {
  26815. t = ''
  26816. // eslint-disable-next-line no-labels
  26817. break substep
  26818. }
  26819. t = serializeAMimeType(t).toLowerCase()
  26820. }
  26821. // 3. If the lastModified member is provided, let d be set to the
  26822. // lastModified dictionary member. If it is not provided, set d to the
  26823. // current date and time represented as the number of milliseconds since
  26824. // the Unix Epoch (which is the equivalent of Date.now() [ECMA-262]).
  26825. d = options.lastModified
  26826. }
  26827. // 4. Return a new File object F such that:
  26828. // F refers to the bytes byte sequence.
  26829. // F.size is set to the number of total bytes in bytes.
  26830. // F.name is set to n.
  26831. // F.type is set to t.
  26832. // F.lastModified is set to d.
  26833. super(processBlobParts(fileBits, options), { type: t })
  26834. this[kState] = {
  26835. name: n,
  26836. lastModified: d,
  26837. type: t
  26838. }
  26839. }
  26840. get name () {
  26841. webidl.brandCheck(this, File)
  26842. return this[kState].name
  26843. }
  26844. get lastModified () {
  26845. webidl.brandCheck(this, File)
  26846. return this[kState].lastModified
  26847. }
  26848. get type () {
  26849. webidl.brandCheck(this, File)
  26850. return this[kState].type
  26851. }
  26852. }
  26853. class FileLike {
  26854. constructor (blobLike, fileName, options = {}) {
  26855. // TODO: argument idl type check
  26856. // The File constructor is invoked with two or three parameters, depending
  26857. // on whether the optional dictionary parameter is used. When the File()
  26858. // constructor is invoked, user agents must run the following steps:
  26859. // 1. Let bytes be the result of processing blob parts given fileBits and
  26860. // options.
  26861. // 2. Let n be the fileName argument to the constructor.
  26862. const n = fileName
  26863. // 3. Process FilePropertyBag dictionary argument by running the following
  26864. // substeps:
  26865. // 1. If the type member is provided and is not the empty string, let t
  26866. // be set to the type dictionary member. If t contains any characters
  26867. // outside the range U+0020 to U+007E, then set t to the empty string
  26868. // and return from these substeps.
  26869. // TODO
  26870. const t = options.type
  26871. // 2. Convert every character in t to ASCII lowercase.
  26872. // TODO
  26873. // 3. If the lastModified member is provided, let d be set to the
  26874. // lastModified dictionary member. If it is not provided, set d to the
  26875. // current date and time represented as the number of milliseconds since
  26876. // the Unix Epoch (which is the equivalent of Date.now() [ECMA-262]).
  26877. const d = options.lastModified ?? Date.now()
  26878. // 4. Return a new File object F such that:
  26879. // F refers to the bytes byte sequence.
  26880. // F.size is set to the number of total bytes in bytes.
  26881. // F.name is set to n.
  26882. // F.type is set to t.
  26883. // F.lastModified is set to d.
  26884. this[kState] = {
  26885. blobLike,
  26886. name: n,
  26887. type: t,
  26888. lastModified: d
  26889. }
  26890. }
  26891. stream (...args) {
  26892. webidl.brandCheck(this, FileLike)
  26893. return this[kState].blobLike.stream(...args)
  26894. }
  26895. arrayBuffer (...args) {
  26896. webidl.brandCheck(this, FileLike)
  26897. return this[kState].blobLike.arrayBuffer(...args)
  26898. }
  26899. slice (...args) {
  26900. webidl.brandCheck(this, FileLike)
  26901. return this[kState].blobLike.slice(...args)
  26902. }
  26903. text (...args) {
  26904. webidl.brandCheck(this, FileLike)
  26905. return this[kState].blobLike.text(...args)
  26906. }
  26907. get size () {
  26908. webidl.brandCheck(this, FileLike)
  26909. return this[kState].blobLike.size
  26910. }
  26911. get type () {
  26912. webidl.brandCheck(this, FileLike)
  26913. return this[kState].blobLike.type
  26914. }
  26915. get name () {
  26916. webidl.brandCheck(this, FileLike)
  26917. return this[kState].name
  26918. }
  26919. get lastModified () {
  26920. webidl.brandCheck(this, FileLike)
  26921. return this[kState].lastModified
  26922. }
  26923. get [Symbol.toStringTag] () {
  26924. return 'File'
  26925. }
  26926. }
  26927. Object.defineProperties(File.prototype, {
  26928. [Symbol.toStringTag]: {
  26929. value: 'File',
  26930. configurable: true
  26931. },
  26932. name: kEnumerableProperty,
  26933. lastModified: kEnumerableProperty
  26934. })
  26935. webidl.converters.Blob = webidl.interfaceConverter(Blob)
  26936. webidl.converters.BlobPart = function (V, opts) {
  26937. if (webidl.util.Type(V) === 'Object') {
  26938. if (isBlobLike(V)) {
  26939. return webidl.converters.Blob(V, { strict: false })
  26940. }
  26941. if (
  26942. ArrayBuffer.isView(V) ||
  26943. types.isAnyArrayBuffer(V)
  26944. ) {
  26945. return webidl.converters.BufferSource(V, opts)
  26946. }
  26947. }
  26948. return webidl.converters.USVString(V, opts)
  26949. }
  26950. webidl.converters['sequence<BlobPart>'] = webidl.sequenceConverter(
  26951. webidl.converters.BlobPart
  26952. )
  26953. // https://www.w3.org/TR/FileAPI/#dfn-FilePropertyBag
  26954. webidl.converters.FilePropertyBag = webidl.dictionaryConverter([
  26955. {
  26956. key: 'lastModified',
  26957. converter: webidl.converters['long long'],
  26958. get defaultValue () {
  26959. return Date.now()
  26960. }
  26961. },
  26962. {
  26963. key: 'type',
  26964. converter: webidl.converters.DOMString,
  26965. defaultValue: ''
  26966. },
  26967. {
  26968. key: 'endings',
  26969. converter: (value) => {
  26970. value = webidl.converters.DOMString(value)
  26971. value = value.toLowerCase()
  26972. if (value !== 'native') {
  26973. value = 'transparent'
  26974. }
  26975. return value
  26976. },
  26977. defaultValue: 'transparent'
  26978. }
  26979. ])
  26980. /**
  26981. * @see https://www.w3.org/TR/FileAPI/#process-blob-parts
  26982. * @param {(NodeJS.TypedArray|Blob|string)[]} parts
  26983. * @param {{ type: string, endings: string }} options
  26984. */
  26985. function processBlobParts (parts, options) {
  26986. // 1. Let bytes be an empty sequence of bytes.
  26987. /** @type {NodeJS.TypedArray[]} */
  26988. const bytes = []
  26989. // 2. For each element in parts:
  26990. for (const element of parts) {
  26991. // 1. If element is a USVString, run the following substeps:
  26992. if (typeof element === 'string') {
  26993. // 1. Let s be element.
  26994. let s = element
  26995. // 2. If the endings member of options is "native", set s
  26996. // to the result of converting line endings to native
  26997. // of element.
  26998. if (options.endings === 'native') {
  26999. s = convertLineEndingsNative(s)
  27000. }
  27001. // 3. Append the result of UTF-8 encoding s to bytes.
  27002. bytes.push(new TextEncoder().encode(s))
  27003. } else if (
  27004. types.isAnyArrayBuffer(element) ||
  27005. types.isTypedArray(element)
  27006. ) {
  27007. // 2. If element is a BufferSource, get a copy of the
  27008. // bytes held by the buffer source, and append those
  27009. // bytes to bytes.
  27010. if (!element.buffer) { // ArrayBuffer
  27011. bytes.push(new Uint8Array(element))
  27012. } else {
  27013. bytes.push(
  27014. new Uint8Array(element.buffer, element.byteOffset, element.byteLength)
  27015. )
  27016. }
  27017. } else if (isBlobLike(element)) {
  27018. // 3. If element is a Blob, append the bytes it represents
  27019. // to bytes.
  27020. bytes.push(element)
  27021. }
  27022. }
  27023. // 3. Return bytes.
  27024. return bytes
  27025. }
  27026. /**
  27027. * @see https://www.w3.org/TR/FileAPI/#convert-line-endings-to-native
  27028. * @param {string} s
  27029. */
  27030. function convertLineEndingsNative (s) {
  27031. // 1. Let native line ending be be the code point U+000A LF.
  27032. let nativeLineEnding = '\n'
  27033. // 2. If the underlying platform’s conventions are to
  27034. // represent newlines as a carriage return and line feed
  27035. // sequence, set native line ending to the code point
  27036. // U+000D CR followed by the code point U+000A LF.
  27037. if (process.platform === 'win32') {
  27038. nativeLineEnding = '\r\n'
  27039. }
  27040. return s.replace(/\r?\n/g, nativeLineEnding)
  27041. }
  27042. // If this function is moved to ./util.js, some tools (such as
  27043. // rollup) will warn about circular dependencies. See:
  27044. // https://github.com/nodejs/undici/issues/1629
  27045. function isFileLike (object) {
  27046. return (
  27047. (NativeFile && object instanceof NativeFile) ||
  27048. object instanceof File || (
  27049. object &&
  27050. (typeof object.stream === 'function' ||
  27051. typeof object.arrayBuffer === 'function') &&
  27052. object[Symbol.toStringTag] === 'File'
  27053. )
  27054. )
  27055. }
  27056. module.exports = { File, FileLike, isFileLike }
  27057. /***/ }),
  27058. /***/ 2015:
  27059. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  27060. "use strict";
  27061. const { isBlobLike, toUSVString, makeIterator } = __nccwpck_require__(2538)
  27062. const { kState } = __nccwpck_require__(5861)
  27063. const { File: UndiciFile, FileLike, isFileLike } = __nccwpck_require__(8511)
  27064. const { webidl } = __nccwpck_require__(1744)
  27065. const { Blob, File: NativeFile } = __nccwpck_require__(4300)
  27066. /** @type {globalThis['File']} */
  27067. const File = NativeFile ?? UndiciFile
  27068. // https://xhr.spec.whatwg.org/#formdata
  27069. class FormData {
  27070. constructor (form) {
  27071. if (form !== undefined) {
  27072. throw webidl.errors.conversionFailed({
  27073. prefix: 'FormData constructor',
  27074. argument: 'Argument 1',
  27075. types: ['undefined']
  27076. })
  27077. }
  27078. this[kState] = []
  27079. }
  27080. append (name, value, filename = undefined) {
  27081. webidl.brandCheck(this, FormData)
  27082. webidl.argumentLengthCheck(arguments, 2, { header: 'FormData.append' })
  27083. if (arguments.length === 3 && !isBlobLike(value)) {
  27084. throw new TypeError(
  27085. "Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'"
  27086. )
  27087. }
  27088. // 1. Let value be value if given; otherwise blobValue.
  27089. name = webidl.converters.USVString(name)
  27090. value = isBlobLike(value)
  27091. ? webidl.converters.Blob(value, { strict: false })
  27092. : webidl.converters.USVString(value)
  27093. filename = arguments.length === 3
  27094. ? webidl.converters.USVString(filename)
  27095. : undefined
  27096. // 2. Let entry be the result of creating an entry with
  27097. // name, value, and filename if given.
  27098. const entry = makeEntry(name, value, filename)
  27099. // 3. Append entry to this’s entry list.
  27100. this[kState].push(entry)
  27101. }
  27102. delete (name) {
  27103. webidl.brandCheck(this, FormData)
  27104. webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.delete' })
  27105. name = webidl.converters.USVString(name)
  27106. // The delete(name) method steps are to remove all entries whose name
  27107. // is name from this’s entry list.
  27108. this[kState] = this[kState].filter(entry => entry.name !== name)
  27109. }
  27110. get (name) {
  27111. webidl.brandCheck(this, FormData)
  27112. webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.get' })
  27113. name = webidl.converters.USVString(name)
  27114. // 1. If there is no entry whose name is name in this’s entry list,
  27115. // then return null.
  27116. const idx = this[kState].findIndex((entry) => entry.name === name)
  27117. if (idx === -1) {
  27118. return null
  27119. }
  27120. // 2. Return the value of the first entry whose name is name from
  27121. // this’s entry list.
  27122. return this[kState][idx].value
  27123. }
  27124. getAll (name) {
  27125. webidl.brandCheck(this, FormData)
  27126. webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.getAll' })
  27127. name = webidl.converters.USVString(name)
  27128. // 1. If there is no entry whose name is name in this’s entry list,
  27129. // then return the empty list.
  27130. // 2. Return the values of all entries whose name is name, in order,
  27131. // from this’s entry list.
  27132. return this[kState]
  27133. .filter((entry) => entry.name === name)
  27134. .map((entry) => entry.value)
  27135. }
  27136. has (name) {
  27137. webidl.brandCheck(this, FormData)
  27138. webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.has' })
  27139. name = webidl.converters.USVString(name)
  27140. // The has(name) method steps are to return true if there is an entry
  27141. // whose name is name in this’s entry list; otherwise false.
  27142. return this[kState].findIndex((entry) => entry.name === name) !== -1
  27143. }
  27144. set (name, value, filename = undefined) {
  27145. webidl.brandCheck(this, FormData)
  27146. webidl.argumentLengthCheck(arguments, 2, { header: 'FormData.set' })
  27147. if (arguments.length === 3 && !isBlobLike(value)) {
  27148. throw new TypeError(
  27149. "Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'"
  27150. )
  27151. }
  27152. // The set(name, value) and set(name, blobValue, filename) method steps
  27153. // are:
  27154. // 1. Let value be value if given; otherwise blobValue.
  27155. name = webidl.converters.USVString(name)
  27156. value = isBlobLike(value)
  27157. ? webidl.converters.Blob(value, { strict: false })
  27158. : webidl.converters.USVString(value)
  27159. filename = arguments.length === 3
  27160. ? toUSVString(filename)
  27161. : undefined
  27162. // 2. Let entry be the result of creating an entry with name, value, and
  27163. // filename if given.
  27164. const entry = makeEntry(name, value, filename)
  27165. // 3. If there are entries in this’s entry list whose name is name, then
  27166. // replace the first such entry with entry and remove the others.
  27167. const idx = this[kState].findIndex((entry) => entry.name === name)
  27168. if (idx !== -1) {
  27169. this[kState] = [
  27170. ...this[kState].slice(0, idx),
  27171. entry,
  27172. ...this[kState].slice(idx + 1).filter((entry) => entry.name !== name)
  27173. ]
  27174. } else {
  27175. // 4. Otherwise, append entry to this’s entry list.
  27176. this[kState].push(entry)
  27177. }
  27178. }
  27179. entries () {
  27180. webidl.brandCheck(this, FormData)
  27181. return makeIterator(
  27182. () => this[kState].map(pair => [pair.name, pair.value]),
  27183. 'FormData',
  27184. 'key+value'
  27185. )
  27186. }
  27187. keys () {
  27188. webidl.brandCheck(this, FormData)
  27189. return makeIterator(
  27190. () => this[kState].map(pair => [pair.name, pair.value]),
  27191. 'FormData',
  27192. 'key'
  27193. )
  27194. }
  27195. values () {
  27196. webidl.brandCheck(this, FormData)
  27197. return makeIterator(
  27198. () => this[kState].map(pair => [pair.name, pair.value]),
  27199. 'FormData',
  27200. 'value'
  27201. )
  27202. }
  27203. /**
  27204. * @param {(value: string, key: string, self: FormData) => void} callbackFn
  27205. * @param {unknown} thisArg
  27206. */
  27207. forEach (callbackFn, thisArg = globalThis) {
  27208. webidl.brandCheck(this, FormData)
  27209. webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.forEach' })
  27210. if (typeof callbackFn !== 'function') {
  27211. throw new TypeError(
  27212. "Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'."
  27213. )
  27214. }
  27215. for (const [key, value] of this) {
  27216. callbackFn.apply(thisArg, [value, key, this])
  27217. }
  27218. }
  27219. }
  27220. FormData.prototype[Symbol.iterator] = FormData.prototype.entries
  27221. Object.defineProperties(FormData.prototype, {
  27222. [Symbol.toStringTag]: {
  27223. value: 'FormData',
  27224. configurable: true
  27225. }
  27226. })
  27227. /**
  27228. * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#create-an-entry
  27229. * @param {string} name
  27230. * @param {string|Blob} value
  27231. * @param {?string} filename
  27232. * @returns
  27233. */
  27234. function makeEntry (name, value, filename) {
  27235. // 1. Set name to the result of converting name into a scalar value string.
  27236. // "To convert a string into a scalar value string, replace any surrogates
  27237. // with U+FFFD."
  27238. // see: https://nodejs.org/dist/latest-v18.x/docs/api/buffer.html#buftostringencoding-start-end
  27239. name = Buffer.from(name).toString('utf8')
  27240. // 2. If value is a string, then set value to the result of converting
  27241. // value into a scalar value string.
  27242. if (typeof value === 'string') {
  27243. value = Buffer.from(value).toString('utf8')
  27244. } else {
  27245. // 3. Otherwise:
  27246. // 1. If value is not a File object, then set value to a new File object,
  27247. // representing the same bytes, whose name attribute value is "blob"
  27248. if (!isFileLike(value)) {
  27249. value = value instanceof Blob
  27250. ? new File([value], 'blob', { type: value.type })
  27251. : new FileLike(value, 'blob', { type: value.type })
  27252. }
  27253. // 2. If filename is given, then set value to a new File object,
  27254. // representing the same bytes, whose name attribute is filename.
  27255. if (filename !== undefined) {
  27256. /** @type {FilePropertyBag} */
  27257. const options = {
  27258. type: value.type,
  27259. lastModified: value.lastModified
  27260. }
  27261. value = (NativeFile && value instanceof NativeFile) || value instanceof UndiciFile
  27262. ? new File([value], filename, options)
  27263. : new FileLike(value, filename, options)
  27264. }
  27265. }
  27266. // 4. Return an entry whose name is name and whose value is value.
  27267. return { name, value }
  27268. }
  27269. module.exports = { FormData }
  27270. /***/ }),
  27271. /***/ 1246:
  27272. /***/ ((module) => {
  27273. "use strict";
  27274. // In case of breaking changes, increase the version
  27275. // number to avoid conflicts.
  27276. const globalOrigin = Symbol.for('undici.globalOrigin.1')
  27277. function getGlobalOrigin () {
  27278. return globalThis[globalOrigin]
  27279. }
  27280. function setGlobalOrigin (newOrigin) {
  27281. if (newOrigin === undefined) {
  27282. Object.defineProperty(globalThis, globalOrigin, {
  27283. value: undefined,
  27284. writable: true,
  27285. enumerable: false,
  27286. configurable: false
  27287. })
  27288. return
  27289. }
  27290. const parsedURL = new URL(newOrigin)
  27291. if (parsedURL.protocol !== 'http:' && parsedURL.protocol !== 'https:') {
  27292. throw new TypeError(`Only http & https urls are allowed, received ${parsedURL.protocol}`)
  27293. }
  27294. Object.defineProperty(globalThis, globalOrigin, {
  27295. value: parsedURL,
  27296. writable: true,
  27297. enumerable: false,
  27298. configurable: false
  27299. })
  27300. }
  27301. module.exports = {
  27302. getGlobalOrigin,
  27303. setGlobalOrigin
  27304. }
  27305. /***/ }),
  27306. /***/ 554:
  27307. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  27308. "use strict";
  27309. // https://github.com/Ethan-Arrowood/undici-fetch
  27310. const { kHeadersList } = __nccwpck_require__(2785)
  27311. const { kGuard } = __nccwpck_require__(5861)
  27312. const { kEnumerableProperty } = __nccwpck_require__(3983)
  27313. const {
  27314. makeIterator,
  27315. isValidHeaderName,
  27316. isValidHeaderValue
  27317. } = __nccwpck_require__(2538)
  27318. const { webidl } = __nccwpck_require__(1744)
  27319. const assert = __nccwpck_require__(9491)
  27320. const kHeadersMap = Symbol('headers map')
  27321. const kHeadersSortedMap = Symbol('headers map sorted')
  27322. /**
  27323. * @see https://fetch.spec.whatwg.org/#concept-header-value-normalize
  27324. * @param {string} potentialValue
  27325. */
  27326. function headerValueNormalize (potentialValue) {
  27327. // To normalize a byte sequence potentialValue, remove
  27328. // any leading and trailing HTTP whitespace bytes from
  27329. // potentialValue.
  27330. // Trimming the end with `.replace()` and a RegExp is typically subject to
  27331. // ReDoS. This is safer and faster.
  27332. let i = potentialValue.length
  27333. while (/[\r\n\t ]/.test(potentialValue.charAt(--i)));
  27334. return potentialValue.slice(0, i + 1).replace(/^[\r\n\t ]+/, '')
  27335. }
  27336. function fill (headers, object) {
  27337. // To fill a Headers object headers with a given object object, run these steps:
  27338. // 1. If object is a sequence, then for each header in object:
  27339. // Note: webidl conversion to array has already been done.
  27340. if (Array.isArray(object)) {
  27341. for (const header of object) {
  27342. // 1. If header does not contain exactly two items, then throw a TypeError.
  27343. if (header.length !== 2) {
  27344. throw webidl.errors.exception({
  27345. header: 'Headers constructor',
  27346. message: `expected name/value pair to be length 2, found ${header.length}.`
  27347. })
  27348. }
  27349. // 2. Append (header’s first item, header’s second item) to headers.
  27350. headers.append(header[0], header[1])
  27351. }
  27352. } else if (typeof object === 'object' && object !== null) {
  27353. // Note: null should throw
  27354. // 2. Otherwise, object is a record, then for each key → value in object,
  27355. // append (key, value) to headers
  27356. for (const [key, value] of Object.entries(object)) {
  27357. headers.append(key, value)
  27358. }
  27359. } else {
  27360. throw webidl.errors.conversionFailed({
  27361. prefix: 'Headers constructor',
  27362. argument: 'Argument 1',
  27363. types: ['sequence<sequence<ByteString>>', 'record<ByteString, ByteString>']
  27364. })
  27365. }
  27366. }
  27367. class HeadersList {
  27368. /** @type {[string, string][]|null} */
  27369. cookies = null
  27370. constructor (init) {
  27371. if (init instanceof HeadersList) {
  27372. this[kHeadersMap] = new Map(init[kHeadersMap])
  27373. this[kHeadersSortedMap] = init[kHeadersSortedMap]
  27374. this.cookies = init.cookies
  27375. } else {
  27376. this[kHeadersMap] = new Map(init)
  27377. this[kHeadersSortedMap] = null
  27378. }
  27379. }
  27380. // https://fetch.spec.whatwg.org/#header-list-contains
  27381. contains (name) {
  27382. // A header list list contains a header name name if list
  27383. // contains a header whose name is a byte-case-insensitive
  27384. // match for name.
  27385. name = name.toLowerCase()
  27386. return this[kHeadersMap].has(name)
  27387. }
  27388. clear () {
  27389. this[kHeadersMap].clear()
  27390. this[kHeadersSortedMap] = null
  27391. this.cookies = null
  27392. }
  27393. // https://fetch.spec.whatwg.org/#concept-header-list-append
  27394. append (name, value) {
  27395. this[kHeadersSortedMap] = null
  27396. // 1. If list contains name, then set name to the first such
  27397. // header’s name.
  27398. const lowercaseName = name.toLowerCase()
  27399. const exists = this[kHeadersMap].get(lowercaseName)
  27400. // 2. Append (name, value) to list.
  27401. if (exists) {
  27402. const delimiter = lowercaseName === 'cookie' ? '; ' : ', '
  27403. this[kHeadersMap].set(lowercaseName, {
  27404. name: exists.name,
  27405. value: `${exists.value}${delimiter}${value}`
  27406. })
  27407. } else {
  27408. this[kHeadersMap].set(lowercaseName, { name, value })
  27409. }
  27410. if (lowercaseName === 'set-cookie') {
  27411. this.cookies ??= []
  27412. this.cookies.push(value)
  27413. }
  27414. }
  27415. // https://fetch.spec.whatwg.org/#concept-header-list-set
  27416. set (name, value) {
  27417. this[kHeadersSortedMap] = null
  27418. const lowercaseName = name.toLowerCase()
  27419. if (lowercaseName === 'set-cookie') {
  27420. this.cookies = [value]
  27421. }
  27422. // 1. If list contains name, then set the value of
  27423. // the first such header to value and remove the
  27424. // others.
  27425. // 2. Otherwise, append header (name, value) to list.
  27426. return this[kHeadersMap].set(lowercaseName, { name, value })
  27427. }
  27428. // https://fetch.spec.whatwg.org/#concept-header-list-delete
  27429. delete (name) {
  27430. this[kHeadersSortedMap] = null
  27431. name = name.toLowerCase()
  27432. if (name === 'set-cookie') {
  27433. this.cookies = null
  27434. }
  27435. return this[kHeadersMap].delete(name)
  27436. }
  27437. // https://fetch.spec.whatwg.org/#concept-header-list-get
  27438. get (name) {
  27439. // 1. If list does not contain name, then return null.
  27440. if (!this.contains(name)) {
  27441. return null
  27442. }
  27443. // 2. Return the values of all headers in list whose name
  27444. // is a byte-case-insensitive match for name,
  27445. // separated from each other by 0x2C 0x20, in order.
  27446. return this[kHeadersMap].get(name.toLowerCase())?.value ?? null
  27447. }
  27448. * [Symbol.iterator] () {
  27449. // use the lowercased name
  27450. for (const [name, { value }] of this[kHeadersMap]) {
  27451. yield [name, value]
  27452. }
  27453. }
  27454. get entries () {
  27455. const headers = {}
  27456. if (this[kHeadersMap].size) {
  27457. for (const { name, value } of this[kHeadersMap].values()) {
  27458. headers[name] = value
  27459. }
  27460. }
  27461. return headers
  27462. }
  27463. }
  27464. // https://fetch.spec.whatwg.org/#headers-class
  27465. class Headers {
  27466. constructor (init = undefined) {
  27467. this[kHeadersList] = new HeadersList()
  27468. // The new Headers(init) constructor steps are:
  27469. // 1. Set this’s guard to "none".
  27470. this[kGuard] = 'none'
  27471. // 2. If init is given, then fill this with init.
  27472. if (init !== undefined) {
  27473. init = webidl.converters.HeadersInit(init)
  27474. fill(this, init)
  27475. }
  27476. }
  27477. // https://fetch.spec.whatwg.org/#dom-headers-append
  27478. append (name, value) {
  27479. webidl.brandCheck(this, Headers)
  27480. webidl.argumentLengthCheck(arguments, 2, { header: 'Headers.append' })
  27481. name = webidl.converters.ByteString(name)
  27482. value = webidl.converters.ByteString(value)
  27483. // 1. Normalize value.
  27484. value = headerValueNormalize(value)
  27485. // 2. If name is not a header name or value is not a
  27486. // header value, then throw a TypeError.
  27487. if (!isValidHeaderName(name)) {
  27488. throw webidl.errors.invalidArgument({
  27489. prefix: 'Headers.append',
  27490. value: name,
  27491. type: 'header name'
  27492. })
  27493. } else if (!isValidHeaderValue(value)) {
  27494. throw webidl.errors.invalidArgument({
  27495. prefix: 'Headers.append',
  27496. value,
  27497. type: 'header value'
  27498. })
  27499. }
  27500. // 3. If headers’s guard is "immutable", then throw a TypeError.
  27501. // 4. Otherwise, if headers’s guard is "request" and name is a
  27502. // forbidden header name, return.
  27503. // Note: undici does not implement forbidden header names
  27504. if (this[kGuard] === 'immutable') {
  27505. throw new TypeError('immutable')
  27506. } else if (this[kGuard] === 'request-no-cors') {
  27507. // 5. Otherwise, if headers’s guard is "request-no-cors":
  27508. // TODO
  27509. }
  27510. // 6. Otherwise, if headers’s guard is "response" and name is a
  27511. // forbidden response-header name, return.
  27512. // 7. Append (name, value) to headers’s header list.
  27513. // 8. If headers’s guard is "request-no-cors", then remove
  27514. // privileged no-CORS request headers from headers
  27515. return this[kHeadersList].append(name, value)
  27516. }
  27517. // https://fetch.spec.whatwg.org/#dom-headers-delete
  27518. delete (name) {
  27519. webidl.brandCheck(this, Headers)
  27520. webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.delete' })
  27521. name = webidl.converters.ByteString(name)
  27522. // 1. If name is not a header name, then throw a TypeError.
  27523. if (!isValidHeaderName(name)) {
  27524. throw webidl.errors.invalidArgument({
  27525. prefix: 'Headers.delete',
  27526. value: name,
  27527. type: 'header name'
  27528. })
  27529. }
  27530. // 2. If this’s guard is "immutable", then throw a TypeError.
  27531. // 3. Otherwise, if this’s guard is "request" and name is a
  27532. // forbidden header name, return.
  27533. // 4. Otherwise, if this’s guard is "request-no-cors", name
  27534. // is not a no-CORS-safelisted request-header name, and
  27535. // name is not a privileged no-CORS request-header name,
  27536. // return.
  27537. // 5. Otherwise, if this’s guard is "response" and name is
  27538. // a forbidden response-header name, return.
  27539. // Note: undici does not implement forbidden header names
  27540. if (this[kGuard] === 'immutable') {
  27541. throw new TypeError('immutable')
  27542. } else if (this[kGuard] === 'request-no-cors') {
  27543. // TODO
  27544. }
  27545. // 6. If this’s header list does not contain name, then
  27546. // return.
  27547. if (!this[kHeadersList].contains(name)) {
  27548. return
  27549. }
  27550. // 7. Delete name from this’s header list.
  27551. // 8. If this’s guard is "request-no-cors", then remove
  27552. // privileged no-CORS request headers from this.
  27553. return this[kHeadersList].delete(name)
  27554. }
  27555. // https://fetch.spec.whatwg.org/#dom-headers-get
  27556. get (name) {
  27557. webidl.brandCheck(this, Headers)
  27558. webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.get' })
  27559. name = webidl.converters.ByteString(name)
  27560. // 1. If name is not a header name, then throw a TypeError.
  27561. if (!isValidHeaderName(name)) {
  27562. throw webidl.errors.invalidArgument({
  27563. prefix: 'Headers.get',
  27564. value: name,
  27565. type: 'header name'
  27566. })
  27567. }
  27568. // 2. Return the result of getting name from this’s header
  27569. // list.
  27570. return this[kHeadersList].get(name)
  27571. }
  27572. // https://fetch.spec.whatwg.org/#dom-headers-has
  27573. has (name) {
  27574. webidl.brandCheck(this, Headers)
  27575. webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.has' })
  27576. name = webidl.converters.ByteString(name)
  27577. // 1. If name is not a header name, then throw a TypeError.
  27578. if (!isValidHeaderName(name)) {
  27579. throw webidl.errors.invalidArgument({
  27580. prefix: 'Headers.has',
  27581. value: name,
  27582. type: 'header name'
  27583. })
  27584. }
  27585. // 2. Return true if this’s header list contains name;
  27586. // otherwise false.
  27587. return this[kHeadersList].contains(name)
  27588. }
  27589. // https://fetch.spec.whatwg.org/#dom-headers-set
  27590. set (name, value) {
  27591. webidl.brandCheck(this, Headers)
  27592. webidl.argumentLengthCheck(arguments, 2, { header: 'Headers.set' })
  27593. name = webidl.converters.ByteString(name)
  27594. value = webidl.converters.ByteString(value)
  27595. // 1. Normalize value.
  27596. value = headerValueNormalize(value)
  27597. // 2. If name is not a header name or value is not a
  27598. // header value, then throw a TypeError.
  27599. if (!isValidHeaderName(name)) {
  27600. throw webidl.errors.invalidArgument({
  27601. prefix: 'Headers.set',
  27602. value: name,
  27603. type: 'header name'
  27604. })
  27605. } else if (!isValidHeaderValue(value)) {
  27606. throw webidl.errors.invalidArgument({
  27607. prefix: 'Headers.set',
  27608. value,
  27609. type: 'header value'
  27610. })
  27611. }
  27612. // 3. If this’s guard is "immutable", then throw a TypeError.
  27613. // 4. Otherwise, if this’s guard is "request" and name is a
  27614. // forbidden header name, return.
  27615. // 5. Otherwise, if this’s guard is "request-no-cors" and
  27616. // name/value is not a no-CORS-safelisted request-header,
  27617. // return.
  27618. // 6. Otherwise, if this’s guard is "response" and name is a
  27619. // forbidden response-header name, return.
  27620. // Note: undici does not implement forbidden header names
  27621. if (this[kGuard] === 'immutable') {
  27622. throw new TypeError('immutable')
  27623. } else if (this[kGuard] === 'request-no-cors') {
  27624. // TODO
  27625. }
  27626. // 7. Set (name, value) in this’s header list.
  27627. // 8. If this’s guard is "request-no-cors", then remove
  27628. // privileged no-CORS request headers from this
  27629. return this[kHeadersList].set(name, value)
  27630. }
  27631. // https://fetch.spec.whatwg.org/#dom-headers-getsetcookie
  27632. getSetCookie () {
  27633. webidl.brandCheck(this, Headers)
  27634. // 1. If this’s header list does not contain `Set-Cookie`, then return « ».
  27635. // 2. Return the values of all headers in this’s header list whose name is
  27636. // a byte-case-insensitive match for `Set-Cookie`, in order.
  27637. const list = this[kHeadersList].cookies
  27638. if (list) {
  27639. return [...list]
  27640. }
  27641. return []
  27642. }
  27643. // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine
  27644. get [kHeadersSortedMap] () {
  27645. if (this[kHeadersList][kHeadersSortedMap]) {
  27646. return this[kHeadersList][kHeadersSortedMap]
  27647. }
  27648. // 1. Let headers be an empty list of headers with the key being the name
  27649. // and value the value.
  27650. const headers = []
  27651. // 2. Let names be the result of convert header names to a sorted-lowercase
  27652. // set with all the names of the headers in list.
  27653. const names = [...this[kHeadersList]].sort((a, b) => a[0] < b[0] ? -1 : 1)
  27654. const cookies = this[kHeadersList].cookies
  27655. // 3. For each name of names:
  27656. for (const [name, value] of names) {
  27657. // 1. If name is `set-cookie`, then:
  27658. if (name === 'set-cookie') {
  27659. // 1. Let values be a list of all values of headers in list whose name
  27660. // is a byte-case-insensitive match for name, in order.
  27661. // 2. For each value of values:
  27662. // 1. Append (name, value) to headers.
  27663. for (const value of cookies) {
  27664. headers.push([name, value])
  27665. }
  27666. } else {
  27667. // 2. Otherwise:
  27668. // 1. Let value be the result of getting name from list.
  27669. // 2. Assert: value is non-null.
  27670. assert(value !== null)
  27671. // 3. Append (name, value) to headers.
  27672. headers.push([name, value])
  27673. }
  27674. }
  27675. this[kHeadersList][kHeadersSortedMap] = headers
  27676. // 4. Return headers.
  27677. return headers
  27678. }
  27679. keys () {
  27680. webidl.brandCheck(this, Headers)
  27681. return makeIterator(
  27682. () => [...this[kHeadersSortedMap].values()],
  27683. 'Headers',
  27684. 'key'
  27685. )
  27686. }
  27687. values () {
  27688. webidl.brandCheck(this, Headers)
  27689. return makeIterator(
  27690. () => [...this[kHeadersSortedMap].values()],
  27691. 'Headers',
  27692. 'value'
  27693. )
  27694. }
  27695. entries () {
  27696. webidl.brandCheck(this, Headers)
  27697. return makeIterator(
  27698. () => [...this[kHeadersSortedMap].values()],
  27699. 'Headers',
  27700. 'key+value'
  27701. )
  27702. }
  27703. /**
  27704. * @param {(value: string, key: string, self: Headers) => void} callbackFn
  27705. * @param {unknown} thisArg
  27706. */
  27707. forEach (callbackFn, thisArg = globalThis) {
  27708. webidl.brandCheck(this, Headers)
  27709. webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.forEach' })
  27710. if (typeof callbackFn !== 'function') {
  27711. throw new TypeError(
  27712. "Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'."
  27713. )
  27714. }
  27715. for (const [key, value] of this) {
  27716. callbackFn.apply(thisArg, [value, key, this])
  27717. }
  27718. }
  27719. [Symbol.for('nodejs.util.inspect.custom')] () {
  27720. webidl.brandCheck(this, Headers)
  27721. return this[kHeadersList]
  27722. }
  27723. }
  27724. Headers.prototype[Symbol.iterator] = Headers.prototype.entries
  27725. Object.defineProperties(Headers.prototype, {
  27726. append: kEnumerableProperty,
  27727. delete: kEnumerableProperty,
  27728. get: kEnumerableProperty,
  27729. has: kEnumerableProperty,
  27730. set: kEnumerableProperty,
  27731. getSetCookie: kEnumerableProperty,
  27732. keys: kEnumerableProperty,
  27733. values: kEnumerableProperty,
  27734. entries: kEnumerableProperty,
  27735. forEach: kEnumerableProperty,
  27736. [Symbol.iterator]: { enumerable: false },
  27737. [Symbol.toStringTag]: {
  27738. value: 'Headers',
  27739. configurable: true
  27740. }
  27741. })
  27742. webidl.converters.HeadersInit = function (V) {
  27743. if (webidl.util.Type(V) === 'Object') {
  27744. if (V[Symbol.iterator]) {
  27745. return webidl.converters['sequence<sequence<ByteString>>'](V)
  27746. }
  27747. return webidl.converters['record<ByteString, ByteString>'](V)
  27748. }
  27749. throw webidl.errors.conversionFailed({
  27750. prefix: 'Headers constructor',
  27751. argument: 'Argument 1',
  27752. types: ['sequence<sequence<ByteString>>', 'record<ByteString, ByteString>']
  27753. })
  27754. }
  27755. module.exports = {
  27756. fill,
  27757. Headers,
  27758. HeadersList
  27759. }
  27760. /***/ }),
  27761. /***/ 4881:
  27762. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  27763. "use strict";
  27764. // https://github.com/Ethan-Arrowood/undici-fetch
  27765. const {
  27766. Response,
  27767. makeNetworkError,
  27768. makeAppropriateNetworkError,
  27769. filterResponse,
  27770. makeResponse
  27771. } = __nccwpck_require__(7823)
  27772. const { Headers } = __nccwpck_require__(554)
  27773. const { Request, makeRequest } = __nccwpck_require__(8359)
  27774. const zlib = __nccwpck_require__(9796)
  27775. const {
  27776. bytesMatch,
  27777. makePolicyContainer,
  27778. clonePolicyContainer,
  27779. requestBadPort,
  27780. TAOCheck,
  27781. appendRequestOriginHeader,
  27782. responseLocationURL,
  27783. requestCurrentURL,
  27784. setRequestReferrerPolicyOnRedirect,
  27785. tryUpgradeRequestToAPotentiallyTrustworthyURL,
  27786. createOpaqueTimingInfo,
  27787. appendFetchMetadata,
  27788. corsCheck,
  27789. crossOriginResourcePolicyCheck,
  27790. determineRequestsReferrer,
  27791. coarsenedSharedCurrentTime,
  27792. createDeferredPromise,
  27793. isBlobLike,
  27794. sameOrigin,
  27795. isCancelled,
  27796. isAborted,
  27797. isErrorLike,
  27798. fullyReadBody,
  27799. readableStreamClose,
  27800. isomorphicEncode,
  27801. urlIsLocal,
  27802. urlIsHttpHttpsScheme,
  27803. urlHasHttpsScheme
  27804. } = __nccwpck_require__(2538)
  27805. const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(5861)
  27806. const assert = __nccwpck_require__(9491)
  27807. const { safelyExtractBody } = __nccwpck_require__(9990)
  27808. const {
  27809. redirectStatus,
  27810. nullBodyStatus,
  27811. safeMethods,
  27812. requestBodyHeader,
  27813. subresource,
  27814. DOMException
  27815. } = __nccwpck_require__(1037)
  27816. const { kHeadersList } = __nccwpck_require__(2785)
  27817. const EE = __nccwpck_require__(2361)
  27818. const { Readable, pipeline } = __nccwpck_require__(2781)
  27819. const { addAbortListener, isErrored, isReadable, nodeMajor, nodeMinor } = __nccwpck_require__(3983)
  27820. const { dataURLProcessor, serializeAMimeType } = __nccwpck_require__(685)
  27821. const { TransformStream } = __nccwpck_require__(5356)
  27822. const { getGlobalDispatcher } = __nccwpck_require__(1892)
  27823. const { webidl } = __nccwpck_require__(1744)
  27824. const { STATUS_CODES } = __nccwpck_require__(3685)
  27825. /** @type {import('buffer').resolveObjectURL} */
  27826. let resolveObjectURL
  27827. let ReadableStream = globalThis.ReadableStream
  27828. class Fetch extends EE {
  27829. constructor (dispatcher) {
  27830. super()
  27831. this.dispatcher = dispatcher
  27832. this.connection = null
  27833. this.dump = false
  27834. this.state = 'ongoing'
  27835. // 2 terminated listeners get added per request,
  27836. // but only 1 gets removed. If there are 20 redirects,
  27837. // 21 listeners will be added.
  27838. // See https://github.com/nodejs/undici/issues/1711
  27839. // TODO (fix): Find and fix root cause for leaked listener.
  27840. this.setMaxListeners(21)
  27841. }
  27842. terminate (reason) {
  27843. if (this.state !== 'ongoing') {
  27844. return
  27845. }
  27846. this.state = 'terminated'
  27847. this.connection?.destroy(reason)
  27848. this.emit('terminated', reason)
  27849. }
  27850. // https://fetch.spec.whatwg.org/#fetch-controller-abort
  27851. abort (error) {
  27852. if (this.state !== 'ongoing') {
  27853. return
  27854. }
  27855. // 1. Set controller’s state to "aborted".
  27856. this.state = 'aborted'
  27857. // 2. Let fallbackError be an "AbortError" DOMException.
  27858. // 3. Set error to fallbackError if it is not given.
  27859. if (!error) {
  27860. error = new DOMException('The operation was aborted.', 'AbortError')
  27861. }
  27862. // 4. Let serializedError be StructuredSerialize(error).
  27863. // If that threw an exception, catch it, and let
  27864. // serializedError be StructuredSerialize(fallbackError).
  27865. // 5. Set controller’s serialized abort reason to serializedError.
  27866. this.serializedAbortReason = error
  27867. this.connection?.destroy(error)
  27868. this.emit('terminated', error)
  27869. }
  27870. }
  27871. // https://fetch.spec.whatwg.org/#fetch-method
  27872. async function fetch (input, init = {}) {
  27873. webidl.argumentLengthCheck(arguments, 1, { header: 'globalThis.fetch' })
  27874. // 1. Let p be a new promise.
  27875. const p = createDeferredPromise()
  27876. // 2. Let requestObject be the result of invoking the initial value of
  27877. // Request as constructor with input and init as arguments. If this throws
  27878. // an exception, reject p with it and return p.
  27879. let requestObject
  27880. try {
  27881. requestObject = new Request(input, init)
  27882. } catch (e) {
  27883. p.reject(e)
  27884. return p.promise
  27885. }
  27886. // 3. Let request be requestObject’s request.
  27887. const request = requestObject[kState]
  27888. // 4. If requestObject’s signal’s aborted flag is set, then:
  27889. if (requestObject.signal.aborted) {
  27890. // 1. Abort the fetch() call with p, request, null, and
  27891. // requestObject’s signal’s abort reason.
  27892. abortFetch(p, request, null, requestObject.signal.reason)
  27893. // 2. Return p.
  27894. return p.promise
  27895. }
  27896. // 5. Let globalObject be request’s client’s global object.
  27897. const globalObject = request.client.globalObject
  27898. // 6. If globalObject is a ServiceWorkerGlobalScope object, then set
  27899. // request’s service-workers mode to "none".
  27900. if (globalObject?.constructor?.name === 'ServiceWorkerGlobalScope') {
  27901. request.serviceWorkers = 'none'
  27902. }
  27903. // 7. Let responseObject be null.
  27904. let responseObject = null
  27905. // 8. Let relevantRealm be this’s relevant Realm.
  27906. const relevantRealm = null
  27907. // 9. Let locallyAborted be false.
  27908. let locallyAborted = false
  27909. // 10. Let controller be null.
  27910. let controller = null
  27911. // 11. Add the following abort steps to requestObject’s signal:
  27912. addAbortListener(
  27913. requestObject.signal,
  27914. () => {
  27915. // 1. Set locallyAborted to true.
  27916. locallyAborted = true
  27917. // 2. Assert: controller is non-null.
  27918. assert(controller != null)
  27919. // 3. Abort controller with requestObject’s signal’s abort reason.
  27920. controller.abort(requestObject.signal.reason)
  27921. // 4. Abort the fetch() call with p, request, responseObject,
  27922. // and requestObject’s signal’s abort reason.
  27923. abortFetch(p, request, responseObject, requestObject.signal.reason)
  27924. }
  27925. )
  27926. // 12. Let handleFetchDone given response response be to finalize and
  27927. // report timing with response, globalObject, and "fetch".
  27928. const handleFetchDone = (response) =>
  27929. finalizeAndReportTiming(response, 'fetch')
  27930. // 13. Set controller to the result of calling fetch given request,
  27931. // with processResponseEndOfBody set to handleFetchDone, and processResponse
  27932. // given response being these substeps:
  27933. const processResponse = (response) => {
  27934. // 1. If locallyAborted is true, terminate these substeps.
  27935. if (locallyAborted) {
  27936. return
  27937. }
  27938. // 2. If response’s aborted flag is set, then:
  27939. if (response.aborted) {
  27940. // 1. Let deserializedError be the result of deserialize a serialized
  27941. // abort reason given controller’s serialized abort reason and
  27942. // relevantRealm.
  27943. // 2. Abort the fetch() call with p, request, responseObject, and
  27944. // deserializedError.
  27945. abortFetch(p, request, responseObject, controller.serializedAbortReason)
  27946. return
  27947. }
  27948. // 3. If response is a network error, then reject p with a TypeError
  27949. // and terminate these substeps.
  27950. if (response.type === 'error') {
  27951. p.reject(
  27952. Object.assign(new TypeError('fetch failed'), { cause: response.error })
  27953. )
  27954. return
  27955. }
  27956. // 4. Set responseObject to the result of creating a Response object,
  27957. // given response, "immutable", and relevantRealm.
  27958. responseObject = new Response()
  27959. responseObject[kState] = response
  27960. responseObject[kRealm] = relevantRealm
  27961. responseObject[kHeaders][kHeadersList] = response.headersList
  27962. responseObject[kHeaders][kGuard] = 'immutable'
  27963. responseObject[kHeaders][kRealm] = relevantRealm
  27964. // 5. Resolve p with responseObject.
  27965. p.resolve(responseObject)
  27966. }
  27967. controller = fetching({
  27968. request,
  27969. processResponseEndOfBody: handleFetchDone,
  27970. processResponse,
  27971. dispatcher: init.dispatcher ?? getGlobalDispatcher() // undici
  27972. })
  27973. // 14. Return p.
  27974. return p.promise
  27975. }
  27976. // https://fetch.spec.whatwg.org/#finalize-and-report-timing
  27977. function finalizeAndReportTiming (response, initiatorType = 'other') {
  27978. // 1. If response is an aborted network error, then return.
  27979. if (response.type === 'error' && response.aborted) {
  27980. return
  27981. }
  27982. // 2. If response’s URL list is null or empty, then return.
  27983. if (!response.urlList?.length) {
  27984. return
  27985. }
  27986. // 3. Let originalURL be response’s URL list[0].
  27987. const originalURL = response.urlList[0]
  27988. // 4. Let timingInfo be response’s timing info.
  27989. let timingInfo = response.timingInfo
  27990. // 5. Let cacheState be response’s cache state.
  27991. let cacheState = response.cacheState
  27992. // 6. If originalURL’s scheme is not an HTTP(S) scheme, then return.
  27993. if (!urlIsHttpHttpsScheme(originalURL)) {
  27994. return
  27995. }
  27996. // 7. If timingInfo is null, then return.
  27997. if (timingInfo === null) {
  27998. return
  27999. }
  28000. // 8. If response’s timing allow passed flag is not set, then:
  28001. if (!timingInfo.timingAllowPassed) {
  28002. // 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo.
  28003. timingInfo = createOpaqueTimingInfo({
  28004. startTime: timingInfo.startTime
  28005. })
  28006. // 2. Set cacheState to the empty string.
  28007. cacheState = ''
  28008. }
  28009. // 9. Set timingInfo’s end time to the coarsened shared current time
  28010. // given global’s relevant settings object’s cross-origin isolated
  28011. // capability.
  28012. // TODO: given global’s relevant settings object’s cross-origin isolated
  28013. // capability?
  28014. timingInfo.endTime = coarsenedSharedCurrentTime()
  28015. // 10. Set response’s timing info to timingInfo.
  28016. response.timingInfo = timingInfo
  28017. // 11. Mark resource timing for timingInfo, originalURL, initiatorType,
  28018. // global, and cacheState.
  28019. markResourceTiming(
  28020. timingInfo,
  28021. originalURL,
  28022. initiatorType,
  28023. globalThis,
  28024. cacheState
  28025. )
  28026. }
  28027. // https://w3c.github.io/resource-timing/#dfn-mark-resource-timing
  28028. function markResourceTiming (timingInfo, originalURL, initiatorType, globalThis, cacheState) {
  28029. if (nodeMajor > 18 || (nodeMajor === 18 && nodeMinor >= 2)) {
  28030. performance.markResourceTiming(timingInfo, originalURL.href, initiatorType, globalThis, cacheState)
  28031. }
  28032. }
  28033. // https://fetch.spec.whatwg.org/#abort-fetch
  28034. function abortFetch (p, request, responseObject, error) {
  28035. // Note: AbortSignal.reason was added in node v17.2.0
  28036. // which would give us an undefined error to reject with.
  28037. // Remove this once node v16 is no longer supported.
  28038. if (!error) {
  28039. error = new DOMException('The operation was aborted.', 'AbortError')
  28040. }
  28041. // 1. Reject promise with error.
  28042. p.reject(error)
  28043. // 2. If request’s body is not null and is readable, then cancel request’s
  28044. // body with error.
  28045. if (request.body != null && isReadable(request.body?.stream)) {
  28046. request.body.stream.cancel(error).catch((err) => {
  28047. if (err.code === 'ERR_INVALID_STATE') {
  28048. // Node bug?
  28049. return
  28050. }
  28051. throw err
  28052. })
  28053. }
  28054. // 3. If responseObject is null, then return.
  28055. if (responseObject == null) {
  28056. return
  28057. }
  28058. // 4. Let response be responseObject’s response.
  28059. const response = responseObject[kState]
  28060. // 5. If response’s body is not null and is readable, then error response’s
  28061. // body with error.
  28062. if (response.body != null && isReadable(response.body?.stream)) {
  28063. response.body.stream.cancel(error).catch((err) => {
  28064. if (err.code === 'ERR_INVALID_STATE') {
  28065. // Node bug?
  28066. return
  28067. }
  28068. throw err
  28069. })
  28070. }
  28071. }
  28072. // https://fetch.spec.whatwg.org/#fetching
  28073. function fetching ({
  28074. request,
  28075. processRequestBodyChunkLength,
  28076. processRequestEndOfBody,
  28077. processResponse,
  28078. processResponseEndOfBody,
  28079. processResponseConsumeBody,
  28080. useParallelQueue = false,
  28081. dispatcher // undici
  28082. }) {
  28083. // 1. Let taskDestination be null.
  28084. let taskDestination = null
  28085. // 2. Let crossOriginIsolatedCapability be false.
  28086. let crossOriginIsolatedCapability = false
  28087. // 3. If request’s client is non-null, then:
  28088. if (request.client != null) {
  28089. // 1. Set taskDestination to request’s client’s global object.
  28090. taskDestination = request.client.globalObject
  28091. // 2. Set crossOriginIsolatedCapability to request’s client’s cross-origin
  28092. // isolated capability.
  28093. crossOriginIsolatedCapability =
  28094. request.client.crossOriginIsolatedCapability
  28095. }
  28096. // 4. If useParallelQueue is true, then set taskDestination to the result of
  28097. // starting a new parallel queue.
  28098. // TODO
  28099. // 5. Let timingInfo be a new fetch timing info whose start time and
  28100. // post-redirect start time are the coarsened shared current time given
  28101. // crossOriginIsolatedCapability.
  28102. const currenTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability)
  28103. const timingInfo = createOpaqueTimingInfo({
  28104. startTime: currenTime
  28105. })
  28106. // 6. Let fetchParams be a new fetch params whose
  28107. // request is request,
  28108. // timing info is timingInfo,
  28109. // process request body chunk length is processRequestBodyChunkLength,
  28110. // process request end-of-body is processRequestEndOfBody,
  28111. // process response is processResponse,
  28112. // process response consume body is processResponseConsumeBody,
  28113. // process response end-of-body is processResponseEndOfBody,
  28114. // task destination is taskDestination,
  28115. // and cross-origin isolated capability is crossOriginIsolatedCapability.
  28116. const fetchParams = {
  28117. controller: new Fetch(dispatcher),
  28118. request,
  28119. timingInfo,
  28120. processRequestBodyChunkLength,
  28121. processRequestEndOfBody,
  28122. processResponse,
  28123. processResponseConsumeBody,
  28124. processResponseEndOfBody,
  28125. taskDestination,
  28126. crossOriginIsolatedCapability
  28127. }
  28128. // 7. If request’s body is a byte sequence, then set request’s body to
  28129. // request’s body as a body.
  28130. // NOTE: Since fetching is only called from fetch, body should already be
  28131. // extracted.
  28132. assert(!request.body || request.body.stream)
  28133. // 8. If request’s window is "client", then set request’s window to request’s
  28134. // client, if request’s client’s global object is a Window object; otherwise
  28135. // "no-window".
  28136. if (request.window === 'client') {
  28137. // TODO: What if request.client is null?
  28138. request.window =
  28139. request.client?.globalObject?.constructor?.name === 'Window'
  28140. ? request.client
  28141. : 'no-window'
  28142. }
  28143. // 9. If request’s origin is "client", then set request’s origin to request’s
  28144. // client’s origin.
  28145. if (request.origin === 'client') {
  28146. // TODO: What if request.client is null?
  28147. request.origin = request.client?.origin
  28148. }
  28149. // 10. If all of the following conditions are true:
  28150. // TODO
  28151. // 11. If request’s policy container is "client", then:
  28152. if (request.policyContainer === 'client') {
  28153. // 1. If request’s client is non-null, then set request’s policy
  28154. // container to a clone of request’s client’s policy container. [HTML]
  28155. if (request.client != null) {
  28156. request.policyContainer = clonePolicyContainer(
  28157. request.client.policyContainer
  28158. )
  28159. } else {
  28160. // 2. Otherwise, set request’s policy container to a new policy
  28161. // container.
  28162. request.policyContainer = makePolicyContainer()
  28163. }
  28164. }
  28165. // 12. If request’s header list does not contain `Accept`, then:
  28166. if (!request.headersList.contains('accept')) {
  28167. // 1. Let value be `*/*`.
  28168. const value = '*/*'
  28169. // 2. A user agent should set value to the first matching statement, if
  28170. // any, switching on request’s destination:
  28171. // "document"
  28172. // "frame"
  28173. // "iframe"
  28174. // `text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`
  28175. // "image"
  28176. // `image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5`
  28177. // "style"
  28178. // `text/css,*/*;q=0.1`
  28179. // TODO
  28180. // 3. Append `Accept`/value to request’s header list.
  28181. request.headersList.append('accept', value)
  28182. }
  28183. // 13. If request’s header list does not contain `Accept-Language`, then
  28184. // user agents should append `Accept-Language`/an appropriate value to
  28185. // request’s header list.
  28186. if (!request.headersList.contains('accept-language')) {
  28187. request.headersList.append('accept-language', '*')
  28188. }
  28189. // 14. If request’s priority is null, then use request’s initiator and
  28190. // destination appropriately in setting request’s priority to a
  28191. // user-agent-defined object.
  28192. if (request.priority === null) {
  28193. // TODO
  28194. }
  28195. // 15. If request is a subresource request, then:
  28196. if (subresource.includes(request.destination)) {
  28197. // TODO
  28198. }
  28199. // 16. Run main fetch given fetchParams.
  28200. mainFetch(fetchParams)
  28201. .catch(err => {
  28202. fetchParams.controller.terminate(err)
  28203. })
  28204. // 17. Return fetchParam's controller
  28205. return fetchParams.controller
  28206. }
  28207. // https://fetch.spec.whatwg.org/#concept-main-fetch
  28208. async function mainFetch (fetchParams, recursive = false) {
  28209. // 1. Let request be fetchParams’s request.
  28210. const request = fetchParams.request
  28211. // 2. Let response be null.
  28212. let response = null
  28213. // 3. If request’s local-URLs-only flag is set and request’s current URL is
  28214. // not local, then set response to a network error.
  28215. if (request.localURLsOnly && !urlIsLocal(requestCurrentURL(request))) {
  28216. response = makeNetworkError('local URLs only')
  28217. }
  28218. // 4. Run report Content Security Policy violations for request.
  28219. // TODO
  28220. // 5. Upgrade request to a potentially trustworthy URL, if appropriate.
  28221. tryUpgradeRequestToAPotentiallyTrustworthyURL(request)
  28222. // 6. If should request be blocked due to a bad port, should fetching request
  28223. // be blocked as mixed content, or should request be blocked by Content
  28224. // Security Policy returns blocked, then set response to a network error.
  28225. if (requestBadPort(request) === 'blocked') {
  28226. response = makeNetworkError('bad port')
  28227. }
  28228. // TODO: should fetching request be blocked as mixed content?
  28229. // TODO: should request be blocked by Content Security Policy?
  28230. // 7. If request’s referrer policy is the empty string, then set request’s
  28231. // referrer policy to request’s policy container’s referrer policy.
  28232. if (request.referrerPolicy === '') {
  28233. request.referrerPolicy = request.policyContainer.referrerPolicy
  28234. }
  28235. // 8. If request’s referrer is not "no-referrer", then set request’s
  28236. // referrer to the result of invoking determine request’s referrer.
  28237. if (request.referrer !== 'no-referrer') {
  28238. request.referrer = determineRequestsReferrer(request)
  28239. }
  28240. // 9. Set request’s current URL’s scheme to "https" if all of the following
  28241. // conditions are true:
  28242. // - request’s current URL’s scheme is "http"
  28243. // - request’s current URL’s host is a domain
  28244. // - Matching request’s current URL’s host per Known HSTS Host Domain Name
  28245. // Matching results in either a superdomain match with an asserted
  28246. // includeSubDomains directive or a congruent match (with or without an
  28247. // asserted includeSubDomains directive). [HSTS]
  28248. // TODO
  28249. // 10. If recursive is false, then run the remaining steps in parallel.
  28250. // TODO
  28251. // 11. If response is null, then set response to the result of running
  28252. // the steps corresponding to the first matching statement:
  28253. if (response === null) {
  28254. response = await (async () => {
  28255. const currentURL = requestCurrentURL(request)
  28256. if (
  28257. // - request’s current URL’s origin is same origin with request’s origin,
  28258. // and request’s response tainting is "basic"
  28259. (sameOrigin(currentURL, request.url) && request.responseTainting === 'basic') ||
  28260. // request’s current URL’s scheme is "data"
  28261. (currentURL.protocol === 'data:') ||
  28262. // - request’s mode is "navigate" or "websocket"
  28263. (request.mode === 'navigate' || request.mode === 'websocket')
  28264. ) {
  28265. // 1. Set request’s response tainting to "basic".
  28266. request.responseTainting = 'basic'
  28267. // 2. Return the result of running scheme fetch given fetchParams.
  28268. return await schemeFetch(fetchParams)
  28269. }
  28270. // request’s mode is "same-origin"
  28271. if (request.mode === 'same-origin') {
  28272. // 1. Return a network error.
  28273. return makeNetworkError('request mode cannot be "same-origin"')
  28274. }
  28275. // request’s mode is "no-cors"
  28276. if (request.mode === 'no-cors') {
  28277. // 1. If request’s redirect mode is not "follow", then return a network
  28278. // error.
  28279. if (request.redirect !== 'follow') {
  28280. return makeNetworkError(
  28281. 'redirect mode cannot be "follow" for "no-cors" request'
  28282. )
  28283. }
  28284. // 2. Set request’s response tainting to "opaque".
  28285. request.responseTainting = 'opaque'
  28286. // 3. Return the result of running scheme fetch given fetchParams.
  28287. return await schemeFetch(fetchParams)
  28288. }
  28289. // request’s current URL’s scheme is not an HTTP(S) scheme
  28290. if (!urlIsHttpHttpsScheme(requestCurrentURL(request))) {
  28291. // Return a network error.
  28292. return makeNetworkError('URL scheme must be a HTTP(S) scheme')
  28293. }
  28294. // - request’s use-CORS-preflight flag is set
  28295. // - request’s unsafe-request flag is set and either request’s method is
  28296. // not a CORS-safelisted method or CORS-unsafe request-header names with
  28297. // request’s header list is not empty
  28298. // 1. Set request’s response tainting to "cors".
  28299. // 2. Let corsWithPreflightResponse be the result of running HTTP fetch
  28300. // given fetchParams and true.
  28301. // 3. If corsWithPreflightResponse is a network error, then clear cache
  28302. // entries using request.
  28303. // 4. Return corsWithPreflightResponse.
  28304. // TODO
  28305. // Otherwise
  28306. // 1. Set request’s response tainting to "cors".
  28307. request.responseTainting = 'cors'
  28308. // 2. Return the result of running HTTP fetch given fetchParams.
  28309. return await httpFetch(fetchParams)
  28310. })()
  28311. }
  28312. // 12. If recursive is true, then return response.
  28313. if (recursive) {
  28314. return response
  28315. }
  28316. // 13. If response is not a network error and response is not a filtered
  28317. // response, then:
  28318. if (response.status !== 0 && !response.internalResponse) {
  28319. // If request’s response tainting is "cors", then:
  28320. if (request.responseTainting === 'cors') {
  28321. // 1. Let headerNames be the result of extracting header list values
  28322. // given `Access-Control-Expose-Headers` and response’s header list.
  28323. // TODO
  28324. // 2. If request’s credentials mode is not "include" and headerNames
  28325. // contains `*`, then set response’s CORS-exposed header-name list to
  28326. // all unique header names in response’s header list.
  28327. // TODO
  28328. // 3. Otherwise, if headerNames is not null or failure, then set
  28329. // response’s CORS-exposed header-name list to headerNames.
  28330. // TODO
  28331. }
  28332. // Set response to the following filtered response with response as its
  28333. // internal response, depending on request’s response tainting:
  28334. if (request.responseTainting === 'basic') {
  28335. response = filterResponse(response, 'basic')
  28336. } else if (request.responseTainting === 'cors') {
  28337. response = filterResponse(response, 'cors')
  28338. } else if (request.responseTainting === 'opaque') {
  28339. response = filterResponse(response, 'opaque')
  28340. } else {
  28341. assert(false)
  28342. }
  28343. }
  28344. // 14. Let internalResponse be response, if response is a network error,
  28345. // and response’s internal response otherwise.
  28346. let internalResponse =
  28347. response.status === 0 ? response : response.internalResponse
  28348. // 15. If internalResponse’s URL list is empty, then set it to a clone of
  28349. // request’s URL list.
  28350. if (internalResponse.urlList.length === 0) {
  28351. internalResponse.urlList.push(...request.urlList)
  28352. }
  28353. // 16. If request’s timing allow failed flag is unset, then set
  28354. // internalResponse’s timing allow passed flag.
  28355. if (!request.timingAllowFailed) {
  28356. response.timingAllowPassed = true
  28357. }
  28358. // 17. If response is not a network error and any of the following returns
  28359. // blocked
  28360. // - should internalResponse to request be blocked as mixed content
  28361. // - should internalResponse to request be blocked by Content Security Policy
  28362. // - should internalResponse to request be blocked due to its MIME type
  28363. // - should internalResponse to request be blocked due to nosniff
  28364. // TODO
  28365. // 18. If response’s type is "opaque", internalResponse’s status is 206,
  28366. // internalResponse’s range-requested flag is set, and request’s header
  28367. // list does not contain `Range`, then set response and internalResponse
  28368. // to a network error.
  28369. if (
  28370. response.type === 'opaque' &&
  28371. internalResponse.status === 206 &&
  28372. internalResponse.rangeRequested &&
  28373. !request.headers.contains('range')
  28374. ) {
  28375. response = internalResponse = makeNetworkError()
  28376. }
  28377. // 19. If response is not a network error and either request’s method is
  28378. // `HEAD` or `CONNECT`, or internalResponse’s status is a null body status,
  28379. // set internalResponse’s body to null and disregard any enqueuing toward
  28380. // it (if any).
  28381. if (
  28382. response.status !== 0 &&
  28383. (request.method === 'HEAD' ||
  28384. request.method === 'CONNECT' ||
  28385. nullBodyStatus.includes(internalResponse.status))
  28386. ) {
  28387. internalResponse.body = null
  28388. fetchParams.controller.dump = true
  28389. }
  28390. // 20. If request’s integrity metadata is not the empty string, then:
  28391. if (request.integrity) {
  28392. // 1. Let processBodyError be this step: run fetch finale given fetchParams
  28393. // and a network error.
  28394. const processBodyError = (reason) =>
  28395. fetchFinale(fetchParams, makeNetworkError(reason))
  28396. // 2. If request’s response tainting is "opaque", or response’s body is null,
  28397. // then run processBodyError and abort these steps.
  28398. if (request.responseTainting === 'opaque' || response.body == null) {
  28399. processBodyError(response.error)
  28400. return
  28401. }
  28402. // 3. Let processBody given bytes be these steps:
  28403. const processBody = (bytes) => {
  28404. // 1. If bytes do not match request’s integrity metadata,
  28405. // then run processBodyError and abort these steps. [SRI]
  28406. if (!bytesMatch(bytes, request.integrity)) {
  28407. processBodyError('integrity mismatch')
  28408. return
  28409. }
  28410. // 2. Set response’s body to bytes as a body.
  28411. response.body = safelyExtractBody(bytes)[0]
  28412. // 3. Run fetch finale given fetchParams and response.
  28413. fetchFinale(fetchParams, response)
  28414. }
  28415. // 4. Fully read response’s body given processBody and processBodyError.
  28416. await fullyReadBody(response.body, processBody, processBodyError)
  28417. } else {
  28418. // 21. Otherwise, run fetch finale given fetchParams and response.
  28419. fetchFinale(fetchParams, response)
  28420. }
  28421. }
  28422. // https://fetch.spec.whatwg.org/#concept-scheme-fetch
  28423. // given a fetch params fetchParams
  28424. async function schemeFetch (fetchParams) {
  28425. // Note: since the connection is destroyed on redirect, which sets fetchParams to a
  28426. // cancelled state, we do not want this condition to trigger *unless* there have been
  28427. // no redirects. See https://github.com/nodejs/undici/issues/1776
  28428. // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.
  28429. if (isCancelled(fetchParams) && fetchParams.request.redirectCount === 0) {
  28430. return makeAppropriateNetworkError(fetchParams)
  28431. }
  28432. // 2. Let request be fetchParams’s request.
  28433. const { request } = fetchParams
  28434. const { protocol: scheme } = requestCurrentURL(request)
  28435. // 3. Switch on request’s current URL’s scheme and run the associated steps:
  28436. switch (scheme) {
  28437. case 'about:': {
  28438. // If request’s current URL’s path is the string "blank", then return a new response
  28439. // whose status message is `OK`, header list is « (`Content-Type`, `text/html;charset=utf-8`) »,
  28440. // and body is the empty byte sequence as a body.
  28441. // Otherwise, return a network error.
  28442. return makeNetworkError('about scheme is not supported')
  28443. }
  28444. case 'blob:': {
  28445. if (!resolveObjectURL) {
  28446. resolveObjectURL = (__nccwpck_require__(4300).resolveObjectURL)
  28447. }
  28448. // 1. Let blobURLEntry be request’s current URL’s blob URL entry.
  28449. const blobURLEntry = requestCurrentURL(request)
  28450. // https://github.com/web-platform-tests/wpt/blob/7b0ebaccc62b566a1965396e5be7bb2bc06f841f/FileAPI/url/resources/fetch-tests.js#L52-L56
  28451. // Buffer.resolveObjectURL does not ignore URL queries.
  28452. if (blobURLEntry.search.length !== 0) {
  28453. return makeNetworkError('NetworkError when attempting to fetch resource.')
  28454. }
  28455. const blobURLEntryObject = resolveObjectURL(blobURLEntry.toString())
  28456. // 2. If request’s method is not `GET`, blobURLEntry is null, or blobURLEntry’s
  28457. // object is not a Blob object, then return a network error.
  28458. if (request.method !== 'GET' || !isBlobLike(blobURLEntryObject)) {
  28459. return makeNetworkError('invalid method')
  28460. }
  28461. // 3. Let bodyWithType be the result of safely extracting blobURLEntry’s object.
  28462. const bodyWithType = safelyExtractBody(blobURLEntryObject)
  28463. // 4. Let body be bodyWithType’s body.
  28464. const body = bodyWithType[0]
  28465. // 5. Let length be body’s length, serialized and isomorphic encoded.
  28466. const length = isomorphicEncode(`${body.length}`)
  28467. // 6. Let type be bodyWithType’s type if it is non-null; otherwise the empty byte sequence.
  28468. const type = bodyWithType[1] ?? ''
  28469. // 7. Return a new response whose status message is `OK`, header list is
  28470. // « (`Content-Length`, length), (`Content-Type`, type) », and body is body.
  28471. const response = makeResponse({
  28472. statusText: 'OK',
  28473. headersList: [
  28474. ['content-length', { name: 'Content-Length', value: length }],
  28475. ['content-type', { name: 'Content-Type', value: type }]
  28476. ]
  28477. })
  28478. response.body = body
  28479. return response
  28480. }
  28481. case 'data:': {
  28482. // 1. Let dataURLStruct be the result of running the
  28483. // data: URL processor on request’s current URL.
  28484. const currentURL = requestCurrentURL(request)
  28485. const dataURLStruct = dataURLProcessor(currentURL)
  28486. // 2. If dataURLStruct is failure, then return a
  28487. // network error.
  28488. if (dataURLStruct === 'failure') {
  28489. return makeNetworkError('failed to fetch the data URL')
  28490. }
  28491. // 3. Let mimeType be dataURLStruct’s MIME type, serialized.
  28492. const mimeType = serializeAMimeType(dataURLStruct.mimeType)
  28493. // 4. Return a response whose status message is `OK`,
  28494. // header list is « (`Content-Type`, mimeType) »,
  28495. // and body is dataURLStruct’s body as a body.
  28496. return makeResponse({
  28497. statusText: 'OK',
  28498. headersList: [
  28499. ['content-type', { name: 'Content-Type', value: mimeType }]
  28500. ],
  28501. body: safelyExtractBody(dataURLStruct.body)[0]
  28502. })
  28503. }
  28504. case 'file:': {
  28505. // For now, unfortunate as it is, file URLs are left as an exercise for the reader.
  28506. // When in doubt, return a network error.
  28507. return makeNetworkError('not implemented... yet...')
  28508. }
  28509. case 'http:':
  28510. case 'https:': {
  28511. // Return the result of running HTTP fetch given fetchParams.
  28512. return await httpFetch(fetchParams)
  28513. .catch((err) => makeNetworkError(err))
  28514. }
  28515. default: {
  28516. return makeNetworkError('unknown scheme')
  28517. }
  28518. }
  28519. }
  28520. // https://fetch.spec.whatwg.org/#finalize-response
  28521. function finalizeResponse (fetchParams, response) {
  28522. // 1. Set fetchParams’s request’s done flag.
  28523. fetchParams.request.done = true
  28524. // 2, If fetchParams’s process response done is not null, then queue a fetch
  28525. // task to run fetchParams’s process response done given response, with
  28526. // fetchParams’s task destination.
  28527. if (fetchParams.processResponseDone != null) {
  28528. queueMicrotask(() => fetchParams.processResponseDone(response))
  28529. }
  28530. }
  28531. // https://fetch.spec.whatwg.org/#fetch-finale
  28532. async function fetchFinale (fetchParams, response) {
  28533. // 1. If response is a network error, then:
  28534. if (response.type === 'error') {
  28535. // 1. Set response’s URL list to « fetchParams’s request’s URL list[0] ».
  28536. response.urlList = [fetchParams.request.urlList[0]]
  28537. // 2. Set response’s timing info to the result of creating an opaque timing
  28538. // info for fetchParams’s timing info.
  28539. response.timingInfo = createOpaqueTimingInfo({
  28540. startTime: fetchParams.timingInfo.startTime
  28541. })
  28542. }
  28543. // 2. Let processResponseEndOfBody be the following steps:
  28544. const processResponseEndOfBody = () => {
  28545. // 1. Set fetchParams’s request’s done flag.
  28546. fetchParams.request.done = true
  28547. // If fetchParams’s process response end-of-body is not null,
  28548. // then queue a fetch task to run fetchParams’s process response
  28549. // end-of-body given response with fetchParams’s task destination.
  28550. if (fetchParams.processResponseEndOfBody != null) {
  28551. queueMicrotask(() => fetchParams.processResponseEndOfBody(response))
  28552. }
  28553. }
  28554. // 3. If fetchParams’s process response is non-null, then queue a fetch task
  28555. // to run fetchParams’s process response given response, with fetchParams’s
  28556. // task destination.
  28557. if (fetchParams.processResponse != null) {
  28558. queueMicrotask(() => fetchParams.processResponse(response))
  28559. }
  28560. // 4. If response’s body is null, then run processResponseEndOfBody.
  28561. if (response.body == null) {
  28562. processResponseEndOfBody()
  28563. } else {
  28564. // 5. Otherwise:
  28565. // 1. Let transformStream be a new a TransformStream.
  28566. // 2. Let identityTransformAlgorithm be an algorithm which, given chunk,
  28567. // enqueues chunk in transformStream.
  28568. const identityTransformAlgorithm = (chunk, controller) => {
  28569. controller.enqueue(chunk)
  28570. }
  28571. // 3. Set up transformStream with transformAlgorithm set to identityTransformAlgorithm
  28572. // and flushAlgorithm set to processResponseEndOfBody.
  28573. const transformStream = new TransformStream({
  28574. start () {},
  28575. transform: identityTransformAlgorithm,
  28576. flush: processResponseEndOfBody
  28577. }, {
  28578. size () {
  28579. return 1
  28580. }
  28581. }, {
  28582. size () {
  28583. return 1
  28584. }
  28585. })
  28586. // 4. Set response’s body to the result of piping response’s body through transformStream.
  28587. response.body = { stream: response.body.stream.pipeThrough(transformStream) }
  28588. }
  28589. // 6. If fetchParams’s process response consume body is non-null, then:
  28590. if (fetchParams.processResponseConsumeBody != null) {
  28591. // 1. Let processBody given nullOrBytes be this step: run fetchParams’s
  28592. // process response consume body given response and nullOrBytes.
  28593. const processBody = (nullOrBytes) => fetchParams.processResponseConsumeBody(response, nullOrBytes)
  28594. // 2. Let processBodyError be this step: run fetchParams’s process
  28595. // response consume body given response and failure.
  28596. const processBodyError = (failure) => fetchParams.processResponseConsumeBody(response, failure)
  28597. // 3. If response’s body is null, then queue a fetch task to run processBody
  28598. // given null, with fetchParams’s task destination.
  28599. if (response.body == null) {
  28600. queueMicrotask(() => processBody(null))
  28601. } else {
  28602. // 4. Otherwise, fully read response’s body given processBody, processBodyError,
  28603. // and fetchParams’s task destination.
  28604. await fullyReadBody(response.body, processBody, processBodyError)
  28605. }
  28606. }
  28607. }
  28608. // https://fetch.spec.whatwg.org/#http-fetch
  28609. async function httpFetch (fetchParams) {
  28610. // 1. Let request be fetchParams’s request.
  28611. const request = fetchParams.request
  28612. // 2. Let response be null.
  28613. let response = null
  28614. // 3. Let actualResponse be null.
  28615. let actualResponse = null
  28616. // 4. Let timingInfo be fetchParams’s timing info.
  28617. const timingInfo = fetchParams.timingInfo
  28618. // 5. If request’s service-workers mode is "all", then:
  28619. if (request.serviceWorkers === 'all') {
  28620. // TODO
  28621. }
  28622. // 6. If response is null, then:
  28623. if (response === null) {
  28624. // 1. If makeCORSPreflight is true and one of these conditions is true:
  28625. // TODO
  28626. // 2. If request’s redirect mode is "follow", then set request’s
  28627. // service-workers mode to "none".
  28628. if (request.redirect === 'follow') {
  28629. request.serviceWorkers = 'none'
  28630. }
  28631. // 3. Set response and actualResponse to the result of running
  28632. // HTTP-network-or-cache fetch given fetchParams.
  28633. actualResponse = response = await httpNetworkOrCacheFetch(fetchParams)
  28634. // 4. If request’s response tainting is "cors" and a CORS check
  28635. // for request and response returns failure, then return a network error.
  28636. if (
  28637. request.responseTainting === 'cors' &&
  28638. corsCheck(request, response) === 'failure'
  28639. ) {
  28640. return makeNetworkError('cors failure')
  28641. }
  28642. // 5. If the TAO check for request and response returns failure, then set
  28643. // request’s timing allow failed flag.
  28644. if (TAOCheck(request, response) === 'failure') {
  28645. request.timingAllowFailed = true
  28646. }
  28647. }
  28648. // 7. If either request’s response tainting or response’s type
  28649. // is "opaque", and the cross-origin resource policy check with
  28650. // request’s origin, request’s client, request’s destination,
  28651. // and actualResponse returns blocked, then return a network error.
  28652. if (
  28653. (request.responseTainting === 'opaque' || response.type === 'opaque') &&
  28654. crossOriginResourcePolicyCheck(
  28655. request.origin,
  28656. request.client,
  28657. request.destination,
  28658. actualResponse
  28659. ) === 'blocked'
  28660. ) {
  28661. return makeNetworkError('blocked')
  28662. }
  28663. // 8. If actualResponse’s status is a redirect status, then:
  28664. if (redirectStatus.includes(actualResponse.status)) {
  28665. // 1. If actualResponse’s status is not 303, request’s body is not null,
  28666. // and the connection uses HTTP/2, then user agents may, and are even
  28667. // encouraged to, transmit an RST_STREAM frame.
  28668. // See, https://github.com/whatwg/fetch/issues/1288
  28669. if (request.redirect !== 'manual') {
  28670. fetchParams.controller.connection.destroy()
  28671. }
  28672. // 2. Switch on request’s redirect mode:
  28673. if (request.redirect === 'error') {
  28674. // Set response to a network error.
  28675. response = makeNetworkError('unexpected redirect')
  28676. } else if (request.redirect === 'manual') {
  28677. // Set response to an opaque-redirect filtered response whose internal
  28678. // response is actualResponse.
  28679. // NOTE(spec): On the web this would return an `opaqueredirect` response,
  28680. // but that doesn't make sense server side.
  28681. // See https://github.com/nodejs/undici/issues/1193.
  28682. response = actualResponse
  28683. } else if (request.redirect === 'follow') {
  28684. // Set response to the result of running HTTP-redirect fetch given
  28685. // fetchParams and response.
  28686. response = await httpRedirectFetch(fetchParams, response)
  28687. } else {
  28688. assert(false)
  28689. }
  28690. }
  28691. // 9. Set response’s timing info to timingInfo.
  28692. response.timingInfo = timingInfo
  28693. // 10. Return response.
  28694. return response
  28695. }
  28696. // https://fetch.spec.whatwg.org/#http-redirect-fetch
  28697. async function httpRedirectFetch (fetchParams, response) {
  28698. // 1. Let request be fetchParams’s request.
  28699. const request = fetchParams.request
  28700. // 2. Let actualResponse be response, if response is not a filtered response,
  28701. // and response’s internal response otherwise.
  28702. const actualResponse = response.internalResponse
  28703. ? response.internalResponse
  28704. : response
  28705. // 3. Let locationURL be actualResponse’s location URL given request’s current
  28706. // URL’s fragment.
  28707. let locationURL
  28708. try {
  28709. locationURL = responseLocationURL(
  28710. actualResponse,
  28711. requestCurrentURL(request).hash
  28712. )
  28713. // 4. If locationURL is null, then return response.
  28714. if (locationURL == null) {
  28715. return response
  28716. }
  28717. } catch (err) {
  28718. // 5. If locationURL is failure, then return a network error.
  28719. return makeNetworkError(err)
  28720. }
  28721. // 6. If locationURL’s scheme is not an HTTP(S) scheme, then return a network
  28722. // error.
  28723. if (!urlIsHttpHttpsScheme(locationURL)) {
  28724. return makeNetworkError('URL scheme must be a HTTP(S) scheme')
  28725. }
  28726. // 7. If request’s redirect count is 20, then return a network error.
  28727. if (request.redirectCount === 20) {
  28728. return makeNetworkError('redirect count exceeded')
  28729. }
  28730. // 8. Increase request’s redirect count by 1.
  28731. request.redirectCount += 1
  28732. // 9. If request’s mode is "cors", locationURL includes credentials, and
  28733. // request’s origin is not same origin with locationURL’s origin, then return
  28734. // a network error.
  28735. if (
  28736. request.mode === 'cors' &&
  28737. (locationURL.username || locationURL.password) &&
  28738. !sameOrigin(request, locationURL)
  28739. ) {
  28740. return makeNetworkError('cross origin not allowed for request mode "cors"')
  28741. }
  28742. // 10. If request’s response tainting is "cors" and locationURL includes
  28743. // credentials, then return a network error.
  28744. if (
  28745. request.responseTainting === 'cors' &&
  28746. (locationURL.username || locationURL.password)
  28747. ) {
  28748. return makeNetworkError(
  28749. 'URL cannot contain credentials for request mode "cors"'
  28750. )
  28751. }
  28752. // 11. If actualResponse’s status is not 303, request’s body is non-null,
  28753. // and request’s body’s source is null, then return a network error.
  28754. if (
  28755. actualResponse.status !== 303 &&
  28756. request.body != null &&
  28757. request.body.source == null
  28758. ) {
  28759. return makeNetworkError()
  28760. }
  28761. // 12. If one of the following is true
  28762. // - actualResponse’s status is 301 or 302 and request’s method is `POST`
  28763. // - actualResponse’s status is 303 and request’s method is not `GET` or `HEAD`
  28764. if (
  28765. ([301, 302].includes(actualResponse.status) && request.method === 'POST') ||
  28766. (actualResponse.status === 303 &&
  28767. !['GET', 'HEAD'].includes(request.method))
  28768. ) {
  28769. // then:
  28770. // 1. Set request’s method to `GET` and request’s body to null.
  28771. request.method = 'GET'
  28772. request.body = null
  28773. // 2. For each headerName of request-body-header name, delete headerName from
  28774. // request’s header list.
  28775. for (const headerName of requestBodyHeader) {
  28776. request.headersList.delete(headerName)
  28777. }
  28778. }
  28779. // 13. If request’s current URL’s origin is not same origin with locationURL’s
  28780. // origin, then for each headerName of CORS non-wildcard request-header name,
  28781. // delete headerName from request’s header list.
  28782. if (!sameOrigin(requestCurrentURL(request), locationURL)) {
  28783. // https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
  28784. request.headersList.delete('authorization')
  28785. }
  28786. // 14. If request’s body is non-null, then set request’s body to the first return
  28787. // value of safely extracting request’s body’s source.
  28788. if (request.body != null) {
  28789. assert(request.body.source != null)
  28790. request.body = safelyExtractBody(request.body.source)[0]
  28791. }
  28792. // 15. Let timingInfo be fetchParams’s timing info.
  28793. const timingInfo = fetchParams.timingInfo
  28794. // 16. Set timingInfo’s redirect end time and post-redirect start time to the
  28795. // coarsened shared current time given fetchParams’s cross-origin isolated
  28796. // capability.
  28797. timingInfo.redirectEndTime = timingInfo.postRedirectStartTime =
  28798. coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)
  28799. // 17. If timingInfo’s redirect start time is 0, then set timingInfo’s
  28800. // redirect start time to timingInfo’s start time.
  28801. if (timingInfo.redirectStartTime === 0) {
  28802. timingInfo.redirectStartTime = timingInfo.startTime
  28803. }
  28804. // 18. Append locationURL to request’s URL list.
  28805. request.urlList.push(locationURL)
  28806. // 19. Invoke set request’s referrer policy on redirect on request and
  28807. // actualResponse.
  28808. setRequestReferrerPolicyOnRedirect(request, actualResponse)
  28809. // 20. Return the result of running main fetch given fetchParams and true.
  28810. return mainFetch(fetchParams, true)
  28811. }
  28812. // https://fetch.spec.whatwg.org/#http-network-or-cache-fetch
  28813. async function httpNetworkOrCacheFetch (
  28814. fetchParams,
  28815. isAuthenticationFetch = false,
  28816. isNewConnectionFetch = false
  28817. ) {
  28818. // 1. Let request be fetchParams’s request.
  28819. const request = fetchParams.request
  28820. // 2. Let httpFetchParams be null.
  28821. let httpFetchParams = null
  28822. // 3. Let httpRequest be null.
  28823. let httpRequest = null
  28824. // 4. Let response be null.
  28825. let response = null
  28826. // 5. Let storedResponse be null.
  28827. // TODO: cache
  28828. // 6. Let httpCache be null.
  28829. const httpCache = null
  28830. // 7. Let the revalidatingFlag be unset.
  28831. const revalidatingFlag = false
  28832. // 8. Run these steps, but abort when the ongoing fetch is terminated:
  28833. // 1. If request’s window is "no-window" and request’s redirect mode is
  28834. // "error", then set httpFetchParams to fetchParams and httpRequest to
  28835. // request.
  28836. if (request.window === 'no-window' && request.redirect === 'error') {
  28837. httpFetchParams = fetchParams
  28838. httpRequest = request
  28839. } else {
  28840. // Otherwise:
  28841. // 1. Set httpRequest to a clone of request.
  28842. httpRequest = makeRequest(request)
  28843. // 2. Set httpFetchParams to a copy of fetchParams.
  28844. httpFetchParams = { ...fetchParams }
  28845. // 3. Set httpFetchParams’s request to httpRequest.
  28846. httpFetchParams.request = httpRequest
  28847. }
  28848. // 3. Let includeCredentials be true if one of
  28849. const includeCredentials =
  28850. request.credentials === 'include' ||
  28851. (request.credentials === 'same-origin' &&
  28852. request.responseTainting === 'basic')
  28853. // 4. Let contentLength be httpRequest’s body’s length, if httpRequest’s
  28854. // body is non-null; otherwise null.
  28855. const contentLength = httpRequest.body ? httpRequest.body.length : null
  28856. // 5. Let contentLengthHeaderValue be null.
  28857. let contentLengthHeaderValue = null
  28858. // 6. If httpRequest’s body is null and httpRequest’s method is `POST` or
  28859. // `PUT`, then set contentLengthHeaderValue to `0`.
  28860. if (
  28861. httpRequest.body == null &&
  28862. ['POST', 'PUT'].includes(httpRequest.method)
  28863. ) {
  28864. contentLengthHeaderValue = '0'
  28865. }
  28866. // 7. If contentLength is non-null, then set contentLengthHeaderValue to
  28867. // contentLength, serialized and isomorphic encoded.
  28868. if (contentLength != null) {
  28869. contentLengthHeaderValue = isomorphicEncode(`${contentLength}`)
  28870. }
  28871. // 8. If contentLengthHeaderValue is non-null, then append
  28872. // `Content-Length`/contentLengthHeaderValue to httpRequest’s header
  28873. // list.
  28874. if (contentLengthHeaderValue != null) {
  28875. httpRequest.headersList.append('content-length', contentLengthHeaderValue)
  28876. }
  28877. // 9. If contentLengthHeaderValue is non-null, then append (`Content-Length`,
  28878. // contentLengthHeaderValue) to httpRequest’s header list.
  28879. // 10. If contentLength is non-null and httpRequest’s keepalive is true,
  28880. // then:
  28881. if (contentLength != null && httpRequest.keepalive) {
  28882. // NOTE: keepalive is a noop outside of browser context.
  28883. }
  28884. // 11. If httpRequest’s referrer is a URL, then append
  28885. // `Referer`/httpRequest’s referrer, serialized and isomorphic encoded,
  28886. // to httpRequest’s header list.
  28887. if (httpRequest.referrer instanceof URL) {
  28888. httpRequest.headersList.append('referer', isomorphicEncode(httpRequest.referrer.href))
  28889. }
  28890. // 12. Append a request `Origin` header for httpRequest.
  28891. appendRequestOriginHeader(httpRequest)
  28892. // 13. Append the Fetch metadata headers for httpRequest. [FETCH-METADATA]
  28893. appendFetchMetadata(httpRequest)
  28894. // 14. If httpRequest’s header list does not contain `User-Agent`, then
  28895. // user agents should append `User-Agent`/default `User-Agent` value to
  28896. // httpRequest’s header list.
  28897. if (!httpRequest.headersList.contains('user-agent')) {
  28898. httpRequest.headersList.append('user-agent', 'undici')
  28899. }
  28900. // 15. If httpRequest’s cache mode is "default" and httpRequest’s header
  28901. // list contains `If-Modified-Since`, `If-None-Match`,
  28902. // `If-Unmodified-Since`, `If-Match`, or `If-Range`, then set
  28903. // httpRequest’s cache mode to "no-store".
  28904. if (
  28905. httpRequest.cache === 'default' &&
  28906. (httpRequest.headersList.contains('if-modified-since') ||
  28907. httpRequest.headersList.contains('if-none-match') ||
  28908. httpRequest.headersList.contains('if-unmodified-since') ||
  28909. httpRequest.headersList.contains('if-match') ||
  28910. httpRequest.headersList.contains('if-range'))
  28911. ) {
  28912. httpRequest.cache = 'no-store'
  28913. }
  28914. // 16. If httpRequest’s cache mode is "no-cache", httpRequest’s prevent
  28915. // no-cache cache-control header modification flag is unset, and
  28916. // httpRequest’s header list does not contain `Cache-Control`, then append
  28917. // `Cache-Control`/`max-age=0` to httpRequest’s header list.
  28918. if (
  28919. httpRequest.cache === 'no-cache' &&
  28920. !httpRequest.preventNoCacheCacheControlHeaderModification &&
  28921. !httpRequest.headersList.contains('cache-control')
  28922. ) {
  28923. httpRequest.headersList.append('cache-control', 'max-age=0')
  28924. }
  28925. // 17. If httpRequest’s cache mode is "no-store" or "reload", then:
  28926. if (httpRequest.cache === 'no-store' || httpRequest.cache === 'reload') {
  28927. // 1. If httpRequest’s header list does not contain `Pragma`, then append
  28928. // `Pragma`/`no-cache` to httpRequest’s header list.
  28929. if (!httpRequest.headersList.contains('pragma')) {
  28930. httpRequest.headersList.append('pragma', 'no-cache')
  28931. }
  28932. // 2. If httpRequest’s header list does not contain `Cache-Control`,
  28933. // then append `Cache-Control`/`no-cache` to httpRequest’s header list.
  28934. if (!httpRequest.headersList.contains('cache-control')) {
  28935. httpRequest.headersList.append('cache-control', 'no-cache')
  28936. }
  28937. }
  28938. // 18. If httpRequest’s header list contains `Range`, then append
  28939. // `Accept-Encoding`/`identity` to httpRequest’s header list.
  28940. if (httpRequest.headersList.contains('range')) {
  28941. httpRequest.headersList.append('accept-encoding', 'identity')
  28942. }
  28943. // 19. Modify httpRequest’s header list per HTTP. Do not append a given
  28944. // header if httpRequest’s header list contains that header’s name.
  28945. // TODO: https://github.com/whatwg/fetch/issues/1285#issuecomment-896560129
  28946. if (!httpRequest.headersList.contains('accept-encoding')) {
  28947. if (urlHasHttpsScheme(requestCurrentURL(httpRequest))) {
  28948. httpRequest.headersList.append('accept-encoding', 'br, gzip, deflate')
  28949. } else {
  28950. httpRequest.headersList.append('accept-encoding', 'gzip, deflate')
  28951. }
  28952. }
  28953. // 20. If includeCredentials is true, then:
  28954. if (includeCredentials) {
  28955. // 1. If the user agent is not configured to block cookies for httpRequest
  28956. // (see section 7 of [COOKIES]), then:
  28957. // TODO: credentials
  28958. // 2. If httpRequest’s header list does not contain `Authorization`, then:
  28959. // TODO: credentials
  28960. }
  28961. // 21. If there’s a proxy-authentication entry, use it as appropriate.
  28962. // TODO: proxy-authentication
  28963. // 22. Set httpCache to the result of determining the HTTP cache
  28964. // partition, given httpRequest.
  28965. // TODO: cache
  28966. // 23. If httpCache is null, then set httpRequest’s cache mode to
  28967. // "no-store".
  28968. if (httpCache == null) {
  28969. httpRequest.cache = 'no-store'
  28970. }
  28971. // 24. If httpRequest’s cache mode is neither "no-store" nor "reload",
  28972. // then:
  28973. if (httpRequest.mode !== 'no-store' && httpRequest.mode !== 'reload') {
  28974. // TODO: cache
  28975. }
  28976. // 9. If aborted, then return the appropriate network error for fetchParams.
  28977. // TODO
  28978. // 10. If response is null, then:
  28979. if (response == null) {
  28980. // 1. If httpRequest’s cache mode is "only-if-cached", then return a
  28981. // network error.
  28982. if (httpRequest.mode === 'only-if-cached') {
  28983. return makeNetworkError('only if cached')
  28984. }
  28985. // 2. Let forwardResponse be the result of running HTTP-network fetch
  28986. // given httpFetchParams, includeCredentials, and isNewConnectionFetch.
  28987. const forwardResponse = await httpNetworkFetch(
  28988. httpFetchParams,
  28989. includeCredentials,
  28990. isNewConnectionFetch
  28991. )
  28992. // 3. If httpRequest’s method is unsafe and forwardResponse’s status is
  28993. // in the range 200 to 399, inclusive, invalidate appropriate stored
  28994. // responses in httpCache, as per the "Invalidation" chapter of HTTP
  28995. // Caching, and set storedResponse to null. [HTTP-CACHING]
  28996. if (
  28997. !safeMethods.includes(httpRequest.method) &&
  28998. forwardResponse.status >= 200 &&
  28999. forwardResponse.status <= 399
  29000. ) {
  29001. // TODO: cache
  29002. }
  29003. // 4. If the revalidatingFlag is set and forwardResponse’s status is 304,
  29004. // then:
  29005. if (revalidatingFlag && forwardResponse.status === 304) {
  29006. // TODO: cache
  29007. }
  29008. // 5. If response is null, then:
  29009. if (response == null) {
  29010. // 1. Set response to forwardResponse.
  29011. response = forwardResponse
  29012. // 2. Store httpRequest and forwardResponse in httpCache, as per the
  29013. // "Storing Responses in Caches" chapter of HTTP Caching. [HTTP-CACHING]
  29014. // TODO: cache
  29015. }
  29016. }
  29017. // 11. Set response’s URL list to a clone of httpRequest’s URL list.
  29018. response.urlList = [...httpRequest.urlList]
  29019. // 12. If httpRequest’s header list contains `Range`, then set response’s
  29020. // range-requested flag.
  29021. if (httpRequest.headersList.contains('range')) {
  29022. response.rangeRequested = true
  29023. }
  29024. // 13. Set response’s request-includes-credentials to includeCredentials.
  29025. response.requestIncludesCredentials = includeCredentials
  29026. // 14. If response’s status is 401, httpRequest’s response tainting is not
  29027. // "cors", includeCredentials is true, and request’s window is an environment
  29028. // settings object, then:
  29029. // TODO
  29030. // 15. If response’s status is 407, then:
  29031. if (response.status === 407) {
  29032. // 1. If request’s window is "no-window", then return a network error.
  29033. if (request.window === 'no-window') {
  29034. return makeNetworkError()
  29035. }
  29036. // 2. ???
  29037. // 3. If fetchParams is canceled, then return the appropriate network error for fetchParams.
  29038. if (isCancelled(fetchParams)) {
  29039. return makeAppropriateNetworkError(fetchParams)
  29040. }
  29041. // 4. Prompt the end user as appropriate in request’s window and store
  29042. // the result as a proxy-authentication entry. [HTTP-AUTH]
  29043. // TODO: Invoke some kind of callback?
  29044. // 5. Set response to the result of running HTTP-network-or-cache fetch given
  29045. // fetchParams.
  29046. // TODO
  29047. return makeNetworkError('proxy authentication required')
  29048. }
  29049. // 16. If all of the following are true
  29050. if (
  29051. // response’s status is 421
  29052. response.status === 421 &&
  29053. // isNewConnectionFetch is false
  29054. !isNewConnectionFetch &&
  29055. // request’s body is null, or request’s body is non-null and request’s body’s source is non-null
  29056. (request.body == null || request.body.source != null)
  29057. ) {
  29058. // then:
  29059. // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.
  29060. if (isCancelled(fetchParams)) {
  29061. return makeAppropriateNetworkError(fetchParams)
  29062. }
  29063. // 2. Set response to the result of running HTTP-network-or-cache
  29064. // fetch given fetchParams, isAuthenticationFetch, and true.
  29065. // TODO (spec): The spec doesn't specify this but we need to cancel
  29066. // the active response before we can start a new one.
  29067. // https://github.com/whatwg/fetch/issues/1293
  29068. fetchParams.controller.connection.destroy()
  29069. response = await httpNetworkOrCacheFetch(
  29070. fetchParams,
  29071. isAuthenticationFetch,
  29072. true
  29073. )
  29074. }
  29075. // 17. If isAuthenticationFetch is true, then create an authentication entry
  29076. if (isAuthenticationFetch) {
  29077. // TODO
  29078. }
  29079. // 18. Return response.
  29080. return response
  29081. }
  29082. // https://fetch.spec.whatwg.org/#http-network-fetch
  29083. async function httpNetworkFetch (
  29084. fetchParams,
  29085. includeCredentials = false,
  29086. forceNewConnection = false
  29087. ) {
  29088. assert(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed)
  29089. fetchParams.controller.connection = {
  29090. abort: null,
  29091. destroyed: false,
  29092. destroy (err) {
  29093. if (!this.destroyed) {
  29094. this.destroyed = true
  29095. this.abort?.(err ?? new DOMException('The operation was aborted.', 'AbortError'))
  29096. }
  29097. }
  29098. }
  29099. // 1. Let request be fetchParams’s request.
  29100. const request = fetchParams.request
  29101. // 2. Let response be null.
  29102. let response = null
  29103. // 3. Let timingInfo be fetchParams’s timing info.
  29104. const timingInfo = fetchParams.timingInfo
  29105. // 4. Let httpCache be the result of determining the HTTP cache partition,
  29106. // given request.
  29107. // TODO: cache
  29108. const httpCache = null
  29109. // 5. If httpCache is null, then set request’s cache mode to "no-store".
  29110. if (httpCache == null) {
  29111. request.cache = 'no-store'
  29112. }
  29113. // 6. Let networkPartitionKey be the result of determining the network
  29114. // partition key given request.
  29115. // TODO
  29116. // 7. Let newConnection be "yes" if forceNewConnection is true; otherwise
  29117. // "no".
  29118. const newConnection = forceNewConnection ? 'yes' : 'no' // eslint-disable-line no-unused-vars
  29119. // 8. Switch on request’s mode:
  29120. if (request.mode === 'websocket') {
  29121. // Let connection be the result of obtaining a WebSocket connection,
  29122. // given request’s current URL.
  29123. // TODO
  29124. } else {
  29125. // Let connection be the result of obtaining a connection, given
  29126. // networkPartitionKey, request’s current URL’s origin,
  29127. // includeCredentials, and forceNewConnection.
  29128. // TODO
  29129. }
  29130. // 9. Run these steps, but abort when the ongoing fetch is terminated:
  29131. // 1. If connection is failure, then return a network error.
  29132. // 2. Set timingInfo’s final connection timing info to the result of
  29133. // calling clamp and coarsen connection timing info with connection’s
  29134. // timing info, timingInfo’s post-redirect start time, and fetchParams’s
  29135. // cross-origin isolated capability.
  29136. // 3. If connection is not an HTTP/2 connection, request’s body is non-null,
  29137. // and request’s body’s source is null, then append (`Transfer-Encoding`,
  29138. // `chunked`) to request’s header list.
  29139. // 4. Set timingInfo’s final network-request start time to the coarsened
  29140. // shared current time given fetchParams’s cross-origin isolated
  29141. // capability.
  29142. // 5. Set response to the result of making an HTTP request over connection
  29143. // using request with the following caveats:
  29144. // - Follow the relevant requirements from HTTP. [HTTP] [HTTP-SEMANTICS]
  29145. // [HTTP-COND] [HTTP-CACHING] [HTTP-AUTH]
  29146. // - If request’s body is non-null, and request’s body’s source is null,
  29147. // then the user agent may have a buffer of up to 64 kibibytes and store
  29148. // a part of request’s body in that buffer. If the user agent reads from
  29149. // request’s body beyond that buffer’s size and the user agent needs to
  29150. // resend request, then instead return a network error.
  29151. // - Set timingInfo’s final network-response start time to the coarsened
  29152. // shared current time given fetchParams’s cross-origin isolated capability,
  29153. // immediately after the user agent’s HTTP parser receives the first byte
  29154. // of the response (e.g., frame header bytes for HTTP/2 or response status
  29155. // line for HTTP/1.x).
  29156. // - Wait until all the headers are transmitted.
  29157. // - Any responses whose status is in the range 100 to 199, inclusive,
  29158. // and is not 101, are to be ignored, except for the purposes of setting
  29159. // timingInfo’s final network-response start time above.
  29160. // - If request’s header list contains `Transfer-Encoding`/`chunked` and
  29161. // response is transferred via HTTP/1.0 or older, then return a network
  29162. // error.
  29163. // - If the HTTP request results in a TLS client certificate dialog, then:
  29164. // 1. If request’s window is an environment settings object, make the
  29165. // dialog available in request’s window.
  29166. // 2. Otherwise, return a network error.
  29167. // To transmit request’s body body, run these steps:
  29168. let requestBody = null
  29169. // 1. If body is null and fetchParams’s process request end-of-body is
  29170. // non-null, then queue a fetch task given fetchParams’s process request
  29171. // end-of-body and fetchParams’s task destination.
  29172. if (request.body == null && fetchParams.processRequestEndOfBody) {
  29173. queueMicrotask(() => fetchParams.processRequestEndOfBody())
  29174. } else if (request.body != null) {
  29175. // 2. Otherwise, if body is non-null:
  29176. // 1. Let processBodyChunk given bytes be these steps:
  29177. const processBodyChunk = async function * (bytes) {
  29178. // 1. If the ongoing fetch is terminated, then abort these steps.
  29179. if (isCancelled(fetchParams)) {
  29180. return
  29181. }
  29182. // 2. Run this step in parallel: transmit bytes.
  29183. yield bytes
  29184. // 3. If fetchParams’s process request body is non-null, then run
  29185. // fetchParams’s process request body given bytes’s length.
  29186. fetchParams.processRequestBodyChunkLength?.(bytes.byteLength)
  29187. }
  29188. // 2. Let processEndOfBody be these steps:
  29189. const processEndOfBody = () => {
  29190. // 1. If fetchParams is canceled, then abort these steps.
  29191. if (isCancelled(fetchParams)) {
  29192. return
  29193. }
  29194. // 2. If fetchParams’s process request end-of-body is non-null,
  29195. // then run fetchParams’s process request end-of-body.
  29196. if (fetchParams.processRequestEndOfBody) {
  29197. fetchParams.processRequestEndOfBody()
  29198. }
  29199. }
  29200. // 3. Let processBodyError given e be these steps:
  29201. const processBodyError = (e) => {
  29202. // 1. If fetchParams is canceled, then abort these steps.
  29203. if (isCancelled(fetchParams)) {
  29204. return
  29205. }
  29206. // 2. If e is an "AbortError" DOMException, then abort fetchParams’s controller.
  29207. if (e.name === 'AbortError') {
  29208. fetchParams.controller.abort()
  29209. } else {
  29210. fetchParams.controller.terminate(e)
  29211. }
  29212. }
  29213. // 4. Incrementally read request’s body given processBodyChunk, processEndOfBody,
  29214. // processBodyError, and fetchParams’s task destination.
  29215. requestBody = (async function * () {
  29216. try {
  29217. for await (const bytes of request.body.stream) {
  29218. yield * processBodyChunk(bytes)
  29219. }
  29220. processEndOfBody()
  29221. } catch (err) {
  29222. processBodyError(err)
  29223. }
  29224. })()
  29225. }
  29226. try {
  29227. // socket is only provided for websockets
  29228. const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody })
  29229. if (socket) {
  29230. response = makeResponse({ status, statusText, headersList, socket })
  29231. } else {
  29232. const iterator = body[Symbol.asyncIterator]()
  29233. fetchParams.controller.next = () => iterator.next()
  29234. response = makeResponse({ status, statusText, headersList })
  29235. }
  29236. } catch (err) {
  29237. // 10. If aborted, then:
  29238. if (err.name === 'AbortError') {
  29239. // 1. If connection uses HTTP/2, then transmit an RST_STREAM frame.
  29240. fetchParams.controller.connection.destroy()
  29241. // 2. Return the appropriate network error for fetchParams.
  29242. return makeAppropriateNetworkError(fetchParams, err)
  29243. }
  29244. return makeNetworkError(err)
  29245. }
  29246. // 11. Let pullAlgorithm be an action that resumes the ongoing fetch
  29247. // if it is suspended.
  29248. const pullAlgorithm = () => {
  29249. fetchParams.controller.resume()
  29250. }
  29251. // 12. Let cancelAlgorithm be an algorithm that aborts fetchParams’s
  29252. // controller with reason, given reason.
  29253. const cancelAlgorithm = (reason) => {
  29254. fetchParams.controller.abort(reason)
  29255. }
  29256. // 13. Let highWaterMark be a non-negative, non-NaN number, chosen by
  29257. // the user agent.
  29258. // TODO
  29259. // 14. Let sizeAlgorithm be an algorithm that accepts a chunk object
  29260. // and returns a non-negative, non-NaN, non-infinite number, chosen by the user agent.
  29261. // TODO
  29262. // 15. Let stream be a new ReadableStream.
  29263. // 16. Set up stream with pullAlgorithm set to pullAlgorithm,
  29264. // cancelAlgorithm set to cancelAlgorithm, highWaterMark set to
  29265. // highWaterMark, and sizeAlgorithm set to sizeAlgorithm.
  29266. if (!ReadableStream) {
  29267. ReadableStream = (__nccwpck_require__(5356).ReadableStream)
  29268. }
  29269. const stream = new ReadableStream(
  29270. {
  29271. async start (controller) {
  29272. fetchParams.controller.controller = controller
  29273. },
  29274. async pull (controller) {
  29275. await pullAlgorithm(controller)
  29276. },
  29277. async cancel (reason) {
  29278. await cancelAlgorithm(reason)
  29279. }
  29280. },
  29281. {
  29282. highWaterMark: 0,
  29283. size () {
  29284. return 1
  29285. }
  29286. }
  29287. )
  29288. // 17. Run these steps, but abort when the ongoing fetch is terminated:
  29289. // 1. Set response’s body to a new body whose stream is stream.
  29290. response.body = { stream }
  29291. // 2. If response is not a network error and request’s cache mode is
  29292. // not "no-store", then update response in httpCache for request.
  29293. // TODO
  29294. // 3. If includeCredentials is true and the user agent is not configured
  29295. // to block cookies for request (see section 7 of [COOKIES]), then run the
  29296. // "set-cookie-string" parsing algorithm (see section 5.2 of [COOKIES]) on
  29297. // the value of each header whose name is a byte-case-insensitive match for
  29298. // `Set-Cookie` in response’s header list, if any, and request’s current URL.
  29299. // TODO
  29300. // 18. If aborted, then:
  29301. // TODO
  29302. // 19. Run these steps in parallel:
  29303. // 1. Run these steps, but abort when fetchParams is canceled:
  29304. fetchParams.controller.on('terminated', onAborted)
  29305. fetchParams.controller.resume = async () => {
  29306. // 1. While true
  29307. while (true) {
  29308. // 1-3. See onData...
  29309. // 4. Set bytes to the result of handling content codings given
  29310. // codings and bytes.
  29311. let bytes
  29312. let isFailure
  29313. try {
  29314. const { done, value } = await fetchParams.controller.next()
  29315. if (isAborted(fetchParams)) {
  29316. break
  29317. }
  29318. bytes = done ? undefined : value
  29319. } catch (err) {
  29320. if (fetchParams.controller.ended && !timingInfo.encodedBodySize) {
  29321. // zlib doesn't like empty streams.
  29322. bytes = undefined
  29323. } else {
  29324. bytes = err
  29325. // err may be propagated from the result of calling readablestream.cancel,
  29326. // which might not be an error. https://github.com/nodejs/undici/issues/2009
  29327. isFailure = true
  29328. }
  29329. }
  29330. if (bytes === undefined) {
  29331. // 2. Otherwise, if the bytes transmission for response’s message
  29332. // body is done normally and stream is readable, then close
  29333. // stream, finalize response for fetchParams and response, and
  29334. // abort these in-parallel steps.
  29335. readableStreamClose(fetchParams.controller.controller)
  29336. finalizeResponse(fetchParams, response)
  29337. return
  29338. }
  29339. // 5. Increase timingInfo’s decoded body size by bytes’s length.
  29340. timingInfo.decodedBodySize += bytes?.byteLength ?? 0
  29341. // 6. If bytes is failure, then terminate fetchParams’s controller.
  29342. if (isFailure) {
  29343. fetchParams.controller.terminate(bytes)
  29344. return
  29345. }
  29346. // 7. Enqueue a Uint8Array wrapping an ArrayBuffer containing bytes
  29347. // into stream.
  29348. fetchParams.controller.controller.enqueue(new Uint8Array(bytes))
  29349. // 8. If stream is errored, then terminate the ongoing fetch.
  29350. if (isErrored(stream)) {
  29351. fetchParams.controller.terminate()
  29352. return
  29353. }
  29354. // 9. If stream doesn’t need more data ask the user agent to suspend
  29355. // the ongoing fetch.
  29356. if (!fetchParams.controller.controller.desiredSize) {
  29357. return
  29358. }
  29359. }
  29360. }
  29361. // 2. If aborted, then:
  29362. function onAborted (reason) {
  29363. // 2. If fetchParams is aborted, then:
  29364. if (isAborted(fetchParams)) {
  29365. // 1. Set response’s aborted flag.
  29366. response.aborted = true
  29367. // 2. If stream is readable, then error stream with the result of
  29368. // deserialize a serialized abort reason given fetchParams’s
  29369. // controller’s serialized abort reason and an
  29370. // implementation-defined realm.
  29371. if (isReadable(stream)) {
  29372. fetchParams.controller.controller.error(
  29373. fetchParams.controller.serializedAbortReason
  29374. )
  29375. }
  29376. } else {
  29377. // 3. Otherwise, if stream is readable, error stream with a TypeError.
  29378. if (isReadable(stream)) {
  29379. fetchParams.controller.controller.error(new TypeError('terminated', {
  29380. cause: isErrorLike(reason) ? reason : undefined
  29381. }))
  29382. }
  29383. }
  29384. // 4. If connection uses HTTP/2, then transmit an RST_STREAM frame.
  29385. // 5. Otherwise, the user agent should close connection unless it would be bad for performance to do so.
  29386. fetchParams.controller.connection.destroy()
  29387. }
  29388. // 20. Return response.
  29389. return response
  29390. async function dispatch ({ body }) {
  29391. const url = requestCurrentURL(request)
  29392. /** @type {import('../..').Agent} */
  29393. const agent = fetchParams.controller.dispatcher
  29394. return new Promise((resolve, reject) => agent.dispatch(
  29395. {
  29396. path: url.pathname + url.search,
  29397. origin: url.origin,
  29398. method: request.method,
  29399. body: fetchParams.controller.dispatcher.isMockActive ? request.body && request.body.source : body,
  29400. headers: request.headersList.entries,
  29401. maxRedirections: 0,
  29402. upgrade: request.mode === 'websocket' ? 'websocket' : undefined
  29403. },
  29404. {
  29405. body: null,
  29406. abort: null,
  29407. onConnect (abort) {
  29408. // TODO (fix): Do we need connection here?
  29409. const { connection } = fetchParams.controller
  29410. if (connection.destroyed) {
  29411. abort(new DOMException('The operation was aborted.', 'AbortError'))
  29412. } else {
  29413. fetchParams.controller.on('terminated', abort)
  29414. this.abort = connection.abort = abort
  29415. }
  29416. },
  29417. onHeaders (status, headersList, resume, statusText) {
  29418. if (status < 200) {
  29419. return
  29420. }
  29421. let codings = []
  29422. let location = ''
  29423. const headers = new Headers()
  29424. // For H2, the headers are a plain JS object
  29425. // We distinguish between them and iterate accordingly
  29426. if (Array.isArray(headersList)) {
  29427. for (let n = 0; n < headersList.length; n += 2) {
  29428. const key = headersList[n + 0].toString('latin1')
  29429. const val = headersList[n + 1].toString('latin1')
  29430. if (key.toLowerCase() === 'content-encoding') {
  29431. // https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1
  29432. // "All content-coding values are case-insensitive..."
  29433. codings = val.toLowerCase().split(',').map((x) => x.trim())
  29434. } else if (key.toLowerCase() === 'location') {
  29435. location = val
  29436. }
  29437. headers.append(key, val)
  29438. }
  29439. } else {
  29440. const keys = Object.keys(headersList)
  29441. for (const key of keys) {
  29442. const val = headersList[key]
  29443. if (key.toLowerCase() === 'content-encoding') {
  29444. // https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1
  29445. // "All content-coding values are case-insensitive..."
  29446. codings = val.toLowerCase().split(',').map((x) => x.trim()).reverse()
  29447. } else if (key.toLowerCase() === 'location') {
  29448. location = val
  29449. }
  29450. headers.append(key, val)
  29451. }
  29452. }
  29453. this.body = new Readable({ read: resume })
  29454. const decoders = []
  29455. const willFollow = request.redirect === 'follow' &&
  29456. location &&
  29457. redirectStatus.includes(status)
  29458. // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
  29459. if (request.method !== 'HEAD' && request.method !== 'CONNECT' && !nullBodyStatus.includes(status) && !willFollow) {
  29460. for (const coding of codings) {
  29461. // https://www.rfc-editor.org/rfc/rfc9112.html#section-7.2
  29462. if (coding === 'x-gzip' || coding === 'gzip') {
  29463. decoders.push(zlib.createGunzip({
  29464. // Be less strict when decoding compressed responses, since sometimes
  29465. // servers send slightly invalid responses that are still accepted
  29466. // by common browsers.
  29467. // Always using Z_SYNC_FLUSH is what cURL does.
  29468. flush: zlib.constants.Z_SYNC_FLUSH,
  29469. finishFlush: zlib.constants.Z_SYNC_FLUSH
  29470. }))
  29471. } else if (coding === 'deflate') {
  29472. decoders.push(zlib.createInflate())
  29473. } else if (coding === 'br') {
  29474. decoders.push(zlib.createBrotliDecompress())
  29475. } else {
  29476. decoders.length = 0
  29477. break
  29478. }
  29479. }
  29480. }
  29481. resolve({
  29482. status,
  29483. statusText,
  29484. headersList: headers[kHeadersList],
  29485. body: decoders.length
  29486. ? pipeline(this.body, ...decoders, () => { })
  29487. : this.body.on('error', () => {})
  29488. })
  29489. return true
  29490. },
  29491. onData (chunk) {
  29492. if (fetchParams.controller.dump) {
  29493. return
  29494. }
  29495. // 1. If one or more bytes have been transmitted from response’s
  29496. // message body, then:
  29497. // 1. Let bytes be the transmitted bytes.
  29498. const bytes = chunk
  29499. // 2. Let codings be the result of extracting header list values
  29500. // given `Content-Encoding` and response’s header list.
  29501. // See pullAlgorithm.
  29502. // 3. Increase timingInfo’s encoded body size by bytes’s length.
  29503. timingInfo.encodedBodySize += bytes.byteLength
  29504. // 4. See pullAlgorithm...
  29505. return this.body.push(bytes)
  29506. },
  29507. onComplete () {
  29508. if (this.abort) {
  29509. fetchParams.controller.off('terminated', this.abort)
  29510. }
  29511. fetchParams.controller.ended = true
  29512. this.body.push(null)
  29513. },
  29514. onError (error) {
  29515. if (this.abort) {
  29516. fetchParams.controller.off('terminated', this.abort)
  29517. }
  29518. this.body?.destroy(error)
  29519. fetchParams.controller.terminate(error)
  29520. reject(error)
  29521. },
  29522. onUpgrade (status, headersList, socket) {
  29523. if (status !== 101) {
  29524. return
  29525. }
  29526. const headers = new Headers()
  29527. for (let n = 0; n < headersList.length; n += 2) {
  29528. const key = headersList[n + 0].toString('latin1')
  29529. const val = headersList[n + 1].toString('latin1')
  29530. headers.append(key, val)
  29531. }
  29532. resolve({
  29533. status,
  29534. statusText: STATUS_CODES[status],
  29535. headersList: headers[kHeadersList],
  29536. socket
  29537. })
  29538. return true
  29539. }
  29540. }
  29541. ))
  29542. }
  29543. }
  29544. module.exports = {
  29545. fetch,
  29546. Fetch,
  29547. fetching,
  29548. finalizeAndReportTiming
  29549. }
  29550. /***/ }),
  29551. /***/ 8359:
  29552. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  29553. "use strict";
  29554. /* globals AbortController */
  29555. const { extractBody, mixinBody, cloneBody } = __nccwpck_require__(9990)
  29556. const { Headers, fill: fillHeaders, HeadersList } = __nccwpck_require__(554)
  29557. const { FinalizationRegistry } = __nccwpck_require__(6436)()
  29558. const util = __nccwpck_require__(3983)
  29559. const {
  29560. isValidHTTPToken,
  29561. sameOrigin,
  29562. normalizeMethod,
  29563. makePolicyContainer
  29564. } = __nccwpck_require__(2538)
  29565. const {
  29566. forbiddenMethods,
  29567. corsSafeListedMethods,
  29568. referrerPolicy,
  29569. requestRedirect,
  29570. requestMode,
  29571. requestCredentials,
  29572. requestCache,
  29573. requestDuplex
  29574. } = __nccwpck_require__(1037)
  29575. const { kEnumerableProperty } = util
  29576. const { kHeaders, kSignal, kState, kGuard, kRealm } = __nccwpck_require__(5861)
  29577. const { webidl } = __nccwpck_require__(1744)
  29578. const { getGlobalOrigin } = __nccwpck_require__(1246)
  29579. const { URLSerializer } = __nccwpck_require__(685)
  29580. const { kHeadersList } = __nccwpck_require__(2785)
  29581. const assert = __nccwpck_require__(9491)
  29582. const { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = __nccwpck_require__(2361)
  29583. let TransformStream = globalThis.TransformStream
  29584. const kInit = Symbol('init')
  29585. const kAbortController = Symbol('abortController')
  29586. const requestFinalizer = new FinalizationRegistry(({ signal, abort }) => {
  29587. signal.removeEventListener('abort', abort)
  29588. })
  29589. // https://fetch.spec.whatwg.org/#request-class
  29590. class Request {
  29591. // https://fetch.spec.whatwg.org/#dom-request
  29592. constructor (input, init = {}) {
  29593. if (input === kInit) {
  29594. return
  29595. }
  29596. webidl.argumentLengthCheck(arguments, 1, { header: 'Request constructor' })
  29597. input = webidl.converters.RequestInfo(input)
  29598. init = webidl.converters.RequestInit(init)
  29599. // https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object
  29600. this[kRealm] = {
  29601. settingsObject: {
  29602. baseUrl: getGlobalOrigin(),
  29603. get origin () {
  29604. return this.baseUrl?.origin
  29605. },
  29606. policyContainer: makePolicyContainer()
  29607. }
  29608. }
  29609. // 1. Let request be null.
  29610. let request = null
  29611. // 2. Let fallbackMode be null.
  29612. let fallbackMode = null
  29613. // 3. Let baseURL be this’s relevant settings object’s API base URL.
  29614. const baseUrl = this[kRealm].settingsObject.baseUrl
  29615. // 4. Let signal be null.
  29616. let signal = null
  29617. // 5. If input is a string, then:
  29618. if (typeof input === 'string') {
  29619. // 1. Let parsedURL be the result of parsing input with baseURL.
  29620. // 2. If parsedURL is failure, then throw a TypeError.
  29621. let parsedURL
  29622. try {
  29623. parsedURL = new URL(input, baseUrl)
  29624. } catch (err) {
  29625. throw new TypeError('Failed to parse URL from ' + input, { cause: err })
  29626. }
  29627. // 3. If parsedURL includes credentials, then throw a TypeError.
  29628. if (parsedURL.username || parsedURL.password) {
  29629. throw new TypeError(
  29630. 'Request cannot be constructed from a URL that includes credentials: ' +
  29631. input
  29632. )
  29633. }
  29634. // 4. Set request to a new request whose URL is parsedURL.
  29635. request = makeRequest({ urlList: [parsedURL] })
  29636. // 5. Set fallbackMode to "cors".
  29637. fallbackMode = 'cors'
  29638. } else {
  29639. // 6. Otherwise:
  29640. // 7. Assert: input is a Request object.
  29641. assert(input instanceof Request)
  29642. // 8. Set request to input’s request.
  29643. request = input[kState]
  29644. // 9. Set signal to input’s signal.
  29645. signal = input[kSignal]
  29646. }
  29647. // 7. Let origin be this’s relevant settings object’s origin.
  29648. const origin = this[kRealm].settingsObject.origin
  29649. // 8. Let window be "client".
  29650. let window = 'client'
  29651. // 9. If request’s window is an environment settings object and its origin
  29652. // is same origin with origin, then set window to request’s window.
  29653. if (
  29654. request.window?.constructor?.name === 'EnvironmentSettingsObject' &&
  29655. sameOrigin(request.window, origin)
  29656. ) {
  29657. window = request.window
  29658. }
  29659. // 10. If init["window"] exists and is non-null, then throw a TypeError.
  29660. if (init.window != null) {
  29661. throw new TypeError(`'window' option '${window}' must be null`)
  29662. }
  29663. // 11. If init["window"] exists, then set window to "no-window".
  29664. if ('window' in init) {
  29665. window = 'no-window'
  29666. }
  29667. // 12. Set request to a new request with the following properties:
  29668. request = makeRequest({
  29669. // URL request’s URL.
  29670. // undici implementation note: this is set as the first item in request's urlList in makeRequest
  29671. // method request’s method.
  29672. method: request.method,
  29673. // header list A copy of request’s header list.
  29674. // undici implementation note: headersList is cloned in makeRequest
  29675. headersList: request.headersList,
  29676. // unsafe-request flag Set.
  29677. unsafeRequest: request.unsafeRequest,
  29678. // client This’s relevant settings object.
  29679. client: this[kRealm].settingsObject,
  29680. // window window.
  29681. window,
  29682. // priority request’s priority.
  29683. priority: request.priority,
  29684. // origin request’s origin. The propagation of the origin is only significant for navigation requests
  29685. // being handled by a service worker. In this scenario a request can have an origin that is different
  29686. // from the current client.
  29687. origin: request.origin,
  29688. // referrer request’s referrer.
  29689. referrer: request.referrer,
  29690. // referrer policy request’s referrer policy.
  29691. referrerPolicy: request.referrerPolicy,
  29692. // mode request’s mode.
  29693. mode: request.mode,
  29694. // credentials mode request’s credentials mode.
  29695. credentials: request.credentials,
  29696. // cache mode request’s cache mode.
  29697. cache: request.cache,
  29698. // redirect mode request’s redirect mode.
  29699. redirect: request.redirect,
  29700. // integrity metadata request’s integrity metadata.
  29701. integrity: request.integrity,
  29702. // keepalive request’s keepalive.
  29703. keepalive: request.keepalive,
  29704. // reload-navigation flag request’s reload-navigation flag.
  29705. reloadNavigation: request.reloadNavigation,
  29706. // history-navigation flag request’s history-navigation flag.
  29707. historyNavigation: request.historyNavigation,
  29708. // URL list A clone of request’s URL list.
  29709. urlList: [...request.urlList]
  29710. })
  29711. // 13. If init is not empty, then:
  29712. if (Object.keys(init).length > 0) {
  29713. // 1. If request’s mode is "navigate", then set it to "same-origin".
  29714. if (request.mode === 'navigate') {
  29715. request.mode = 'same-origin'
  29716. }
  29717. // 2. Unset request’s reload-navigation flag.
  29718. request.reloadNavigation = false
  29719. // 3. Unset request’s history-navigation flag.
  29720. request.historyNavigation = false
  29721. // 4. Set request’s origin to "client".
  29722. request.origin = 'client'
  29723. // 5. Set request’s referrer to "client"
  29724. request.referrer = 'client'
  29725. // 6. Set request’s referrer policy to the empty string.
  29726. request.referrerPolicy = ''
  29727. // 7. Set request’s URL to request’s current URL.
  29728. request.url = request.urlList[request.urlList.length - 1]
  29729. // 8. Set request’s URL list to « request’s URL ».
  29730. request.urlList = [request.url]
  29731. }
  29732. // 14. If init["referrer"] exists, then:
  29733. if (init.referrer !== undefined) {
  29734. // 1. Let referrer be init["referrer"].
  29735. const referrer = init.referrer
  29736. // 2. If referrer is the empty string, then set request’s referrer to "no-referrer".
  29737. if (referrer === '') {
  29738. request.referrer = 'no-referrer'
  29739. } else {
  29740. // 1. Let parsedReferrer be the result of parsing referrer with
  29741. // baseURL.
  29742. // 2. If parsedReferrer is failure, then throw a TypeError.
  29743. let parsedReferrer
  29744. try {
  29745. parsedReferrer = new URL(referrer, baseUrl)
  29746. } catch (err) {
  29747. throw new TypeError(`Referrer "${referrer}" is not a valid URL.`, { cause: err })
  29748. }
  29749. // 3. If one of the following is true
  29750. // - parsedReferrer’s scheme is "about" and path is the string "client"
  29751. // - parsedReferrer’s origin is not same origin with origin
  29752. // then set request’s referrer to "client".
  29753. if (
  29754. (parsedReferrer.protocol === 'about:' && parsedReferrer.hostname === 'client') ||
  29755. (origin && !sameOrigin(parsedReferrer, this[kRealm].settingsObject.baseUrl))
  29756. ) {
  29757. request.referrer = 'client'
  29758. } else {
  29759. // 4. Otherwise, set request’s referrer to parsedReferrer.
  29760. request.referrer = parsedReferrer
  29761. }
  29762. }
  29763. }
  29764. // 15. If init["referrerPolicy"] exists, then set request’s referrer policy
  29765. // to it.
  29766. if (init.referrerPolicy !== undefined) {
  29767. request.referrerPolicy = init.referrerPolicy
  29768. }
  29769. // 16. Let mode be init["mode"] if it exists, and fallbackMode otherwise.
  29770. let mode
  29771. if (init.mode !== undefined) {
  29772. mode = init.mode
  29773. } else {
  29774. mode = fallbackMode
  29775. }
  29776. // 17. If mode is "navigate", then throw a TypeError.
  29777. if (mode === 'navigate') {
  29778. throw webidl.errors.exception({
  29779. header: 'Request constructor',
  29780. message: 'invalid request mode navigate.'
  29781. })
  29782. }
  29783. // 18. If mode is non-null, set request’s mode to mode.
  29784. if (mode != null) {
  29785. request.mode = mode
  29786. }
  29787. // 19. If init["credentials"] exists, then set request’s credentials mode
  29788. // to it.
  29789. if (init.credentials !== undefined) {
  29790. request.credentials = init.credentials
  29791. }
  29792. // 18. If init["cache"] exists, then set request’s cache mode to it.
  29793. if (init.cache !== undefined) {
  29794. request.cache = init.cache
  29795. }
  29796. // 21. If request’s cache mode is "only-if-cached" and request’s mode is
  29797. // not "same-origin", then throw a TypeError.
  29798. if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') {
  29799. throw new TypeError(
  29800. "'only-if-cached' can be set only with 'same-origin' mode"
  29801. )
  29802. }
  29803. // 22. If init["redirect"] exists, then set request’s redirect mode to it.
  29804. if (init.redirect !== undefined) {
  29805. request.redirect = init.redirect
  29806. }
  29807. // 23. If init["integrity"] exists, then set request’s integrity metadata to it.
  29808. if (init.integrity !== undefined && init.integrity != null) {
  29809. request.integrity = String(init.integrity)
  29810. }
  29811. // 24. If init["keepalive"] exists, then set request’s keepalive to it.
  29812. if (init.keepalive !== undefined) {
  29813. request.keepalive = Boolean(init.keepalive)
  29814. }
  29815. // 25. If init["method"] exists, then:
  29816. if (init.method !== undefined) {
  29817. // 1. Let method be init["method"].
  29818. let method = init.method
  29819. // 2. If method is not a method or method is a forbidden method, then
  29820. // throw a TypeError.
  29821. if (!isValidHTTPToken(init.method)) {
  29822. throw TypeError(`'${init.method}' is not a valid HTTP method.`)
  29823. }
  29824. if (forbiddenMethods.indexOf(method.toUpperCase()) !== -1) {
  29825. throw TypeError(`'${init.method}' HTTP method is unsupported.`)
  29826. }
  29827. // 3. Normalize method.
  29828. method = normalizeMethod(init.method)
  29829. // 4. Set request’s method to method.
  29830. request.method = method
  29831. }
  29832. // 26. If init["signal"] exists, then set signal to it.
  29833. if (init.signal !== undefined) {
  29834. signal = init.signal
  29835. }
  29836. // 27. Set this’s request to request.
  29837. this[kState] = request
  29838. // 28. Set this’s signal to a new AbortSignal object with this’s relevant
  29839. // Realm.
  29840. // TODO: could this be simplified with AbortSignal.any
  29841. // (https://dom.spec.whatwg.org/#dom-abortsignal-any)
  29842. const ac = new AbortController()
  29843. this[kSignal] = ac.signal
  29844. this[kSignal][kRealm] = this[kRealm]
  29845. // 29. If signal is not null, then make this’s signal follow signal.
  29846. if (signal != null) {
  29847. if (
  29848. !signal ||
  29849. typeof signal.aborted !== 'boolean' ||
  29850. typeof signal.addEventListener !== 'function'
  29851. ) {
  29852. throw new TypeError(
  29853. "Failed to construct 'Request': member signal is not of type AbortSignal."
  29854. )
  29855. }
  29856. if (signal.aborted) {
  29857. ac.abort(signal.reason)
  29858. } else {
  29859. // Keep a strong ref to ac while request object
  29860. // is alive. This is needed to prevent AbortController
  29861. // from being prematurely garbage collected.
  29862. // See, https://github.com/nodejs/undici/issues/1926.
  29863. this[kAbortController] = ac
  29864. const acRef = new WeakRef(ac)
  29865. const abort = function () {
  29866. const ac = acRef.deref()
  29867. if (ac !== undefined) {
  29868. ac.abort(this.reason)
  29869. }
  29870. }
  29871. // Third-party AbortControllers may not work with these.
  29872. // See, https://github.com/nodejs/undici/pull/1910#issuecomment-1464495619.
  29873. try {
  29874. // If the max amount of listeners is equal to the default, increase it
  29875. // This is only available in node >= v19.9.0
  29876. if (typeof getMaxListeners === 'function' && getMaxListeners(signal) === defaultMaxListeners) {
  29877. setMaxListeners(100, signal)
  29878. } else if (getEventListeners(signal, 'abort').length >= defaultMaxListeners) {
  29879. setMaxListeners(100, signal)
  29880. }
  29881. } catch {}
  29882. util.addAbortListener(signal, abort)
  29883. requestFinalizer.register(ac, { signal, abort })
  29884. }
  29885. }
  29886. // 30. Set this’s headers to a new Headers object with this’s relevant
  29887. // Realm, whose header list is request’s header list and guard is
  29888. // "request".
  29889. this[kHeaders] = new Headers()
  29890. this[kHeaders][kHeadersList] = request.headersList
  29891. this[kHeaders][kGuard] = 'request'
  29892. this[kHeaders][kRealm] = this[kRealm]
  29893. // 31. If this’s request’s mode is "no-cors", then:
  29894. if (mode === 'no-cors') {
  29895. // 1. If this’s request’s method is not a CORS-safelisted method,
  29896. // then throw a TypeError.
  29897. if (!corsSafeListedMethods.includes(request.method)) {
  29898. throw new TypeError(
  29899. `'${request.method} is unsupported in no-cors mode.`
  29900. )
  29901. }
  29902. // 2. Set this’s headers’s guard to "request-no-cors".
  29903. this[kHeaders][kGuard] = 'request-no-cors'
  29904. }
  29905. // 32. If init is not empty, then:
  29906. if (Object.keys(init).length !== 0) {
  29907. // 1. Let headers be a copy of this’s headers and its associated header
  29908. // list.
  29909. let headers = new Headers(this[kHeaders])
  29910. // 2. If init["headers"] exists, then set headers to init["headers"].
  29911. if (init.headers !== undefined) {
  29912. headers = init.headers
  29913. }
  29914. // 3. Empty this’s headers’s header list.
  29915. this[kHeaders][kHeadersList].clear()
  29916. // 4. If headers is a Headers object, then for each header in its header
  29917. // list, append header’s name/header’s value to this’s headers.
  29918. if (headers.constructor.name === 'Headers') {
  29919. for (const [key, val] of headers) {
  29920. this[kHeaders].append(key, val)
  29921. }
  29922. } else {
  29923. // 5. Otherwise, fill this’s headers with headers.
  29924. fillHeaders(this[kHeaders], headers)
  29925. }
  29926. }
  29927. // 33. Let inputBody be input’s request’s body if input is a Request
  29928. // object; otherwise null.
  29929. const inputBody = input instanceof Request ? input[kState].body : null
  29930. // 34. If either init["body"] exists and is non-null or inputBody is
  29931. // non-null, and request’s method is `GET` or `HEAD`, then throw a
  29932. // TypeError.
  29933. if (
  29934. (init.body != null || inputBody != null) &&
  29935. (request.method === 'GET' || request.method === 'HEAD')
  29936. ) {
  29937. throw new TypeError('Request with GET/HEAD method cannot have body.')
  29938. }
  29939. // 35. Let initBody be null.
  29940. let initBody = null
  29941. // 36. If init["body"] exists and is non-null, then:
  29942. if (init.body != null) {
  29943. // 1. Let Content-Type be null.
  29944. // 2. Set initBody and Content-Type to the result of extracting
  29945. // init["body"], with keepalive set to request’s keepalive.
  29946. const [extractedBody, contentType] = extractBody(
  29947. init.body,
  29948. request.keepalive
  29949. )
  29950. initBody = extractedBody
  29951. // 3, If Content-Type is non-null and this’s headers’s header list does
  29952. // not contain `Content-Type`, then append `Content-Type`/Content-Type to
  29953. // this’s headers.
  29954. if (contentType && !this[kHeaders][kHeadersList].contains('content-type')) {
  29955. this[kHeaders].append('content-type', contentType)
  29956. }
  29957. }
  29958. // 37. Let inputOrInitBody be initBody if it is non-null; otherwise
  29959. // inputBody.
  29960. const inputOrInitBody = initBody ?? inputBody
  29961. // 38. If inputOrInitBody is non-null and inputOrInitBody’s source is
  29962. // null, then:
  29963. if (inputOrInitBody != null && inputOrInitBody.source == null) {
  29964. // 1. If initBody is non-null and init["duplex"] does not exist,
  29965. // then throw a TypeError.
  29966. if (initBody != null && init.duplex == null) {
  29967. throw new TypeError('RequestInit: duplex option is required when sending a body.')
  29968. }
  29969. // 2. If this’s request’s mode is neither "same-origin" nor "cors",
  29970. // then throw a TypeError.
  29971. if (request.mode !== 'same-origin' && request.mode !== 'cors') {
  29972. throw new TypeError(
  29973. 'If request is made from ReadableStream, mode should be "same-origin" or "cors"'
  29974. )
  29975. }
  29976. // 3. Set this’s request’s use-CORS-preflight flag.
  29977. request.useCORSPreflightFlag = true
  29978. }
  29979. // 39. Let finalBody be inputOrInitBody.
  29980. let finalBody = inputOrInitBody
  29981. // 40. If initBody is null and inputBody is non-null, then:
  29982. if (initBody == null && inputBody != null) {
  29983. // 1. If input is unusable, then throw a TypeError.
  29984. if (util.isDisturbed(inputBody.stream) || inputBody.stream.locked) {
  29985. throw new TypeError(
  29986. 'Cannot construct a Request with a Request object that has already been used.'
  29987. )
  29988. }
  29989. // 2. Set finalBody to the result of creating a proxy for inputBody.
  29990. if (!TransformStream) {
  29991. TransformStream = (__nccwpck_require__(5356).TransformStream)
  29992. }
  29993. // https://streams.spec.whatwg.org/#readablestream-create-a-proxy
  29994. const identityTransform = new TransformStream()
  29995. inputBody.stream.pipeThrough(identityTransform)
  29996. finalBody = {
  29997. source: inputBody.source,
  29998. length: inputBody.length,
  29999. stream: identityTransform.readable
  30000. }
  30001. }
  30002. // 41. Set this’s request’s body to finalBody.
  30003. this[kState].body = finalBody
  30004. }
  30005. // Returns request’s HTTP method, which is "GET" by default.
  30006. get method () {
  30007. webidl.brandCheck(this, Request)
  30008. // The method getter steps are to return this’s request’s method.
  30009. return this[kState].method
  30010. }
  30011. // Returns the URL of request as a string.
  30012. get url () {
  30013. webidl.brandCheck(this, Request)
  30014. // The url getter steps are to return this’s request’s URL, serialized.
  30015. return URLSerializer(this[kState].url)
  30016. }
  30017. // Returns a Headers object consisting of the headers associated with request.
  30018. // Note that headers added in the network layer by the user agent will not
  30019. // be accounted for in this object, e.g., the "Host" header.
  30020. get headers () {
  30021. webidl.brandCheck(this, Request)
  30022. // The headers getter steps are to return this’s headers.
  30023. return this[kHeaders]
  30024. }
  30025. // Returns the kind of resource requested by request, e.g., "document"
  30026. // or "script".
  30027. get destination () {
  30028. webidl.brandCheck(this, Request)
  30029. // The destination getter are to return this’s request’s destination.
  30030. return this[kState].destination
  30031. }
  30032. // Returns the referrer of request. Its value can be a same-origin URL if
  30033. // explicitly set in init, the empty string to indicate no referrer, and
  30034. // "about:client" when defaulting to the global’s default. This is used
  30035. // during fetching to determine the value of the `Referer` header of the
  30036. // request being made.
  30037. get referrer () {
  30038. webidl.brandCheck(this, Request)
  30039. // 1. If this’s request’s referrer is "no-referrer", then return the
  30040. // empty string.
  30041. if (this[kState].referrer === 'no-referrer') {
  30042. return ''
  30043. }
  30044. // 2. If this’s request’s referrer is "client", then return
  30045. // "about:client".
  30046. if (this[kState].referrer === 'client') {
  30047. return 'about:client'
  30048. }
  30049. // Return this’s request’s referrer, serialized.
  30050. return this[kState].referrer.toString()
  30051. }
  30052. // Returns the referrer policy associated with request.
  30053. // This is used during fetching to compute the value of the request’s
  30054. // referrer.
  30055. get referrerPolicy () {
  30056. webidl.brandCheck(this, Request)
  30057. // The referrerPolicy getter steps are to return this’s request’s referrer policy.
  30058. return this[kState].referrerPolicy
  30059. }
  30060. // Returns the mode associated with request, which is a string indicating
  30061. // whether the request will use CORS, or will be restricted to same-origin
  30062. // URLs.
  30063. get mode () {
  30064. webidl.brandCheck(this, Request)
  30065. // The mode getter steps are to return this’s request’s mode.
  30066. return this[kState].mode
  30067. }
  30068. // Returns the credentials mode associated with request,
  30069. // which is a string indicating whether credentials will be sent with the
  30070. // request always, never, or only when sent to a same-origin URL.
  30071. get credentials () {
  30072. // The credentials getter steps are to return this’s request’s credentials mode.
  30073. return this[kState].credentials
  30074. }
  30075. // Returns the cache mode associated with request,
  30076. // which is a string indicating how the request will
  30077. // interact with the browser’s cache when fetching.
  30078. get cache () {
  30079. webidl.brandCheck(this, Request)
  30080. // The cache getter steps are to return this’s request’s cache mode.
  30081. return this[kState].cache
  30082. }
  30083. // Returns the redirect mode associated with request,
  30084. // which is a string indicating how redirects for the
  30085. // request will be handled during fetching. A request
  30086. // will follow redirects by default.
  30087. get redirect () {
  30088. webidl.brandCheck(this, Request)
  30089. // The redirect getter steps are to return this’s request’s redirect mode.
  30090. return this[kState].redirect
  30091. }
  30092. // Returns request’s subresource integrity metadata, which is a
  30093. // cryptographic hash of the resource being fetched. Its value
  30094. // consists of multiple hashes separated by whitespace. [SRI]
  30095. get integrity () {
  30096. webidl.brandCheck(this, Request)
  30097. // The integrity getter steps are to return this’s request’s integrity
  30098. // metadata.
  30099. return this[kState].integrity
  30100. }
  30101. // Returns a boolean indicating whether or not request can outlive the
  30102. // global in which it was created.
  30103. get keepalive () {
  30104. webidl.brandCheck(this, Request)
  30105. // The keepalive getter steps are to return this’s request’s keepalive.
  30106. return this[kState].keepalive
  30107. }
  30108. // Returns a boolean indicating whether or not request is for a reload
  30109. // navigation.
  30110. get isReloadNavigation () {
  30111. webidl.brandCheck(this, Request)
  30112. // The isReloadNavigation getter steps are to return true if this’s
  30113. // request’s reload-navigation flag is set; otherwise false.
  30114. return this[kState].reloadNavigation
  30115. }
  30116. // Returns a boolean indicating whether or not request is for a history
  30117. // navigation (a.k.a. back-foward navigation).
  30118. get isHistoryNavigation () {
  30119. webidl.brandCheck(this, Request)
  30120. // The isHistoryNavigation getter steps are to return true if this’s request’s
  30121. // history-navigation flag is set; otherwise false.
  30122. return this[kState].historyNavigation
  30123. }
  30124. // Returns the signal associated with request, which is an AbortSignal
  30125. // object indicating whether or not request has been aborted, and its
  30126. // abort event handler.
  30127. get signal () {
  30128. webidl.brandCheck(this, Request)
  30129. // The signal getter steps are to return this’s signal.
  30130. return this[kSignal]
  30131. }
  30132. get body () {
  30133. webidl.brandCheck(this, Request)
  30134. return this[kState].body ? this[kState].body.stream : null
  30135. }
  30136. get bodyUsed () {
  30137. webidl.brandCheck(this, Request)
  30138. return !!this[kState].body && util.isDisturbed(this[kState].body.stream)
  30139. }
  30140. get duplex () {
  30141. webidl.brandCheck(this, Request)
  30142. return 'half'
  30143. }
  30144. // Returns a clone of request.
  30145. clone () {
  30146. webidl.brandCheck(this, Request)
  30147. // 1. If this is unusable, then throw a TypeError.
  30148. if (this.bodyUsed || this.body?.locked) {
  30149. throw new TypeError('unusable')
  30150. }
  30151. // 2. Let clonedRequest be the result of cloning this’s request.
  30152. const clonedRequest = cloneRequest(this[kState])
  30153. // 3. Let clonedRequestObject be the result of creating a Request object,
  30154. // given clonedRequest, this’s headers’s guard, and this’s relevant Realm.
  30155. const clonedRequestObject = new Request(kInit)
  30156. clonedRequestObject[kState] = clonedRequest
  30157. clonedRequestObject[kRealm] = this[kRealm]
  30158. clonedRequestObject[kHeaders] = new Headers()
  30159. clonedRequestObject[kHeaders][kHeadersList] = clonedRequest.headersList
  30160. clonedRequestObject[kHeaders][kGuard] = this[kHeaders][kGuard]
  30161. clonedRequestObject[kHeaders][kRealm] = this[kHeaders][kRealm]
  30162. // 4. Make clonedRequestObject’s signal follow this’s signal.
  30163. const ac = new AbortController()
  30164. if (this.signal.aborted) {
  30165. ac.abort(this.signal.reason)
  30166. } else {
  30167. util.addAbortListener(
  30168. this.signal,
  30169. () => {
  30170. ac.abort(this.signal.reason)
  30171. }
  30172. )
  30173. }
  30174. clonedRequestObject[kSignal] = ac.signal
  30175. // 4. Return clonedRequestObject.
  30176. return clonedRequestObject
  30177. }
  30178. }
  30179. mixinBody(Request)
  30180. function makeRequest (init) {
  30181. // https://fetch.spec.whatwg.org/#requests
  30182. const request = {
  30183. method: 'GET',
  30184. localURLsOnly: false,
  30185. unsafeRequest: false,
  30186. body: null,
  30187. client: null,
  30188. reservedClient: null,
  30189. replacesClientId: '',
  30190. window: 'client',
  30191. keepalive: false,
  30192. serviceWorkers: 'all',
  30193. initiator: '',
  30194. destination: '',
  30195. priority: null,
  30196. origin: 'client',
  30197. policyContainer: 'client',
  30198. referrer: 'client',
  30199. referrerPolicy: '',
  30200. mode: 'no-cors',
  30201. useCORSPreflightFlag: false,
  30202. credentials: 'same-origin',
  30203. useCredentials: false,
  30204. cache: 'default',
  30205. redirect: 'follow',
  30206. integrity: '',
  30207. cryptoGraphicsNonceMetadata: '',
  30208. parserMetadata: '',
  30209. reloadNavigation: false,
  30210. historyNavigation: false,
  30211. userActivation: false,
  30212. taintedOrigin: false,
  30213. redirectCount: 0,
  30214. responseTainting: 'basic',
  30215. preventNoCacheCacheControlHeaderModification: false,
  30216. done: false,
  30217. timingAllowFailed: false,
  30218. ...init,
  30219. headersList: init.headersList
  30220. ? new HeadersList(init.headersList)
  30221. : new HeadersList()
  30222. }
  30223. request.url = request.urlList[0]
  30224. return request
  30225. }
  30226. // https://fetch.spec.whatwg.org/#concept-request-clone
  30227. function cloneRequest (request) {
  30228. // To clone a request request, run these steps:
  30229. // 1. Let newRequest be a copy of request, except for its body.
  30230. const newRequest = makeRequest({ ...request, body: null })
  30231. // 2. If request’s body is non-null, set newRequest’s body to the
  30232. // result of cloning request’s body.
  30233. if (request.body != null) {
  30234. newRequest.body = cloneBody(request.body)
  30235. }
  30236. // 3. Return newRequest.
  30237. return newRequest
  30238. }
  30239. Object.defineProperties(Request.prototype, {
  30240. method: kEnumerableProperty,
  30241. url: kEnumerableProperty,
  30242. headers: kEnumerableProperty,
  30243. redirect: kEnumerableProperty,
  30244. clone: kEnumerableProperty,
  30245. signal: kEnumerableProperty,
  30246. duplex: kEnumerableProperty,
  30247. destination: kEnumerableProperty,
  30248. body: kEnumerableProperty,
  30249. bodyUsed: kEnumerableProperty,
  30250. isHistoryNavigation: kEnumerableProperty,
  30251. isReloadNavigation: kEnumerableProperty,
  30252. keepalive: kEnumerableProperty,
  30253. integrity: kEnumerableProperty,
  30254. cache: kEnumerableProperty,
  30255. credentials: kEnumerableProperty,
  30256. attribute: kEnumerableProperty,
  30257. referrerPolicy: kEnumerableProperty,
  30258. referrer: kEnumerableProperty,
  30259. mode: kEnumerableProperty,
  30260. [Symbol.toStringTag]: {
  30261. value: 'Request',
  30262. configurable: true
  30263. }
  30264. })
  30265. webidl.converters.Request = webidl.interfaceConverter(
  30266. Request
  30267. )
  30268. // https://fetch.spec.whatwg.org/#requestinfo
  30269. webidl.converters.RequestInfo = function (V) {
  30270. if (typeof V === 'string') {
  30271. return webidl.converters.USVString(V)
  30272. }
  30273. if (V instanceof Request) {
  30274. return webidl.converters.Request(V)
  30275. }
  30276. return webidl.converters.USVString(V)
  30277. }
  30278. webidl.converters.AbortSignal = webidl.interfaceConverter(
  30279. AbortSignal
  30280. )
  30281. // https://fetch.spec.whatwg.org/#requestinit
  30282. webidl.converters.RequestInit = webidl.dictionaryConverter([
  30283. {
  30284. key: 'method',
  30285. converter: webidl.converters.ByteString
  30286. },
  30287. {
  30288. key: 'headers',
  30289. converter: webidl.converters.HeadersInit
  30290. },
  30291. {
  30292. key: 'body',
  30293. converter: webidl.nullableConverter(
  30294. webidl.converters.BodyInit
  30295. )
  30296. },
  30297. {
  30298. key: 'referrer',
  30299. converter: webidl.converters.USVString
  30300. },
  30301. {
  30302. key: 'referrerPolicy',
  30303. converter: webidl.converters.DOMString,
  30304. // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy
  30305. allowedValues: referrerPolicy
  30306. },
  30307. {
  30308. key: 'mode',
  30309. converter: webidl.converters.DOMString,
  30310. // https://fetch.spec.whatwg.org/#concept-request-mode
  30311. allowedValues: requestMode
  30312. },
  30313. {
  30314. key: 'credentials',
  30315. converter: webidl.converters.DOMString,
  30316. // https://fetch.spec.whatwg.org/#requestcredentials
  30317. allowedValues: requestCredentials
  30318. },
  30319. {
  30320. key: 'cache',
  30321. converter: webidl.converters.DOMString,
  30322. // https://fetch.spec.whatwg.org/#requestcache
  30323. allowedValues: requestCache
  30324. },
  30325. {
  30326. key: 'redirect',
  30327. converter: webidl.converters.DOMString,
  30328. // https://fetch.spec.whatwg.org/#requestredirect
  30329. allowedValues: requestRedirect
  30330. },
  30331. {
  30332. key: 'integrity',
  30333. converter: webidl.converters.DOMString
  30334. },
  30335. {
  30336. key: 'keepalive',
  30337. converter: webidl.converters.boolean
  30338. },
  30339. {
  30340. key: 'signal',
  30341. converter: webidl.nullableConverter(
  30342. (signal) => webidl.converters.AbortSignal(
  30343. signal,
  30344. { strict: false }
  30345. )
  30346. )
  30347. },
  30348. {
  30349. key: 'window',
  30350. converter: webidl.converters.any
  30351. },
  30352. {
  30353. key: 'duplex',
  30354. converter: webidl.converters.DOMString,
  30355. allowedValues: requestDuplex
  30356. }
  30357. ])
  30358. module.exports = { Request, makeRequest }
  30359. /***/ }),
  30360. /***/ 7823:
  30361. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  30362. "use strict";
  30363. const { Headers, HeadersList, fill } = __nccwpck_require__(554)
  30364. const { extractBody, cloneBody, mixinBody } = __nccwpck_require__(9990)
  30365. const util = __nccwpck_require__(3983)
  30366. const { kEnumerableProperty } = util
  30367. const {
  30368. isValidReasonPhrase,
  30369. isCancelled,
  30370. isAborted,
  30371. isBlobLike,
  30372. serializeJavascriptValueToJSONString,
  30373. isErrorLike,
  30374. isomorphicEncode
  30375. } = __nccwpck_require__(2538)
  30376. const {
  30377. redirectStatus,
  30378. nullBodyStatus,
  30379. DOMException
  30380. } = __nccwpck_require__(1037)
  30381. const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(5861)
  30382. const { webidl } = __nccwpck_require__(1744)
  30383. const { FormData } = __nccwpck_require__(2015)
  30384. const { getGlobalOrigin } = __nccwpck_require__(1246)
  30385. const { URLSerializer } = __nccwpck_require__(685)
  30386. const { kHeadersList } = __nccwpck_require__(2785)
  30387. const assert = __nccwpck_require__(9491)
  30388. const { types } = __nccwpck_require__(3837)
  30389. const ReadableStream = globalThis.ReadableStream || (__nccwpck_require__(5356).ReadableStream)
  30390. // https://fetch.spec.whatwg.org/#response-class
  30391. class Response {
  30392. // Creates network error Response.
  30393. static error () {
  30394. // TODO
  30395. const relevantRealm = { settingsObject: {} }
  30396. // The static error() method steps are to return the result of creating a
  30397. // Response object, given a new network error, "immutable", and this’s
  30398. // relevant Realm.
  30399. const responseObject = new Response()
  30400. responseObject[kState] = makeNetworkError()
  30401. responseObject[kRealm] = relevantRealm
  30402. responseObject[kHeaders][kHeadersList] = responseObject[kState].headersList
  30403. responseObject[kHeaders][kGuard] = 'immutable'
  30404. responseObject[kHeaders][kRealm] = relevantRealm
  30405. return responseObject
  30406. }
  30407. // https://fetch.spec.whatwg.org/#dom-response-json
  30408. static json (data, init = {}) {
  30409. webidl.argumentLengthCheck(arguments, 1, { header: 'Response.json' })
  30410. if (init !== null) {
  30411. init = webidl.converters.ResponseInit(init)
  30412. }
  30413. // 1. Let bytes the result of running serialize a JavaScript value to JSON bytes on data.
  30414. const bytes = new TextEncoder('utf-8').encode(
  30415. serializeJavascriptValueToJSONString(data)
  30416. )
  30417. // 2. Let body be the result of extracting bytes.
  30418. const body = extractBody(bytes)
  30419. // 3. Let responseObject be the result of creating a Response object, given a new response,
  30420. // "response", and this’s relevant Realm.
  30421. const relevantRealm = { settingsObject: {} }
  30422. const responseObject = new Response()
  30423. responseObject[kRealm] = relevantRealm
  30424. responseObject[kHeaders][kGuard] = 'response'
  30425. responseObject[kHeaders][kRealm] = relevantRealm
  30426. // 4. Perform initialize a response given responseObject, init, and (body, "application/json").
  30427. initializeResponse(responseObject, init, { body: body[0], type: 'application/json' })
  30428. // 5. Return responseObject.
  30429. return responseObject
  30430. }
  30431. // Creates a redirect Response that redirects to url with status status.
  30432. static redirect (url, status = 302) {
  30433. const relevantRealm = { settingsObject: {} }
  30434. webidl.argumentLengthCheck(arguments, 1, { header: 'Response.redirect' })
  30435. url = webidl.converters.USVString(url)
  30436. status = webidl.converters['unsigned short'](status)
  30437. // 1. Let parsedURL be the result of parsing url with current settings
  30438. // object’s API base URL.
  30439. // 2. If parsedURL is failure, then throw a TypeError.
  30440. // TODO: base-URL?
  30441. let parsedURL
  30442. try {
  30443. parsedURL = new URL(url, getGlobalOrigin())
  30444. } catch (err) {
  30445. throw Object.assign(new TypeError('Failed to parse URL from ' + url), {
  30446. cause: err
  30447. })
  30448. }
  30449. // 3. If status is not a redirect status, then throw a RangeError.
  30450. if (!redirectStatus.includes(status)) {
  30451. throw new RangeError('Invalid status code ' + status)
  30452. }
  30453. // 4. Let responseObject be the result of creating a Response object,
  30454. // given a new response, "immutable", and this’s relevant Realm.
  30455. const responseObject = new Response()
  30456. responseObject[kRealm] = relevantRealm
  30457. responseObject[kHeaders][kGuard] = 'immutable'
  30458. responseObject[kHeaders][kRealm] = relevantRealm
  30459. // 5. Set responseObject’s response’s status to status.
  30460. responseObject[kState].status = status
  30461. // 6. Let value be parsedURL, serialized and isomorphic encoded.
  30462. const value = isomorphicEncode(URLSerializer(parsedURL))
  30463. // 7. Append `Location`/value to responseObject’s response’s header list.
  30464. responseObject[kState].headersList.append('location', value)
  30465. // 8. Return responseObject.
  30466. return responseObject
  30467. }
  30468. // https://fetch.spec.whatwg.org/#dom-response
  30469. constructor (body = null, init = {}) {
  30470. if (body !== null) {
  30471. body = webidl.converters.BodyInit(body)
  30472. }
  30473. init = webidl.converters.ResponseInit(init)
  30474. // TODO
  30475. this[kRealm] = { settingsObject: {} }
  30476. // 1. Set this’s response to a new response.
  30477. this[kState] = makeResponse({})
  30478. // 2. Set this’s headers to a new Headers object with this’s relevant
  30479. // Realm, whose header list is this’s response’s header list and guard
  30480. // is "response".
  30481. this[kHeaders] = new Headers()
  30482. this[kHeaders][kGuard] = 'response'
  30483. this[kHeaders][kHeadersList] = this[kState].headersList
  30484. this[kHeaders][kRealm] = this[kRealm]
  30485. // 3. Let bodyWithType be null.
  30486. let bodyWithType = null
  30487. // 4. If body is non-null, then set bodyWithType to the result of extracting body.
  30488. if (body != null) {
  30489. const [extractedBody, type] = extractBody(body)
  30490. bodyWithType = { body: extractedBody, type }
  30491. }
  30492. // 5. Perform initialize a response given this, init, and bodyWithType.
  30493. initializeResponse(this, init, bodyWithType)
  30494. }
  30495. // Returns response’s type, e.g., "cors".
  30496. get type () {
  30497. webidl.brandCheck(this, Response)
  30498. // The type getter steps are to return this’s response’s type.
  30499. return this[kState].type
  30500. }
  30501. // Returns response’s URL, if it has one; otherwise the empty string.
  30502. get url () {
  30503. webidl.brandCheck(this, Response)
  30504. const urlList = this[kState].urlList
  30505. // The url getter steps are to return the empty string if this’s
  30506. // response’s URL is null; otherwise this’s response’s URL,
  30507. // serialized with exclude fragment set to true.
  30508. const url = urlList[urlList.length - 1] ?? null
  30509. if (url === null) {
  30510. return ''
  30511. }
  30512. return URLSerializer(url, true)
  30513. }
  30514. // Returns whether response was obtained through a redirect.
  30515. get redirected () {
  30516. webidl.brandCheck(this, Response)
  30517. // The redirected getter steps are to return true if this’s response’s URL
  30518. // list has more than one item; otherwise false.
  30519. return this[kState].urlList.length > 1
  30520. }
  30521. // Returns response’s status.
  30522. get status () {
  30523. webidl.brandCheck(this, Response)
  30524. // The status getter steps are to return this’s response’s status.
  30525. return this[kState].status
  30526. }
  30527. // Returns whether response’s status is an ok status.
  30528. get ok () {
  30529. webidl.brandCheck(this, Response)
  30530. // The ok getter steps are to return true if this’s response’s status is an
  30531. // ok status; otherwise false.
  30532. return this[kState].status >= 200 && this[kState].status <= 299
  30533. }
  30534. // Returns response’s status message.
  30535. get statusText () {
  30536. webidl.brandCheck(this, Response)
  30537. // The statusText getter steps are to return this’s response’s status
  30538. // message.
  30539. return this[kState].statusText
  30540. }
  30541. // Returns response’s headers as Headers.
  30542. get headers () {
  30543. webidl.brandCheck(this, Response)
  30544. // The headers getter steps are to return this’s headers.
  30545. return this[kHeaders]
  30546. }
  30547. get body () {
  30548. webidl.brandCheck(this, Response)
  30549. return this[kState].body ? this[kState].body.stream : null
  30550. }
  30551. get bodyUsed () {
  30552. webidl.brandCheck(this, Response)
  30553. return !!this[kState].body && util.isDisturbed(this[kState].body.stream)
  30554. }
  30555. // Returns a clone of response.
  30556. clone () {
  30557. webidl.brandCheck(this, Response)
  30558. // 1. If this is unusable, then throw a TypeError.
  30559. if (this.bodyUsed || (this.body && this.body.locked)) {
  30560. throw webidl.errors.exception({
  30561. header: 'Response.clone',
  30562. message: 'Body has already been consumed.'
  30563. })
  30564. }
  30565. // 2. Let clonedResponse be the result of cloning this’s response.
  30566. const clonedResponse = cloneResponse(this[kState])
  30567. // 3. Return the result of creating a Response object, given
  30568. // clonedResponse, this’s headers’s guard, and this’s relevant Realm.
  30569. const clonedResponseObject = new Response()
  30570. clonedResponseObject[kState] = clonedResponse
  30571. clonedResponseObject[kRealm] = this[kRealm]
  30572. clonedResponseObject[kHeaders][kHeadersList] = clonedResponse.headersList
  30573. clonedResponseObject[kHeaders][kGuard] = this[kHeaders][kGuard]
  30574. clonedResponseObject[kHeaders][kRealm] = this[kHeaders][kRealm]
  30575. return clonedResponseObject
  30576. }
  30577. }
  30578. mixinBody(Response)
  30579. Object.defineProperties(Response.prototype, {
  30580. type: kEnumerableProperty,
  30581. url: kEnumerableProperty,
  30582. status: kEnumerableProperty,
  30583. ok: kEnumerableProperty,
  30584. redirected: kEnumerableProperty,
  30585. statusText: kEnumerableProperty,
  30586. headers: kEnumerableProperty,
  30587. clone: kEnumerableProperty,
  30588. body: kEnumerableProperty,
  30589. bodyUsed: kEnumerableProperty,
  30590. [Symbol.toStringTag]: {
  30591. value: 'Response',
  30592. configurable: true
  30593. }
  30594. })
  30595. Object.defineProperties(Response, {
  30596. json: kEnumerableProperty,
  30597. redirect: kEnumerableProperty,
  30598. error: kEnumerableProperty
  30599. })
  30600. // https://fetch.spec.whatwg.org/#concept-response-clone
  30601. function cloneResponse (response) {
  30602. // To clone a response response, run these steps:
  30603. // 1. If response is a filtered response, then return a new identical
  30604. // filtered response whose internal response is a clone of response’s
  30605. // internal response.
  30606. if (response.internalResponse) {
  30607. return filterResponse(
  30608. cloneResponse(response.internalResponse),
  30609. response.type
  30610. )
  30611. }
  30612. // 2. Let newResponse be a copy of response, except for its body.
  30613. const newResponse = makeResponse({ ...response, body: null })
  30614. // 3. If response’s body is non-null, then set newResponse’s body to the
  30615. // result of cloning response’s body.
  30616. if (response.body != null) {
  30617. newResponse.body = cloneBody(response.body)
  30618. }
  30619. // 4. Return newResponse.
  30620. return newResponse
  30621. }
  30622. function makeResponse (init) {
  30623. return {
  30624. aborted: false,
  30625. rangeRequested: false,
  30626. timingAllowPassed: false,
  30627. requestIncludesCredentials: false,
  30628. type: 'default',
  30629. status: 200,
  30630. timingInfo: null,
  30631. cacheState: '',
  30632. statusText: '',
  30633. ...init,
  30634. headersList: init.headersList
  30635. ? new HeadersList(init.headersList)
  30636. : new HeadersList(),
  30637. urlList: init.urlList ? [...init.urlList] : []
  30638. }
  30639. }
  30640. function makeNetworkError (reason) {
  30641. const isError = isErrorLike(reason)
  30642. return makeResponse({
  30643. type: 'error',
  30644. status: 0,
  30645. error: isError
  30646. ? reason
  30647. : new Error(reason ? String(reason) : reason),
  30648. aborted: reason && reason.name === 'AbortError'
  30649. })
  30650. }
  30651. function makeFilteredResponse (response, state) {
  30652. state = {
  30653. internalResponse: response,
  30654. ...state
  30655. }
  30656. return new Proxy(response, {
  30657. get (target, p) {
  30658. return p in state ? state[p] : target[p]
  30659. },
  30660. set (target, p, value) {
  30661. assert(!(p in state))
  30662. target[p] = value
  30663. return true
  30664. }
  30665. })
  30666. }
  30667. // https://fetch.spec.whatwg.org/#concept-filtered-response
  30668. function filterResponse (response, type) {
  30669. // Set response to the following filtered response with response as its
  30670. // internal response, depending on request’s response tainting:
  30671. if (type === 'basic') {
  30672. // A basic filtered response is a filtered response whose type is "basic"
  30673. // and header list excludes any headers in internal response’s header list
  30674. // whose name is a forbidden response-header name.
  30675. // Note: undici does not implement forbidden response-header names
  30676. return makeFilteredResponse(response, {
  30677. type: 'basic',
  30678. headersList: response.headersList
  30679. })
  30680. } else if (type === 'cors') {
  30681. // A CORS filtered response is a filtered response whose type is "cors"
  30682. // and header list excludes any headers in internal response’s header
  30683. // list whose name is not a CORS-safelisted response-header name, given
  30684. // internal response’s CORS-exposed header-name list.
  30685. // Note: undici does not implement CORS-safelisted response-header names
  30686. return makeFilteredResponse(response, {
  30687. type: 'cors',
  30688. headersList: response.headersList
  30689. })
  30690. } else if (type === 'opaque') {
  30691. // An opaque filtered response is a filtered response whose type is
  30692. // "opaque", URL list is the empty list, status is 0, status message
  30693. // is the empty byte sequence, header list is empty, and body is null.
  30694. return makeFilteredResponse(response, {
  30695. type: 'opaque',
  30696. urlList: Object.freeze([]),
  30697. status: 0,
  30698. statusText: '',
  30699. body: null
  30700. })
  30701. } else if (type === 'opaqueredirect') {
  30702. // An opaque-redirect filtered response is a filtered response whose type
  30703. // is "opaqueredirect", status is 0, status message is the empty byte
  30704. // sequence, header list is empty, and body is null.
  30705. return makeFilteredResponse(response, {
  30706. type: 'opaqueredirect',
  30707. status: 0,
  30708. statusText: '',
  30709. headersList: [],
  30710. body: null
  30711. })
  30712. } else {
  30713. assert(false)
  30714. }
  30715. }
  30716. // https://fetch.spec.whatwg.org/#appropriate-network-error
  30717. function makeAppropriateNetworkError (fetchParams, err = null) {
  30718. // 1. Assert: fetchParams is canceled.
  30719. assert(isCancelled(fetchParams))
  30720. // 2. Return an aborted network error if fetchParams is aborted;
  30721. // otherwise return a network error.
  30722. return isAborted(fetchParams)
  30723. ? makeNetworkError(Object.assign(new DOMException('The operation was aborted.', 'AbortError'), { cause: err }))
  30724. : makeNetworkError(Object.assign(new DOMException('Request was cancelled.'), { cause: err }))
  30725. }
  30726. // https://whatpr.org/fetch/1392.html#initialize-a-response
  30727. function initializeResponse (response, init, body) {
  30728. // 1. If init["status"] is not in the range 200 to 599, inclusive, then
  30729. // throw a RangeError.
  30730. if (init.status !== null && (init.status < 200 || init.status > 599)) {
  30731. throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')
  30732. }
  30733. // 2. If init["statusText"] does not match the reason-phrase token production,
  30734. // then throw a TypeError.
  30735. if ('statusText' in init && init.statusText != null) {
  30736. // See, https://datatracker.ietf.org/doc/html/rfc7230#section-3.1.2:
  30737. // reason-phrase = *( HTAB / SP / VCHAR / obs-text )
  30738. if (!isValidReasonPhrase(String(init.statusText))) {
  30739. throw new TypeError('Invalid statusText')
  30740. }
  30741. }
  30742. // 3. Set response’s response’s status to init["status"].
  30743. if ('status' in init && init.status != null) {
  30744. response[kState].status = init.status
  30745. }
  30746. // 4. Set response’s response’s status message to init["statusText"].
  30747. if ('statusText' in init && init.statusText != null) {
  30748. response[kState].statusText = init.statusText
  30749. }
  30750. // 5. If init["headers"] exists, then fill response’s headers with init["headers"].
  30751. if ('headers' in init && init.headers != null) {
  30752. fill(response[kHeaders], init.headers)
  30753. }
  30754. // 6. If body was given, then:
  30755. if (body) {
  30756. // 1. If response's status is a null body status, then throw a TypeError.
  30757. if (nullBodyStatus.includes(response.status)) {
  30758. throw webidl.errors.exception({
  30759. header: 'Response constructor',
  30760. message: 'Invalid response status code ' + response.status
  30761. })
  30762. }
  30763. // 2. Set response's body to body's body.
  30764. response[kState].body = body.body
  30765. // 3. If body's type is non-null and response's header list does not contain
  30766. // `Content-Type`, then append (`Content-Type`, body's type) to response's header list.
  30767. if (body.type != null && !response[kState].headersList.contains('Content-Type')) {
  30768. response[kState].headersList.append('content-type', body.type)
  30769. }
  30770. }
  30771. }
  30772. webidl.converters.ReadableStream = webidl.interfaceConverter(
  30773. ReadableStream
  30774. )
  30775. webidl.converters.FormData = webidl.interfaceConverter(
  30776. FormData
  30777. )
  30778. webidl.converters.URLSearchParams = webidl.interfaceConverter(
  30779. URLSearchParams
  30780. )
  30781. // https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit
  30782. webidl.converters.XMLHttpRequestBodyInit = function (V) {
  30783. if (typeof V === 'string') {
  30784. return webidl.converters.USVString(V)
  30785. }
  30786. if (isBlobLike(V)) {
  30787. return webidl.converters.Blob(V, { strict: false })
  30788. }
  30789. if (
  30790. types.isAnyArrayBuffer(V) ||
  30791. types.isTypedArray(V) ||
  30792. types.isDataView(V)
  30793. ) {
  30794. return webidl.converters.BufferSource(V)
  30795. }
  30796. if (util.isFormDataLike(V)) {
  30797. return webidl.converters.FormData(V, { strict: false })
  30798. }
  30799. if (V instanceof URLSearchParams) {
  30800. return webidl.converters.URLSearchParams(V)
  30801. }
  30802. return webidl.converters.DOMString(V)
  30803. }
  30804. // https://fetch.spec.whatwg.org/#bodyinit
  30805. webidl.converters.BodyInit = function (V) {
  30806. if (V instanceof ReadableStream) {
  30807. return webidl.converters.ReadableStream(V)
  30808. }
  30809. // Note: the spec doesn't include async iterables,
  30810. // this is an undici extension.
  30811. if (V?.[Symbol.asyncIterator]) {
  30812. return V
  30813. }
  30814. return webidl.converters.XMLHttpRequestBodyInit(V)
  30815. }
  30816. webidl.converters.ResponseInit = webidl.dictionaryConverter([
  30817. {
  30818. key: 'status',
  30819. converter: webidl.converters['unsigned short'],
  30820. defaultValue: 200
  30821. },
  30822. {
  30823. key: 'statusText',
  30824. converter: webidl.converters.ByteString,
  30825. defaultValue: ''
  30826. },
  30827. {
  30828. key: 'headers',
  30829. converter: webidl.converters.HeadersInit
  30830. }
  30831. ])
  30832. module.exports = {
  30833. makeNetworkError,
  30834. makeResponse,
  30835. makeAppropriateNetworkError,
  30836. filterResponse,
  30837. Response,
  30838. cloneResponse
  30839. }
  30840. /***/ }),
  30841. /***/ 5861:
  30842. /***/ ((module) => {
  30843. "use strict";
  30844. module.exports = {
  30845. kUrl: Symbol('url'),
  30846. kHeaders: Symbol('headers'),
  30847. kSignal: Symbol('signal'),
  30848. kState: Symbol('state'),
  30849. kGuard: Symbol('guard'),
  30850. kRealm: Symbol('realm')
  30851. }
  30852. /***/ }),
  30853. /***/ 2538:
  30854. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  30855. "use strict";
  30856. const { redirectStatus, badPorts, referrerPolicy: referrerPolicyTokens } = __nccwpck_require__(1037)
  30857. const { getGlobalOrigin } = __nccwpck_require__(1246)
  30858. const { performance } = __nccwpck_require__(4074)
  30859. const { isBlobLike, toUSVString, ReadableStreamFrom } = __nccwpck_require__(3983)
  30860. const assert = __nccwpck_require__(9491)
  30861. const { isUint8Array } = __nccwpck_require__(9830)
  30862. // https://nodejs.org/api/crypto.html#determining-if-crypto-support-is-unavailable
  30863. /** @type {import('crypto')|undefined} */
  30864. let crypto
  30865. try {
  30866. crypto = __nccwpck_require__(6113)
  30867. } catch {
  30868. }
  30869. function responseURL (response) {
  30870. // https://fetch.spec.whatwg.org/#responses
  30871. // A response has an associated URL. It is a pointer to the last URL
  30872. // in response’s URL list and null if response’s URL list is empty.
  30873. const urlList = response.urlList
  30874. const length = urlList.length
  30875. return length === 0 ? null : urlList[length - 1].toString()
  30876. }
  30877. // https://fetch.spec.whatwg.org/#concept-response-location-url
  30878. function responseLocationURL (response, requestFragment) {
  30879. // 1. If response’s status is not a redirect status, then return null.
  30880. if (!redirectStatus.includes(response.status)) {
  30881. return null
  30882. }
  30883. // 2. Let location be the result of extracting header list values given
  30884. // `Location` and response’s header list.
  30885. let location = response.headersList.get('location')
  30886. // 3. If location is a header value, then set location to the result of
  30887. // parsing location with response’s URL.
  30888. if (location !== null && isValidHeaderValue(location)) {
  30889. location = new URL(location, responseURL(response))
  30890. }
  30891. // 4. If location is a URL whose fragment is null, then set location’s
  30892. // fragment to requestFragment.
  30893. if (location && !location.hash) {
  30894. location.hash = requestFragment
  30895. }
  30896. // 5. Return location.
  30897. return location
  30898. }
  30899. /** @returns {URL} */
  30900. function requestCurrentURL (request) {
  30901. return request.urlList[request.urlList.length - 1]
  30902. }
  30903. function requestBadPort (request) {
  30904. // 1. Let url be request’s current URL.
  30905. const url = requestCurrentURL(request)
  30906. // 2. If url’s scheme is an HTTP(S) scheme and url’s port is a bad port,
  30907. // then return blocked.
  30908. if (urlIsHttpHttpsScheme(url) && badPorts.includes(url.port)) {
  30909. return 'blocked'
  30910. }
  30911. // 3. Return allowed.
  30912. return 'allowed'
  30913. }
  30914. function isErrorLike (object) {
  30915. return object instanceof Error || (
  30916. object?.constructor?.name === 'Error' ||
  30917. object?.constructor?.name === 'DOMException'
  30918. )
  30919. }
  30920. // Check whether |statusText| is a ByteString and
  30921. // matches the Reason-Phrase token production.
  30922. // RFC 2616: https://tools.ietf.org/html/rfc2616
  30923. // RFC 7230: https://tools.ietf.org/html/rfc7230
  30924. // "reason-phrase = *( HTAB / SP / VCHAR / obs-text )"
  30925. // https://github.com/chromium/chromium/blob/94.0.4604.1/third_party/blink/renderer/core/fetch/response.cc#L116
  30926. function isValidReasonPhrase (statusText) {
  30927. for (let i = 0; i < statusText.length; ++i) {
  30928. const c = statusText.charCodeAt(i)
  30929. if (
  30930. !(
  30931. (
  30932. c === 0x09 || // HTAB
  30933. (c >= 0x20 && c <= 0x7e) || // SP / VCHAR
  30934. (c >= 0x80 && c <= 0xff)
  30935. ) // obs-text
  30936. )
  30937. ) {
  30938. return false
  30939. }
  30940. }
  30941. return true
  30942. }
  30943. function isTokenChar (c) {
  30944. return !(
  30945. c >= 0x7f ||
  30946. c <= 0x20 ||
  30947. c === '(' ||
  30948. c === ')' ||
  30949. c === '<' ||
  30950. c === '>' ||
  30951. c === '@' ||
  30952. c === ',' ||
  30953. c === ';' ||
  30954. c === ':' ||
  30955. c === '\\' ||
  30956. c === '"' ||
  30957. c === '/' ||
  30958. c === '[' ||
  30959. c === ']' ||
  30960. c === '?' ||
  30961. c === '=' ||
  30962. c === '{' ||
  30963. c === '}'
  30964. )
  30965. }
  30966. // See RFC 7230, Section 3.2.6.
  30967. // https://github.com/chromium/chromium/blob/d7da0240cae77824d1eda25745c4022757499131/third_party/blink/renderer/platform/network/http_parsers.cc#L321
  30968. function isValidHTTPToken (characters) {
  30969. if (!characters || typeof characters !== 'string') {
  30970. return false
  30971. }
  30972. for (let i = 0; i < characters.length; ++i) {
  30973. const c = characters.charCodeAt(i)
  30974. if (c > 0x7f || !isTokenChar(c)) {
  30975. return false
  30976. }
  30977. }
  30978. return true
  30979. }
  30980. // https://fetch.spec.whatwg.org/#header-name
  30981. // https://github.com/chromium/chromium/blob/b3d37e6f94f87d59e44662d6078f6a12de845d17/net/http/http_util.cc#L342
  30982. function isValidHeaderName (potentialValue) {
  30983. if (potentialValue.length === 0) {
  30984. return false
  30985. }
  30986. return isValidHTTPToken(potentialValue)
  30987. }
  30988. /**
  30989. * @see https://fetch.spec.whatwg.org/#header-value
  30990. * @param {string} potentialValue
  30991. */
  30992. function isValidHeaderValue (potentialValue) {
  30993. // - Has no leading or trailing HTTP tab or space bytes.
  30994. // - Contains no 0x00 (NUL) or HTTP newline bytes.
  30995. if (
  30996. potentialValue.startsWith('\t') ||
  30997. potentialValue.startsWith(' ') ||
  30998. potentialValue.endsWith('\t') ||
  30999. potentialValue.endsWith(' ')
  31000. ) {
  31001. return false
  31002. }
  31003. if (
  31004. potentialValue.includes('\0') ||
  31005. potentialValue.includes('\r') ||
  31006. potentialValue.includes('\n')
  31007. ) {
  31008. return false
  31009. }
  31010. return true
  31011. }
  31012. // https://w3c.github.io/webappsec-referrer-policy/#set-requests-referrer-policy-on-redirect
  31013. function setRequestReferrerPolicyOnRedirect (request, actualResponse) {
  31014. // Given a request request and a response actualResponse, this algorithm
  31015. // updates request’s referrer policy according to the Referrer-Policy
  31016. // header (if any) in actualResponse.
  31017. // 1. Let policy be the result of executing § 8.1 Parse a referrer policy
  31018. // from a Referrer-Policy header on actualResponse.
  31019. // 8.1 Parse a referrer policy from a Referrer-Policy header
  31020. // 1. Let policy-tokens be the result of extracting header list values given `Referrer-Policy` and response’s header list.
  31021. const { headersList } = actualResponse
  31022. // 2. Let policy be the empty string.
  31023. // 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.
  31024. // 4. Return policy.
  31025. const policyHeader = (headersList.get('referrer-policy') ?? '').split(',')
  31026. // Note: As the referrer-policy can contain multiple policies
  31027. // separated by comma, we need to loop through all of them
  31028. // and pick the first valid one.
  31029. // Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#specify_a_fallback_policy
  31030. let policy = ''
  31031. if (policyHeader.length > 0) {
  31032. // The right-most policy takes precedence.
  31033. // The left-most policy is the fallback.
  31034. for (let i = policyHeader.length; i !== 0; i--) {
  31035. const token = policyHeader[i - 1].trim()
  31036. if (referrerPolicyTokens.includes(token)) {
  31037. policy = token
  31038. break
  31039. }
  31040. }
  31041. }
  31042. // 2. If policy is not the empty string, then set request’s referrer policy to policy.
  31043. if (policy !== '') {
  31044. request.referrerPolicy = policy
  31045. }
  31046. }
  31047. // https://fetch.spec.whatwg.org/#cross-origin-resource-policy-check
  31048. function crossOriginResourcePolicyCheck () {
  31049. // TODO
  31050. return 'allowed'
  31051. }
  31052. // https://fetch.spec.whatwg.org/#concept-cors-check
  31053. function corsCheck () {
  31054. // TODO
  31055. return 'success'
  31056. }
  31057. // https://fetch.spec.whatwg.org/#concept-tao-check
  31058. function TAOCheck () {
  31059. // TODO
  31060. return 'success'
  31061. }
  31062. function appendFetchMetadata (httpRequest) {
  31063. // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-dest-header
  31064. // TODO
  31065. // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-mode-header
  31066. // 1. Assert: r’s url is a potentially trustworthy URL.
  31067. // TODO
  31068. // 2. Let header be a Structured Header whose value is a token.
  31069. let header = null
  31070. // 3. Set header’s value to r’s mode.
  31071. header = httpRequest.mode
  31072. // 4. Set a structured field value `Sec-Fetch-Mode`/header in r’s header list.
  31073. httpRequest.headersList.set('sec-fetch-mode', header)
  31074. // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-site-header
  31075. // TODO
  31076. // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-user-header
  31077. // TODO
  31078. }
  31079. // https://fetch.spec.whatwg.org/#append-a-request-origin-header
  31080. function appendRequestOriginHeader (request) {
  31081. // 1. Let serializedOrigin be the result of byte-serializing a request origin with request.
  31082. let serializedOrigin = request.origin
  31083. // 2. If request’s response tainting is "cors" or request’s mode is "websocket", then append (`Origin`, serializedOrigin) to request’s header list.
  31084. if (request.responseTainting === 'cors' || request.mode === 'websocket') {
  31085. if (serializedOrigin) {
  31086. request.headersList.append('origin', serializedOrigin)
  31087. }
  31088. // 3. Otherwise, if request’s method is neither `GET` nor `HEAD`, then:
  31089. } else if (request.method !== 'GET' && request.method !== 'HEAD') {
  31090. // 1. Switch on request’s referrer policy:
  31091. switch (request.referrerPolicy) {
  31092. case 'no-referrer':
  31093. // Set serializedOrigin to `null`.
  31094. serializedOrigin = null
  31095. break
  31096. case 'no-referrer-when-downgrade':
  31097. case 'strict-origin':
  31098. case 'strict-origin-when-cross-origin':
  31099. // 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`.
  31100. if (request.origin && urlHasHttpsScheme(request.origin) && !urlHasHttpsScheme(requestCurrentURL(request))) {
  31101. serializedOrigin = null
  31102. }
  31103. break
  31104. case 'same-origin':
  31105. // If request’s origin is not same origin with request’s current URL’s origin, then set serializedOrigin to `null`.
  31106. if (!sameOrigin(request, requestCurrentURL(request))) {
  31107. serializedOrigin = null
  31108. }
  31109. break
  31110. default:
  31111. // Do nothing.
  31112. }
  31113. if (serializedOrigin) {
  31114. // 2. Append (`Origin`, serializedOrigin) to request’s header list.
  31115. request.headersList.append('origin', serializedOrigin)
  31116. }
  31117. }
  31118. }
  31119. function coarsenedSharedCurrentTime (crossOriginIsolatedCapability) {
  31120. // TODO
  31121. return performance.now()
  31122. }
  31123. // https://fetch.spec.whatwg.org/#create-an-opaque-timing-info
  31124. function createOpaqueTimingInfo (timingInfo) {
  31125. return {
  31126. startTime: timingInfo.startTime ?? 0,
  31127. redirectStartTime: 0,
  31128. redirectEndTime: 0,
  31129. postRedirectStartTime: timingInfo.startTime ?? 0,
  31130. finalServiceWorkerStartTime: 0,
  31131. finalNetworkResponseStartTime: 0,
  31132. finalNetworkRequestStartTime: 0,
  31133. endTime: 0,
  31134. encodedBodySize: 0,
  31135. decodedBodySize: 0,
  31136. finalConnectionTimingInfo: null
  31137. }
  31138. }
  31139. // https://html.spec.whatwg.org/multipage/origin.html#policy-container
  31140. function makePolicyContainer () {
  31141. // Note: the fetch spec doesn't make use of embedder policy or CSP list
  31142. return {
  31143. referrerPolicy: 'strict-origin-when-cross-origin'
  31144. }
  31145. }
  31146. // https://html.spec.whatwg.org/multipage/origin.html#clone-a-policy-container
  31147. function clonePolicyContainer (policyContainer) {
  31148. return {
  31149. referrerPolicy: policyContainer.referrerPolicy
  31150. }
  31151. }
  31152. // https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer
  31153. function determineRequestsReferrer (request) {
  31154. // 1. Let policy be request's referrer policy.
  31155. const policy = request.referrerPolicy
  31156. // Note: policy cannot (shouldn't) be null or an empty string.
  31157. assert(policy)
  31158. // 2. Let environment be request’s client.
  31159. let referrerSource = null
  31160. // 3. Switch on request’s referrer:
  31161. if (request.referrer === 'client') {
  31162. // Note: node isn't a browser and doesn't implement document/iframes,
  31163. // so we bypass this step and replace it with our own.
  31164. const globalOrigin = getGlobalOrigin()
  31165. if (!globalOrigin || globalOrigin.origin === 'null') {
  31166. return 'no-referrer'
  31167. }
  31168. // note: we need to clone it as it's mutated
  31169. referrerSource = new URL(globalOrigin)
  31170. } else if (request.referrer instanceof URL) {
  31171. // Let referrerSource be request’s referrer.
  31172. referrerSource = request.referrer
  31173. }
  31174. // 4. Let request’s referrerURL be the result of stripping referrerSource for
  31175. // use as a referrer.
  31176. let referrerURL = stripURLForReferrer(referrerSource)
  31177. // 5. Let referrerOrigin be the result of stripping referrerSource for use as
  31178. // a referrer, with the origin-only flag set to true.
  31179. const referrerOrigin = stripURLForReferrer(referrerSource, true)
  31180. // 6. If the result of serializing referrerURL is a string whose length is
  31181. // greater than 4096, set referrerURL to referrerOrigin.
  31182. if (referrerURL.toString().length > 4096) {
  31183. referrerURL = referrerOrigin
  31184. }
  31185. const areSameOrigin = sameOrigin(request, referrerURL)
  31186. const isNonPotentiallyTrustWorthy = isURLPotentiallyTrustworthy(referrerURL) &&
  31187. !isURLPotentiallyTrustworthy(request.url)
  31188. // 8. Execute the switch statements corresponding to the value of policy:
  31189. switch (policy) {
  31190. case 'origin': return referrerOrigin != null ? referrerOrigin : stripURLForReferrer(referrerSource, true)
  31191. case 'unsafe-url': return referrerURL
  31192. case 'same-origin':
  31193. return areSameOrigin ? referrerOrigin : 'no-referrer'
  31194. case 'origin-when-cross-origin':
  31195. return areSameOrigin ? referrerURL : referrerOrigin
  31196. case 'strict-origin-when-cross-origin': {
  31197. const currentURL = requestCurrentURL(request)
  31198. // 1. If the origin of referrerURL and the origin of request’s current
  31199. // URL are the same, then return referrerURL.
  31200. if (sameOrigin(referrerURL, currentURL)) {
  31201. return referrerURL
  31202. }
  31203. // 2. If referrerURL is a potentially trustworthy URL and request’s
  31204. // current URL is not a potentially trustworthy URL, then return no
  31205. // referrer.
  31206. if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) {
  31207. return 'no-referrer'
  31208. }
  31209. // 3. Return referrerOrigin.
  31210. return referrerOrigin
  31211. }
  31212. case 'strict-origin': // eslint-disable-line
  31213. /**
  31214. * 1. If referrerURL is a potentially trustworthy URL and
  31215. * request’s current URL is not a potentially trustworthy URL,
  31216. * then return no referrer.
  31217. * 2. Return referrerOrigin
  31218. */
  31219. case 'no-referrer-when-downgrade': // eslint-disable-line
  31220. /**
  31221. * 1. If referrerURL is a potentially trustworthy URL and
  31222. * request’s current URL is not a potentially trustworthy URL,
  31223. * then return no referrer.
  31224. * 2. Return referrerOrigin
  31225. */
  31226. default: // eslint-disable-line
  31227. return isNonPotentiallyTrustWorthy ? 'no-referrer' : referrerOrigin
  31228. }
  31229. }
  31230. /**
  31231. * @see https://w3c.github.io/webappsec-referrer-policy/#strip-url
  31232. * @param {URL} url
  31233. * @param {boolean|undefined} originOnly
  31234. */
  31235. function stripURLForReferrer (url, originOnly) {
  31236. // 1. Assert: url is a URL.
  31237. assert(url instanceof URL)
  31238. // 2. If url’s scheme is a local scheme, then return no referrer.
  31239. if (url.protocol === 'file:' || url.protocol === 'about:' || url.protocol === 'blank:') {
  31240. return 'no-referrer'
  31241. }
  31242. // 3. Set url’s username to the empty string.
  31243. url.username = ''
  31244. // 4. Set url’s password to the empty string.
  31245. url.password = ''
  31246. // 5. Set url’s fragment to null.
  31247. url.hash = ''
  31248. // 6. If the origin-only flag is true, then:
  31249. if (originOnly) {
  31250. // 1. Set url’s path to « the empty string ».
  31251. url.pathname = ''
  31252. // 2. Set url’s query to null.
  31253. url.search = ''
  31254. }
  31255. // 7. Return url.
  31256. return url
  31257. }
  31258. function isURLPotentiallyTrustworthy (url) {
  31259. if (!(url instanceof URL)) {
  31260. return false
  31261. }
  31262. // If child of about, return true
  31263. if (url.href === 'about:blank' || url.href === 'about:srcdoc') {
  31264. return true
  31265. }
  31266. // If scheme is data, return true
  31267. if (url.protocol === 'data:') return true
  31268. // If file, return true
  31269. if (url.protocol === 'file:') return true
  31270. return isOriginPotentiallyTrustworthy(url.origin)
  31271. function isOriginPotentiallyTrustworthy (origin) {
  31272. // If origin is explicitly null, return false
  31273. if (origin == null || origin === 'null') return false
  31274. const originAsURL = new URL(origin)
  31275. // If secure, return true
  31276. if (originAsURL.protocol === 'https:' || originAsURL.protocol === 'wss:') {
  31277. return true
  31278. }
  31279. // If localhost or variants, return true
  31280. if (/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(originAsURL.hostname) ||
  31281. (originAsURL.hostname === 'localhost' || originAsURL.hostname.includes('localhost.')) ||
  31282. (originAsURL.hostname.endsWith('.localhost'))) {
  31283. return true
  31284. }
  31285. // If any other, return false
  31286. return false
  31287. }
  31288. }
  31289. /**
  31290. * @see https://w3c.github.io/webappsec-subresource-integrity/#does-response-match-metadatalist
  31291. * @param {Uint8Array} bytes
  31292. * @param {string} metadataList
  31293. */
  31294. function bytesMatch (bytes, metadataList) {
  31295. // If node is not built with OpenSSL support, we cannot check
  31296. // a request's integrity, so allow it by default (the spec will
  31297. // allow requests if an invalid hash is given, as precedence).
  31298. /* istanbul ignore if: only if node is built with --without-ssl */
  31299. if (crypto === undefined) {
  31300. return true
  31301. }
  31302. // 1. Let parsedMetadata be the result of parsing metadataList.
  31303. const parsedMetadata = parseMetadata(metadataList)
  31304. // 2. If parsedMetadata is no metadata, return true.
  31305. if (parsedMetadata === 'no metadata') {
  31306. return true
  31307. }
  31308. // 3. If parsedMetadata is the empty set, return true.
  31309. if (parsedMetadata.length === 0) {
  31310. return true
  31311. }
  31312. // 4. Let metadata be the result of getting the strongest
  31313. // metadata from parsedMetadata.
  31314. const list = parsedMetadata.sort((c, d) => d.algo.localeCompare(c.algo))
  31315. // get the strongest algorithm
  31316. const strongest = list[0].algo
  31317. // get all entries that use the strongest algorithm; ignore weaker
  31318. const metadata = list.filter((item) => item.algo === strongest)
  31319. // 5. For each item in metadata:
  31320. for (const item of metadata) {
  31321. // 1. Let algorithm be the alg component of item.
  31322. const algorithm = item.algo
  31323. // 2. Let expectedValue be the val component of item.
  31324. let expectedValue = item.hash
  31325. // See https://github.com/web-platform-tests/wpt/commit/e4c5cc7a5e48093220528dfdd1c4012dc3837a0e
  31326. // "be liberal with padding". This is annoying, and it's not even in the spec.
  31327. if (expectedValue.endsWith('==')) {
  31328. expectedValue = expectedValue.slice(0, -2)
  31329. }
  31330. // 3. Let actualValue be the result of applying algorithm to bytes.
  31331. let actualValue = crypto.createHash(algorithm).update(bytes).digest('base64')
  31332. if (actualValue.endsWith('==')) {
  31333. actualValue = actualValue.slice(0, -2)
  31334. }
  31335. // 4. If actualValue is a case-sensitive match for expectedValue,
  31336. // return true.
  31337. if (actualValue === expectedValue) {
  31338. return true
  31339. }
  31340. let actualBase64URL = crypto.createHash(algorithm).update(bytes).digest('base64url')
  31341. if (actualBase64URL.endsWith('==')) {
  31342. actualBase64URL = actualBase64URL.slice(0, -2)
  31343. }
  31344. if (actualBase64URL === expectedValue) {
  31345. return true
  31346. }
  31347. }
  31348. // 6. Return false.
  31349. return false
  31350. }
  31351. // https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options
  31352. // https://www.w3.org/TR/CSP2/#source-list-syntax
  31353. // https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1
  31354. const parseHashWithOptions = /((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i
  31355. /**
  31356. * @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata
  31357. * @param {string} metadata
  31358. */
  31359. function parseMetadata (metadata) {
  31360. // 1. Let result be the empty set.
  31361. /** @type {{ algo: string, hash: string }[]} */
  31362. const result = []
  31363. // 2. Let empty be equal to true.
  31364. let empty = true
  31365. const supportedHashes = crypto.getHashes()
  31366. // 3. For each token returned by splitting metadata on spaces:
  31367. for (const token of metadata.split(' ')) {
  31368. // 1. Set empty to false.
  31369. empty = false
  31370. // 2. Parse token as a hash-with-options.
  31371. const parsedToken = parseHashWithOptions.exec(token)
  31372. // 3. If token does not parse, continue to the next token.
  31373. if (parsedToken === null || parsedToken.groups === undefined) {
  31374. // Note: Chromium blocks the request at this point, but Firefox
  31375. // gives a warning that an invalid integrity was given. The
  31376. // correct behavior is to ignore these, and subsequently not
  31377. // check the integrity of the resource.
  31378. continue
  31379. }
  31380. // 4. Let algorithm be the hash-algo component of token.
  31381. const algorithm = parsedToken.groups.algo
  31382. // 5. If algorithm is a hash function recognized by the user
  31383. // agent, add the parsed token to result.
  31384. if (supportedHashes.includes(algorithm.toLowerCase())) {
  31385. result.push(parsedToken.groups)
  31386. }
  31387. }
  31388. // 4. Return no metadata if empty is true, otherwise return result.
  31389. if (empty === true) {
  31390. return 'no metadata'
  31391. }
  31392. return result
  31393. }
  31394. // https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request
  31395. function tryUpgradeRequestToAPotentiallyTrustworthyURL (request) {
  31396. // TODO
  31397. }
  31398. /**
  31399. * @link {https://html.spec.whatwg.org/multipage/origin.html#same-origin}
  31400. * @param {URL} A
  31401. * @param {URL} B
  31402. */
  31403. function sameOrigin (A, B) {
  31404. // 1. If A and B are the same opaque origin, then return true.
  31405. if (A.origin === B.origin && A.origin === 'null') {
  31406. return true
  31407. }
  31408. // 2. If A and B are both tuple origins and their schemes,
  31409. // hosts, and port are identical, then return true.
  31410. if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {
  31411. return true
  31412. }
  31413. // 3. Return false.
  31414. return false
  31415. }
  31416. function createDeferredPromise () {
  31417. let res
  31418. let rej
  31419. const promise = new Promise((resolve, reject) => {
  31420. res = resolve
  31421. rej = reject
  31422. })
  31423. return { promise, resolve: res, reject: rej }
  31424. }
  31425. function isAborted (fetchParams) {
  31426. return fetchParams.controller.state === 'aborted'
  31427. }
  31428. function isCancelled (fetchParams) {
  31429. return fetchParams.controller.state === 'aborted' ||
  31430. fetchParams.controller.state === 'terminated'
  31431. }
  31432. // https://fetch.spec.whatwg.org/#concept-method-normalize
  31433. function normalizeMethod (method) {
  31434. return /^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(method)
  31435. ? method.toUpperCase()
  31436. : method
  31437. }
  31438. // https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-a-json-string
  31439. function serializeJavascriptValueToJSONString (value) {
  31440. // 1. Let result be ? Call(%JSON.stringify%, undefined, « value »).
  31441. const result = JSON.stringify(value)
  31442. // 2. If result is undefined, then throw a TypeError.
  31443. if (result === undefined) {
  31444. throw new TypeError('Value is not JSON serializable')
  31445. }
  31446. // 3. Assert: result is a string.
  31447. assert(typeof result === 'string')
  31448. // 4. Return result.
  31449. return result
  31450. }
  31451. // https://tc39.es/ecma262/#sec-%25iteratorprototype%25-object
  31452. const esIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))
  31453. /**
  31454. * @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object
  31455. * @param {() => unknown[]} iterator
  31456. * @param {string} name name of the instance
  31457. * @param {'key'|'value'|'key+value'} kind
  31458. */
  31459. function makeIterator (iterator, name, kind) {
  31460. const object = {
  31461. index: 0,
  31462. kind,
  31463. target: iterator
  31464. }
  31465. const i = {
  31466. next () {
  31467. // 1. Let interface be the interface for which the iterator prototype object exists.
  31468. // 2. Let thisValue be the this value.
  31469. // 3. Let object be ? ToObject(thisValue).
  31470. // 4. If object is a platform object, then perform a security
  31471. // check, passing:
  31472. // 5. If object is not a default iterator object for interface,
  31473. // then throw a TypeError.
  31474. if (Object.getPrototypeOf(this) !== i) {
  31475. throw new TypeError(
  31476. `'next' called on an object that does not implement interface ${name} Iterator.`
  31477. )
  31478. }
  31479. // 6. Let index be object’s index.
  31480. // 7. Let kind be object’s kind.
  31481. // 8. Let values be object’s target's value pairs to iterate over.
  31482. const { index, kind, target } = object
  31483. const values = target()
  31484. // 9. Let len be the length of values.
  31485. const len = values.length
  31486. // 10. If index is greater than or equal to len, then return
  31487. // CreateIterResultObject(undefined, true).
  31488. if (index >= len) {
  31489. return { value: undefined, done: true }
  31490. }
  31491. // 11. Let pair be the entry in values at index index.
  31492. const pair = values[index]
  31493. // 12. Set object’s index to index + 1.
  31494. object.index = index + 1
  31495. // 13. Return the iterator result for pair and kind.
  31496. return iteratorResult(pair, kind)
  31497. },
  31498. // The class string of an iterator prototype object for a given interface is the
  31499. // result of concatenating the identifier of the interface and the string " Iterator".
  31500. [Symbol.toStringTag]: `${name} Iterator`
  31501. }
  31502. // The [[Prototype]] internal slot of an iterator prototype object must be %IteratorPrototype%.
  31503. Object.setPrototypeOf(i, esIteratorPrototype)
  31504. // esIteratorPrototype needs to be the prototype of i
  31505. // which is the prototype of an empty object. Yes, it's confusing.
  31506. return Object.setPrototypeOf({}, i)
  31507. }
  31508. // https://webidl.spec.whatwg.org/#iterator-result
  31509. function iteratorResult (pair, kind) {
  31510. let result
  31511. // 1. Let result be a value determined by the value of kind:
  31512. switch (kind) {
  31513. case 'key': {
  31514. // 1. Let idlKey be pair’s key.
  31515. // 2. Let key be the result of converting idlKey to an
  31516. // ECMAScript value.
  31517. // 3. result is key.
  31518. result = pair[0]
  31519. break
  31520. }
  31521. case 'value': {
  31522. // 1. Let idlValue be pair’s value.
  31523. // 2. Let value be the result of converting idlValue to
  31524. // an ECMAScript value.
  31525. // 3. result is value.
  31526. result = pair[1]
  31527. break
  31528. }
  31529. case 'key+value': {
  31530. // 1. Let idlKey be pair’s key.
  31531. // 2. Let idlValue be pair’s value.
  31532. // 3. Let key be the result of converting idlKey to an
  31533. // ECMAScript value.
  31534. // 4. Let value be the result of converting idlValue to
  31535. // an ECMAScript value.
  31536. // 5. Let array be ! ArrayCreate(2).
  31537. // 6. Call ! CreateDataProperty(array, "0", key).
  31538. // 7. Call ! CreateDataProperty(array, "1", value).
  31539. // 8. result is array.
  31540. result = pair
  31541. break
  31542. }
  31543. }
  31544. // 2. Return CreateIterResultObject(result, false).
  31545. return { value: result, done: false }
  31546. }
  31547. /**
  31548. * @see https://fetch.spec.whatwg.org/#body-fully-read
  31549. */
  31550. async function fullyReadBody (body, processBody, processBodyError) {
  31551. // 1. If taskDestination is null, then set taskDestination to
  31552. // the result of starting a new parallel queue.
  31553. // 2. Let successSteps given a byte sequence bytes be to queue a
  31554. // fetch task to run processBody given bytes, with taskDestination.
  31555. const successSteps = processBody
  31556. // 3. Let errorSteps be to queue a fetch task to run processBodyError,
  31557. // with taskDestination.
  31558. const errorSteps = processBodyError
  31559. // 4. Let reader be the result of getting a reader for body’s stream.
  31560. // If that threw an exception, then run errorSteps with that
  31561. // exception and return.
  31562. let reader
  31563. try {
  31564. reader = body.stream.getReader()
  31565. } catch (e) {
  31566. errorSteps(e)
  31567. return
  31568. }
  31569. // 5. Read all bytes from reader, given successSteps and errorSteps.
  31570. try {
  31571. const result = await readAllBytes(reader)
  31572. successSteps(result)
  31573. } catch (e) {
  31574. errorSteps(e)
  31575. }
  31576. }
  31577. /** @type {ReadableStream} */
  31578. let ReadableStream = globalThis.ReadableStream
  31579. function isReadableStreamLike (stream) {
  31580. if (!ReadableStream) {
  31581. ReadableStream = (__nccwpck_require__(5356).ReadableStream)
  31582. }
  31583. return stream instanceof ReadableStream || (
  31584. stream[Symbol.toStringTag] === 'ReadableStream' &&
  31585. typeof stream.tee === 'function'
  31586. )
  31587. }
  31588. const MAXIMUM_ARGUMENT_LENGTH = 65535
  31589. /**
  31590. * @see https://infra.spec.whatwg.org/#isomorphic-decode
  31591. * @param {number[]|Uint8Array} input
  31592. */
  31593. function isomorphicDecode (input) {
  31594. // 1. To isomorphic decode a byte sequence input, return a string whose code point
  31595. // length is equal to input’s length and whose code points have the same values
  31596. // as the values of input’s bytes, in the same order.
  31597. if (input.length < MAXIMUM_ARGUMENT_LENGTH) {
  31598. return String.fromCharCode(...input)
  31599. }
  31600. return input.reduce((previous, current) => previous + String.fromCharCode(current), '')
  31601. }
  31602. /**
  31603. * @param {ReadableStreamController<Uint8Array>} controller
  31604. */
  31605. function readableStreamClose (controller) {
  31606. try {
  31607. controller.close()
  31608. } catch (err) {
  31609. // TODO: add comment explaining why this error occurs.
  31610. if (!err.message.includes('Controller is already closed')) {
  31611. throw err
  31612. }
  31613. }
  31614. }
  31615. /**
  31616. * @see https://infra.spec.whatwg.org/#isomorphic-encode
  31617. * @param {string} input
  31618. */
  31619. function isomorphicEncode (input) {
  31620. // 1. Assert: input contains no code points greater than U+00FF.
  31621. for (let i = 0; i < input.length; i++) {
  31622. assert(input.charCodeAt(i) <= 0xFF)
  31623. }
  31624. // 2. Return a byte sequence whose length is equal to input’s code
  31625. // point length and whose bytes have the same values as the
  31626. // values of input’s code points, in the same order
  31627. return input
  31628. }
  31629. /**
  31630. * @see https://streams.spec.whatwg.org/#readablestreamdefaultreader-read-all-bytes
  31631. * @see https://streams.spec.whatwg.org/#read-loop
  31632. * @param {ReadableStreamDefaultReader} reader
  31633. */
  31634. async function readAllBytes (reader) {
  31635. const bytes = []
  31636. let byteLength = 0
  31637. while (true) {
  31638. const { done, value: chunk } = await reader.read()
  31639. if (done) {
  31640. // 1. Call successSteps with bytes.
  31641. return Buffer.concat(bytes, byteLength)
  31642. }
  31643. // 1. If chunk is not a Uint8Array object, call failureSteps
  31644. // with a TypeError and abort these steps.
  31645. if (!isUint8Array(chunk)) {
  31646. throw new TypeError('Received non-Uint8Array chunk')
  31647. }
  31648. // 2. Append the bytes represented by chunk to bytes.
  31649. bytes.push(chunk)
  31650. byteLength += chunk.length
  31651. // 3. Read-loop given reader, bytes, successSteps, and failureSteps.
  31652. }
  31653. }
  31654. /**
  31655. * @see https://fetch.spec.whatwg.org/#is-local
  31656. * @param {URL} url
  31657. */
  31658. function urlIsLocal (url) {
  31659. assert('protocol' in url) // ensure it's a url object
  31660. const protocol = url.protocol
  31661. return protocol === 'about:' || protocol === 'blob:' || protocol === 'data:'
  31662. }
  31663. /**
  31664. * @param {string|URL} url
  31665. */
  31666. function urlHasHttpsScheme (url) {
  31667. if (typeof url === 'string') {
  31668. return url.startsWith('https:')
  31669. }
  31670. return url.protocol === 'https:'
  31671. }
  31672. /**
  31673. * @see https://fetch.spec.whatwg.org/#http-scheme
  31674. * @param {URL} url
  31675. */
  31676. function urlIsHttpHttpsScheme (url) {
  31677. assert('protocol' in url) // ensure it's a url object
  31678. const protocol = url.protocol
  31679. return protocol === 'http:' || protocol === 'https:'
  31680. }
  31681. /**
  31682. * Fetch supports node >= 16.8.0, but Object.hasOwn was added in v16.9.0.
  31683. */
  31684. const hasOwn = Object.hasOwn || ((dict, key) => Object.prototype.hasOwnProperty.call(dict, key))
  31685. module.exports = {
  31686. isAborted,
  31687. isCancelled,
  31688. createDeferredPromise,
  31689. ReadableStreamFrom,
  31690. toUSVString,
  31691. tryUpgradeRequestToAPotentiallyTrustworthyURL,
  31692. coarsenedSharedCurrentTime,
  31693. determineRequestsReferrer,
  31694. makePolicyContainer,
  31695. clonePolicyContainer,
  31696. appendFetchMetadata,
  31697. appendRequestOriginHeader,
  31698. TAOCheck,
  31699. corsCheck,
  31700. crossOriginResourcePolicyCheck,
  31701. createOpaqueTimingInfo,
  31702. setRequestReferrerPolicyOnRedirect,
  31703. isValidHTTPToken,
  31704. requestBadPort,
  31705. requestCurrentURL,
  31706. responseURL,
  31707. responseLocationURL,
  31708. isBlobLike,
  31709. isURLPotentiallyTrustworthy,
  31710. isValidReasonPhrase,
  31711. sameOrigin,
  31712. normalizeMethod,
  31713. serializeJavascriptValueToJSONString,
  31714. makeIterator,
  31715. isValidHeaderName,
  31716. isValidHeaderValue,
  31717. hasOwn,
  31718. isErrorLike,
  31719. fullyReadBody,
  31720. bytesMatch,
  31721. isReadableStreamLike,
  31722. readableStreamClose,
  31723. isomorphicEncode,
  31724. isomorphicDecode,
  31725. urlIsLocal,
  31726. urlHasHttpsScheme,
  31727. urlIsHttpHttpsScheme,
  31728. readAllBytes
  31729. }
  31730. /***/ }),
  31731. /***/ 1744:
  31732. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31733. "use strict";
  31734. const { types } = __nccwpck_require__(3837)
  31735. const { hasOwn, toUSVString } = __nccwpck_require__(2538)
  31736. /** @type {import('../../types/webidl').Webidl} */
  31737. const webidl = {}
  31738. webidl.converters = {}
  31739. webidl.util = {}
  31740. webidl.errors = {}
  31741. webidl.errors.exception = function (message) {
  31742. return new TypeError(`${message.header}: ${message.message}`)
  31743. }
  31744. webidl.errors.conversionFailed = function (context) {
  31745. const plural = context.types.length === 1 ? '' : ' one of'
  31746. const message =
  31747. `${context.argument} could not be converted to` +
  31748. `${plural}: ${context.types.join(', ')}.`
  31749. return webidl.errors.exception({
  31750. header: context.prefix,
  31751. message
  31752. })
  31753. }
  31754. webidl.errors.invalidArgument = function (context) {
  31755. return webidl.errors.exception({
  31756. header: context.prefix,
  31757. message: `"${context.value}" is an invalid ${context.type}.`
  31758. })
  31759. }
  31760. // https://webidl.spec.whatwg.org/#implements
  31761. webidl.brandCheck = function (V, I, opts = undefined) {
  31762. if (opts?.strict !== false && !(V instanceof I)) {
  31763. throw new TypeError('Illegal invocation')
  31764. } else {
  31765. return V?.[Symbol.toStringTag] === I.prototype[Symbol.toStringTag]
  31766. }
  31767. }
  31768. webidl.argumentLengthCheck = function ({ length }, min, ctx) {
  31769. if (length < min) {
  31770. throw webidl.errors.exception({
  31771. message: `${min} argument${min !== 1 ? 's' : ''} required, ` +
  31772. `but${length ? ' only' : ''} ${length} found.`,
  31773. ...ctx
  31774. })
  31775. }
  31776. }
  31777. webidl.illegalConstructor = function () {
  31778. throw webidl.errors.exception({
  31779. header: 'TypeError',
  31780. message: 'Illegal constructor'
  31781. })
  31782. }
  31783. // https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
  31784. webidl.util.Type = function (V) {
  31785. switch (typeof V) {
  31786. case 'undefined': return 'Undefined'
  31787. case 'boolean': return 'Boolean'
  31788. case 'string': return 'String'
  31789. case 'symbol': return 'Symbol'
  31790. case 'number': return 'Number'
  31791. case 'bigint': return 'BigInt'
  31792. case 'function':
  31793. case 'object': {
  31794. if (V === null) {
  31795. return 'Null'
  31796. }
  31797. return 'Object'
  31798. }
  31799. }
  31800. }
  31801. // https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
  31802. webidl.util.ConvertToInt = function (V, bitLength, signedness, opts = {}) {
  31803. let upperBound
  31804. let lowerBound
  31805. // 1. If bitLength is 64, then:
  31806. if (bitLength === 64) {
  31807. // 1. Let upperBound be 2^53 − 1.
  31808. upperBound = Math.pow(2, 53) - 1
  31809. // 2. If signedness is "unsigned", then let lowerBound be 0.
  31810. if (signedness === 'unsigned') {
  31811. lowerBound = 0
  31812. } else {
  31813. // 3. Otherwise let lowerBound be −2^53 + 1.
  31814. lowerBound = Math.pow(-2, 53) + 1
  31815. }
  31816. } else if (signedness === 'unsigned') {
  31817. // 2. Otherwise, if signedness is "unsigned", then:
  31818. // 1. Let lowerBound be 0.
  31819. lowerBound = 0
  31820. // 2. Let upperBound be 2^bitLength − 1.
  31821. upperBound = Math.pow(2, bitLength) - 1
  31822. } else {
  31823. // 3. Otherwise:
  31824. // 1. Let lowerBound be -2^bitLength − 1.
  31825. lowerBound = Math.pow(-2, bitLength) - 1
  31826. // 2. Let upperBound be 2^bitLength − 1 − 1.
  31827. upperBound = Math.pow(2, bitLength - 1) - 1
  31828. }
  31829. // 4. Let x be ? ToNumber(V).
  31830. let x = Number(V)
  31831. // 5. If x is −0, then set x to +0.
  31832. if (x === 0) {
  31833. x = 0
  31834. }
  31835. // 6. If the conversion is to an IDL type associated
  31836. // with the [EnforceRange] extended attribute, then:
  31837. if (opts.enforceRange === true) {
  31838. // 1. If x is NaN, +∞, or −∞, then throw a TypeError.
  31839. if (
  31840. Number.isNaN(x) ||
  31841. x === Number.POSITIVE_INFINITY ||
  31842. x === Number.NEGATIVE_INFINITY
  31843. ) {
  31844. throw webidl.errors.exception({
  31845. header: 'Integer conversion',
  31846. message: `Could not convert ${V} to an integer.`
  31847. })
  31848. }
  31849. // 2. Set x to IntegerPart(x).
  31850. x = webidl.util.IntegerPart(x)
  31851. // 3. If x < lowerBound or x > upperBound, then
  31852. // throw a TypeError.
  31853. if (x < lowerBound || x > upperBound) {
  31854. throw webidl.errors.exception({
  31855. header: 'Integer conversion',
  31856. message: `Value must be between ${lowerBound}-${upperBound}, got ${x}.`
  31857. })
  31858. }
  31859. // 4. Return x.
  31860. return x
  31861. }
  31862. // 7. If x is not NaN and the conversion is to an IDL
  31863. // type associated with the [Clamp] extended
  31864. // attribute, then:
  31865. if (!Number.isNaN(x) && opts.clamp === true) {
  31866. // 1. Set x to min(max(x, lowerBound), upperBound).
  31867. x = Math.min(Math.max(x, lowerBound), upperBound)
  31868. // 2. Round x to the nearest integer, choosing the
  31869. // even integer if it lies halfway between two,
  31870. // and choosing +0 rather than −0.
  31871. if (Math.floor(x) % 2 === 0) {
  31872. x = Math.floor(x)
  31873. } else {
  31874. x = Math.ceil(x)
  31875. }
  31876. // 3. Return x.
  31877. return x
  31878. }
  31879. // 8. If x is NaN, +0, +∞, or −∞, then return +0.
  31880. if (
  31881. Number.isNaN(x) ||
  31882. (x === 0 && Object.is(0, x)) ||
  31883. x === Number.POSITIVE_INFINITY ||
  31884. x === Number.NEGATIVE_INFINITY
  31885. ) {
  31886. return 0
  31887. }
  31888. // 9. Set x to IntegerPart(x).
  31889. x = webidl.util.IntegerPart(x)
  31890. // 10. Set x to x modulo 2^bitLength.
  31891. x = x % Math.pow(2, bitLength)
  31892. // 11. If signedness is "signed" and x ≥ 2^bitLength − 1,
  31893. // then return x − 2^bitLength.
  31894. if (signedness === 'signed' && x >= Math.pow(2, bitLength) - 1) {
  31895. return x - Math.pow(2, bitLength)
  31896. }
  31897. // 12. Otherwise, return x.
  31898. return x
  31899. }
  31900. // https://webidl.spec.whatwg.org/#abstract-opdef-integerpart
  31901. webidl.util.IntegerPart = function (n) {
  31902. // 1. Let r be floor(abs(n)).
  31903. const r = Math.floor(Math.abs(n))
  31904. // 2. If n < 0, then return -1 × r.
  31905. if (n < 0) {
  31906. return -1 * r
  31907. }
  31908. // 3. Otherwise, return r.
  31909. return r
  31910. }
  31911. // https://webidl.spec.whatwg.org/#es-sequence
  31912. webidl.sequenceConverter = function (converter) {
  31913. return (V) => {
  31914. // 1. If Type(V) is not Object, throw a TypeError.
  31915. if (webidl.util.Type(V) !== 'Object') {
  31916. throw webidl.errors.exception({
  31917. header: 'Sequence',
  31918. message: `Value of type ${webidl.util.Type(V)} is not an Object.`
  31919. })
  31920. }
  31921. // 2. Let method be ? GetMethod(V, @@iterator).
  31922. /** @type {Generator} */
  31923. const method = V?.[Symbol.iterator]?.()
  31924. const seq = []
  31925. // 3. If method is undefined, throw a TypeError.
  31926. if (
  31927. method === undefined ||
  31928. typeof method.next !== 'function'
  31929. ) {
  31930. throw webidl.errors.exception({
  31931. header: 'Sequence',
  31932. message: 'Object is not an iterator.'
  31933. })
  31934. }
  31935. // https://webidl.spec.whatwg.org/#create-sequence-from-iterable
  31936. while (true) {
  31937. const { done, value } = method.next()
  31938. if (done) {
  31939. break
  31940. }
  31941. seq.push(converter(value))
  31942. }
  31943. return seq
  31944. }
  31945. }
  31946. // https://webidl.spec.whatwg.org/#es-to-record
  31947. webidl.recordConverter = function (keyConverter, valueConverter) {
  31948. return (O) => {
  31949. // 1. If Type(O) is not Object, throw a TypeError.
  31950. if (webidl.util.Type(O) !== 'Object') {
  31951. throw webidl.errors.exception({
  31952. header: 'Record',
  31953. message: `Value of type ${webidl.util.Type(O)} is not an Object.`
  31954. })
  31955. }
  31956. // 2. Let result be a new empty instance of record<K, V>.
  31957. const result = {}
  31958. if (!types.isProxy(O)) {
  31959. // Object.keys only returns enumerable properties
  31960. const keys = Object.keys(O)
  31961. for (const key of keys) {
  31962. // 1. Let typedKey be key converted to an IDL value of type K.
  31963. const typedKey = keyConverter(key)
  31964. // 2. Let value be ? Get(O, key).
  31965. // 3. Let typedValue be value converted to an IDL value of type V.
  31966. const typedValue = valueConverter(O[key])
  31967. // 4. Set result[typedKey] to typedValue.
  31968. result[typedKey] = typedValue
  31969. }
  31970. // 5. Return result.
  31971. return result
  31972. }
  31973. // 3. Let keys be ? O.[[OwnPropertyKeys]]().
  31974. const keys = Reflect.ownKeys(O)
  31975. // 4. For each key of keys.
  31976. for (const key of keys) {
  31977. // 1. Let desc be ? O.[[GetOwnProperty]](key).
  31978. const desc = Reflect.getOwnPropertyDescriptor(O, key)
  31979. // 2. If desc is not undefined and desc.[[Enumerable]] is true:
  31980. if (desc?.enumerable) {
  31981. // 1. Let typedKey be key converted to an IDL value of type K.
  31982. const typedKey = keyConverter(key)
  31983. // 2. Let value be ? Get(O, key).
  31984. // 3. Let typedValue be value converted to an IDL value of type V.
  31985. const typedValue = valueConverter(O[key])
  31986. // 4. Set result[typedKey] to typedValue.
  31987. result[typedKey] = typedValue
  31988. }
  31989. }
  31990. // 5. Return result.
  31991. return result
  31992. }
  31993. }
  31994. webidl.interfaceConverter = function (i) {
  31995. return (V, opts = {}) => {
  31996. if (opts.strict !== false && !(V instanceof i)) {
  31997. throw webidl.errors.exception({
  31998. header: i.name,
  31999. message: `Expected ${V} to be an instance of ${i.name}.`
  32000. })
  32001. }
  32002. return V
  32003. }
  32004. }
  32005. webidl.dictionaryConverter = function (converters) {
  32006. return (dictionary) => {
  32007. const type = webidl.util.Type(dictionary)
  32008. const dict = {}
  32009. if (type === 'Null' || type === 'Undefined') {
  32010. return dict
  32011. } else if (type !== 'Object') {
  32012. throw webidl.errors.exception({
  32013. header: 'Dictionary',
  32014. message: `Expected ${dictionary} to be one of: Null, Undefined, Object.`
  32015. })
  32016. }
  32017. for (const options of converters) {
  32018. const { key, defaultValue, required, converter } = options
  32019. if (required === true) {
  32020. if (!hasOwn(dictionary, key)) {
  32021. throw webidl.errors.exception({
  32022. header: 'Dictionary',
  32023. message: `Missing required key "${key}".`
  32024. })
  32025. }
  32026. }
  32027. let value = dictionary[key]
  32028. const hasDefault = hasOwn(options, 'defaultValue')
  32029. // Only use defaultValue if value is undefined and
  32030. // a defaultValue options was provided.
  32031. if (hasDefault && value !== null) {
  32032. value = value ?? defaultValue
  32033. }
  32034. // A key can be optional and have no default value.
  32035. // When this happens, do not perform a conversion,
  32036. // and do not assign the key a value.
  32037. if (required || hasDefault || value !== undefined) {
  32038. value = converter(value)
  32039. if (
  32040. options.allowedValues &&
  32041. !options.allowedValues.includes(value)
  32042. ) {
  32043. throw webidl.errors.exception({
  32044. header: 'Dictionary',
  32045. message: `${value} is not an accepted type. Expected one of ${options.allowedValues.join(', ')}.`
  32046. })
  32047. }
  32048. dict[key] = value
  32049. }
  32050. }
  32051. return dict
  32052. }
  32053. }
  32054. webidl.nullableConverter = function (converter) {
  32055. return (V) => {
  32056. if (V === null) {
  32057. return V
  32058. }
  32059. return converter(V)
  32060. }
  32061. }
  32062. // https://webidl.spec.whatwg.org/#es-DOMString
  32063. webidl.converters.DOMString = function (V, opts = {}) {
  32064. // 1. If V is null and the conversion is to an IDL type
  32065. // associated with the [LegacyNullToEmptyString]
  32066. // extended attribute, then return the DOMString value
  32067. // that represents the empty string.
  32068. if (V === null && opts.legacyNullToEmptyString) {
  32069. return ''
  32070. }
  32071. // 2. Let x be ? ToString(V).
  32072. if (typeof V === 'symbol') {
  32073. throw new TypeError('Could not convert argument of type symbol to string.')
  32074. }
  32075. // 3. Return the IDL DOMString value that represents the
  32076. // same sequence of code units as the one the
  32077. // ECMAScript String value x represents.
  32078. return String(V)
  32079. }
  32080. // https://webidl.spec.whatwg.org/#es-ByteString
  32081. webidl.converters.ByteString = function (V) {
  32082. // 1. Let x be ? ToString(V).
  32083. // Note: DOMString converter perform ? ToString(V)
  32084. const x = webidl.converters.DOMString(V)
  32085. // 2. If the value of any element of x is greater than
  32086. // 255, then throw a TypeError.
  32087. for (let index = 0; index < x.length; index++) {
  32088. const charCode = x.charCodeAt(index)
  32089. if (charCode > 255) {
  32090. throw new TypeError(
  32091. 'Cannot convert argument to a ByteString because the character at ' +
  32092. `index ${index} has a value of ${charCode} which is greater than 255.`
  32093. )
  32094. }
  32095. }
  32096. // 3. Return an IDL ByteString value whose length is the
  32097. // length of x, and where the value of each element is
  32098. // the value of the corresponding element of x.
  32099. return x
  32100. }
  32101. // https://webidl.spec.whatwg.org/#es-USVString
  32102. webidl.converters.USVString = toUSVString
  32103. // https://webidl.spec.whatwg.org/#es-boolean
  32104. webidl.converters.boolean = function (V) {
  32105. // 1. Let x be the result of computing ToBoolean(V).
  32106. const x = Boolean(V)
  32107. // 2. Return the IDL boolean value that is the one that represents
  32108. // the same truth value as the ECMAScript Boolean value x.
  32109. return x
  32110. }
  32111. // https://webidl.spec.whatwg.org/#es-any
  32112. webidl.converters.any = function (V) {
  32113. return V
  32114. }
  32115. // https://webidl.spec.whatwg.org/#es-long-long
  32116. webidl.converters['long long'] = function (V) {
  32117. // 1. Let x be ? ConvertToInt(V, 64, "signed").
  32118. const x = webidl.util.ConvertToInt(V, 64, 'signed')
  32119. // 2. Return the IDL long long value that represents
  32120. // the same numeric value as x.
  32121. return x
  32122. }
  32123. // https://webidl.spec.whatwg.org/#es-unsigned-long-long
  32124. webidl.converters['unsigned long long'] = function (V) {
  32125. // 1. Let x be ? ConvertToInt(V, 64, "unsigned").
  32126. const x = webidl.util.ConvertToInt(V, 64, 'unsigned')
  32127. // 2. Return the IDL unsigned long long value that
  32128. // represents the same numeric value as x.
  32129. return x
  32130. }
  32131. // https://webidl.spec.whatwg.org/#es-unsigned-long
  32132. webidl.converters['unsigned long'] = function (V) {
  32133. // 1. Let x be ? ConvertToInt(V, 32, "unsigned").
  32134. const x = webidl.util.ConvertToInt(V, 32, 'unsigned')
  32135. // 2. Return the IDL unsigned long value that
  32136. // represents the same numeric value as x.
  32137. return x
  32138. }
  32139. // https://webidl.spec.whatwg.org/#es-unsigned-short
  32140. webidl.converters['unsigned short'] = function (V, opts) {
  32141. // 1. Let x be ? ConvertToInt(V, 16, "unsigned").
  32142. const x = webidl.util.ConvertToInt(V, 16, 'unsigned', opts)
  32143. // 2. Return the IDL unsigned short value that represents
  32144. // the same numeric value as x.
  32145. return x
  32146. }
  32147. // https://webidl.spec.whatwg.org/#idl-ArrayBuffer
  32148. webidl.converters.ArrayBuffer = function (V, opts = {}) {
  32149. // 1. If Type(V) is not Object, or V does not have an
  32150. // [[ArrayBufferData]] internal slot, then throw a
  32151. // TypeError.
  32152. // see: https://tc39.es/ecma262/#sec-properties-of-the-arraybuffer-instances
  32153. // see: https://tc39.es/ecma262/#sec-properties-of-the-sharedarraybuffer-instances
  32154. if (
  32155. webidl.util.Type(V) !== 'Object' ||
  32156. !types.isAnyArrayBuffer(V)
  32157. ) {
  32158. throw webidl.errors.conversionFailed({
  32159. prefix: `${V}`,
  32160. argument: `${V}`,
  32161. types: ['ArrayBuffer']
  32162. })
  32163. }
  32164. // 2. If the conversion is not to an IDL type associated
  32165. // with the [AllowShared] extended attribute, and
  32166. // IsSharedArrayBuffer(V) is true, then throw a
  32167. // TypeError.
  32168. if (opts.allowShared === false && types.isSharedArrayBuffer(V)) {
  32169. throw webidl.errors.exception({
  32170. header: 'ArrayBuffer',
  32171. message: 'SharedArrayBuffer is not allowed.'
  32172. })
  32173. }
  32174. // 3. If the conversion is not to an IDL type associated
  32175. // with the [AllowResizable] extended attribute, and
  32176. // IsResizableArrayBuffer(V) is true, then throw a
  32177. // TypeError.
  32178. // Note: resizable ArrayBuffers are currently a proposal.
  32179. // 4. Return the IDL ArrayBuffer value that is a
  32180. // reference to the same object as V.
  32181. return V
  32182. }
  32183. webidl.converters.TypedArray = function (V, T, opts = {}) {
  32184. // 1. Let T be the IDL type V is being converted to.
  32185. // 2. If Type(V) is not Object, or V does not have a
  32186. // [[TypedArrayName]] internal slot with a value
  32187. // equal to T’s name, then throw a TypeError.
  32188. if (
  32189. webidl.util.Type(V) !== 'Object' ||
  32190. !types.isTypedArray(V) ||
  32191. V.constructor.name !== T.name
  32192. ) {
  32193. throw webidl.errors.conversionFailed({
  32194. prefix: `${T.name}`,
  32195. argument: `${V}`,
  32196. types: [T.name]
  32197. })
  32198. }
  32199. // 3. If the conversion is not to an IDL type associated
  32200. // with the [AllowShared] extended attribute, and
  32201. // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is
  32202. // true, then throw a TypeError.
  32203. if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {
  32204. throw webidl.errors.exception({
  32205. header: 'ArrayBuffer',
  32206. message: 'SharedArrayBuffer is not allowed.'
  32207. })
  32208. }
  32209. // 4. If the conversion is not to an IDL type associated
  32210. // with the [AllowResizable] extended attribute, and
  32211. // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is
  32212. // true, then throw a TypeError.
  32213. // Note: resizable array buffers are currently a proposal
  32214. // 5. Return the IDL value of type T that is a reference
  32215. // to the same object as V.
  32216. return V
  32217. }
  32218. webidl.converters.DataView = function (V, opts = {}) {
  32219. // 1. If Type(V) is not Object, or V does not have a
  32220. // [[DataView]] internal slot, then throw a TypeError.
  32221. if (webidl.util.Type(V) !== 'Object' || !types.isDataView(V)) {
  32222. throw webidl.errors.exception({
  32223. header: 'DataView',
  32224. message: 'Object is not a DataView.'
  32225. })
  32226. }
  32227. // 2. If the conversion is not to an IDL type associated
  32228. // with the [AllowShared] extended attribute, and
  32229. // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is true,
  32230. // then throw a TypeError.
  32231. if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {
  32232. throw webidl.errors.exception({
  32233. header: 'ArrayBuffer',
  32234. message: 'SharedArrayBuffer is not allowed.'
  32235. })
  32236. }
  32237. // 3. If the conversion is not to an IDL type associated
  32238. // with the [AllowResizable] extended attribute, and
  32239. // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is
  32240. // true, then throw a TypeError.
  32241. // Note: resizable ArrayBuffers are currently a proposal
  32242. // 4. Return the IDL DataView value that is a reference
  32243. // to the same object as V.
  32244. return V
  32245. }
  32246. // https://webidl.spec.whatwg.org/#BufferSource
  32247. webidl.converters.BufferSource = function (V, opts = {}) {
  32248. if (types.isAnyArrayBuffer(V)) {
  32249. return webidl.converters.ArrayBuffer(V, opts)
  32250. }
  32251. if (types.isTypedArray(V)) {
  32252. return webidl.converters.TypedArray(V, V.constructor)
  32253. }
  32254. if (types.isDataView(V)) {
  32255. return webidl.converters.DataView(V, opts)
  32256. }
  32257. throw new TypeError(`Could not convert ${V} to a BufferSource.`)
  32258. }
  32259. webidl.converters['sequence<ByteString>'] = webidl.sequenceConverter(
  32260. webidl.converters.ByteString
  32261. )
  32262. webidl.converters['sequence<sequence<ByteString>>'] = webidl.sequenceConverter(
  32263. webidl.converters['sequence<ByteString>']
  32264. )
  32265. webidl.converters['record<ByteString, ByteString>'] = webidl.recordConverter(
  32266. webidl.converters.ByteString,
  32267. webidl.converters.ByteString
  32268. )
  32269. module.exports = {
  32270. webidl
  32271. }
  32272. /***/ }),
  32273. /***/ 4854:
  32274. /***/ ((module) => {
  32275. "use strict";
  32276. /**
  32277. * @see https://encoding.spec.whatwg.org/#concept-encoding-get
  32278. * @param {string|undefined} label
  32279. */
  32280. function getEncoding (label) {
  32281. if (!label) {
  32282. return 'failure'
  32283. }
  32284. // 1. Remove any leading and trailing ASCII whitespace from label.
  32285. // 2. If label is an ASCII case-insensitive match for any of the
  32286. // labels listed in the table below, then return the
  32287. // corresponding encoding; otherwise return failure.
  32288. switch (label.trim().toLowerCase()) {
  32289. case 'unicode-1-1-utf-8':
  32290. case 'unicode11utf8':
  32291. case 'unicode20utf8':
  32292. case 'utf-8':
  32293. case 'utf8':
  32294. case 'x-unicode20utf8':
  32295. return 'UTF-8'
  32296. case '866':
  32297. case 'cp866':
  32298. case 'csibm866':
  32299. case 'ibm866':
  32300. return 'IBM866'
  32301. case 'csisolatin2':
  32302. case 'iso-8859-2':
  32303. case 'iso-ir-101':
  32304. case 'iso8859-2':
  32305. case 'iso88592':
  32306. case 'iso_8859-2':
  32307. case 'iso_8859-2:1987':
  32308. case 'l2':
  32309. case 'latin2':
  32310. return 'ISO-8859-2'
  32311. case 'csisolatin3':
  32312. case 'iso-8859-3':
  32313. case 'iso-ir-109':
  32314. case 'iso8859-3':
  32315. case 'iso88593':
  32316. case 'iso_8859-3':
  32317. case 'iso_8859-3:1988':
  32318. case 'l3':
  32319. case 'latin3':
  32320. return 'ISO-8859-3'
  32321. case 'csisolatin4':
  32322. case 'iso-8859-4':
  32323. case 'iso-ir-110':
  32324. case 'iso8859-4':
  32325. case 'iso88594':
  32326. case 'iso_8859-4':
  32327. case 'iso_8859-4:1988':
  32328. case 'l4':
  32329. case 'latin4':
  32330. return 'ISO-8859-4'
  32331. case 'csisolatincyrillic':
  32332. case 'cyrillic':
  32333. case 'iso-8859-5':
  32334. case 'iso-ir-144':
  32335. case 'iso8859-5':
  32336. case 'iso88595':
  32337. case 'iso_8859-5':
  32338. case 'iso_8859-5:1988':
  32339. return 'ISO-8859-5'
  32340. case 'arabic':
  32341. case 'asmo-708':
  32342. case 'csiso88596e':
  32343. case 'csiso88596i':
  32344. case 'csisolatinarabic':
  32345. case 'ecma-114':
  32346. case 'iso-8859-6':
  32347. case 'iso-8859-6-e':
  32348. case 'iso-8859-6-i':
  32349. case 'iso-ir-127':
  32350. case 'iso8859-6':
  32351. case 'iso88596':
  32352. case 'iso_8859-6':
  32353. case 'iso_8859-6:1987':
  32354. return 'ISO-8859-6'
  32355. case 'csisolatingreek':
  32356. case 'ecma-118':
  32357. case 'elot_928':
  32358. case 'greek':
  32359. case 'greek8':
  32360. case 'iso-8859-7':
  32361. case 'iso-ir-126':
  32362. case 'iso8859-7':
  32363. case 'iso88597':
  32364. case 'iso_8859-7':
  32365. case 'iso_8859-7:1987':
  32366. case 'sun_eu_greek':
  32367. return 'ISO-8859-7'
  32368. case 'csiso88598e':
  32369. case 'csisolatinhebrew':
  32370. case 'hebrew':
  32371. case 'iso-8859-8':
  32372. case 'iso-8859-8-e':
  32373. case 'iso-ir-138':
  32374. case 'iso8859-8':
  32375. case 'iso88598':
  32376. case 'iso_8859-8':
  32377. case 'iso_8859-8:1988':
  32378. case 'visual':
  32379. return 'ISO-8859-8'
  32380. case 'csiso88598i':
  32381. case 'iso-8859-8-i':
  32382. case 'logical':
  32383. return 'ISO-8859-8-I'
  32384. case 'csisolatin6':
  32385. case 'iso-8859-10':
  32386. case 'iso-ir-157':
  32387. case 'iso8859-10':
  32388. case 'iso885910':
  32389. case 'l6':
  32390. case 'latin6':
  32391. return 'ISO-8859-10'
  32392. case 'iso-8859-13':
  32393. case 'iso8859-13':
  32394. case 'iso885913':
  32395. return 'ISO-8859-13'
  32396. case 'iso-8859-14':
  32397. case 'iso8859-14':
  32398. case 'iso885914':
  32399. return 'ISO-8859-14'
  32400. case 'csisolatin9':
  32401. case 'iso-8859-15':
  32402. case 'iso8859-15':
  32403. case 'iso885915':
  32404. case 'iso_8859-15':
  32405. case 'l9':
  32406. return 'ISO-8859-15'
  32407. case 'iso-8859-16':
  32408. return 'ISO-8859-16'
  32409. case 'cskoi8r':
  32410. case 'koi':
  32411. case 'koi8':
  32412. case 'koi8-r':
  32413. case 'koi8_r':
  32414. return 'KOI8-R'
  32415. case 'koi8-ru':
  32416. case 'koi8-u':
  32417. return 'KOI8-U'
  32418. case 'csmacintosh':
  32419. case 'mac':
  32420. case 'macintosh':
  32421. case 'x-mac-roman':
  32422. return 'macintosh'
  32423. case 'iso-8859-11':
  32424. case 'iso8859-11':
  32425. case 'iso885911':
  32426. case 'tis-620':
  32427. case 'windows-874':
  32428. return 'windows-874'
  32429. case 'cp1250':
  32430. case 'windows-1250':
  32431. case 'x-cp1250':
  32432. return 'windows-1250'
  32433. case 'cp1251':
  32434. case 'windows-1251':
  32435. case 'x-cp1251':
  32436. return 'windows-1251'
  32437. case 'ansi_x3.4-1968':
  32438. case 'ascii':
  32439. case 'cp1252':
  32440. case 'cp819':
  32441. case 'csisolatin1':
  32442. case 'ibm819':
  32443. case 'iso-8859-1':
  32444. case 'iso-ir-100':
  32445. case 'iso8859-1':
  32446. case 'iso88591':
  32447. case 'iso_8859-1':
  32448. case 'iso_8859-1:1987':
  32449. case 'l1':
  32450. case 'latin1':
  32451. case 'us-ascii':
  32452. case 'windows-1252':
  32453. case 'x-cp1252':
  32454. return 'windows-1252'
  32455. case 'cp1253':
  32456. case 'windows-1253':
  32457. case 'x-cp1253':
  32458. return 'windows-1253'
  32459. case 'cp1254':
  32460. case 'csisolatin5':
  32461. case 'iso-8859-9':
  32462. case 'iso-ir-148':
  32463. case 'iso8859-9':
  32464. case 'iso88599':
  32465. case 'iso_8859-9':
  32466. case 'iso_8859-9:1989':
  32467. case 'l5':
  32468. case 'latin5':
  32469. case 'windows-1254':
  32470. case 'x-cp1254':
  32471. return 'windows-1254'
  32472. case 'cp1255':
  32473. case 'windows-1255':
  32474. case 'x-cp1255':
  32475. return 'windows-1255'
  32476. case 'cp1256':
  32477. case 'windows-1256':
  32478. case 'x-cp1256':
  32479. return 'windows-1256'
  32480. case 'cp1257':
  32481. case 'windows-1257':
  32482. case 'x-cp1257':
  32483. return 'windows-1257'
  32484. case 'cp1258':
  32485. case 'windows-1258':
  32486. case 'x-cp1258':
  32487. return 'windows-1258'
  32488. case 'x-mac-cyrillic':
  32489. case 'x-mac-ukrainian':
  32490. return 'x-mac-cyrillic'
  32491. case 'chinese':
  32492. case 'csgb2312':
  32493. case 'csiso58gb231280':
  32494. case 'gb2312':
  32495. case 'gb_2312':
  32496. case 'gb_2312-80':
  32497. case 'gbk':
  32498. case 'iso-ir-58':
  32499. case 'x-gbk':
  32500. return 'GBK'
  32501. case 'gb18030':
  32502. return 'gb18030'
  32503. case 'big5':
  32504. case 'big5-hkscs':
  32505. case 'cn-big5':
  32506. case 'csbig5':
  32507. case 'x-x-big5':
  32508. return 'Big5'
  32509. case 'cseucpkdfmtjapanese':
  32510. case 'euc-jp':
  32511. case 'x-euc-jp':
  32512. return 'EUC-JP'
  32513. case 'csiso2022jp':
  32514. case 'iso-2022-jp':
  32515. return 'ISO-2022-JP'
  32516. case 'csshiftjis':
  32517. case 'ms932':
  32518. case 'ms_kanji':
  32519. case 'shift-jis':
  32520. case 'shift_jis':
  32521. case 'sjis':
  32522. case 'windows-31j':
  32523. case 'x-sjis':
  32524. return 'Shift_JIS'
  32525. case 'cseuckr':
  32526. case 'csksc56011987':
  32527. case 'euc-kr':
  32528. case 'iso-ir-149':
  32529. case 'korean':
  32530. case 'ks_c_5601-1987':
  32531. case 'ks_c_5601-1989':
  32532. case 'ksc5601':
  32533. case 'ksc_5601':
  32534. case 'windows-949':
  32535. return 'EUC-KR'
  32536. case 'csiso2022kr':
  32537. case 'hz-gb-2312':
  32538. case 'iso-2022-cn':
  32539. case 'iso-2022-cn-ext':
  32540. case 'iso-2022-kr':
  32541. case 'replacement':
  32542. return 'replacement'
  32543. case 'unicodefffe':
  32544. case 'utf-16be':
  32545. return 'UTF-16BE'
  32546. case 'csunicode':
  32547. case 'iso-10646-ucs-2':
  32548. case 'ucs-2':
  32549. case 'unicode':
  32550. case 'unicodefeff':
  32551. case 'utf-16':
  32552. case 'utf-16le':
  32553. return 'UTF-16LE'
  32554. case 'x-user-defined':
  32555. return 'x-user-defined'
  32556. default: return 'failure'
  32557. }
  32558. }
  32559. module.exports = {
  32560. getEncoding
  32561. }
  32562. /***/ }),
  32563. /***/ 1446:
  32564. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  32565. "use strict";
  32566. const {
  32567. staticPropertyDescriptors,
  32568. readOperation,
  32569. fireAProgressEvent
  32570. } = __nccwpck_require__(7530)
  32571. const {
  32572. kState,
  32573. kError,
  32574. kResult,
  32575. kEvents,
  32576. kAborted
  32577. } = __nccwpck_require__(9054)
  32578. const { webidl } = __nccwpck_require__(1744)
  32579. const { kEnumerableProperty } = __nccwpck_require__(3983)
  32580. class FileReader extends EventTarget {
  32581. constructor () {
  32582. super()
  32583. this[kState] = 'empty'
  32584. this[kResult] = null
  32585. this[kError] = null
  32586. this[kEvents] = {
  32587. loadend: null,
  32588. error: null,
  32589. abort: null,
  32590. load: null,
  32591. progress: null,
  32592. loadstart: null
  32593. }
  32594. }
  32595. /**
  32596. * @see https://w3c.github.io/FileAPI/#dfn-readAsArrayBuffer
  32597. * @param {import('buffer').Blob} blob
  32598. */
  32599. readAsArrayBuffer (blob) {
  32600. webidl.brandCheck(this, FileReader)
  32601. webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsArrayBuffer' })
  32602. blob = webidl.converters.Blob(blob, { strict: false })
  32603. // The readAsArrayBuffer(blob) method, when invoked,
  32604. // must initiate a read operation for blob with ArrayBuffer.
  32605. readOperation(this, blob, 'ArrayBuffer')
  32606. }
  32607. /**
  32608. * @see https://w3c.github.io/FileAPI/#readAsBinaryString
  32609. * @param {import('buffer').Blob} blob
  32610. */
  32611. readAsBinaryString (blob) {
  32612. webidl.brandCheck(this, FileReader)
  32613. webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsBinaryString' })
  32614. blob = webidl.converters.Blob(blob, { strict: false })
  32615. // The readAsBinaryString(blob) method, when invoked,
  32616. // must initiate a read operation for blob with BinaryString.
  32617. readOperation(this, blob, 'BinaryString')
  32618. }
  32619. /**
  32620. * @see https://w3c.github.io/FileAPI/#readAsDataText
  32621. * @param {import('buffer').Blob} blob
  32622. * @param {string?} encoding
  32623. */
  32624. readAsText (blob, encoding = undefined) {
  32625. webidl.brandCheck(this, FileReader)
  32626. webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsText' })
  32627. blob = webidl.converters.Blob(blob, { strict: false })
  32628. if (encoding !== undefined) {
  32629. encoding = webidl.converters.DOMString(encoding)
  32630. }
  32631. // The readAsText(blob, encoding) method, when invoked,
  32632. // must initiate a read operation for blob with Text and encoding.
  32633. readOperation(this, blob, 'Text', encoding)
  32634. }
  32635. /**
  32636. * @see https://w3c.github.io/FileAPI/#dfn-readAsDataURL
  32637. * @param {import('buffer').Blob} blob
  32638. */
  32639. readAsDataURL (blob) {
  32640. webidl.brandCheck(this, FileReader)
  32641. webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsDataURL' })
  32642. blob = webidl.converters.Blob(blob, { strict: false })
  32643. // The readAsDataURL(blob) method, when invoked, must
  32644. // initiate a read operation for blob with DataURL.
  32645. readOperation(this, blob, 'DataURL')
  32646. }
  32647. /**
  32648. * @see https://w3c.github.io/FileAPI/#dfn-abort
  32649. */
  32650. abort () {
  32651. // 1. If this's state is "empty" or if this's state is
  32652. // "done" set this's result to null and terminate
  32653. // this algorithm.
  32654. if (this[kState] === 'empty' || this[kState] === 'done') {
  32655. this[kResult] = null
  32656. return
  32657. }
  32658. // 2. If this's state is "loading" set this's state to
  32659. // "done" and set this's result to null.
  32660. if (this[kState] === 'loading') {
  32661. this[kState] = 'done'
  32662. this[kResult] = null
  32663. }
  32664. // 3. If there are any tasks from this on the file reading
  32665. // task source in an affiliated task queue, then remove
  32666. // those tasks from that task queue.
  32667. this[kAborted] = true
  32668. // 4. Terminate the algorithm for the read method being processed.
  32669. // TODO
  32670. // 5. Fire a progress event called abort at this.
  32671. fireAProgressEvent('abort', this)
  32672. // 6. If this's state is not "loading", fire a progress
  32673. // event called loadend at this.
  32674. if (this[kState] !== 'loading') {
  32675. fireAProgressEvent('loadend', this)
  32676. }
  32677. }
  32678. /**
  32679. * @see https://w3c.github.io/FileAPI/#dom-filereader-readystate
  32680. */
  32681. get readyState () {
  32682. webidl.brandCheck(this, FileReader)
  32683. switch (this[kState]) {
  32684. case 'empty': return this.EMPTY
  32685. case 'loading': return this.LOADING
  32686. case 'done': return this.DONE
  32687. }
  32688. }
  32689. /**
  32690. * @see https://w3c.github.io/FileAPI/#dom-filereader-result
  32691. */
  32692. get result () {
  32693. webidl.brandCheck(this, FileReader)
  32694. // The result attribute’s getter, when invoked, must return
  32695. // this's result.
  32696. return this[kResult]
  32697. }
  32698. /**
  32699. * @see https://w3c.github.io/FileAPI/#dom-filereader-error
  32700. */
  32701. get error () {
  32702. webidl.brandCheck(this, FileReader)
  32703. // The error attribute’s getter, when invoked, must return
  32704. // this's error.
  32705. return this[kError]
  32706. }
  32707. get onloadend () {
  32708. webidl.brandCheck(this, FileReader)
  32709. return this[kEvents].loadend
  32710. }
  32711. set onloadend (fn) {
  32712. webidl.brandCheck(this, FileReader)
  32713. if (this[kEvents].loadend) {
  32714. this.removeEventListener('loadend', this[kEvents].loadend)
  32715. }
  32716. if (typeof fn === 'function') {
  32717. this[kEvents].loadend = fn
  32718. this.addEventListener('loadend', fn)
  32719. } else {
  32720. this[kEvents].loadend = null
  32721. }
  32722. }
  32723. get onerror () {
  32724. webidl.brandCheck(this, FileReader)
  32725. return this[kEvents].error
  32726. }
  32727. set onerror (fn) {
  32728. webidl.brandCheck(this, FileReader)
  32729. if (this[kEvents].error) {
  32730. this.removeEventListener('error', this[kEvents].error)
  32731. }
  32732. if (typeof fn === 'function') {
  32733. this[kEvents].error = fn
  32734. this.addEventListener('error', fn)
  32735. } else {
  32736. this[kEvents].error = null
  32737. }
  32738. }
  32739. get onloadstart () {
  32740. webidl.brandCheck(this, FileReader)
  32741. return this[kEvents].loadstart
  32742. }
  32743. set onloadstart (fn) {
  32744. webidl.brandCheck(this, FileReader)
  32745. if (this[kEvents].loadstart) {
  32746. this.removeEventListener('loadstart', this[kEvents].loadstart)
  32747. }
  32748. if (typeof fn === 'function') {
  32749. this[kEvents].loadstart = fn
  32750. this.addEventListener('loadstart', fn)
  32751. } else {
  32752. this[kEvents].loadstart = null
  32753. }
  32754. }
  32755. get onprogress () {
  32756. webidl.brandCheck(this, FileReader)
  32757. return this[kEvents].progress
  32758. }
  32759. set onprogress (fn) {
  32760. webidl.brandCheck(this, FileReader)
  32761. if (this[kEvents].progress) {
  32762. this.removeEventListener('progress', this[kEvents].progress)
  32763. }
  32764. if (typeof fn === 'function') {
  32765. this[kEvents].progress = fn
  32766. this.addEventListener('progress', fn)
  32767. } else {
  32768. this[kEvents].progress = null
  32769. }
  32770. }
  32771. get onload () {
  32772. webidl.brandCheck(this, FileReader)
  32773. return this[kEvents].load
  32774. }
  32775. set onload (fn) {
  32776. webidl.brandCheck(this, FileReader)
  32777. if (this[kEvents].load) {
  32778. this.removeEventListener('load', this[kEvents].load)
  32779. }
  32780. if (typeof fn === 'function') {
  32781. this[kEvents].load = fn
  32782. this.addEventListener('load', fn)
  32783. } else {
  32784. this[kEvents].load = null
  32785. }
  32786. }
  32787. get onabort () {
  32788. webidl.brandCheck(this, FileReader)
  32789. return this[kEvents].abort
  32790. }
  32791. set onabort (fn) {
  32792. webidl.brandCheck(this, FileReader)
  32793. if (this[kEvents].abort) {
  32794. this.removeEventListener('abort', this[kEvents].abort)
  32795. }
  32796. if (typeof fn === 'function') {
  32797. this[kEvents].abort = fn
  32798. this.addEventListener('abort', fn)
  32799. } else {
  32800. this[kEvents].abort = null
  32801. }
  32802. }
  32803. }
  32804. // https://w3c.github.io/FileAPI/#dom-filereader-empty
  32805. FileReader.EMPTY = FileReader.prototype.EMPTY = 0
  32806. // https://w3c.github.io/FileAPI/#dom-filereader-loading
  32807. FileReader.LOADING = FileReader.prototype.LOADING = 1
  32808. // https://w3c.github.io/FileAPI/#dom-filereader-done
  32809. FileReader.DONE = FileReader.prototype.DONE = 2
  32810. Object.defineProperties(FileReader.prototype, {
  32811. EMPTY: staticPropertyDescriptors,
  32812. LOADING: staticPropertyDescriptors,
  32813. DONE: staticPropertyDescriptors,
  32814. readAsArrayBuffer: kEnumerableProperty,
  32815. readAsBinaryString: kEnumerableProperty,
  32816. readAsText: kEnumerableProperty,
  32817. readAsDataURL: kEnumerableProperty,
  32818. abort: kEnumerableProperty,
  32819. readyState: kEnumerableProperty,
  32820. result: kEnumerableProperty,
  32821. error: kEnumerableProperty,
  32822. onloadstart: kEnumerableProperty,
  32823. onprogress: kEnumerableProperty,
  32824. onload: kEnumerableProperty,
  32825. onabort: kEnumerableProperty,
  32826. onerror: kEnumerableProperty,
  32827. onloadend: kEnumerableProperty,
  32828. [Symbol.toStringTag]: {
  32829. value: 'FileReader',
  32830. writable: false,
  32831. enumerable: false,
  32832. configurable: true
  32833. }
  32834. })
  32835. Object.defineProperties(FileReader, {
  32836. EMPTY: staticPropertyDescriptors,
  32837. LOADING: staticPropertyDescriptors,
  32838. DONE: staticPropertyDescriptors
  32839. })
  32840. module.exports = {
  32841. FileReader
  32842. }
  32843. /***/ }),
  32844. /***/ 5504:
  32845. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  32846. "use strict";
  32847. const { webidl } = __nccwpck_require__(1744)
  32848. const kState = Symbol('ProgressEvent state')
  32849. /**
  32850. * @see https://xhr.spec.whatwg.org/#progressevent
  32851. */
  32852. class ProgressEvent extends Event {
  32853. constructor (type, eventInitDict = {}) {
  32854. type = webidl.converters.DOMString(type)
  32855. eventInitDict = webidl.converters.ProgressEventInit(eventInitDict ?? {})
  32856. super(type, eventInitDict)
  32857. this[kState] = {
  32858. lengthComputable: eventInitDict.lengthComputable,
  32859. loaded: eventInitDict.loaded,
  32860. total: eventInitDict.total
  32861. }
  32862. }
  32863. get lengthComputable () {
  32864. webidl.brandCheck(this, ProgressEvent)
  32865. return this[kState].lengthComputable
  32866. }
  32867. get loaded () {
  32868. webidl.brandCheck(this, ProgressEvent)
  32869. return this[kState].loaded
  32870. }
  32871. get total () {
  32872. webidl.brandCheck(this, ProgressEvent)
  32873. return this[kState].total
  32874. }
  32875. }
  32876. webidl.converters.ProgressEventInit = webidl.dictionaryConverter([
  32877. {
  32878. key: 'lengthComputable',
  32879. converter: webidl.converters.boolean,
  32880. defaultValue: false
  32881. },
  32882. {
  32883. key: 'loaded',
  32884. converter: webidl.converters['unsigned long long'],
  32885. defaultValue: 0
  32886. },
  32887. {
  32888. key: 'total',
  32889. converter: webidl.converters['unsigned long long'],
  32890. defaultValue: 0
  32891. },
  32892. {
  32893. key: 'bubbles',
  32894. converter: webidl.converters.boolean,
  32895. defaultValue: false
  32896. },
  32897. {
  32898. key: 'cancelable',
  32899. converter: webidl.converters.boolean,
  32900. defaultValue: false
  32901. },
  32902. {
  32903. key: 'composed',
  32904. converter: webidl.converters.boolean,
  32905. defaultValue: false
  32906. }
  32907. ])
  32908. module.exports = {
  32909. ProgressEvent
  32910. }
  32911. /***/ }),
  32912. /***/ 9054:
  32913. /***/ ((module) => {
  32914. "use strict";
  32915. module.exports = {
  32916. kState: Symbol('FileReader state'),
  32917. kResult: Symbol('FileReader result'),
  32918. kError: Symbol('FileReader error'),
  32919. kLastProgressEventFired: Symbol('FileReader last progress event fired timestamp'),
  32920. kEvents: Symbol('FileReader events'),
  32921. kAborted: Symbol('FileReader aborted')
  32922. }
  32923. /***/ }),
  32924. /***/ 7530:
  32925. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  32926. "use strict";
  32927. const {
  32928. kState,
  32929. kError,
  32930. kResult,
  32931. kAborted,
  32932. kLastProgressEventFired
  32933. } = __nccwpck_require__(9054)
  32934. const { ProgressEvent } = __nccwpck_require__(5504)
  32935. const { getEncoding } = __nccwpck_require__(4854)
  32936. const { DOMException } = __nccwpck_require__(1037)
  32937. const { serializeAMimeType, parseMIMEType } = __nccwpck_require__(685)
  32938. const { types } = __nccwpck_require__(3837)
  32939. const { StringDecoder } = __nccwpck_require__(1576)
  32940. const { btoa } = __nccwpck_require__(4300)
  32941. /** @type {PropertyDescriptor} */
  32942. const staticPropertyDescriptors = {
  32943. enumerable: true,
  32944. writable: false,
  32945. configurable: false
  32946. }
  32947. /**
  32948. * @see https://w3c.github.io/FileAPI/#readOperation
  32949. * @param {import('./filereader').FileReader} fr
  32950. * @param {import('buffer').Blob} blob
  32951. * @param {string} type
  32952. * @param {string?} encodingName
  32953. */
  32954. function readOperation (fr, blob, type, encodingName) {
  32955. // 1. If fr’s state is "loading", throw an InvalidStateError
  32956. // DOMException.
  32957. if (fr[kState] === 'loading') {
  32958. throw new DOMException('Invalid state', 'InvalidStateError')
  32959. }
  32960. // 2. Set fr’s state to "loading".
  32961. fr[kState] = 'loading'
  32962. // 3. Set fr’s result to null.
  32963. fr[kResult] = null
  32964. // 4. Set fr’s error to null.
  32965. fr[kError] = null
  32966. // 5. Let stream be the result of calling get stream on blob.
  32967. /** @type {import('stream/web').ReadableStream} */
  32968. const stream = blob.stream()
  32969. // 6. Let reader be the result of getting a reader from stream.
  32970. const reader = stream.getReader()
  32971. // 7. Let bytes be an empty byte sequence.
  32972. /** @type {Uint8Array[]} */
  32973. const bytes = []
  32974. // 8. Let chunkPromise be the result of reading a chunk from
  32975. // stream with reader.
  32976. let chunkPromise = reader.read()
  32977. // 9. Let isFirstChunk be true.
  32978. let isFirstChunk = true
  32979. // 10. In parallel, while true:
  32980. // Note: "In parallel" just means non-blocking
  32981. // Note 2: readOperation itself cannot be async as double
  32982. // reading the body would then reject the promise, instead
  32983. // of throwing an error.
  32984. ;(async () => {
  32985. while (!fr[kAborted]) {
  32986. // 1. Wait for chunkPromise to be fulfilled or rejected.
  32987. try {
  32988. const { done, value } = await chunkPromise
  32989. // 2. If chunkPromise is fulfilled, and isFirstChunk is
  32990. // true, queue a task to fire a progress event called
  32991. // loadstart at fr.
  32992. if (isFirstChunk && !fr[kAborted]) {
  32993. queueMicrotask(() => {
  32994. fireAProgressEvent('loadstart', fr)
  32995. })
  32996. }
  32997. // 3. Set isFirstChunk to false.
  32998. isFirstChunk = false
  32999. // 4. If chunkPromise is fulfilled with an object whose
  33000. // done property is false and whose value property is
  33001. // a Uint8Array object, run these steps:
  33002. if (!done && types.isUint8Array(value)) {
  33003. // 1. Let bs be the byte sequence represented by the
  33004. // Uint8Array object.
  33005. // 2. Append bs to bytes.
  33006. bytes.push(value)
  33007. // 3. If roughly 50ms have passed since these steps
  33008. // were last invoked, queue a task to fire a
  33009. // progress event called progress at fr.
  33010. if (
  33011. (
  33012. fr[kLastProgressEventFired] === undefined ||
  33013. Date.now() - fr[kLastProgressEventFired] >= 50
  33014. ) &&
  33015. !fr[kAborted]
  33016. ) {
  33017. fr[kLastProgressEventFired] = Date.now()
  33018. queueMicrotask(() => {
  33019. fireAProgressEvent('progress', fr)
  33020. })
  33021. }
  33022. // 4. Set chunkPromise to the result of reading a
  33023. // chunk from stream with reader.
  33024. chunkPromise = reader.read()
  33025. } else if (done) {
  33026. // 5. Otherwise, if chunkPromise is fulfilled with an
  33027. // object whose done property is true, queue a task
  33028. // to run the following steps and abort this algorithm:
  33029. queueMicrotask(() => {
  33030. // 1. Set fr’s state to "done".
  33031. fr[kState] = 'done'
  33032. // 2. Let result be the result of package data given
  33033. // bytes, type, blob’s type, and encodingName.
  33034. try {
  33035. const result = packageData(bytes, type, blob.type, encodingName)
  33036. // 4. Else:
  33037. if (fr[kAborted]) {
  33038. return
  33039. }
  33040. // 1. Set fr’s result to result.
  33041. fr[kResult] = result
  33042. // 2. Fire a progress event called load at the fr.
  33043. fireAProgressEvent('load', fr)
  33044. } catch (error) {
  33045. // 3. If package data threw an exception error:
  33046. // 1. Set fr’s error to error.
  33047. fr[kError] = error
  33048. // 2. Fire a progress event called error at fr.
  33049. fireAProgressEvent('error', fr)
  33050. }
  33051. // 5. If fr’s state is not "loading", fire a progress
  33052. // event called loadend at the fr.
  33053. if (fr[kState] !== 'loading') {
  33054. fireAProgressEvent('loadend', fr)
  33055. }
  33056. })
  33057. break
  33058. }
  33059. } catch (error) {
  33060. if (fr[kAborted]) {
  33061. return
  33062. }
  33063. // 6. Otherwise, if chunkPromise is rejected with an
  33064. // error error, queue a task to run the following
  33065. // steps and abort this algorithm:
  33066. queueMicrotask(() => {
  33067. // 1. Set fr’s state to "done".
  33068. fr[kState] = 'done'
  33069. // 2. Set fr’s error to error.
  33070. fr[kError] = error
  33071. // 3. Fire a progress event called error at fr.
  33072. fireAProgressEvent('error', fr)
  33073. // 4. If fr’s state is not "loading", fire a progress
  33074. // event called loadend at fr.
  33075. if (fr[kState] !== 'loading') {
  33076. fireAProgressEvent('loadend', fr)
  33077. }
  33078. })
  33079. break
  33080. }
  33081. }
  33082. })()
  33083. }
  33084. /**
  33085. * @see https://w3c.github.io/FileAPI/#fire-a-progress-event
  33086. * @see https://dom.spec.whatwg.org/#concept-event-fire
  33087. * @param {string} e The name of the event
  33088. * @param {import('./filereader').FileReader} reader
  33089. */
  33090. function fireAProgressEvent (e, reader) {
  33091. // The progress event e does not bubble. e.bubbles must be false
  33092. // The progress event e is NOT cancelable. e.cancelable must be false
  33093. const event = new ProgressEvent(e, {
  33094. bubbles: false,
  33095. cancelable: false
  33096. })
  33097. reader.dispatchEvent(event)
  33098. }
  33099. /**
  33100. * @see https://w3c.github.io/FileAPI/#blob-package-data
  33101. * @param {Uint8Array[]} bytes
  33102. * @param {string} type
  33103. * @param {string?} mimeType
  33104. * @param {string?} encodingName
  33105. */
  33106. function packageData (bytes, type, mimeType, encodingName) {
  33107. // 1. A Blob has an associated package data algorithm, given
  33108. // bytes, a type, a optional mimeType, and a optional
  33109. // encodingName, which switches on type and runs the
  33110. // associated steps:
  33111. switch (type) {
  33112. case 'DataURL': {
  33113. // 1. Return bytes as a DataURL [RFC2397] subject to
  33114. // the considerations below:
  33115. // * Use mimeType as part of the Data URL if it is
  33116. // available in keeping with the Data URL
  33117. // specification [RFC2397].
  33118. // * If mimeType is not available return a Data URL
  33119. // without a media-type. [RFC2397].
  33120. // https://datatracker.ietf.org/doc/html/rfc2397#section-3
  33121. // dataurl := "data:" [ mediatype ] [ ";base64" ] "," data
  33122. // mediatype := [ type "/" subtype ] *( ";" parameter )
  33123. // data := *urlchar
  33124. // parameter := attribute "=" value
  33125. let dataURL = 'data:'
  33126. const parsed = parseMIMEType(mimeType || 'application/octet-stream')
  33127. if (parsed !== 'failure') {
  33128. dataURL += serializeAMimeType(parsed)
  33129. }
  33130. dataURL += ';base64,'
  33131. const decoder = new StringDecoder('latin1')
  33132. for (const chunk of bytes) {
  33133. dataURL += btoa(decoder.write(chunk))
  33134. }
  33135. dataURL += btoa(decoder.end())
  33136. return dataURL
  33137. }
  33138. case 'Text': {
  33139. // 1. Let encoding be failure
  33140. let encoding = 'failure'
  33141. // 2. If the encodingName is present, set encoding to the
  33142. // result of getting an encoding from encodingName.
  33143. if (encodingName) {
  33144. encoding = getEncoding(encodingName)
  33145. }
  33146. // 3. If encoding is failure, and mimeType is present:
  33147. if (encoding === 'failure' && mimeType) {
  33148. // 1. Let type be the result of parse a MIME type
  33149. // given mimeType.
  33150. const type = parseMIMEType(mimeType)
  33151. // 2. If type is not failure, set encoding to the result
  33152. // of getting an encoding from type’s parameters["charset"].
  33153. if (type !== 'failure') {
  33154. encoding = getEncoding(type.parameters.get('charset'))
  33155. }
  33156. }
  33157. // 4. If encoding is failure, then set encoding to UTF-8.
  33158. if (encoding === 'failure') {
  33159. encoding = 'UTF-8'
  33160. }
  33161. // 5. Decode bytes using fallback encoding encoding, and
  33162. // return the result.
  33163. return decode(bytes, encoding)
  33164. }
  33165. case 'ArrayBuffer': {
  33166. // Return a new ArrayBuffer whose contents are bytes.
  33167. const sequence = combineByteSequences(bytes)
  33168. return sequence.buffer
  33169. }
  33170. case 'BinaryString': {
  33171. // Return bytes as a binary string, in which every byte
  33172. // is represented by a code unit of equal value [0..255].
  33173. let binaryString = ''
  33174. const decoder = new StringDecoder('latin1')
  33175. for (const chunk of bytes) {
  33176. binaryString += decoder.write(chunk)
  33177. }
  33178. binaryString += decoder.end()
  33179. return binaryString
  33180. }
  33181. }
  33182. }
  33183. /**
  33184. * @see https://encoding.spec.whatwg.org/#decode
  33185. * @param {Uint8Array[]} ioQueue
  33186. * @param {string} encoding
  33187. */
  33188. function decode (ioQueue, encoding) {
  33189. const bytes = combineByteSequences(ioQueue)
  33190. // 1. Let BOMEncoding be the result of BOM sniffing ioQueue.
  33191. const BOMEncoding = BOMSniffing(bytes)
  33192. let slice = 0
  33193. // 2. If BOMEncoding is non-null:
  33194. if (BOMEncoding !== null) {
  33195. // 1. Set encoding to BOMEncoding.
  33196. encoding = BOMEncoding
  33197. // 2. Read three bytes from ioQueue, if BOMEncoding is
  33198. // UTF-8; otherwise read two bytes.
  33199. // (Do nothing with those bytes.)
  33200. slice = BOMEncoding === 'UTF-8' ? 3 : 2
  33201. }
  33202. // 3. Process a queue with an instance of encoding’s
  33203. // decoder, ioQueue, output, and "replacement".
  33204. // 4. Return output.
  33205. const sliced = bytes.slice(slice)
  33206. return new TextDecoder(encoding).decode(sliced)
  33207. }
  33208. /**
  33209. * @see https://encoding.spec.whatwg.org/#bom-sniff
  33210. * @param {Uint8Array} ioQueue
  33211. */
  33212. function BOMSniffing (ioQueue) {
  33213. // 1. Let BOM be the result of peeking 3 bytes from ioQueue,
  33214. // converted to a byte sequence.
  33215. const [a, b, c] = ioQueue
  33216. // 2. For each of the rows in the table below, starting with
  33217. // the first one and going down, if BOM starts with the
  33218. // bytes given in the first column, then return the
  33219. // encoding given in the cell in the second column of that
  33220. // row. Otherwise, return null.
  33221. if (a === 0xEF && b === 0xBB && c === 0xBF) {
  33222. return 'UTF-8'
  33223. } else if (a === 0xFE && b === 0xFF) {
  33224. return 'UTF-16BE'
  33225. } else if (a === 0xFF && b === 0xFE) {
  33226. return 'UTF-16LE'
  33227. }
  33228. return null
  33229. }
  33230. /**
  33231. * @param {Uint8Array[]} sequences
  33232. */
  33233. function combineByteSequences (sequences) {
  33234. const size = sequences.reduce((a, b) => {
  33235. return a + b.byteLength
  33236. }, 0)
  33237. let offset = 0
  33238. return sequences.reduce((a, b) => {
  33239. a.set(b, offset)
  33240. offset += b.byteLength
  33241. return a
  33242. }, new Uint8Array(size))
  33243. }
  33244. module.exports = {
  33245. staticPropertyDescriptors,
  33246. readOperation,
  33247. fireAProgressEvent
  33248. }
  33249. /***/ }),
  33250. /***/ 1892:
  33251. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33252. "use strict";
  33253. // We include a version number for the Dispatcher API. In case of breaking changes,
  33254. // this version number must be increased to avoid conflicts.
  33255. const globalDispatcher = Symbol.for('undici.globalDispatcher.1')
  33256. const { InvalidArgumentError } = __nccwpck_require__(8045)
  33257. const Agent = __nccwpck_require__(7890)
  33258. if (getGlobalDispatcher() === undefined) {
  33259. setGlobalDispatcher(new Agent())
  33260. }
  33261. function setGlobalDispatcher (agent) {
  33262. if (!agent || typeof agent.dispatch !== 'function') {
  33263. throw new InvalidArgumentError('Argument agent must implement Agent')
  33264. }
  33265. Object.defineProperty(globalThis, globalDispatcher, {
  33266. value: agent,
  33267. writable: true,
  33268. enumerable: false,
  33269. configurable: false
  33270. })
  33271. }
  33272. function getGlobalDispatcher () {
  33273. return globalThis[globalDispatcher]
  33274. }
  33275. module.exports = {
  33276. setGlobalDispatcher,
  33277. getGlobalDispatcher
  33278. }
  33279. /***/ }),
  33280. /***/ 6930:
  33281. /***/ ((module) => {
  33282. "use strict";
  33283. module.exports = class DecoratorHandler {
  33284. constructor (handler) {
  33285. this.handler = handler
  33286. }
  33287. onConnect (...args) {
  33288. return this.handler.onConnect(...args)
  33289. }
  33290. onError (...args) {
  33291. return this.handler.onError(...args)
  33292. }
  33293. onUpgrade (...args) {
  33294. return this.handler.onUpgrade(...args)
  33295. }
  33296. onHeaders (...args) {
  33297. return this.handler.onHeaders(...args)
  33298. }
  33299. onData (...args) {
  33300. return this.handler.onData(...args)
  33301. }
  33302. onComplete (...args) {
  33303. return this.handler.onComplete(...args)
  33304. }
  33305. onBodySent (...args) {
  33306. return this.handler.onBodySent(...args)
  33307. }
  33308. }
  33309. /***/ }),
  33310. /***/ 2860:
  33311. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33312. "use strict";
  33313. const util = __nccwpck_require__(3983)
  33314. const { kBodyUsed } = __nccwpck_require__(2785)
  33315. const assert = __nccwpck_require__(9491)
  33316. const { InvalidArgumentError } = __nccwpck_require__(8045)
  33317. const EE = __nccwpck_require__(2361)
  33318. const redirectableStatusCodes = [300, 301, 302, 303, 307, 308]
  33319. const kBody = Symbol('body')
  33320. class BodyAsyncIterable {
  33321. constructor (body) {
  33322. this[kBody] = body
  33323. this[kBodyUsed] = false
  33324. }
  33325. async * [Symbol.asyncIterator] () {
  33326. assert(!this[kBodyUsed], 'disturbed')
  33327. this[kBodyUsed] = true
  33328. yield * this[kBody]
  33329. }
  33330. }
  33331. class RedirectHandler {
  33332. constructor (dispatch, maxRedirections, opts, handler) {
  33333. if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {
  33334. throw new InvalidArgumentError('maxRedirections must be a positive number')
  33335. }
  33336. util.validateHandler(handler, opts.method, opts.upgrade)
  33337. this.dispatch = dispatch
  33338. this.location = null
  33339. this.abort = null
  33340. this.opts = { ...opts, maxRedirections: 0 } // opts must be a copy
  33341. this.maxRedirections = maxRedirections
  33342. this.handler = handler
  33343. this.history = []
  33344. if (util.isStream(this.opts.body)) {
  33345. // TODO (fix): Provide some way for the user to cache the file to e.g. /tmp
  33346. // so that it can be dispatched again?
  33347. // TODO (fix): Do we need 100-expect support to provide a way to do this properly?
  33348. if (util.bodyLength(this.opts.body) === 0) {
  33349. this.opts.body
  33350. .on('data', function () {
  33351. assert(false)
  33352. })
  33353. }
  33354. if (typeof this.opts.body.readableDidRead !== 'boolean') {
  33355. this.opts.body[kBodyUsed] = false
  33356. EE.prototype.on.call(this.opts.body, 'data', function () {
  33357. this[kBodyUsed] = true
  33358. })
  33359. }
  33360. } else if (this.opts.body && typeof this.opts.body.pipeTo === 'function') {
  33361. // TODO (fix): We can't access ReadableStream internal state
  33362. // to determine whether or not it has been disturbed. This is just
  33363. // a workaround.
  33364. this.opts.body = new BodyAsyncIterable(this.opts.body)
  33365. } else if (
  33366. this.opts.body &&
  33367. typeof this.opts.body !== 'string' &&
  33368. !ArrayBuffer.isView(this.opts.body) &&
  33369. util.isIterable(this.opts.body)
  33370. ) {
  33371. // TODO: Should we allow re-using iterable if !this.opts.idempotent
  33372. // or through some other flag?
  33373. this.opts.body = new BodyAsyncIterable(this.opts.body)
  33374. }
  33375. }
  33376. onConnect (abort) {
  33377. this.abort = abort
  33378. this.handler.onConnect(abort, { history: this.history })
  33379. }
  33380. onUpgrade (statusCode, headers, socket) {
  33381. this.handler.onUpgrade(statusCode, headers, socket)
  33382. }
  33383. onError (error) {
  33384. this.handler.onError(error)
  33385. }
  33386. onHeaders (statusCode, headers, resume, statusText) {
  33387. this.location = this.history.length >= this.maxRedirections || util.isDisturbed(this.opts.body)
  33388. ? null
  33389. : parseLocation(statusCode, headers)
  33390. if (this.opts.origin) {
  33391. this.history.push(new URL(this.opts.path, this.opts.origin))
  33392. }
  33393. if (!this.location) {
  33394. return this.handler.onHeaders(statusCode, headers, resume, statusText)
  33395. }
  33396. const { origin, pathname, search } = util.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)))
  33397. const path = search ? `${pathname}${search}` : pathname
  33398. // Remove headers referring to the original URL.
  33399. // By default it is Host only, unless it's a 303 (see below), which removes also all Content-* headers.
  33400. // https://tools.ietf.org/html/rfc7231#section-6.4
  33401. this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin)
  33402. this.opts.path = path
  33403. this.opts.origin = origin
  33404. this.opts.maxRedirections = 0
  33405. this.opts.query = null
  33406. // https://tools.ietf.org/html/rfc7231#section-6.4.4
  33407. // In case of HTTP 303, always replace method to be either HEAD or GET
  33408. if (statusCode === 303 && this.opts.method !== 'HEAD') {
  33409. this.opts.method = 'GET'
  33410. this.opts.body = null
  33411. }
  33412. }
  33413. onData (chunk) {
  33414. if (this.location) {
  33415. /*
  33416. https://tools.ietf.org/html/rfc7231#section-6.4
  33417. TLDR: undici always ignores 3xx response bodies.
  33418. Redirection is used to serve the requested resource from another URL, so it is assumes that
  33419. no body is generated (and thus can be ignored). Even though generating a body is not prohibited.
  33420. For status 301, 302, 303, 307 and 308 (the latter from RFC 7238), the specs mention that the body usually
  33421. (which means it's optional and not mandated) contain just an hyperlink to the value of
  33422. the Location response header, so the body can be ignored safely.
  33423. For status 300, which is "Multiple Choices", the spec mentions both generating a Location
  33424. response header AND a response body with the other possible location to follow.
  33425. Since the spec explicitily chooses not to specify a format for such body and leave it to
  33426. servers and browsers implementors, we ignore the body as there is no specified way to eventually parse it.
  33427. */
  33428. } else {
  33429. return this.handler.onData(chunk)
  33430. }
  33431. }
  33432. onComplete (trailers) {
  33433. if (this.location) {
  33434. /*
  33435. https://tools.ietf.org/html/rfc7231#section-6.4
  33436. TLDR: undici always ignores 3xx response trailers as they are not expected in case of redirections
  33437. and neither are useful if present.
  33438. See comment on onData method above for more detailed informations.
  33439. */
  33440. this.location = null
  33441. this.abort = null
  33442. this.dispatch(this.opts, this)
  33443. } else {
  33444. this.handler.onComplete(trailers)
  33445. }
  33446. }
  33447. onBodySent (chunk) {
  33448. if (this.handler.onBodySent) {
  33449. this.handler.onBodySent(chunk)
  33450. }
  33451. }
  33452. }
  33453. function parseLocation (statusCode, headers) {
  33454. if (redirectableStatusCodes.indexOf(statusCode) === -1) {
  33455. return null
  33456. }
  33457. for (let i = 0; i < headers.length; i += 2) {
  33458. if (headers[i].toString().toLowerCase() === 'location') {
  33459. return headers[i + 1]
  33460. }
  33461. }
  33462. }
  33463. // https://tools.ietf.org/html/rfc7231#section-6.4.4
  33464. function shouldRemoveHeader (header, removeContent, unknownOrigin) {
  33465. return (
  33466. (header.length === 4 && header.toString().toLowerCase() === 'host') ||
  33467. (removeContent && header.toString().toLowerCase().indexOf('content-') === 0) ||
  33468. (unknownOrigin && header.length === 13 && header.toString().toLowerCase() === 'authorization') ||
  33469. (unknownOrigin && header.length === 6 && header.toString().toLowerCase() === 'cookie')
  33470. )
  33471. }
  33472. // https://tools.ietf.org/html/rfc7231#section-6.4
  33473. function cleanRequestHeaders (headers, removeContent, unknownOrigin) {
  33474. const ret = []
  33475. if (Array.isArray(headers)) {
  33476. for (let i = 0; i < headers.length; i += 2) {
  33477. if (!shouldRemoveHeader(headers[i], removeContent, unknownOrigin)) {
  33478. ret.push(headers[i], headers[i + 1])
  33479. }
  33480. }
  33481. } else if (headers && typeof headers === 'object') {
  33482. for (const key of Object.keys(headers)) {
  33483. if (!shouldRemoveHeader(key, removeContent, unknownOrigin)) {
  33484. ret.push(key, headers[key])
  33485. }
  33486. }
  33487. } else {
  33488. assert(headers == null, 'headers must be an object or an array')
  33489. }
  33490. return ret
  33491. }
  33492. module.exports = RedirectHandler
  33493. /***/ }),
  33494. /***/ 8861:
  33495. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33496. "use strict";
  33497. const RedirectHandler = __nccwpck_require__(2860)
  33498. function createRedirectInterceptor ({ maxRedirections: defaultMaxRedirections }) {
  33499. return (dispatch) => {
  33500. return function Intercept (opts, handler) {
  33501. const { maxRedirections = defaultMaxRedirections } = opts
  33502. if (!maxRedirections) {
  33503. return dispatch(opts, handler)
  33504. }
  33505. const redirectHandler = new RedirectHandler(dispatch, maxRedirections, opts, handler)
  33506. opts = { ...opts, maxRedirections: 0 } // Stop sub dispatcher from also redirecting.
  33507. return dispatch(opts, redirectHandler)
  33508. }
  33509. }
  33510. }
  33511. module.exports = createRedirectInterceptor
  33512. /***/ }),
  33513. /***/ 953:
  33514. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  33515. "use strict";
  33516. Object.defineProperty(exports, "__esModule", ({ value: true }));
  33517. 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;
  33518. const utils_1 = __nccwpck_require__(1891);
  33519. // C headers
  33520. var ERROR;
  33521. (function (ERROR) {
  33522. ERROR[ERROR["OK"] = 0] = "OK";
  33523. ERROR[ERROR["INTERNAL"] = 1] = "INTERNAL";
  33524. ERROR[ERROR["STRICT"] = 2] = "STRICT";
  33525. ERROR[ERROR["LF_EXPECTED"] = 3] = "LF_EXPECTED";
  33526. ERROR[ERROR["UNEXPECTED_CONTENT_LENGTH"] = 4] = "UNEXPECTED_CONTENT_LENGTH";
  33527. ERROR[ERROR["CLOSED_CONNECTION"] = 5] = "CLOSED_CONNECTION";
  33528. ERROR[ERROR["INVALID_METHOD"] = 6] = "INVALID_METHOD";
  33529. ERROR[ERROR["INVALID_URL"] = 7] = "INVALID_URL";
  33530. ERROR[ERROR["INVALID_CONSTANT"] = 8] = "INVALID_CONSTANT";
  33531. ERROR[ERROR["INVALID_VERSION"] = 9] = "INVALID_VERSION";
  33532. ERROR[ERROR["INVALID_HEADER_TOKEN"] = 10] = "INVALID_HEADER_TOKEN";
  33533. ERROR[ERROR["INVALID_CONTENT_LENGTH"] = 11] = "INVALID_CONTENT_LENGTH";
  33534. ERROR[ERROR["INVALID_CHUNK_SIZE"] = 12] = "INVALID_CHUNK_SIZE";
  33535. ERROR[ERROR["INVALID_STATUS"] = 13] = "INVALID_STATUS";
  33536. ERROR[ERROR["INVALID_EOF_STATE"] = 14] = "INVALID_EOF_STATE";
  33537. ERROR[ERROR["INVALID_TRANSFER_ENCODING"] = 15] = "INVALID_TRANSFER_ENCODING";
  33538. ERROR[ERROR["CB_MESSAGE_BEGIN"] = 16] = "CB_MESSAGE_BEGIN";
  33539. ERROR[ERROR["CB_HEADERS_COMPLETE"] = 17] = "CB_HEADERS_COMPLETE";
  33540. ERROR[ERROR["CB_MESSAGE_COMPLETE"] = 18] = "CB_MESSAGE_COMPLETE";
  33541. ERROR[ERROR["CB_CHUNK_HEADER"] = 19] = "CB_CHUNK_HEADER";
  33542. ERROR[ERROR["CB_CHUNK_COMPLETE"] = 20] = "CB_CHUNK_COMPLETE";
  33543. ERROR[ERROR["PAUSED"] = 21] = "PAUSED";
  33544. ERROR[ERROR["PAUSED_UPGRADE"] = 22] = "PAUSED_UPGRADE";
  33545. ERROR[ERROR["PAUSED_H2_UPGRADE"] = 23] = "PAUSED_H2_UPGRADE";
  33546. ERROR[ERROR["USER"] = 24] = "USER";
  33547. })(ERROR = exports.ERROR || (exports.ERROR = {}));
  33548. var TYPE;
  33549. (function (TYPE) {
  33550. TYPE[TYPE["BOTH"] = 0] = "BOTH";
  33551. TYPE[TYPE["REQUEST"] = 1] = "REQUEST";
  33552. TYPE[TYPE["RESPONSE"] = 2] = "RESPONSE";
  33553. })(TYPE = exports.TYPE || (exports.TYPE = {}));
  33554. var FLAGS;
  33555. (function (FLAGS) {
  33556. FLAGS[FLAGS["CONNECTION_KEEP_ALIVE"] = 1] = "CONNECTION_KEEP_ALIVE";
  33557. FLAGS[FLAGS["CONNECTION_CLOSE"] = 2] = "CONNECTION_CLOSE";
  33558. FLAGS[FLAGS["CONNECTION_UPGRADE"] = 4] = "CONNECTION_UPGRADE";
  33559. FLAGS[FLAGS["CHUNKED"] = 8] = "CHUNKED";
  33560. FLAGS[FLAGS["UPGRADE"] = 16] = "UPGRADE";
  33561. FLAGS[FLAGS["CONTENT_LENGTH"] = 32] = "CONTENT_LENGTH";
  33562. FLAGS[FLAGS["SKIPBODY"] = 64] = "SKIPBODY";
  33563. FLAGS[FLAGS["TRAILING"] = 128] = "TRAILING";
  33564. // 1 << 8 is unused
  33565. FLAGS[FLAGS["TRANSFER_ENCODING"] = 512] = "TRANSFER_ENCODING";
  33566. })(FLAGS = exports.FLAGS || (exports.FLAGS = {}));
  33567. var LENIENT_FLAGS;
  33568. (function (LENIENT_FLAGS) {
  33569. LENIENT_FLAGS[LENIENT_FLAGS["HEADERS"] = 1] = "HEADERS";
  33570. LENIENT_FLAGS[LENIENT_FLAGS["CHUNKED_LENGTH"] = 2] = "CHUNKED_LENGTH";
  33571. LENIENT_FLAGS[LENIENT_FLAGS["KEEP_ALIVE"] = 4] = "KEEP_ALIVE";
  33572. })(LENIENT_FLAGS = exports.LENIENT_FLAGS || (exports.LENIENT_FLAGS = {}));
  33573. var METHODS;
  33574. (function (METHODS) {
  33575. METHODS[METHODS["DELETE"] = 0] = "DELETE";
  33576. METHODS[METHODS["GET"] = 1] = "GET";
  33577. METHODS[METHODS["HEAD"] = 2] = "HEAD";
  33578. METHODS[METHODS["POST"] = 3] = "POST";
  33579. METHODS[METHODS["PUT"] = 4] = "PUT";
  33580. /* pathological */
  33581. METHODS[METHODS["CONNECT"] = 5] = "CONNECT";
  33582. METHODS[METHODS["OPTIONS"] = 6] = "OPTIONS";
  33583. METHODS[METHODS["TRACE"] = 7] = "TRACE";
  33584. /* WebDAV */
  33585. METHODS[METHODS["COPY"] = 8] = "COPY";
  33586. METHODS[METHODS["LOCK"] = 9] = "LOCK";
  33587. METHODS[METHODS["MKCOL"] = 10] = "MKCOL";
  33588. METHODS[METHODS["MOVE"] = 11] = "MOVE";
  33589. METHODS[METHODS["PROPFIND"] = 12] = "PROPFIND";
  33590. METHODS[METHODS["PROPPATCH"] = 13] = "PROPPATCH";
  33591. METHODS[METHODS["SEARCH"] = 14] = "SEARCH";
  33592. METHODS[METHODS["UNLOCK"] = 15] = "UNLOCK";
  33593. METHODS[METHODS["BIND"] = 16] = "BIND";
  33594. METHODS[METHODS["REBIND"] = 17] = "REBIND";
  33595. METHODS[METHODS["UNBIND"] = 18] = "UNBIND";
  33596. METHODS[METHODS["ACL"] = 19] = "ACL";
  33597. /* subversion */
  33598. METHODS[METHODS["REPORT"] = 20] = "REPORT";
  33599. METHODS[METHODS["MKACTIVITY"] = 21] = "MKACTIVITY";
  33600. METHODS[METHODS["CHECKOUT"] = 22] = "CHECKOUT";
  33601. METHODS[METHODS["MERGE"] = 23] = "MERGE";
  33602. /* upnp */
  33603. METHODS[METHODS["M-SEARCH"] = 24] = "M-SEARCH";
  33604. METHODS[METHODS["NOTIFY"] = 25] = "NOTIFY";
  33605. METHODS[METHODS["SUBSCRIBE"] = 26] = "SUBSCRIBE";
  33606. METHODS[METHODS["UNSUBSCRIBE"] = 27] = "UNSUBSCRIBE";
  33607. /* RFC-5789 */
  33608. METHODS[METHODS["PATCH"] = 28] = "PATCH";
  33609. METHODS[METHODS["PURGE"] = 29] = "PURGE";
  33610. /* CalDAV */
  33611. METHODS[METHODS["MKCALENDAR"] = 30] = "MKCALENDAR";
  33612. /* RFC-2068, section 19.6.1.2 */
  33613. METHODS[METHODS["LINK"] = 31] = "LINK";
  33614. METHODS[METHODS["UNLINK"] = 32] = "UNLINK";
  33615. /* icecast */
  33616. METHODS[METHODS["SOURCE"] = 33] = "SOURCE";
  33617. /* RFC-7540, section 11.6 */
  33618. METHODS[METHODS["PRI"] = 34] = "PRI";
  33619. /* RFC-2326 RTSP */
  33620. METHODS[METHODS["DESCRIBE"] = 35] = "DESCRIBE";
  33621. METHODS[METHODS["ANNOUNCE"] = 36] = "ANNOUNCE";
  33622. METHODS[METHODS["SETUP"] = 37] = "SETUP";
  33623. METHODS[METHODS["PLAY"] = 38] = "PLAY";
  33624. METHODS[METHODS["PAUSE"] = 39] = "PAUSE";
  33625. METHODS[METHODS["TEARDOWN"] = 40] = "TEARDOWN";
  33626. METHODS[METHODS["GET_PARAMETER"] = 41] = "GET_PARAMETER";
  33627. METHODS[METHODS["SET_PARAMETER"] = 42] = "SET_PARAMETER";
  33628. METHODS[METHODS["REDIRECT"] = 43] = "REDIRECT";
  33629. METHODS[METHODS["RECORD"] = 44] = "RECORD";
  33630. /* RAOP */
  33631. METHODS[METHODS["FLUSH"] = 45] = "FLUSH";
  33632. })(METHODS = exports.METHODS || (exports.METHODS = {}));
  33633. exports.METHODS_HTTP = [
  33634. METHODS.DELETE,
  33635. METHODS.GET,
  33636. METHODS.HEAD,
  33637. METHODS.POST,
  33638. METHODS.PUT,
  33639. METHODS.CONNECT,
  33640. METHODS.OPTIONS,
  33641. METHODS.TRACE,
  33642. METHODS.COPY,
  33643. METHODS.LOCK,
  33644. METHODS.MKCOL,
  33645. METHODS.MOVE,
  33646. METHODS.PROPFIND,
  33647. METHODS.PROPPATCH,
  33648. METHODS.SEARCH,
  33649. METHODS.UNLOCK,
  33650. METHODS.BIND,
  33651. METHODS.REBIND,
  33652. METHODS.UNBIND,
  33653. METHODS.ACL,
  33654. METHODS.REPORT,
  33655. METHODS.MKACTIVITY,
  33656. METHODS.CHECKOUT,
  33657. METHODS.MERGE,
  33658. METHODS['M-SEARCH'],
  33659. METHODS.NOTIFY,
  33660. METHODS.SUBSCRIBE,
  33661. METHODS.UNSUBSCRIBE,
  33662. METHODS.PATCH,
  33663. METHODS.PURGE,
  33664. METHODS.MKCALENDAR,
  33665. METHODS.LINK,
  33666. METHODS.UNLINK,
  33667. METHODS.PRI,
  33668. // TODO(indutny): should we allow it with HTTP?
  33669. METHODS.SOURCE,
  33670. ];
  33671. exports.METHODS_ICE = [
  33672. METHODS.SOURCE,
  33673. ];
  33674. exports.METHODS_RTSP = [
  33675. METHODS.OPTIONS,
  33676. METHODS.DESCRIBE,
  33677. METHODS.ANNOUNCE,
  33678. METHODS.SETUP,
  33679. METHODS.PLAY,
  33680. METHODS.PAUSE,
  33681. METHODS.TEARDOWN,
  33682. METHODS.GET_PARAMETER,
  33683. METHODS.SET_PARAMETER,
  33684. METHODS.REDIRECT,
  33685. METHODS.RECORD,
  33686. METHODS.FLUSH,
  33687. // For AirPlay
  33688. METHODS.GET,
  33689. METHODS.POST,
  33690. ];
  33691. exports.METHOD_MAP = utils_1.enumToMap(METHODS);
  33692. exports.H_METHOD_MAP = {};
  33693. Object.keys(exports.METHOD_MAP).forEach((key) => {
  33694. if (/^H/.test(key)) {
  33695. exports.H_METHOD_MAP[key] = exports.METHOD_MAP[key];
  33696. }
  33697. });
  33698. var FINISH;
  33699. (function (FINISH) {
  33700. FINISH[FINISH["SAFE"] = 0] = "SAFE";
  33701. FINISH[FINISH["SAFE_WITH_CB"] = 1] = "SAFE_WITH_CB";
  33702. FINISH[FINISH["UNSAFE"] = 2] = "UNSAFE";
  33703. })(FINISH = exports.FINISH || (exports.FINISH = {}));
  33704. exports.ALPHA = [];
  33705. for (let i = 'A'.charCodeAt(0); i <= 'Z'.charCodeAt(0); i++) {
  33706. // Upper case
  33707. exports.ALPHA.push(String.fromCharCode(i));
  33708. // Lower case
  33709. exports.ALPHA.push(String.fromCharCode(i + 0x20));
  33710. }
  33711. exports.NUM_MAP = {
  33712. 0: 0, 1: 1, 2: 2, 3: 3, 4: 4,
  33713. 5: 5, 6: 6, 7: 7, 8: 8, 9: 9,
  33714. };
  33715. exports.HEX_MAP = {
  33716. 0: 0, 1: 1, 2: 2, 3: 3, 4: 4,
  33717. 5: 5, 6: 6, 7: 7, 8: 8, 9: 9,
  33718. A: 0XA, B: 0XB, C: 0XC, D: 0XD, E: 0XE, F: 0XF,
  33719. a: 0xa, b: 0xb, c: 0xc, d: 0xd, e: 0xe, f: 0xf,
  33720. };
  33721. exports.NUM = [
  33722. '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
  33723. ];
  33724. exports.ALPHANUM = exports.ALPHA.concat(exports.NUM);
  33725. exports.MARK = ['-', '_', '.', '!', '~', '*', '\'', '(', ')'];
  33726. exports.USERINFO_CHARS = exports.ALPHANUM
  33727. .concat(exports.MARK)
  33728. .concat(['%', ';', ':', '&', '=', '+', '$', ',']);
  33729. // TODO(indutny): use RFC
  33730. exports.STRICT_URL_CHAR = [
  33731. '!', '"', '$', '%', '&', '\'',
  33732. '(', ')', '*', '+', ',', '-', '.', '/',
  33733. ':', ';', '<', '=', '>',
  33734. '@', '[', '\\', ']', '^', '_',
  33735. '`',
  33736. '{', '|', '}', '~',
  33737. ].concat(exports.ALPHANUM);
  33738. exports.URL_CHAR = exports.STRICT_URL_CHAR
  33739. .concat(['\t', '\f']);
  33740. // All characters with 0x80 bit set to 1
  33741. for (let i = 0x80; i <= 0xff; i++) {
  33742. exports.URL_CHAR.push(i);
  33743. }
  33744. exports.HEX = exports.NUM.concat(['a', 'b', 'c', 'd', 'e', 'f', 'A', 'B', 'C', 'D', 'E', 'F']);
  33745. /* Tokens as defined by rfc 2616. Also lowercases them.
  33746. * token = 1*<any CHAR except CTLs or separators>
  33747. * separators = "(" | ")" | "<" | ">" | "@"
  33748. * | "," | ";" | ":" | "\" | <">
  33749. * | "/" | "[" | "]" | "?" | "="
  33750. * | "{" | "}" | SP | HT
  33751. */
  33752. exports.STRICT_TOKEN = [
  33753. '!', '#', '$', '%', '&', '\'',
  33754. '*', '+', '-', '.',
  33755. '^', '_', '`',
  33756. '|', '~',
  33757. ].concat(exports.ALPHANUM);
  33758. exports.TOKEN = exports.STRICT_TOKEN.concat([' ']);
  33759. /*
  33760. * Verify that a char is a valid visible (printable) US-ASCII
  33761. * character or %x80-FF
  33762. */
  33763. exports.HEADER_CHARS = ['\t'];
  33764. for (let i = 32; i <= 255; i++) {
  33765. if (i !== 127) {
  33766. exports.HEADER_CHARS.push(i);
  33767. }
  33768. }
  33769. // ',' = \x44
  33770. exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c) => c !== 44);
  33771. exports.MAJOR = exports.NUM_MAP;
  33772. exports.MINOR = exports.MAJOR;
  33773. var HEADER_STATE;
  33774. (function (HEADER_STATE) {
  33775. HEADER_STATE[HEADER_STATE["GENERAL"] = 0] = "GENERAL";
  33776. HEADER_STATE[HEADER_STATE["CONNECTION"] = 1] = "CONNECTION";
  33777. HEADER_STATE[HEADER_STATE["CONTENT_LENGTH"] = 2] = "CONTENT_LENGTH";
  33778. HEADER_STATE[HEADER_STATE["TRANSFER_ENCODING"] = 3] = "TRANSFER_ENCODING";
  33779. HEADER_STATE[HEADER_STATE["UPGRADE"] = 4] = "UPGRADE";
  33780. HEADER_STATE[HEADER_STATE["CONNECTION_KEEP_ALIVE"] = 5] = "CONNECTION_KEEP_ALIVE";
  33781. HEADER_STATE[HEADER_STATE["CONNECTION_CLOSE"] = 6] = "CONNECTION_CLOSE";
  33782. HEADER_STATE[HEADER_STATE["CONNECTION_UPGRADE"] = 7] = "CONNECTION_UPGRADE";
  33783. HEADER_STATE[HEADER_STATE["TRANSFER_ENCODING_CHUNKED"] = 8] = "TRANSFER_ENCODING_CHUNKED";
  33784. })(HEADER_STATE = exports.HEADER_STATE || (exports.HEADER_STATE = {}));
  33785. exports.SPECIAL_HEADERS = {
  33786. 'connection': HEADER_STATE.CONNECTION,
  33787. 'content-length': HEADER_STATE.CONTENT_LENGTH,
  33788. 'proxy-connection': HEADER_STATE.CONNECTION,
  33789. 'transfer-encoding': HEADER_STATE.TRANSFER_ENCODING,
  33790. 'upgrade': HEADER_STATE.UPGRADE,
  33791. };
  33792. //# sourceMappingURL=constants.js.map
  33793. /***/ }),
  33794. /***/ 1145:
  33795. /***/ ((module) => {
  33796. module.exports = 'AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9v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F9zZXRfbGVuaWVudF9rZWVwX2FsaXZlACQkbGxodHRwX3NldF9sZW5pZW50X3RyYW5zZmVyX2VuY29kaW5nACUYbGxodHRwX21lc3NhZ2VfbmVlZHNfZW9mAD8JFwEAQQELEQECAwQFCwYHNTk3MS8tJyspCsLgAkUCAAsIABCIgICAAAsZACAAEMKAgIAAGiAAIAI2AjggACABOgAoCxwAIAAgAC8BMiAALQAuIAAQwYCAgAAQgICAgAALKgEBf0HAABDGgICAACIBEMKAgIAAGiABQYCIgIAANgI4IAEgADoAKCABCwoAIAAQyICAgAALBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LRQEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABDCgICAABogACAENgI4IAAgAzoAKCAAIAI6AC0gACABNgIYCxEAIAAgASABIAJqEMOAgIAACxAAIABBAEHcABDMgICAABoLZwEBf0EAIQECQCAAKAIMDQACQAJAAkACQCAALQAvDgMBAAMCCyAAKAI4IgFFDQAgASgCLCIBRQ0AIAAgARGAgICAAAAiAQ0DC0EADwsQyoCAgAAACyAAQcOWgIAANgIQQQ4hAQsgAQseAAJAIAAoAgwNACAAQdGbgIAANgIQIABBFTYCDAsLFgACQCAAKAIMQRVHDQAgAEEANgIMCwsWAAJAIAAoAgxBFkcNACAAQQA2AgwLCwcAIAAoAgwLBwAgACgCEAsJACAAIAE2AhALBwAgACgCFAsiAAJAIABBJEkNABDKgICAAAALIABBAnRBoLOAgABqKAIACyIAAkAgAEEuSQ0AEMqAgIAAAAsgAEECdEGwtICAAGooAgAL7gsBAX9B66iAgAAhAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAk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JxRQ0BDAILQQAhAyAALwEwIgRBAXFFDQELQQEhAyAALQAoQQFGDQAgAC8BMkH//wNxIgVBnH9qQeQASQ0AIAVBzAFGDQAgBUGwAkYNACAEQcAAcQ0AQQAhAyAEQYgEcUGABEYNACAEQShxQQBHIQMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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AJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxweHyAhIyUoP0BBREVGR0hJSktMTU9QUVJT3gNXWVtcXWBiZWZnaGlqa2xtb3BxcnN0dXZ3eHl6e3x9foABggGFAYYBhwGJAYsBjAGNAY4BjwGQAZEBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBuAG5AboBuwG8Ab0BvgG/AcABwQHCAcMBxAHFAcYBxwHIAck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xNCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAg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AAAAAAAAAAAAAAAAAAAACIB/QsDACAAIAH9CwMAIABBMGogAf0LAwAgAEEgaiAB/QsDACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBExQVFhcYGRob4AHfARwdHtUBHyAhIiMkJdQBJicoKSorLNMB0gEtLtEB0AEvMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUbbAUdISUrPAc4BS80BTMwBTU5PUFFSU1RVVldYWVpb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QDBYLQQEhEAwVC0GvASEQDBQLQbABIRAMEwtBsQEhEAwSC0GzASEQDBELQbIBIRAMEAtBtAEhEAwPC0G1ASEQDA4LQbYBIRAMDQtBtwEhEAwMC0G4ASEQDAsLQbkBIRAMCgtBugEhEAwJC0G7ASEQDAgLQcYBIRAMBwtBvAEhEAwGC0G9ASEQDAULQb4BIRAMBAtBvwEhEAwDC0HAASEQDAILQcIBIRAMAQtBwQEhEAsDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJA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IBIAJHDUFBMSEQDPMDCyAALQAuQQFGDesDDIcCCyAAIAEiASACEMCAgIAAQQFHDeYBIABCADcDIAznAQsgACABIgEgAhC0gICAACIQDecBIAEhAQz1AgsCQCABIgEgAkcNAEEGIRAM8AMLIAAgAUEBaiIBIAIQu4CAgAAiEA3oASABIQEMMQsgAEIANwMgQRIhEAzVAwsgASIQIAJHDStBHSEQDO0DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA0ACQCABLQAAQfC3gIAAai0AACIQQQJGDQACQCAQQX9qDgTlAewBAOsB7AELIAFBAWohAUEIIRAMyAMLIAFBAWoiASACRw0AC0EVIRAM3wMLQRUhEAzeAwsDQAJAIAEtAABB8L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mAgAA2AhAgAEEINgIMQQAhEAy5AQsgAEEANgIAC0EAIRAgAEEANgIcIAAgATYCFCAAQZCzgIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEE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. "use strict";
  33805. Object.defineProperty(exports, "__esModule", ({ value: true }));
  33806. exports.enumToMap = void 0;
  33807. function enumToMap(obj) {
  33808. const res = {};
  33809. Object.keys(obj).forEach((key) => {
  33810. const value = obj[key];
  33811. if (typeof value === 'number') {
  33812. res[key] = value;
  33813. }
  33814. });
  33815. return res;
  33816. }
  33817. exports.enumToMap = enumToMap;
  33818. //# sourceMappingURL=utils.js.map
  33819. /***/ }),
  33820. /***/ 6771:
  33821. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33822. "use strict";
  33823. const { kClients } = __nccwpck_require__(2785)
  33824. const Agent = __nccwpck_require__(7890)
  33825. const {
  33826. kAgent,
  33827. kMockAgentSet,
  33828. kMockAgentGet,
  33829. kDispatches,
  33830. kIsMockActive,
  33831. kNetConnect,
  33832. kGetNetConnect,
  33833. kOptions,
  33834. kFactory
  33835. } = __nccwpck_require__(4347)
  33836. const MockClient = __nccwpck_require__(8687)
  33837. const MockPool = __nccwpck_require__(6193)
  33838. const { matchValue, buildMockOptions } = __nccwpck_require__(9323)
  33839. const { InvalidArgumentError, UndiciError } = __nccwpck_require__(8045)
  33840. const Dispatcher = __nccwpck_require__(412)
  33841. const Pluralizer = __nccwpck_require__(8891)
  33842. const PendingInterceptorsFormatter = __nccwpck_require__(6823)
  33843. class FakeWeakRef {
  33844. constructor (value) {
  33845. this.value = value
  33846. }
  33847. deref () {
  33848. return this.value
  33849. }
  33850. }
  33851. class MockAgent extends Dispatcher {
  33852. constructor (opts) {
  33853. super(opts)
  33854. this[kNetConnect] = true
  33855. this[kIsMockActive] = true
  33856. // Instantiate Agent and encapsulate
  33857. if ((opts && opts.agent && typeof opts.agent.dispatch !== 'function')) {
  33858. throw new InvalidArgumentError('Argument opts.agent must implement Agent')
  33859. }
  33860. const agent = opts && opts.agent ? opts.agent : new Agent(opts)
  33861. this[kAgent] = agent
  33862. this[kClients] = agent[kClients]
  33863. this[kOptions] = buildMockOptions(opts)
  33864. }
  33865. get (origin) {
  33866. let dispatcher = this[kMockAgentGet](origin)
  33867. if (!dispatcher) {
  33868. dispatcher = this[kFactory](origin)
  33869. this[kMockAgentSet](origin, dispatcher)
  33870. }
  33871. return dispatcher
  33872. }
  33873. dispatch (opts, handler) {
  33874. // Call MockAgent.get to perform additional setup before dispatching as normal
  33875. this.get(opts.origin)
  33876. return this[kAgent].dispatch(opts, handler)
  33877. }
  33878. async close () {
  33879. await this[kAgent].close()
  33880. this[kClients].clear()
  33881. }
  33882. deactivate () {
  33883. this[kIsMockActive] = false
  33884. }
  33885. activate () {
  33886. this[kIsMockActive] = true
  33887. }
  33888. enableNetConnect (matcher) {
  33889. if (typeof matcher === 'string' || typeof matcher === 'function' || matcher instanceof RegExp) {
  33890. if (Array.isArray(this[kNetConnect])) {
  33891. this[kNetConnect].push(matcher)
  33892. } else {
  33893. this[kNetConnect] = [matcher]
  33894. }
  33895. } else if (typeof matcher === 'undefined') {
  33896. this[kNetConnect] = true
  33897. } else {
  33898. throw new InvalidArgumentError('Unsupported matcher. Must be one of String|Function|RegExp.')
  33899. }
  33900. }
  33901. disableNetConnect () {
  33902. this[kNetConnect] = false
  33903. }
  33904. // This is required to bypass issues caused by using global symbols - see:
  33905. // https://github.com/nodejs/undici/issues/1447
  33906. get isMockActive () {
  33907. return this[kIsMockActive]
  33908. }
  33909. [kMockAgentSet] (origin, dispatcher) {
  33910. this[kClients].set(origin, new FakeWeakRef(dispatcher))
  33911. }
  33912. [kFactory] (origin) {
  33913. const mockOptions = Object.assign({ agent: this }, this[kOptions])
  33914. return this[kOptions] && this[kOptions].connections === 1
  33915. ? new MockClient(origin, mockOptions)
  33916. : new MockPool(origin, mockOptions)
  33917. }
  33918. [kMockAgentGet] (origin) {
  33919. // First check if we can immediately find it
  33920. const ref = this[kClients].get(origin)
  33921. if (ref) {
  33922. return ref.deref()
  33923. }
  33924. // If the origin is not a string create a dummy parent pool and return to user
  33925. if (typeof origin !== 'string') {
  33926. const dispatcher = this[kFactory]('http://localhost:9999')
  33927. this[kMockAgentSet](origin, dispatcher)
  33928. return dispatcher
  33929. }
  33930. // If we match, create a pool and assign the same dispatches
  33931. for (const [keyMatcher, nonExplicitRef] of Array.from(this[kClients])) {
  33932. const nonExplicitDispatcher = nonExplicitRef.deref()
  33933. if (nonExplicitDispatcher && typeof keyMatcher !== 'string' && matchValue(keyMatcher, origin)) {
  33934. const dispatcher = this[kFactory](origin)
  33935. this[kMockAgentSet](origin, dispatcher)
  33936. dispatcher[kDispatches] = nonExplicitDispatcher[kDispatches]
  33937. return dispatcher
  33938. }
  33939. }
  33940. }
  33941. [kGetNetConnect] () {
  33942. return this[kNetConnect]
  33943. }
  33944. pendingInterceptors () {
  33945. const mockAgentClients = this[kClients]
  33946. return Array.from(mockAgentClients.entries())
  33947. .flatMap(([origin, scope]) => scope.deref()[kDispatches].map(dispatch => ({ ...dispatch, origin })))
  33948. .filter(({ pending }) => pending)
  33949. }
  33950. assertNoPendingInterceptors ({ pendingInterceptorsFormatter = new PendingInterceptorsFormatter() } = {}) {
  33951. const pending = this.pendingInterceptors()
  33952. if (pending.length === 0) {
  33953. return
  33954. }
  33955. const pluralizer = new Pluralizer('interceptor', 'interceptors').pluralize(pending.length)
  33956. throw new UndiciError(`
  33957. ${pluralizer.count} ${pluralizer.noun} ${pluralizer.is} pending:
  33958. ${pendingInterceptorsFormatter.format(pending)}
  33959. `.trim())
  33960. }
  33961. }
  33962. module.exports = MockAgent
  33963. /***/ }),
  33964. /***/ 8687:
  33965. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33966. "use strict";
  33967. const { promisify } = __nccwpck_require__(3837)
  33968. const Client = __nccwpck_require__(3598)
  33969. const { buildMockDispatch } = __nccwpck_require__(9323)
  33970. const {
  33971. kDispatches,
  33972. kMockAgent,
  33973. kClose,
  33974. kOriginalClose,
  33975. kOrigin,
  33976. kOriginalDispatch,
  33977. kConnected
  33978. } = __nccwpck_require__(4347)
  33979. const { MockInterceptor } = __nccwpck_require__(410)
  33980. const Symbols = __nccwpck_require__(2785)
  33981. const { InvalidArgumentError } = __nccwpck_require__(8045)
  33982. /**
  33983. * MockClient provides an API that extends the Client to influence the mockDispatches.
  33984. */
  33985. class MockClient extends Client {
  33986. constructor (origin, opts) {
  33987. super(origin, opts)
  33988. if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {
  33989. throw new InvalidArgumentError('Argument opts.agent must implement Agent')
  33990. }
  33991. this[kMockAgent] = opts.agent
  33992. this[kOrigin] = origin
  33993. this[kDispatches] = []
  33994. this[kConnected] = 1
  33995. this[kOriginalDispatch] = this.dispatch
  33996. this[kOriginalClose] = this.close.bind(this)
  33997. this.dispatch = buildMockDispatch.call(this)
  33998. this.close = this[kClose]
  33999. }
  34000. get [Symbols.kConnected] () {
  34001. return this[kConnected]
  34002. }
  34003. /**
  34004. * Sets up the base interceptor for mocking replies from undici.
  34005. */
  34006. intercept (opts) {
  34007. return new MockInterceptor(opts, this[kDispatches])
  34008. }
  34009. async [kClose] () {
  34010. await promisify(this[kOriginalClose])()
  34011. this[kConnected] = 0
  34012. this[kMockAgent][Symbols.kClients].delete(this[kOrigin])
  34013. }
  34014. }
  34015. module.exports = MockClient
  34016. /***/ }),
  34017. /***/ 888:
  34018. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34019. "use strict";
  34020. const { UndiciError } = __nccwpck_require__(8045)
  34021. class MockNotMatchedError extends UndiciError {
  34022. constructor (message) {
  34023. super(message)
  34024. Error.captureStackTrace(this, MockNotMatchedError)
  34025. this.name = 'MockNotMatchedError'
  34026. this.message = message || 'The request does not match any registered mock dispatches'
  34027. this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED'
  34028. }
  34029. }
  34030. module.exports = {
  34031. MockNotMatchedError
  34032. }
  34033. /***/ }),
  34034. /***/ 410:
  34035. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34036. "use strict";
  34037. const { getResponseData, buildKey, addMockDispatch } = __nccwpck_require__(9323)
  34038. const {
  34039. kDispatches,
  34040. kDispatchKey,
  34041. kDefaultHeaders,
  34042. kDefaultTrailers,
  34043. kContentLength,
  34044. kMockDispatch
  34045. } = __nccwpck_require__(4347)
  34046. const { InvalidArgumentError } = __nccwpck_require__(8045)
  34047. const { buildURL } = __nccwpck_require__(3983)
  34048. /**
  34049. * Defines the scope API for an interceptor reply
  34050. */
  34051. class MockScope {
  34052. constructor (mockDispatch) {
  34053. this[kMockDispatch] = mockDispatch
  34054. }
  34055. /**
  34056. * Delay a reply by a set amount in ms.
  34057. */
  34058. delay (waitInMs) {
  34059. if (typeof waitInMs !== 'number' || !Number.isInteger(waitInMs) || waitInMs <= 0) {
  34060. throw new InvalidArgumentError('waitInMs must be a valid integer > 0')
  34061. }
  34062. this[kMockDispatch].delay = waitInMs
  34063. return this
  34064. }
  34065. /**
  34066. * For a defined reply, never mark as consumed.
  34067. */
  34068. persist () {
  34069. this[kMockDispatch].persist = true
  34070. return this
  34071. }
  34072. /**
  34073. * Allow one to define a reply for a set amount of matching requests.
  34074. */
  34075. times (repeatTimes) {
  34076. if (typeof repeatTimes !== 'number' || !Number.isInteger(repeatTimes) || repeatTimes <= 0) {
  34077. throw new InvalidArgumentError('repeatTimes must be a valid integer > 0')
  34078. }
  34079. this[kMockDispatch].times = repeatTimes
  34080. return this
  34081. }
  34082. }
  34083. /**
  34084. * Defines an interceptor for a Mock
  34085. */
  34086. class MockInterceptor {
  34087. constructor (opts, mockDispatches) {
  34088. if (typeof opts !== 'object') {
  34089. throw new InvalidArgumentError('opts must be an object')
  34090. }
  34091. if (typeof opts.path === 'undefined') {
  34092. throw new InvalidArgumentError('opts.path must be defined')
  34093. }
  34094. if (typeof opts.method === 'undefined') {
  34095. opts.method = 'GET'
  34096. }
  34097. // See https://github.com/nodejs/undici/issues/1245
  34098. // As per RFC 3986, clients are not supposed to send URI
  34099. // fragments to servers when they retrieve a document,
  34100. if (typeof opts.path === 'string') {
  34101. if (opts.query) {
  34102. opts.path = buildURL(opts.path, opts.query)
  34103. } else {
  34104. // Matches https://github.com/nodejs/undici/blob/main/lib/fetch/index.js#L1811
  34105. const parsedURL = new URL(opts.path, 'data://')
  34106. opts.path = parsedURL.pathname + parsedURL.search
  34107. }
  34108. }
  34109. if (typeof opts.method === 'string') {
  34110. opts.method = opts.method.toUpperCase()
  34111. }
  34112. this[kDispatchKey] = buildKey(opts)
  34113. this[kDispatches] = mockDispatches
  34114. this[kDefaultHeaders] = {}
  34115. this[kDefaultTrailers] = {}
  34116. this[kContentLength] = false
  34117. }
  34118. createMockScopeDispatchData (statusCode, data, responseOptions = {}) {
  34119. const responseData = getResponseData(data)
  34120. const contentLength = this[kContentLength] ? { 'content-length': responseData.length } : {}
  34121. const headers = { ...this[kDefaultHeaders], ...contentLength, ...responseOptions.headers }
  34122. const trailers = { ...this[kDefaultTrailers], ...responseOptions.trailers }
  34123. return { statusCode, data, headers, trailers }
  34124. }
  34125. validateReplyParameters (statusCode, data, responseOptions) {
  34126. if (typeof statusCode === 'undefined') {
  34127. throw new InvalidArgumentError('statusCode must be defined')
  34128. }
  34129. if (typeof data === 'undefined') {
  34130. throw new InvalidArgumentError('data must be defined')
  34131. }
  34132. if (typeof responseOptions !== 'object') {
  34133. throw new InvalidArgumentError('responseOptions must be an object')
  34134. }
  34135. }
  34136. /**
  34137. * Mock an undici request with a defined reply.
  34138. */
  34139. reply (replyData) {
  34140. // Values of reply aren't available right now as they
  34141. // can only be available when the reply callback is invoked.
  34142. if (typeof replyData === 'function') {
  34143. // We'll first wrap the provided callback in another function,
  34144. // this function will properly resolve the data from the callback
  34145. // when invoked.
  34146. const wrappedDefaultsCallback = (opts) => {
  34147. // Our reply options callback contains the parameter for statusCode, data and options.
  34148. const resolvedData = replyData(opts)
  34149. // Check if it is in the right format
  34150. if (typeof resolvedData !== 'object') {
  34151. throw new InvalidArgumentError('reply options callback must return an object')
  34152. }
  34153. const { statusCode, data = '', responseOptions = {} } = resolvedData
  34154. this.validateReplyParameters(statusCode, data, responseOptions)
  34155. // Since the values can be obtained immediately we return them
  34156. // from this higher order function that will be resolved later.
  34157. return {
  34158. ...this.createMockScopeDispatchData(statusCode, data, responseOptions)
  34159. }
  34160. }
  34161. // Add usual dispatch data, but this time set the data parameter to function that will eventually provide data.
  34162. const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], wrappedDefaultsCallback)
  34163. return new MockScope(newMockDispatch)
  34164. }
  34165. // We can have either one or three parameters, if we get here,
  34166. // we should have 1-3 parameters. So we spread the arguments of
  34167. // this function to obtain the parameters, since replyData will always
  34168. // just be the statusCode.
  34169. const [statusCode, data = '', responseOptions = {}] = [...arguments]
  34170. this.validateReplyParameters(statusCode, data, responseOptions)
  34171. // Send in-already provided data like usual
  34172. const dispatchData = this.createMockScopeDispatchData(statusCode, data, responseOptions)
  34173. const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], dispatchData)
  34174. return new MockScope(newMockDispatch)
  34175. }
  34176. /**
  34177. * Mock an undici request with a defined error.
  34178. */
  34179. replyWithError (error) {
  34180. if (typeof error === 'undefined') {
  34181. throw new InvalidArgumentError('error must be defined')
  34182. }
  34183. const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], { error })
  34184. return new MockScope(newMockDispatch)
  34185. }
  34186. /**
  34187. * Set default reply headers on the interceptor for subsequent replies
  34188. */
  34189. defaultReplyHeaders (headers) {
  34190. if (typeof headers === 'undefined') {
  34191. throw new InvalidArgumentError('headers must be defined')
  34192. }
  34193. this[kDefaultHeaders] = headers
  34194. return this
  34195. }
  34196. /**
  34197. * Set default reply trailers on the interceptor for subsequent replies
  34198. */
  34199. defaultReplyTrailers (trailers) {
  34200. if (typeof trailers === 'undefined') {
  34201. throw new InvalidArgumentError('trailers must be defined')
  34202. }
  34203. this[kDefaultTrailers] = trailers
  34204. return this
  34205. }
  34206. /**
  34207. * Set reply content length header for replies on the interceptor
  34208. */
  34209. replyContentLength () {
  34210. this[kContentLength] = true
  34211. return this
  34212. }
  34213. }
  34214. module.exports.MockInterceptor = MockInterceptor
  34215. module.exports.MockScope = MockScope
  34216. /***/ }),
  34217. /***/ 6193:
  34218. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34219. "use strict";
  34220. const { promisify } = __nccwpck_require__(3837)
  34221. const Pool = __nccwpck_require__(4634)
  34222. const { buildMockDispatch } = __nccwpck_require__(9323)
  34223. const {
  34224. kDispatches,
  34225. kMockAgent,
  34226. kClose,
  34227. kOriginalClose,
  34228. kOrigin,
  34229. kOriginalDispatch,
  34230. kConnected
  34231. } = __nccwpck_require__(4347)
  34232. const { MockInterceptor } = __nccwpck_require__(410)
  34233. const Symbols = __nccwpck_require__(2785)
  34234. const { InvalidArgumentError } = __nccwpck_require__(8045)
  34235. /**
  34236. * MockPool provides an API that extends the Pool to influence the mockDispatches.
  34237. */
  34238. class MockPool extends Pool {
  34239. constructor (origin, opts) {
  34240. super(origin, opts)
  34241. if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {
  34242. throw new InvalidArgumentError('Argument opts.agent must implement Agent')
  34243. }
  34244. this[kMockAgent] = opts.agent
  34245. this[kOrigin] = origin
  34246. this[kDispatches] = []
  34247. this[kConnected] = 1
  34248. this[kOriginalDispatch] = this.dispatch
  34249. this[kOriginalClose] = this.close.bind(this)
  34250. this.dispatch = buildMockDispatch.call(this)
  34251. this.close = this[kClose]
  34252. }
  34253. get [Symbols.kConnected] () {
  34254. return this[kConnected]
  34255. }
  34256. /**
  34257. * Sets up the base interceptor for mocking replies from undici.
  34258. */
  34259. intercept (opts) {
  34260. return new MockInterceptor(opts, this[kDispatches])
  34261. }
  34262. async [kClose] () {
  34263. await promisify(this[kOriginalClose])()
  34264. this[kConnected] = 0
  34265. this[kMockAgent][Symbols.kClients].delete(this[kOrigin])
  34266. }
  34267. }
  34268. module.exports = MockPool
  34269. /***/ }),
  34270. /***/ 4347:
  34271. /***/ ((module) => {
  34272. "use strict";
  34273. module.exports = {
  34274. kAgent: Symbol('agent'),
  34275. kOptions: Symbol('options'),
  34276. kFactory: Symbol('factory'),
  34277. kDispatches: Symbol('dispatches'),
  34278. kDispatchKey: Symbol('dispatch key'),
  34279. kDefaultHeaders: Symbol('default headers'),
  34280. kDefaultTrailers: Symbol('default trailers'),
  34281. kContentLength: Symbol('content length'),
  34282. kMockAgent: Symbol('mock agent'),
  34283. kMockAgentSet: Symbol('mock agent set'),
  34284. kMockAgentGet: Symbol('mock agent get'),
  34285. kMockDispatch: Symbol('mock dispatch'),
  34286. kClose: Symbol('close'),
  34287. kOriginalClose: Symbol('original agent close'),
  34288. kOrigin: Symbol('origin'),
  34289. kIsMockActive: Symbol('is mock active'),
  34290. kNetConnect: Symbol('net connect'),
  34291. kGetNetConnect: Symbol('get net connect'),
  34292. kConnected: Symbol('connected')
  34293. }
  34294. /***/ }),
  34295. /***/ 9323:
  34296. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34297. "use strict";
  34298. const { MockNotMatchedError } = __nccwpck_require__(888)
  34299. const {
  34300. kDispatches,
  34301. kMockAgent,
  34302. kOriginalDispatch,
  34303. kOrigin,
  34304. kGetNetConnect
  34305. } = __nccwpck_require__(4347)
  34306. const { buildURL, nop } = __nccwpck_require__(3983)
  34307. const { STATUS_CODES } = __nccwpck_require__(3685)
  34308. const {
  34309. types: {
  34310. isPromise
  34311. }
  34312. } = __nccwpck_require__(3837)
  34313. function matchValue (match, value) {
  34314. if (typeof match === 'string') {
  34315. return match === value
  34316. }
  34317. if (match instanceof RegExp) {
  34318. return match.test(value)
  34319. }
  34320. if (typeof match === 'function') {
  34321. return match(value) === true
  34322. }
  34323. return false
  34324. }
  34325. function lowerCaseEntries (headers) {
  34326. return Object.fromEntries(
  34327. Object.entries(headers).map(([headerName, headerValue]) => {
  34328. return [headerName.toLocaleLowerCase(), headerValue]
  34329. })
  34330. )
  34331. }
  34332. /**
  34333. * @param {import('../../index').Headers|string[]|Record<string, string>} headers
  34334. * @param {string} key
  34335. */
  34336. function getHeaderByName (headers, key) {
  34337. if (Array.isArray(headers)) {
  34338. for (let i = 0; i < headers.length; i += 2) {
  34339. if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) {
  34340. return headers[i + 1]
  34341. }
  34342. }
  34343. return undefined
  34344. } else if (typeof headers.get === 'function') {
  34345. return headers.get(key)
  34346. } else {
  34347. return lowerCaseEntries(headers)[key.toLocaleLowerCase()]
  34348. }
  34349. }
  34350. /** @param {string[]} headers */
  34351. function buildHeadersFromArray (headers) { // fetch HeadersList
  34352. const clone = headers.slice()
  34353. const entries = []
  34354. for (let index = 0; index < clone.length; index += 2) {
  34355. entries.push([clone[index], clone[index + 1]])
  34356. }
  34357. return Object.fromEntries(entries)
  34358. }
  34359. function matchHeaders (mockDispatch, headers) {
  34360. if (typeof mockDispatch.headers === 'function') {
  34361. if (Array.isArray(headers)) { // fetch HeadersList
  34362. headers = buildHeadersFromArray(headers)
  34363. }
  34364. return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {})
  34365. }
  34366. if (typeof mockDispatch.headers === 'undefined') {
  34367. return true
  34368. }
  34369. if (typeof headers !== 'object' || typeof mockDispatch.headers !== 'object') {
  34370. return false
  34371. }
  34372. for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) {
  34373. const headerValue = getHeaderByName(headers, matchHeaderName)
  34374. if (!matchValue(matchHeaderValue, headerValue)) {
  34375. return false
  34376. }
  34377. }
  34378. return true
  34379. }
  34380. function safeUrl (path) {
  34381. if (typeof path !== 'string') {
  34382. return path
  34383. }
  34384. const pathSegments = path.split('?')
  34385. if (pathSegments.length !== 2) {
  34386. return path
  34387. }
  34388. const qp = new URLSearchParams(pathSegments.pop())
  34389. qp.sort()
  34390. return [...pathSegments, qp.toString()].join('?')
  34391. }
  34392. function matchKey (mockDispatch, { path, method, body, headers }) {
  34393. const pathMatch = matchValue(mockDispatch.path, path)
  34394. const methodMatch = matchValue(mockDispatch.method, method)
  34395. const bodyMatch = typeof mockDispatch.body !== 'undefined' ? matchValue(mockDispatch.body, body) : true
  34396. const headersMatch = matchHeaders(mockDispatch, headers)
  34397. return pathMatch && methodMatch && bodyMatch && headersMatch
  34398. }
  34399. function getResponseData (data) {
  34400. if (Buffer.isBuffer(data)) {
  34401. return data
  34402. } else if (typeof data === 'object') {
  34403. return JSON.stringify(data)
  34404. } else {
  34405. return data.toString()
  34406. }
  34407. }
  34408. function getMockDispatch (mockDispatches, key) {
  34409. const basePath = key.query ? buildURL(key.path, key.query) : key.path
  34410. const resolvedPath = typeof basePath === 'string' ? safeUrl(basePath) : basePath
  34411. // Match path
  34412. let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) => matchValue(safeUrl(path), resolvedPath))
  34413. if (matchedMockDispatches.length === 0) {
  34414. throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`)
  34415. }
  34416. // Match method
  34417. matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method))
  34418. if (matchedMockDispatches.length === 0) {
  34419. throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}'`)
  34420. }
  34421. // Match body
  34422. matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== 'undefined' ? matchValue(body, key.body) : true)
  34423. if (matchedMockDispatches.length === 0) {
  34424. throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}'`)
  34425. }
  34426. // Match headers
  34427. matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers))
  34428. if (matchedMockDispatches.length === 0) {
  34429. throw new MockNotMatchedError(`Mock dispatch not matched for headers '${typeof key.headers === 'object' ? JSON.stringify(key.headers) : key.headers}'`)
  34430. }
  34431. return matchedMockDispatches[0]
  34432. }
  34433. function addMockDispatch (mockDispatches, key, data) {
  34434. const baseData = { timesInvoked: 0, times: 1, persist: false, consumed: false }
  34435. const replyData = typeof data === 'function' ? { callback: data } : { ...data }
  34436. const newMockDispatch = { ...baseData, ...key, pending: true, data: { error: null, ...replyData } }
  34437. mockDispatches.push(newMockDispatch)
  34438. return newMockDispatch
  34439. }
  34440. function deleteMockDispatch (mockDispatches, key) {
  34441. const index = mockDispatches.findIndex(dispatch => {
  34442. if (!dispatch.consumed) {
  34443. return false
  34444. }
  34445. return matchKey(dispatch, key)
  34446. })
  34447. if (index !== -1) {
  34448. mockDispatches.splice(index, 1)
  34449. }
  34450. }
  34451. function buildKey (opts) {
  34452. const { path, method, body, headers, query } = opts
  34453. return {
  34454. path,
  34455. method,
  34456. body,
  34457. headers,
  34458. query
  34459. }
  34460. }
  34461. function generateKeyValues (data) {
  34462. return Object.entries(data).reduce((keyValuePairs, [key, value]) => [
  34463. ...keyValuePairs,
  34464. Buffer.from(`${key}`),
  34465. Array.isArray(value) ? value.map(x => Buffer.from(`${x}`)) : Buffer.from(`${value}`)
  34466. ], [])
  34467. }
  34468. /**
  34469. * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
  34470. * @param {number} statusCode
  34471. */
  34472. function getStatusText (statusCode) {
  34473. return STATUS_CODES[statusCode] || 'unknown'
  34474. }
  34475. async function getResponse (body) {
  34476. const buffers = []
  34477. for await (const data of body) {
  34478. buffers.push(data)
  34479. }
  34480. return Buffer.concat(buffers).toString('utf8')
  34481. }
  34482. /**
  34483. * Mock dispatch function used to simulate undici dispatches
  34484. */
  34485. function mockDispatch (opts, handler) {
  34486. // Get mock dispatch from built key
  34487. const key = buildKey(opts)
  34488. const mockDispatch = getMockDispatch(this[kDispatches], key)
  34489. mockDispatch.timesInvoked++
  34490. // Here's where we resolve a callback if a callback is present for the dispatch data.
  34491. if (mockDispatch.data.callback) {
  34492. mockDispatch.data = { ...mockDispatch.data, ...mockDispatch.data.callback(opts) }
  34493. }
  34494. // Parse mockDispatch data
  34495. const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch
  34496. const { timesInvoked, times } = mockDispatch
  34497. // If it's used up and not persistent, mark as consumed
  34498. mockDispatch.consumed = !persist && timesInvoked >= times
  34499. mockDispatch.pending = timesInvoked < times
  34500. // If specified, trigger dispatch error
  34501. if (error !== null) {
  34502. deleteMockDispatch(this[kDispatches], key)
  34503. handler.onError(error)
  34504. return true
  34505. }
  34506. // Handle the request with a delay if necessary
  34507. if (typeof delay === 'number' && delay > 0) {
  34508. setTimeout(() => {
  34509. handleReply(this[kDispatches])
  34510. }, delay)
  34511. } else {
  34512. handleReply(this[kDispatches])
  34513. }
  34514. function handleReply (mockDispatches, _data = data) {
  34515. // fetch's HeadersList is a 1D string array
  34516. const optsHeaders = Array.isArray(opts.headers)
  34517. ? buildHeadersFromArray(opts.headers)
  34518. : opts.headers
  34519. const body = typeof _data === 'function'
  34520. ? _data({ ...opts, headers: optsHeaders })
  34521. : _data
  34522. // util.types.isPromise is likely needed for jest.
  34523. if (isPromise(body)) {
  34524. // If handleReply is asynchronous, throwing an error
  34525. // in the callback will reject the promise, rather than
  34526. // synchronously throw the error, which breaks some tests.
  34527. // Rather, we wait for the callback to resolve if it is a
  34528. // promise, and then re-run handleReply with the new body.
  34529. body.then((newData) => handleReply(mockDispatches, newData))
  34530. return
  34531. }
  34532. const responseData = getResponseData(body)
  34533. const responseHeaders = generateKeyValues(headers)
  34534. const responseTrailers = generateKeyValues(trailers)
  34535. handler.abort = nop
  34536. handler.onHeaders(statusCode, responseHeaders, resume, getStatusText(statusCode))
  34537. handler.onData(Buffer.from(responseData))
  34538. handler.onComplete(responseTrailers)
  34539. deleteMockDispatch(mockDispatches, key)
  34540. }
  34541. function resume () {}
  34542. return true
  34543. }
  34544. function buildMockDispatch () {
  34545. const agent = this[kMockAgent]
  34546. const origin = this[kOrigin]
  34547. const originalDispatch = this[kOriginalDispatch]
  34548. return function dispatch (opts, handler) {
  34549. if (agent.isMockActive) {
  34550. try {
  34551. mockDispatch.call(this, opts, handler)
  34552. } catch (error) {
  34553. if (error instanceof MockNotMatchedError) {
  34554. const netConnect = agent[kGetNetConnect]()
  34555. if (netConnect === false) {
  34556. throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`)
  34557. }
  34558. if (checkNetConnect(netConnect, origin)) {
  34559. originalDispatch.call(this, opts, handler)
  34560. } else {
  34561. throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`)
  34562. }
  34563. } else {
  34564. throw error
  34565. }
  34566. }
  34567. } else {
  34568. originalDispatch.call(this, opts, handler)
  34569. }
  34570. }
  34571. }
  34572. function checkNetConnect (netConnect, origin) {
  34573. const url = new URL(origin)
  34574. if (netConnect === true) {
  34575. return true
  34576. } else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url.host))) {
  34577. return true
  34578. }
  34579. return false
  34580. }
  34581. function buildMockOptions (opts) {
  34582. if (opts) {
  34583. const { agent, ...mockOptions } = opts
  34584. return mockOptions
  34585. }
  34586. }
  34587. module.exports = {
  34588. getResponseData,
  34589. getMockDispatch,
  34590. addMockDispatch,
  34591. deleteMockDispatch,
  34592. buildKey,
  34593. generateKeyValues,
  34594. matchValue,
  34595. getResponse,
  34596. getStatusText,
  34597. mockDispatch,
  34598. buildMockDispatch,
  34599. checkNetConnect,
  34600. buildMockOptions,
  34601. getHeaderByName
  34602. }
  34603. /***/ }),
  34604. /***/ 6823:
  34605. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34606. "use strict";
  34607. const { Transform } = __nccwpck_require__(2781)
  34608. const { Console } = __nccwpck_require__(6206)
  34609. /**
  34610. * Gets the output of `console.table(…)` as a string.
  34611. */
  34612. module.exports = class PendingInterceptorsFormatter {
  34613. constructor ({ disableColors } = {}) {
  34614. this.transform = new Transform({
  34615. transform (chunk, _enc, cb) {
  34616. cb(null, chunk)
  34617. }
  34618. })
  34619. this.logger = new Console({
  34620. stdout: this.transform,
  34621. inspectOptions: {
  34622. colors: !disableColors && !process.env.CI
  34623. }
  34624. })
  34625. }
  34626. format (pendingInterceptors) {
  34627. const withPrettyHeaders = pendingInterceptors.map(
  34628. ({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
  34629. Method: method,
  34630. Origin: origin,
  34631. Path: path,
  34632. 'Status code': statusCode,
  34633. Persistent: persist ? '✅' : '❌',
  34634. Invocations: timesInvoked,
  34635. Remaining: persist ? Infinity : times - timesInvoked
  34636. }))
  34637. this.logger.table(withPrettyHeaders)
  34638. return this.transform.read().toString()
  34639. }
  34640. }
  34641. /***/ }),
  34642. /***/ 8891:
  34643. /***/ ((module) => {
  34644. "use strict";
  34645. const singulars = {
  34646. pronoun: 'it',
  34647. is: 'is',
  34648. was: 'was',
  34649. this: 'this'
  34650. }
  34651. const plurals = {
  34652. pronoun: 'they',
  34653. is: 'are',
  34654. was: 'were',
  34655. this: 'these'
  34656. }
  34657. module.exports = class Pluralizer {
  34658. constructor (singular, plural) {
  34659. this.singular = singular
  34660. this.plural = plural
  34661. }
  34662. pluralize (count) {
  34663. const one = count === 1
  34664. const keys = one ? singulars : plurals
  34665. const noun = one ? this.singular : this.plural
  34666. return { ...keys, count, noun }
  34667. }
  34668. }
  34669. /***/ }),
  34670. /***/ 8266:
  34671. /***/ ((module) => {
  34672. "use strict";
  34673. /* eslint-disable */
  34674. // Extracted from node/lib/internal/fixed_queue.js
  34675. // Currently optimal queue size, tested on V8 6.0 - 6.6. Must be power of two.
  34676. const kSize = 2048;
  34677. const kMask = kSize - 1;
  34678. // The FixedQueue is implemented as a singly-linked list of fixed-size
  34679. // circular buffers. It looks something like this:
  34680. //
  34681. // head tail
  34682. // | |
  34683. // v v
  34684. // +-----------+ <-----\ +-----------+ <------\ +-----------+
  34685. // | [null] | \----- | next | \------- | next |
  34686. // +-----------+ +-----------+ +-----------+
  34687. // | item | <-- bottom | item | <-- bottom | [empty] |
  34688. // | item | | item | | [empty] |
  34689. // | item | | item | | [empty] |
  34690. // | item | | item | | [empty] |
  34691. // | item | | item | bottom --> | item |
  34692. // | item | | item | | item |
  34693. // | ... | | ... | | ... |
  34694. // | item | | item | | item |
  34695. // | item | | item | | item |
  34696. // | [empty] | <-- top | item | | item |
  34697. // | [empty] | | item | | item |
  34698. // | [empty] | | [empty] | <-- top top --> | [empty] |
  34699. // +-----------+ +-----------+ +-----------+
  34700. //
  34701. // Or, if there is only one circular buffer, it looks something
  34702. // like either of these:
  34703. //
  34704. // head tail head tail
  34705. // | | | |
  34706. // v v v v
  34707. // +-----------+ +-----------+
  34708. // | [null] | | [null] |
  34709. // +-----------+ +-----------+
  34710. // | [empty] | | item |
  34711. // | [empty] | | item |
  34712. // | item | <-- bottom top --> | [empty] |
  34713. // | item | | [empty] |
  34714. // | [empty] | <-- top bottom --> | item |
  34715. // | [empty] | | item |
  34716. // +-----------+ +-----------+
  34717. //
  34718. // Adding a value means moving `top` forward by one, removing means
  34719. // moving `bottom` forward by one. After reaching the end, the queue
  34720. // wraps around.
  34721. //
  34722. // When `top === bottom` the current queue is empty and when
  34723. // `top + 1 === bottom` it's full. This wastes a single space of storage
  34724. // but allows much quicker checks.
  34725. class FixedCircularBuffer {
  34726. constructor() {
  34727. this.bottom = 0;
  34728. this.top = 0;
  34729. this.list = new Array(kSize);
  34730. this.next = null;
  34731. }
  34732. isEmpty() {
  34733. return this.top === this.bottom;
  34734. }
  34735. isFull() {
  34736. return ((this.top + 1) & kMask) === this.bottom;
  34737. }
  34738. push(data) {
  34739. this.list[this.top] = data;
  34740. this.top = (this.top + 1) & kMask;
  34741. }
  34742. shift() {
  34743. const nextItem = this.list[this.bottom];
  34744. if (nextItem === undefined)
  34745. return null;
  34746. this.list[this.bottom] = undefined;
  34747. this.bottom = (this.bottom + 1) & kMask;
  34748. return nextItem;
  34749. }
  34750. }
  34751. module.exports = class FixedQueue {
  34752. constructor() {
  34753. this.head = this.tail = new FixedCircularBuffer();
  34754. }
  34755. isEmpty() {
  34756. return this.head.isEmpty();
  34757. }
  34758. push(data) {
  34759. if (this.head.isFull()) {
  34760. // Head is full: Creates a new queue, sets the old queue's `.next` to it,
  34761. // and sets it as the new main queue.
  34762. this.head = this.head.next = new FixedCircularBuffer();
  34763. }
  34764. this.head.push(data);
  34765. }
  34766. shift() {
  34767. const tail = this.tail;
  34768. const next = tail.shift();
  34769. if (tail.isEmpty() && tail.next !== null) {
  34770. // If there is another queue, it forms the new tail.
  34771. this.tail = tail.next;
  34772. }
  34773. return next;
  34774. }
  34775. };
  34776. /***/ }),
  34777. /***/ 3198:
  34778. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34779. "use strict";
  34780. const DispatcherBase = __nccwpck_require__(4839)
  34781. const FixedQueue = __nccwpck_require__(8266)
  34782. const { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = __nccwpck_require__(2785)
  34783. const PoolStats = __nccwpck_require__(9689)
  34784. const kClients = Symbol('clients')
  34785. const kNeedDrain = Symbol('needDrain')
  34786. const kQueue = Symbol('queue')
  34787. const kClosedResolve = Symbol('closed resolve')
  34788. const kOnDrain = Symbol('onDrain')
  34789. const kOnConnect = Symbol('onConnect')
  34790. const kOnDisconnect = Symbol('onDisconnect')
  34791. const kOnConnectionError = Symbol('onConnectionError')
  34792. const kGetDispatcher = Symbol('get dispatcher')
  34793. const kAddClient = Symbol('add client')
  34794. const kRemoveClient = Symbol('remove client')
  34795. const kStats = Symbol('stats')
  34796. class PoolBase extends DispatcherBase {
  34797. constructor () {
  34798. super()
  34799. this[kQueue] = new FixedQueue()
  34800. this[kClients] = []
  34801. this[kQueued] = 0
  34802. const pool = this
  34803. this[kOnDrain] = function onDrain (origin, targets) {
  34804. const queue = pool[kQueue]
  34805. let needDrain = false
  34806. while (!needDrain) {
  34807. const item = queue.shift()
  34808. if (!item) {
  34809. break
  34810. }
  34811. pool[kQueued]--
  34812. needDrain = !this.dispatch(item.opts, item.handler)
  34813. }
  34814. this[kNeedDrain] = needDrain
  34815. if (!this[kNeedDrain] && pool[kNeedDrain]) {
  34816. pool[kNeedDrain] = false
  34817. pool.emit('drain', origin, [pool, ...targets])
  34818. }
  34819. if (pool[kClosedResolve] && queue.isEmpty()) {
  34820. Promise
  34821. .all(pool[kClients].map(c => c.close()))
  34822. .then(pool[kClosedResolve])
  34823. }
  34824. }
  34825. this[kOnConnect] = (origin, targets) => {
  34826. pool.emit('connect', origin, [pool, ...targets])
  34827. }
  34828. this[kOnDisconnect] = (origin, targets, err) => {
  34829. pool.emit('disconnect', origin, [pool, ...targets], err)
  34830. }
  34831. this[kOnConnectionError] = (origin, targets, err) => {
  34832. pool.emit('connectionError', origin, [pool, ...targets], err)
  34833. }
  34834. this[kStats] = new PoolStats(this)
  34835. }
  34836. get [kBusy] () {
  34837. return this[kNeedDrain]
  34838. }
  34839. get [kConnected] () {
  34840. return this[kClients].filter(client => client[kConnected]).length
  34841. }
  34842. get [kFree] () {
  34843. return this[kClients].filter(client => client[kConnected] && !client[kNeedDrain]).length
  34844. }
  34845. get [kPending] () {
  34846. let ret = this[kQueued]
  34847. for (const { [kPending]: pending } of this[kClients]) {
  34848. ret += pending
  34849. }
  34850. return ret
  34851. }
  34852. get [kRunning] () {
  34853. let ret = 0
  34854. for (const { [kRunning]: running } of this[kClients]) {
  34855. ret += running
  34856. }
  34857. return ret
  34858. }
  34859. get [kSize] () {
  34860. let ret = this[kQueued]
  34861. for (const { [kSize]: size } of this[kClients]) {
  34862. ret += size
  34863. }
  34864. return ret
  34865. }
  34866. get stats () {
  34867. return this[kStats]
  34868. }
  34869. async [kClose] () {
  34870. if (this[kQueue].isEmpty()) {
  34871. return Promise.all(this[kClients].map(c => c.close()))
  34872. } else {
  34873. return new Promise((resolve) => {
  34874. this[kClosedResolve] = resolve
  34875. })
  34876. }
  34877. }
  34878. async [kDestroy] (err) {
  34879. while (true) {
  34880. const item = this[kQueue].shift()
  34881. if (!item) {
  34882. break
  34883. }
  34884. item.handler.onError(err)
  34885. }
  34886. return Promise.all(this[kClients].map(c => c.destroy(err)))
  34887. }
  34888. [kDispatch] (opts, handler) {
  34889. const dispatcher = this[kGetDispatcher]()
  34890. if (!dispatcher) {
  34891. this[kNeedDrain] = true
  34892. this[kQueue].push({ opts, handler })
  34893. this[kQueued]++
  34894. } else if (!dispatcher.dispatch(opts, handler)) {
  34895. dispatcher[kNeedDrain] = true
  34896. this[kNeedDrain] = !this[kGetDispatcher]()
  34897. }
  34898. return !this[kNeedDrain]
  34899. }
  34900. [kAddClient] (client) {
  34901. client
  34902. .on('drain', this[kOnDrain])
  34903. .on('connect', this[kOnConnect])
  34904. .on('disconnect', this[kOnDisconnect])
  34905. .on('connectionError', this[kOnConnectionError])
  34906. this[kClients].push(client)
  34907. if (this[kNeedDrain]) {
  34908. process.nextTick(() => {
  34909. if (this[kNeedDrain]) {
  34910. this[kOnDrain](client[kUrl], [this, client])
  34911. }
  34912. })
  34913. }
  34914. return this
  34915. }
  34916. [kRemoveClient] (client) {
  34917. client.close(() => {
  34918. const idx = this[kClients].indexOf(client)
  34919. if (idx !== -1) {
  34920. this[kClients].splice(idx, 1)
  34921. }
  34922. })
  34923. this[kNeedDrain] = this[kClients].some(dispatcher => (
  34924. !dispatcher[kNeedDrain] &&
  34925. dispatcher.closed !== true &&
  34926. dispatcher.destroyed !== true
  34927. ))
  34928. }
  34929. }
  34930. module.exports = {
  34931. PoolBase,
  34932. kClients,
  34933. kNeedDrain,
  34934. kAddClient,
  34935. kRemoveClient,
  34936. kGetDispatcher
  34937. }
  34938. /***/ }),
  34939. /***/ 9689:
  34940. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34941. const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = __nccwpck_require__(2785)
  34942. const kPool = Symbol('pool')
  34943. class PoolStats {
  34944. constructor (pool) {
  34945. this[kPool] = pool
  34946. }
  34947. get connected () {
  34948. return this[kPool][kConnected]
  34949. }
  34950. get free () {
  34951. return this[kPool][kFree]
  34952. }
  34953. get pending () {
  34954. return this[kPool][kPending]
  34955. }
  34956. get queued () {
  34957. return this[kPool][kQueued]
  34958. }
  34959. get running () {
  34960. return this[kPool][kRunning]
  34961. }
  34962. get size () {
  34963. return this[kPool][kSize]
  34964. }
  34965. }
  34966. module.exports = PoolStats
  34967. /***/ }),
  34968. /***/ 4634:
  34969. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34970. "use strict";
  34971. const {
  34972. PoolBase,
  34973. kClients,
  34974. kNeedDrain,
  34975. kAddClient,
  34976. kGetDispatcher
  34977. } = __nccwpck_require__(3198)
  34978. const Client = __nccwpck_require__(3598)
  34979. const {
  34980. InvalidArgumentError
  34981. } = __nccwpck_require__(8045)
  34982. const util = __nccwpck_require__(3983)
  34983. const { kUrl, kInterceptors } = __nccwpck_require__(2785)
  34984. const buildConnector = __nccwpck_require__(2067)
  34985. const kOptions = Symbol('options')
  34986. const kConnections = Symbol('connections')
  34987. const kFactory = Symbol('factory')
  34988. function defaultFactory (origin, opts) {
  34989. return new Client(origin, opts)
  34990. }
  34991. class Pool extends PoolBase {
  34992. constructor (origin, {
  34993. connections,
  34994. factory = defaultFactory,
  34995. connect,
  34996. connectTimeout,
  34997. tls,
  34998. maxCachedSessions,
  34999. socketPath,
  35000. autoSelectFamily,
  35001. autoSelectFamilyAttemptTimeout,
  35002. allowH2,
  35003. ...options
  35004. } = {}) {
  35005. super()
  35006. if (connections != null && (!Number.isFinite(connections) || connections < 0)) {
  35007. throw new InvalidArgumentError('invalid connections')
  35008. }
  35009. if (typeof factory !== 'function') {
  35010. throw new InvalidArgumentError('factory must be a function.')
  35011. }
  35012. if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {
  35013. throw new InvalidArgumentError('connect must be a function or an object')
  35014. }
  35015. if (typeof connect !== 'function') {
  35016. connect = buildConnector({
  35017. ...tls,
  35018. maxCachedSessions,
  35019. allowH2,
  35020. socketPath,
  35021. timeout: connectTimeout == null ? 10e3 : connectTimeout,
  35022. ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),
  35023. ...connect
  35024. })
  35025. }
  35026. this[kInterceptors] = options.interceptors && options.interceptors.Pool && Array.isArray(options.interceptors.Pool)
  35027. ? options.interceptors.Pool
  35028. : []
  35029. this[kConnections] = connections || null
  35030. this[kUrl] = util.parseOrigin(origin)
  35031. this[kOptions] = { ...util.deepClone(options), connect, allowH2 }
  35032. this[kOptions].interceptors = options.interceptors
  35033. ? { ...options.interceptors }
  35034. : undefined
  35035. this[kFactory] = factory
  35036. }
  35037. [kGetDispatcher] () {
  35038. let dispatcher = this[kClients].find(dispatcher => !dispatcher[kNeedDrain])
  35039. if (dispatcher) {
  35040. return dispatcher
  35041. }
  35042. if (!this[kConnections] || this[kClients].length < this[kConnections]) {
  35043. dispatcher = this[kFactory](this[kUrl], this[kOptions])
  35044. this[kAddClient](dispatcher)
  35045. }
  35046. return dispatcher
  35047. }
  35048. }
  35049. module.exports = Pool
  35050. /***/ }),
  35051. /***/ 7858:
  35052. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  35053. "use strict";
  35054. const { kProxy, kClose, kDestroy, kInterceptors } = __nccwpck_require__(2785)
  35055. const { URL } = __nccwpck_require__(7310)
  35056. const Agent = __nccwpck_require__(7890)
  35057. const Pool = __nccwpck_require__(4634)
  35058. const DispatcherBase = __nccwpck_require__(4839)
  35059. const { InvalidArgumentError, RequestAbortedError } = __nccwpck_require__(8045)
  35060. const buildConnector = __nccwpck_require__(2067)
  35061. const kAgent = Symbol('proxy agent')
  35062. const kClient = Symbol('proxy client')
  35063. const kProxyHeaders = Symbol('proxy headers')
  35064. const kRequestTls = Symbol('request tls settings')
  35065. const kProxyTls = Symbol('proxy tls settings')
  35066. const kConnectEndpoint = Symbol('connect endpoint function')
  35067. function defaultProtocolPort (protocol) {
  35068. return protocol === 'https:' ? 443 : 80
  35069. }
  35070. function buildProxyOptions (opts) {
  35071. if (typeof opts === 'string') {
  35072. opts = { uri: opts }
  35073. }
  35074. if (!opts || !opts.uri) {
  35075. throw new InvalidArgumentError('Proxy opts.uri is mandatory')
  35076. }
  35077. return {
  35078. uri: opts.uri,
  35079. protocol: opts.protocol || 'https'
  35080. }
  35081. }
  35082. function defaultFactory (origin, opts) {
  35083. return new Pool(origin, opts)
  35084. }
  35085. class ProxyAgent extends DispatcherBase {
  35086. constructor (opts) {
  35087. super(opts)
  35088. this[kProxy] = buildProxyOptions(opts)
  35089. this[kAgent] = new Agent(opts)
  35090. this[kInterceptors] = opts.interceptors && opts.interceptors.ProxyAgent && Array.isArray(opts.interceptors.ProxyAgent)
  35091. ? opts.interceptors.ProxyAgent
  35092. : []
  35093. if (typeof opts === 'string') {
  35094. opts = { uri: opts }
  35095. }
  35096. if (!opts || !opts.uri) {
  35097. throw new InvalidArgumentError('Proxy opts.uri is mandatory')
  35098. }
  35099. const { clientFactory = defaultFactory } = opts
  35100. if (typeof clientFactory !== 'function') {
  35101. throw new InvalidArgumentError('Proxy opts.clientFactory must be a function.')
  35102. }
  35103. this[kRequestTls] = opts.requestTls
  35104. this[kProxyTls] = opts.proxyTls
  35105. this[kProxyHeaders] = opts.headers || {}
  35106. if (opts.auth && opts.token) {
  35107. throw new InvalidArgumentError('opts.auth cannot be used in combination with opts.token')
  35108. } else if (opts.auth) {
  35109. /* @deprecated in favour of opts.token */
  35110. this[kProxyHeaders]['proxy-authorization'] = `Basic ${opts.auth}`
  35111. } else if (opts.token) {
  35112. this[kProxyHeaders]['proxy-authorization'] = opts.token
  35113. }
  35114. const resolvedUrl = new URL(opts.uri)
  35115. const { origin, port, host } = resolvedUrl
  35116. const connect = buildConnector({ ...opts.proxyTls })
  35117. this[kConnectEndpoint] = buildConnector({ ...opts.requestTls })
  35118. this[kClient] = clientFactory(resolvedUrl, { connect })
  35119. this[kAgent] = new Agent({
  35120. ...opts,
  35121. connect: async (opts, callback) => {
  35122. let requestedHost = opts.host
  35123. if (!opts.port) {
  35124. requestedHost += `:${defaultProtocolPort(opts.protocol)}`
  35125. }
  35126. try {
  35127. const { socket, statusCode } = await this[kClient].connect({
  35128. origin,
  35129. port,
  35130. path: requestedHost,
  35131. signal: opts.signal,
  35132. headers: {
  35133. ...this[kProxyHeaders],
  35134. host
  35135. }
  35136. })
  35137. if (statusCode !== 200) {
  35138. socket.on('error', () => {}).destroy()
  35139. callback(new RequestAbortedError('Proxy response !== 200 when HTTP Tunneling'))
  35140. }
  35141. if (opts.protocol !== 'https:') {
  35142. callback(null, socket)
  35143. return
  35144. }
  35145. let servername
  35146. if (this[kRequestTls]) {
  35147. servername = this[kRequestTls].servername
  35148. } else {
  35149. servername = opts.servername
  35150. }
  35151. this[kConnectEndpoint]({ ...opts, servername, httpSocket: socket }, callback)
  35152. } catch (err) {
  35153. callback(err)
  35154. }
  35155. }
  35156. })
  35157. }
  35158. dispatch (opts, handler) {
  35159. const { host } = new URL(opts.origin)
  35160. const headers = buildHeaders(opts.headers)
  35161. throwIfProxyAuthIsSent(headers)
  35162. return this[kAgent].dispatch(
  35163. {
  35164. ...opts,
  35165. headers: {
  35166. ...headers,
  35167. host
  35168. }
  35169. },
  35170. handler
  35171. )
  35172. }
  35173. async [kClose] () {
  35174. await this[kAgent].close()
  35175. await this[kClient].close()
  35176. }
  35177. async [kDestroy] () {
  35178. await this[kAgent].destroy()
  35179. await this[kClient].destroy()
  35180. }
  35181. }
  35182. /**
  35183. * @param {string[] | Record<string, string>} headers
  35184. * @returns {Record<string, string>}
  35185. */
  35186. function buildHeaders (headers) {
  35187. // When using undici.fetch, the headers list is stored
  35188. // as an array.
  35189. if (Array.isArray(headers)) {
  35190. /** @type {Record<string, string>} */
  35191. const headersPair = {}
  35192. for (let i = 0; i < headers.length; i += 2) {
  35193. headersPair[headers[i]] = headers[i + 1]
  35194. }
  35195. return headersPair
  35196. }
  35197. return headers
  35198. }
  35199. /**
  35200. * @param {Record<string, string>} headers
  35201. *
  35202. * Previous versions of ProxyAgent suggests the Proxy-Authorization in request headers
  35203. * Nevertheless, it was changed and to avoid a security vulnerability by end users
  35204. * this check was created.
  35205. * It should be removed in the next major version for performance reasons
  35206. */
  35207. function throwIfProxyAuthIsSent (headers) {
  35208. const existProxyAuth = headers && Object.keys(headers)
  35209. .find((key) => key.toLowerCase() === 'proxy-authorization')
  35210. if (existProxyAuth) {
  35211. throw new InvalidArgumentError('Proxy-Authorization should be sent in ProxyAgent constructor')
  35212. }
  35213. }
  35214. module.exports = ProxyAgent
  35215. /***/ }),
  35216. /***/ 9459:
  35217. /***/ ((module) => {
  35218. "use strict";
  35219. let fastNow = Date.now()
  35220. let fastNowTimeout
  35221. const fastTimers = []
  35222. function onTimeout () {
  35223. fastNow = Date.now()
  35224. let len = fastTimers.length
  35225. let idx = 0
  35226. while (idx < len) {
  35227. const timer = fastTimers[idx]
  35228. if (timer.state === 0) {
  35229. timer.state = fastNow + timer.delay
  35230. } else if (timer.state > 0 && fastNow >= timer.state) {
  35231. timer.state = -1
  35232. timer.callback(timer.opaque)
  35233. }
  35234. if (timer.state === -1) {
  35235. timer.state = -2
  35236. if (idx !== len - 1) {
  35237. fastTimers[idx] = fastTimers.pop()
  35238. } else {
  35239. fastTimers.pop()
  35240. }
  35241. len -= 1
  35242. } else {
  35243. idx += 1
  35244. }
  35245. }
  35246. if (fastTimers.length > 0) {
  35247. refreshTimeout()
  35248. }
  35249. }
  35250. function refreshTimeout () {
  35251. if (fastNowTimeout && fastNowTimeout.refresh) {
  35252. fastNowTimeout.refresh()
  35253. } else {
  35254. clearTimeout(fastNowTimeout)
  35255. fastNowTimeout = setTimeout(onTimeout, 1e3)
  35256. if (fastNowTimeout.unref) {
  35257. fastNowTimeout.unref()
  35258. }
  35259. }
  35260. }
  35261. class Timeout {
  35262. constructor (callback, delay, opaque) {
  35263. this.callback = callback
  35264. this.delay = delay
  35265. this.opaque = opaque
  35266. // -2 not in timer list
  35267. // -1 in timer list but inactive
  35268. // 0 in timer list waiting for time
  35269. // > 0 in timer list waiting for time to expire
  35270. this.state = -2
  35271. this.refresh()
  35272. }
  35273. refresh () {
  35274. if (this.state === -2) {
  35275. fastTimers.push(this)
  35276. if (!fastNowTimeout || fastTimers.length === 1) {
  35277. refreshTimeout()
  35278. }
  35279. }
  35280. this.state = 0
  35281. }
  35282. clear () {
  35283. this.state = -1
  35284. }
  35285. }
  35286. module.exports = {
  35287. setTimeout (callback, delay, opaque) {
  35288. return delay < 1e3
  35289. ? setTimeout(callback, delay, opaque)
  35290. : new Timeout(callback, delay, opaque)
  35291. },
  35292. clearTimeout (timeout) {
  35293. if (timeout instanceof Timeout) {
  35294. timeout.clear()
  35295. } else {
  35296. clearTimeout(timeout)
  35297. }
  35298. }
  35299. }
  35300. /***/ }),
  35301. /***/ 5354:
  35302. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  35303. "use strict";
  35304. const diagnosticsChannel = __nccwpck_require__(7643)
  35305. const { uid, states } = __nccwpck_require__(9188)
  35306. const {
  35307. kReadyState,
  35308. kSentClose,
  35309. kByteParser,
  35310. kReceivedClose
  35311. } = __nccwpck_require__(7578)
  35312. const { fireEvent, failWebsocketConnection } = __nccwpck_require__(5515)
  35313. const { CloseEvent } = __nccwpck_require__(2611)
  35314. const { makeRequest } = __nccwpck_require__(8359)
  35315. const { fetching } = __nccwpck_require__(4881)
  35316. const { Headers } = __nccwpck_require__(554)
  35317. const { getGlobalDispatcher } = __nccwpck_require__(1892)
  35318. const { kHeadersList } = __nccwpck_require__(2785)
  35319. const channels = {}
  35320. channels.open = diagnosticsChannel.channel('undici:websocket:open')
  35321. channels.close = diagnosticsChannel.channel('undici:websocket:close')
  35322. channels.socketError = diagnosticsChannel.channel('undici:websocket:socket_error')
  35323. /** @type {import('crypto')} */
  35324. let crypto
  35325. try {
  35326. crypto = __nccwpck_require__(6113)
  35327. } catch {
  35328. }
  35329. /**
  35330. * @see https://websockets.spec.whatwg.org/#concept-websocket-establish
  35331. * @param {URL} url
  35332. * @param {string|string[]} protocols
  35333. * @param {import('./websocket').WebSocket} ws
  35334. * @param {(response: any) => void} onEstablish
  35335. * @param {Partial<import('../../types/websocket').WebSocketInit>} options
  35336. */
  35337. function establishWebSocketConnection (url, protocols, ws, onEstablish, options) {
  35338. // 1. Let requestURL be a copy of url, with its scheme set to "http", if url’s
  35339. // scheme is "ws", and to "https" otherwise.
  35340. const requestURL = url
  35341. requestURL.protocol = url.protocol === 'ws:' ? 'http:' : 'https:'
  35342. // 2. Let request be a new request, whose URL is requestURL, client is client,
  35343. // service-workers mode is "none", referrer is "no-referrer", mode is
  35344. // "websocket", credentials mode is "include", cache mode is "no-store" ,
  35345. // and redirect mode is "error".
  35346. const request = makeRequest({
  35347. urlList: [requestURL],
  35348. serviceWorkers: 'none',
  35349. referrer: 'no-referrer',
  35350. mode: 'websocket',
  35351. credentials: 'include',
  35352. cache: 'no-store',
  35353. redirect: 'error'
  35354. })
  35355. // Note: undici extension, allow setting custom headers.
  35356. if (options.headers) {
  35357. const headersList = new Headers(options.headers)[kHeadersList]
  35358. request.headersList = headersList
  35359. }
  35360. // 3. Append (`Upgrade`, `websocket`) to request’s header list.
  35361. // 4. Append (`Connection`, `Upgrade`) to request’s header list.
  35362. // Note: both of these are handled by undici currently.
  35363. // https://github.com/nodejs/undici/blob/68c269c4144c446f3f1220951338daef4a6b5ec4/lib/client.js#L1397
  35364. // 5. Let keyValue be a nonce consisting of a randomly selected
  35365. // 16-byte value that has been forgiving-base64-encoded and
  35366. // isomorphic encoded.
  35367. const keyValue = crypto.randomBytes(16).toString('base64')
  35368. // 6. Append (`Sec-WebSocket-Key`, keyValue) to request’s
  35369. // header list.
  35370. request.headersList.append('sec-websocket-key', keyValue)
  35371. // 7. Append (`Sec-WebSocket-Version`, `13`) to request’s
  35372. // header list.
  35373. request.headersList.append('sec-websocket-version', '13')
  35374. // 8. For each protocol in protocols, combine
  35375. // (`Sec-WebSocket-Protocol`, protocol) in request’s header
  35376. // list.
  35377. for (const protocol of protocols) {
  35378. request.headersList.append('sec-websocket-protocol', protocol)
  35379. }
  35380. // 9. Let permessageDeflate be a user-agent defined
  35381. // "permessage-deflate" extension header value.
  35382. // https://github.com/mozilla/gecko-dev/blob/ce78234f5e653a5d3916813ff990f053510227bc/netwerk/protocol/websocket/WebSocketChannel.cpp#L2673
  35383. // TODO: enable once permessage-deflate is supported
  35384. const permessageDeflate = '' // 'permessage-deflate; 15'
  35385. // 10. Append (`Sec-WebSocket-Extensions`, permessageDeflate) to
  35386. // request’s header list.
  35387. // request.headersList.append('sec-websocket-extensions', permessageDeflate)
  35388. // 11. Fetch request with useParallelQueue set to true, and
  35389. // processResponse given response being these steps:
  35390. const controller = fetching({
  35391. request,
  35392. useParallelQueue: true,
  35393. dispatcher: options.dispatcher ?? getGlobalDispatcher(),
  35394. processResponse (response) {
  35395. // 1. If response is a network error or its status is not 101,
  35396. // fail the WebSocket connection.
  35397. if (response.type === 'error' || response.status !== 101) {
  35398. failWebsocketConnection(ws, 'Received network error or non-101 status code.')
  35399. return
  35400. }
  35401. // 2. If protocols is not the empty list and extracting header
  35402. // list values given `Sec-WebSocket-Protocol` and response’s
  35403. // header list results in null, failure, or the empty byte
  35404. // sequence, then fail the WebSocket connection.
  35405. if (protocols.length !== 0 && !response.headersList.get('Sec-WebSocket-Protocol')) {
  35406. failWebsocketConnection(ws, 'Server did not respond with sent protocols.')
  35407. return
  35408. }
  35409. // 3. Follow the requirements stated step 2 to step 6, inclusive,
  35410. // of the last set of steps in section 4.1 of The WebSocket
  35411. // Protocol to validate response. This either results in fail
  35412. // the WebSocket connection or the WebSocket connection is
  35413. // established.
  35414. // 2. If the response lacks an |Upgrade| header field or the |Upgrade|
  35415. // header field contains a value that is not an ASCII case-
  35416. // insensitive match for the value "websocket", the client MUST
  35417. // _Fail the WebSocket Connection_.
  35418. if (response.headersList.get('Upgrade')?.toLowerCase() !== 'websocket') {
  35419. failWebsocketConnection(ws, 'Server did not set Upgrade header to "websocket".')
  35420. return
  35421. }
  35422. // 3. If the response lacks a |Connection| header field or the
  35423. // |Connection| header field doesn't contain a token that is an
  35424. // ASCII case-insensitive match for the value "Upgrade", the client
  35425. // MUST _Fail the WebSocket Connection_.
  35426. if (response.headersList.get('Connection')?.toLowerCase() !== 'upgrade') {
  35427. failWebsocketConnection(ws, 'Server did not set Connection header to "upgrade".')
  35428. return
  35429. }
  35430. // 4. If the response lacks a |Sec-WebSocket-Accept| header field or
  35431. // the |Sec-WebSocket-Accept| contains a value other than the
  35432. // base64-encoded SHA-1 of the concatenation of the |Sec-WebSocket-
  35433. // Key| (as a string, not base64-decoded) with the string "258EAFA5-
  35434. // E914-47DA-95CA-C5AB0DC85B11" but ignoring any leading and
  35435. // trailing whitespace, the client MUST _Fail the WebSocket
  35436. // Connection_.
  35437. const secWSAccept = response.headersList.get('Sec-WebSocket-Accept')
  35438. const digest = crypto.createHash('sha1').update(keyValue + uid).digest('base64')
  35439. if (secWSAccept !== digest) {
  35440. failWebsocketConnection(ws, 'Incorrect hash received in Sec-WebSocket-Accept header.')
  35441. return
  35442. }
  35443. // 5. If the response includes a |Sec-WebSocket-Extensions| header
  35444. // field and this header field indicates the use of an extension
  35445. // that was not present in the client's handshake (the server has
  35446. // indicated an extension not requested by the client), the client
  35447. // MUST _Fail the WebSocket Connection_. (The parsing of this
  35448. // header field to determine which extensions are requested is
  35449. // discussed in Section 9.1.)
  35450. const secExtension = response.headersList.get('Sec-WebSocket-Extensions')
  35451. if (secExtension !== null && secExtension !== permessageDeflate) {
  35452. failWebsocketConnection(ws, 'Received different permessage-deflate than the one set.')
  35453. return
  35454. }
  35455. // 6. If the response includes a |Sec-WebSocket-Protocol| header field
  35456. // and this header field indicates the use of a subprotocol that was
  35457. // not present in the client's handshake (the server has indicated a
  35458. // subprotocol not requested by the client), the client MUST _Fail
  35459. // the WebSocket Connection_.
  35460. const secProtocol = response.headersList.get('Sec-WebSocket-Protocol')
  35461. if (secProtocol !== null && secProtocol !== request.headersList.get('Sec-WebSocket-Protocol')) {
  35462. failWebsocketConnection(ws, 'Protocol was not set in the opening handshake.')
  35463. return
  35464. }
  35465. response.socket.on('data', onSocketData)
  35466. response.socket.on('close', onSocketClose)
  35467. response.socket.on('error', onSocketError)
  35468. if (channels.open.hasSubscribers) {
  35469. channels.open.publish({
  35470. address: response.socket.address(),
  35471. protocol: secProtocol,
  35472. extensions: secExtension
  35473. })
  35474. }
  35475. onEstablish(response)
  35476. }
  35477. })
  35478. return controller
  35479. }
  35480. /**
  35481. * @param {Buffer} chunk
  35482. */
  35483. function onSocketData (chunk) {
  35484. if (!this.ws[kByteParser].write(chunk)) {
  35485. this.pause()
  35486. }
  35487. }
  35488. /**
  35489. * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol
  35490. * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.4
  35491. */
  35492. function onSocketClose () {
  35493. const { ws } = this
  35494. // If the TCP connection was closed after the
  35495. // WebSocket closing handshake was completed, the WebSocket connection
  35496. // is said to have been closed _cleanly_.
  35497. const wasClean = ws[kSentClose] && ws[kReceivedClose]
  35498. let code = 1005
  35499. let reason = ''
  35500. const result = ws[kByteParser].closingInfo
  35501. if (result) {
  35502. code = result.code ?? 1005
  35503. reason = result.reason
  35504. } else if (!ws[kSentClose]) {
  35505. // If _The WebSocket
  35506. // Connection is Closed_ and no Close control frame was received by the
  35507. // endpoint (such as could occur if the underlying transport connection
  35508. // is lost), _The WebSocket Connection Close Code_ is considered to be
  35509. // 1006.
  35510. code = 1006
  35511. }
  35512. // 1. Change the ready state to CLOSED (3).
  35513. ws[kReadyState] = states.CLOSED
  35514. // 2. If the user agent was required to fail the WebSocket
  35515. // connection, or if the WebSocket connection was closed
  35516. // after being flagged as full, fire an event named error
  35517. // at the WebSocket object.
  35518. // TODO
  35519. // 3. Fire an event named close at the WebSocket object,
  35520. // using CloseEvent, with the wasClean attribute
  35521. // initialized to true if the connection closed cleanly
  35522. // and false otherwise, the code attribute initialized to
  35523. // the WebSocket connection close code, and the reason
  35524. // attribute initialized to the result of applying UTF-8
  35525. // decode without BOM to the WebSocket connection close
  35526. // reason.
  35527. fireEvent('close', ws, CloseEvent, {
  35528. wasClean, code, reason
  35529. })
  35530. if (channels.close.hasSubscribers) {
  35531. channels.close.publish({
  35532. websocket: ws,
  35533. code,
  35534. reason
  35535. })
  35536. }
  35537. }
  35538. function onSocketError (error) {
  35539. const { ws } = this
  35540. ws[kReadyState] = states.CLOSING
  35541. if (channels.socketError.hasSubscribers) {
  35542. channels.socketError.publish(error)
  35543. }
  35544. this.destroy()
  35545. }
  35546. module.exports = {
  35547. establishWebSocketConnection
  35548. }
  35549. /***/ }),
  35550. /***/ 9188:
  35551. /***/ ((module) => {
  35552. "use strict";
  35553. // This is a Globally Unique Identifier unique used
  35554. // to validate that the endpoint accepts websocket
  35555. // connections.
  35556. // See https://www.rfc-editor.org/rfc/rfc6455.html#section-1.3
  35557. const uid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'
  35558. /** @type {PropertyDescriptor} */
  35559. const staticPropertyDescriptors = {
  35560. enumerable: true,
  35561. writable: false,
  35562. configurable: false
  35563. }
  35564. const states = {
  35565. CONNECTING: 0,
  35566. OPEN: 1,
  35567. CLOSING: 2,
  35568. CLOSED: 3
  35569. }
  35570. const opcodes = {
  35571. CONTINUATION: 0x0,
  35572. TEXT: 0x1,
  35573. BINARY: 0x2,
  35574. CLOSE: 0x8,
  35575. PING: 0x9,
  35576. PONG: 0xA
  35577. }
  35578. const maxUnsigned16Bit = 2 ** 16 - 1 // 65535
  35579. const parserStates = {
  35580. INFO: 0,
  35581. PAYLOADLENGTH_16: 2,
  35582. PAYLOADLENGTH_64: 3,
  35583. READ_DATA: 4
  35584. }
  35585. const emptyBuffer = Buffer.allocUnsafe(0)
  35586. module.exports = {
  35587. uid,
  35588. staticPropertyDescriptors,
  35589. states,
  35590. opcodes,
  35591. maxUnsigned16Bit,
  35592. parserStates,
  35593. emptyBuffer
  35594. }
  35595. /***/ }),
  35596. /***/ 2611:
  35597. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  35598. "use strict";
  35599. const { webidl } = __nccwpck_require__(1744)
  35600. const { kEnumerableProperty } = __nccwpck_require__(3983)
  35601. const { MessagePort } = __nccwpck_require__(1267)
  35602. /**
  35603. * @see https://html.spec.whatwg.org/multipage/comms.html#messageevent
  35604. */
  35605. class MessageEvent extends Event {
  35606. #eventInit
  35607. constructor (type, eventInitDict = {}) {
  35608. webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent constructor' })
  35609. type = webidl.converters.DOMString(type)
  35610. eventInitDict = webidl.converters.MessageEventInit(eventInitDict)
  35611. super(type, eventInitDict)
  35612. this.#eventInit = eventInitDict
  35613. }
  35614. get data () {
  35615. webidl.brandCheck(this, MessageEvent)
  35616. return this.#eventInit.data
  35617. }
  35618. get origin () {
  35619. webidl.brandCheck(this, MessageEvent)
  35620. return this.#eventInit.origin
  35621. }
  35622. get lastEventId () {
  35623. webidl.brandCheck(this, MessageEvent)
  35624. return this.#eventInit.lastEventId
  35625. }
  35626. get source () {
  35627. webidl.brandCheck(this, MessageEvent)
  35628. return this.#eventInit.source
  35629. }
  35630. get ports () {
  35631. webidl.brandCheck(this, MessageEvent)
  35632. if (!Object.isFrozen(this.#eventInit.ports)) {
  35633. Object.freeze(this.#eventInit.ports)
  35634. }
  35635. return this.#eventInit.ports
  35636. }
  35637. initMessageEvent (
  35638. type,
  35639. bubbles = false,
  35640. cancelable = false,
  35641. data = null,
  35642. origin = '',
  35643. lastEventId = '',
  35644. source = null,
  35645. ports = []
  35646. ) {
  35647. webidl.brandCheck(this, MessageEvent)
  35648. webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent.initMessageEvent' })
  35649. return new MessageEvent(type, {
  35650. bubbles, cancelable, data, origin, lastEventId, source, ports
  35651. })
  35652. }
  35653. }
  35654. /**
  35655. * @see https://websockets.spec.whatwg.org/#the-closeevent-interface
  35656. */
  35657. class CloseEvent extends Event {
  35658. #eventInit
  35659. constructor (type, eventInitDict = {}) {
  35660. webidl.argumentLengthCheck(arguments, 1, { header: 'CloseEvent constructor' })
  35661. type = webidl.converters.DOMString(type)
  35662. eventInitDict = webidl.converters.CloseEventInit(eventInitDict)
  35663. super(type, eventInitDict)
  35664. this.#eventInit = eventInitDict
  35665. }
  35666. get wasClean () {
  35667. webidl.brandCheck(this, CloseEvent)
  35668. return this.#eventInit.wasClean
  35669. }
  35670. get code () {
  35671. webidl.brandCheck(this, CloseEvent)
  35672. return this.#eventInit.code
  35673. }
  35674. get reason () {
  35675. webidl.brandCheck(this, CloseEvent)
  35676. return this.#eventInit.reason
  35677. }
  35678. }
  35679. // https://html.spec.whatwg.org/multipage/webappapis.html#the-errorevent-interface
  35680. class ErrorEvent extends Event {
  35681. #eventInit
  35682. constructor (type, eventInitDict) {
  35683. webidl.argumentLengthCheck(arguments, 1, { header: 'ErrorEvent constructor' })
  35684. super(type, eventInitDict)
  35685. type = webidl.converters.DOMString(type)
  35686. eventInitDict = webidl.converters.ErrorEventInit(eventInitDict ?? {})
  35687. this.#eventInit = eventInitDict
  35688. }
  35689. get message () {
  35690. webidl.brandCheck(this, ErrorEvent)
  35691. return this.#eventInit.message
  35692. }
  35693. get filename () {
  35694. webidl.brandCheck(this, ErrorEvent)
  35695. return this.#eventInit.filename
  35696. }
  35697. get lineno () {
  35698. webidl.brandCheck(this, ErrorEvent)
  35699. return this.#eventInit.lineno
  35700. }
  35701. get colno () {
  35702. webidl.brandCheck(this, ErrorEvent)
  35703. return this.#eventInit.colno
  35704. }
  35705. get error () {
  35706. webidl.brandCheck(this, ErrorEvent)
  35707. return this.#eventInit.error
  35708. }
  35709. }
  35710. Object.defineProperties(MessageEvent.prototype, {
  35711. [Symbol.toStringTag]: {
  35712. value: 'MessageEvent',
  35713. configurable: true
  35714. },
  35715. data: kEnumerableProperty,
  35716. origin: kEnumerableProperty,
  35717. lastEventId: kEnumerableProperty,
  35718. source: kEnumerableProperty,
  35719. ports: kEnumerableProperty,
  35720. initMessageEvent: kEnumerableProperty
  35721. })
  35722. Object.defineProperties(CloseEvent.prototype, {
  35723. [Symbol.toStringTag]: {
  35724. value: 'CloseEvent',
  35725. configurable: true
  35726. },
  35727. reason: kEnumerableProperty,
  35728. code: kEnumerableProperty,
  35729. wasClean: kEnumerableProperty
  35730. })
  35731. Object.defineProperties(ErrorEvent.prototype, {
  35732. [Symbol.toStringTag]: {
  35733. value: 'ErrorEvent',
  35734. configurable: true
  35735. },
  35736. message: kEnumerableProperty,
  35737. filename: kEnumerableProperty,
  35738. lineno: kEnumerableProperty,
  35739. colno: kEnumerableProperty,
  35740. error: kEnumerableProperty
  35741. })
  35742. webidl.converters.MessagePort = webidl.interfaceConverter(MessagePort)
  35743. webidl.converters['sequence<MessagePort>'] = webidl.sequenceConverter(
  35744. webidl.converters.MessagePort
  35745. )
  35746. const eventInit = [
  35747. {
  35748. key: 'bubbles',
  35749. converter: webidl.converters.boolean,
  35750. defaultValue: false
  35751. },
  35752. {
  35753. key: 'cancelable',
  35754. converter: webidl.converters.boolean,
  35755. defaultValue: false
  35756. },
  35757. {
  35758. key: 'composed',
  35759. converter: webidl.converters.boolean,
  35760. defaultValue: false
  35761. }
  35762. ]
  35763. webidl.converters.MessageEventInit = webidl.dictionaryConverter([
  35764. ...eventInit,
  35765. {
  35766. key: 'data',
  35767. converter: webidl.converters.any,
  35768. defaultValue: null
  35769. },
  35770. {
  35771. key: 'origin',
  35772. converter: webidl.converters.USVString,
  35773. defaultValue: ''
  35774. },
  35775. {
  35776. key: 'lastEventId',
  35777. converter: webidl.converters.DOMString,
  35778. defaultValue: ''
  35779. },
  35780. {
  35781. key: 'source',
  35782. // Node doesn't implement WindowProxy or ServiceWorker, so the only
  35783. // valid value for source is a MessagePort.
  35784. converter: webidl.nullableConverter(webidl.converters.MessagePort),
  35785. defaultValue: null
  35786. },
  35787. {
  35788. key: 'ports',
  35789. converter: webidl.converters['sequence<MessagePort>'],
  35790. get defaultValue () {
  35791. return []
  35792. }
  35793. }
  35794. ])
  35795. webidl.converters.CloseEventInit = webidl.dictionaryConverter([
  35796. ...eventInit,
  35797. {
  35798. key: 'wasClean',
  35799. converter: webidl.converters.boolean,
  35800. defaultValue: false
  35801. },
  35802. {
  35803. key: 'code',
  35804. converter: webidl.converters['unsigned short'],
  35805. defaultValue: 0
  35806. },
  35807. {
  35808. key: 'reason',
  35809. converter: webidl.converters.USVString,
  35810. defaultValue: ''
  35811. }
  35812. ])
  35813. webidl.converters.ErrorEventInit = webidl.dictionaryConverter([
  35814. ...eventInit,
  35815. {
  35816. key: 'message',
  35817. converter: webidl.converters.DOMString,
  35818. defaultValue: ''
  35819. },
  35820. {
  35821. key: 'filename',
  35822. converter: webidl.converters.USVString,
  35823. defaultValue: ''
  35824. },
  35825. {
  35826. key: 'lineno',
  35827. converter: webidl.converters['unsigned long'],
  35828. defaultValue: 0
  35829. },
  35830. {
  35831. key: 'colno',
  35832. converter: webidl.converters['unsigned long'],
  35833. defaultValue: 0
  35834. },
  35835. {
  35836. key: 'error',
  35837. converter: webidl.converters.any
  35838. }
  35839. ])
  35840. module.exports = {
  35841. MessageEvent,
  35842. CloseEvent,
  35843. ErrorEvent
  35844. }
  35845. /***/ }),
  35846. /***/ 5444:
  35847. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  35848. "use strict";
  35849. const { maxUnsigned16Bit } = __nccwpck_require__(9188)
  35850. /** @type {import('crypto')} */
  35851. let crypto
  35852. try {
  35853. crypto = __nccwpck_require__(6113)
  35854. } catch {
  35855. }
  35856. class WebsocketFrameSend {
  35857. /**
  35858. * @param {Buffer|undefined} data
  35859. */
  35860. constructor (data) {
  35861. this.frameData = data
  35862. this.maskKey = crypto.randomBytes(4)
  35863. }
  35864. createFrame (opcode) {
  35865. const bodyLength = this.frameData?.byteLength ?? 0
  35866. /** @type {number} */
  35867. let payloadLength = bodyLength // 0-125
  35868. let offset = 6
  35869. if (bodyLength > maxUnsigned16Bit) {
  35870. offset += 8 // payload length is next 8 bytes
  35871. payloadLength = 127
  35872. } else if (bodyLength > 125) {
  35873. offset += 2 // payload length is next 2 bytes
  35874. payloadLength = 126
  35875. }
  35876. const buffer = Buffer.allocUnsafe(bodyLength + offset)
  35877. // Clear first 2 bytes, everything else is overwritten
  35878. buffer[0] = buffer[1] = 0
  35879. buffer[0] |= 0x80 // FIN
  35880. buffer[0] = (buffer[0] & 0xF0) + opcode // opcode
  35881. /*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */
  35882. buffer[offset - 4] = this.maskKey[0]
  35883. buffer[offset - 3] = this.maskKey[1]
  35884. buffer[offset - 2] = this.maskKey[2]
  35885. buffer[offset - 1] = this.maskKey[3]
  35886. buffer[1] = payloadLength
  35887. if (payloadLength === 126) {
  35888. buffer.writeUInt16BE(bodyLength, 2)
  35889. } else if (payloadLength === 127) {
  35890. // Clear extended payload length
  35891. buffer[2] = buffer[3] = 0
  35892. buffer.writeUIntBE(bodyLength, 4, 6)
  35893. }
  35894. buffer[1] |= 0x80 // MASK
  35895. // mask body
  35896. for (let i = 0; i < bodyLength; i++) {
  35897. buffer[offset + i] = this.frameData[i] ^ this.maskKey[i % 4]
  35898. }
  35899. return buffer
  35900. }
  35901. }
  35902. module.exports = {
  35903. WebsocketFrameSend
  35904. }
  35905. /***/ }),
  35906. /***/ 1688:
  35907. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  35908. "use strict";
  35909. const { Writable } = __nccwpck_require__(2781)
  35910. const diagnosticsChannel = __nccwpck_require__(7643)
  35911. const { parserStates, opcodes, states, emptyBuffer } = __nccwpck_require__(9188)
  35912. const { kReadyState, kSentClose, kResponse, kReceivedClose } = __nccwpck_require__(7578)
  35913. const { isValidStatusCode, failWebsocketConnection, websocketMessageReceived } = __nccwpck_require__(5515)
  35914. const { WebsocketFrameSend } = __nccwpck_require__(5444)
  35915. // This code was influenced by ws released under the MIT license.
  35916. // Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
  35917. // Copyright (c) 2013 Arnout Kazemier and contributors
  35918. // Copyright (c) 2016 Luigi Pinca and contributors
  35919. const channels = {}
  35920. channels.ping = diagnosticsChannel.channel('undici:websocket:ping')
  35921. channels.pong = diagnosticsChannel.channel('undici:websocket:pong')
  35922. class ByteParser extends Writable {
  35923. #buffers = []
  35924. #byteOffset = 0
  35925. #state = parserStates.INFO
  35926. #info = {}
  35927. #fragments = []
  35928. constructor (ws) {
  35929. super()
  35930. this.ws = ws
  35931. }
  35932. /**
  35933. * @param {Buffer} chunk
  35934. * @param {() => void} callback
  35935. */
  35936. _write (chunk, _, callback) {
  35937. this.#buffers.push(chunk)
  35938. this.#byteOffset += chunk.length
  35939. this.run(callback)
  35940. }
  35941. /**
  35942. * Runs whenever a new chunk is received.
  35943. * Callback is called whenever there are no more chunks buffering,
  35944. * or not enough bytes are buffered to parse.
  35945. */
  35946. run (callback) {
  35947. while (true) {
  35948. if (this.#state === parserStates.INFO) {
  35949. // If there aren't enough bytes to parse the payload length, etc.
  35950. if (this.#byteOffset < 2) {
  35951. return callback()
  35952. }
  35953. const buffer = this.consume(2)
  35954. this.#info.fin = (buffer[0] & 0x80) !== 0
  35955. this.#info.opcode = buffer[0] & 0x0F
  35956. // If we receive a fragmented message, we use the type of the first
  35957. // frame to parse the full message as binary/text, when it's terminated
  35958. this.#info.originalOpcode ??= this.#info.opcode
  35959. this.#info.fragmented = !this.#info.fin && this.#info.opcode !== opcodes.CONTINUATION
  35960. if (this.#info.fragmented && this.#info.opcode !== opcodes.BINARY && this.#info.opcode !== opcodes.TEXT) {
  35961. // Only text and binary frames can be fragmented
  35962. failWebsocketConnection(this.ws, 'Invalid frame type was fragmented.')
  35963. return
  35964. }
  35965. const payloadLength = buffer[1] & 0x7F
  35966. if (payloadLength <= 125) {
  35967. this.#info.payloadLength = payloadLength
  35968. this.#state = parserStates.READ_DATA
  35969. } else if (payloadLength === 126) {
  35970. this.#state = parserStates.PAYLOADLENGTH_16
  35971. } else if (payloadLength === 127) {
  35972. this.#state = parserStates.PAYLOADLENGTH_64
  35973. }
  35974. if (this.#info.fragmented && payloadLength > 125) {
  35975. // A fragmented frame can't be fragmented itself
  35976. failWebsocketConnection(this.ws, 'Fragmented frame exceeded 125 bytes.')
  35977. return
  35978. } else if (
  35979. (this.#info.opcode === opcodes.PING ||
  35980. this.#info.opcode === opcodes.PONG ||
  35981. this.#info.opcode === opcodes.CLOSE) &&
  35982. payloadLength > 125
  35983. ) {
  35984. // Control frames can have a payload length of 125 bytes MAX
  35985. failWebsocketConnection(this.ws, 'Payload length for control frame exceeded 125 bytes.')
  35986. return
  35987. } else if (this.#info.opcode === opcodes.CLOSE) {
  35988. if (payloadLength === 1) {
  35989. failWebsocketConnection(this.ws, 'Received close frame with a 1-byte body.')
  35990. return
  35991. }
  35992. const body = this.consume(payloadLength)
  35993. this.#info.closeInfo = this.parseCloseBody(false, body)
  35994. if (!this.ws[kSentClose]) {
  35995. // If an endpoint receives a Close frame and did not previously send a
  35996. // Close frame, the endpoint MUST send a Close frame in response. (When
  35997. // sending a Close frame in response, the endpoint typically echos the
  35998. // status code it received.)
  35999. const body = Buffer.allocUnsafe(2)
  36000. body.writeUInt16BE(this.#info.closeInfo.code, 0)
  36001. const closeFrame = new WebsocketFrameSend(body)
  36002. this.ws[kResponse].socket.write(
  36003. closeFrame.createFrame(opcodes.CLOSE),
  36004. (err) => {
  36005. if (!err) {
  36006. this.ws[kSentClose] = true
  36007. }
  36008. }
  36009. )
  36010. }
  36011. // Upon either sending or receiving a Close control frame, it is said
  36012. // that _The WebSocket Closing Handshake is Started_ and that the
  36013. // WebSocket connection is in the CLOSING state.
  36014. this.ws[kReadyState] = states.CLOSING
  36015. this.ws[kReceivedClose] = true
  36016. this.end()
  36017. return
  36018. } else if (this.#info.opcode === opcodes.PING) {
  36019. // Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in
  36020. // response, unless it already received a Close frame.
  36021. // A Pong frame sent in response to a Ping frame must have identical
  36022. // "Application data"
  36023. const body = this.consume(payloadLength)
  36024. if (!this.ws[kReceivedClose]) {
  36025. const frame = new WebsocketFrameSend(body)
  36026. this.ws[kResponse].socket.write(frame.createFrame(opcodes.PONG))
  36027. if (channels.ping.hasSubscribers) {
  36028. channels.ping.publish({
  36029. payload: body
  36030. })
  36031. }
  36032. }
  36033. this.#state = parserStates.INFO
  36034. if (this.#byteOffset > 0) {
  36035. continue
  36036. } else {
  36037. callback()
  36038. return
  36039. }
  36040. } else if (this.#info.opcode === opcodes.PONG) {
  36041. // A Pong frame MAY be sent unsolicited. This serves as a
  36042. // unidirectional heartbeat. A response to an unsolicited Pong frame is
  36043. // not expected.
  36044. const body = this.consume(payloadLength)
  36045. if (channels.pong.hasSubscribers) {
  36046. channels.pong.publish({
  36047. payload: body
  36048. })
  36049. }
  36050. if (this.#byteOffset > 0) {
  36051. continue
  36052. } else {
  36053. callback()
  36054. return
  36055. }
  36056. }
  36057. } else if (this.#state === parserStates.PAYLOADLENGTH_16) {
  36058. if (this.#byteOffset < 2) {
  36059. return callback()
  36060. }
  36061. const buffer = this.consume(2)
  36062. this.#info.payloadLength = buffer.readUInt16BE(0)
  36063. this.#state = parserStates.READ_DATA
  36064. } else if (this.#state === parserStates.PAYLOADLENGTH_64) {
  36065. if (this.#byteOffset < 8) {
  36066. return callback()
  36067. }
  36068. const buffer = this.consume(8)
  36069. const upper = buffer.readUInt32BE(0)
  36070. // 2^31 is the maxinimum bytes an arraybuffer can contain
  36071. // on 32-bit systems. Although, on 64-bit systems, this is
  36072. // 2^53-1 bytes.
  36073. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_array_length
  36074. // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/common/globals.h;drc=1946212ac0100668f14eb9e2843bdd846e510a1e;bpv=1;bpt=1;l=1275
  36075. // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/js-array-buffer.h;l=34;drc=1946212ac0100668f14eb9e2843bdd846e510a1e
  36076. if (upper > 2 ** 31 - 1) {
  36077. failWebsocketConnection(this.ws, 'Received payload length > 2^31 bytes.')
  36078. return
  36079. }
  36080. const lower = buffer.readUInt32BE(4)
  36081. this.#info.payloadLength = (upper << 8) + lower
  36082. this.#state = parserStates.READ_DATA
  36083. } else if (this.#state === parserStates.READ_DATA) {
  36084. if (this.#byteOffset < this.#info.payloadLength) {
  36085. // If there is still more data in this chunk that needs to be read
  36086. return callback()
  36087. } else if (this.#byteOffset >= this.#info.payloadLength) {
  36088. // If the server sent multiple frames in a single chunk
  36089. const body = this.consume(this.#info.payloadLength)
  36090. this.#fragments.push(body)
  36091. // If the frame is unfragmented, or a fragmented frame was terminated,
  36092. // a message was received
  36093. if (!this.#info.fragmented || (this.#info.fin && this.#info.opcode === opcodes.CONTINUATION)) {
  36094. const fullMessage = Buffer.concat(this.#fragments)
  36095. websocketMessageReceived(this.ws, this.#info.originalOpcode, fullMessage)
  36096. this.#info = {}
  36097. this.#fragments.length = 0
  36098. }
  36099. this.#state = parserStates.INFO
  36100. }
  36101. }
  36102. if (this.#byteOffset > 0) {
  36103. continue
  36104. } else {
  36105. callback()
  36106. break
  36107. }
  36108. }
  36109. }
  36110. /**
  36111. * Take n bytes from the buffered Buffers
  36112. * @param {number} n
  36113. * @returns {Buffer|null}
  36114. */
  36115. consume (n) {
  36116. if (n > this.#byteOffset) {
  36117. return null
  36118. } else if (n === 0) {
  36119. return emptyBuffer
  36120. }
  36121. if (this.#buffers[0].length === n) {
  36122. this.#byteOffset -= this.#buffers[0].length
  36123. return this.#buffers.shift()
  36124. }
  36125. const buffer = Buffer.allocUnsafe(n)
  36126. let offset = 0
  36127. while (offset !== n) {
  36128. const next = this.#buffers[0]
  36129. const { length } = next
  36130. if (length + offset === n) {
  36131. buffer.set(this.#buffers.shift(), offset)
  36132. break
  36133. } else if (length + offset > n) {
  36134. buffer.set(next.subarray(0, n - offset), offset)
  36135. this.#buffers[0] = next.subarray(n - offset)
  36136. break
  36137. } else {
  36138. buffer.set(this.#buffers.shift(), offset)
  36139. offset += next.length
  36140. }
  36141. }
  36142. this.#byteOffset -= n
  36143. return buffer
  36144. }
  36145. parseCloseBody (onlyCode, data) {
  36146. // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.5
  36147. /** @type {number|undefined} */
  36148. let code
  36149. if (data.length >= 2) {
  36150. // _The WebSocket Connection Close Code_ is
  36151. // defined as the status code (Section 7.4) contained in the first Close
  36152. // control frame received by the application
  36153. code = data.readUInt16BE(0)
  36154. }
  36155. if (onlyCode) {
  36156. if (!isValidStatusCode(code)) {
  36157. return null
  36158. }
  36159. return { code }
  36160. }
  36161. // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.6
  36162. /** @type {Buffer} */
  36163. let reason = data.subarray(2)
  36164. // Remove BOM
  36165. if (reason[0] === 0xEF && reason[1] === 0xBB && reason[2] === 0xBF) {
  36166. reason = reason.subarray(3)
  36167. }
  36168. if (code !== undefined && !isValidStatusCode(code)) {
  36169. return null
  36170. }
  36171. try {
  36172. // TODO: optimize this
  36173. reason = new TextDecoder('utf-8', { fatal: true }).decode(reason)
  36174. } catch {
  36175. return null
  36176. }
  36177. return { code, reason }
  36178. }
  36179. get closingInfo () {
  36180. return this.#info.closeInfo
  36181. }
  36182. }
  36183. module.exports = {
  36184. ByteParser
  36185. }
  36186. /***/ }),
  36187. /***/ 7578:
  36188. /***/ ((module) => {
  36189. "use strict";
  36190. module.exports = {
  36191. kWebSocketURL: Symbol('url'),
  36192. kReadyState: Symbol('ready state'),
  36193. kController: Symbol('controller'),
  36194. kResponse: Symbol('response'),
  36195. kBinaryType: Symbol('binary type'),
  36196. kSentClose: Symbol('sent close'),
  36197. kReceivedClose: Symbol('received close'),
  36198. kByteParser: Symbol('byte parser')
  36199. }
  36200. /***/ }),
  36201. /***/ 5515:
  36202. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  36203. "use strict";
  36204. const { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = __nccwpck_require__(7578)
  36205. const { states, opcodes } = __nccwpck_require__(9188)
  36206. const { MessageEvent, ErrorEvent } = __nccwpck_require__(2611)
  36207. /* globals Blob */
  36208. /**
  36209. * @param {import('./websocket').WebSocket} ws
  36210. */
  36211. function isEstablished (ws) {
  36212. // If the server's response is validated as provided for above, it is
  36213. // said that _The WebSocket Connection is Established_ and that the
  36214. // WebSocket Connection is in the OPEN state.
  36215. return ws[kReadyState] === states.OPEN
  36216. }
  36217. /**
  36218. * @param {import('./websocket').WebSocket} ws
  36219. */
  36220. function isClosing (ws) {
  36221. // Upon either sending or receiving a Close control frame, it is said
  36222. // that _The WebSocket Closing Handshake is Started_ and that the
  36223. // WebSocket connection is in the CLOSING state.
  36224. return ws[kReadyState] === states.CLOSING
  36225. }
  36226. /**
  36227. * @param {import('./websocket').WebSocket} ws
  36228. */
  36229. function isClosed (ws) {
  36230. return ws[kReadyState] === states.CLOSED
  36231. }
  36232. /**
  36233. * @see https://dom.spec.whatwg.org/#concept-event-fire
  36234. * @param {string} e
  36235. * @param {EventTarget} target
  36236. * @param {EventInit | undefined} eventInitDict
  36237. */
  36238. function fireEvent (e, target, eventConstructor = Event, eventInitDict) {
  36239. // 1. If eventConstructor is not given, then let eventConstructor be Event.
  36240. // 2. Let event be the result of creating an event given eventConstructor,
  36241. // in the relevant realm of target.
  36242. // 3. Initialize event’s type attribute to e.
  36243. const event = new eventConstructor(e, eventInitDict) // eslint-disable-line new-cap
  36244. // 4. Initialize any other IDL attributes of event as described in the
  36245. // invocation of this algorithm.
  36246. // 5. Return the result of dispatching event at target, with legacy target
  36247. // override flag set if set.
  36248. target.dispatchEvent(event)
  36249. }
  36250. /**
  36251. * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol
  36252. * @param {import('./websocket').WebSocket} ws
  36253. * @param {number} type Opcode
  36254. * @param {Buffer} data application data
  36255. */
  36256. function websocketMessageReceived (ws, type, data) {
  36257. // 1. If ready state is not OPEN (1), then return.
  36258. if (ws[kReadyState] !== states.OPEN) {
  36259. return
  36260. }
  36261. // 2. Let dataForEvent be determined by switching on type and binary type:
  36262. let dataForEvent
  36263. if (type === opcodes.TEXT) {
  36264. // -> type indicates that the data is Text
  36265. // a new DOMString containing data
  36266. try {
  36267. dataForEvent = new TextDecoder('utf-8', { fatal: true }).decode(data)
  36268. } catch {
  36269. failWebsocketConnection(ws, 'Received invalid UTF-8 in text frame.')
  36270. return
  36271. }
  36272. } else if (type === opcodes.BINARY) {
  36273. if (ws[kBinaryType] === 'blob') {
  36274. // -> type indicates that the data is Binary and binary type is "blob"
  36275. // a new Blob object, created in the relevant Realm of the WebSocket
  36276. // object, that represents data as its raw data
  36277. dataForEvent = new Blob([data])
  36278. } else {
  36279. // -> type indicates that the data is Binary and binary type is "arraybuffer"
  36280. // a new ArrayBuffer object, created in the relevant Realm of the
  36281. // WebSocket object, whose contents are data
  36282. dataForEvent = new Uint8Array(data).buffer
  36283. }
  36284. }
  36285. // 3. Fire an event named message at the WebSocket object, using MessageEvent,
  36286. // with the origin attribute initialized to the serialization of the WebSocket
  36287. // object’s url's origin, and the data attribute initialized to dataForEvent.
  36288. fireEvent('message', ws, MessageEvent, {
  36289. origin: ws[kWebSocketURL].origin,
  36290. data: dataForEvent
  36291. })
  36292. }
  36293. /**
  36294. * @see https://datatracker.ietf.org/doc/html/rfc6455
  36295. * @see https://datatracker.ietf.org/doc/html/rfc2616
  36296. * @see https://bugs.chromium.org/p/chromium/issues/detail?id=398407
  36297. * @param {string} protocol
  36298. */
  36299. function isValidSubprotocol (protocol) {
  36300. // If present, this value indicates one
  36301. // or more comma-separated subprotocol the client wishes to speak,
  36302. // ordered by preference. The elements that comprise this value
  36303. // MUST be non-empty strings with characters in the range U+0021 to
  36304. // U+007E not including separator characters as defined in
  36305. // [RFC2616] and MUST all be unique strings.
  36306. if (protocol.length === 0) {
  36307. return false
  36308. }
  36309. for (const char of protocol) {
  36310. const code = char.charCodeAt(0)
  36311. if (
  36312. code < 0x21 ||
  36313. code > 0x7E ||
  36314. char === '(' ||
  36315. char === ')' ||
  36316. char === '<' ||
  36317. char === '>' ||
  36318. char === '@' ||
  36319. char === ',' ||
  36320. char === ';' ||
  36321. char === ':' ||
  36322. char === '\\' ||
  36323. char === '"' ||
  36324. char === '/' ||
  36325. char === '[' ||
  36326. char === ']' ||
  36327. char === '?' ||
  36328. char === '=' ||
  36329. char === '{' ||
  36330. char === '}' ||
  36331. code === 32 || // SP
  36332. code === 9 // HT
  36333. ) {
  36334. return false
  36335. }
  36336. }
  36337. return true
  36338. }
  36339. /**
  36340. * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7-4
  36341. * @param {number} code
  36342. */
  36343. function isValidStatusCode (code) {
  36344. if (code >= 1000 && code < 1015) {
  36345. return (
  36346. code !== 1004 && // reserved
  36347. code !== 1005 && // "MUST NOT be set as a status code"
  36348. code !== 1006 // "MUST NOT be set as a status code"
  36349. )
  36350. }
  36351. return code >= 3000 && code <= 4999
  36352. }
  36353. /**
  36354. * @param {import('./websocket').WebSocket} ws
  36355. * @param {string|undefined} reason
  36356. */
  36357. function failWebsocketConnection (ws, reason) {
  36358. const { [kController]: controller, [kResponse]: response } = ws
  36359. controller.abort()
  36360. if (response?.socket && !response.socket.destroyed) {
  36361. response.socket.destroy()
  36362. }
  36363. if (reason) {
  36364. fireEvent('error', ws, ErrorEvent, {
  36365. error: new Error(reason)
  36366. })
  36367. }
  36368. }
  36369. module.exports = {
  36370. isEstablished,
  36371. isClosing,
  36372. isClosed,
  36373. fireEvent,
  36374. isValidSubprotocol,
  36375. isValidStatusCode,
  36376. failWebsocketConnection,
  36377. websocketMessageReceived
  36378. }
  36379. /***/ }),
  36380. /***/ 4284:
  36381. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  36382. "use strict";
  36383. const { webidl } = __nccwpck_require__(1744)
  36384. const { DOMException } = __nccwpck_require__(1037)
  36385. const { URLSerializer } = __nccwpck_require__(685)
  36386. const { getGlobalOrigin } = __nccwpck_require__(1246)
  36387. const { staticPropertyDescriptors, states, opcodes, emptyBuffer } = __nccwpck_require__(9188)
  36388. const {
  36389. kWebSocketURL,
  36390. kReadyState,
  36391. kController,
  36392. kBinaryType,
  36393. kResponse,
  36394. kSentClose,
  36395. kByteParser
  36396. } = __nccwpck_require__(7578)
  36397. const { isEstablished, isClosing, isValidSubprotocol, failWebsocketConnection, fireEvent } = __nccwpck_require__(5515)
  36398. const { establishWebSocketConnection } = __nccwpck_require__(5354)
  36399. const { WebsocketFrameSend } = __nccwpck_require__(5444)
  36400. const { ByteParser } = __nccwpck_require__(1688)
  36401. const { kEnumerableProperty, isBlobLike } = __nccwpck_require__(3983)
  36402. const { getGlobalDispatcher } = __nccwpck_require__(1892)
  36403. const { types } = __nccwpck_require__(3837)
  36404. let experimentalWarned = false
  36405. // https://websockets.spec.whatwg.org/#interface-definition
  36406. class WebSocket extends EventTarget {
  36407. #events = {
  36408. open: null,
  36409. error: null,
  36410. close: null,
  36411. message: null
  36412. }
  36413. #bufferedAmount = 0
  36414. #protocol = ''
  36415. #extensions = ''
  36416. /**
  36417. * @param {string} url
  36418. * @param {string|string[]} protocols
  36419. */
  36420. constructor (url, protocols = []) {
  36421. super()
  36422. webidl.argumentLengthCheck(arguments, 1, { header: 'WebSocket constructor' })
  36423. if (!experimentalWarned) {
  36424. experimentalWarned = true
  36425. process.emitWarning('WebSockets are experimental, expect them to change at any time.', {
  36426. code: 'UNDICI-WS'
  36427. })
  36428. }
  36429. const options = webidl.converters['DOMString or sequence<DOMString> or WebSocketInit'](protocols)
  36430. url = webidl.converters.USVString(url)
  36431. protocols = options.protocols
  36432. // 1. Let baseURL be this's relevant settings object's API base URL.
  36433. const baseURL = getGlobalOrigin()
  36434. // 1. Let urlRecord be the result of applying the URL parser to url with baseURL.
  36435. let urlRecord
  36436. try {
  36437. urlRecord = new URL(url, baseURL)
  36438. } catch (e) {
  36439. // 3. If urlRecord is failure, then throw a "SyntaxError" DOMException.
  36440. throw new DOMException(e, 'SyntaxError')
  36441. }
  36442. // 4. If urlRecord’s scheme is "http", then set urlRecord’s scheme to "ws".
  36443. if (urlRecord.protocol === 'http:') {
  36444. urlRecord.protocol = 'ws:'
  36445. } else if (urlRecord.protocol === 'https:') {
  36446. // 5. Otherwise, if urlRecord’s scheme is "https", set urlRecord’s scheme to "wss".
  36447. urlRecord.protocol = 'wss:'
  36448. }
  36449. // 6. If urlRecord’s scheme is not "ws" or "wss", then throw a "SyntaxError" DOMException.
  36450. if (urlRecord.protocol !== 'ws:' && urlRecord.protocol !== 'wss:') {
  36451. throw new DOMException(
  36452. `Expected a ws: or wss: protocol, got ${urlRecord.protocol}`,
  36453. 'SyntaxError'
  36454. )
  36455. }
  36456. // 7. If urlRecord’s fragment is non-null, then throw a "SyntaxError"
  36457. // DOMException.
  36458. if (urlRecord.hash || urlRecord.href.endsWith('#')) {
  36459. throw new DOMException('Got fragment', 'SyntaxError')
  36460. }
  36461. // 8. If protocols is a string, set protocols to a sequence consisting
  36462. // of just that string.
  36463. if (typeof protocols === 'string') {
  36464. protocols = [protocols]
  36465. }
  36466. // 9. If any of the values in protocols occur more than once or otherwise
  36467. // fail to match the requirements for elements that comprise the value
  36468. // of `Sec-WebSocket-Protocol` fields as defined by The WebSocket
  36469. // protocol, then throw a "SyntaxError" DOMException.
  36470. if (protocols.length !== new Set(protocols.map(p => p.toLowerCase())).size) {
  36471. throw new DOMException('Invalid Sec-WebSocket-Protocol value', 'SyntaxError')
  36472. }
  36473. if (protocols.length > 0 && !protocols.every(p => isValidSubprotocol(p))) {
  36474. throw new DOMException('Invalid Sec-WebSocket-Protocol value', 'SyntaxError')
  36475. }
  36476. // 10. Set this's url to urlRecord.
  36477. this[kWebSocketURL] = new URL(urlRecord.href)
  36478. // 11. Let client be this's relevant settings object.
  36479. // 12. Run this step in parallel:
  36480. // 1. Establish a WebSocket connection given urlRecord, protocols,
  36481. // and client.
  36482. this[kController] = establishWebSocketConnection(
  36483. urlRecord,
  36484. protocols,
  36485. this,
  36486. (response) => this.#onConnectionEstablished(response),
  36487. options
  36488. )
  36489. // Each WebSocket object has an associated ready state, which is a
  36490. // number representing the state of the connection. Initially it must
  36491. // be CONNECTING (0).
  36492. this[kReadyState] = WebSocket.CONNECTING
  36493. // The extensions attribute must initially return the empty string.
  36494. // The protocol attribute must initially return the empty string.
  36495. // Each WebSocket object has an associated binary type, which is a
  36496. // BinaryType. Initially it must be "blob".
  36497. this[kBinaryType] = 'blob'
  36498. }
  36499. /**
  36500. * @see https://websockets.spec.whatwg.org/#dom-websocket-close
  36501. * @param {number|undefined} code
  36502. * @param {string|undefined} reason
  36503. */
  36504. close (code = undefined, reason = undefined) {
  36505. webidl.brandCheck(this, WebSocket)
  36506. if (code !== undefined) {
  36507. code = webidl.converters['unsigned short'](code, { clamp: true })
  36508. }
  36509. if (reason !== undefined) {
  36510. reason = webidl.converters.USVString(reason)
  36511. }
  36512. // 1. If code is present, but is neither an integer equal to 1000 nor an
  36513. // integer in the range 3000 to 4999, inclusive, throw an
  36514. // "InvalidAccessError" DOMException.
  36515. if (code !== undefined) {
  36516. if (code !== 1000 && (code < 3000 || code > 4999)) {
  36517. throw new DOMException('invalid code', 'InvalidAccessError')
  36518. }
  36519. }
  36520. let reasonByteLength = 0
  36521. // 2. If reason is present, then run these substeps:
  36522. if (reason !== undefined) {
  36523. // 1. Let reasonBytes be the result of encoding reason.
  36524. // 2. If reasonBytes is longer than 123 bytes, then throw a
  36525. // "SyntaxError" DOMException.
  36526. reasonByteLength = Buffer.byteLength(reason)
  36527. if (reasonByteLength > 123) {
  36528. throw new DOMException(
  36529. `Reason must be less than 123 bytes; received ${reasonByteLength}`,
  36530. 'SyntaxError'
  36531. )
  36532. }
  36533. }
  36534. // 3. Run the first matching steps from the following list:
  36535. if (this[kReadyState] === WebSocket.CLOSING || this[kReadyState] === WebSocket.CLOSED) {
  36536. // If this's ready state is CLOSING (2) or CLOSED (3)
  36537. // Do nothing.
  36538. } else if (!isEstablished(this)) {
  36539. // If the WebSocket connection is not yet established
  36540. // Fail the WebSocket connection and set this's ready state
  36541. // to CLOSING (2).
  36542. failWebsocketConnection(this, 'Connection was closed before it was established.')
  36543. this[kReadyState] = WebSocket.CLOSING
  36544. } else if (!isClosing(this)) {
  36545. // If the WebSocket closing handshake has not yet been started
  36546. // Start the WebSocket closing handshake and set this's ready
  36547. // state to CLOSING (2).
  36548. // - If neither code nor reason is present, the WebSocket Close
  36549. // message must not have a body.
  36550. // - If code is present, then the status code to use in the
  36551. // WebSocket Close message must be the integer given by code.
  36552. // - If reason is also present, then reasonBytes must be
  36553. // provided in the Close message after the status code.
  36554. const frame = new WebsocketFrameSend()
  36555. // If neither code nor reason is present, the WebSocket Close
  36556. // message must not have a body.
  36557. // If code is present, then the status code to use in the
  36558. // WebSocket Close message must be the integer given by code.
  36559. if (code !== undefined && reason === undefined) {
  36560. frame.frameData = Buffer.allocUnsafe(2)
  36561. frame.frameData.writeUInt16BE(code, 0)
  36562. } else if (code !== undefined && reason !== undefined) {
  36563. // If reason is also present, then reasonBytes must be
  36564. // provided in the Close message after the status code.
  36565. frame.frameData = Buffer.allocUnsafe(2 + reasonByteLength)
  36566. frame.frameData.writeUInt16BE(code, 0)
  36567. // the body MAY contain UTF-8-encoded data with value /reason/
  36568. frame.frameData.write(reason, 2, 'utf-8')
  36569. } else {
  36570. frame.frameData = emptyBuffer
  36571. }
  36572. /** @type {import('stream').Duplex} */
  36573. const socket = this[kResponse].socket
  36574. socket.write(frame.createFrame(opcodes.CLOSE), (err) => {
  36575. if (!err) {
  36576. this[kSentClose] = true
  36577. }
  36578. })
  36579. // Upon either sending or receiving a Close control frame, it is said
  36580. // that _The WebSocket Closing Handshake is Started_ and that the
  36581. // WebSocket connection is in the CLOSING state.
  36582. this[kReadyState] = states.CLOSING
  36583. } else {
  36584. // Otherwise
  36585. // Set this's ready state to CLOSING (2).
  36586. this[kReadyState] = WebSocket.CLOSING
  36587. }
  36588. }
  36589. /**
  36590. * @see https://websockets.spec.whatwg.org/#dom-websocket-send
  36591. * @param {NodeJS.TypedArray|ArrayBuffer|Blob|string} data
  36592. */
  36593. send (data) {
  36594. webidl.brandCheck(this, WebSocket)
  36595. webidl.argumentLengthCheck(arguments, 1, { header: 'WebSocket.send' })
  36596. data = webidl.converters.WebSocketSendData(data)
  36597. // 1. If this's ready state is CONNECTING, then throw an
  36598. // "InvalidStateError" DOMException.
  36599. if (this[kReadyState] === WebSocket.CONNECTING) {
  36600. throw new DOMException('Sent before connected.', 'InvalidStateError')
  36601. }
  36602. // 2. Run the appropriate set of steps from the following list:
  36603. // https://datatracker.ietf.org/doc/html/rfc6455#section-6.1
  36604. // https://datatracker.ietf.org/doc/html/rfc6455#section-5.2
  36605. if (!isEstablished(this) || isClosing(this)) {
  36606. return
  36607. }
  36608. /** @type {import('stream').Duplex} */
  36609. const socket = this[kResponse].socket
  36610. // If data is a string
  36611. if (typeof data === 'string') {
  36612. // If the WebSocket connection is established and the WebSocket
  36613. // closing handshake has not yet started, then the user agent
  36614. // must send a WebSocket Message comprised of the data argument
  36615. // using a text frame opcode; if the data cannot be sent, e.g.
  36616. // because it would need to be buffered but the buffer is full,
  36617. // the user agent must flag the WebSocket as full and then close
  36618. // the WebSocket connection. Any invocation of this method with a
  36619. // string argument that does not throw an exception must increase
  36620. // the bufferedAmount attribute by the number of bytes needed to
  36621. // express the argument as UTF-8.
  36622. const value = Buffer.from(data)
  36623. const frame = new WebsocketFrameSend(value)
  36624. const buffer = frame.createFrame(opcodes.TEXT)
  36625. this.#bufferedAmount += value.byteLength
  36626. socket.write(buffer, () => {
  36627. this.#bufferedAmount -= value.byteLength
  36628. })
  36629. } else if (types.isArrayBuffer(data)) {
  36630. // If the WebSocket connection is established, and the WebSocket
  36631. // closing handshake has not yet started, then the user agent must
  36632. // send a WebSocket Message comprised of data using a binary frame
  36633. // opcode; if the data cannot be sent, e.g. because it would need
  36634. // to be buffered but the buffer is full, the user agent must flag
  36635. // the WebSocket as full and then close the WebSocket connection.
  36636. // The data to be sent is the data stored in the buffer described
  36637. // by the ArrayBuffer object. Any invocation of this method with an
  36638. // ArrayBuffer argument that does not throw an exception must
  36639. // increase the bufferedAmount attribute by the length of the
  36640. // ArrayBuffer in bytes.
  36641. const value = Buffer.from(data)
  36642. const frame = new WebsocketFrameSend(value)
  36643. const buffer = frame.createFrame(opcodes.BINARY)
  36644. this.#bufferedAmount += value.byteLength
  36645. socket.write(buffer, () => {
  36646. this.#bufferedAmount -= value.byteLength
  36647. })
  36648. } else if (ArrayBuffer.isView(data)) {
  36649. // If the WebSocket connection is established, and the WebSocket
  36650. // closing handshake has not yet started, then the user agent must
  36651. // send a WebSocket Message comprised of data using a binary frame
  36652. // opcode; if the data cannot be sent, e.g. because it would need to
  36653. // be buffered but the buffer is full, the user agent must flag the
  36654. // WebSocket as full and then close the WebSocket connection. The
  36655. // data to be sent is the data stored in the section of the buffer
  36656. // described by the ArrayBuffer object that data references. Any
  36657. // invocation of this method with this kind of argument that does
  36658. // not throw an exception must increase the bufferedAmount attribute
  36659. // by the length of data’s buffer in bytes.
  36660. const ab = Buffer.from(data, data.byteOffset, data.byteLength)
  36661. const frame = new WebsocketFrameSend(ab)
  36662. const buffer = frame.createFrame(opcodes.BINARY)
  36663. this.#bufferedAmount += ab.byteLength
  36664. socket.write(buffer, () => {
  36665. this.#bufferedAmount -= ab.byteLength
  36666. })
  36667. } else if (isBlobLike(data)) {
  36668. // If the WebSocket connection is established, and the WebSocket
  36669. // closing handshake has not yet started, then the user agent must
  36670. // send a WebSocket Message comprised of data using a binary frame
  36671. // opcode; if the data cannot be sent, e.g. because it would need to
  36672. // be buffered but the buffer is full, the user agent must flag the
  36673. // WebSocket as full and then close the WebSocket connection. The data
  36674. // to be sent is the raw data represented by the Blob object. Any
  36675. // invocation of this method with a Blob argument that does not throw
  36676. // an exception must increase the bufferedAmount attribute by the size
  36677. // of the Blob object’s raw data, in bytes.
  36678. const frame = new WebsocketFrameSend()
  36679. data.arrayBuffer().then((ab) => {
  36680. const value = Buffer.from(ab)
  36681. frame.frameData = value
  36682. const buffer = frame.createFrame(opcodes.BINARY)
  36683. this.#bufferedAmount += value.byteLength
  36684. socket.write(buffer, () => {
  36685. this.#bufferedAmount -= value.byteLength
  36686. })
  36687. })
  36688. }
  36689. }
  36690. get readyState () {
  36691. webidl.brandCheck(this, WebSocket)
  36692. // The readyState getter steps are to return this's ready state.
  36693. return this[kReadyState]
  36694. }
  36695. get bufferedAmount () {
  36696. webidl.brandCheck(this, WebSocket)
  36697. return this.#bufferedAmount
  36698. }
  36699. get url () {
  36700. webidl.brandCheck(this, WebSocket)
  36701. // The url getter steps are to return this's url, serialized.
  36702. return URLSerializer(this[kWebSocketURL])
  36703. }
  36704. get extensions () {
  36705. webidl.brandCheck(this, WebSocket)
  36706. return this.#extensions
  36707. }
  36708. get protocol () {
  36709. webidl.brandCheck(this, WebSocket)
  36710. return this.#protocol
  36711. }
  36712. get onopen () {
  36713. webidl.brandCheck(this, WebSocket)
  36714. return this.#events.open
  36715. }
  36716. set onopen (fn) {
  36717. webidl.brandCheck(this, WebSocket)
  36718. if (this.#events.open) {
  36719. this.removeEventListener('open', this.#events.open)
  36720. }
  36721. if (typeof fn === 'function') {
  36722. this.#events.open = fn
  36723. this.addEventListener('open', fn)
  36724. } else {
  36725. this.#events.open = null
  36726. }
  36727. }
  36728. get onerror () {
  36729. webidl.brandCheck(this, WebSocket)
  36730. return this.#events.error
  36731. }
  36732. set onerror (fn) {
  36733. webidl.brandCheck(this, WebSocket)
  36734. if (this.#events.error) {
  36735. this.removeEventListener('error', this.#events.error)
  36736. }
  36737. if (typeof fn === 'function') {
  36738. this.#events.error = fn
  36739. this.addEventListener('error', fn)
  36740. } else {
  36741. this.#events.error = null
  36742. }
  36743. }
  36744. get onclose () {
  36745. webidl.brandCheck(this, WebSocket)
  36746. return this.#events.close
  36747. }
  36748. set onclose (fn) {
  36749. webidl.brandCheck(this, WebSocket)
  36750. if (this.#events.close) {
  36751. this.removeEventListener('close', this.#events.close)
  36752. }
  36753. if (typeof fn === 'function') {
  36754. this.#events.close = fn
  36755. this.addEventListener('close', fn)
  36756. } else {
  36757. this.#events.close = null
  36758. }
  36759. }
  36760. get onmessage () {
  36761. webidl.brandCheck(this, WebSocket)
  36762. return this.#events.message
  36763. }
  36764. set onmessage (fn) {
  36765. webidl.brandCheck(this, WebSocket)
  36766. if (this.#events.message) {
  36767. this.removeEventListener('message', this.#events.message)
  36768. }
  36769. if (typeof fn === 'function') {
  36770. this.#events.message = fn
  36771. this.addEventListener('message', fn)
  36772. } else {
  36773. this.#events.message = null
  36774. }
  36775. }
  36776. get binaryType () {
  36777. webidl.brandCheck(this, WebSocket)
  36778. return this[kBinaryType]
  36779. }
  36780. set binaryType (type) {
  36781. webidl.brandCheck(this, WebSocket)
  36782. if (type !== 'blob' && type !== 'arraybuffer') {
  36783. this[kBinaryType] = 'blob'
  36784. } else {
  36785. this[kBinaryType] = type
  36786. }
  36787. }
  36788. /**
  36789. * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol
  36790. */
  36791. #onConnectionEstablished (response) {
  36792. // processResponse is called when the "response’s header list has been received and initialized."
  36793. // once this happens, the connection is open
  36794. this[kResponse] = response
  36795. const parser = new ByteParser(this)
  36796. parser.on('drain', function onParserDrain () {
  36797. this.ws[kResponse].socket.resume()
  36798. })
  36799. response.socket.ws = this
  36800. this[kByteParser] = parser
  36801. // 1. Change the ready state to OPEN (1).
  36802. this[kReadyState] = states.OPEN
  36803. // 2. Change the extensions attribute’s value to the extensions in use, if
  36804. // it is not the null value.
  36805. // https://datatracker.ietf.org/doc/html/rfc6455#section-9.1
  36806. const extensions = response.headersList.get('sec-websocket-extensions')
  36807. if (extensions !== null) {
  36808. this.#extensions = extensions
  36809. }
  36810. // 3. Change the protocol attribute’s value to the subprotocol in use, if
  36811. // it is not the null value.
  36812. // https://datatracker.ietf.org/doc/html/rfc6455#section-1.9
  36813. const protocol = response.headersList.get('sec-websocket-protocol')
  36814. if (protocol !== null) {
  36815. this.#protocol = protocol
  36816. }
  36817. // 4. Fire an event named open at the WebSocket object.
  36818. fireEvent('open', this)
  36819. }
  36820. }
  36821. // https://websockets.spec.whatwg.org/#dom-websocket-connecting
  36822. WebSocket.CONNECTING = WebSocket.prototype.CONNECTING = states.CONNECTING
  36823. // https://websockets.spec.whatwg.org/#dom-websocket-open
  36824. WebSocket.OPEN = WebSocket.prototype.OPEN = states.OPEN
  36825. // https://websockets.spec.whatwg.org/#dom-websocket-closing
  36826. WebSocket.CLOSING = WebSocket.prototype.CLOSING = states.CLOSING
  36827. // https://websockets.spec.whatwg.org/#dom-websocket-closed
  36828. WebSocket.CLOSED = WebSocket.prototype.CLOSED = states.CLOSED
  36829. Object.defineProperties(WebSocket.prototype, {
  36830. CONNECTING: staticPropertyDescriptors,
  36831. OPEN: staticPropertyDescriptors,
  36832. CLOSING: staticPropertyDescriptors,
  36833. CLOSED: staticPropertyDescriptors,
  36834. url: kEnumerableProperty,
  36835. readyState: kEnumerableProperty,
  36836. bufferedAmount: kEnumerableProperty,
  36837. onopen: kEnumerableProperty,
  36838. onerror: kEnumerableProperty,
  36839. onclose: kEnumerableProperty,
  36840. close: kEnumerableProperty,
  36841. onmessage: kEnumerableProperty,
  36842. binaryType: kEnumerableProperty,
  36843. send: kEnumerableProperty,
  36844. extensions: kEnumerableProperty,
  36845. protocol: kEnumerableProperty,
  36846. [Symbol.toStringTag]: {
  36847. value: 'WebSocket',
  36848. writable: false,
  36849. enumerable: false,
  36850. configurable: true
  36851. }
  36852. })
  36853. Object.defineProperties(WebSocket, {
  36854. CONNECTING: staticPropertyDescriptors,
  36855. OPEN: staticPropertyDescriptors,
  36856. CLOSING: staticPropertyDescriptors,
  36857. CLOSED: staticPropertyDescriptors
  36858. })
  36859. webidl.converters['sequence<DOMString>'] = webidl.sequenceConverter(
  36860. webidl.converters.DOMString
  36861. )
  36862. webidl.converters['DOMString or sequence<DOMString>'] = function (V) {
  36863. if (webidl.util.Type(V) === 'Object' && Symbol.iterator in V) {
  36864. return webidl.converters['sequence<DOMString>'](V)
  36865. }
  36866. return webidl.converters.DOMString(V)
  36867. }
  36868. // This implements the propsal made in https://github.com/whatwg/websockets/issues/42
  36869. webidl.converters.WebSocketInit = webidl.dictionaryConverter([
  36870. {
  36871. key: 'protocols',
  36872. converter: webidl.converters['DOMString or sequence<DOMString>'],
  36873. get defaultValue () {
  36874. return []
  36875. }
  36876. },
  36877. {
  36878. key: 'dispatcher',
  36879. converter: (V) => V,
  36880. get defaultValue () {
  36881. return getGlobalDispatcher()
  36882. }
  36883. },
  36884. {
  36885. key: 'headers',
  36886. converter: webidl.nullableConverter(webidl.converters.HeadersInit)
  36887. }
  36888. ])
  36889. webidl.converters['DOMString or sequence<DOMString> or WebSocketInit'] = function (V) {
  36890. if (webidl.util.Type(V) === 'Object' && !(Symbol.iterator in V)) {
  36891. return webidl.converters.WebSocketInit(V)
  36892. }
  36893. return { protocols: webidl.converters['DOMString or sequence<DOMString>'](V) }
  36894. }
  36895. webidl.converters.WebSocketSendData = function (V) {
  36896. if (webidl.util.Type(V) === 'Object') {
  36897. if (isBlobLike(V)) {
  36898. return webidl.converters.Blob(V, { strict: false })
  36899. }
  36900. if (ArrayBuffer.isView(V) || types.isAnyArrayBuffer(V)) {
  36901. return webidl.converters.BufferSource(V)
  36902. }
  36903. }
  36904. return webidl.converters.USVString(V)
  36905. }
  36906. module.exports = {
  36907. WebSocket
  36908. }
  36909. /***/ }),
  36910. /***/ 5030:
  36911. /***/ ((__unused_webpack_module, exports) => {
  36912. "use strict";
  36913. Object.defineProperty(exports, "__esModule", ({ value: true }));
  36914. function getUserAgent() {
  36915. if (typeof navigator === "object" && "userAgent" in navigator) {
  36916. return navigator.userAgent;
  36917. }
  36918. if (typeof process === "object" && "version" in process) {
  36919. return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
  36920. }
  36921. return "<environment undetectable>";
  36922. }
  36923. exports.getUserAgent = getUserAgent;
  36924. //# sourceMappingURL=index.js.map
  36925. /***/ }),
  36926. /***/ 2707:
  36927. /***/ ((module) => {
  36928. /**
  36929. * Convert array of 16 byte values to UUID string format of the form:
  36930. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  36931. */
  36932. var byteToHex = [];
  36933. for (var i = 0; i < 256; ++i) {
  36934. byteToHex[i] = (i + 0x100).toString(16).substr(1);
  36935. }
  36936. function bytesToUuid(buf, offset) {
  36937. var i = offset || 0;
  36938. var bth = byteToHex;
  36939. // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
  36940. return ([bth[buf[i++]], bth[buf[i++]],
  36941. bth[buf[i++]], bth[buf[i++]], '-',
  36942. bth[buf[i++]], bth[buf[i++]], '-',
  36943. bth[buf[i++]], bth[buf[i++]], '-',
  36944. bth[buf[i++]], bth[buf[i++]], '-',
  36945. bth[buf[i++]], bth[buf[i++]],
  36946. bth[buf[i++]], bth[buf[i++]],
  36947. bth[buf[i++]], bth[buf[i++]]]).join('');
  36948. }
  36949. module.exports = bytesToUuid;
  36950. /***/ }),
  36951. /***/ 5859:
  36952. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  36953. // Unique ID creation requires a high quality random # generator. In node.js
  36954. // this is pretty straight-forward - we use the crypto API.
  36955. var crypto = __nccwpck_require__(6113);
  36956. module.exports = function nodeRNG() {
  36957. return crypto.randomBytes(16);
  36958. };
  36959. /***/ }),
  36960. /***/ 824:
  36961. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  36962. var rng = __nccwpck_require__(5859);
  36963. var bytesToUuid = __nccwpck_require__(2707);
  36964. function v4(options, buf, offset) {
  36965. var i = buf && offset || 0;
  36966. if (typeof(options) == 'string') {
  36967. buf = options === 'binary' ? new Array(16) : null;
  36968. options = null;
  36969. }
  36970. options = options || {};
  36971. var rnds = options.random || (options.rng || rng)();
  36972. // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  36973. rnds[6] = (rnds[6] & 0x0f) | 0x40;
  36974. rnds[8] = (rnds[8] & 0x3f) | 0x80;
  36975. // Copy bytes to buffer, if provided
  36976. if (buf) {
  36977. for (var ii = 0; ii < 16; ++ii) {
  36978. buf[i + ii] = rnds[ii];
  36979. }
  36980. }
  36981. return buf || bytesToUuid(rnds);
  36982. }
  36983. module.exports = v4;
  36984. /***/ }),
  36985. /***/ 2940:
  36986. /***/ ((module) => {
  36987. // Returns a wrapper function that returns a wrapped callback
  36988. // The wrapper function should do some stuff, and return a
  36989. // presumably different callback function.
  36990. // This makes sure that own properties are retained, so that
  36991. // decorations and such are not lost along the way.
  36992. module.exports = wrappy
  36993. function wrappy (fn, cb) {
  36994. if (fn && cb) return wrappy(fn)(cb)
  36995. if (typeof fn !== 'function')
  36996. throw new TypeError('need wrapper function')
  36997. Object.keys(fn).forEach(function (k) {
  36998. wrapper[k] = fn[k]
  36999. })
  37000. return wrapper
  37001. function wrapper() {
  37002. var args = new Array(arguments.length)
  37003. for (var i = 0; i < args.length; i++) {
  37004. args[i] = arguments[i]
  37005. }
  37006. var ret = fn.apply(this, args)
  37007. var cb = args[args.length-1]
  37008. if (typeof ret === 'function' && ret !== cb) {
  37009. Object.keys(cb).forEach(function (k) {
  37010. ret[k] = cb[k]
  37011. })
  37012. }
  37013. return ret
  37014. }
  37015. }
  37016. /***/ }),
  37017. /***/ 2877:
  37018. /***/ ((module) => {
  37019. module.exports = eval("require")("encoding");
  37020. /***/ }),
  37021. /***/ 9491:
  37022. /***/ ((module) => {
  37023. "use strict";
  37024. module.exports = require("assert");
  37025. /***/ }),
  37026. /***/ 852:
  37027. /***/ ((module) => {
  37028. "use strict";
  37029. module.exports = require("async_hooks");
  37030. /***/ }),
  37031. /***/ 4300:
  37032. /***/ ((module) => {
  37033. "use strict";
  37034. module.exports = require("buffer");
  37035. /***/ }),
  37036. /***/ 2081:
  37037. /***/ ((module) => {
  37038. "use strict";
  37039. module.exports = require("child_process");
  37040. /***/ }),
  37041. /***/ 6206:
  37042. /***/ ((module) => {
  37043. "use strict";
  37044. module.exports = require("console");
  37045. /***/ }),
  37046. /***/ 6113:
  37047. /***/ ((module) => {
  37048. "use strict";
  37049. module.exports = require("crypto");
  37050. /***/ }),
  37051. /***/ 7643:
  37052. /***/ ((module) => {
  37053. "use strict";
  37054. module.exports = require("diagnostics_channel");
  37055. /***/ }),
  37056. /***/ 2361:
  37057. /***/ ((module) => {
  37058. "use strict";
  37059. module.exports = require("events");
  37060. /***/ }),
  37061. /***/ 7147:
  37062. /***/ ((module) => {
  37063. "use strict";
  37064. module.exports = require("fs");
  37065. /***/ }),
  37066. /***/ 3685:
  37067. /***/ ((module) => {
  37068. "use strict";
  37069. module.exports = require("http");
  37070. /***/ }),
  37071. /***/ 5158:
  37072. /***/ ((module) => {
  37073. "use strict";
  37074. module.exports = require("http2");
  37075. /***/ }),
  37076. /***/ 5687:
  37077. /***/ ((module) => {
  37078. "use strict";
  37079. module.exports = require("https");
  37080. /***/ }),
  37081. /***/ 1808:
  37082. /***/ ((module) => {
  37083. "use strict";
  37084. module.exports = require("net");
  37085. /***/ }),
  37086. /***/ 5673:
  37087. /***/ ((module) => {
  37088. "use strict";
  37089. module.exports = require("node:events");
  37090. /***/ }),
  37091. /***/ 4492:
  37092. /***/ ((module) => {
  37093. "use strict";
  37094. module.exports = require("node:stream");
  37095. /***/ }),
  37096. /***/ 7261:
  37097. /***/ ((module) => {
  37098. "use strict";
  37099. module.exports = require("node:util");
  37100. /***/ }),
  37101. /***/ 2037:
  37102. /***/ ((module) => {
  37103. "use strict";
  37104. module.exports = require("os");
  37105. /***/ }),
  37106. /***/ 1017:
  37107. /***/ ((module) => {
  37108. "use strict";
  37109. module.exports = require("path");
  37110. /***/ }),
  37111. /***/ 4074:
  37112. /***/ ((module) => {
  37113. "use strict";
  37114. module.exports = require("perf_hooks");
  37115. /***/ }),
  37116. /***/ 5477:
  37117. /***/ ((module) => {
  37118. "use strict";
  37119. module.exports = require("punycode");
  37120. /***/ }),
  37121. /***/ 3477:
  37122. /***/ ((module) => {
  37123. "use strict";
  37124. module.exports = require("querystring");
  37125. /***/ }),
  37126. /***/ 2781:
  37127. /***/ ((module) => {
  37128. "use strict";
  37129. module.exports = require("stream");
  37130. /***/ }),
  37131. /***/ 5356:
  37132. /***/ ((module) => {
  37133. "use strict";
  37134. module.exports = require("stream/web");
  37135. /***/ }),
  37136. /***/ 1576:
  37137. /***/ ((module) => {
  37138. "use strict";
  37139. module.exports = require("string_decoder");
  37140. /***/ }),
  37141. /***/ 4404:
  37142. /***/ ((module) => {
  37143. "use strict";
  37144. module.exports = require("tls");
  37145. /***/ }),
  37146. /***/ 7310:
  37147. /***/ ((module) => {
  37148. "use strict";
  37149. module.exports = require("url");
  37150. /***/ }),
  37151. /***/ 3837:
  37152. /***/ ((module) => {
  37153. "use strict";
  37154. module.exports = require("util");
  37155. /***/ }),
  37156. /***/ 9830:
  37157. /***/ ((module) => {
  37158. "use strict";
  37159. module.exports = require("util/types");
  37160. /***/ }),
  37161. /***/ 1267:
  37162. /***/ ((module) => {
  37163. "use strict";
  37164. module.exports = require("worker_threads");
  37165. /***/ }),
  37166. /***/ 9796:
  37167. /***/ ((module) => {
  37168. "use strict";
  37169. module.exports = require("zlib");
  37170. /***/ }),
  37171. /***/ 1907:
  37172. /***/ ((module) => {
  37173. "use strict";
  37174. 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"]]');
  37175. /***/ })
  37176. /******/ });
  37177. /************************************************************************/
  37178. /******/ // The module cache
  37179. /******/ var __webpack_module_cache__ = {};
  37180. /******/
  37181. /******/ // The require function
  37182. /******/ function __nccwpck_require__(moduleId) {
  37183. /******/ // Check if module is in cache
  37184. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  37185. /******/ if (cachedModule !== undefined) {
  37186. /******/ return cachedModule.exports;
  37187. /******/ }
  37188. /******/ // Create a new module (and put it into the cache)
  37189. /******/ var module = __webpack_module_cache__[moduleId] = {
  37190. /******/ // no module.id needed
  37191. /******/ // no module.loaded needed
  37192. /******/ exports: {}
  37193. /******/ };
  37194. /******/
  37195. /******/ // Execute the module function
  37196. /******/ var threw = true;
  37197. /******/ try {
  37198. /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__);
  37199. /******/ threw = false;
  37200. /******/ } finally {
  37201. /******/ if(threw) delete __webpack_module_cache__[moduleId];
  37202. /******/ }
  37203. /******/
  37204. /******/ // Return the exports of the module
  37205. /******/ return module.exports;
  37206. /******/ }
  37207. /******/
  37208. /************************************************************************/
  37209. /******/ /* webpack/runtime/compat */
  37210. /******/
  37211. /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
  37212. /******/
  37213. /************************************************************************/
  37214. /******/
  37215. /******/ // startup
  37216. /******/ // Load entry module and return exports
  37217. /******/ // This entry module is referenced by other modules so it can't be inlined
  37218. /******/ var __webpack_exports__ = __nccwpck_require__(3109);
  37219. /******/ module.exports = __webpack_exports__;
  37220. /******/
  37221. /******/ })()
  37222. ;