index.js 1.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470
  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 AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==\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 fshelper = __importStar(__nccwpck_require__(7219));
  461. const io = __importStar(__nccwpck_require__(7436));
  462. const path = __importStar(__nccwpck_require__(1017));
  463. const refHelper = __importStar(__nccwpck_require__(8601));
  464. const regexpHelper = __importStar(__nccwpck_require__(3120));
  465. const retryHelper = __importStar(__nccwpck_require__(2155));
  466. const git_version_1 = __nccwpck_require__(3142);
  467. // Auth header not supported before 2.9
  468. // Wire protocol v2 not supported before 2.18
  469. exports.MinimumGitVersion = new git_version_1.GitVersion('2.18');
  470. function createCommandManager(workingDirectory, lfs) {
  471. return __awaiter(this, void 0, void 0, function* () {
  472. return yield GitCommandManager.createCommandManager(workingDirectory, lfs);
  473. });
  474. }
  475. exports.createCommandManager = createCommandManager;
  476. class GitCommandManager {
  477. // Private constructor; use createCommandManager()
  478. constructor() {
  479. this.gitEnv = {
  480. GIT_TERMINAL_PROMPT: '0',
  481. GCM_INTERACTIVE: 'Never' // Disable prompting for git credential manager
  482. };
  483. this.gitPath = '';
  484. this.lfs = false;
  485. this.workingDirectory = '';
  486. }
  487. branchDelete(remote, branch) {
  488. return __awaiter(this, void 0, void 0, function* () {
  489. const args = ['branch', '--delete', '--force'];
  490. if (remote) {
  491. args.push('--remote');
  492. }
  493. args.push(branch);
  494. yield this.execGit(args);
  495. });
  496. }
  497. branchExists(remote, pattern) {
  498. return __awaiter(this, void 0, void 0, function* () {
  499. const args = ['branch', '--list'];
  500. if (remote) {
  501. args.push('--remote');
  502. }
  503. args.push(pattern);
  504. const output = yield this.execGit(args);
  505. return !!output.stdout.trim();
  506. });
  507. }
  508. branchList(remote) {
  509. return __awaiter(this, void 0, void 0, function* () {
  510. const result = [];
  511. // Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
  512. // "branch --list" is more difficult when in a detached HEAD state.
  513. // TODO(https://github.com/actions/checkout/issues/786): this implementation uses
  514. // "rev-parse --symbolic-full-name" because there is a bug
  515. // in Git 2.18 that causes "rev-parse --symbolic" to output symbolic full names. When
  516. // 2.18 is no longer supported, we can switch back to --symbolic.
  517. const args = ['rev-parse', '--symbolic-full-name'];
  518. if (remote) {
  519. args.push('--remotes=origin');
  520. }
  521. else {
  522. args.push('--branches');
  523. }
  524. const stderr = [];
  525. const errline = [];
  526. const stdout = [];
  527. const stdline = [];
  528. const listeners = {
  529. stderr: (data) => {
  530. stderr.push(data.toString());
  531. },
  532. errline: (data) => {
  533. errline.push(data.toString());
  534. },
  535. stdout: (data) => {
  536. stdout.push(data.toString());
  537. },
  538. stdline: (data) => {
  539. stdline.push(data.toString());
  540. }
  541. };
  542. // Suppress the output in order to avoid flooding annotations with innocuous errors.
  543. yield this.execGit(args, false, true, listeners);
  544. core.debug(`stderr callback is: ${stderr}`);
  545. core.debug(`errline callback is: ${errline}`);
  546. core.debug(`stdout callback is: ${stdout}`);
  547. core.debug(`stdline callback is: ${stdline}`);
  548. for (let branch of stdline) {
  549. branch = branch.trim();
  550. if (!branch) {
  551. continue;
  552. }
  553. if (branch.startsWith('refs/heads/')) {
  554. branch = branch.substring('refs/heads/'.length);
  555. }
  556. else if (branch.startsWith('refs/remotes/')) {
  557. branch = branch.substring('refs/remotes/'.length);
  558. }
  559. result.push(branch);
  560. }
  561. return result;
  562. });
  563. }
  564. checkout(ref, startPoint) {
  565. return __awaiter(this, void 0, void 0, function* () {
  566. const args = ['checkout', '--progress', '--force'];
  567. if (startPoint) {
  568. args.push('-B', ref, startPoint);
  569. }
  570. else {
  571. args.push(ref);
  572. }
  573. yield this.execGit(args);
  574. });
  575. }
  576. checkoutDetach() {
  577. return __awaiter(this, void 0, void 0, function* () {
  578. const args = ['checkout', '--detach'];
  579. yield this.execGit(args);
  580. });
  581. }
  582. config(configKey, configValue, globalConfig, add) {
  583. return __awaiter(this, void 0, void 0, function* () {
  584. const args = ['config', globalConfig ? '--global' : '--local'];
  585. if (add) {
  586. args.push('--add');
  587. }
  588. args.push(...[configKey, configValue]);
  589. yield this.execGit(args);
  590. });
  591. }
  592. configExists(configKey, globalConfig) {
  593. return __awaiter(this, void 0, void 0, function* () {
  594. const pattern = regexpHelper.escape(configKey);
  595. const output = yield this.execGit([
  596. 'config',
  597. globalConfig ? '--global' : '--local',
  598. '--name-only',
  599. '--get-regexp',
  600. pattern
  601. ], true);
  602. return output.exitCode === 0;
  603. });
  604. }
  605. fetch(refSpec, fetchDepth) {
  606. return __awaiter(this, void 0, void 0, function* () {
  607. const args = ['-c', 'protocol.version=2', 'fetch'];
  608. if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
  609. args.push('--no-tags');
  610. }
  611. args.push('--prune', '--progress', '--no-recurse-submodules');
  612. if (fetchDepth && fetchDepth > 0) {
  613. args.push(`--depth=${fetchDepth}`);
  614. }
  615. else if (fshelper.fileExistsSync(path.join(this.workingDirectory, '.git', 'shallow'))) {
  616. args.push('--unshallow');
  617. }
  618. args.push('origin');
  619. for (const arg of refSpec) {
  620. args.push(arg);
  621. }
  622. const that = this;
  623. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  624. yield that.execGit(args);
  625. }));
  626. });
  627. }
  628. getDefaultBranch(repositoryUrl) {
  629. return __awaiter(this, void 0, void 0, function* () {
  630. let output;
  631. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  632. output = yield this.execGit([
  633. 'ls-remote',
  634. '--quiet',
  635. '--exit-code',
  636. '--symref',
  637. repositoryUrl,
  638. 'HEAD'
  639. ]);
  640. }));
  641. if (output) {
  642. // Satisfy compiler, will always be set
  643. for (let line of output.stdout.trim().split('\n')) {
  644. line = line.trim();
  645. if (line.startsWith('ref:') || line.endsWith('HEAD')) {
  646. return line
  647. .substr('ref:'.length, line.length - 'ref:'.length - 'HEAD'.length)
  648. .trim();
  649. }
  650. }
  651. }
  652. throw new Error('Unexpected output when retrieving default branch');
  653. });
  654. }
  655. getWorkingDirectory() {
  656. return this.workingDirectory;
  657. }
  658. init() {
  659. return __awaiter(this, void 0, void 0, function* () {
  660. yield this.execGit(['init', this.workingDirectory]);
  661. });
  662. }
  663. isDetached() {
  664. return __awaiter(this, void 0, void 0, function* () {
  665. // Note, "branch --show-current" would be simpler but isn't available until Git 2.22
  666. const output = yield this.execGit(['rev-parse', '--symbolic-full-name', '--verify', '--quiet', 'HEAD'], true);
  667. return !output.stdout.trim().startsWith('refs/heads/');
  668. });
  669. }
  670. lfsFetch(ref) {
  671. return __awaiter(this, void 0, void 0, function* () {
  672. const args = ['lfs', 'fetch', 'origin', ref];
  673. const that = this;
  674. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  675. yield that.execGit(args);
  676. }));
  677. });
  678. }
  679. lfsInstall() {
  680. return __awaiter(this, void 0, void 0, function* () {
  681. yield this.execGit(['lfs', 'install', '--local']);
  682. });
  683. }
  684. log1(format) {
  685. return __awaiter(this, void 0, void 0, function* () {
  686. var args = format ? ['log', '-1', format] : ['log', '-1'];
  687. var silent = format ? false : true;
  688. const output = yield this.execGit(args, false, silent);
  689. return output.stdout;
  690. });
  691. }
  692. remoteAdd(remoteName, remoteUrl) {
  693. return __awaiter(this, void 0, void 0, function* () {
  694. yield this.execGit(['remote', 'add', remoteName, remoteUrl]);
  695. });
  696. }
  697. removeEnvironmentVariable(name) {
  698. delete this.gitEnv[name];
  699. }
  700. /**
  701. * Resolves a ref to a SHA. For a branch or lightweight tag, the commit SHA is returned.
  702. * For an annotated tag, the tag SHA is returned.
  703. * @param {string} ref For example: 'refs/heads/main' or '/refs/tags/v1'
  704. * @returns {Promise<string>}
  705. */
  706. revParse(ref) {
  707. return __awaiter(this, void 0, void 0, function* () {
  708. const output = yield this.execGit(['rev-parse', ref]);
  709. return output.stdout.trim();
  710. });
  711. }
  712. setEnvironmentVariable(name, value) {
  713. this.gitEnv[name] = value;
  714. }
  715. shaExists(sha) {
  716. return __awaiter(this, void 0, void 0, function* () {
  717. const args = ['rev-parse', '--verify', '--quiet', `${sha}^{object}`];
  718. const output = yield this.execGit(args, true);
  719. return output.exitCode === 0;
  720. });
  721. }
  722. submoduleForeach(command, recursive) {
  723. return __awaiter(this, void 0, void 0, function* () {
  724. const args = ['submodule', 'foreach'];
  725. if (recursive) {
  726. args.push('--recursive');
  727. }
  728. args.push(command);
  729. const output = yield this.execGit(args);
  730. return output.stdout;
  731. });
  732. }
  733. submoduleSync(recursive) {
  734. return __awaiter(this, void 0, void 0, function* () {
  735. const args = ['submodule', 'sync'];
  736. if (recursive) {
  737. args.push('--recursive');
  738. }
  739. yield this.execGit(args);
  740. });
  741. }
  742. submoduleUpdate(fetchDepth, recursive) {
  743. return __awaiter(this, void 0, void 0, function* () {
  744. const args = ['-c', 'protocol.version=2'];
  745. args.push('submodule', 'update', '--init', '--force');
  746. if (fetchDepth > 0) {
  747. args.push(`--depth=${fetchDepth}`);
  748. }
  749. if (recursive) {
  750. args.push('--recursive');
  751. }
  752. yield this.execGit(args);
  753. });
  754. }
  755. tagExists(pattern) {
  756. return __awaiter(this, void 0, void 0, function* () {
  757. const output = yield this.execGit(['tag', '--list', pattern]);
  758. return !!output.stdout.trim();
  759. });
  760. }
  761. tryClean() {
  762. return __awaiter(this, void 0, void 0, function* () {
  763. const output = yield this.execGit(['clean', '-ffdx'], true);
  764. return output.exitCode === 0;
  765. });
  766. }
  767. tryConfigUnset(configKey, globalConfig) {
  768. return __awaiter(this, void 0, void 0, function* () {
  769. const output = yield this.execGit([
  770. 'config',
  771. globalConfig ? '--global' : '--local',
  772. '--unset-all',
  773. configKey
  774. ], true);
  775. return output.exitCode === 0;
  776. });
  777. }
  778. tryDisableAutomaticGarbageCollection() {
  779. return __awaiter(this, void 0, void 0, function* () {
  780. const output = yield this.execGit(['config', '--local', 'gc.auto', '0'], true);
  781. return output.exitCode === 0;
  782. });
  783. }
  784. tryGetFetchUrl() {
  785. return __awaiter(this, void 0, void 0, function* () {
  786. const output = yield this.execGit(['config', '--local', '--get', 'remote.origin.url'], true);
  787. if (output.exitCode !== 0) {
  788. return '';
  789. }
  790. const stdout = output.stdout.trim();
  791. if (stdout.includes('\n')) {
  792. return '';
  793. }
  794. return stdout;
  795. });
  796. }
  797. tryReset() {
  798. return __awaiter(this, void 0, void 0, function* () {
  799. const output = yield this.execGit(['reset', '--hard', 'HEAD'], true);
  800. return output.exitCode === 0;
  801. });
  802. }
  803. static createCommandManager(workingDirectory, lfs) {
  804. return __awaiter(this, void 0, void 0, function* () {
  805. const result = new GitCommandManager();
  806. yield result.initializeCommandManager(workingDirectory, lfs);
  807. return result;
  808. });
  809. }
  810. execGit(args, allowAllExitCodes = false, silent = false, customListeners = {}) {
  811. return __awaiter(this, void 0, void 0, function* () {
  812. fshelper.directoryExistsSync(this.workingDirectory, true);
  813. const result = new GitOutput();
  814. const env = {};
  815. for (const key of Object.keys(process.env)) {
  816. env[key] = process.env[key];
  817. }
  818. for (const key of Object.keys(this.gitEnv)) {
  819. env[key] = this.gitEnv[key];
  820. }
  821. const defaultListener = {
  822. stdout: (data) => {
  823. stdout.push(data.toString());
  824. }
  825. };
  826. const mergedListeners = Object.assign(Object.assign({}, defaultListener), customListeners);
  827. const stdout = [];
  828. const options = {
  829. cwd: this.workingDirectory,
  830. env,
  831. silent,
  832. ignoreReturnCode: allowAllExitCodes,
  833. listeners: mergedListeners
  834. };
  835. result.exitCode = yield exec.exec(`"${this.gitPath}"`, args, options);
  836. result.stdout = stdout.join('');
  837. core.debug(result.exitCode.toString());
  838. core.debug(result.stdout);
  839. return result;
  840. });
  841. }
  842. initializeCommandManager(workingDirectory, lfs) {
  843. return __awaiter(this, void 0, void 0, function* () {
  844. this.workingDirectory = workingDirectory;
  845. // Git-lfs will try to pull down assets if any of the local/user/system setting exist.
  846. // If the user didn't enable `LFS` in their pipeline definition, disable LFS fetch/checkout.
  847. this.lfs = lfs;
  848. if (!this.lfs) {
  849. this.gitEnv['GIT_LFS_SKIP_SMUDGE'] = '1';
  850. }
  851. this.gitPath = yield io.which('git', true);
  852. // Git version
  853. core.debug('Getting git version');
  854. let gitVersion = new git_version_1.GitVersion();
  855. let gitOutput = yield this.execGit(['version']);
  856. let stdout = gitOutput.stdout.trim();
  857. if (!stdout.includes('\n')) {
  858. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  859. if (match) {
  860. gitVersion = new git_version_1.GitVersion(match[0]);
  861. }
  862. }
  863. if (!gitVersion.isValid()) {
  864. throw new Error('Unable to determine git version');
  865. }
  866. // Minimum git version
  867. if (!gitVersion.checkMinimum(exports.MinimumGitVersion)) {
  868. throw new Error(`Minimum required git version is ${exports.MinimumGitVersion}. Your git ('${this.gitPath}') is ${gitVersion}`);
  869. }
  870. if (this.lfs) {
  871. // Git-lfs version
  872. core.debug('Getting git-lfs version');
  873. let gitLfsVersion = new git_version_1.GitVersion();
  874. const gitLfsPath = yield io.which('git-lfs', true);
  875. gitOutput = yield this.execGit(['lfs', 'version']);
  876. stdout = gitOutput.stdout.trim();
  877. if (!stdout.includes('\n')) {
  878. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  879. if (match) {
  880. gitLfsVersion = new git_version_1.GitVersion(match[0]);
  881. }
  882. }
  883. if (!gitLfsVersion.isValid()) {
  884. throw new Error('Unable to determine git-lfs version');
  885. }
  886. // Minimum git-lfs version
  887. // Note:
  888. // - Auth header not supported before 2.1
  889. const minimumGitLfsVersion = new git_version_1.GitVersion('2.1');
  890. if (!gitLfsVersion.checkMinimum(minimumGitLfsVersion)) {
  891. throw new Error(`Minimum required git-lfs version is ${minimumGitLfsVersion}. Your git-lfs ('${gitLfsPath}') is ${gitLfsVersion}`);
  892. }
  893. }
  894. // Set the user agent
  895. const gitHttpUserAgent = `git/${gitVersion} (github-actions-checkout)`;
  896. core.debug(`Set git useragent to: ${gitHttpUserAgent}`);
  897. this.gitEnv['GIT_HTTP_USER_AGENT'] = gitHttpUserAgent;
  898. });
  899. }
  900. }
  901. class GitOutput {
  902. constructor() {
  903. this.stdout = '';
  904. this.exitCode = 0;
  905. }
  906. }
  907. /***/ }),
  908. /***/ 8609:
  909. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  910. "use strict";
  911. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  912. if (k2 === undefined) k2 = k;
  913. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  914. }) : (function(o, m, k, k2) {
  915. if (k2 === undefined) k2 = k;
  916. o[k2] = m[k];
  917. }));
  918. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  919. Object.defineProperty(o, "default", { enumerable: true, value: v });
  920. }) : function(o, v) {
  921. o["default"] = v;
  922. });
  923. var __importStar = (this && this.__importStar) || function (mod) {
  924. if (mod && mod.__esModule) return mod;
  925. var result = {};
  926. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  927. __setModuleDefault(result, mod);
  928. return result;
  929. };
  930. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  931. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  932. return new (P || (P = Promise))(function (resolve, reject) {
  933. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  934. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  935. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  936. step((generator = generator.apply(thisArg, _arguments || [])).next());
  937. });
  938. };
  939. Object.defineProperty(exports, "__esModule", ({ value: true }));
  940. exports.prepareExistingDirectory = void 0;
  941. const assert = __importStar(__nccwpck_require__(9491));
  942. const core = __importStar(__nccwpck_require__(2186));
  943. const fs = __importStar(__nccwpck_require__(7147));
  944. const fsHelper = __importStar(__nccwpck_require__(7219));
  945. const io = __importStar(__nccwpck_require__(7436));
  946. const path = __importStar(__nccwpck_require__(1017));
  947. function prepareExistingDirectory(git, repositoryPath, repositoryUrl, clean, ref) {
  948. var _a, _b;
  949. return __awaiter(this, void 0, void 0, function* () {
  950. assert.ok(repositoryPath, 'Expected repositoryPath to be defined');
  951. assert.ok(repositoryUrl, 'Expected repositoryUrl to be defined');
  952. // Indicates whether to delete the directory contents
  953. let remove = false;
  954. // Check whether using git or REST API
  955. if (!git) {
  956. remove = true;
  957. }
  958. // Fetch URL does not match
  959. else if (!fsHelper.directoryExistsSync(path.join(repositoryPath, '.git')) ||
  960. repositoryUrl !== (yield git.tryGetFetchUrl())) {
  961. remove = true;
  962. }
  963. else {
  964. // Delete any index.lock and shallow.lock left by a previously canceled run or crashed git process
  965. const lockPaths = [
  966. path.join(repositoryPath, '.git', 'index.lock'),
  967. path.join(repositoryPath, '.git', 'shallow.lock')
  968. ];
  969. for (const lockPath of lockPaths) {
  970. try {
  971. yield io.rmRF(lockPath);
  972. }
  973. catch (error) {
  974. core.debug(`Unable to delete '${lockPath}'. ${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  975. }
  976. }
  977. try {
  978. core.startGroup('Removing previously created refs, to avoid conflicts');
  979. // Checkout detached HEAD
  980. if (!(yield git.isDetached())) {
  981. yield git.checkoutDetach();
  982. }
  983. // Remove all refs/heads/*
  984. let branches = yield git.branchList(false);
  985. for (const branch of branches) {
  986. yield git.branchDelete(false, branch);
  987. }
  988. // Remove any conflicting refs/remotes/origin/*
  989. // Example 1: Consider ref is refs/heads/foo and previously fetched refs/remotes/origin/foo/bar
  990. // Example 2: Consider ref is refs/heads/foo/bar and previously fetched refs/remotes/origin/foo
  991. if (ref) {
  992. ref = ref.startsWith('refs/') ? ref : `refs/heads/${ref}`;
  993. if (ref.startsWith('refs/heads/')) {
  994. const upperName1 = ref.toUpperCase().substr('REFS/HEADS/'.length);
  995. const upperName1Slash = `${upperName1}/`;
  996. branches = yield git.branchList(true);
  997. for (const branch of branches) {
  998. const upperName2 = branch.substr('origin/'.length).toUpperCase();
  999. const upperName2Slash = `${upperName2}/`;
  1000. if (upperName1.startsWith(upperName2Slash) ||
  1001. upperName2.startsWith(upperName1Slash)) {
  1002. yield git.branchDelete(true, branch);
  1003. }
  1004. }
  1005. }
  1006. }
  1007. core.endGroup();
  1008. // Clean
  1009. if (clean) {
  1010. core.startGroup('Cleaning the repository');
  1011. if (!(yield git.tryClean())) {
  1012. core.debug(`The clean command failed. This might be caused by: 1) path too long, 2) permission issue, or 3) file in use. For futher investigation, manually run 'git clean -ffdx' on the directory '${repositoryPath}'.`);
  1013. remove = true;
  1014. }
  1015. else if (!(yield git.tryReset())) {
  1016. remove = true;
  1017. }
  1018. core.endGroup();
  1019. if (remove) {
  1020. core.warning(`Unable to clean or reset the repository. The repository will be recreated instead.`);
  1021. }
  1022. }
  1023. }
  1024. catch (error) {
  1025. core.warning(`Unable to prepare the existing repository. The repository will be recreated instead.`);
  1026. remove = true;
  1027. }
  1028. }
  1029. if (remove) {
  1030. // Delete the contents of the directory. Don't delete the directory itself
  1031. // since it might be the current working directory.
  1032. core.info(`Deleting the contents of '${repositoryPath}'`);
  1033. for (const file of yield fs.promises.readdir(repositoryPath)) {
  1034. yield io.rmRF(path.join(repositoryPath, file));
  1035. }
  1036. }
  1037. });
  1038. }
  1039. exports.prepareExistingDirectory = prepareExistingDirectory;
  1040. /***/ }),
  1041. /***/ 9210:
  1042. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1043. "use strict";
  1044. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1045. if (k2 === undefined) k2 = k;
  1046. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1047. }) : (function(o, m, k, k2) {
  1048. if (k2 === undefined) k2 = k;
  1049. o[k2] = m[k];
  1050. }));
  1051. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1052. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1053. }) : function(o, v) {
  1054. o["default"] = v;
  1055. });
  1056. var __importStar = (this && this.__importStar) || function (mod) {
  1057. if (mod && mod.__esModule) return mod;
  1058. var result = {};
  1059. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1060. __setModuleDefault(result, mod);
  1061. return result;
  1062. };
  1063. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1064. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1065. return new (P || (P = Promise))(function (resolve, reject) {
  1066. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1067. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1068. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1069. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1070. });
  1071. };
  1072. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1073. exports.cleanup = exports.getSource = void 0;
  1074. const core = __importStar(__nccwpck_require__(2186));
  1075. const fsHelper = __importStar(__nccwpck_require__(7219));
  1076. const gitAuthHelper = __importStar(__nccwpck_require__(2565));
  1077. const gitCommandManager = __importStar(__nccwpck_require__(738));
  1078. const gitDirectoryHelper = __importStar(__nccwpck_require__(8609));
  1079. const githubApiHelper = __importStar(__nccwpck_require__(138));
  1080. const io = __importStar(__nccwpck_require__(7436));
  1081. const path = __importStar(__nccwpck_require__(1017));
  1082. const refHelper = __importStar(__nccwpck_require__(8601));
  1083. const stateHelper = __importStar(__nccwpck_require__(8647));
  1084. const urlHelper = __importStar(__nccwpck_require__(9437));
  1085. function getSource(settings) {
  1086. return __awaiter(this, void 0, void 0, function* () {
  1087. // Repository URL
  1088. core.info(`Syncing repository: ${settings.repositoryOwner}/${settings.repositoryName}`);
  1089. const repositoryUrl = urlHelper.getFetchUrl(settings);
  1090. // Remove conflicting file path
  1091. if (fsHelper.fileExistsSync(settings.repositoryPath)) {
  1092. yield io.rmRF(settings.repositoryPath);
  1093. }
  1094. // Create directory
  1095. let isExisting = true;
  1096. if (!fsHelper.directoryExistsSync(settings.repositoryPath)) {
  1097. isExisting = false;
  1098. yield io.mkdirP(settings.repositoryPath);
  1099. }
  1100. // Git command manager
  1101. core.startGroup('Getting Git version info');
  1102. const git = yield getGitCommandManager(settings);
  1103. core.endGroup();
  1104. let authHelper = null;
  1105. try {
  1106. if (git) {
  1107. authHelper = gitAuthHelper.createAuthHelper(git, settings);
  1108. if (settings.setSafeDirectory) {
  1109. // 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
  1110. // Otherwise all git commands we run in a container fail
  1111. yield authHelper.configureTempGlobalConfig();
  1112. core.info(`Adding repository directory to the temporary git global config as a safe directory`);
  1113. yield git
  1114. .config('safe.directory', settings.repositoryPath, true, true)
  1115. .catch(error => {
  1116. core.info(`Failed to initialize safe directory with error: ${error}`);
  1117. });
  1118. stateHelper.setSafeDirectory();
  1119. }
  1120. }
  1121. // Prepare existing directory, otherwise recreate
  1122. if (isExisting) {
  1123. yield gitDirectoryHelper.prepareExistingDirectory(git, settings.repositoryPath, repositoryUrl, settings.clean, settings.ref);
  1124. }
  1125. if (!git) {
  1126. // Downloading using REST API
  1127. core.info(`The repository will be downloaded using the GitHub REST API`);
  1128. core.info(`To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH`);
  1129. if (settings.submodules) {
  1130. 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.`);
  1131. }
  1132. else if (settings.sshKey) {
  1133. 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.`);
  1134. }
  1135. yield githubApiHelper.downloadRepository(settings.authToken, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.repositoryPath, settings.githubServerUrl);
  1136. return;
  1137. }
  1138. // Save state for POST action
  1139. stateHelper.setRepositoryPath(settings.repositoryPath);
  1140. // Initialize the repository
  1141. if (!fsHelper.directoryExistsSync(path.join(settings.repositoryPath, '.git'))) {
  1142. core.startGroup('Initializing the repository');
  1143. yield git.init();
  1144. yield git.remoteAdd('origin', repositoryUrl);
  1145. core.endGroup();
  1146. }
  1147. // Disable automatic garbage collection
  1148. core.startGroup('Disabling automatic garbage collection');
  1149. if (!(yield git.tryDisableAutomaticGarbageCollection())) {
  1150. core.warning(`Unable to turn off git automatic garbage collection. The git fetch operation may trigger garbage collection and cause a delay.`);
  1151. }
  1152. core.endGroup();
  1153. // If we didn't initialize it above, do it now
  1154. if (!authHelper) {
  1155. authHelper = gitAuthHelper.createAuthHelper(git, settings);
  1156. }
  1157. // Configure auth
  1158. core.startGroup('Setting up auth');
  1159. yield authHelper.configureAuth();
  1160. core.endGroup();
  1161. // Determine the default branch
  1162. if (!settings.ref && !settings.commit) {
  1163. core.startGroup('Determining the default branch');
  1164. if (settings.sshKey) {
  1165. settings.ref = yield git.getDefaultBranch(repositoryUrl);
  1166. }
  1167. else {
  1168. settings.ref = yield githubApiHelper.getDefaultBranch(settings.authToken, settings.repositoryOwner, settings.repositoryName, settings.githubServerUrl);
  1169. }
  1170. core.endGroup();
  1171. }
  1172. // LFS install
  1173. if (settings.lfs) {
  1174. yield git.lfsInstall();
  1175. }
  1176. // Fetch
  1177. core.startGroup('Fetching the repository');
  1178. if (settings.fetchDepth <= 0) {
  1179. // Fetch all branches and tags
  1180. let refSpec = refHelper.getRefSpecForAllHistory(settings.ref, settings.commit);
  1181. yield git.fetch(refSpec);
  1182. // When all history is fetched, the ref we're interested in may have moved to a different
  1183. // commit (push or force push). If so, fetch again with a targeted refspec.
  1184. if (!(yield refHelper.testRef(git, settings.ref, settings.commit))) {
  1185. refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  1186. yield git.fetch(refSpec);
  1187. }
  1188. }
  1189. else {
  1190. const refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  1191. yield git.fetch(refSpec, settings.fetchDepth);
  1192. }
  1193. core.endGroup();
  1194. // Checkout info
  1195. core.startGroup('Determining the checkout info');
  1196. const checkoutInfo = yield refHelper.getCheckoutInfo(git, settings.ref, settings.commit);
  1197. core.endGroup();
  1198. // LFS fetch
  1199. // Explicit lfs-fetch to avoid slow checkout (fetches one lfs object at a time).
  1200. // Explicit lfs fetch will fetch lfs objects in parallel.
  1201. if (settings.lfs) {
  1202. core.startGroup('Fetching LFS objects');
  1203. yield git.lfsFetch(checkoutInfo.startPoint || checkoutInfo.ref);
  1204. core.endGroup();
  1205. }
  1206. // Checkout
  1207. core.startGroup('Checking out the ref');
  1208. yield git.checkout(checkoutInfo.ref, checkoutInfo.startPoint);
  1209. core.endGroup();
  1210. // Submodules
  1211. if (settings.submodules) {
  1212. // Temporarily override global config
  1213. core.startGroup('Setting up auth for fetching submodules');
  1214. yield authHelper.configureGlobalAuth();
  1215. core.endGroup();
  1216. // Checkout submodules
  1217. core.startGroup('Fetching submodules');
  1218. yield git.submoduleSync(settings.nestedSubmodules);
  1219. yield git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules);
  1220. yield git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules);
  1221. core.endGroup();
  1222. // Persist credentials
  1223. if (settings.persistCredentials) {
  1224. core.startGroup('Persisting credentials for submodules');
  1225. yield authHelper.configureSubmoduleAuth();
  1226. core.endGroup();
  1227. }
  1228. }
  1229. // Get commit information
  1230. const commitInfo = yield git.log1();
  1231. // Log commit sha
  1232. yield git.log1("--format='%H'");
  1233. // Check for incorrect pull request merge commit
  1234. yield refHelper.checkCommitInfo(settings.authToken, commitInfo, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.githubServerUrl);
  1235. }
  1236. finally {
  1237. // Remove auth
  1238. if (authHelper) {
  1239. if (!settings.persistCredentials) {
  1240. core.startGroup('Removing auth');
  1241. yield authHelper.removeAuth();
  1242. core.endGroup();
  1243. }
  1244. authHelper.removeGlobalConfig();
  1245. }
  1246. }
  1247. });
  1248. }
  1249. exports.getSource = getSource;
  1250. function cleanup(repositoryPath) {
  1251. return __awaiter(this, void 0, void 0, function* () {
  1252. // Repo exists?
  1253. if (!repositoryPath ||
  1254. !fsHelper.fileExistsSync(path.join(repositoryPath, '.git', 'config'))) {
  1255. return;
  1256. }
  1257. let git;
  1258. try {
  1259. git = yield gitCommandManager.createCommandManager(repositoryPath, false);
  1260. }
  1261. catch (_a) {
  1262. return;
  1263. }
  1264. // Remove auth
  1265. const authHelper = gitAuthHelper.createAuthHelper(git);
  1266. try {
  1267. if (stateHelper.PostSetSafeDirectory) {
  1268. // 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
  1269. // Otherwise all git commands we run in a container fail
  1270. yield authHelper.configureTempGlobalConfig();
  1271. core.info(`Adding repository directory to the temporary git global config as a safe directory`);
  1272. yield git
  1273. .config('safe.directory', repositoryPath, true, true)
  1274. .catch(error => {
  1275. core.info(`Failed to initialize safe directory with error: ${error}`);
  1276. });
  1277. }
  1278. yield authHelper.removeAuth();
  1279. }
  1280. finally {
  1281. yield authHelper.removeGlobalConfig();
  1282. }
  1283. });
  1284. }
  1285. exports.cleanup = cleanup;
  1286. function getGitCommandManager(settings) {
  1287. return __awaiter(this, void 0, void 0, function* () {
  1288. core.info(`Working directory is '${settings.repositoryPath}'`);
  1289. try {
  1290. return yield gitCommandManager.createCommandManager(settings.repositoryPath, settings.lfs);
  1291. }
  1292. catch (err) {
  1293. // Git is required for LFS
  1294. if (settings.lfs) {
  1295. throw err;
  1296. }
  1297. // Otherwise fallback to REST API
  1298. return undefined;
  1299. }
  1300. });
  1301. }
  1302. /***/ }),
  1303. /***/ 3142:
  1304. /***/ ((__unused_webpack_module, exports) => {
  1305. "use strict";
  1306. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1307. exports.GitVersion = void 0;
  1308. class GitVersion {
  1309. /**
  1310. * Used for comparing the version of git and git-lfs against the minimum required version
  1311. * @param version the version string, e.g. 1.2 or 1.2.3
  1312. */
  1313. constructor(version) {
  1314. this.major = NaN;
  1315. this.minor = NaN;
  1316. this.patch = NaN;
  1317. if (version) {
  1318. const match = version.match(/^(\d+)\.(\d+)(\.(\d+))?$/);
  1319. if (match) {
  1320. this.major = Number(match[1]);
  1321. this.minor = Number(match[2]);
  1322. if (match[4]) {
  1323. this.patch = Number(match[4]);
  1324. }
  1325. }
  1326. }
  1327. }
  1328. /**
  1329. * Compares the instance against a minimum required version
  1330. * @param minimum Minimum version
  1331. */
  1332. checkMinimum(minimum) {
  1333. if (!minimum.isValid()) {
  1334. throw new Error('Arg minimum is not a valid version');
  1335. }
  1336. // Major is insufficient
  1337. if (this.major < minimum.major) {
  1338. return false;
  1339. }
  1340. // Major is equal
  1341. if (this.major === minimum.major) {
  1342. // Minor is insufficient
  1343. if (this.minor < minimum.minor) {
  1344. return false;
  1345. }
  1346. // Minor is equal
  1347. if (this.minor === minimum.minor) {
  1348. // Patch is insufficient
  1349. if (this.patch && this.patch < (minimum.patch || 0)) {
  1350. return false;
  1351. }
  1352. }
  1353. }
  1354. return true;
  1355. }
  1356. /**
  1357. * Indicates whether the instance was constructed from a valid version string
  1358. */
  1359. isValid() {
  1360. return !isNaN(this.major);
  1361. }
  1362. /**
  1363. * Returns the version as a string, e.g. 1.2 or 1.2.3
  1364. */
  1365. toString() {
  1366. let result = '';
  1367. if (this.isValid()) {
  1368. result = `${this.major}.${this.minor}`;
  1369. if (!isNaN(this.patch)) {
  1370. result += `.${this.patch}`;
  1371. }
  1372. }
  1373. return result;
  1374. }
  1375. }
  1376. exports.GitVersion = GitVersion;
  1377. /***/ }),
  1378. /***/ 138:
  1379. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1380. "use strict";
  1381. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1382. if (k2 === undefined) k2 = k;
  1383. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1384. }) : (function(o, m, k, k2) {
  1385. if (k2 === undefined) k2 = k;
  1386. o[k2] = m[k];
  1387. }));
  1388. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1389. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1390. }) : function(o, v) {
  1391. o["default"] = v;
  1392. });
  1393. var __importStar = (this && this.__importStar) || function (mod) {
  1394. if (mod && mod.__esModule) return mod;
  1395. var result = {};
  1396. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1397. __setModuleDefault(result, mod);
  1398. return result;
  1399. };
  1400. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1401. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1402. return new (P || (P = Promise))(function (resolve, reject) {
  1403. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1404. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1405. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1406. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1407. });
  1408. };
  1409. var __importDefault = (this && this.__importDefault) || function (mod) {
  1410. return (mod && mod.__esModule) ? mod : { "default": mod };
  1411. };
  1412. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1413. exports.getDefaultBranch = exports.downloadRepository = void 0;
  1414. const assert = __importStar(__nccwpck_require__(9491));
  1415. const core = __importStar(__nccwpck_require__(2186));
  1416. const fs = __importStar(__nccwpck_require__(7147));
  1417. const io = __importStar(__nccwpck_require__(7436));
  1418. const path = __importStar(__nccwpck_require__(1017));
  1419. const retryHelper = __importStar(__nccwpck_require__(2155));
  1420. const toolCache = __importStar(__nccwpck_require__(7784));
  1421. const v4_1 = __importDefault(__nccwpck_require__(824));
  1422. const octokit_provider_1 = __nccwpck_require__(8967);
  1423. const IS_WINDOWS = process.platform === 'win32';
  1424. function downloadRepository(authToken, owner, repo, ref, commit, repositoryPath, baseUrl) {
  1425. return __awaiter(this, void 0, void 0, function* () {
  1426. // Determine the default branch
  1427. if (!ref && !commit) {
  1428. core.info('Determining the default branch');
  1429. ref = yield getDefaultBranch(authToken, owner, repo, baseUrl);
  1430. }
  1431. // Download the archive
  1432. let archiveData = yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  1433. core.info('Downloading the archive');
  1434. return yield downloadArchive(authToken, owner, repo, ref, commit, baseUrl);
  1435. }));
  1436. // Write archive to disk
  1437. core.info('Writing archive to disk');
  1438. const uniqueId = (0, v4_1.default)();
  1439. const archivePath = path.join(repositoryPath, `${uniqueId}.tar.gz`);
  1440. yield fs.promises.writeFile(archivePath, archiveData);
  1441. archiveData = Buffer.from(''); // Free memory
  1442. // Extract archive
  1443. core.info('Extracting the archive');
  1444. const extractPath = path.join(repositoryPath, uniqueId);
  1445. yield io.mkdirP(extractPath);
  1446. if (IS_WINDOWS) {
  1447. yield toolCache.extractZip(archivePath, extractPath);
  1448. }
  1449. else {
  1450. yield toolCache.extractTar(archivePath, extractPath);
  1451. }
  1452. yield io.rmRF(archivePath);
  1453. // Determine the path of the repository content. The archive contains
  1454. // a top-level folder and the repository content is inside.
  1455. const archiveFileNames = yield fs.promises.readdir(extractPath);
  1456. assert.ok(archiveFileNames.length == 1, 'Expected exactly one directory inside archive');
  1457. const archiveVersion = archiveFileNames[0]; // The top-level folder name includes the short SHA
  1458. core.info(`Resolved version ${archiveVersion}`);
  1459. const tempRepositoryPath = path.join(extractPath, archiveVersion);
  1460. // Move the files
  1461. for (const fileName of yield fs.promises.readdir(tempRepositoryPath)) {
  1462. const sourcePath = path.join(tempRepositoryPath, fileName);
  1463. const targetPath = path.join(repositoryPath, fileName);
  1464. if (IS_WINDOWS) {
  1465. yield io.cp(sourcePath, targetPath, { recursive: true }); // Copy on Windows (Windows Defender may have a lock)
  1466. }
  1467. else {
  1468. yield io.mv(sourcePath, targetPath);
  1469. }
  1470. }
  1471. yield io.rmRF(extractPath);
  1472. });
  1473. }
  1474. exports.downloadRepository = downloadRepository;
  1475. /**
  1476. * Looks up the default branch name
  1477. */
  1478. function getDefaultBranch(authToken, owner, repo, baseUrl) {
  1479. return __awaiter(this, void 0, void 0, function* () {
  1480. return yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  1481. var _a;
  1482. core.info('Retrieving the default branch name');
  1483. const octokit = (0, octokit_provider_1.getOctokit)(authToken, { baseUrl: baseUrl });
  1484. let result;
  1485. try {
  1486. // Get the default branch from the repo info
  1487. const response = yield octokit.repos.get({ owner, repo });
  1488. result = response.data.default_branch;
  1489. assert.ok(result, 'default_branch cannot be empty');
  1490. }
  1491. catch (err) {
  1492. // Handle .wiki repo
  1493. if (((_a = err) === null || _a === void 0 ? void 0 : _a.status) === 404 &&
  1494. repo.toUpperCase().endsWith('.WIKI')) {
  1495. result = 'master';
  1496. }
  1497. // Otherwise error
  1498. else {
  1499. throw err;
  1500. }
  1501. }
  1502. // Print the default branch
  1503. core.info(`Default branch '${result}'`);
  1504. // Prefix with 'refs/heads'
  1505. if (!result.startsWith('refs/')) {
  1506. result = `refs/heads/${result}`;
  1507. }
  1508. return result;
  1509. }));
  1510. });
  1511. }
  1512. exports.getDefaultBranch = getDefaultBranch;
  1513. function downloadArchive(authToken, owner, repo, ref, commit, baseUrl) {
  1514. return __awaiter(this, void 0, void 0, function* () {
  1515. const octokit = (0, octokit_provider_1.getOctokit)(authToken, { baseUrl: baseUrl });
  1516. const params = {
  1517. owner: owner,
  1518. repo: repo,
  1519. archive_format: IS_WINDOWS ? 'zipball' : 'tarball',
  1520. ref: commit || ref
  1521. };
  1522. const response = yield octokit.repos.getArchiveLink(params);
  1523. if (response.status != 200) {
  1524. throw new Error(`Unexpected response from GitHub API. Status: ${response.status}, Data: ${response.data}`);
  1525. }
  1526. return Buffer.from(response.data); // response.data is ArrayBuffer
  1527. });
  1528. }
  1529. /***/ }),
  1530. /***/ 5480:
  1531. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1532. "use strict";
  1533. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1534. if (k2 === undefined) k2 = k;
  1535. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1536. }) : (function(o, m, k, k2) {
  1537. if (k2 === undefined) k2 = k;
  1538. o[k2] = m[k];
  1539. }));
  1540. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1541. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1542. }) : function(o, v) {
  1543. o["default"] = v;
  1544. });
  1545. var __importStar = (this && this.__importStar) || function (mod) {
  1546. if (mod && mod.__esModule) return mod;
  1547. var result = {};
  1548. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1549. __setModuleDefault(result, mod);
  1550. return result;
  1551. };
  1552. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1553. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1554. return new (P || (P = Promise))(function (resolve, reject) {
  1555. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1556. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1557. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1558. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1559. });
  1560. };
  1561. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1562. exports.getInputs = void 0;
  1563. const core = __importStar(__nccwpck_require__(2186));
  1564. const fsHelper = __importStar(__nccwpck_require__(7219));
  1565. const github = __importStar(__nccwpck_require__(5438));
  1566. const path = __importStar(__nccwpck_require__(1017));
  1567. const workflowContextHelper = __importStar(__nccwpck_require__(9568));
  1568. function getInputs() {
  1569. return __awaiter(this, void 0, void 0, function* () {
  1570. const result = {};
  1571. // GitHub workspace
  1572. let githubWorkspacePath = process.env['GITHUB_WORKSPACE'];
  1573. if (!githubWorkspacePath) {
  1574. throw new Error('GITHUB_WORKSPACE not defined');
  1575. }
  1576. githubWorkspacePath = path.resolve(githubWorkspacePath);
  1577. core.debug(`GITHUB_WORKSPACE = '${githubWorkspacePath}'`);
  1578. fsHelper.directoryExistsSync(githubWorkspacePath, true);
  1579. // Qualified repository
  1580. const qualifiedRepository = core.getInput('repository') ||
  1581. `${github.context.repo.owner}/${github.context.repo.repo}`;
  1582. core.debug(`qualified repository = '${qualifiedRepository}'`);
  1583. const splitRepository = qualifiedRepository.split('/');
  1584. if (splitRepository.length !== 2 ||
  1585. !splitRepository[0] ||
  1586. !splitRepository[1]) {
  1587. throw new Error(`Invalid repository '${qualifiedRepository}'. Expected format {owner}/{repo}.`);
  1588. }
  1589. result.repositoryOwner = splitRepository[0];
  1590. result.repositoryName = splitRepository[1];
  1591. // Repository path
  1592. result.repositoryPath = core.getInput('path') || '.';
  1593. result.repositoryPath = path.resolve(githubWorkspacePath, result.repositoryPath);
  1594. if (!(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
  1595. throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
  1596. }
  1597. // Workflow repository?
  1598. const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
  1599. `${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
  1600. // Source branch, source version
  1601. result.ref = core.getInput('ref');
  1602. if (!result.ref) {
  1603. if (isWorkflowRepository) {
  1604. result.ref = github.context.ref;
  1605. result.commit = github.context.sha;
  1606. // Some events have an unqualifed ref. For example when a PR is merged (pull_request closed event),
  1607. // the ref is unqualifed like "main" instead of "refs/heads/main".
  1608. if (result.commit && result.ref && !result.ref.startsWith('refs/')) {
  1609. result.ref = `refs/heads/${result.ref}`;
  1610. }
  1611. }
  1612. }
  1613. // SHA?
  1614. else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {
  1615. result.commit = result.ref;
  1616. result.ref = '';
  1617. }
  1618. core.debug(`ref = '${result.ref}'`);
  1619. core.debug(`commit = '${result.commit}'`);
  1620. // Clean
  1621. result.clean = (core.getInput('clean') || 'true').toUpperCase() === 'TRUE';
  1622. core.debug(`clean = ${result.clean}`);
  1623. // Fetch depth
  1624. result.fetchDepth = Math.floor(Number(core.getInput('fetch-depth') || '1'));
  1625. if (isNaN(result.fetchDepth) || result.fetchDepth < 0) {
  1626. result.fetchDepth = 0;
  1627. }
  1628. core.debug(`fetch depth = ${result.fetchDepth}`);
  1629. // LFS
  1630. result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE';
  1631. core.debug(`lfs = ${result.lfs}`);
  1632. // Submodules
  1633. result.submodules = false;
  1634. result.nestedSubmodules = false;
  1635. const submodulesString = (core.getInput('submodules') || '').toUpperCase();
  1636. if (submodulesString == 'RECURSIVE') {
  1637. result.submodules = true;
  1638. result.nestedSubmodules = true;
  1639. }
  1640. else if (submodulesString == 'TRUE') {
  1641. result.submodules = true;
  1642. }
  1643. core.debug(`submodules = ${result.submodules}`);
  1644. core.debug(`recursive submodules = ${result.nestedSubmodules}`);
  1645. // Auth token
  1646. result.authToken = core.getInput('token', { required: true });
  1647. // SSH
  1648. result.sshKey = core.getInput('ssh-key');
  1649. result.sshKnownHosts = core.getInput('ssh-known-hosts');
  1650. result.sshStrict =
  1651. (core.getInput('ssh-strict') || 'true').toUpperCase() === 'TRUE';
  1652. // Persist credentials
  1653. result.persistCredentials =
  1654. (core.getInput('persist-credentials') || 'false').toUpperCase() === 'TRUE';
  1655. // Workflow organization ID
  1656. result.workflowOrganizationId = yield workflowContextHelper.getOrganizationId();
  1657. // Set safe.directory in git global config.
  1658. result.setSafeDirectory =
  1659. (core.getInput('set-safe-directory') || 'true').toUpperCase() === 'TRUE';
  1660. // Determine the GitHub URL that the repository is being hosted from
  1661. result.githubServerUrl = core.getInput('github-server-url');
  1662. core.debug(`GitHub Host URL = ${result.githubServerUrl}`);
  1663. return result;
  1664. });
  1665. }
  1666. exports.getInputs = getInputs;
  1667. /***/ }),
  1668. /***/ 3109:
  1669. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1670. "use strict";
  1671. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1672. if (k2 === undefined) k2 = k;
  1673. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1674. }) : (function(o, m, k, k2) {
  1675. if (k2 === undefined) k2 = k;
  1676. o[k2] = m[k];
  1677. }));
  1678. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1679. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1680. }) : function(o, v) {
  1681. o["default"] = v;
  1682. });
  1683. var __importStar = (this && this.__importStar) || function (mod) {
  1684. if (mod && mod.__esModule) return mod;
  1685. var result = {};
  1686. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1687. __setModuleDefault(result, mod);
  1688. return result;
  1689. };
  1690. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1691. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1692. return new (P || (P = Promise))(function (resolve, reject) {
  1693. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1694. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1695. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1696. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1697. });
  1698. };
  1699. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1700. const core = __importStar(__nccwpck_require__(2186));
  1701. const coreCommand = __importStar(__nccwpck_require__(7351));
  1702. const gitSourceProvider = __importStar(__nccwpck_require__(9210));
  1703. const inputHelper = __importStar(__nccwpck_require__(5480));
  1704. const path = __importStar(__nccwpck_require__(1017));
  1705. const stateHelper = __importStar(__nccwpck_require__(8647));
  1706. function run() {
  1707. var _a, _b;
  1708. return __awaiter(this, void 0, void 0, function* () {
  1709. try {
  1710. const sourceSettings = yield inputHelper.getInputs();
  1711. try {
  1712. // Register problem matcher
  1713. coreCommand.issueCommand('add-matcher', {}, path.join(__dirname, 'problem-matcher.json'));
  1714. // Get sources
  1715. yield gitSourceProvider.getSource(sourceSettings);
  1716. }
  1717. finally {
  1718. // Unregister problem matcher
  1719. coreCommand.issueCommand('remove-matcher', { owner: 'checkout-git' }, '');
  1720. }
  1721. }
  1722. catch (error) {
  1723. core.setFailed(`${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  1724. }
  1725. });
  1726. }
  1727. function cleanup() {
  1728. var _a, _b;
  1729. return __awaiter(this, void 0, void 0, function* () {
  1730. try {
  1731. yield gitSourceProvider.cleanup(stateHelper.RepositoryPath);
  1732. }
  1733. catch (error) {
  1734. core.warning(`${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  1735. }
  1736. });
  1737. }
  1738. // Main
  1739. if (!stateHelper.IsPost) {
  1740. run();
  1741. }
  1742. // Post
  1743. else {
  1744. cleanup();
  1745. }
  1746. /***/ }),
  1747. /***/ 8967:
  1748. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1749. "use strict";
  1750. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1751. if (k2 === undefined) k2 = k;
  1752. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1753. }) : (function(o, m, k, k2) {
  1754. if (k2 === undefined) k2 = k;
  1755. o[k2] = m[k];
  1756. }));
  1757. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1758. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1759. }) : function(o, v) {
  1760. o["default"] = v;
  1761. });
  1762. var __importStar = (this && this.__importStar) || function (mod) {
  1763. if (mod && mod.__esModule) return mod;
  1764. var result = {};
  1765. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1766. __setModuleDefault(result, mod);
  1767. return result;
  1768. };
  1769. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1770. exports.getOctokit = exports.Octokit = void 0;
  1771. const github = __importStar(__nccwpck_require__(5438));
  1772. const url_helper_1 = __nccwpck_require__(9437);
  1773. // Centralize all Octokit references by re-exporting
  1774. var rest_1 = __nccwpck_require__(9351);
  1775. Object.defineProperty(exports, "Octokit", ({ enumerable: true, get: function () { return rest_1.Octokit; } }));
  1776. function getOctokit(authToken, opts) {
  1777. const options = {
  1778. baseUrl: (0, url_helper_1.getServerApiUrl)(opts.baseUrl)
  1779. };
  1780. if (opts.userAgent) {
  1781. options.userAgent = opts.userAgent;
  1782. }
  1783. return new github.GitHub(authToken, options);
  1784. }
  1785. exports.getOctokit = getOctokit;
  1786. /***/ }),
  1787. /***/ 8601:
  1788. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1789. "use strict";
  1790. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1791. if (k2 === undefined) k2 = k;
  1792. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1793. }) : (function(o, m, k, k2) {
  1794. if (k2 === undefined) k2 = k;
  1795. o[k2] = m[k];
  1796. }));
  1797. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1798. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1799. }) : function(o, v) {
  1800. o["default"] = v;
  1801. });
  1802. var __importStar = (this && this.__importStar) || function (mod) {
  1803. if (mod && mod.__esModule) return mod;
  1804. var result = {};
  1805. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1806. __setModuleDefault(result, mod);
  1807. return result;
  1808. };
  1809. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1810. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1811. return new (P || (P = Promise))(function (resolve, reject) {
  1812. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1813. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1814. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1815. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1816. });
  1817. };
  1818. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1819. exports.checkCommitInfo = exports.testRef = exports.getRefSpec = exports.getRefSpecForAllHistory = exports.getCheckoutInfo = exports.tagsRefSpec = void 0;
  1820. const core = __importStar(__nccwpck_require__(2186));
  1821. const github = __importStar(__nccwpck_require__(5438));
  1822. const octokit_provider_1 = __nccwpck_require__(8967);
  1823. const url_helper_1 = __nccwpck_require__(9437);
  1824. exports.tagsRefSpec = '+refs/tags/*:refs/tags/*';
  1825. function getCheckoutInfo(git, ref, commit) {
  1826. return __awaiter(this, void 0, void 0, function* () {
  1827. if (!git) {
  1828. throw new Error('Arg git cannot be empty');
  1829. }
  1830. if (!ref && !commit) {
  1831. throw new Error('Args ref and commit cannot both be empty');
  1832. }
  1833. const result = {};
  1834. const upperRef = (ref || '').toUpperCase();
  1835. // SHA only
  1836. if (!ref) {
  1837. result.ref = commit;
  1838. }
  1839. // refs/heads/
  1840. else if (upperRef.startsWith('REFS/HEADS/')) {
  1841. const branch = ref.substring('refs/heads/'.length);
  1842. result.ref = branch;
  1843. result.startPoint = `refs/remotes/origin/${branch}`;
  1844. }
  1845. // refs/pull/
  1846. else if (upperRef.startsWith('REFS/PULL/')) {
  1847. const branch = ref.substring('refs/pull/'.length);
  1848. result.ref = `refs/remotes/pull/${branch}`;
  1849. }
  1850. // refs/tags/
  1851. else if (upperRef.startsWith('REFS/')) {
  1852. result.ref = ref;
  1853. }
  1854. // Unqualified ref, check for a matching branch or tag
  1855. else {
  1856. if (yield git.branchExists(true, `origin/${ref}`)) {
  1857. result.ref = ref;
  1858. result.startPoint = `refs/remotes/origin/${ref}`;
  1859. }
  1860. else if (yield git.tagExists(`${ref}`)) {
  1861. result.ref = `refs/tags/${ref}`;
  1862. }
  1863. else {
  1864. throw new Error(`A branch or tag with the name '${ref}' could not be found`);
  1865. }
  1866. }
  1867. return result;
  1868. });
  1869. }
  1870. exports.getCheckoutInfo = getCheckoutInfo;
  1871. function getRefSpecForAllHistory(ref, commit) {
  1872. const result = ['+refs/heads/*:refs/remotes/origin/*', exports.tagsRefSpec];
  1873. if (ref && ref.toUpperCase().startsWith('REFS/PULL/')) {
  1874. const branch = ref.substring('refs/pull/'.length);
  1875. result.push(`+${commit || ref}:refs/remotes/pull/${branch}`);
  1876. }
  1877. return result;
  1878. }
  1879. exports.getRefSpecForAllHistory = getRefSpecForAllHistory;
  1880. function getRefSpec(ref, commit) {
  1881. if (!ref && !commit) {
  1882. throw new Error('Args ref and commit cannot both be empty');
  1883. }
  1884. const upperRef = (ref || '').toUpperCase();
  1885. // SHA
  1886. if (commit) {
  1887. // refs/heads
  1888. if (upperRef.startsWith('REFS/HEADS/')) {
  1889. const branch = ref.substring('refs/heads/'.length);
  1890. return [`+${commit}:refs/remotes/origin/${branch}`];
  1891. }
  1892. // refs/pull/
  1893. else if (upperRef.startsWith('REFS/PULL/')) {
  1894. const branch = ref.substring('refs/pull/'.length);
  1895. return [`+${commit}:refs/remotes/pull/${branch}`];
  1896. }
  1897. // refs/tags/
  1898. else if (upperRef.startsWith('REFS/TAGS/')) {
  1899. return [`+${commit}:${ref}`];
  1900. }
  1901. // Otherwise no destination ref
  1902. else {
  1903. return [commit];
  1904. }
  1905. }
  1906. // Unqualified ref, check for a matching branch or tag
  1907. else if (!upperRef.startsWith('REFS/')) {
  1908. return [
  1909. `+refs/heads/${ref}*:refs/remotes/origin/${ref}*`,
  1910. `+refs/tags/${ref}*:refs/tags/${ref}*`
  1911. ];
  1912. }
  1913. // refs/heads/
  1914. else if (upperRef.startsWith('REFS/HEADS/')) {
  1915. const branch = ref.substring('refs/heads/'.length);
  1916. return [`+${ref}:refs/remotes/origin/${branch}`];
  1917. }
  1918. // refs/pull/
  1919. else if (upperRef.startsWith('REFS/PULL/')) {
  1920. const branch = ref.substring('refs/pull/'.length);
  1921. return [`+${ref}:refs/remotes/pull/${branch}`];
  1922. }
  1923. // refs/tags/
  1924. else {
  1925. return [`+${ref}:${ref}`];
  1926. }
  1927. }
  1928. exports.getRefSpec = getRefSpec;
  1929. /**
  1930. * Tests whether the initial fetch created the ref at the expected commit
  1931. */
  1932. function testRef(git, ref, commit) {
  1933. return __awaiter(this, void 0, void 0, function* () {
  1934. if (!git) {
  1935. throw new Error('Arg git cannot be empty');
  1936. }
  1937. if (!ref && !commit) {
  1938. throw new Error('Args ref and commit cannot both be empty');
  1939. }
  1940. // No SHA? Nothing to test
  1941. if (!commit) {
  1942. return true;
  1943. }
  1944. // SHA only?
  1945. else if (!ref) {
  1946. return yield git.shaExists(commit);
  1947. }
  1948. const upperRef = ref.toUpperCase();
  1949. // refs/heads/
  1950. if (upperRef.startsWith('REFS/HEADS/')) {
  1951. const branch = ref.substring('refs/heads/'.length);
  1952. return ((yield git.branchExists(true, `origin/${branch}`)) &&
  1953. commit === (yield git.revParse(`refs/remotes/origin/${branch}`)));
  1954. }
  1955. // refs/pull/
  1956. else if (upperRef.startsWith('REFS/PULL/')) {
  1957. // Assume matches because fetched using the commit
  1958. return true;
  1959. }
  1960. // refs/tags/
  1961. else if (upperRef.startsWith('REFS/TAGS/')) {
  1962. const tagName = ref.substring('refs/tags/'.length);
  1963. return ((yield git.tagExists(tagName)) && commit === (yield git.revParse(ref)));
  1964. }
  1965. // Unexpected
  1966. else {
  1967. core.debug(`Unexpected ref format '${ref}' when testing ref info`);
  1968. return true;
  1969. }
  1970. });
  1971. }
  1972. exports.testRef = testRef;
  1973. function checkCommitInfo(token, commitInfo, repositoryOwner, repositoryName, ref, commit, baseUrl) {
  1974. var _a, _b;
  1975. return __awaiter(this, void 0, void 0, function* () {
  1976. try {
  1977. // GHES?
  1978. if ((0, url_helper_1.isGhes)(baseUrl)) {
  1979. return;
  1980. }
  1981. // Auth token?
  1982. if (!token) {
  1983. return;
  1984. }
  1985. // Public PR synchronize, for workflow repo?
  1986. if (fromPayload('repository.private') !== false ||
  1987. github.context.eventName !== 'pull_request' ||
  1988. fromPayload('action') !== 'synchronize' ||
  1989. repositoryOwner !== github.context.repo.owner ||
  1990. repositoryName !== github.context.repo.repo ||
  1991. ref !== github.context.ref ||
  1992. !ref.startsWith('refs/pull/') ||
  1993. commit !== github.context.sha) {
  1994. return;
  1995. }
  1996. // Head SHA
  1997. const expectedHeadSha = fromPayload('after');
  1998. if (!expectedHeadSha) {
  1999. core.debug('Unable to determine head sha');
  2000. return;
  2001. }
  2002. // Base SHA
  2003. const expectedBaseSha = fromPayload('pull_request.base.sha');
  2004. if (!expectedBaseSha) {
  2005. core.debug('Unable to determine base sha');
  2006. return;
  2007. }
  2008. // Expected message?
  2009. const expectedMessage = `Merge ${expectedHeadSha} into ${expectedBaseSha}`;
  2010. if (commitInfo.indexOf(expectedMessage) >= 0) {
  2011. return;
  2012. }
  2013. // Extract details from message
  2014. const match = commitInfo.match(/Merge ([0-9a-f]{40}) into ([0-9a-f]{40})/);
  2015. if (!match) {
  2016. core.debug('Unexpected message format');
  2017. return;
  2018. }
  2019. // Post telemetry
  2020. const actualHeadSha = match[1];
  2021. if (actualHeadSha !== expectedHeadSha) {
  2022. core.debug(`Expected head sha ${expectedHeadSha}; actual head sha ${actualHeadSha}`);
  2023. const octokit = (0, octokit_provider_1.getOctokit)(token, {
  2024. baseUrl: baseUrl,
  2025. 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})`
  2026. });
  2027. yield octokit.repos.get({ owner: repositoryOwner, repo: repositoryName });
  2028. }
  2029. }
  2030. catch (err) {
  2031. core.debug(`Error when validating commit info: ${(_b = (_a = err) === null || _a === void 0 ? void 0 : _a.stack) !== null && _b !== void 0 ? _b : err}`);
  2032. }
  2033. });
  2034. }
  2035. exports.checkCommitInfo = checkCommitInfo;
  2036. function fromPayload(path) {
  2037. return select(github.context.payload, path);
  2038. }
  2039. function select(obj, path) {
  2040. if (!obj) {
  2041. return undefined;
  2042. }
  2043. const i = path.indexOf('.');
  2044. if (i < 0) {
  2045. return obj[path];
  2046. }
  2047. const key = path.substr(0, i);
  2048. return select(obj[key], path.substr(i + 1));
  2049. }
  2050. /***/ }),
  2051. /***/ 3120:
  2052. /***/ ((__unused_webpack_module, exports) => {
  2053. "use strict";
  2054. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2055. exports.escape = void 0;
  2056. function escape(value) {
  2057. return value.replace(/[^a-zA-Z0-9_]/g, x => {
  2058. return `\\${x}`;
  2059. });
  2060. }
  2061. exports.escape = escape;
  2062. /***/ }),
  2063. /***/ 2155:
  2064. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2065. "use strict";
  2066. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2067. if (k2 === undefined) k2 = k;
  2068. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2069. }) : (function(o, m, k, k2) {
  2070. if (k2 === undefined) k2 = k;
  2071. o[k2] = m[k];
  2072. }));
  2073. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2074. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2075. }) : function(o, v) {
  2076. o["default"] = v;
  2077. });
  2078. var __importStar = (this && this.__importStar) || function (mod) {
  2079. if (mod && mod.__esModule) return mod;
  2080. var result = {};
  2081. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2082. __setModuleDefault(result, mod);
  2083. return result;
  2084. };
  2085. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2086. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2087. return new (P || (P = Promise))(function (resolve, reject) {
  2088. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2089. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2090. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2091. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2092. });
  2093. };
  2094. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2095. exports.execute = exports.RetryHelper = void 0;
  2096. const core = __importStar(__nccwpck_require__(2186));
  2097. const defaultMaxAttempts = 3;
  2098. const defaultMinSeconds = 10;
  2099. const defaultMaxSeconds = 20;
  2100. class RetryHelper {
  2101. constructor(maxAttempts = defaultMaxAttempts, minSeconds = defaultMinSeconds, maxSeconds = defaultMaxSeconds) {
  2102. this.maxAttempts = maxAttempts;
  2103. this.minSeconds = Math.floor(minSeconds);
  2104. this.maxSeconds = Math.floor(maxSeconds);
  2105. if (this.minSeconds > this.maxSeconds) {
  2106. throw new Error('min seconds should be less than or equal to max seconds');
  2107. }
  2108. }
  2109. execute(action) {
  2110. var _a;
  2111. return __awaiter(this, void 0, void 0, function* () {
  2112. let attempt = 1;
  2113. while (attempt < this.maxAttempts) {
  2114. // Try
  2115. try {
  2116. return yield action();
  2117. }
  2118. catch (err) {
  2119. core.info((_a = err) === null || _a === void 0 ? void 0 : _a.message);
  2120. }
  2121. // Sleep
  2122. const seconds = this.getSleepAmount();
  2123. core.info(`Waiting ${seconds} seconds before trying again`);
  2124. yield this.sleep(seconds);
  2125. attempt++;
  2126. }
  2127. // Last attempt
  2128. return yield action();
  2129. });
  2130. }
  2131. getSleepAmount() {
  2132. return (Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) +
  2133. this.minSeconds);
  2134. }
  2135. sleep(seconds) {
  2136. return __awaiter(this, void 0, void 0, function* () {
  2137. return new Promise(resolve => setTimeout(resolve, seconds * 1000));
  2138. });
  2139. }
  2140. }
  2141. exports.RetryHelper = RetryHelper;
  2142. function execute(action) {
  2143. return __awaiter(this, void 0, void 0, function* () {
  2144. const retryHelper = new RetryHelper();
  2145. return yield retryHelper.execute(action);
  2146. });
  2147. }
  2148. exports.execute = execute;
  2149. /***/ }),
  2150. /***/ 8647:
  2151. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2152. "use strict";
  2153. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2154. if (k2 === undefined) k2 = k;
  2155. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2156. }) : (function(o, m, k, k2) {
  2157. if (k2 === undefined) k2 = k;
  2158. o[k2] = m[k];
  2159. }));
  2160. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2161. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2162. }) : function(o, v) {
  2163. o["default"] = v;
  2164. });
  2165. var __importStar = (this && this.__importStar) || function (mod) {
  2166. if (mod && mod.__esModule) return mod;
  2167. var result = {};
  2168. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2169. __setModuleDefault(result, mod);
  2170. return result;
  2171. };
  2172. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2173. exports.setSafeDirectory = exports.setSshKnownHostsPath = exports.setSshKeyPath = exports.setRepositoryPath = exports.SshKnownHostsPath = exports.SshKeyPath = exports.PostSetSafeDirectory = exports.RepositoryPath = exports.IsPost = void 0;
  2174. const core = __importStar(__nccwpck_require__(2186));
  2175. /**
  2176. * Indicates whether the POST action is running
  2177. */
  2178. exports.IsPost = !!core.getState('isPost');
  2179. /**
  2180. * The repository path for the POST action. The value is empty during the MAIN action.
  2181. */
  2182. exports.RepositoryPath = core.getState('repositoryPath');
  2183. /**
  2184. * The set-safe-directory for the POST action. The value is set if input: 'safe-directory' is set during the MAIN action.
  2185. */
  2186. exports.PostSetSafeDirectory = core.getState('setSafeDirectory') === 'true';
  2187. /**
  2188. * The SSH key path for the POST action. The value is empty during the MAIN action.
  2189. */
  2190. exports.SshKeyPath = core.getState('sshKeyPath');
  2191. /**
  2192. * The SSH known hosts path for the POST action. The value is empty during the MAIN action.
  2193. */
  2194. exports.SshKnownHostsPath = core.getState('sshKnownHostsPath');
  2195. /**
  2196. * Save the repository path so the POST action can retrieve the value.
  2197. */
  2198. function setRepositoryPath(repositoryPath) {
  2199. core.saveState('repositoryPath', repositoryPath);
  2200. }
  2201. exports.setRepositoryPath = setRepositoryPath;
  2202. /**
  2203. * Save the SSH key path so the POST action can retrieve the value.
  2204. */
  2205. function setSshKeyPath(sshKeyPath) {
  2206. core.saveState('sshKeyPath', sshKeyPath);
  2207. }
  2208. exports.setSshKeyPath = setSshKeyPath;
  2209. /**
  2210. * Save the SSH known hosts path so the POST action can retrieve the value.
  2211. */
  2212. function setSshKnownHostsPath(sshKnownHostsPath) {
  2213. core.saveState('sshKnownHostsPath', sshKnownHostsPath);
  2214. }
  2215. exports.setSshKnownHostsPath = setSshKnownHostsPath;
  2216. /**
  2217. * Save the set-safe-directory input so the POST action can retrieve the value.
  2218. */
  2219. function setSafeDirectory() {
  2220. core.saveState('setSafeDirectory', 'true');
  2221. }
  2222. exports.setSafeDirectory = setSafeDirectory;
  2223. // Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
  2224. // This is necessary since we don't have a separate entry point.
  2225. if (!exports.IsPost) {
  2226. core.saveState('isPost', 'true');
  2227. }
  2228. /***/ }),
  2229. /***/ 9437:
  2230. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2231. "use strict";
  2232. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2233. if (k2 === undefined) k2 = k;
  2234. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2235. }) : (function(o, m, k, k2) {
  2236. if (k2 === undefined) k2 = k;
  2237. o[k2] = m[k];
  2238. }));
  2239. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2240. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2241. }) : function(o, v) {
  2242. o["default"] = v;
  2243. });
  2244. var __importStar = (this && this.__importStar) || function (mod) {
  2245. if (mod && mod.__esModule) return mod;
  2246. var result = {};
  2247. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2248. __setModuleDefault(result, mod);
  2249. return result;
  2250. };
  2251. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2252. exports.isGhes = exports.getServerApiUrl = exports.getServerUrl = exports.getFetchUrl = void 0;
  2253. const assert = __importStar(__nccwpck_require__(9491));
  2254. const url_1 = __nccwpck_require__(7310);
  2255. function getFetchUrl(settings) {
  2256. assert.ok(settings.repositoryOwner, 'settings.repositoryOwner must be defined');
  2257. assert.ok(settings.repositoryName, 'settings.repositoryName must be defined');
  2258. const serviceUrl = getServerUrl(settings.githubServerUrl);
  2259. const encodedOwner = encodeURIComponent(settings.repositoryOwner);
  2260. const encodedName = encodeURIComponent(settings.repositoryName);
  2261. if (settings.sshKey) {
  2262. return `git@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
  2263. }
  2264. // "origin" is SCHEME://HOSTNAME[:PORT]
  2265. return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
  2266. }
  2267. exports.getFetchUrl = getFetchUrl;
  2268. function getServerUrl(url) {
  2269. let urlValue = url && url.trim().length > 0
  2270. ? url
  2271. : process.env['GITHUB_SERVER_URL'] || 'https://github.com';
  2272. return new url_1.URL(urlValue);
  2273. }
  2274. exports.getServerUrl = getServerUrl;
  2275. function getServerApiUrl(url) {
  2276. let apiUrl = 'https://api.github.com';
  2277. if (isGhes(url)) {
  2278. const serverUrl = getServerUrl(url);
  2279. apiUrl = new url_1.URL(`${serverUrl.origin}/api/v3`).toString();
  2280. }
  2281. return apiUrl;
  2282. }
  2283. exports.getServerApiUrl = getServerApiUrl;
  2284. function isGhes(url) {
  2285. const ghUrl = getServerUrl(url);
  2286. return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
  2287. }
  2288. exports.isGhes = isGhes;
  2289. /***/ }),
  2290. /***/ 9568:
  2291. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2292. "use strict";
  2293. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2294. if (k2 === undefined) k2 = k;
  2295. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2296. }) : (function(o, m, k, k2) {
  2297. if (k2 === undefined) k2 = k;
  2298. o[k2] = m[k];
  2299. }));
  2300. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2301. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2302. }) : function(o, v) {
  2303. o["default"] = v;
  2304. });
  2305. var __importStar = (this && this.__importStar) || function (mod) {
  2306. if (mod && mod.__esModule) return mod;
  2307. var result = {};
  2308. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2309. __setModuleDefault(result, mod);
  2310. return result;
  2311. };
  2312. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2313. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2314. return new (P || (P = Promise))(function (resolve, reject) {
  2315. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2316. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2317. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2318. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2319. });
  2320. };
  2321. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2322. exports.getOrganizationId = void 0;
  2323. const core = __importStar(__nccwpck_require__(2186));
  2324. const fs = __importStar(__nccwpck_require__(7147));
  2325. /**
  2326. * Gets the organization ID of the running workflow or undefined if the value cannot be loaded from the GITHUB_EVENT_PATH
  2327. */
  2328. function getOrganizationId() {
  2329. var _a, _b;
  2330. return __awaiter(this, void 0, void 0, function* () {
  2331. try {
  2332. const eventPath = process.env.GITHUB_EVENT_PATH;
  2333. if (!eventPath) {
  2334. core.debug(`GITHUB_EVENT_PATH is not defined`);
  2335. return;
  2336. }
  2337. const content = yield fs.promises.readFile(eventPath, { encoding: 'utf8' });
  2338. const event = JSON.parse(content);
  2339. 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;
  2340. if (typeof id !== 'number') {
  2341. core.debug('Repository owner ID not found within GITHUB event info');
  2342. return;
  2343. }
  2344. return id;
  2345. }
  2346. catch (err) {
  2347. core.debug(`Unable to load organization ID from GITHUB_EVENT_PATH: ${err
  2348. .message || err}`);
  2349. }
  2350. });
  2351. }
  2352. exports.getOrganizationId = getOrganizationId;
  2353. /***/ }),
  2354. /***/ 7351:
  2355. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2356. "use strict";
  2357. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2358. if (k2 === undefined) k2 = k;
  2359. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2360. }) : (function(o, m, k, k2) {
  2361. if (k2 === undefined) k2 = k;
  2362. o[k2] = m[k];
  2363. }));
  2364. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2365. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2366. }) : function(o, v) {
  2367. o["default"] = v;
  2368. });
  2369. var __importStar = (this && this.__importStar) || function (mod) {
  2370. if (mod && mod.__esModule) return mod;
  2371. var result = {};
  2372. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2373. __setModuleDefault(result, mod);
  2374. return result;
  2375. };
  2376. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2377. exports.issue = exports.issueCommand = void 0;
  2378. const os = __importStar(__nccwpck_require__(2037));
  2379. const utils_1 = __nccwpck_require__(5278);
  2380. /**
  2381. * Commands
  2382. *
  2383. * Command Format:
  2384. * ::name key=value,key=value::message
  2385. *
  2386. * Examples:
  2387. * ::warning::This is the message
  2388. * ::set-env name=MY_VAR::some value
  2389. */
  2390. function issueCommand(command, properties, message) {
  2391. const cmd = new Command(command, properties, message);
  2392. process.stdout.write(cmd.toString() + os.EOL);
  2393. }
  2394. exports.issueCommand = issueCommand;
  2395. function issue(name, message = '') {
  2396. issueCommand(name, {}, message);
  2397. }
  2398. exports.issue = issue;
  2399. const CMD_STRING = '::';
  2400. class Command {
  2401. constructor(command, properties, message) {
  2402. if (!command) {
  2403. command = 'missing.command';
  2404. }
  2405. this.command = command;
  2406. this.properties = properties;
  2407. this.message = message;
  2408. }
  2409. toString() {
  2410. let cmdStr = CMD_STRING + this.command;
  2411. if (this.properties && Object.keys(this.properties).length > 0) {
  2412. cmdStr += ' ';
  2413. let first = true;
  2414. for (const key in this.properties) {
  2415. if (this.properties.hasOwnProperty(key)) {
  2416. const val = this.properties[key];
  2417. if (val) {
  2418. if (first) {
  2419. first = false;
  2420. }
  2421. else {
  2422. cmdStr += ',';
  2423. }
  2424. cmdStr += `${key}=${escapeProperty(val)}`;
  2425. }
  2426. }
  2427. }
  2428. }
  2429. cmdStr += `${CMD_STRING}${escapeData(this.message)}`;
  2430. return cmdStr;
  2431. }
  2432. }
  2433. function escapeData(s) {
  2434. return utils_1.toCommandValue(s)
  2435. .replace(/%/g, '%25')
  2436. .replace(/\r/g, '%0D')
  2437. .replace(/\n/g, '%0A');
  2438. }
  2439. function escapeProperty(s) {
  2440. return utils_1.toCommandValue(s)
  2441. .replace(/%/g, '%25')
  2442. .replace(/\r/g, '%0D')
  2443. .replace(/\n/g, '%0A')
  2444. .replace(/:/g, '%3A')
  2445. .replace(/,/g, '%2C');
  2446. }
  2447. //# sourceMappingURL=command.js.map
  2448. /***/ }),
  2449. /***/ 2186:
  2450. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2451. "use strict";
  2452. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2453. if (k2 === undefined) k2 = k;
  2454. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2455. }) : (function(o, m, k, k2) {
  2456. if (k2 === undefined) k2 = k;
  2457. o[k2] = m[k];
  2458. }));
  2459. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2460. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2461. }) : function(o, v) {
  2462. o["default"] = v;
  2463. });
  2464. var __importStar = (this && this.__importStar) || function (mod) {
  2465. if (mod && mod.__esModule) return mod;
  2466. var result = {};
  2467. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2468. __setModuleDefault(result, mod);
  2469. return result;
  2470. };
  2471. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2472. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2473. return new (P || (P = Promise))(function (resolve, reject) {
  2474. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2475. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2476. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2477. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2478. });
  2479. };
  2480. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2481. 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;
  2482. const command_1 = __nccwpck_require__(7351);
  2483. const file_command_1 = __nccwpck_require__(717);
  2484. const utils_1 = __nccwpck_require__(5278);
  2485. const os = __importStar(__nccwpck_require__(2037));
  2486. const path = __importStar(__nccwpck_require__(1017));
  2487. const oidc_utils_1 = __nccwpck_require__(8041);
  2488. /**
  2489. * The code to exit an action
  2490. */
  2491. var ExitCode;
  2492. (function (ExitCode) {
  2493. /**
  2494. * A code indicating that the action was successful
  2495. */
  2496. ExitCode[ExitCode["Success"] = 0] = "Success";
  2497. /**
  2498. * A code indicating that the action was a failure
  2499. */
  2500. ExitCode[ExitCode["Failure"] = 1] = "Failure";
  2501. })(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
  2502. //-----------------------------------------------------------------------
  2503. // Variables
  2504. //-----------------------------------------------------------------------
  2505. /**
  2506. * Sets env variable for this action and future actions in the job
  2507. * @param name the name of the variable to set
  2508. * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
  2509. */
  2510. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  2511. function exportVariable(name, val) {
  2512. const convertedVal = utils_1.toCommandValue(val);
  2513. process.env[name] = convertedVal;
  2514. const filePath = process.env['GITHUB_ENV'] || '';
  2515. if (filePath) {
  2516. return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));
  2517. }
  2518. command_1.issueCommand('set-env', { name }, convertedVal);
  2519. }
  2520. exports.exportVariable = exportVariable;
  2521. /**
  2522. * Registers a secret which will get masked from logs
  2523. * @param secret value of the secret
  2524. */
  2525. function setSecret(secret) {
  2526. command_1.issueCommand('add-mask', {}, secret);
  2527. }
  2528. exports.setSecret = setSecret;
  2529. /**
  2530. * Prepends inputPath to the PATH (for this action and future actions)
  2531. * @param inputPath
  2532. */
  2533. function addPath(inputPath) {
  2534. const filePath = process.env['GITHUB_PATH'] || '';
  2535. if (filePath) {
  2536. file_command_1.issueFileCommand('PATH', inputPath);
  2537. }
  2538. else {
  2539. command_1.issueCommand('add-path', {}, inputPath);
  2540. }
  2541. process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
  2542. }
  2543. exports.addPath = addPath;
  2544. /**
  2545. * Gets the value of an input.
  2546. * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
  2547. * Returns an empty string if the value is not defined.
  2548. *
  2549. * @param name name of the input to get
  2550. * @param options optional. See InputOptions.
  2551. * @returns string
  2552. */
  2553. function getInput(name, options) {
  2554. const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
  2555. if (options && options.required && !val) {
  2556. throw new Error(`Input required and not supplied: ${name}`);
  2557. }
  2558. if (options && options.trimWhitespace === false) {
  2559. return val;
  2560. }
  2561. return val.trim();
  2562. }
  2563. exports.getInput = getInput;
  2564. /**
  2565. * Gets the values of an multiline input. Each value is also trimmed.
  2566. *
  2567. * @param name name of the input to get
  2568. * @param options optional. See InputOptions.
  2569. * @returns string[]
  2570. *
  2571. */
  2572. function getMultilineInput(name, options) {
  2573. const inputs = getInput(name, options)
  2574. .split('\n')
  2575. .filter(x => x !== '');
  2576. if (options && options.trimWhitespace === false) {
  2577. return inputs;
  2578. }
  2579. return inputs.map(input => input.trim());
  2580. }
  2581. exports.getMultilineInput = getMultilineInput;
  2582. /**
  2583. * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
  2584. * Support boolean input list: `true | True | TRUE | false | False | FALSE` .
  2585. * The return value is also in boolean type.
  2586. * ref: https://yaml.org/spec/1.2/spec.html#id2804923
  2587. *
  2588. * @param name name of the input to get
  2589. * @param options optional. See InputOptions.
  2590. * @returns boolean
  2591. */
  2592. function getBooleanInput(name, options) {
  2593. const trueValue = ['true', 'True', 'TRUE'];
  2594. const falseValue = ['false', 'False', 'FALSE'];
  2595. const val = getInput(name, options);
  2596. if (trueValue.includes(val))
  2597. return true;
  2598. if (falseValue.includes(val))
  2599. return false;
  2600. throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
  2601. `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
  2602. }
  2603. exports.getBooleanInput = getBooleanInput;
  2604. /**
  2605. * Sets the value of an output.
  2606. *
  2607. * @param name name of the output to set
  2608. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  2609. */
  2610. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  2611. function setOutput(name, value) {
  2612. const filePath = process.env['GITHUB_OUTPUT'] || '';
  2613. if (filePath) {
  2614. return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));
  2615. }
  2616. process.stdout.write(os.EOL);
  2617. command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));
  2618. }
  2619. exports.setOutput = setOutput;
  2620. /**
  2621. * Enables or disables the echoing of commands into stdout for the rest of the step.
  2622. * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
  2623. *
  2624. */
  2625. function setCommandEcho(enabled) {
  2626. command_1.issue('echo', enabled ? 'on' : 'off');
  2627. }
  2628. exports.setCommandEcho = setCommandEcho;
  2629. //-----------------------------------------------------------------------
  2630. // Results
  2631. //-----------------------------------------------------------------------
  2632. /**
  2633. * Sets the action status to failed.
  2634. * When the action exits it will be with an exit code of 1
  2635. * @param message add error issue message
  2636. */
  2637. function setFailed(message) {
  2638. process.exitCode = ExitCode.Failure;
  2639. error(message);
  2640. }
  2641. exports.setFailed = setFailed;
  2642. //-----------------------------------------------------------------------
  2643. // Logging Commands
  2644. //-----------------------------------------------------------------------
  2645. /**
  2646. * Gets whether Actions Step Debug is on or not
  2647. */
  2648. function isDebug() {
  2649. return process.env['RUNNER_DEBUG'] === '1';
  2650. }
  2651. exports.isDebug = isDebug;
  2652. /**
  2653. * Writes debug message to user log
  2654. * @param message debug message
  2655. */
  2656. function debug(message) {
  2657. command_1.issueCommand('debug', {}, message);
  2658. }
  2659. exports.debug = debug;
  2660. /**
  2661. * Adds an error issue
  2662. * @param message error issue message. Errors will be converted to string via toString()
  2663. * @param properties optional properties to add to the annotation.
  2664. */
  2665. function error(message, properties = {}) {
  2666. command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  2667. }
  2668. exports.error = error;
  2669. /**
  2670. * Adds a warning issue
  2671. * @param message warning issue message. Errors will be converted to string via toString()
  2672. * @param properties optional properties to add to the annotation.
  2673. */
  2674. function warning(message, properties = {}) {
  2675. command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  2676. }
  2677. exports.warning = warning;
  2678. /**
  2679. * Adds a notice issue
  2680. * @param message notice issue message. Errors will be converted to string via toString()
  2681. * @param properties optional properties to add to the annotation.
  2682. */
  2683. function notice(message, properties = {}) {
  2684. command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  2685. }
  2686. exports.notice = notice;
  2687. /**
  2688. * Writes info to log with console.log.
  2689. * @param message info message
  2690. */
  2691. function info(message) {
  2692. process.stdout.write(message + os.EOL);
  2693. }
  2694. exports.info = info;
  2695. /**
  2696. * Begin an output group.
  2697. *
  2698. * Output until the next `groupEnd` will be foldable in this group
  2699. *
  2700. * @param name The name of the output group
  2701. */
  2702. function startGroup(name) {
  2703. command_1.issue('group', name);
  2704. }
  2705. exports.startGroup = startGroup;
  2706. /**
  2707. * End an output group.
  2708. */
  2709. function endGroup() {
  2710. command_1.issue('endgroup');
  2711. }
  2712. exports.endGroup = endGroup;
  2713. /**
  2714. * Wrap an asynchronous function call in a group.
  2715. *
  2716. * Returns the same type as the function itself.
  2717. *
  2718. * @param name The name of the group
  2719. * @param fn The function to wrap in the group
  2720. */
  2721. function group(name, fn) {
  2722. return __awaiter(this, void 0, void 0, function* () {
  2723. startGroup(name);
  2724. let result;
  2725. try {
  2726. result = yield fn();
  2727. }
  2728. finally {
  2729. endGroup();
  2730. }
  2731. return result;
  2732. });
  2733. }
  2734. exports.group = group;
  2735. //-----------------------------------------------------------------------
  2736. // Wrapper action state
  2737. //-----------------------------------------------------------------------
  2738. /**
  2739. * Saves state for current action, the state can only be retrieved by this action's post job execution.
  2740. *
  2741. * @param name name of the state to store
  2742. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  2743. */
  2744. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  2745. function saveState(name, value) {
  2746. const filePath = process.env['GITHUB_STATE'] || '';
  2747. if (filePath) {
  2748. return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));
  2749. }
  2750. command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));
  2751. }
  2752. exports.saveState = saveState;
  2753. /**
  2754. * Gets the value of an state set by this action's main execution.
  2755. *
  2756. * @param name name of the state to get
  2757. * @returns string
  2758. */
  2759. function getState(name) {
  2760. return process.env[`STATE_${name}`] || '';
  2761. }
  2762. exports.getState = getState;
  2763. function getIDToken(aud) {
  2764. return __awaiter(this, void 0, void 0, function* () {
  2765. return yield oidc_utils_1.OidcClient.getIDToken(aud);
  2766. });
  2767. }
  2768. exports.getIDToken = getIDToken;
  2769. /**
  2770. * Summary exports
  2771. */
  2772. var summary_1 = __nccwpck_require__(1327);
  2773. Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } }));
  2774. /**
  2775. * @deprecated use core.summary
  2776. */
  2777. var summary_2 = __nccwpck_require__(1327);
  2778. Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } }));
  2779. /**
  2780. * Path exports
  2781. */
  2782. var path_utils_1 = __nccwpck_require__(2981);
  2783. Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } }));
  2784. Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } }));
  2785. Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }));
  2786. //# sourceMappingURL=core.js.map
  2787. /***/ }),
  2788. /***/ 717:
  2789. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2790. "use strict";
  2791. // For internal use, subject to change.
  2792. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2793. if (k2 === undefined) k2 = k;
  2794. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2795. }) : (function(o, m, k, k2) {
  2796. if (k2 === undefined) k2 = k;
  2797. o[k2] = m[k];
  2798. }));
  2799. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2800. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2801. }) : function(o, v) {
  2802. o["default"] = v;
  2803. });
  2804. var __importStar = (this && this.__importStar) || function (mod) {
  2805. if (mod && mod.__esModule) return mod;
  2806. var result = {};
  2807. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2808. __setModuleDefault(result, mod);
  2809. return result;
  2810. };
  2811. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2812. exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
  2813. // We use any as a valid input type
  2814. /* eslint-disable @typescript-eslint/no-explicit-any */
  2815. const fs = __importStar(__nccwpck_require__(7147));
  2816. const os = __importStar(__nccwpck_require__(2037));
  2817. const uuid_1 = __nccwpck_require__(8974);
  2818. const utils_1 = __nccwpck_require__(5278);
  2819. function issueFileCommand(command, message) {
  2820. const filePath = process.env[`GITHUB_${command}`];
  2821. if (!filePath) {
  2822. throw new Error(`Unable to find environment variable for file command ${command}`);
  2823. }
  2824. if (!fs.existsSync(filePath)) {
  2825. throw new Error(`Missing file at path: ${filePath}`);
  2826. }
  2827. fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
  2828. encoding: 'utf8'
  2829. });
  2830. }
  2831. exports.issueFileCommand = issueFileCommand;
  2832. function prepareKeyValueMessage(key, value) {
  2833. const delimiter = `ghadelimiter_${uuid_1.v4()}`;
  2834. const convertedValue = utils_1.toCommandValue(value);
  2835. // These should realistically never happen, but just in case someone finds a
  2836. // way to exploit uuid generation let's not allow keys or values that contain
  2837. // the delimiter.
  2838. if (key.includes(delimiter)) {
  2839. throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
  2840. }
  2841. if (convertedValue.includes(delimiter)) {
  2842. throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
  2843. }
  2844. return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;
  2845. }
  2846. exports.prepareKeyValueMessage = prepareKeyValueMessage;
  2847. //# sourceMappingURL=file-command.js.map
  2848. /***/ }),
  2849. /***/ 8041:
  2850. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2851. "use strict";
  2852. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2853. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2854. return new (P || (P = Promise))(function (resolve, reject) {
  2855. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2856. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2857. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2858. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2859. });
  2860. };
  2861. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2862. exports.OidcClient = void 0;
  2863. const http_client_1 = __nccwpck_require__(1404);
  2864. const auth_1 = __nccwpck_require__(6758);
  2865. const core_1 = __nccwpck_require__(2186);
  2866. class OidcClient {
  2867. static createHttpClient(allowRetry = true, maxRetry = 10) {
  2868. const requestOptions = {
  2869. allowRetries: allowRetry,
  2870. maxRetries: maxRetry
  2871. };
  2872. return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions);
  2873. }
  2874. static getRequestToken() {
  2875. const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'];
  2876. if (!token) {
  2877. throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable');
  2878. }
  2879. return token;
  2880. }
  2881. static getIDTokenUrl() {
  2882. const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL'];
  2883. if (!runtimeUrl) {
  2884. throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable');
  2885. }
  2886. return runtimeUrl;
  2887. }
  2888. static getCall(id_token_url) {
  2889. var _a;
  2890. return __awaiter(this, void 0, void 0, function* () {
  2891. const httpclient = OidcClient.createHttpClient();
  2892. const res = yield httpclient
  2893. .getJson(id_token_url)
  2894. .catch(error => {
  2895. throw new Error(`Failed to get ID Token. \n
  2896. Error Code : ${error.statusCode}\n
  2897. Error Message: ${error.result.message}`);
  2898. });
  2899. const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
  2900. if (!id_token) {
  2901. throw new Error('Response json body do not have ID Token field');
  2902. }
  2903. return id_token;
  2904. });
  2905. }
  2906. static getIDToken(audience) {
  2907. return __awaiter(this, void 0, void 0, function* () {
  2908. try {
  2909. // New ID Token is requested from action service
  2910. let id_token_url = OidcClient.getIDTokenUrl();
  2911. if (audience) {
  2912. const encodedAudience = encodeURIComponent(audience);
  2913. id_token_url = `${id_token_url}&audience=${encodedAudience}`;
  2914. }
  2915. core_1.debug(`ID token url is ${id_token_url}`);
  2916. const id_token = yield OidcClient.getCall(id_token_url);
  2917. core_1.setSecret(id_token);
  2918. return id_token;
  2919. }
  2920. catch (error) {
  2921. throw new Error(`Error message: ${error.message}`);
  2922. }
  2923. });
  2924. }
  2925. }
  2926. exports.OidcClient = OidcClient;
  2927. //# sourceMappingURL=oidc-utils.js.map
  2928. /***/ }),
  2929. /***/ 2981:
  2930. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2931. "use strict";
  2932. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2933. if (k2 === undefined) k2 = k;
  2934. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2935. }) : (function(o, m, k, k2) {
  2936. if (k2 === undefined) k2 = k;
  2937. o[k2] = m[k];
  2938. }));
  2939. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2940. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2941. }) : function(o, v) {
  2942. o["default"] = v;
  2943. });
  2944. var __importStar = (this && this.__importStar) || function (mod) {
  2945. if (mod && mod.__esModule) return mod;
  2946. var result = {};
  2947. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2948. __setModuleDefault(result, mod);
  2949. return result;
  2950. };
  2951. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2952. exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;
  2953. const path = __importStar(__nccwpck_require__(1017));
  2954. /**
  2955. * toPosixPath converts the given path to the posix form. On Windows, \\ will be
  2956. * replaced with /.
  2957. *
  2958. * @param pth. Path to transform.
  2959. * @return string Posix path.
  2960. */
  2961. function toPosixPath(pth) {
  2962. return pth.replace(/[\\]/g, '/');
  2963. }
  2964. exports.toPosixPath = toPosixPath;
  2965. /**
  2966. * toWin32Path converts the given path to the win32 form. On Linux, / will be
  2967. * replaced with \\.
  2968. *
  2969. * @param pth. Path to transform.
  2970. * @return string Win32 path.
  2971. */
  2972. function toWin32Path(pth) {
  2973. return pth.replace(/[/]/g, '\\');
  2974. }
  2975. exports.toWin32Path = toWin32Path;
  2976. /**
  2977. * toPlatformPath converts the given path to a platform-specific path. It does
  2978. * this by replacing instances of / and \ with the platform-specific path
  2979. * separator.
  2980. *
  2981. * @param pth The path to platformize.
  2982. * @return string The platform-specific path.
  2983. */
  2984. function toPlatformPath(pth) {
  2985. return pth.replace(/[/\\]/g, path.sep);
  2986. }
  2987. exports.toPlatformPath = toPlatformPath;
  2988. //# sourceMappingURL=path-utils.js.map
  2989. /***/ }),
  2990. /***/ 1327:
  2991. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2992. "use strict";
  2993. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2994. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2995. return new (P || (P = Promise))(function (resolve, reject) {
  2996. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2997. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2998. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2999. step((generator = generator.apply(thisArg, _arguments || [])).next());
  3000. });
  3001. };
  3002. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3003. exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;
  3004. const os_1 = __nccwpck_require__(2037);
  3005. const fs_1 = __nccwpck_require__(7147);
  3006. const { access, appendFile, writeFile } = fs_1.promises;
  3007. exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY';
  3008. exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary';
  3009. class Summary {
  3010. constructor() {
  3011. this._buffer = '';
  3012. }
  3013. /**
  3014. * Finds the summary file path from the environment, rejects if env var is not found or file does not exist
  3015. * Also checks r/w permissions.
  3016. *
  3017. * @returns step summary file path
  3018. */
  3019. filePath() {
  3020. return __awaiter(this, void 0, void 0, function* () {
  3021. if (this._filePath) {
  3022. return this._filePath;
  3023. }
  3024. const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];
  3025. if (!pathFromEnv) {
  3026. throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);
  3027. }
  3028. try {
  3029. yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);
  3030. }
  3031. catch (_a) {
  3032. throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);
  3033. }
  3034. this._filePath = pathFromEnv;
  3035. return this._filePath;
  3036. });
  3037. }
  3038. /**
  3039. * Wraps content in an HTML tag, adding any HTML attributes
  3040. *
  3041. * @param {string} tag HTML tag to wrap
  3042. * @param {string | null} content content within the tag
  3043. * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add
  3044. *
  3045. * @returns {string} content wrapped in HTML element
  3046. */
  3047. wrap(tag, content, attrs = {}) {
  3048. const htmlAttrs = Object.entries(attrs)
  3049. .map(([key, value]) => ` ${key}="${value}"`)
  3050. .join('');
  3051. if (!content) {
  3052. return `<${tag}${htmlAttrs}>`;
  3053. }
  3054. return `<${tag}${htmlAttrs}>${content}</${tag}>`;
  3055. }
  3056. /**
  3057. * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.
  3058. *
  3059. * @param {SummaryWriteOptions} [options] (optional) options for write operation
  3060. *
  3061. * @returns {Promise<Summary>} summary instance
  3062. */
  3063. write(options) {
  3064. return __awaiter(this, void 0, void 0, function* () {
  3065. const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
  3066. const filePath = yield this.filePath();
  3067. const writeFunc = overwrite ? writeFile : appendFile;
  3068. yield writeFunc(filePath, this._buffer, { encoding: 'utf8' });
  3069. return this.emptyBuffer();
  3070. });
  3071. }
  3072. /**
  3073. * Clears the summary buffer and wipes the summary file
  3074. *
  3075. * @returns {Summary} summary instance
  3076. */
  3077. clear() {
  3078. return __awaiter(this, void 0, void 0, function* () {
  3079. return this.emptyBuffer().write({ overwrite: true });
  3080. });
  3081. }
  3082. /**
  3083. * Returns the current summary buffer as a string
  3084. *
  3085. * @returns {string} string of summary buffer
  3086. */
  3087. stringify() {
  3088. return this._buffer;
  3089. }
  3090. /**
  3091. * If the summary buffer is empty
  3092. *
  3093. * @returns {boolen} true if the buffer is empty
  3094. */
  3095. isEmptyBuffer() {
  3096. return this._buffer.length === 0;
  3097. }
  3098. /**
  3099. * Resets the summary buffer without writing to summary file
  3100. *
  3101. * @returns {Summary} summary instance
  3102. */
  3103. emptyBuffer() {
  3104. this._buffer = '';
  3105. return this;
  3106. }
  3107. /**
  3108. * Adds raw text to the summary buffer
  3109. *
  3110. * @param {string} text content to add
  3111. * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)
  3112. *
  3113. * @returns {Summary} summary instance
  3114. */
  3115. addRaw(text, addEOL = false) {
  3116. this._buffer += text;
  3117. return addEOL ? this.addEOL() : this;
  3118. }
  3119. /**
  3120. * Adds the operating system-specific end-of-line marker to the buffer
  3121. *
  3122. * @returns {Summary} summary instance
  3123. */
  3124. addEOL() {
  3125. return this.addRaw(os_1.EOL);
  3126. }
  3127. /**
  3128. * Adds an HTML codeblock to the summary buffer
  3129. *
  3130. * @param {string} code content to render within fenced code block
  3131. * @param {string} lang (optional) language to syntax highlight code
  3132. *
  3133. * @returns {Summary} summary instance
  3134. */
  3135. addCodeBlock(code, lang) {
  3136. const attrs = Object.assign({}, (lang && { lang }));
  3137. const element = this.wrap('pre', this.wrap('code', code), attrs);
  3138. return this.addRaw(element).addEOL();
  3139. }
  3140. /**
  3141. * Adds an HTML list to the summary buffer
  3142. *
  3143. * @param {string[]} items list of items to render
  3144. * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)
  3145. *
  3146. * @returns {Summary} summary instance
  3147. */
  3148. addList(items, ordered = false) {
  3149. const tag = ordered ? 'ol' : 'ul';
  3150. const listItems = items.map(item => this.wrap('li', item)).join('');
  3151. const element = this.wrap(tag, listItems);
  3152. return this.addRaw(element).addEOL();
  3153. }
  3154. /**
  3155. * Adds an HTML table to the summary buffer
  3156. *
  3157. * @param {SummaryTableCell[]} rows table rows
  3158. *
  3159. * @returns {Summary} summary instance
  3160. */
  3161. addTable(rows) {
  3162. const tableBody = rows
  3163. .map(row => {
  3164. const cells = row
  3165. .map(cell => {
  3166. if (typeof cell === 'string') {
  3167. return this.wrap('td', cell);
  3168. }
  3169. const { header, data, colspan, rowspan } = cell;
  3170. const tag = header ? 'th' : 'td';
  3171. const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan }));
  3172. return this.wrap(tag, data, attrs);
  3173. })
  3174. .join('');
  3175. return this.wrap('tr', cells);
  3176. })
  3177. .join('');
  3178. const element = this.wrap('table', tableBody);
  3179. return this.addRaw(element).addEOL();
  3180. }
  3181. /**
  3182. * Adds a collapsable HTML details element to the summary buffer
  3183. *
  3184. * @param {string} label text for the closed state
  3185. * @param {string} content collapsable content
  3186. *
  3187. * @returns {Summary} summary instance
  3188. */
  3189. addDetails(label, content) {
  3190. const element = this.wrap('details', this.wrap('summary', label) + content);
  3191. return this.addRaw(element).addEOL();
  3192. }
  3193. /**
  3194. * Adds an HTML image tag to the summary buffer
  3195. *
  3196. * @param {string} src path to the image you to embed
  3197. * @param {string} alt text description of the image
  3198. * @param {SummaryImageOptions} options (optional) addition image attributes
  3199. *
  3200. * @returns {Summary} summary instance
  3201. */
  3202. addImage(src, alt, options) {
  3203. const { width, height } = options || {};
  3204. const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height }));
  3205. const element = this.wrap('img', null, Object.assign({ src, alt }, attrs));
  3206. return this.addRaw(element).addEOL();
  3207. }
  3208. /**
  3209. * Adds an HTML section heading element
  3210. *
  3211. * @param {string} text heading text
  3212. * @param {number | string} [level=1] (optional) the heading level, default: 1
  3213. *
  3214. * @returns {Summary} summary instance
  3215. */
  3216. addHeading(text, level) {
  3217. const tag = `h${level}`;
  3218. const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag)
  3219. ? tag
  3220. : 'h1';
  3221. const element = this.wrap(allowedTag, text);
  3222. return this.addRaw(element).addEOL();
  3223. }
  3224. /**
  3225. * Adds an HTML thematic break (<hr>) to the summary buffer
  3226. *
  3227. * @returns {Summary} summary instance
  3228. */
  3229. addSeparator() {
  3230. const element = this.wrap('hr', null);
  3231. return this.addRaw(element).addEOL();
  3232. }
  3233. /**
  3234. * Adds an HTML line break (<br>) to the summary buffer
  3235. *
  3236. * @returns {Summary} summary instance
  3237. */
  3238. addBreak() {
  3239. const element = this.wrap('br', null);
  3240. return this.addRaw(element).addEOL();
  3241. }
  3242. /**
  3243. * Adds an HTML blockquote to the summary buffer
  3244. *
  3245. * @param {string} text quote text
  3246. * @param {string} cite (optional) citation url
  3247. *
  3248. * @returns {Summary} summary instance
  3249. */
  3250. addQuote(text, cite) {
  3251. const attrs = Object.assign({}, (cite && { cite }));
  3252. const element = this.wrap('blockquote', text, attrs);
  3253. return this.addRaw(element).addEOL();
  3254. }
  3255. /**
  3256. * Adds an HTML anchor tag to the summary buffer
  3257. *
  3258. * @param {string} text link text/content
  3259. * @param {string} href hyperlink
  3260. *
  3261. * @returns {Summary} summary instance
  3262. */
  3263. addLink(text, href) {
  3264. const element = this.wrap('a', text, { href });
  3265. return this.addRaw(element).addEOL();
  3266. }
  3267. }
  3268. const _summary = new Summary();
  3269. /**
  3270. * @deprecated use `core.summary`
  3271. */
  3272. exports.markdownSummary = _summary;
  3273. exports.summary = _summary;
  3274. //# sourceMappingURL=summary.js.map
  3275. /***/ }),
  3276. /***/ 5278:
  3277. /***/ ((__unused_webpack_module, exports) => {
  3278. "use strict";
  3279. // We use any as a valid input type
  3280. /* eslint-disable @typescript-eslint/no-explicit-any */
  3281. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3282. exports.toCommandProperties = exports.toCommandValue = void 0;
  3283. /**
  3284. * Sanitizes an input into a string so it can be passed into issueCommand safely
  3285. * @param input input to sanitize into a string
  3286. */
  3287. function toCommandValue(input) {
  3288. if (input === null || input === undefined) {
  3289. return '';
  3290. }
  3291. else if (typeof input === 'string' || input instanceof String) {
  3292. return input;
  3293. }
  3294. return JSON.stringify(input);
  3295. }
  3296. exports.toCommandValue = toCommandValue;
  3297. /**
  3298. *
  3299. * @param annotationProperties
  3300. * @returns The command properties to send with the actual annotation command
  3301. * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
  3302. */
  3303. function toCommandProperties(annotationProperties) {
  3304. if (!Object.keys(annotationProperties).length) {
  3305. return {};
  3306. }
  3307. return {
  3308. title: annotationProperties.title,
  3309. file: annotationProperties.file,
  3310. line: annotationProperties.startLine,
  3311. endLine: annotationProperties.endLine,
  3312. col: annotationProperties.startColumn,
  3313. endColumn: annotationProperties.endColumn
  3314. };
  3315. }
  3316. exports.toCommandProperties = toCommandProperties;
  3317. //# sourceMappingURL=utils.js.map
  3318. /***/ }),
  3319. /***/ 6758:
  3320. /***/ (function(__unused_webpack_module, exports) {
  3321. "use strict";
  3322. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3323. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3324. return new (P || (P = Promise))(function (resolve, reject) {
  3325. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  3326. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  3327. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  3328. step((generator = generator.apply(thisArg, _arguments || [])).next());
  3329. });
  3330. };
  3331. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3332. exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0;
  3333. class BasicCredentialHandler {
  3334. constructor(username, password) {
  3335. this.username = username;
  3336. this.password = password;
  3337. }
  3338. prepareRequest(options) {
  3339. if (!options.headers) {
  3340. throw Error('The request has no headers');
  3341. }
  3342. options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`;
  3343. }
  3344. // This handler cannot handle 401
  3345. canHandleAuthentication() {
  3346. return false;
  3347. }
  3348. handleAuthentication() {
  3349. return __awaiter(this, void 0, void 0, function* () {
  3350. throw new Error('not implemented');
  3351. });
  3352. }
  3353. }
  3354. exports.BasicCredentialHandler = BasicCredentialHandler;
  3355. class BearerCredentialHandler {
  3356. constructor(token) {
  3357. this.token = token;
  3358. }
  3359. // currently implements pre-authorization
  3360. // TODO: support preAuth = false where it hooks on 401
  3361. prepareRequest(options) {
  3362. if (!options.headers) {
  3363. throw Error('The request has no headers');
  3364. }
  3365. options.headers['Authorization'] = `Bearer ${this.token}`;
  3366. }
  3367. // This handler cannot handle 401
  3368. canHandleAuthentication() {
  3369. return false;
  3370. }
  3371. handleAuthentication() {
  3372. return __awaiter(this, void 0, void 0, function* () {
  3373. throw new Error('not implemented');
  3374. });
  3375. }
  3376. }
  3377. exports.BearerCredentialHandler = BearerCredentialHandler;
  3378. class PersonalAccessTokenCredentialHandler {
  3379. constructor(token) {
  3380. this.token = token;
  3381. }
  3382. // currently implements pre-authorization
  3383. // TODO: support preAuth = false where it hooks on 401
  3384. prepareRequest(options) {
  3385. if (!options.headers) {
  3386. throw Error('The request has no headers');
  3387. }
  3388. options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`;
  3389. }
  3390. // This handler cannot handle 401
  3391. canHandleAuthentication() {
  3392. return false;
  3393. }
  3394. handleAuthentication() {
  3395. return __awaiter(this, void 0, void 0, function* () {
  3396. throw new Error('not implemented');
  3397. });
  3398. }
  3399. }
  3400. exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;
  3401. //# sourceMappingURL=auth.js.map
  3402. /***/ }),
  3403. /***/ 1404:
  3404. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  3405. "use strict";
  3406. /* eslint-disable @typescript-eslint/no-explicit-any */
  3407. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3408. if (k2 === undefined) k2 = k;
  3409. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  3410. }) : (function(o, m, k, k2) {
  3411. if (k2 === undefined) k2 = k;
  3412. o[k2] = m[k];
  3413. }));
  3414. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  3415. Object.defineProperty(o, "default", { enumerable: true, value: v });
  3416. }) : function(o, v) {
  3417. o["default"] = v;
  3418. });
  3419. var __importStar = (this && this.__importStar) || function (mod) {
  3420. if (mod && mod.__esModule) return mod;
  3421. var result = {};
  3422. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3423. __setModuleDefault(result, mod);
  3424. return result;
  3425. };
  3426. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3427. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3428. return new (P || (P = Promise))(function (resolve, reject) {
  3429. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  3430. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  3431. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  3432. step((generator = generator.apply(thisArg, _arguments || [])).next());
  3433. });
  3434. };
  3435. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3436. exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
  3437. const http = __importStar(__nccwpck_require__(3685));
  3438. const https = __importStar(__nccwpck_require__(5687));
  3439. const pm = __importStar(__nccwpck_require__(2843));
  3440. const tunnel = __importStar(__nccwpck_require__(4294));
  3441. var HttpCodes;
  3442. (function (HttpCodes) {
  3443. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  3444. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  3445. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  3446. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  3447. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  3448. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  3449. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  3450. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  3451. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  3452. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  3453. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  3454. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  3455. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  3456. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  3457. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  3458. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  3459. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  3460. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  3461. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  3462. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  3463. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  3464. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  3465. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  3466. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  3467. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  3468. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  3469. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  3470. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  3471. var Headers;
  3472. (function (Headers) {
  3473. Headers["Accept"] = "accept";
  3474. Headers["ContentType"] = "content-type";
  3475. })(Headers = exports.Headers || (exports.Headers = {}));
  3476. var MediaTypes;
  3477. (function (MediaTypes) {
  3478. MediaTypes["ApplicationJson"] = "application/json";
  3479. })(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
  3480. /**
  3481. * Returns the proxy URL, depending upon the supplied url and proxy environment variables.
  3482. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  3483. */
  3484. function getProxyUrl(serverUrl) {
  3485. const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
  3486. return proxyUrl ? proxyUrl.href : '';
  3487. }
  3488. exports.getProxyUrl = getProxyUrl;
  3489. const HttpRedirectCodes = [
  3490. HttpCodes.MovedPermanently,
  3491. HttpCodes.ResourceMoved,
  3492. HttpCodes.SeeOther,
  3493. HttpCodes.TemporaryRedirect,
  3494. HttpCodes.PermanentRedirect
  3495. ];
  3496. const HttpResponseRetryCodes = [
  3497. HttpCodes.BadGateway,
  3498. HttpCodes.ServiceUnavailable,
  3499. HttpCodes.GatewayTimeout
  3500. ];
  3501. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  3502. const ExponentialBackoffCeiling = 10;
  3503. const ExponentialBackoffTimeSlice = 5;
  3504. class HttpClientError extends Error {
  3505. constructor(message, statusCode) {
  3506. super(message);
  3507. this.name = 'HttpClientError';
  3508. this.statusCode = statusCode;
  3509. Object.setPrototypeOf(this, HttpClientError.prototype);
  3510. }
  3511. }
  3512. exports.HttpClientError = HttpClientError;
  3513. class HttpClientResponse {
  3514. constructor(message) {
  3515. this.message = message;
  3516. }
  3517. readBody() {
  3518. return __awaiter(this, void 0, void 0, function* () {
  3519. return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
  3520. let output = Buffer.alloc(0);
  3521. this.message.on('data', (chunk) => {
  3522. output = Buffer.concat([output, chunk]);
  3523. });
  3524. this.message.on('end', () => {
  3525. resolve(output.toString());
  3526. });
  3527. }));
  3528. });
  3529. }
  3530. }
  3531. exports.HttpClientResponse = HttpClientResponse;
  3532. function isHttps(requestUrl) {
  3533. const parsedUrl = new URL(requestUrl);
  3534. return parsedUrl.protocol === 'https:';
  3535. }
  3536. exports.isHttps = isHttps;
  3537. class HttpClient {
  3538. constructor(userAgent, handlers, requestOptions) {
  3539. this._ignoreSslError = false;
  3540. this._allowRedirects = true;
  3541. this._allowRedirectDowngrade = false;
  3542. this._maxRedirects = 50;
  3543. this._allowRetries = false;
  3544. this._maxRetries = 1;
  3545. this._keepAlive = false;
  3546. this._disposed = false;
  3547. this.userAgent = userAgent;
  3548. this.handlers = handlers || [];
  3549. this.requestOptions = requestOptions;
  3550. if (requestOptions) {
  3551. if (requestOptions.ignoreSslError != null) {
  3552. this._ignoreSslError = requestOptions.ignoreSslError;
  3553. }
  3554. this._socketTimeout = requestOptions.socketTimeout;
  3555. if (requestOptions.allowRedirects != null) {
  3556. this._allowRedirects = requestOptions.allowRedirects;
  3557. }
  3558. if (requestOptions.allowRedirectDowngrade != null) {
  3559. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  3560. }
  3561. if (requestOptions.maxRedirects != null) {
  3562. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  3563. }
  3564. if (requestOptions.keepAlive != null) {
  3565. this._keepAlive = requestOptions.keepAlive;
  3566. }
  3567. if (requestOptions.allowRetries != null) {
  3568. this._allowRetries = requestOptions.allowRetries;
  3569. }
  3570. if (requestOptions.maxRetries != null) {
  3571. this._maxRetries = requestOptions.maxRetries;
  3572. }
  3573. }
  3574. }
  3575. options(requestUrl, additionalHeaders) {
  3576. return __awaiter(this, void 0, void 0, function* () {
  3577. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  3578. });
  3579. }
  3580. get(requestUrl, additionalHeaders) {
  3581. return __awaiter(this, void 0, void 0, function* () {
  3582. return this.request('GET', requestUrl, null, additionalHeaders || {});
  3583. });
  3584. }
  3585. del(requestUrl, additionalHeaders) {
  3586. return __awaiter(this, void 0, void 0, function* () {
  3587. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  3588. });
  3589. }
  3590. post(requestUrl, data, additionalHeaders) {
  3591. return __awaiter(this, void 0, void 0, function* () {
  3592. return this.request('POST', requestUrl, data, additionalHeaders || {});
  3593. });
  3594. }
  3595. patch(requestUrl, data, additionalHeaders) {
  3596. return __awaiter(this, void 0, void 0, function* () {
  3597. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  3598. });
  3599. }
  3600. put(requestUrl, data, additionalHeaders) {
  3601. return __awaiter(this, void 0, void 0, function* () {
  3602. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  3603. });
  3604. }
  3605. head(requestUrl, additionalHeaders) {
  3606. return __awaiter(this, void 0, void 0, function* () {
  3607. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  3608. });
  3609. }
  3610. sendStream(verb, requestUrl, stream, additionalHeaders) {
  3611. return __awaiter(this, void 0, void 0, function* () {
  3612. return this.request(verb, requestUrl, stream, additionalHeaders);
  3613. });
  3614. }
  3615. /**
  3616. * Gets a typed object from an endpoint
  3617. * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
  3618. */
  3619. getJson(requestUrl, additionalHeaders = {}) {
  3620. return __awaiter(this, void 0, void 0, function* () {
  3621. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  3622. const res = yield this.get(requestUrl, additionalHeaders);
  3623. return this._processResponse(res, this.requestOptions);
  3624. });
  3625. }
  3626. postJson(requestUrl, obj, additionalHeaders = {}) {
  3627. return __awaiter(this, void 0, void 0, function* () {
  3628. const data = JSON.stringify(obj, null, 2);
  3629. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  3630. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  3631. const res = yield this.post(requestUrl, data, additionalHeaders);
  3632. return this._processResponse(res, this.requestOptions);
  3633. });
  3634. }
  3635. putJson(requestUrl, obj, additionalHeaders = {}) {
  3636. return __awaiter(this, void 0, void 0, function* () {
  3637. const data = JSON.stringify(obj, null, 2);
  3638. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  3639. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  3640. const res = yield this.put(requestUrl, data, additionalHeaders);
  3641. return this._processResponse(res, this.requestOptions);
  3642. });
  3643. }
  3644. patchJson(requestUrl, obj, additionalHeaders = {}) {
  3645. return __awaiter(this, void 0, void 0, function* () {
  3646. const data = JSON.stringify(obj, null, 2);
  3647. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  3648. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  3649. const res = yield this.patch(requestUrl, data, additionalHeaders);
  3650. return this._processResponse(res, this.requestOptions);
  3651. });
  3652. }
  3653. /**
  3654. * Makes a raw http request.
  3655. * All other methods such as get, post, patch, and request ultimately call this.
  3656. * Prefer get, del, post and patch
  3657. */
  3658. request(verb, requestUrl, data, headers) {
  3659. return __awaiter(this, void 0, void 0, function* () {
  3660. if (this._disposed) {
  3661. throw new Error('Client has already been disposed.');
  3662. }
  3663. const parsedUrl = new URL(requestUrl);
  3664. let info = this._prepareRequest(verb, parsedUrl, headers);
  3665. // Only perform retries on reads since writes may not be idempotent.
  3666. const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb)
  3667. ? this._maxRetries + 1
  3668. : 1;
  3669. let numTries = 0;
  3670. let response;
  3671. do {
  3672. response = yield this.requestRaw(info, data);
  3673. // Check if it's an authentication challenge
  3674. if (response &&
  3675. response.message &&
  3676. response.message.statusCode === HttpCodes.Unauthorized) {
  3677. let authenticationHandler;
  3678. for (const handler of this.handlers) {
  3679. if (handler.canHandleAuthentication(response)) {
  3680. authenticationHandler = handler;
  3681. break;
  3682. }
  3683. }
  3684. if (authenticationHandler) {
  3685. return authenticationHandler.handleAuthentication(this, info, data);
  3686. }
  3687. else {
  3688. // We have received an unauthorized response but have no handlers to handle it.
  3689. // Let the response return to the caller.
  3690. return response;
  3691. }
  3692. }
  3693. let redirectsRemaining = this._maxRedirects;
  3694. while (response.message.statusCode &&
  3695. HttpRedirectCodes.includes(response.message.statusCode) &&
  3696. this._allowRedirects &&
  3697. redirectsRemaining > 0) {
  3698. const redirectUrl = response.message.headers['location'];
  3699. if (!redirectUrl) {
  3700. // if there's no location to redirect to, we won't
  3701. break;
  3702. }
  3703. const parsedRedirectUrl = new URL(redirectUrl);
  3704. if (parsedUrl.protocol === 'https:' &&
  3705. parsedUrl.protocol !== parsedRedirectUrl.protocol &&
  3706. !this._allowRedirectDowngrade) {
  3707. 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.');
  3708. }
  3709. // we need to finish reading the response before reassigning response
  3710. // which will leak the open socket.
  3711. yield response.readBody();
  3712. // strip authorization header if redirected to a different hostname
  3713. if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
  3714. for (const header in headers) {
  3715. // header names are case insensitive
  3716. if (header.toLowerCase() === 'authorization') {
  3717. delete headers[header];
  3718. }
  3719. }
  3720. }
  3721. // let's make the request with the new redirectUrl
  3722. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  3723. response = yield this.requestRaw(info, data);
  3724. redirectsRemaining--;
  3725. }
  3726. if (!response.message.statusCode ||
  3727. !HttpResponseRetryCodes.includes(response.message.statusCode)) {
  3728. // If not a retry code, return immediately instead of retrying
  3729. return response;
  3730. }
  3731. numTries += 1;
  3732. if (numTries < maxTries) {
  3733. yield response.readBody();
  3734. yield this._performExponentialBackoff(numTries);
  3735. }
  3736. } while (numTries < maxTries);
  3737. return response;
  3738. });
  3739. }
  3740. /**
  3741. * Needs to be called if keepAlive is set to true in request options.
  3742. */
  3743. dispose() {
  3744. if (this._agent) {
  3745. this._agent.destroy();
  3746. }
  3747. this._disposed = true;
  3748. }
  3749. /**
  3750. * Raw request.
  3751. * @param info
  3752. * @param data
  3753. */
  3754. requestRaw(info, data) {
  3755. return __awaiter(this, void 0, void 0, function* () {
  3756. return new Promise((resolve, reject) => {
  3757. function callbackForResult(err, res) {
  3758. if (err) {
  3759. reject(err);
  3760. }
  3761. else if (!res) {
  3762. // If `err` is not passed, then `res` must be passed.
  3763. reject(new Error('Unknown error'));
  3764. }
  3765. else {
  3766. resolve(res);
  3767. }
  3768. }
  3769. this.requestRawWithCallback(info, data, callbackForResult);
  3770. });
  3771. });
  3772. }
  3773. /**
  3774. * Raw request with callback.
  3775. * @param info
  3776. * @param data
  3777. * @param onResult
  3778. */
  3779. requestRawWithCallback(info, data, onResult) {
  3780. if (typeof data === 'string') {
  3781. if (!info.options.headers) {
  3782. info.options.headers = {};
  3783. }
  3784. info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
  3785. }
  3786. let callbackCalled = false;
  3787. function handleResult(err, res) {
  3788. if (!callbackCalled) {
  3789. callbackCalled = true;
  3790. onResult(err, res);
  3791. }
  3792. }
  3793. const req = info.httpModule.request(info.options, (msg) => {
  3794. const res = new HttpClientResponse(msg);
  3795. handleResult(undefined, res);
  3796. });
  3797. let socket;
  3798. req.on('socket', sock => {
  3799. socket = sock;
  3800. });
  3801. // If we ever get disconnected, we want the socket to timeout eventually
  3802. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  3803. if (socket) {
  3804. socket.end();
  3805. }
  3806. handleResult(new Error(`Request timeout: ${info.options.path}`));
  3807. });
  3808. req.on('error', function (err) {
  3809. // err has statusCode property
  3810. // res should have headers
  3811. handleResult(err);
  3812. });
  3813. if (data && typeof data === 'string') {
  3814. req.write(data, 'utf8');
  3815. }
  3816. if (data && typeof data !== 'string') {
  3817. data.on('close', function () {
  3818. req.end();
  3819. });
  3820. data.pipe(req);
  3821. }
  3822. else {
  3823. req.end();
  3824. }
  3825. }
  3826. /**
  3827. * Gets an http agent. This function is useful when you need an http agent that handles
  3828. * routing through a proxy server - depending upon the url and proxy environment variables.
  3829. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  3830. */
  3831. getAgent(serverUrl) {
  3832. const parsedUrl = new URL(serverUrl);
  3833. return this._getAgent(parsedUrl);
  3834. }
  3835. _prepareRequest(method, requestUrl, headers) {
  3836. const info = {};
  3837. info.parsedUrl = requestUrl;
  3838. const usingSsl = info.parsedUrl.protocol === 'https:';
  3839. info.httpModule = usingSsl ? https : http;
  3840. const defaultPort = usingSsl ? 443 : 80;
  3841. info.options = {};
  3842. info.options.host = info.parsedUrl.hostname;
  3843. info.options.port = info.parsedUrl.port
  3844. ? parseInt(info.parsedUrl.port)
  3845. : defaultPort;
  3846. info.options.path =
  3847. (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  3848. info.options.method = method;
  3849. info.options.headers = this._mergeHeaders(headers);
  3850. if (this.userAgent != null) {
  3851. info.options.headers['user-agent'] = this.userAgent;
  3852. }
  3853. info.options.agent = this._getAgent(info.parsedUrl);
  3854. // gives handlers an opportunity to participate
  3855. if (this.handlers) {
  3856. for (const handler of this.handlers) {
  3857. handler.prepareRequest(info.options);
  3858. }
  3859. }
  3860. return info;
  3861. }
  3862. _mergeHeaders(headers) {
  3863. if (this.requestOptions && this.requestOptions.headers) {
  3864. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {}));
  3865. }
  3866. return lowercaseKeys(headers || {});
  3867. }
  3868. _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
  3869. let clientHeader;
  3870. if (this.requestOptions && this.requestOptions.headers) {
  3871. clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
  3872. }
  3873. return additionalHeaders[header] || clientHeader || _default;
  3874. }
  3875. _getAgent(parsedUrl) {
  3876. let agent;
  3877. const proxyUrl = pm.getProxyUrl(parsedUrl);
  3878. const useProxy = proxyUrl && proxyUrl.hostname;
  3879. if (this._keepAlive && useProxy) {
  3880. agent = this._proxyAgent;
  3881. }
  3882. if (this._keepAlive && !useProxy) {
  3883. agent = this._agent;
  3884. }
  3885. // if agent is already assigned use that agent.
  3886. if (agent) {
  3887. return agent;
  3888. }
  3889. const usingSsl = parsedUrl.protocol === 'https:';
  3890. let maxSockets = 100;
  3891. if (this.requestOptions) {
  3892. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  3893. }
  3894. // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.
  3895. if (proxyUrl && proxyUrl.hostname) {
  3896. const agentOptions = {
  3897. maxSockets,
  3898. keepAlive: this._keepAlive,
  3899. proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && {
  3900. proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`
  3901. })), { host: proxyUrl.hostname, port: proxyUrl.port })
  3902. };
  3903. let tunnelAgent;
  3904. const overHttps = proxyUrl.protocol === 'https:';
  3905. if (usingSsl) {
  3906. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  3907. }
  3908. else {
  3909. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  3910. }
  3911. agent = tunnelAgent(agentOptions);
  3912. this._proxyAgent = agent;
  3913. }
  3914. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  3915. if (this._keepAlive && !agent) {
  3916. const options = { keepAlive: this._keepAlive, maxSockets };
  3917. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  3918. this._agent = agent;
  3919. }
  3920. // if not using private agent and tunnel agent isn't setup then use global agent
  3921. if (!agent) {
  3922. agent = usingSsl ? https.globalAgent : http.globalAgent;
  3923. }
  3924. if (usingSsl && this._ignoreSslError) {
  3925. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  3926. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  3927. // we have to cast it to any and change it directly
  3928. agent.options = Object.assign(agent.options || {}, {
  3929. rejectUnauthorized: false
  3930. });
  3931. }
  3932. return agent;
  3933. }
  3934. _performExponentialBackoff(retryNumber) {
  3935. return __awaiter(this, void 0, void 0, function* () {
  3936. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  3937. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  3938. return new Promise(resolve => setTimeout(() => resolve(), ms));
  3939. });
  3940. }
  3941. _processResponse(res, options) {
  3942. return __awaiter(this, void 0, void 0, function* () {
  3943. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  3944. const statusCode = res.message.statusCode || 0;
  3945. const response = {
  3946. statusCode,
  3947. result: null,
  3948. headers: {}
  3949. };
  3950. // not found leads to null obj returned
  3951. if (statusCode === HttpCodes.NotFound) {
  3952. resolve(response);
  3953. }
  3954. // get the result from the body
  3955. function dateTimeDeserializer(key, value) {
  3956. if (typeof value === 'string') {
  3957. const a = new Date(value);
  3958. if (!isNaN(a.valueOf())) {
  3959. return a;
  3960. }
  3961. }
  3962. return value;
  3963. }
  3964. let obj;
  3965. let contents;
  3966. try {
  3967. contents = yield res.readBody();
  3968. if (contents && contents.length > 0) {
  3969. if (options && options.deserializeDates) {
  3970. obj = JSON.parse(contents, dateTimeDeserializer);
  3971. }
  3972. else {
  3973. obj = JSON.parse(contents);
  3974. }
  3975. response.result = obj;
  3976. }
  3977. response.headers = res.message.headers;
  3978. }
  3979. catch (err) {
  3980. // Invalid resource (contents not json); leaving result obj null
  3981. }
  3982. // note that 3xx redirects are handled by the http layer.
  3983. if (statusCode > 299) {
  3984. let msg;
  3985. // if exception/error in body, attempt to get better error
  3986. if (obj && obj.message) {
  3987. msg = obj.message;
  3988. }
  3989. else if (contents && contents.length > 0) {
  3990. // it may be the case that the exception is in the body message as string
  3991. msg = contents;
  3992. }
  3993. else {
  3994. msg = `Failed request: (${statusCode})`;
  3995. }
  3996. const err = new HttpClientError(msg, statusCode);
  3997. err.result = response.result;
  3998. reject(err);
  3999. }
  4000. else {
  4001. resolve(response);
  4002. }
  4003. }));
  4004. });
  4005. }
  4006. }
  4007. exports.HttpClient = HttpClient;
  4008. const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  4009. //# sourceMappingURL=index.js.map
  4010. /***/ }),
  4011. /***/ 2843:
  4012. /***/ ((__unused_webpack_module, exports) => {
  4013. "use strict";
  4014. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4015. exports.checkBypass = exports.getProxyUrl = void 0;
  4016. function getProxyUrl(reqUrl) {
  4017. const usingSsl = reqUrl.protocol === 'https:';
  4018. if (checkBypass(reqUrl)) {
  4019. return undefined;
  4020. }
  4021. const proxyVar = (() => {
  4022. if (usingSsl) {
  4023. return process.env['https_proxy'] || process.env['HTTPS_PROXY'];
  4024. }
  4025. else {
  4026. return process.env['http_proxy'] || process.env['HTTP_PROXY'];
  4027. }
  4028. })();
  4029. if (proxyVar) {
  4030. return new URL(proxyVar);
  4031. }
  4032. else {
  4033. return undefined;
  4034. }
  4035. }
  4036. exports.getProxyUrl = getProxyUrl;
  4037. function checkBypass(reqUrl) {
  4038. if (!reqUrl.hostname) {
  4039. return false;
  4040. }
  4041. const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
  4042. if (!noProxy) {
  4043. return false;
  4044. }
  4045. // Determine the request port
  4046. let reqPort;
  4047. if (reqUrl.port) {
  4048. reqPort = Number(reqUrl.port);
  4049. }
  4050. else if (reqUrl.protocol === 'http:') {
  4051. reqPort = 80;
  4052. }
  4053. else if (reqUrl.protocol === 'https:') {
  4054. reqPort = 443;
  4055. }
  4056. // Format the request hostname and hostname with port
  4057. const upperReqHosts = [reqUrl.hostname.toUpperCase()];
  4058. if (typeof reqPort === 'number') {
  4059. upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
  4060. }
  4061. // Compare request host against noproxy
  4062. for (const upperNoProxyItem of noProxy
  4063. .split(',')
  4064. .map(x => x.trim().toUpperCase())
  4065. .filter(x => x)) {
  4066. if (upperReqHosts.some(x => x === upperNoProxyItem)) {
  4067. return true;
  4068. }
  4069. }
  4070. return false;
  4071. }
  4072. exports.checkBypass = checkBypass;
  4073. //# sourceMappingURL=proxy.js.map
  4074. /***/ }),
  4075. /***/ 8974:
  4076. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4077. "use strict";
  4078. Object.defineProperty(exports, "__esModule", ({
  4079. value: true
  4080. }));
  4081. Object.defineProperty(exports, "v1", ({
  4082. enumerable: true,
  4083. get: function () {
  4084. return _v.default;
  4085. }
  4086. }));
  4087. Object.defineProperty(exports, "v3", ({
  4088. enumerable: true,
  4089. get: function () {
  4090. return _v2.default;
  4091. }
  4092. }));
  4093. Object.defineProperty(exports, "v4", ({
  4094. enumerable: true,
  4095. get: function () {
  4096. return _v3.default;
  4097. }
  4098. }));
  4099. Object.defineProperty(exports, "v5", ({
  4100. enumerable: true,
  4101. get: function () {
  4102. return _v4.default;
  4103. }
  4104. }));
  4105. Object.defineProperty(exports, "NIL", ({
  4106. enumerable: true,
  4107. get: function () {
  4108. return _nil.default;
  4109. }
  4110. }));
  4111. Object.defineProperty(exports, "version", ({
  4112. enumerable: true,
  4113. get: function () {
  4114. return _version.default;
  4115. }
  4116. }));
  4117. Object.defineProperty(exports, "validate", ({
  4118. enumerable: true,
  4119. get: function () {
  4120. return _validate.default;
  4121. }
  4122. }));
  4123. Object.defineProperty(exports, "stringify", ({
  4124. enumerable: true,
  4125. get: function () {
  4126. return _stringify.default;
  4127. }
  4128. }));
  4129. Object.defineProperty(exports, "parse", ({
  4130. enumerable: true,
  4131. get: function () {
  4132. return _parse.default;
  4133. }
  4134. }));
  4135. var _v = _interopRequireDefault(__nccwpck_require__(1595));
  4136. var _v2 = _interopRequireDefault(__nccwpck_require__(6993));
  4137. var _v3 = _interopRequireDefault(__nccwpck_require__(1472));
  4138. var _v4 = _interopRequireDefault(__nccwpck_require__(6217));
  4139. var _nil = _interopRequireDefault(__nccwpck_require__(2381));
  4140. var _version = _interopRequireDefault(__nccwpck_require__(427));
  4141. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  4142. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  4143. var _parse = _interopRequireDefault(__nccwpck_require__(6385));
  4144. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4145. /***/ }),
  4146. /***/ 5842:
  4147. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4148. "use strict";
  4149. Object.defineProperty(exports, "__esModule", ({
  4150. value: true
  4151. }));
  4152. exports["default"] = void 0;
  4153. var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
  4154. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4155. function md5(bytes) {
  4156. if (Array.isArray(bytes)) {
  4157. bytes = Buffer.from(bytes);
  4158. } else if (typeof bytes === 'string') {
  4159. bytes = Buffer.from(bytes, 'utf8');
  4160. }
  4161. return _crypto.default.createHash('md5').update(bytes).digest();
  4162. }
  4163. var _default = md5;
  4164. exports["default"] = _default;
  4165. /***/ }),
  4166. /***/ 2381:
  4167. /***/ ((__unused_webpack_module, exports) => {
  4168. "use strict";
  4169. Object.defineProperty(exports, "__esModule", ({
  4170. value: true
  4171. }));
  4172. exports["default"] = void 0;
  4173. var _default = '00000000-0000-0000-0000-000000000000';
  4174. exports["default"] = _default;
  4175. /***/ }),
  4176. /***/ 6385:
  4177. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4178. "use strict";
  4179. Object.defineProperty(exports, "__esModule", ({
  4180. value: true
  4181. }));
  4182. exports["default"] = void 0;
  4183. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  4184. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4185. function parse(uuid) {
  4186. if (!(0, _validate.default)(uuid)) {
  4187. throw TypeError('Invalid UUID');
  4188. }
  4189. let v;
  4190. const arr = new Uint8Array(16); // Parse ########-....-....-....-............
  4191. arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
  4192. arr[1] = v >>> 16 & 0xff;
  4193. arr[2] = v >>> 8 & 0xff;
  4194. arr[3] = v & 0xff; // Parse ........-####-....-....-............
  4195. arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
  4196. arr[5] = v & 0xff; // Parse ........-....-####-....-............
  4197. arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
  4198. arr[7] = v & 0xff; // Parse ........-....-....-####-............
  4199. arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
  4200. arr[9] = v & 0xff; // Parse ........-....-....-....-############
  4201. // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
  4202. arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
  4203. arr[11] = v / 0x100000000 & 0xff;
  4204. arr[12] = v >>> 24 & 0xff;
  4205. arr[13] = v >>> 16 & 0xff;
  4206. arr[14] = v >>> 8 & 0xff;
  4207. arr[15] = v & 0xff;
  4208. return arr;
  4209. }
  4210. var _default = parse;
  4211. exports["default"] = _default;
  4212. /***/ }),
  4213. /***/ 6230:
  4214. /***/ ((__unused_webpack_module, exports) => {
  4215. "use strict";
  4216. Object.defineProperty(exports, "__esModule", ({
  4217. value: true
  4218. }));
  4219. exports["default"] = void 0;
  4220. 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;
  4221. exports["default"] = _default;
  4222. /***/ }),
  4223. /***/ 9784:
  4224. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4225. "use strict";
  4226. Object.defineProperty(exports, "__esModule", ({
  4227. value: true
  4228. }));
  4229. exports["default"] = rng;
  4230. var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
  4231. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4232. const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
  4233. let poolPtr = rnds8Pool.length;
  4234. function rng() {
  4235. if (poolPtr > rnds8Pool.length - 16) {
  4236. _crypto.default.randomFillSync(rnds8Pool);
  4237. poolPtr = 0;
  4238. }
  4239. return rnds8Pool.slice(poolPtr, poolPtr += 16);
  4240. }
  4241. /***/ }),
  4242. /***/ 8844:
  4243. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4244. "use strict";
  4245. Object.defineProperty(exports, "__esModule", ({
  4246. value: true
  4247. }));
  4248. exports["default"] = void 0;
  4249. var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
  4250. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4251. function sha1(bytes) {
  4252. if (Array.isArray(bytes)) {
  4253. bytes = Buffer.from(bytes);
  4254. } else if (typeof bytes === 'string') {
  4255. bytes = Buffer.from(bytes, 'utf8');
  4256. }
  4257. return _crypto.default.createHash('sha1').update(bytes).digest();
  4258. }
  4259. var _default = sha1;
  4260. exports["default"] = _default;
  4261. /***/ }),
  4262. /***/ 1458:
  4263. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4264. "use strict";
  4265. Object.defineProperty(exports, "__esModule", ({
  4266. value: true
  4267. }));
  4268. exports["default"] = void 0;
  4269. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  4270. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4271. /**
  4272. * Convert array of 16 byte values to UUID string format of the form:
  4273. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  4274. */
  4275. const byteToHex = [];
  4276. for (let i = 0; i < 256; ++i) {
  4277. byteToHex.push((i + 0x100).toString(16).substr(1));
  4278. }
  4279. function stringify(arr, offset = 0) {
  4280. // Note: Be careful editing this code! It's been tuned for performance
  4281. // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
  4282. 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
  4283. // of the following:
  4284. // - One or more input array values don't map to a hex octet (leading to
  4285. // "undefined" in the uuid)
  4286. // - Invalid input values for the RFC `version` or `variant` fields
  4287. if (!(0, _validate.default)(uuid)) {
  4288. throw TypeError('Stringified UUID is invalid');
  4289. }
  4290. return uuid;
  4291. }
  4292. var _default = stringify;
  4293. exports["default"] = _default;
  4294. /***/ }),
  4295. /***/ 1595:
  4296. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4297. "use strict";
  4298. Object.defineProperty(exports, "__esModule", ({
  4299. value: true
  4300. }));
  4301. exports["default"] = void 0;
  4302. var _rng = _interopRequireDefault(__nccwpck_require__(9784));
  4303. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  4304. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4305. // **`v1()` - Generate time-based UUID**
  4306. //
  4307. // Inspired by https://github.com/LiosK/UUID.js
  4308. // and http://docs.python.org/library/uuid.html
  4309. let _nodeId;
  4310. let _clockseq; // Previous uuid creation time
  4311. let _lastMSecs = 0;
  4312. let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
  4313. function v1(options, buf, offset) {
  4314. let i = buf && offset || 0;
  4315. const b = buf || new Array(16);
  4316. options = options || {};
  4317. let node = options.node || _nodeId;
  4318. let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
  4319. // specified. We do this lazily to minimize issues related to insufficient
  4320. // system entropy. See #189
  4321. if (node == null || clockseq == null) {
  4322. const seedBytes = options.random || (options.rng || _rng.default)();
  4323. if (node == null) {
  4324. // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
  4325. node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
  4326. }
  4327. if (clockseq == null) {
  4328. // Per 4.2.2, randomize (14 bit) clockseq
  4329. clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
  4330. }
  4331. } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
  4332. // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
  4333. // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
  4334. // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
  4335. let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
  4336. // cycle to simulate higher resolution clock
  4337. let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
  4338. const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
  4339. if (dt < 0 && options.clockseq === undefined) {
  4340. clockseq = clockseq + 1 & 0x3fff;
  4341. } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
  4342. // time interval
  4343. if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
  4344. nsecs = 0;
  4345. } // Per 4.2.1.2 Throw error if too many uuids are requested
  4346. if (nsecs >= 10000) {
  4347. throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
  4348. }
  4349. _lastMSecs = msecs;
  4350. _lastNSecs = nsecs;
  4351. _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
  4352. msecs += 12219292800000; // `time_low`
  4353. const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
  4354. b[i++] = tl >>> 24 & 0xff;
  4355. b[i++] = tl >>> 16 & 0xff;
  4356. b[i++] = tl >>> 8 & 0xff;
  4357. b[i++] = tl & 0xff; // `time_mid`
  4358. const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
  4359. b[i++] = tmh >>> 8 & 0xff;
  4360. b[i++] = tmh & 0xff; // `time_high_and_version`
  4361. b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
  4362. b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
  4363. b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
  4364. b[i++] = clockseq & 0xff; // `node`
  4365. for (let n = 0; n < 6; ++n) {
  4366. b[i + n] = node[n];
  4367. }
  4368. return buf || (0, _stringify.default)(b);
  4369. }
  4370. var _default = v1;
  4371. exports["default"] = _default;
  4372. /***/ }),
  4373. /***/ 6993:
  4374. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4375. "use strict";
  4376. Object.defineProperty(exports, "__esModule", ({
  4377. value: true
  4378. }));
  4379. exports["default"] = void 0;
  4380. var _v = _interopRequireDefault(__nccwpck_require__(5920));
  4381. var _md = _interopRequireDefault(__nccwpck_require__(5842));
  4382. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4383. const v3 = (0, _v.default)('v3', 0x30, _md.default);
  4384. var _default = v3;
  4385. exports["default"] = _default;
  4386. /***/ }),
  4387. /***/ 5920:
  4388. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4389. "use strict";
  4390. Object.defineProperty(exports, "__esModule", ({
  4391. value: true
  4392. }));
  4393. exports["default"] = _default;
  4394. exports.URL = exports.DNS = void 0;
  4395. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  4396. var _parse = _interopRequireDefault(__nccwpck_require__(6385));
  4397. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4398. function stringToBytes(str) {
  4399. str = unescape(encodeURIComponent(str)); // UTF8 escape
  4400. const bytes = [];
  4401. for (let i = 0; i < str.length; ++i) {
  4402. bytes.push(str.charCodeAt(i));
  4403. }
  4404. return bytes;
  4405. }
  4406. const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
  4407. exports.DNS = DNS;
  4408. const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
  4409. exports.URL = URL;
  4410. function _default(name, version, hashfunc) {
  4411. function generateUUID(value, namespace, buf, offset) {
  4412. if (typeof value === 'string') {
  4413. value = stringToBytes(value);
  4414. }
  4415. if (typeof namespace === 'string') {
  4416. namespace = (0, _parse.default)(namespace);
  4417. }
  4418. if (namespace.length !== 16) {
  4419. throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
  4420. } // Compute hash of namespace and value, Per 4.3
  4421. // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
  4422. // hashfunc([...namespace, ... value])`
  4423. let bytes = new Uint8Array(16 + value.length);
  4424. bytes.set(namespace);
  4425. bytes.set(value, namespace.length);
  4426. bytes = hashfunc(bytes);
  4427. bytes[6] = bytes[6] & 0x0f | version;
  4428. bytes[8] = bytes[8] & 0x3f | 0x80;
  4429. if (buf) {
  4430. offset = offset || 0;
  4431. for (let i = 0; i < 16; ++i) {
  4432. buf[offset + i] = bytes[i];
  4433. }
  4434. return buf;
  4435. }
  4436. return (0, _stringify.default)(bytes);
  4437. } // Function#name is not settable on some platforms (#270)
  4438. try {
  4439. generateUUID.name = name; // eslint-disable-next-line no-empty
  4440. } catch (err) {} // For CommonJS default export support
  4441. generateUUID.DNS = DNS;
  4442. generateUUID.URL = URL;
  4443. return generateUUID;
  4444. }
  4445. /***/ }),
  4446. /***/ 1472:
  4447. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4448. "use strict";
  4449. Object.defineProperty(exports, "__esModule", ({
  4450. value: true
  4451. }));
  4452. exports["default"] = void 0;
  4453. var _rng = _interopRequireDefault(__nccwpck_require__(9784));
  4454. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  4455. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4456. function v4(options, buf, offset) {
  4457. options = options || {};
  4458. const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  4459. rnds[6] = rnds[6] & 0x0f | 0x40;
  4460. rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
  4461. if (buf) {
  4462. offset = offset || 0;
  4463. for (let i = 0; i < 16; ++i) {
  4464. buf[offset + i] = rnds[i];
  4465. }
  4466. return buf;
  4467. }
  4468. return (0, _stringify.default)(rnds);
  4469. }
  4470. var _default = v4;
  4471. exports["default"] = _default;
  4472. /***/ }),
  4473. /***/ 6217:
  4474. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4475. "use strict";
  4476. Object.defineProperty(exports, "__esModule", ({
  4477. value: true
  4478. }));
  4479. exports["default"] = void 0;
  4480. var _v = _interopRequireDefault(__nccwpck_require__(5920));
  4481. var _sha = _interopRequireDefault(__nccwpck_require__(8844));
  4482. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4483. const v5 = (0, _v.default)('v5', 0x50, _sha.default);
  4484. var _default = v5;
  4485. exports["default"] = _default;
  4486. /***/ }),
  4487. /***/ 2609:
  4488. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4489. "use strict";
  4490. Object.defineProperty(exports, "__esModule", ({
  4491. value: true
  4492. }));
  4493. exports["default"] = void 0;
  4494. var _regex = _interopRequireDefault(__nccwpck_require__(6230));
  4495. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4496. function validate(uuid) {
  4497. return typeof uuid === 'string' && _regex.default.test(uuid);
  4498. }
  4499. var _default = validate;
  4500. exports["default"] = _default;
  4501. /***/ }),
  4502. /***/ 427:
  4503. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4504. "use strict";
  4505. Object.defineProperty(exports, "__esModule", ({
  4506. value: true
  4507. }));
  4508. exports["default"] = void 0;
  4509. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  4510. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4511. function version(uuid) {
  4512. if (!(0, _validate.default)(uuid)) {
  4513. throw TypeError('Invalid UUID');
  4514. }
  4515. return parseInt(uuid.substr(14, 1), 16);
  4516. }
  4517. var _default = version;
  4518. exports["default"] = _default;
  4519. /***/ }),
  4520. /***/ 1514:
  4521. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  4522. "use strict";
  4523. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  4524. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  4525. return new (P || (P = Promise))(function (resolve, reject) {
  4526. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  4527. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  4528. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  4529. step((generator = generator.apply(thisArg, _arguments || [])).next());
  4530. });
  4531. };
  4532. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4533. const tr = __nccwpck_require__(8159);
  4534. /**
  4535. * Exec a command.
  4536. * Output will be streamed to the live console.
  4537. * Returns promise with return code
  4538. *
  4539. * @param commandLine command to execute (can include additional args). Must be correctly escaped.
  4540. * @param args optional arguments for tool. Escaping is handled by the lib.
  4541. * @param options optional exec options. See ExecOptions
  4542. * @returns Promise<number> exit code
  4543. */
  4544. function exec(commandLine, args, options) {
  4545. return __awaiter(this, void 0, void 0, function* () {
  4546. const commandArgs = tr.argStringToArray(commandLine);
  4547. if (commandArgs.length === 0) {
  4548. throw new Error(`Parameter 'commandLine' cannot be null or empty.`);
  4549. }
  4550. // Path to tool to execute should be first arg
  4551. const toolPath = commandArgs[0];
  4552. args = commandArgs.slice(1).concat(args || []);
  4553. const runner = new tr.ToolRunner(toolPath, args, options);
  4554. return runner.exec();
  4555. });
  4556. }
  4557. exports.exec = exec;
  4558. //# sourceMappingURL=exec.js.map
  4559. /***/ }),
  4560. /***/ 8159:
  4561. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  4562. "use strict";
  4563. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  4564. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  4565. return new (P || (P = Promise))(function (resolve, reject) {
  4566. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  4567. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  4568. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  4569. step((generator = generator.apply(thisArg, _arguments || [])).next());
  4570. });
  4571. };
  4572. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4573. const os = __nccwpck_require__(2037);
  4574. const events = __nccwpck_require__(2361);
  4575. const child = __nccwpck_require__(2081);
  4576. /* eslint-disable @typescript-eslint/unbound-method */
  4577. const IS_WINDOWS = process.platform === 'win32';
  4578. /*
  4579. * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.
  4580. */
  4581. class ToolRunner extends events.EventEmitter {
  4582. constructor(toolPath, args, options) {
  4583. super();
  4584. if (!toolPath) {
  4585. throw new Error("Parameter 'toolPath' cannot be null or empty.");
  4586. }
  4587. this.toolPath = toolPath;
  4588. this.args = args || [];
  4589. this.options = options || {};
  4590. }
  4591. _debug(message) {
  4592. if (this.options.listeners && this.options.listeners.debug) {
  4593. this.options.listeners.debug(message);
  4594. }
  4595. }
  4596. _getCommandString(options, noPrefix) {
  4597. const toolPath = this._getSpawnFileName();
  4598. const args = this._getSpawnArgs(options);
  4599. let cmd = noPrefix ? '' : '[command]'; // omit prefix when piped to a second tool
  4600. if (IS_WINDOWS) {
  4601. // Windows + cmd file
  4602. if (this._isCmdFile()) {
  4603. cmd += toolPath;
  4604. for (const a of args) {
  4605. cmd += ` ${a}`;
  4606. }
  4607. }
  4608. // Windows + verbatim
  4609. else if (options.windowsVerbatimArguments) {
  4610. cmd += `"${toolPath}"`;
  4611. for (const a of args) {
  4612. cmd += ` ${a}`;
  4613. }
  4614. }
  4615. // Windows (regular)
  4616. else {
  4617. cmd += this._windowsQuoteCmdArg(toolPath);
  4618. for (const a of args) {
  4619. cmd += ` ${this._windowsQuoteCmdArg(a)}`;
  4620. }
  4621. }
  4622. }
  4623. else {
  4624. // OSX/Linux - this can likely be improved with some form of quoting.
  4625. // creating processes on Unix is fundamentally different than Windows.
  4626. // on Unix, execvp() takes an arg array.
  4627. cmd += toolPath;
  4628. for (const a of args) {
  4629. cmd += ` ${a}`;
  4630. }
  4631. }
  4632. return cmd;
  4633. }
  4634. _processLineBuffer(data, strBuffer, onLine) {
  4635. try {
  4636. let s = strBuffer + data.toString();
  4637. let n = s.indexOf(os.EOL);
  4638. while (n > -1) {
  4639. const line = s.substring(0, n);
  4640. onLine(line);
  4641. // the rest of the string ...
  4642. s = s.substring(n + os.EOL.length);
  4643. n = s.indexOf(os.EOL);
  4644. }
  4645. strBuffer = s;
  4646. }
  4647. catch (err) {
  4648. // streaming lines to console is best effort. Don't fail a build.
  4649. this._debug(`error processing line. Failed with error ${err}`);
  4650. }
  4651. }
  4652. _getSpawnFileName() {
  4653. if (IS_WINDOWS) {
  4654. if (this._isCmdFile()) {
  4655. return process.env['COMSPEC'] || 'cmd.exe';
  4656. }
  4657. }
  4658. return this.toolPath;
  4659. }
  4660. _getSpawnArgs(options) {
  4661. if (IS_WINDOWS) {
  4662. if (this._isCmdFile()) {
  4663. let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;
  4664. for (const a of this.args) {
  4665. argline += ' ';
  4666. argline += options.windowsVerbatimArguments
  4667. ? a
  4668. : this._windowsQuoteCmdArg(a);
  4669. }
  4670. argline += '"';
  4671. return [argline];
  4672. }
  4673. }
  4674. return this.args;
  4675. }
  4676. _endsWith(str, end) {
  4677. return str.endsWith(end);
  4678. }
  4679. _isCmdFile() {
  4680. const upperToolPath = this.toolPath.toUpperCase();
  4681. return (this._endsWith(upperToolPath, '.CMD') ||
  4682. this._endsWith(upperToolPath, '.BAT'));
  4683. }
  4684. _windowsQuoteCmdArg(arg) {
  4685. // for .exe, apply the normal quoting rules that libuv applies
  4686. if (!this._isCmdFile()) {
  4687. return this._uvQuoteCmdArg(arg);
  4688. }
  4689. // otherwise apply quoting rules specific to the cmd.exe command line parser.
  4690. // the libuv rules are generic and are not designed specifically for cmd.exe
  4691. // command line parser.
  4692. //
  4693. // for a detailed description of the cmd.exe command line parser, refer to
  4694. // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912
  4695. // need quotes for empty arg
  4696. if (!arg) {
  4697. return '""';
  4698. }
  4699. // determine whether the arg needs to be quoted
  4700. const cmdSpecialChars = [
  4701. ' ',
  4702. '\t',
  4703. '&',
  4704. '(',
  4705. ')',
  4706. '[',
  4707. ']',
  4708. '{',
  4709. '}',
  4710. '^',
  4711. '=',
  4712. ';',
  4713. '!',
  4714. "'",
  4715. '+',
  4716. ',',
  4717. '`',
  4718. '~',
  4719. '|',
  4720. '<',
  4721. '>',
  4722. '"'
  4723. ];
  4724. let needsQuotes = false;
  4725. for (const char of arg) {
  4726. if (cmdSpecialChars.some(x => x === char)) {
  4727. needsQuotes = true;
  4728. break;
  4729. }
  4730. }
  4731. // short-circuit if quotes not needed
  4732. if (!needsQuotes) {
  4733. return arg;
  4734. }
  4735. // the following quoting rules are very similar to the rules that by libuv applies.
  4736. //
  4737. // 1) wrap the string in quotes
  4738. //
  4739. // 2) double-up quotes - i.e. " => ""
  4740. //
  4741. // this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately
  4742. // doesn't work well with a cmd.exe command line.
  4743. //
  4744. // note, replacing " with "" also works well if the arg is passed to a downstream .NET console app.
  4745. // for example, the command line:
  4746. // foo.exe "myarg:""my val"""
  4747. // is parsed by a .NET console app into an arg array:
  4748. // [ "myarg:\"my val\"" ]
  4749. // which is the same end result when applying libuv quoting rules. although the actual
  4750. // command line from libuv quoting rules would look like:
  4751. // foo.exe "myarg:\"my val\""
  4752. //
  4753. // 3) double-up slashes that precede a quote,
  4754. // e.g. hello \world => "hello \world"
  4755. // hello\"world => "hello\\""world"
  4756. // hello\\"world => "hello\\\\""world"
  4757. // hello world\ => "hello world\\"
  4758. //
  4759. // technically this is not required for a cmd.exe command line, or the batch argument parser.
  4760. // the reasons for including this as a .cmd quoting rule are:
  4761. //
  4762. // a) this is optimized for the scenario where the argument is passed from the .cmd file to an
  4763. // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.
  4764. //
  4765. // b) it's what we've been doing previously (by deferring to node default behavior) and we
  4766. // haven't heard any complaints about that aspect.
  4767. //
  4768. // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be
  4769. // escaped when used on the command line directly - even though within a .cmd file % can be escaped
  4770. // by using %%.
  4771. //
  4772. // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts
  4773. // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.
  4774. //
  4775. // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would
  4776. // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the
  4777. // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args
  4778. // to an external program.
  4779. //
  4780. // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.
  4781. // % can be escaped within a .cmd file.
  4782. let reverse = '"';
  4783. let quoteHit = true;
  4784. for (let i = arg.length; i > 0; i--) {
  4785. // walk the string in reverse
  4786. reverse += arg[i - 1];
  4787. if (quoteHit && arg[i - 1] === '\\') {
  4788. reverse += '\\'; // double the slash
  4789. }
  4790. else if (arg[i - 1] === '"') {
  4791. quoteHit = true;
  4792. reverse += '"'; // double the quote
  4793. }
  4794. else {
  4795. quoteHit = false;
  4796. }
  4797. }
  4798. reverse += '"';
  4799. return reverse
  4800. .split('')
  4801. .reverse()
  4802. .join('');
  4803. }
  4804. _uvQuoteCmdArg(arg) {
  4805. // Tool runner wraps child_process.spawn() and needs to apply the same quoting as
  4806. // Node in certain cases where the undocumented spawn option windowsVerbatimArguments
  4807. // is used.
  4808. //
  4809. // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,
  4810. // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),
  4811. // pasting copyright notice from Node within this function:
  4812. //
  4813. // Copyright Joyent, Inc. and other Node contributors. All rights reserved.
  4814. //
  4815. // Permission is hereby granted, free of charge, to any person obtaining a copy
  4816. // of this software and associated documentation files (the "Software"), to
  4817. // deal in the Software without restriction, including without limitation the
  4818. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  4819. // sell copies of the Software, and to permit persons to whom the Software is
  4820. // furnished to do so, subject to the following conditions:
  4821. //
  4822. // The above copyright notice and this permission notice shall be included in
  4823. // all copies or substantial portions of the Software.
  4824. //
  4825. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  4826. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  4827. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  4828. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  4829. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  4830. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  4831. // IN THE SOFTWARE.
  4832. if (!arg) {
  4833. // Need double quotation for empty argument
  4834. return '""';
  4835. }
  4836. if (!arg.includes(' ') && !arg.includes('\t') && !arg.includes('"')) {
  4837. // No quotation needed
  4838. return arg;
  4839. }
  4840. if (!arg.includes('"') && !arg.includes('\\')) {
  4841. // No embedded double quotes or backslashes, so I can just wrap
  4842. // quote marks around the whole thing.
  4843. return `"${arg}"`;
  4844. }
  4845. // Expected input/output:
  4846. // input : hello"world
  4847. // output: "hello\"world"
  4848. // input : hello""world
  4849. // output: "hello\"\"world"
  4850. // input : hello\world
  4851. // output: hello\world
  4852. // input : hello\\world
  4853. // output: hello\\world
  4854. // input : hello\"world
  4855. // output: "hello\\\"world"
  4856. // input : hello\\"world
  4857. // output: "hello\\\\\"world"
  4858. // input : hello world\
  4859. // output: "hello world\\" - note the comment in libuv actually reads "hello world\"
  4860. // but it appears the comment is wrong, it should be "hello world\\"
  4861. let reverse = '"';
  4862. let quoteHit = true;
  4863. for (let i = arg.length; i > 0; i--) {
  4864. // walk the string in reverse
  4865. reverse += arg[i - 1];
  4866. if (quoteHit && arg[i - 1] === '\\') {
  4867. reverse += '\\';
  4868. }
  4869. else if (arg[i - 1] === '"') {
  4870. quoteHit = true;
  4871. reverse += '\\';
  4872. }
  4873. else {
  4874. quoteHit = false;
  4875. }
  4876. }
  4877. reverse += '"';
  4878. return reverse
  4879. .split('')
  4880. .reverse()
  4881. .join('');
  4882. }
  4883. _cloneExecOptions(options) {
  4884. options = options || {};
  4885. const result = {
  4886. cwd: options.cwd || process.cwd(),
  4887. env: options.env || process.env,
  4888. silent: options.silent || false,
  4889. windowsVerbatimArguments: options.windowsVerbatimArguments || false,
  4890. failOnStdErr: options.failOnStdErr || false,
  4891. ignoreReturnCode: options.ignoreReturnCode || false,
  4892. delay: options.delay || 10000
  4893. };
  4894. result.outStream = options.outStream || process.stdout;
  4895. result.errStream = options.errStream || process.stderr;
  4896. return result;
  4897. }
  4898. _getSpawnOptions(options, toolPath) {
  4899. options = options || {};
  4900. const result = {};
  4901. result.cwd = options.cwd;
  4902. result.env = options.env;
  4903. result['windowsVerbatimArguments'] =
  4904. options.windowsVerbatimArguments || this._isCmdFile();
  4905. if (options.windowsVerbatimArguments) {
  4906. result.argv0 = `"${toolPath}"`;
  4907. }
  4908. return result;
  4909. }
  4910. /**
  4911. * Exec a tool.
  4912. * Output will be streamed to the live console.
  4913. * Returns promise with return code
  4914. *
  4915. * @param tool path to tool to exec
  4916. * @param options optional exec options. See ExecOptions
  4917. * @returns number
  4918. */
  4919. exec() {
  4920. return __awaiter(this, void 0, void 0, function* () {
  4921. return new Promise((resolve, reject) => {
  4922. this._debug(`exec tool: ${this.toolPath}`);
  4923. this._debug('arguments:');
  4924. for (const arg of this.args) {
  4925. this._debug(` ${arg}`);
  4926. }
  4927. const optionsNonNull = this._cloneExecOptions(this.options);
  4928. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  4929. optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os.EOL);
  4930. }
  4931. const state = new ExecState(optionsNonNull, this.toolPath);
  4932. state.on('debug', (message) => {
  4933. this._debug(message);
  4934. });
  4935. const fileName = this._getSpawnFileName();
  4936. const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));
  4937. const stdbuffer = '';
  4938. if (cp.stdout) {
  4939. cp.stdout.on('data', (data) => {
  4940. if (this.options.listeners && this.options.listeners.stdout) {
  4941. this.options.listeners.stdout(data);
  4942. }
  4943. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  4944. optionsNonNull.outStream.write(data);
  4945. }
  4946. this._processLineBuffer(data, stdbuffer, (line) => {
  4947. if (this.options.listeners && this.options.listeners.stdline) {
  4948. this.options.listeners.stdline(line);
  4949. }
  4950. });
  4951. });
  4952. }
  4953. const errbuffer = '';
  4954. if (cp.stderr) {
  4955. cp.stderr.on('data', (data) => {
  4956. state.processStderr = true;
  4957. if (this.options.listeners && this.options.listeners.stderr) {
  4958. this.options.listeners.stderr(data);
  4959. }
  4960. if (!optionsNonNull.silent &&
  4961. optionsNonNull.errStream &&
  4962. optionsNonNull.outStream) {
  4963. const s = optionsNonNull.failOnStdErr
  4964. ? optionsNonNull.errStream
  4965. : optionsNonNull.outStream;
  4966. s.write(data);
  4967. }
  4968. this._processLineBuffer(data, errbuffer, (line) => {
  4969. if (this.options.listeners && this.options.listeners.errline) {
  4970. this.options.listeners.errline(line);
  4971. }
  4972. });
  4973. });
  4974. }
  4975. cp.on('error', (err) => {
  4976. state.processError = err.message;
  4977. state.processExited = true;
  4978. state.processClosed = true;
  4979. state.CheckComplete();
  4980. });
  4981. cp.on('exit', (code) => {
  4982. state.processExitCode = code;
  4983. state.processExited = true;
  4984. this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);
  4985. state.CheckComplete();
  4986. });
  4987. cp.on('close', (code) => {
  4988. state.processExitCode = code;
  4989. state.processExited = true;
  4990. state.processClosed = true;
  4991. this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);
  4992. state.CheckComplete();
  4993. });
  4994. state.on('done', (error, exitCode) => {
  4995. if (stdbuffer.length > 0) {
  4996. this.emit('stdline', stdbuffer);
  4997. }
  4998. if (errbuffer.length > 0) {
  4999. this.emit('errline', errbuffer);
  5000. }
  5001. cp.removeAllListeners();
  5002. if (error) {
  5003. reject(error);
  5004. }
  5005. else {
  5006. resolve(exitCode);
  5007. }
  5008. });
  5009. });
  5010. });
  5011. }
  5012. }
  5013. exports.ToolRunner = ToolRunner;
  5014. /**
  5015. * Convert an arg string to an array of args. Handles escaping
  5016. *
  5017. * @param argString string of arguments
  5018. * @returns string[] array of arguments
  5019. */
  5020. function argStringToArray(argString) {
  5021. const args = [];
  5022. let inQuotes = false;
  5023. let escaped = false;
  5024. let arg = '';
  5025. function append(c) {
  5026. // we only escape double quotes.
  5027. if (escaped && c !== '"') {
  5028. arg += '\\';
  5029. }
  5030. arg += c;
  5031. escaped = false;
  5032. }
  5033. for (let i = 0; i < argString.length; i++) {
  5034. const c = argString.charAt(i);
  5035. if (c === '"') {
  5036. if (!escaped) {
  5037. inQuotes = !inQuotes;
  5038. }
  5039. else {
  5040. append(c);
  5041. }
  5042. continue;
  5043. }
  5044. if (c === '\\' && escaped) {
  5045. append(c);
  5046. continue;
  5047. }
  5048. if (c === '\\' && inQuotes) {
  5049. escaped = true;
  5050. continue;
  5051. }
  5052. if (c === ' ' && !inQuotes) {
  5053. if (arg.length > 0) {
  5054. args.push(arg);
  5055. arg = '';
  5056. }
  5057. continue;
  5058. }
  5059. append(c);
  5060. }
  5061. if (arg.length > 0) {
  5062. args.push(arg.trim());
  5063. }
  5064. return args;
  5065. }
  5066. exports.argStringToArray = argStringToArray;
  5067. class ExecState extends events.EventEmitter {
  5068. constructor(options, toolPath) {
  5069. super();
  5070. this.processClosed = false; // tracks whether the process has exited and stdio is closed
  5071. this.processError = '';
  5072. this.processExitCode = 0;
  5073. this.processExited = false; // tracks whether the process has exited
  5074. this.processStderr = false; // tracks whether stderr was written to
  5075. this.delay = 10000; // 10 seconds
  5076. this.done = false;
  5077. this.timeout = null;
  5078. if (!toolPath) {
  5079. throw new Error('toolPath must not be empty');
  5080. }
  5081. this.options = options;
  5082. this.toolPath = toolPath;
  5083. if (options.delay) {
  5084. this.delay = options.delay;
  5085. }
  5086. }
  5087. CheckComplete() {
  5088. if (this.done) {
  5089. return;
  5090. }
  5091. if (this.processClosed) {
  5092. this._setResult();
  5093. }
  5094. else if (this.processExited) {
  5095. this.timeout = setTimeout(ExecState.HandleTimeout, this.delay, this);
  5096. }
  5097. }
  5098. _debug(message) {
  5099. this.emit('debug', message);
  5100. }
  5101. _setResult() {
  5102. // determine whether there is an error
  5103. let error;
  5104. if (this.processExited) {
  5105. if (this.processError) {
  5106. 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}`);
  5107. }
  5108. else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) {
  5109. error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
  5110. }
  5111. else if (this.processStderr && this.options.failOnStdErr) {
  5112. error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);
  5113. }
  5114. }
  5115. // clear the timeout
  5116. if (this.timeout) {
  5117. clearTimeout(this.timeout);
  5118. this.timeout = null;
  5119. }
  5120. this.done = true;
  5121. this.emit('done', error, this.processExitCode);
  5122. }
  5123. static HandleTimeout(state) {
  5124. if (state.done) {
  5125. return;
  5126. }
  5127. if (!state.processClosed && state.processExited) {
  5128. const message = `The STDIO streams did not close within ${state.delay /
  5129. 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.`;
  5130. state._debug(message);
  5131. }
  5132. state._setResult();
  5133. }
  5134. }
  5135. //# sourceMappingURL=toolrunner.js.map
  5136. /***/ }),
  5137. /***/ 4087:
  5138. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  5139. "use strict";
  5140. Object.defineProperty(exports, "__esModule", ({ value: true }));
  5141. const fs_1 = __nccwpck_require__(7147);
  5142. const os_1 = __nccwpck_require__(2037);
  5143. class Context {
  5144. /**
  5145. * Hydrate the context from the environment
  5146. */
  5147. constructor() {
  5148. this.payload = {};
  5149. if (process.env.GITHUB_EVENT_PATH) {
  5150. if (fs_1.existsSync(process.env.GITHUB_EVENT_PATH)) {
  5151. this.payload = JSON.parse(fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' }));
  5152. }
  5153. else {
  5154. const path = process.env.GITHUB_EVENT_PATH;
  5155. process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`);
  5156. }
  5157. }
  5158. this.eventName = process.env.GITHUB_EVENT_NAME;
  5159. this.sha = process.env.GITHUB_SHA;
  5160. this.ref = process.env.GITHUB_REF;
  5161. this.workflow = process.env.GITHUB_WORKFLOW;
  5162. this.action = process.env.GITHUB_ACTION;
  5163. this.actor = process.env.GITHUB_ACTOR;
  5164. }
  5165. get issue() {
  5166. const payload = this.payload;
  5167. return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number });
  5168. }
  5169. get repo() {
  5170. if (process.env.GITHUB_REPOSITORY) {
  5171. const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
  5172. return { owner, repo };
  5173. }
  5174. if (this.payload.repository) {
  5175. return {
  5176. owner: this.payload.repository.owner.login,
  5177. repo: this.payload.repository.name
  5178. };
  5179. }
  5180. throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'");
  5181. }
  5182. }
  5183. exports.Context = Context;
  5184. //# sourceMappingURL=context.js.map
  5185. /***/ }),
  5186. /***/ 5438:
  5187. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  5188. "use strict";
  5189. var __importStar = (this && this.__importStar) || function (mod) {
  5190. if (mod && mod.__esModule) return mod;
  5191. var result = {};
  5192. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  5193. result["default"] = mod;
  5194. return result;
  5195. };
  5196. Object.defineProperty(exports, "__esModule", ({ value: true }));
  5197. // Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts
  5198. const graphql_1 = __nccwpck_require__(8467);
  5199. const rest_1 = __nccwpck_require__(9351);
  5200. const Context = __importStar(__nccwpck_require__(4087));
  5201. const httpClient = __importStar(__nccwpck_require__(9925));
  5202. // We need this in order to extend Octokit
  5203. rest_1.Octokit.prototype = new rest_1.Octokit();
  5204. exports.context = new Context.Context();
  5205. class GitHub extends rest_1.Octokit {
  5206. constructor(token, opts) {
  5207. super(GitHub.getOctokitOptions(GitHub.disambiguate(token, opts)));
  5208. this.graphql = GitHub.getGraphQL(GitHub.disambiguate(token, opts));
  5209. }
  5210. /**
  5211. * Disambiguates the constructor overload parameters
  5212. */
  5213. static disambiguate(token, opts) {
  5214. return [
  5215. typeof token === 'string' ? token : '',
  5216. typeof token === 'object' ? token : opts || {}
  5217. ];
  5218. }
  5219. static getOctokitOptions(args) {
  5220. const token = args[0];
  5221. const options = Object.assign({}, args[1]); // Shallow clone - don't mutate the object provided by the caller
  5222. // Base URL - GHES or Dotcom
  5223. options.baseUrl = options.baseUrl || this.getApiBaseUrl();
  5224. // Auth
  5225. const auth = GitHub.getAuthString(token, options);
  5226. if (auth) {
  5227. options.auth = auth;
  5228. }
  5229. // Proxy
  5230. const agent = GitHub.getProxyAgent(options.baseUrl, options);
  5231. if (agent) {
  5232. // Shallow clone - don't mutate the object provided by the caller
  5233. options.request = options.request ? Object.assign({}, options.request) : {};
  5234. // Set the agent
  5235. options.request.agent = agent;
  5236. }
  5237. return options;
  5238. }
  5239. static getGraphQL(args) {
  5240. const defaults = {};
  5241. defaults.baseUrl = this.getGraphQLBaseUrl();
  5242. const token = args[0];
  5243. const options = args[1];
  5244. // Authorization
  5245. const auth = this.getAuthString(token, options);
  5246. if (auth) {
  5247. defaults.headers = {
  5248. authorization: auth
  5249. };
  5250. }
  5251. // Proxy
  5252. const agent = GitHub.getProxyAgent(defaults.baseUrl, options);
  5253. if (agent) {
  5254. defaults.request = { agent };
  5255. }
  5256. return graphql_1.graphql.defaults(defaults);
  5257. }
  5258. static getAuthString(token, options) {
  5259. // Validate args
  5260. if (!token && !options.auth) {
  5261. throw new Error('Parameter token or opts.auth is required');
  5262. }
  5263. else if (token && options.auth) {
  5264. throw new Error('Parameters token and opts.auth may not both be specified');
  5265. }
  5266. return typeof options.auth === 'string' ? options.auth : `token ${token}`;
  5267. }
  5268. static getProxyAgent(destinationUrl, options) {
  5269. var _a;
  5270. if (!((_a = options.request) === null || _a === void 0 ? void 0 : _a.agent)) {
  5271. if (httpClient.getProxyUrl(destinationUrl)) {
  5272. const hc = new httpClient.HttpClient();
  5273. return hc.getAgent(destinationUrl);
  5274. }
  5275. }
  5276. return undefined;
  5277. }
  5278. static getApiBaseUrl() {
  5279. return process.env['GITHUB_API_URL'] || 'https://api.github.com';
  5280. }
  5281. static getGraphQLBaseUrl() {
  5282. let url = process.env['GITHUB_GRAPHQL_URL'] || 'https://api.github.com/graphql';
  5283. // Shouldn't be a trailing slash, but remove if so
  5284. if (url.endsWith('/')) {
  5285. url = url.substr(0, url.length - 1);
  5286. }
  5287. // Remove trailing "/graphql"
  5288. if (url.toUpperCase().endsWith('/GRAPHQL')) {
  5289. url = url.substr(0, url.length - '/graphql'.length);
  5290. }
  5291. return url;
  5292. }
  5293. }
  5294. exports.GitHub = GitHub;
  5295. //# sourceMappingURL=github.js.map
  5296. /***/ }),
  5297. /***/ 9925:
  5298. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  5299. "use strict";
  5300. Object.defineProperty(exports, "__esModule", ({ value: true }));
  5301. const url = __nccwpck_require__(7310);
  5302. const http = __nccwpck_require__(3685);
  5303. const https = __nccwpck_require__(5687);
  5304. const pm = __nccwpck_require__(6443);
  5305. let tunnel;
  5306. var HttpCodes;
  5307. (function (HttpCodes) {
  5308. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  5309. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  5310. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  5311. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  5312. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  5313. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  5314. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  5315. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  5316. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  5317. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  5318. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  5319. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  5320. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  5321. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  5322. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  5323. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  5324. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  5325. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  5326. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  5327. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  5328. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  5329. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  5330. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  5331. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  5332. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  5333. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  5334. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  5335. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  5336. var Headers;
  5337. (function (Headers) {
  5338. Headers["Accept"] = "accept";
  5339. Headers["ContentType"] = "content-type";
  5340. })(Headers = exports.Headers || (exports.Headers = {}));
  5341. var MediaTypes;
  5342. (function (MediaTypes) {
  5343. MediaTypes["ApplicationJson"] = "application/json";
  5344. })(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
  5345. /**
  5346. * Returns the proxy URL, depending upon the supplied url and proxy environment variables.
  5347. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  5348. */
  5349. function getProxyUrl(serverUrl) {
  5350. let proxyUrl = pm.getProxyUrl(url.parse(serverUrl));
  5351. return proxyUrl ? proxyUrl.href : '';
  5352. }
  5353. exports.getProxyUrl = getProxyUrl;
  5354. const HttpRedirectCodes = [
  5355. HttpCodes.MovedPermanently,
  5356. HttpCodes.ResourceMoved,
  5357. HttpCodes.SeeOther,
  5358. HttpCodes.TemporaryRedirect,
  5359. HttpCodes.PermanentRedirect
  5360. ];
  5361. const HttpResponseRetryCodes = [
  5362. HttpCodes.BadGateway,
  5363. HttpCodes.ServiceUnavailable,
  5364. HttpCodes.GatewayTimeout
  5365. ];
  5366. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  5367. const ExponentialBackoffCeiling = 10;
  5368. const ExponentialBackoffTimeSlice = 5;
  5369. class HttpClientResponse {
  5370. constructor(message) {
  5371. this.message = message;
  5372. }
  5373. readBody() {
  5374. return new Promise(async (resolve, reject) => {
  5375. let output = Buffer.alloc(0);
  5376. this.message.on('data', (chunk) => {
  5377. output = Buffer.concat([output, chunk]);
  5378. });
  5379. this.message.on('end', () => {
  5380. resolve(output.toString());
  5381. });
  5382. });
  5383. }
  5384. }
  5385. exports.HttpClientResponse = HttpClientResponse;
  5386. function isHttps(requestUrl) {
  5387. let parsedUrl = url.parse(requestUrl);
  5388. return parsedUrl.protocol === 'https:';
  5389. }
  5390. exports.isHttps = isHttps;
  5391. class HttpClient {
  5392. constructor(userAgent, handlers, requestOptions) {
  5393. this._ignoreSslError = false;
  5394. this._allowRedirects = true;
  5395. this._allowRedirectDowngrade = false;
  5396. this._maxRedirects = 50;
  5397. this._allowRetries = false;
  5398. this._maxRetries = 1;
  5399. this._keepAlive = false;
  5400. this._disposed = false;
  5401. this.userAgent = userAgent;
  5402. this.handlers = handlers || [];
  5403. this.requestOptions = requestOptions;
  5404. if (requestOptions) {
  5405. if (requestOptions.ignoreSslError != null) {
  5406. this._ignoreSslError = requestOptions.ignoreSslError;
  5407. }
  5408. this._socketTimeout = requestOptions.socketTimeout;
  5409. if (requestOptions.allowRedirects != null) {
  5410. this._allowRedirects = requestOptions.allowRedirects;
  5411. }
  5412. if (requestOptions.allowRedirectDowngrade != null) {
  5413. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  5414. }
  5415. if (requestOptions.maxRedirects != null) {
  5416. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  5417. }
  5418. if (requestOptions.keepAlive != null) {
  5419. this._keepAlive = requestOptions.keepAlive;
  5420. }
  5421. if (requestOptions.allowRetries != null) {
  5422. this._allowRetries = requestOptions.allowRetries;
  5423. }
  5424. if (requestOptions.maxRetries != null) {
  5425. this._maxRetries = requestOptions.maxRetries;
  5426. }
  5427. }
  5428. }
  5429. options(requestUrl, additionalHeaders) {
  5430. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  5431. }
  5432. get(requestUrl, additionalHeaders) {
  5433. return this.request('GET', requestUrl, null, additionalHeaders || {});
  5434. }
  5435. del(requestUrl, additionalHeaders) {
  5436. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  5437. }
  5438. post(requestUrl, data, additionalHeaders) {
  5439. return this.request('POST', requestUrl, data, additionalHeaders || {});
  5440. }
  5441. patch(requestUrl, data, additionalHeaders) {
  5442. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  5443. }
  5444. put(requestUrl, data, additionalHeaders) {
  5445. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  5446. }
  5447. head(requestUrl, additionalHeaders) {
  5448. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  5449. }
  5450. sendStream(verb, requestUrl, stream, additionalHeaders) {
  5451. return this.request(verb, requestUrl, stream, additionalHeaders);
  5452. }
  5453. /**
  5454. * Gets a typed object from an endpoint
  5455. * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
  5456. */
  5457. async getJson(requestUrl, additionalHeaders = {}) {
  5458. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5459. let res = await this.get(requestUrl, additionalHeaders);
  5460. return this._processResponse(res, this.requestOptions);
  5461. }
  5462. async postJson(requestUrl, obj, additionalHeaders = {}) {
  5463. let data = JSON.stringify(obj, null, 2);
  5464. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5465. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5466. let res = await this.post(requestUrl, data, additionalHeaders);
  5467. return this._processResponse(res, this.requestOptions);
  5468. }
  5469. async putJson(requestUrl, obj, additionalHeaders = {}) {
  5470. let data = JSON.stringify(obj, null, 2);
  5471. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5472. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5473. let res = await this.put(requestUrl, data, additionalHeaders);
  5474. return this._processResponse(res, this.requestOptions);
  5475. }
  5476. async patchJson(requestUrl, obj, additionalHeaders = {}) {
  5477. let data = JSON.stringify(obj, null, 2);
  5478. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5479. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5480. let res = await this.patch(requestUrl, data, additionalHeaders);
  5481. return this._processResponse(res, this.requestOptions);
  5482. }
  5483. /**
  5484. * Makes a raw http request.
  5485. * All other methods such as get, post, patch, and request ultimately call this.
  5486. * Prefer get, del, post and patch
  5487. */
  5488. async request(verb, requestUrl, data, headers) {
  5489. if (this._disposed) {
  5490. throw new Error('Client has already been disposed.');
  5491. }
  5492. let parsedUrl = url.parse(requestUrl);
  5493. let info = this._prepareRequest(verb, parsedUrl, headers);
  5494. // Only perform retries on reads since writes may not be idempotent.
  5495. let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1
  5496. ? this._maxRetries + 1
  5497. : 1;
  5498. let numTries = 0;
  5499. let response;
  5500. while (numTries < maxTries) {
  5501. response = await this.requestRaw(info, data);
  5502. // Check if it's an authentication challenge
  5503. if (response &&
  5504. response.message &&
  5505. response.message.statusCode === HttpCodes.Unauthorized) {
  5506. let authenticationHandler;
  5507. for (let i = 0; i < this.handlers.length; i++) {
  5508. if (this.handlers[i].canHandleAuthentication(response)) {
  5509. authenticationHandler = this.handlers[i];
  5510. break;
  5511. }
  5512. }
  5513. if (authenticationHandler) {
  5514. return authenticationHandler.handleAuthentication(this, info, data);
  5515. }
  5516. else {
  5517. // We have received an unauthorized response but have no handlers to handle it.
  5518. // Let the response return to the caller.
  5519. return response;
  5520. }
  5521. }
  5522. let redirectsRemaining = this._maxRedirects;
  5523. while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 &&
  5524. this._allowRedirects &&
  5525. redirectsRemaining > 0) {
  5526. const redirectUrl = response.message.headers['location'];
  5527. if (!redirectUrl) {
  5528. // if there's no location to redirect to, we won't
  5529. break;
  5530. }
  5531. let parsedRedirectUrl = url.parse(redirectUrl);
  5532. if (parsedUrl.protocol == 'https:' &&
  5533. parsedUrl.protocol != parsedRedirectUrl.protocol &&
  5534. !this._allowRedirectDowngrade) {
  5535. 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.');
  5536. }
  5537. // we need to finish reading the response before reassigning response
  5538. // which will leak the open socket.
  5539. await response.readBody();
  5540. // strip authorization header if redirected to a different hostname
  5541. if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
  5542. for (let header in headers) {
  5543. // header names are case insensitive
  5544. if (header.toLowerCase() === 'authorization') {
  5545. delete headers[header];
  5546. }
  5547. }
  5548. }
  5549. // let's make the request with the new redirectUrl
  5550. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  5551. response = await this.requestRaw(info, data);
  5552. redirectsRemaining--;
  5553. }
  5554. if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
  5555. // If not a retry code, return immediately instead of retrying
  5556. return response;
  5557. }
  5558. numTries += 1;
  5559. if (numTries < maxTries) {
  5560. await response.readBody();
  5561. await this._performExponentialBackoff(numTries);
  5562. }
  5563. }
  5564. return response;
  5565. }
  5566. /**
  5567. * Needs to be called if keepAlive is set to true in request options.
  5568. */
  5569. dispose() {
  5570. if (this._agent) {
  5571. this._agent.destroy();
  5572. }
  5573. this._disposed = true;
  5574. }
  5575. /**
  5576. * Raw request.
  5577. * @param info
  5578. * @param data
  5579. */
  5580. requestRaw(info, data) {
  5581. return new Promise((resolve, reject) => {
  5582. let callbackForResult = function (err, res) {
  5583. if (err) {
  5584. reject(err);
  5585. }
  5586. resolve(res);
  5587. };
  5588. this.requestRawWithCallback(info, data, callbackForResult);
  5589. });
  5590. }
  5591. /**
  5592. * Raw request with callback.
  5593. * @param info
  5594. * @param data
  5595. * @param onResult
  5596. */
  5597. requestRawWithCallback(info, data, onResult) {
  5598. let socket;
  5599. if (typeof data === 'string') {
  5600. info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
  5601. }
  5602. let callbackCalled = false;
  5603. let handleResult = (err, res) => {
  5604. if (!callbackCalled) {
  5605. callbackCalled = true;
  5606. onResult(err, res);
  5607. }
  5608. };
  5609. let req = info.httpModule.request(info.options, (msg) => {
  5610. let res = new HttpClientResponse(msg);
  5611. handleResult(null, res);
  5612. });
  5613. req.on('socket', sock => {
  5614. socket = sock;
  5615. });
  5616. // If we ever get disconnected, we want the socket to timeout eventually
  5617. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  5618. if (socket) {
  5619. socket.end();
  5620. }
  5621. handleResult(new Error('Request timeout: ' + info.options.path), null);
  5622. });
  5623. req.on('error', function (err) {
  5624. // err has statusCode property
  5625. // res should have headers
  5626. handleResult(err, null);
  5627. });
  5628. if (data && typeof data === 'string') {
  5629. req.write(data, 'utf8');
  5630. }
  5631. if (data && typeof data !== 'string') {
  5632. data.on('close', function () {
  5633. req.end();
  5634. });
  5635. data.pipe(req);
  5636. }
  5637. else {
  5638. req.end();
  5639. }
  5640. }
  5641. /**
  5642. * Gets an http agent. This function is useful when you need an http agent that handles
  5643. * routing through a proxy server - depending upon the url and proxy environment variables.
  5644. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  5645. */
  5646. getAgent(serverUrl) {
  5647. let parsedUrl = url.parse(serverUrl);
  5648. return this._getAgent(parsedUrl);
  5649. }
  5650. _prepareRequest(method, requestUrl, headers) {
  5651. const info = {};
  5652. info.parsedUrl = requestUrl;
  5653. const usingSsl = info.parsedUrl.protocol === 'https:';
  5654. info.httpModule = usingSsl ? https : http;
  5655. const defaultPort = usingSsl ? 443 : 80;
  5656. info.options = {};
  5657. info.options.host = info.parsedUrl.hostname;
  5658. info.options.port = info.parsedUrl.port
  5659. ? parseInt(info.parsedUrl.port)
  5660. : defaultPort;
  5661. info.options.path =
  5662. (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  5663. info.options.method = method;
  5664. info.options.headers = this._mergeHeaders(headers);
  5665. if (this.userAgent != null) {
  5666. info.options.headers['user-agent'] = this.userAgent;
  5667. }
  5668. info.options.agent = this._getAgent(info.parsedUrl);
  5669. // gives handlers an opportunity to participate
  5670. if (this.handlers) {
  5671. this.handlers.forEach(handler => {
  5672. handler.prepareRequest(info.options);
  5673. });
  5674. }
  5675. return info;
  5676. }
  5677. _mergeHeaders(headers) {
  5678. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  5679. if (this.requestOptions && this.requestOptions.headers) {
  5680. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
  5681. }
  5682. return lowercaseKeys(headers || {});
  5683. }
  5684. _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
  5685. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  5686. let clientHeader;
  5687. if (this.requestOptions && this.requestOptions.headers) {
  5688. clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
  5689. }
  5690. return additionalHeaders[header] || clientHeader || _default;
  5691. }
  5692. _getAgent(parsedUrl) {
  5693. let agent;
  5694. let proxyUrl = pm.getProxyUrl(parsedUrl);
  5695. let useProxy = proxyUrl && proxyUrl.hostname;
  5696. if (this._keepAlive && useProxy) {
  5697. agent = this._proxyAgent;
  5698. }
  5699. if (this._keepAlive && !useProxy) {
  5700. agent = this._agent;
  5701. }
  5702. // if agent is already assigned use that agent.
  5703. if (!!agent) {
  5704. return agent;
  5705. }
  5706. const usingSsl = parsedUrl.protocol === 'https:';
  5707. let maxSockets = 100;
  5708. if (!!this.requestOptions) {
  5709. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  5710. }
  5711. if (useProxy) {
  5712. // If using proxy, need tunnel
  5713. if (!tunnel) {
  5714. tunnel = __nccwpck_require__(9153);
  5715. }
  5716. const agentOptions = {
  5717. maxSockets: maxSockets,
  5718. keepAlive: this._keepAlive,
  5719. proxy: {
  5720. proxyAuth: proxyUrl.auth,
  5721. host: proxyUrl.hostname,
  5722. port: proxyUrl.port
  5723. }
  5724. };
  5725. let tunnelAgent;
  5726. const overHttps = proxyUrl.protocol === 'https:';
  5727. if (usingSsl) {
  5728. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  5729. }
  5730. else {
  5731. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  5732. }
  5733. agent = tunnelAgent(agentOptions);
  5734. this._proxyAgent = agent;
  5735. }
  5736. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  5737. if (this._keepAlive && !agent) {
  5738. const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };
  5739. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  5740. this._agent = agent;
  5741. }
  5742. // if not using private agent and tunnel agent isn't setup then use global agent
  5743. if (!agent) {
  5744. agent = usingSsl ? https.globalAgent : http.globalAgent;
  5745. }
  5746. if (usingSsl && this._ignoreSslError) {
  5747. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  5748. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  5749. // we have to cast it to any and change it directly
  5750. agent.options = Object.assign(agent.options || {}, {
  5751. rejectUnauthorized: false
  5752. });
  5753. }
  5754. return agent;
  5755. }
  5756. _performExponentialBackoff(retryNumber) {
  5757. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  5758. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  5759. return new Promise(resolve => setTimeout(() => resolve(), ms));
  5760. }
  5761. static dateTimeDeserializer(key, value) {
  5762. if (typeof value === 'string') {
  5763. let a = new Date(value);
  5764. if (!isNaN(a.valueOf())) {
  5765. return a;
  5766. }
  5767. }
  5768. return value;
  5769. }
  5770. async _processResponse(res, options) {
  5771. return new Promise(async (resolve, reject) => {
  5772. const statusCode = res.message.statusCode;
  5773. const response = {
  5774. statusCode: statusCode,
  5775. result: null,
  5776. headers: {}
  5777. };
  5778. // not found leads to null obj returned
  5779. if (statusCode == HttpCodes.NotFound) {
  5780. resolve(response);
  5781. }
  5782. let obj;
  5783. let contents;
  5784. // get the result from the body
  5785. try {
  5786. contents = await res.readBody();
  5787. if (contents && contents.length > 0) {
  5788. if (options && options.deserializeDates) {
  5789. obj = JSON.parse(contents, HttpClient.dateTimeDeserializer);
  5790. }
  5791. else {
  5792. obj = JSON.parse(contents);
  5793. }
  5794. response.result = obj;
  5795. }
  5796. response.headers = res.message.headers;
  5797. }
  5798. catch (err) {
  5799. // Invalid resource (contents not json); leaving result obj null
  5800. }
  5801. // note that 3xx redirects are handled by the http layer.
  5802. if (statusCode > 299) {
  5803. let msg;
  5804. // if exception/error in body, attempt to get better error
  5805. if (obj && obj.message) {
  5806. msg = obj.message;
  5807. }
  5808. else if (contents && contents.length > 0) {
  5809. // it may be the case that the exception is in the body message as string
  5810. msg = contents;
  5811. }
  5812. else {
  5813. msg = 'Failed request: (' + statusCode + ')';
  5814. }
  5815. let err = new Error(msg);
  5816. // attach statusCode and body obj (if available) to the error object
  5817. err['statusCode'] = statusCode;
  5818. if (response.result) {
  5819. err['result'] = response.result;
  5820. }
  5821. reject(err);
  5822. }
  5823. else {
  5824. resolve(response);
  5825. }
  5826. });
  5827. }
  5828. }
  5829. exports.HttpClient = HttpClient;
  5830. /***/ }),
  5831. /***/ 9153:
  5832. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  5833. module.exports = __nccwpck_require__(1406);
  5834. /***/ }),
  5835. /***/ 1406:
  5836. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  5837. "use strict";
  5838. var net = __nccwpck_require__(1808);
  5839. var tls = __nccwpck_require__(4404);
  5840. var http = __nccwpck_require__(3685);
  5841. var https = __nccwpck_require__(5687);
  5842. var events = __nccwpck_require__(2361);
  5843. var assert = __nccwpck_require__(9491);
  5844. var util = __nccwpck_require__(3837);
  5845. exports.httpOverHttp = httpOverHttp;
  5846. exports.httpsOverHttp = httpsOverHttp;
  5847. exports.httpOverHttps = httpOverHttps;
  5848. exports.httpsOverHttps = httpsOverHttps;
  5849. function httpOverHttp(options) {
  5850. var agent = new TunnelingAgent(options);
  5851. agent.request = http.request;
  5852. return agent;
  5853. }
  5854. function httpsOverHttp(options) {
  5855. var agent = new TunnelingAgent(options);
  5856. agent.request = http.request;
  5857. agent.createSocket = createSecureSocket;
  5858. agent.defaultPort = 443;
  5859. return agent;
  5860. }
  5861. function httpOverHttps(options) {
  5862. var agent = new TunnelingAgent(options);
  5863. agent.request = https.request;
  5864. return agent;
  5865. }
  5866. function httpsOverHttps(options) {
  5867. var agent = new TunnelingAgent(options);
  5868. agent.request = https.request;
  5869. agent.createSocket = createSecureSocket;
  5870. agent.defaultPort = 443;
  5871. return agent;
  5872. }
  5873. function TunnelingAgent(options) {
  5874. var self = this;
  5875. self.options = options || {};
  5876. self.proxyOptions = self.options.proxy || {};
  5877. self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
  5878. self.requests = [];
  5879. self.sockets = [];
  5880. self.on('free', function onFree(socket, host, port, localAddress) {
  5881. var options = toOptions(host, port, localAddress);
  5882. for (var i = 0, len = self.requests.length; i < len; ++i) {
  5883. var pending = self.requests[i];
  5884. if (pending.host === options.host && pending.port === options.port) {
  5885. // Detect the request to connect same origin server,
  5886. // reuse the connection.
  5887. self.requests.splice(i, 1);
  5888. pending.request.onSocket(socket);
  5889. return;
  5890. }
  5891. }
  5892. socket.destroy();
  5893. self.removeSocket(socket);
  5894. });
  5895. }
  5896. util.inherits(TunnelingAgent, events.EventEmitter);
  5897. TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
  5898. var self = this;
  5899. var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
  5900. if (self.sockets.length >= this.maxSockets) {
  5901. // We are over limit so we'll add it to the queue.
  5902. self.requests.push(options);
  5903. return;
  5904. }
  5905. // If we are under maxSockets create a new one.
  5906. self.createSocket(options, function(socket) {
  5907. socket.on('free', onFree);
  5908. socket.on('close', onCloseOrRemove);
  5909. socket.on('agentRemove', onCloseOrRemove);
  5910. req.onSocket(socket);
  5911. function onFree() {
  5912. self.emit('free', socket, options);
  5913. }
  5914. function onCloseOrRemove(err) {
  5915. self.removeSocket(socket);
  5916. socket.removeListener('free', onFree);
  5917. socket.removeListener('close', onCloseOrRemove);
  5918. socket.removeListener('agentRemove', onCloseOrRemove);
  5919. }
  5920. });
  5921. };
  5922. TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
  5923. var self = this;
  5924. var placeholder = {};
  5925. self.sockets.push(placeholder);
  5926. var connectOptions = mergeOptions({}, self.proxyOptions, {
  5927. method: 'CONNECT',
  5928. path: options.host + ':' + options.port,
  5929. agent: false,
  5930. headers: {
  5931. host: options.host + ':' + options.port
  5932. }
  5933. });
  5934. if (options.localAddress) {
  5935. connectOptions.localAddress = options.localAddress;
  5936. }
  5937. if (connectOptions.proxyAuth) {
  5938. connectOptions.headers = connectOptions.headers || {};
  5939. connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
  5940. new Buffer(connectOptions.proxyAuth).toString('base64');
  5941. }
  5942. debug('making CONNECT request');
  5943. var connectReq = self.request(connectOptions);
  5944. connectReq.useChunkedEncodingByDefault = false; // for v0.6
  5945. connectReq.once('response', onResponse); // for v0.6
  5946. connectReq.once('upgrade', onUpgrade); // for v0.6
  5947. connectReq.once('connect', onConnect); // for v0.7 or later
  5948. connectReq.once('error', onError);
  5949. connectReq.end();
  5950. function onResponse(res) {
  5951. // Very hacky. This is necessary to avoid http-parser leaks.
  5952. res.upgrade = true;
  5953. }
  5954. function onUpgrade(res, socket, head) {
  5955. // Hacky.
  5956. process.nextTick(function() {
  5957. onConnect(res, socket, head);
  5958. });
  5959. }
  5960. function onConnect(res, socket, head) {
  5961. connectReq.removeAllListeners();
  5962. socket.removeAllListeners();
  5963. if (res.statusCode !== 200) {
  5964. debug('tunneling socket could not be established, statusCode=%d',
  5965. res.statusCode);
  5966. socket.destroy();
  5967. var error = new Error('tunneling socket could not be established, ' +
  5968. 'statusCode=' + res.statusCode);
  5969. error.code = 'ECONNRESET';
  5970. options.request.emit('error', error);
  5971. self.removeSocket(placeholder);
  5972. return;
  5973. }
  5974. if (head.length > 0) {
  5975. debug('got illegal response body from proxy');
  5976. socket.destroy();
  5977. var error = new Error('got illegal response body from proxy');
  5978. error.code = 'ECONNRESET';
  5979. options.request.emit('error', error);
  5980. self.removeSocket(placeholder);
  5981. return;
  5982. }
  5983. debug('tunneling connection has established');
  5984. self.sockets[self.sockets.indexOf(placeholder)] = socket;
  5985. return cb(socket);
  5986. }
  5987. function onError(cause) {
  5988. connectReq.removeAllListeners();
  5989. debug('tunneling socket could not be established, cause=%s\n',
  5990. cause.message, cause.stack);
  5991. var error = new Error('tunneling socket could not be established, ' +
  5992. 'cause=' + cause.message);
  5993. error.code = 'ECONNRESET';
  5994. options.request.emit('error', error);
  5995. self.removeSocket(placeholder);
  5996. }
  5997. };
  5998. TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
  5999. var pos = this.sockets.indexOf(socket)
  6000. if (pos === -1) {
  6001. return;
  6002. }
  6003. this.sockets.splice(pos, 1);
  6004. var pending = this.requests.shift();
  6005. if (pending) {
  6006. // If we have pending requests and a socket gets closed a new one
  6007. // needs to be created to take over in the pool for the one that closed.
  6008. this.createSocket(pending, function(socket) {
  6009. pending.request.onSocket(socket);
  6010. });
  6011. }
  6012. };
  6013. function createSecureSocket(options, cb) {
  6014. var self = this;
  6015. TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
  6016. var hostHeader = options.request.getHeader('host');
  6017. var tlsOptions = mergeOptions({}, self.options, {
  6018. socket: socket,
  6019. servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
  6020. });
  6021. // 0 is dummy port for v0.6
  6022. var secureSocket = tls.connect(0, tlsOptions);
  6023. self.sockets[self.sockets.indexOf(socket)] = secureSocket;
  6024. cb(secureSocket);
  6025. });
  6026. }
  6027. function toOptions(host, port, localAddress) {
  6028. if (typeof host === 'string') { // since v0.10
  6029. return {
  6030. host: host,
  6031. port: port,
  6032. localAddress: localAddress
  6033. };
  6034. }
  6035. return host; // for v0.11 or later
  6036. }
  6037. function mergeOptions(target) {
  6038. for (var i = 1, len = arguments.length; i < len; ++i) {
  6039. var overrides = arguments[i];
  6040. if (typeof overrides === 'object') {
  6041. var keys = Object.keys(overrides);
  6042. for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
  6043. var k = keys[j];
  6044. if (overrides[k] !== undefined) {
  6045. target[k] = overrides[k];
  6046. }
  6047. }
  6048. }
  6049. }
  6050. return target;
  6051. }
  6052. var debug;
  6053. if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
  6054. debug = function() {
  6055. var args = Array.prototype.slice.call(arguments);
  6056. if (typeof args[0] === 'string') {
  6057. args[0] = 'TUNNEL: ' + args[0];
  6058. } else {
  6059. args.unshift('TUNNEL:');
  6060. }
  6061. console.error.apply(console, args);
  6062. }
  6063. } else {
  6064. debug = function() {};
  6065. }
  6066. exports.debug = debug; // for test
  6067. /***/ }),
  6068. /***/ 6443:
  6069. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  6070. "use strict";
  6071. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6072. const url = __nccwpck_require__(7310);
  6073. function getProxyUrl(reqUrl) {
  6074. let usingSsl = reqUrl.protocol === 'https:';
  6075. let proxyUrl;
  6076. if (checkBypass(reqUrl)) {
  6077. return proxyUrl;
  6078. }
  6079. let proxyVar;
  6080. if (usingSsl) {
  6081. proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY'];
  6082. }
  6083. else {
  6084. proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY'];
  6085. }
  6086. if (proxyVar) {
  6087. proxyUrl = url.parse(proxyVar);
  6088. }
  6089. return proxyUrl;
  6090. }
  6091. exports.getProxyUrl = getProxyUrl;
  6092. function checkBypass(reqUrl) {
  6093. if (!reqUrl.hostname) {
  6094. return false;
  6095. }
  6096. let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
  6097. if (!noProxy) {
  6098. return false;
  6099. }
  6100. // Determine the request port
  6101. let reqPort;
  6102. if (reqUrl.port) {
  6103. reqPort = Number(reqUrl.port);
  6104. }
  6105. else if (reqUrl.protocol === 'http:') {
  6106. reqPort = 80;
  6107. }
  6108. else if (reqUrl.protocol === 'https:') {
  6109. reqPort = 443;
  6110. }
  6111. // Format the request hostname and hostname with port
  6112. let upperReqHosts = [reqUrl.hostname.toUpperCase()];
  6113. if (typeof reqPort === 'number') {
  6114. upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
  6115. }
  6116. // Compare request host against noproxy
  6117. for (let upperNoProxyItem of noProxy
  6118. .split(',')
  6119. .map(x => x.trim().toUpperCase())
  6120. .filter(x => x)) {
  6121. if (upperReqHosts.some(x => x === upperNoProxyItem)) {
  6122. return true;
  6123. }
  6124. }
  6125. return false;
  6126. }
  6127. exports.checkBypass = checkBypass;
  6128. /***/ }),
  6129. /***/ 1962:
  6130. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  6131. "use strict";
  6132. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6133. if (k2 === undefined) k2 = k;
  6134. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6135. }) : (function(o, m, k, k2) {
  6136. if (k2 === undefined) k2 = k;
  6137. o[k2] = m[k];
  6138. }));
  6139. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6140. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6141. }) : function(o, v) {
  6142. o["default"] = v;
  6143. });
  6144. var __importStar = (this && this.__importStar) || function (mod) {
  6145. if (mod && mod.__esModule) return mod;
  6146. var result = {};
  6147. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6148. __setModuleDefault(result, mod);
  6149. return result;
  6150. };
  6151. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6152. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6153. return new (P || (P = Promise))(function (resolve, reject) {
  6154. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6155. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6156. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6157. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6158. });
  6159. };
  6160. var _a;
  6161. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6162. exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rename = exports.readlink = exports.readdir = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
  6163. const fs = __importStar(__nccwpck_require__(7147));
  6164. const path = __importStar(__nccwpck_require__(1017));
  6165. _a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
  6166. exports.IS_WINDOWS = process.platform === 'win32';
  6167. function exists(fsPath) {
  6168. return __awaiter(this, void 0, void 0, function* () {
  6169. try {
  6170. yield exports.stat(fsPath);
  6171. }
  6172. catch (err) {
  6173. if (err.code === 'ENOENT') {
  6174. return false;
  6175. }
  6176. throw err;
  6177. }
  6178. return true;
  6179. });
  6180. }
  6181. exports.exists = exists;
  6182. function isDirectory(fsPath, useStat = false) {
  6183. return __awaiter(this, void 0, void 0, function* () {
  6184. const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath);
  6185. return stats.isDirectory();
  6186. });
  6187. }
  6188. exports.isDirectory = isDirectory;
  6189. /**
  6190. * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
  6191. * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
  6192. */
  6193. function isRooted(p) {
  6194. p = normalizeSeparators(p);
  6195. if (!p) {
  6196. throw new Error('isRooted() parameter "p" cannot be empty');
  6197. }
  6198. if (exports.IS_WINDOWS) {
  6199. return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello
  6200. ); // e.g. C: or C:\hello
  6201. }
  6202. return p.startsWith('/');
  6203. }
  6204. exports.isRooted = isRooted;
  6205. /**
  6206. * Best effort attempt to determine whether a file exists and is executable.
  6207. * @param filePath file path to check
  6208. * @param extensions additional file extensions to try
  6209. * @return if file exists and is executable, returns the file path. otherwise empty string.
  6210. */
  6211. function tryGetExecutablePath(filePath, extensions) {
  6212. return __awaiter(this, void 0, void 0, function* () {
  6213. let stats = undefined;
  6214. try {
  6215. // test file exists
  6216. stats = yield exports.stat(filePath);
  6217. }
  6218. catch (err) {
  6219. if (err.code !== 'ENOENT') {
  6220. // eslint-disable-next-line no-console
  6221. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  6222. }
  6223. }
  6224. if (stats && stats.isFile()) {
  6225. if (exports.IS_WINDOWS) {
  6226. // on Windows, test for valid extension
  6227. const upperExt = path.extname(filePath).toUpperCase();
  6228. if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) {
  6229. return filePath;
  6230. }
  6231. }
  6232. else {
  6233. if (isUnixExecutable(stats)) {
  6234. return filePath;
  6235. }
  6236. }
  6237. }
  6238. // try each extension
  6239. const originalFilePath = filePath;
  6240. for (const extension of extensions) {
  6241. filePath = originalFilePath + extension;
  6242. stats = undefined;
  6243. try {
  6244. stats = yield exports.stat(filePath);
  6245. }
  6246. catch (err) {
  6247. if (err.code !== 'ENOENT') {
  6248. // eslint-disable-next-line no-console
  6249. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  6250. }
  6251. }
  6252. if (stats && stats.isFile()) {
  6253. if (exports.IS_WINDOWS) {
  6254. // preserve the case of the actual file (since an extension was appended)
  6255. try {
  6256. const directory = path.dirname(filePath);
  6257. const upperName = path.basename(filePath).toUpperCase();
  6258. for (const actualName of yield exports.readdir(directory)) {
  6259. if (upperName === actualName.toUpperCase()) {
  6260. filePath = path.join(directory, actualName);
  6261. break;
  6262. }
  6263. }
  6264. }
  6265. catch (err) {
  6266. // eslint-disable-next-line no-console
  6267. console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);
  6268. }
  6269. return filePath;
  6270. }
  6271. else {
  6272. if (isUnixExecutable(stats)) {
  6273. return filePath;
  6274. }
  6275. }
  6276. }
  6277. }
  6278. return '';
  6279. });
  6280. }
  6281. exports.tryGetExecutablePath = tryGetExecutablePath;
  6282. function normalizeSeparators(p) {
  6283. p = p || '';
  6284. if (exports.IS_WINDOWS) {
  6285. // convert slashes on Windows
  6286. p = p.replace(/\//g, '\\');
  6287. // remove redundant slashes
  6288. return p.replace(/\\\\+/g, '\\');
  6289. }
  6290. // remove redundant slashes
  6291. return p.replace(/\/\/+/g, '/');
  6292. }
  6293. // on Mac/Linux, test the execute bit
  6294. // R W X R W X R W X
  6295. // 256 128 64 32 16 8 4 2 1
  6296. function isUnixExecutable(stats) {
  6297. return ((stats.mode & 1) > 0 ||
  6298. ((stats.mode & 8) > 0 && stats.gid === process.getgid()) ||
  6299. ((stats.mode & 64) > 0 && stats.uid === process.getuid()));
  6300. }
  6301. // Get the path of cmd.exe in windows
  6302. function getCmdPath() {
  6303. var _a;
  6304. return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`;
  6305. }
  6306. exports.getCmdPath = getCmdPath;
  6307. //# sourceMappingURL=io-util.js.map
  6308. /***/ }),
  6309. /***/ 7436:
  6310. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  6311. "use strict";
  6312. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6313. if (k2 === undefined) k2 = k;
  6314. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6315. }) : (function(o, m, k, k2) {
  6316. if (k2 === undefined) k2 = k;
  6317. o[k2] = m[k];
  6318. }));
  6319. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6320. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6321. }) : function(o, v) {
  6322. o["default"] = v;
  6323. });
  6324. var __importStar = (this && this.__importStar) || function (mod) {
  6325. if (mod && mod.__esModule) return mod;
  6326. var result = {};
  6327. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6328. __setModuleDefault(result, mod);
  6329. return result;
  6330. };
  6331. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6332. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6333. return new (P || (P = Promise))(function (resolve, reject) {
  6334. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6335. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6336. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6337. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6338. });
  6339. };
  6340. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6341. exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0;
  6342. const assert_1 = __nccwpck_require__(9491);
  6343. const childProcess = __importStar(__nccwpck_require__(2081));
  6344. const path = __importStar(__nccwpck_require__(1017));
  6345. const util_1 = __nccwpck_require__(3837);
  6346. const ioUtil = __importStar(__nccwpck_require__(1962));
  6347. const exec = util_1.promisify(childProcess.exec);
  6348. const execFile = util_1.promisify(childProcess.execFile);
  6349. /**
  6350. * Copies a file or folder.
  6351. * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
  6352. *
  6353. * @param source source path
  6354. * @param dest destination path
  6355. * @param options optional. See CopyOptions.
  6356. */
  6357. function cp(source, dest, options = {}) {
  6358. return __awaiter(this, void 0, void 0, function* () {
  6359. const { force, recursive, copySourceDirectory } = readCopyOptions(options);
  6360. const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
  6361. // Dest is an existing file, but not forcing
  6362. if (destStat && destStat.isFile() && !force) {
  6363. return;
  6364. }
  6365. // If dest is an existing directory, should copy inside.
  6366. const newDest = destStat && destStat.isDirectory() && copySourceDirectory
  6367. ? path.join(dest, path.basename(source))
  6368. : dest;
  6369. if (!(yield ioUtil.exists(source))) {
  6370. throw new Error(`no such file or directory: ${source}`);
  6371. }
  6372. const sourceStat = yield ioUtil.stat(source);
  6373. if (sourceStat.isDirectory()) {
  6374. if (!recursive) {
  6375. throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);
  6376. }
  6377. else {
  6378. yield cpDirRecursive(source, newDest, 0, force);
  6379. }
  6380. }
  6381. else {
  6382. if (path.relative(source, newDest) === '') {
  6383. // a file cannot be copied to itself
  6384. throw new Error(`'${newDest}' and '${source}' are the same file`);
  6385. }
  6386. yield copyFile(source, newDest, force);
  6387. }
  6388. });
  6389. }
  6390. exports.cp = cp;
  6391. /**
  6392. * Moves a path.
  6393. *
  6394. * @param source source path
  6395. * @param dest destination path
  6396. * @param options optional. See MoveOptions.
  6397. */
  6398. function mv(source, dest, options = {}) {
  6399. return __awaiter(this, void 0, void 0, function* () {
  6400. if (yield ioUtil.exists(dest)) {
  6401. let destExists = true;
  6402. if (yield ioUtil.isDirectory(dest)) {
  6403. // If dest is directory copy src into dest
  6404. dest = path.join(dest, path.basename(source));
  6405. destExists = yield ioUtil.exists(dest);
  6406. }
  6407. if (destExists) {
  6408. if (options.force == null || options.force) {
  6409. yield rmRF(dest);
  6410. }
  6411. else {
  6412. throw new Error('Destination already exists');
  6413. }
  6414. }
  6415. }
  6416. yield mkdirP(path.dirname(dest));
  6417. yield ioUtil.rename(source, dest);
  6418. });
  6419. }
  6420. exports.mv = mv;
  6421. /**
  6422. * Remove a path recursively with force
  6423. *
  6424. * @param inputPath path to remove
  6425. */
  6426. function rmRF(inputPath) {
  6427. return __awaiter(this, void 0, void 0, function* () {
  6428. if (ioUtil.IS_WINDOWS) {
  6429. // Node doesn't provide a delete operation, only an unlink function. This means that if the file is being used by another
  6430. // program (e.g. antivirus), it won't be deleted. To address this, we shell out the work to rd/del.
  6431. // Check for invalid characters
  6432. // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
  6433. if (/[*"<>|]/.test(inputPath)) {
  6434. throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');
  6435. }
  6436. try {
  6437. const cmdPath = ioUtil.getCmdPath();
  6438. if (yield ioUtil.isDirectory(inputPath, true)) {
  6439. yield exec(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, {
  6440. env: { inputPath }
  6441. });
  6442. }
  6443. else {
  6444. yield exec(`${cmdPath} /s /c "del /f /a "%inputPath%""`, {
  6445. env: { inputPath }
  6446. });
  6447. }
  6448. }
  6449. catch (err) {
  6450. // if you try to delete a file that doesn't exist, desired result is achieved
  6451. // other errors are valid
  6452. if (err.code !== 'ENOENT')
  6453. throw err;
  6454. }
  6455. // Shelling out fails to remove a symlink folder with missing source, this unlink catches that
  6456. try {
  6457. yield ioUtil.unlink(inputPath);
  6458. }
  6459. catch (err) {
  6460. // if you try to delete a file that doesn't exist, desired result is achieved
  6461. // other errors are valid
  6462. if (err.code !== 'ENOENT')
  6463. throw err;
  6464. }
  6465. }
  6466. else {
  6467. let isDir = false;
  6468. try {
  6469. isDir = yield ioUtil.isDirectory(inputPath);
  6470. }
  6471. catch (err) {
  6472. // if you try to delete a file that doesn't exist, desired result is achieved
  6473. // other errors are valid
  6474. if (err.code !== 'ENOENT')
  6475. throw err;
  6476. return;
  6477. }
  6478. if (isDir) {
  6479. yield execFile(`rm`, [`-rf`, `${inputPath}`]);
  6480. }
  6481. else {
  6482. yield ioUtil.unlink(inputPath);
  6483. }
  6484. }
  6485. });
  6486. }
  6487. exports.rmRF = rmRF;
  6488. /**
  6489. * Make a directory. Creates the full path with folders in between
  6490. * Will throw if it fails
  6491. *
  6492. * @param fsPath path to create
  6493. * @returns Promise<void>
  6494. */
  6495. function mkdirP(fsPath) {
  6496. return __awaiter(this, void 0, void 0, function* () {
  6497. assert_1.ok(fsPath, 'a path argument must be provided');
  6498. yield ioUtil.mkdir(fsPath, { recursive: true });
  6499. });
  6500. }
  6501. exports.mkdirP = mkdirP;
  6502. /**
  6503. * Returns path of a tool had the tool actually been invoked. Resolves via paths.
  6504. * If you check and the tool does not exist, it will throw.
  6505. *
  6506. * @param tool name of the tool
  6507. * @param check whether to check if tool exists
  6508. * @returns Promise<string> path to tool
  6509. */
  6510. function which(tool, check) {
  6511. return __awaiter(this, void 0, void 0, function* () {
  6512. if (!tool) {
  6513. throw new Error("parameter 'tool' is required");
  6514. }
  6515. // recursive when check=true
  6516. if (check) {
  6517. const result = yield which(tool, false);
  6518. if (!result) {
  6519. if (ioUtil.IS_WINDOWS) {
  6520. 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.`);
  6521. }
  6522. else {
  6523. 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.`);
  6524. }
  6525. }
  6526. return result;
  6527. }
  6528. const matches = yield findInPath(tool);
  6529. if (matches && matches.length > 0) {
  6530. return matches[0];
  6531. }
  6532. return '';
  6533. });
  6534. }
  6535. exports.which = which;
  6536. /**
  6537. * Returns a list of all occurrences of the given tool on the system path.
  6538. *
  6539. * @returns Promise<string[]> the paths of the tool
  6540. */
  6541. function findInPath(tool) {
  6542. return __awaiter(this, void 0, void 0, function* () {
  6543. if (!tool) {
  6544. throw new Error("parameter 'tool' is required");
  6545. }
  6546. // build the list of extensions to try
  6547. const extensions = [];
  6548. if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) {
  6549. for (const extension of process.env['PATHEXT'].split(path.delimiter)) {
  6550. if (extension) {
  6551. extensions.push(extension);
  6552. }
  6553. }
  6554. }
  6555. // if it's rooted, return it if exists. otherwise return empty.
  6556. if (ioUtil.isRooted(tool)) {
  6557. const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions);
  6558. if (filePath) {
  6559. return [filePath];
  6560. }
  6561. return [];
  6562. }
  6563. // if any path separators, return empty
  6564. if (tool.includes(path.sep)) {
  6565. return [];
  6566. }
  6567. // build the list of directories
  6568. //
  6569. // Note, technically "where" checks the current directory on Windows. From a toolkit perspective,
  6570. // it feels like we should not do this. Checking the current directory seems like more of a use
  6571. // case of a shell, and the which() function exposed by the toolkit should strive for consistency
  6572. // across platforms.
  6573. const directories = [];
  6574. if (process.env.PATH) {
  6575. for (const p of process.env.PATH.split(path.delimiter)) {
  6576. if (p) {
  6577. directories.push(p);
  6578. }
  6579. }
  6580. }
  6581. // find all matches
  6582. const matches = [];
  6583. for (const directory of directories) {
  6584. const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions);
  6585. if (filePath) {
  6586. matches.push(filePath);
  6587. }
  6588. }
  6589. return matches;
  6590. });
  6591. }
  6592. exports.findInPath = findInPath;
  6593. function readCopyOptions(options) {
  6594. const force = options.force == null ? true : options.force;
  6595. const recursive = Boolean(options.recursive);
  6596. const copySourceDirectory = options.copySourceDirectory == null
  6597. ? true
  6598. : Boolean(options.copySourceDirectory);
  6599. return { force, recursive, copySourceDirectory };
  6600. }
  6601. function cpDirRecursive(sourceDir, destDir, currentDepth, force) {
  6602. return __awaiter(this, void 0, void 0, function* () {
  6603. // Ensure there is not a run away recursive copy
  6604. if (currentDepth >= 255)
  6605. return;
  6606. currentDepth++;
  6607. yield mkdirP(destDir);
  6608. const files = yield ioUtil.readdir(sourceDir);
  6609. for (const fileName of files) {
  6610. const srcFile = `${sourceDir}/${fileName}`;
  6611. const destFile = `${destDir}/${fileName}`;
  6612. const srcFileStat = yield ioUtil.lstat(srcFile);
  6613. if (srcFileStat.isDirectory()) {
  6614. // Recurse
  6615. yield cpDirRecursive(srcFile, destFile, currentDepth, force);
  6616. }
  6617. else {
  6618. yield copyFile(srcFile, destFile, force);
  6619. }
  6620. }
  6621. // Change the mode for the newly created directory
  6622. yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode);
  6623. });
  6624. }
  6625. // Buffered file copy
  6626. function copyFile(srcFile, destFile, force) {
  6627. return __awaiter(this, void 0, void 0, function* () {
  6628. if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) {
  6629. // unlink/re-link it
  6630. try {
  6631. yield ioUtil.lstat(destFile);
  6632. yield ioUtil.unlink(destFile);
  6633. }
  6634. catch (e) {
  6635. // Try to override file permission
  6636. if (e.code === 'EPERM') {
  6637. yield ioUtil.chmod(destFile, '0666');
  6638. yield ioUtil.unlink(destFile);
  6639. }
  6640. // other errors = it doesn't exist, no work to do
  6641. }
  6642. // Copy over symlink
  6643. const symlinkFull = yield ioUtil.readlink(srcFile);
  6644. yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null);
  6645. }
  6646. else if (!(yield ioUtil.exists(destFile)) || force) {
  6647. yield ioUtil.copyFile(srcFile, destFile);
  6648. }
  6649. });
  6650. }
  6651. //# sourceMappingURL=io.js.map
  6652. /***/ }),
  6653. /***/ 7784:
  6654. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  6655. "use strict";
  6656. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6657. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6658. return new (P || (P = Promise))(function (resolve, reject) {
  6659. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6660. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6661. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6662. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6663. });
  6664. };
  6665. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6666. const core = __nccwpck_require__(2186);
  6667. const io = __nccwpck_require__(7436);
  6668. const fs = __nccwpck_require__(7147);
  6669. const os = __nccwpck_require__(2037);
  6670. const path = __nccwpck_require__(1017);
  6671. const httpm = __nccwpck_require__(5538);
  6672. const semver = __nccwpck_require__(562);
  6673. const uuidV4 = __nccwpck_require__(824);
  6674. const exec_1 = __nccwpck_require__(1514);
  6675. const assert_1 = __nccwpck_require__(9491);
  6676. class HTTPError extends Error {
  6677. constructor(httpStatusCode) {
  6678. super(`Unexpected HTTP response: ${httpStatusCode}`);
  6679. this.httpStatusCode = httpStatusCode;
  6680. Object.setPrototypeOf(this, new.target.prototype);
  6681. }
  6682. }
  6683. exports.HTTPError = HTTPError;
  6684. const IS_WINDOWS = process.platform === 'win32';
  6685. const userAgent = 'actions/tool-cache';
  6686. // On load grab temp directory and cache directory and remove them from env (currently don't want to expose this)
  6687. let tempDirectory = process.env['RUNNER_TEMP'] || '';
  6688. let cacheRoot = process.env['RUNNER_TOOL_CACHE'] || '';
  6689. // If directories not found, place them in common temp locations
  6690. if (!tempDirectory || !cacheRoot) {
  6691. let baseLocation;
  6692. if (IS_WINDOWS) {
  6693. // On windows use the USERPROFILE env variable
  6694. baseLocation = process.env['USERPROFILE'] || 'C:\\';
  6695. }
  6696. else {
  6697. if (process.platform === 'darwin') {
  6698. baseLocation = '/Users';
  6699. }
  6700. else {
  6701. baseLocation = '/home';
  6702. }
  6703. }
  6704. if (!tempDirectory) {
  6705. tempDirectory = path.join(baseLocation, 'actions', 'temp');
  6706. }
  6707. if (!cacheRoot) {
  6708. cacheRoot = path.join(baseLocation, 'actions', 'cache');
  6709. }
  6710. }
  6711. /**
  6712. * Download a tool from an url and stream it into a file
  6713. *
  6714. * @param url url of tool to download
  6715. * @returns path to downloaded tool
  6716. */
  6717. function downloadTool(url) {
  6718. return __awaiter(this, void 0, void 0, function* () {
  6719. // Wrap in a promise so that we can resolve from within stream callbacks
  6720. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  6721. try {
  6722. const http = new httpm.HttpClient(userAgent, [], {
  6723. allowRetries: true,
  6724. maxRetries: 3
  6725. });
  6726. const destPath = path.join(tempDirectory, uuidV4());
  6727. yield io.mkdirP(tempDirectory);
  6728. core.debug(`Downloading ${url}`);
  6729. core.debug(`Downloading ${destPath}`);
  6730. if (fs.existsSync(destPath)) {
  6731. throw new Error(`Destination file path ${destPath} already exists`);
  6732. }
  6733. const response = yield http.get(url);
  6734. if (response.message.statusCode !== 200) {
  6735. const err = new HTTPError(response.message.statusCode);
  6736. core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
  6737. throw err;
  6738. }
  6739. const file = fs.createWriteStream(destPath);
  6740. file.on('open', () => __awaiter(this, void 0, void 0, function* () {
  6741. try {
  6742. const stream = response.message.pipe(file);
  6743. stream.on('close', () => {
  6744. core.debug('download complete');
  6745. resolve(destPath);
  6746. });
  6747. }
  6748. catch (err) {
  6749. core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
  6750. reject(err);
  6751. }
  6752. }));
  6753. file.on('error', err => {
  6754. file.end();
  6755. reject(err);
  6756. });
  6757. }
  6758. catch (err) {
  6759. reject(err);
  6760. }
  6761. }));
  6762. });
  6763. }
  6764. exports.downloadTool = downloadTool;
  6765. /**
  6766. * Extract a .7z file
  6767. *
  6768. * @param file path to the .7z file
  6769. * @param dest destination directory. Optional.
  6770. * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this
  6771. * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will
  6772. * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is
  6773. * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line
  6774. * interface, it is smaller than the full command line interface, and it does support long paths. At the
  6775. * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.
  6776. * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path
  6777. * to 7zr.exe can be pass to this function.
  6778. * @returns path to the destination directory
  6779. */
  6780. function extract7z(file, dest, _7zPath) {
  6781. return __awaiter(this, void 0, void 0, function* () {
  6782. assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
  6783. assert_1.ok(file, 'parameter "file" is required');
  6784. dest = dest || (yield _createExtractFolder(dest));
  6785. const originalCwd = process.cwd();
  6786. process.chdir(dest);
  6787. if (_7zPath) {
  6788. try {
  6789. const args = [
  6790. 'x',
  6791. '-bb1',
  6792. '-bd',
  6793. '-sccUTF-8',
  6794. file
  6795. ];
  6796. const options = {
  6797. silent: true
  6798. };
  6799. yield exec_1.exec(`"${_7zPath}"`, args, options);
  6800. }
  6801. finally {
  6802. process.chdir(originalCwd);
  6803. }
  6804. }
  6805. else {
  6806. const escapedScript = path
  6807. .join(__dirname, '..', 'scripts', 'Invoke-7zdec.ps1')
  6808. .replace(/'/g, "''")
  6809. .replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  6810. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  6811. const escapedTarget = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  6812. const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;
  6813. const args = [
  6814. '-NoLogo',
  6815. '-Sta',
  6816. '-NoProfile',
  6817. '-NonInteractive',
  6818. '-ExecutionPolicy',
  6819. 'Unrestricted',
  6820. '-Command',
  6821. command
  6822. ];
  6823. const options = {
  6824. silent: true
  6825. };
  6826. try {
  6827. const powershellPath = yield io.which('powershell', true);
  6828. yield exec_1.exec(`"${powershellPath}"`, args, options);
  6829. }
  6830. finally {
  6831. process.chdir(originalCwd);
  6832. }
  6833. }
  6834. return dest;
  6835. });
  6836. }
  6837. exports.extract7z = extract7z;
  6838. /**
  6839. * Extract a tar
  6840. *
  6841. * @param file path to the tar
  6842. * @param dest destination directory. Optional.
  6843. * @param flags flags for the tar. Optional.
  6844. * @returns path to the destination directory
  6845. */
  6846. function extractTar(file, dest, flags = 'xz') {
  6847. return __awaiter(this, void 0, void 0, function* () {
  6848. if (!file) {
  6849. throw new Error("parameter 'file' is required");
  6850. }
  6851. dest = dest || (yield _createExtractFolder(dest));
  6852. const tarPath = yield io.which('tar', true);
  6853. yield exec_1.exec(`"${tarPath}"`, [flags, '-C', dest, '-f', file]);
  6854. return dest;
  6855. });
  6856. }
  6857. exports.extractTar = extractTar;
  6858. /**
  6859. * Extract a zip
  6860. *
  6861. * @param file path to the zip
  6862. * @param dest destination directory. Optional.
  6863. * @returns path to the destination directory
  6864. */
  6865. function extractZip(file, dest) {
  6866. return __awaiter(this, void 0, void 0, function* () {
  6867. if (!file) {
  6868. throw new Error("parameter 'file' is required");
  6869. }
  6870. dest = dest || (yield _createExtractFolder(dest));
  6871. if (IS_WINDOWS) {
  6872. yield extractZipWin(file, dest);
  6873. }
  6874. else {
  6875. yield extractZipNix(file, dest);
  6876. }
  6877. return dest;
  6878. });
  6879. }
  6880. exports.extractZip = extractZip;
  6881. function extractZipWin(file, dest) {
  6882. return __awaiter(this, void 0, void 0, function* () {
  6883. // build the powershell command
  6884. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  6885. const escapedDest = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  6886. const command = `$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}')`;
  6887. // run powershell
  6888. const powershellPath = yield io.which('powershell');
  6889. const args = [
  6890. '-NoLogo',
  6891. '-Sta',
  6892. '-NoProfile',
  6893. '-NonInteractive',
  6894. '-ExecutionPolicy',
  6895. 'Unrestricted',
  6896. '-Command',
  6897. command
  6898. ];
  6899. yield exec_1.exec(`"${powershellPath}"`, args);
  6900. });
  6901. }
  6902. function extractZipNix(file, dest) {
  6903. return __awaiter(this, void 0, void 0, function* () {
  6904. const unzipPath = yield io.which('unzip');
  6905. yield exec_1.exec(`"${unzipPath}"`, [file], { cwd: dest });
  6906. });
  6907. }
  6908. /**
  6909. * Caches a directory and installs it into the tool cacheDir
  6910. *
  6911. * @param sourceDir the directory to cache into tools
  6912. * @param tool tool name
  6913. * @param version version of the tool. semver format
  6914. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  6915. */
  6916. function cacheDir(sourceDir, tool, version, arch) {
  6917. return __awaiter(this, void 0, void 0, function* () {
  6918. version = semver.clean(version) || version;
  6919. arch = arch || os.arch();
  6920. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  6921. core.debug(`source dir: ${sourceDir}`);
  6922. if (!fs.statSync(sourceDir).isDirectory()) {
  6923. throw new Error('sourceDir is not a directory');
  6924. }
  6925. // Create the tool dir
  6926. const destPath = yield _createToolPath(tool, version, arch);
  6927. // copy each child item. do not move. move can fail on Windows
  6928. // due to anti-virus software having an open handle on a file.
  6929. for (const itemName of fs.readdirSync(sourceDir)) {
  6930. const s = path.join(sourceDir, itemName);
  6931. yield io.cp(s, destPath, { recursive: true });
  6932. }
  6933. // write .complete
  6934. _completeToolPath(tool, version, arch);
  6935. return destPath;
  6936. });
  6937. }
  6938. exports.cacheDir = cacheDir;
  6939. /**
  6940. * Caches a downloaded file (GUID) and installs it
  6941. * into the tool cache with a given targetName
  6942. *
  6943. * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.
  6944. * @param targetFile the name of the file name in the tools directory
  6945. * @param tool tool name
  6946. * @param version version of the tool. semver format
  6947. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  6948. */
  6949. function cacheFile(sourceFile, targetFile, tool, version, arch) {
  6950. return __awaiter(this, void 0, void 0, function* () {
  6951. version = semver.clean(version) || version;
  6952. arch = arch || os.arch();
  6953. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  6954. core.debug(`source file: ${sourceFile}`);
  6955. if (!fs.statSync(sourceFile).isFile()) {
  6956. throw new Error('sourceFile is not a file');
  6957. }
  6958. // create the tool dir
  6959. const destFolder = yield _createToolPath(tool, version, arch);
  6960. // copy instead of move. move can fail on Windows due to
  6961. // anti-virus software having an open handle on a file.
  6962. const destPath = path.join(destFolder, targetFile);
  6963. core.debug(`destination file ${destPath}`);
  6964. yield io.cp(sourceFile, destPath);
  6965. // write .complete
  6966. _completeToolPath(tool, version, arch);
  6967. return destFolder;
  6968. });
  6969. }
  6970. exports.cacheFile = cacheFile;
  6971. /**
  6972. * Finds the path to a tool version in the local installed tool cache
  6973. *
  6974. * @param toolName name of the tool
  6975. * @param versionSpec version of the tool
  6976. * @param arch optional arch. defaults to arch of computer
  6977. */
  6978. function find(toolName, versionSpec, arch) {
  6979. if (!toolName) {
  6980. throw new Error('toolName parameter is required');
  6981. }
  6982. if (!versionSpec) {
  6983. throw new Error('versionSpec parameter is required');
  6984. }
  6985. arch = arch || os.arch();
  6986. // attempt to resolve an explicit version
  6987. if (!_isExplicitVersion(versionSpec)) {
  6988. const localVersions = findAllVersions(toolName, arch);
  6989. const match = _evaluateVersions(localVersions, versionSpec);
  6990. versionSpec = match;
  6991. }
  6992. // check for the explicit version in the cache
  6993. let toolPath = '';
  6994. if (versionSpec) {
  6995. versionSpec = semver.clean(versionSpec) || '';
  6996. const cachePath = path.join(cacheRoot, toolName, versionSpec, arch);
  6997. core.debug(`checking cache: ${cachePath}`);
  6998. if (fs.existsSync(cachePath) && fs.existsSync(`${cachePath}.complete`)) {
  6999. core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);
  7000. toolPath = cachePath;
  7001. }
  7002. else {
  7003. core.debug('not found');
  7004. }
  7005. }
  7006. return toolPath;
  7007. }
  7008. exports.find = find;
  7009. /**
  7010. * Finds the paths to all versions of a tool that are installed in the local tool cache
  7011. *
  7012. * @param toolName name of the tool
  7013. * @param arch optional arch. defaults to arch of computer
  7014. */
  7015. function findAllVersions(toolName, arch) {
  7016. const versions = [];
  7017. arch = arch || os.arch();
  7018. const toolPath = path.join(cacheRoot, toolName);
  7019. if (fs.existsSync(toolPath)) {
  7020. const children = fs.readdirSync(toolPath);
  7021. for (const child of children) {
  7022. if (_isExplicitVersion(child)) {
  7023. const fullPath = path.join(toolPath, child, arch || '');
  7024. if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {
  7025. versions.push(child);
  7026. }
  7027. }
  7028. }
  7029. }
  7030. return versions;
  7031. }
  7032. exports.findAllVersions = findAllVersions;
  7033. function _createExtractFolder(dest) {
  7034. return __awaiter(this, void 0, void 0, function* () {
  7035. if (!dest) {
  7036. // create a temp dir
  7037. dest = path.join(tempDirectory, uuidV4());
  7038. }
  7039. yield io.mkdirP(dest);
  7040. return dest;
  7041. });
  7042. }
  7043. function _createToolPath(tool, version, arch) {
  7044. return __awaiter(this, void 0, void 0, function* () {
  7045. const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
  7046. core.debug(`destination ${folderPath}`);
  7047. const markerPath = `${folderPath}.complete`;
  7048. yield io.rmRF(folderPath);
  7049. yield io.rmRF(markerPath);
  7050. yield io.mkdirP(folderPath);
  7051. return folderPath;
  7052. });
  7053. }
  7054. function _completeToolPath(tool, version, arch) {
  7055. const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
  7056. const markerPath = `${folderPath}.complete`;
  7057. fs.writeFileSync(markerPath, '');
  7058. core.debug('finished caching tool');
  7059. }
  7060. function _isExplicitVersion(versionSpec) {
  7061. const c = semver.clean(versionSpec) || '';
  7062. core.debug(`isExplicit: ${c}`);
  7063. const valid = semver.valid(c) != null;
  7064. core.debug(`explicit? ${valid}`);
  7065. return valid;
  7066. }
  7067. function _evaluateVersions(versions, versionSpec) {
  7068. let version = '';
  7069. core.debug(`evaluating ${versions.length} versions`);
  7070. versions = versions.sort((a, b) => {
  7071. if (semver.gt(a, b)) {
  7072. return 1;
  7073. }
  7074. return -1;
  7075. });
  7076. for (let i = versions.length - 1; i >= 0; i--) {
  7077. const potential = versions[i];
  7078. const satisfied = semver.satisfies(potential, versionSpec);
  7079. if (satisfied) {
  7080. version = potential;
  7081. break;
  7082. }
  7083. }
  7084. if (version) {
  7085. core.debug(`matched: ${version}`);
  7086. }
  7087. else {
  7088. core.debug('match not found');
  7089. }
  7090. return version;
  7091. }
  7092. //# sourceMappingURL=tool-cache.js.map
  7093. /***/ }),
  7094. /***/ 562:
  7095. /***/ ((module, exports) => {
  7096. exports = module.exports = SemVer
  7097. var debug
  7098. /* istanbul ignore next */
  7099. if (typeof process === 'object' &&
  7100. process.env &&
  7101. process.env.NODE_DEBUG &&
  7102. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  7103. debug = function () {
  7104. var args = Array.prototype.slice.call(arguments, 0)
  7105. args.unshift('SEMVER')
  7106. console.log.apply(console, args)
  7107. }
  7108. } else {
  7109. debug = function () {}
  7110. }
  7111. // Note: this is the semver.org version of the spec that it implements
  7112. // Not necessarily the package version of this code.
  7113. exports.SEMVER_SPEC_VERSION = '2.0.0'
  7114. var MAX_LENGTH = 256
  7115. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  7116. /* istanbul ignore next */ 9007199254740991
  7117. // Max safe segment length for coercion.
  7118. var MAX_SAFE_COMPONENT_LENGTH = 16
  7119. // The actual regexps go on exports.re
  7120. var re = exports.re = []
  7121. var src = exports.src = []
  7122. var t = exports.tokens = {}
  7123. var R = 0
  7124. function tok (n) {
  7125. t[n] = R++
  7126. }
  7127. // The following Regular Expressions can be used for tokenizing,
  7128. // validating, and parsing SemVer version strings.
  7129. // ## Numeric Identifier
  7130. // A single `0`, or a non-zero digit followed by zero or more digits.
  7131. tok('NUMERICIDENTIFIER')
  7132. src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  7133. tok('NUMERICIDENTIFIERLOOSE')
  7134. src[t.NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  7135. // ## Non-numeric Identifier
  7136. // Zero or more digits, followed by a letter or hyphen, and then zero or
  7137. // more letters, digits, or hyphens.
  7138. tok('NONNUMERICIDENTIFIER')
  7139. src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  7140. // ## Main Version
  7141. // Three dot-separated numeric identifiers.
  7142. tok('MAINVERSION')
  7143. src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  7144. '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  7145. '(' + src[t.NUMERICIDENTIFIER] + ')'
  7146. tok('MAINVERSIONLOOSE')
  7147. src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  7148. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  7149. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'
  7150. // ## Pre-release Version Identifier
  7151. // A numeric identifier, or a non-numeric identifier.
  7152. tok('PRERELEASEIDENTIFIER')
  7153. src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +
  7154. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  7155. tok('PRERELEASEIDENTIFIERLOOSE')
  7156. src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +
  7157. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  7158. // ## Pre-release Version
  7159. // Hyphen, followed by one or more dot-separated pre-release version
  7160. // identifiers.
  7161. tok('PRERELEASE')
  7162. src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +
  7163. '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'
  7164. tok('PRERELEASELOOSE')
  7165. src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +
  7166. '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'
  7167. // ## Build Metadata Identifier
  7168. // Any combination of digits, letters, or hyphens.
  7169. tok('BUILDIDENTIFIER')
  7170. src[t.BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  7171. // ## Build Metadata
  7172. // Plus sign, followed by one or more period-separated build metadata
  7173. // identifiers.
  7174. tok('BUILD')
  7175. src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] +
  7176. '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))'
  7177. // ## Full Version String
  7178. // A main version, followed optionally by a pre-release version and
  7179. // build metadata.
  7180. // Note that the only major, minor, patch, and pre-release sections of
  7181. // the version string are capturing groups. The build metadata is not a
  7182. // capturing group, because it should not ever be used in version
  7183. // comparison.
  7184. tok('FULL')
  7185. tok('FULLPLAIN')
  7186. src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +
  7187. src[t.PRERELEASE] + '?' +
  7188. src[t.BUILD] + '?'
  7189. src[t.FULL] = '^' + src[t.FULLPLAIN] + '$'
  7190. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  7191. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  7192. // common in the npm registry.
  7193. tok('LOOSEPLAIN')
  7194. src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] +
  7195. src[t.PRERELEASELOOSE] + '?' +
  7196. src[t.BUILD] + '?'
  7197. tok('LOOSE')
  7198. src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'
  7199. tok('GTLT')
  7200. src[t.GTLT] = '((?:<|>)?=?)'
  7201. // Something like "2.*" or "1.2.x".
  7202. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  7203. // Only the first item is strictly required.
  7204. tok('XRANGEIDENTIFIERLOOSE')
  7205. src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  7206. tok('XRANGEIDENTIFIER')
  7207. src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*'
  7208. tok('XRANGEPLAIN')
  7209. src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +
  7210. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  7211. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  7212. '(?:' + src[t.PRERELEASE] + ')?' +
  7213. src[t.BUILD] + '?' +
  7214. ')?)?'
  7215. tok('XRANGEPLAINLOOSE')
  7216. src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  7217. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  7218. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  7219. '(?:' + src[t.PRERELEASELOOSE] + ')?' +
  7220. src[t.BUILD] + '?' +
  7221. ')?)?'
  7222. tok('XRANGE')
  7223. src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$'
  7224. tok('XRANGELOOSE')
  7225. src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$'
  7226. // Coercion.
  7227. // Extract anything that could conceivably be a part of a valid semver
  7228. tok('COERCE')
  7229. src[t.COERCE] = '(^|[^\\d])' +
  7230. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  7231. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  7232. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  7233. '(?:$|[^\\d])'
  7234. tok('COERCERTL')
  7235. re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')
  7236. // Tilde ranges.
  7237. // Meaning is "reasonably at or greater than"
  7238. tok('LONETILDE')
  7239. src[t.LONETILDE] = '(?:~>?)'
  7240. tok('TILDETRIM')
  7241. src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+'
  7242. re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')
  7243. var tildeTrimReplace = '$1~'
  7244. tok('TILDE')
  7245. src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'
  7246. tok('TILDELOOSE')
  7247. src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'
  7248. // Caret ranges.
  7249. // Meaning is "at least and backwards compatible with"
  7250. tok('LONECARET')
  7251. src[t.LONECARET] = '(?:\\^)'
  7252. tok('CARETTRIM')
  7253. src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+'
  7254. re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')
  7255. var caretTrimReplace = '$1^'
  7256. tok('CARET')
  7257. src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'
  7258. tok('CARETLOOSE')
  7259. src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'
  7260. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  7261. tok('COMPARATORLOOSE')
  7262. src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'
  7263. tok('COMPARATOR')
  7264. src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$'
  7265. // An expression to strip any whitespace between the gtlt and the thing
  7266. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  7267. tok('COMPARATORTRIM')
  7268. src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] +
  7269. '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'
  7270. // this one has to use the /g flag
  7271. re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')
  7272. var comparatorTrimReplace = '$1$2$3'
  7273. // Something like `1.2.3 - 1.2.4`
  7274. // Note that these all use the loose form, because they'll be
  7275. // checked against either the strict or loose comparator form
  7276. // later.
  7277. tok('HYPHENRANGE')
  7278. src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' +
  7279. '\\s+-\\s+' +
  7280. '(' + src[t.XRANGEPLAIN] + ')' +
  7281. '\\s*$'
  7282. tok('HYPHENRANGELOOSE')
  7283. src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +
  7284. '\\s+-\\s+' +
  7285. '(' + src[t.XRANGEPLAINLOOSE] + ')' +
  7286. '\\s*$'
  7287. // Star ranges basically just allow anything at all.
  7288. tok('STAR')
  7289. src[t.STAR] = '(<|>)?=?\\s*\\*'
  7290. // Compile to actual regexp objects.
  7291. // All are flag-free, unless they were created above with a flag.
  7292. for (var i = 0; i < R; i++) {
  7293. debug(i, src[i])
  7294. if (!re[i]) {
  7295. re[i] = new RegExp(src[i])
  7296. }
  7297. }
  7298. exports.parse = parse
  7299. function parse (version, options) {
  7300. if (!options || typeof options !== 'object') {
  7301. options = {
  7302. loose: !!options,
  7303. includePrerelease: false
  7304. }
  7305. }
  7306. if (version instanceof SemVer) {
  7307. return version
  7308. }
  7309. if (typeof version !== 'string') {
  7310. return null
  7311. }
  7312. if (version.length > MAX_LENGTH) {
  7313. return null
  7314. }
  7315. var r = options.loose ? re[t.LOOSE] : re[t.FULL]
  7316. if (!r.test(version)) {
  7317. return null
  7318. }
  7319. try {
  7320. return new SemVer(version, options)
  7321. } catch (er) {
  7322. return null
  7323. }
  7324. }
  7325. exports.valid = valid
  7326. function valid (version, options) {
  7327. var v = parse(version, options)
  7328. return v ? v.version : null
  7329. }
  7330. exports.clean = clean
  7331. function clean (version, options) {
  7332. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  7333. return s ? s.version : null
  7334. }
  7335. exports.SemVer = SemVer
  7336. function SemVer (version, options) {
  7337. if (!options || typeof options !== 'object') {
  7338. options = {
  7339. loose: !!options,
  7340. includePrerelease: false
  7341. }
  7342. }
  7343. if (version instanceof SemVer) {
  7344. if (version.loose === options.loose) {
  7345. return version
  7346. } else {
  7347. version = version.version
  7348. }
  7349. } else if (typeof version !== 'string') {
  7350. throw new TypeError('Invalid Version: ' + version)
  7351. }
  7352. if (version.length > MAX_LENGTH) {
  7353. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  7354. }
  7355. if (!(this instanceof SemVer)) {
  7356. return new SemVer(version, options)
  7357. }
  7358. debug('SemVer', version, options)
  7359. this.options = options
  7360. this.loose = !!options.loose
  7361. var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
  7362. if (!m) {
  7363. throw new TypeError('Invalid Version: ' + version)
  7364. }
  7365. this.raw = version
  7366. // these are actually numbers
  7367. this.major = +m[1]
  7368. this.minor = +m[2]
  7369. this.patch = +m[3]
  7370. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  7371. throw new TypeError('Invalid major version')
  7372. }
  7373. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  7374. throw new TypeError('Invalid minor version')
  7375. }
  7376. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  7377. throw new TypeError('Invalid patch version')
  7378. }
  7379. // numberify any prerelease numeric ids
  7380. if (!m[4]) {
  7381. this.prerelease = []
  7382. } else {
  7383. this.prerelease = m[4].split('.').map(function (id) {
  7384. if (/^[0-9]+$/.test(id)) {
  7385. var num = +id
  7386. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  7387. return num
  7388. }
  7389. }
  7390. return id
  7391. })
  7392. }
  7393. this.build = m[5] ? m[5].split('.') : []
  7394. this.format()
  7395. }
  7396. SemVer.prototype.format = function () {
  7397. this.version = this.major + '.' + this.minor + '.' + this.patch
  7398. if (this.prerelease.length) {
  7399. this.version += '-' + this.prerelease.join('.')
  7400. }
  7401. return this.version
  7402. }
  7403. SemVer.prototype.toString = function () {
  7404. return this.version
  7405. }
  7406. SemVer.prototype.compare = function (other) {
  7407. debug('SemVer.compare', this.version, this.options, other)
  7408. if (!(other instanceof SemVer)) {
  7409. other = new SemVer(other, this.options)
  7410. }
  7411. return this.compareMain(other) || this.comparePre(other)
  7412. }
  7413. SemVer.prototype.compareMain = function (other) {
  7414. if (!(other instanceof SemVer)) {
  7415. other = new SemVer(other, this.options)
  7416. }
  7417. return compareIdentifiers(this.major, other.major) ||
  7418. compareIdentifiers(this.minor, other.minor) ||
  7419. compareIdentifiers(this.patch, other.patch)
  7420. }
  7421. SemVer.prototype.comparePre = function (other) {
  7422. if (!(other instanceof SemVer)) {
  7423. other = new SemVer(other, this.options)
  7424. }
  7425. // NOT having a prerelease is > having one
  7426. if (this.prerelease.length && !other.prerelease.length) {
  7427. return -1
  7428. } else if (!this.prerelease.length && other.prerelease.length) {
  7429. return 1
  7430. } else if (!this.prerelease.length && !other.prerelease.length) {
  7431. return 0
  7432. }
  7433. var i = 0
  7434. do {
  7435. var a = this.prerelease[i]
  7436. var b = other.prerelease[i]
  7437. debug('prerelease compare', i, a, b)
  7438. if (a === undefined && b === undefined) {
  7439. return 0
  7440. } else if (b === undefined) {
  7441. return 1
  7442. } else if (a === undefined) {
  7443. return -1
  7444. } else if (a === b) {
  7445. continue
  7446. } else {
  7447. return compareIdentifiers(a, b)
  7448. }
  7449. } while (++i)
  7450. }
  7451. SemVer.prototype.compareBuild = function (other) {
  7452. if (!(other instanceof SemVer)) {
  7453. other = new SemVer(other, this.options)
  7454. }
  7455. var i = 0
  7456. do {
  7457. var a = this.build[i]
  7458. var b = other.build[i]
  7459. debug('prerelease compare', i, a, b)
  7460. if (a === undefined && b === undefined) {
  7461. return 0
  7462. } else if (b === undefined) {
  7463. return 1
  7464. } else if (a === undefined) {
  7465. return -1
  7466. } else if (a === b) {
  7467. continue
  7468. } else {
  7469. return compareIdentifiers(a, b)
  7470. }
  7471. } while (++i)
  7472. }
  7473. // preminor will bump the version up to the next minor release, and immediately
  7474. // down to pre-release. premajor and prepatch work the same way.
  7475. SemVer.prototype.inc = function (release, identifier) {
  7476. switch (release) {
  7477. case 'premajor':
  7478. this.prerelease.length = 0
  7479. this.patch = 0
  7480. this.minor = 0
  7481. this.major++
  7482. this.inc('pre', identifier)
  7483. break
  7484. case 'preminor':
  7485. this.prerelease.length = 0
  7486. this.patch = 0
  7487. this.minor++
  7488. this.inc('pre', identifier)
  7489. break
  7490. case 'prepatch':
  7491. // If this is already a prerelease, it will bump to the next version
  7492. // drop any prereleases that might already exist, since they are not
  7493. // relevant at this point.
  7494. this.prerelease.length = 0
  7495. this.inc('patch', identifier)
  7496. this.inc('pre', identifier)
  7497. break
  7498. // If the input is a non-prerelease version, this acts the same as
  7499. // prepatch.
  7500. case 'prerelease':
  7501. if (this.prerelease.length === 0) {
  7502. this.inc('patch', identifier)
  7503. }
  7504. this.inc('pre', identifier)
  7505. break
  7506. case 'major':
  7507. // If this is a pre-major version, bump up to the same major version.
  7508. // Otherwise increment major.
  7509. // 1.0.0-5 bumps to 1.0.0
  7510. // 1.1.0 bumps to 2.0.0
  7511. if (this.minor !== 0 ||
  7512. this.patch !== 0 ||
  7513. this.prerelease.length === 0) {
  7514. this.major++
  7515. }
  7516. this.minor = 0
  7517. this.patch = 0
  7518. this.prerelease = []
  7519. break
  7520. case 'minor':
  7521. // If this is a pre-minor version, bump up to the same minor version.
  7522. // Otherwise increment minor.
  7523. // 1.2.0-5 bumps to 1.2.0
  7524. // 1.2.1 bumps to 1.3.0
  7525. if (this.patch !== 0 || this.prerelease.length === 0) {
  7526. this.minor++
  7527. }
  7528. this.patch = 0
  7529. this.prerelease = []
  7530. break
  7531. case 'patch':
  7532. // If this is not a pre-release version, it will increment the patch.
  7533. // If it is a pre-release it will bump up to the same patch version.
  7534. // 1.2.0-5 patches to 1.2.0
  7535. // 1.2.0 patches to 1.2.1
  7536. if (this.prerelease.length === 0) {
  7537. this.patch++
  7538. }
  7539. this.prerelease = []
  7540. break
  7541. // This probably shouldn't be used publicly.
  7542. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  7543. case 'pre':
  7544. if (this.prerelease.length === 0) {
  7545. this.prerelease = [0]
  7546. } else {
  7547. var i = this.prerelease.length
  7548. while (--i >= 0) {
  7549. if (typeof this.prerelease[i] === 'number') {
  7550. this.prerelease[i]++
  7551. i = -2
  7552. }
  7553. }
  7554. if (i === -1) {
  7555. // didn't increment anything
  7556. this.prerelease.push(0)
  7557. }
  7558. }
  7559. if (identifier) {
  7560. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  7561. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  7562. if (this.prerelease[0] === identifier) {
  7563. if (isNaN(this.prerelease[1])) {
  7564. this.prerelease = [identifier, 0]
  7565. }
  7566. } else {
  7567. this.prerelease = [identifier, 0]
  7568. }
  7569. }
  7570. break
  7571. default:
  7572. throw new Error('invalid increment argument: ' + release)
  7573. }
  7574. this.format()
  7575. this.raw = this.version
  7576. return this
  7577. }
  7578. exports.inc = inc
  7579. function inc (version, release, loose, identifier) {
  7580. if (typeof (loose) === 'string') {
  7581. identifier = loose
  7582. loose = undefined
  7583. }
  7584. try {
  7585. return new SemVer(version, loose).inc(release, identifier).version
  7586. } catch (er) {
  7587. return null
  7588. }
  7589. }
  7590. exports.diff = diff
  7591. function diff (version1, version2) {
  7592. if (eq(version1, version2)) {
  7593. return null
  7594. } else {
  7595. var v1 = parse(version1)
  7596. var v2 = parse(version2)
  7597. var prefix = ''
  7598. if (v1.prerelease.length || v2.prerelease.length) {
  7599. prefix = 'pre'
  7600. var defaultResult = 'prerelease'
  7601. }
  7602. for (var key in v1) {
  7603. if (key === 'major' || key === 'minor' || key === 'patch') {
  7604. if (v1[key] !== v2[key]) {
  7605. return prefix + key
  7606. }
  7607. }
  7608. }
  7609. return defaultResult // may be undefined
  7610. }
  7611. }
  7612. exports.compareIdentifiers = compareIdentifiers
  7613. var numeric = /^[0-9]+$/
  7614. function compareIdentifiers (a, b) {
  7615. var anum = numeric.test(a)
  7616. var bnum = numeric.test(b)
  7617. if (anum && bnum) {
  7618. a = +a
  7619. b = +b
  7620. }
  7621. return a === b ? 0
  7622. : (anum && !bnum) ? -1
  7623. : (bnum && !anum) ? 1
  7624. : a < b ? -1
  7625. : 1
  7626. }
  7627. exports.rcompareIdentifiers = rcompareIdentifiers
  7628. function rcompareIdentifiers (a, b) {
  7629. return compareIdentifiers(b, a)
  7630. }
  7631. exports.major = major
  7632. function major (a, loose) {
  7633. return new SemVer(a, loose).major
  7634. }
  7635. exports.minor = minor
  7636. function minor (a, loose) {
  7637. return new SemVer(a, loose).minor
  7638. }
  7639. exports.patch = patch
  7640. function patch (a, loose) {
  7641. return new SemVer(a, loose).patch
  7642. }
  7643. exports.compare = compare
  7644. function compare (a, b, loose) {
  7645. return new SemVer(a, loose).compare(new SemVer(b, loose))
  7646. }
  7647. exports.compareLoose = compareLoose
  7648. function compareLoose (a, b) {
  7649. return compare(a, b, true)
  7650. }
  7651. exports.compareBuild = compareBuild
  7652. function compareBuild (a, b, loose) {
  7653. var versionA = new SemVer(a, loose)
  7654. var versionB = new SemVer(b, loose)
  7655. return versionA.compare(versionB) || versionA.compareBuild(versionB)
  7656. }
  7657. exports.rcompare = rcompare
  7658. function rcompare (a, b, loose) {
  7659. return compare(b, a, loose)
  7660. }
  7661. exports.sort = sort
  7662. function sort (list, loose) {
  7663. return list.sort(function (a, b) {
  7664. return exports.compareBuild(a, b, loose)
  7665. })
  7666. }
  7667. exports.rsort = rsort
  7668. function rsort (list, loose) {
  7669. return list.sort(function (a, b) {
  7670. return exports.compareBuild(b, a, loose)
  7671. })
  7672. }
  7673. exports.gt = gt
  7674. function gt (a, b, loose) {
  7675. return compare(a, b, loose) > 0
  7676. }
  7677. exports.lt = lt
  7678. function lt (a, b, loose) {
  7679. return compare(a, b, loose) < 0
  7680. }
  7681. exports.eq = eq
  7682. function eq (a, b, loose) {
  7683. return compare(a, b, loose) === 0
  7684. }
  7685. exports.neq = neq
  7686. function neq (a, b, loose) {
  7687. return compare(a, b, loose) !== 0
  7688. }
  7689. exports.gte = gte
  7690. function gte (a, b, loose) {
  7691. return compare(a, b, loose) >= 0
  7692. }
  7693. exports.lte = lte
  7694. function lte (a, b, loose) {
  7695. return compare(a, b, loose) <= 0
  7696. }
  7697. exports.cmp = cmp
  7698. function cmp (a, op, b, loose) {
  7699. switch (op) {
  7700. case '===':
  7701. if (typeof a === 'object')
  7702. a = a.version
  7703. if (typeof b === 'object')
  7704. b = b.version
  7705. return a === b
  7706. case '!==':
  7707. if (typeof a === 'object')
  7708. a = a.version
  7709. if (typeof b === 'object')
  7710. b = b.version
  7711. return a !== b
  7712. case '':
  7713. case '=':
  7714. case '==':
  7715. return eq(a, b, loose)
  7716. case '!=':
  7717. return neq(a, b, loose)
  7718. case '>':
  7719. return gt(a, b, loose)
  7720. case '>=':
  7721. return gte(a, b, loose)
  7722. case '<':
  7723. return lt(a, b, loose)
  7724. case '<=':
  7725. return lte(a, b, loose)
  7726. default:
  7727. throw new TypeError('Invalid operator: ' + op)
  7728. }
  7729. }
  7730. exports.Comparator = Comparator
  7731. function Comparator (comp, options) {
  7732. if (!options || typeof options !== 'object') {
  7733. options = {
  7734. loose: !!options,
  7735. includePrerelease: false
  7736. }
  7737. }
  7738. if (comp instanceof Comparator) {
  7739. if (comp.loose === !!options.loose) {
  7740. return comp
  7741. } else {
  7742. comp = comp.value
  7743. }
  7744. }
  7745. if (!(this instanceof Comparator)) {
  7746. return new Comparator(comp, options)
  7747. }
  7748. debug('comparator', comp, options)
  7749. this.options = options
  7750. this.loose = !!options.loose
  7751. this.parse(comp)
  7752. if (this.semver === ANY) {
  7753. this.value = ''
  7754. } else {
  7755. this.value = this.operator + this.semver.version
  7756. }
  7757. debug('comp', this)
  7758. }
  7759. var ANY = {}
  7760. Comparator.prototype.parse = function (comp) {
  7761. var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  7762. var m = comp.match(r)
  7763. if (!m) {
  7764. throw new TypeError('Invalid comparator: ' + comp)
  7765. }
  7766. this.operator = m[1] !== undefined ? m[1] : ''
  7767. if (this.operator === '=') {
  7768. this.operator = ''
  7769. }
  7770. // if it literally is just '>' or '' then allow anything.
  7771. if (!m[2]) {
  7772. this.semver = ANY
  7773. } else {
  7774. this.semver = new SemVer(m[2], this.options.loose)
  7775. }
  7776. }
  7777. Comparator.prototype.toString = function () {
  7778. return this.value
  7779. }
  7780. Comparator.prototype.test = function (version) {
  7781. debug('Comparator.test', version, this.options.loose)
  7782. if (this.semver === ANY || version === ANY) {
  7783. return true
  7784. }
  7785. if (typeof version === 'string') {
  7786. try {
  7787. version = new SemVer(version, this.options)
  7788. } catch (er) {
  7789. return false
  7790. }
  7791. }
  7792. return cmp(version, this.operator, this.semver, this.options)
  7793. }
  7794. Comparator.prototype.intersects = function (comp, options) {
  7795. if (!(comp instanceof Comparator)) {
  7796. throw new TypeError('a Comparator is required')
  7797. }
  7798. if (!options || typeof options !== 'object') {
  7799. options = {
  7800. loose: !!options,
  7801. includePrerelease: false
  7802. }
  7803. }
  7804. var rangeTmp
  7805. if (this.operator === '') {
  7806. if (this.value === '') {
  7807. return true
  7808. }
  7809. rangeTmp = new Range(comp.value, options)
  7810. return satisfies(this.value, rangeTmp, options)
  7811. } else if (comp.operator === '') {
  7812. if (comp.value === '') {
  7813. return true
  7814. }
  7815. rangeTmp = new Range(this.value, options)
  7816. return satisfies(comp.semver, rangeTmp, options)
  7817. }
  7818. var sameDirectionIncreasing =
  7819. (this.operator === '>=' || this.operator === '>') &&
  7820. (comp.operator === '>=' || comp.operator === '>')
  7821. var sameDirectionDecreasing =
  7822. (this.operator === '<=' || this.operator === '<') &&
  7823. (comp.operator === '<=' || comp.operator === '<')
  7824. var sameSemVer = this.semver.version === comp.semver.version
  7825. var differentDirectionsInclusive =
  7826. (this.operator === '>=' || this.operator === '<=') &&
  7827. (comp.operator === '>=' || comp.operator === '<=')
  7828. var oppositeDirectionsLessThan =
  7829. cmp(this.semver, '<', comp.semver, options) &&
  7830. ((this.operator === '>=' || this.operator === '>') &&
  7831. (comp.operator === '<=' || comp.operator === '<'))
  7832. var oppositeDirectionsGreaterThan =
  7833. cmp(this.semver, '>', comp.semver, options) &&
  7834. ((this.operator === '<=' || this.operator === '<') &&
  7835. (comp.operator === '>=' || comp.operator === '>'))
  7836. return sameDirectionIncreasing || sameDirectionDecreasing ||
  7837. (sameSemVer && differentDirectionsInclusive) ||
  7838. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  7839. }
  7840. exports.Range = Range
  7841. function Range (range, options) {
  7842. if (!options || typeof options !== 'object') {
  7843. options = {
  7844. loose: !!options,
  7845. includePrerelease: false
  7846. }
  7847. }
  7848. if (range instanceof Range) {
  7849. if (range.loose === !!options.loose &&
  7850. range.includePrerelease === !!options.includePrerelease) {
  7851. return range
  7852. } else {
  7853. return new Range(range.raw, options)
  7854. }
  7855. }
  7856. if (range instanceof Comparator) {
  7857. return new Range(range.value, options)
  7858. }
  7859. if (!(this instanceof Range)) {
  7860. return new Range(range, options)
  7861. }
  7862. this.options = options
  7863. this.loose = !!options.loose
  7864. this.includePrerelease = !!options.includePrerelease
  7865. // First, split based on boolean or ||
  7866. this.raw = range
  7867. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  7868. return this.parseRange(range.trim())
  7869. }, this).filter(function (c) {
  7870. // throw out any that are not relevant for whatever reason
  7871. return c.length
  7872. })
  7873. if (!this.set.length) {
  7874. throw new TypeError('Invalid SemVer Range: ' + range)
  7875. }
  7876. this.format()
  7877. }
  7878. Range.prototype.format = function () {
  7879. this.range = this.set.map(function (comps) {
  7880. return comps.join(' ').trim()
  7881. }).join('||').trim()
  7882. return this.range
  7883. }
  7884. Range.prototype.toString = function () {
  7885. return this.range
  7886. }
  7887. Range.prototype.parseRange = function (range) {
  7888. var loose = this.options.loose
  7889. range = range.trim()
  7890. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  7891. var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
  7892. range = range.replace(hr, hyphenReplace)
  7893. debug('hyphen replace', range)
  7894. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  7895. range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
  7896. debug('comparator trim', range, re[t.COMPARATORTRIM])
  7897. // `~ 1.2.3` => `~1.2.3`
  7898. range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
  7899. // `^ 1.2.3` => `^1.2.3`
  7900. range = range.replace(re[t.CARETTRIM], caretTrimReplace)
  7901. // normalize spaces
  7902. range = range.split(/\s+/).join(' ')
  7903. // At this point, the range is completely trimmed and
  7904. // ready to be split into comparators.
  7905. var compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  7906. var set = range.split(' ').map(function (comp) {
  7907. return parseComparator(comp, this.options)
  7908. }, this).join(' ').split(/\s+/)
  7909. if (this.options.loose) {
  7910. // in loose mode, throw out any that are not valid comparators
  7911. set = set.filter(function (comp) {
  7912. return !!comp.match(compRe)
  7913. })
  7914. }
  7915. set = set.map(function (comp) {
  7916. return new Comparator(comp, this.options)
  7917. }, this)
  7918. return set
  7919. }
  7920. Range.prototype.intersects = function (range, options) {
  7921. if (!(range instanceof Range)) {
  7922. throw new TypeError('a Range is required')
  7923. }
  7924. return this.set.some(function (thisComparators) {
  7925. return (
  7926. isSatisfiable(thisComparators, options) &&
  7927. range.set.some(function (rangeComparators) {
  7928. return (
  7929. isSatisfiable(rangeComparators, options) &&
  7930. thisComparators.every(function (thisComparator) {
  7931. return rangeComparators.every(function (rangeComparator) {
  7932. return thisComparator.intersects(rangeComparator, options)
  7933. })
  7934. })
  7935. )
  7936. })
  7937. )
  7938. })
  7939. }
  7940. // take a set of comparators and determine whether there
  7941. // exists a version which can satisfy it
  7942. function isSatisfiable (comparators, options) {
  7943. var result = true
  7944. var remainingComparators = comparators.slice()
  7945. var testComparator = remainingComparators.pop()
  7946. while (result && remainingComparators.length) {
  7947. result = remainingComparators.every(function (otherComparator) {
  7948. return testComparator.intersects(otherComparator, options)
  7949. })
  7950. testComparator = remainingComparators.pop()
  7951. }
  7952. return result
  7953. }
  7954. // Mostly just for testing and legacy API reasons
  7955. exports.toComparators = toComparators
  7956. function toComparators (range, options) {
  7957. return new Range(range, options).set.map(function (comp) {
  7958. return comp.map(function (c) {
  7959. return c.value
  7960. }).join(' ').trim().split(' ')
  7961. })
  7962. }
  7963. // comprised of xranges, tildes, stars, and gtlt's at this point.
  7964. // already replaced the hyphen ranges
  7965. // turn into a set of JUST comparators.
  7966. function parseComparator (comp, options) {
  7967. debug('comp', comp, options)
  7968. comp = replaceCarets(comp, options)
  7969. debug('caret', comp)
  7970. comp = replaceTildes(comp, options)
  7971. debug('tildes', comp)
  7972. comp = replaceXRanges(comp, options)
  7973. debug('xrange', comp)
  7974. comp = replaceStars(comp, options)
  7975. debug('stars', comp)
  7976. return comp
  7977. }
  7978. function isX (id) {
  7979. return !id || id.toLowerCase() === 'x' || id === '*'
  7980. }
  7981. // ~, ~> --> * (any, kinda silly)
  7982. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  7983. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  7984. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  7985. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  7986. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  7987. function replaceTildes (comp, options) {
  7988. return comp.trim().split(/\s+/).map(function (comp) {
  7989. return replaceTilde(comp, options)
  7990. }).join(' ')
  7991. }
  7992. function replaceTilde (comp, options) {
  7993. var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
  7994. return comp.replace(r, function (_, M, m, p, pr) {
  7995. debug('tilde', comp, _, M, m, p, pr)
  7996. var ret
  7997. if (isX(M)) {
  7998. ret = ''
  7999. } else if (isX(m)) {
  8000. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  8001. } else if (isX(p)) {
  8002. // ~1.2 == >=1.2.0 <1.3.0
  8003. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  8004. } else if (pr) {
  8005. debug('replaceTilde pr', pr)
  8006. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8007. ' <' + M + '.' + (+m + 1) + '.0'
  8008. } else {
  8009. // ~1.2.3 == >=1.2.3 <1.3.0
  8010. ret = '>=' + M + '.' + m + '.' + p +
  8011. ' <' + M + '.' + (+m + 1) + '.0'
  8012. }
  8013. debug('tilde return', ret)
  8014. return ret
  8015. })
  8016. }
  8017. // ^ --> * (any, kinda silly)
  8018. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  8019. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  8020. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  8021. // ^1.2.3 --> >=1.2.3 <2.0.0
  8022. // ^1.2.0 --> >=1.2.0 <2.0.0
  8023. function replaceCarets (comp, options) {
  8024. return comp.trim().split(/\s+/).map(function (comp) {
  8025. return replaceCaret(comp, options)
  8026. }).join(' ')
  8027. }
  8028. function replaceCaret (comp, options) {
  8029. debug('caret', comp, options)
  8030. var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
  8031. return comp.replace(r, function (_, M, m, p, pr) {
  8032. debug('caret', comp, _, M, m, p, pr)
  8033. var ret
  8034. if (isX(M)) {
  8035. ret = ''
  8036. } else if (isX(m)) {
  8037. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  8038. } else if (isX(p)) {
  8039. if (M === '0') {
  8040. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  8041. } else {
  8042. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  8043. }
  8044. } else if (pr) {
  8045. debug('replaceCaret pr', pr)
  8046. if (M === '0') {
  8047. if (m === '0') {
  8048. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8049. ' <' + M + '.' + m + '.' + (+p + 1)
  8050. } else {
  8051. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8052. ' <' + M + '.' + (+m + 1) + '.0'
  8053. }
  8054. } else {
  8055. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8056. ' <' + (+M + 1) + '.0.0'
  8057. }
  8058. } else {
  8059. debug('no pr')
  8060. if (M === '0') {
  8061. if (m === '0') {
  8062. ret = '>=' + M + '.' + m + '.' + p +
  8063. ' <' + M + '.' + m + '.' + (+p + 1)
  8064. } else {
  8065. ret = '>=' + M + '.' + m + '.' + p +
  8066. ' <' + M + '.' + (+m + 1) + '.0'
  8067. }
  8068. } else {
  8069. ret = '>=' + M + '.' + m + '.' + p +
  8070. ' <' + (+M + 1) + '.0.0'
  8071. }
  8072. }
  8073. debug('caret return', ret)
  8074. return ret
  8075. })
  8076. }
  8077. function replaceXRanges (comp, options) {
  8078. debug('replaceXRanges', comp, options)
  8079. return comp.split(/\s+/).map(function (comp) {
  8080. return replaceXRange(comp, options)
  8081. }).join(' ')
  8082. }
  8083. function replaceXRange (comp, options) {
  8084. comp = comp.trim()
  8085. var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
  8086. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  8087. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  8088. var xM = isX(M)
  8089. var xm = xM || isX(m)
  8090. var xp = xm || isX(p)
  8091. var anyX = xp
  8092. if (gtlt === '=' && anyX) {
  8093. gtlt = ''
  8094. }
  8095. // if we're including prereleases in the match, then we need
  8096. // to fix this to -0, the lowest possible prerelease value
  8097. pr = options.includePrerelease ? '-0' : ''
  8098. if (xM) {
  8099. if (gtlt === '>' || gtlt === '<') {
  8100. // nothing is allowed
  8101. ret = '<0.0.0-0'
  8102. } else {
  8103. // nothing is forbidden
  8104. ret = '*'
  8105. }
  8106. } else if (gtlt && anyX) {
  8107. // we know patch is an x, because we have any x at all.
  8108. // replace X with 0
  8109. if (xm) {
  8110. m = 0
  8111. }
  8112. p = 0
  8113. if (gtlt === '>') {
  8114. // >1 => >=2.0.0
  8115. // >1.2 => >=1.3.0
  8116. // >1.2.3 => >= 1.2.4
  8117. gtlt = '>='
  8118. if (xm) {
  8119. M = +M + 1
  8120. m = 0
  8121. p = 0
  8122. } else {
  8123. m = +m + 1
  8124. p = 0
  8125. }
  8126. } else if (gtlt === '<=') {
  8127. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  8128. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  8129. gtlt = '<'
  8130. if (xm) {
  8131. M = +M + 1
  8132. } else {
  8133. m = +m + 1
  8134. }
  8135. }
  8136. ret = gtlt + M + '.' + m + '.' + p + pr
  8137. } else if (xm) {
  8138. ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr
  8139. } else if (xp) {
  8140. ret = '>=' + M + '.' + m + '.0' + pr +
  8141. ' <' + M + '.' + (+m + 1) + '.0' + pr
  8142. }
  8143. debug('xRange return', ret)
  8144. return ret
  8145. })
  8146. }
  8147. // Because * is AND-ed with everything else in the comparator,
  8148. // and '' means "any version", just remove the *s entirely.
  8149. function replaceStars (comp, options) {
  8150. debug('replaceStars', comp, options)
  8151. // Looseness is ignored here. star is always as loose as it gets!
  8152. return comp.trim().replace(re[t.STAR], '')
  8153. }
  8154. // This function is passed to string.replace(re[t.HYPHENRANGE])
  8155. // M, m, patch, prerelease, build
  8156. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  8157. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  8158. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  8159. function hyphenReplace ($0,
  8160. from, fM, fm, fp, fpr, fb,
  8161. to, tM, tm, tp, tpr, tb) {
  8162. if (isX(fM)) {
  8163. from = ''
  8164. } else if (isX(fm)) {
  8165. from = '>=' + fM + '.0.0'
  8166. } else if (isX(fp)) {
  8167. from = '>=' + fM + '.' + fm + '.0'
  8168. } else {
  8169. from = '>=' + from
  8170. }
  8171. if (isX(tM)) {
  8172. to = ''
  8173. } else if (isX(tm)) {
  8174. to = '<' + (+tM + 1) + '.0.0'
  8175. } else if (isX(tp)) {
  8176. to = '<' + tM + '.' + (+tm + 1) + '.0'
  8177. } else if (tpr) {
  8178. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  8179. } else {
  8180. to = '<=' + to
  8181. }
  8182. return (from + ' ' + to).trim()
  8183. }
  8184. // if ANY of the sets match ALL of its comparators, then pass
  8185. Range.prototype.test = function (version) {
  8186. if (!version) {
  8187. return false
  8188. }
  8189. if (typeof version === 'string') {
  8190. try {
  8191. version = new SemVer(version, this.options)
  8192. } catch (er) {
  8193. return false
  8194. }
  8195. }
  8196. for (var i = 0; i < this.set.length; i++) {
  8197. if (testSet(this.set[i], version, this.options)) {
  8198. return true
  8199. }
  8200. }
  8201. return false
  8202. }
  8203. function testSet (set, version, options) {
  8204. for (var i = 0; i < set.length; i++) {
  8205. if (!set[i].test(version)) {
  8206. return false
  8207. }
  8208. }
  8209. if (version.prerelease.length && !options.includePrerelease) {
  8210. // Find the set of versions that are allowed to have prereleases
  8211. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  8212. // That should allow `1.2.3-pr.2` to pass.
  8213. // However, `1.2.4-alpha.notready` should NOT be allowed,
  8214. // even though it's within the range set by the comparators.
  8215. for (i = 0; i < set.length; i++) {
  8216. debug(set[i].semver)
  8217. if (set[i].semver === ANY) {
  8218. continue
  8219. }
  8220. if (set[i].semver.prerelease.length > 0) {
  8221. var allowed = set[i].semver
  8222. if (allowed.major === version.major &&
  8223. allowed.minor === version.minor &&
  8224. allowed.patch === version.patch) {
  8225. return true
  8226. }
  8227. }
  8228. }
  8229. // Version has a -pre, but it's not one of the ones we like.
  8230. return false
  8231. }
  8232. return true
  8233. }
  8234. exports.satisfies = satisfies
  8235. function satisfies (version, range, options) {
  8236. try {
  8237. range = new Range(range, options)
  8238. } catch (er) {
  8239. return false
  8240. }
  8241. return range.test(version)
  8242. }
  8243. exports.maxSatisfying = maxSatisfying
  8244. function maxSatisfying (versions, range, options) {
  8245. var max = null
  8246. var maxSV = null
  8247. try {
  8248. var rangeObj = new Range(range, options)
  8249. } catch (er) {
  8250. return null
  8251. }
  8252. versions.forEach(function (v) {
  8253. if (rangeObj.test(v)) {
  8254. // satisfies(v, range, options)
  8255. if (!max || maxSV.compare(v) === -1) {
  8256. // compare(max, v, true)
  8257. max = v
  8258. maxSV = new SemVer(max, options)
  8259. }
  8260. }
  8261. })
  8262. return max
  8263. }
  8264. exports.minSatisfying = minSatisfying
  8265. function minSatisfying (versions, range, options) {
  8266. var min = null
  8267. var minSV = null
  8268. try {
  8269. var rangeObj = new Range(range, options)
  8270. } catch (er) {
  8271. return null
  8272. }
  8273. versions.forEach(function (v) {
  8274. if (rangeObj.test(v)) {
  8275. // satisfies(v, range, options)
  8276. if (!min || minSV.compare(v) === 1) {
  8277. // compare(min, v, true)
  8278. min = v
  8279. minSV = new SemVer(min, options)
  8280. }
  8281. }
  8282. })
  8283. return min
  8284. }
  8285. exports.minVersion = minVersion
  8286. function minVersion (range, loose) {
  8287. range = new Range(range, loose)
  8288. var minver = new SemVer('0.0.0')
  8289. if (range.test(minver)) {
  8290. return minver
  8291. }
  8292. minver = new SemVer('0.0.0-0')
  8293. if (range.test(minver)) {
  8294. return minver
  8295. }
  8296. minver = null
  8297. for (var i = 0; i < range.set.length; ++i) {
  8298. var comparators = range.set[i]
  8299. comparators.forEach(function (comparator) {
  8300. // Clone to avoid manipulating the comparator's semver object.
  8301. var compver = new SemVer(comparator.semver.version)
  8302. switch (comparator.operator) {
  8303. case '>':
  8304. if (compver.prerelease.length === 0) {
  8305. compver.patch++
  8306. } else {
  8307. compver.prerelease.push(0)
  8308. }
  8309. compver.raw = compver.format()
  8310. /* fallthrough */
  8311. case '':
  8312. case '>=':
  8313. if (!minver || gt(minver, compver)) {
  8314. minver = compver
  8315. }
  8316. break
  8317. case '<':
  8318. case '<=':
  8319. /* Ignore maximum versions */
  8320. break
  8321. /* istanbul ignore next */
  8322. default:
  8323. throw new Error('Unexpected operation: ' + comparator.operator)
  8324. }
  8325. })
  8326. }
  8327. if (minver && range.test(minver)) {
  8328. return minver
  8329. }
  8330. return null
  8331. }
  8332. exports.validRange = validRange
  8333. function validRange (range, options) {
  8334. try {
  8335. // Return '*' instead of '' so that truthiness works.
  8336. // This will throw if it's invalid anyway
  8337. return new Range(range, options).range || '*'
  8338. } catch (er) {
  8339. return null
  8340. }
  8341. }
  8342. // Determine if version is less than all the versions possible in the range
  8343. exports.ltr = ltr
  8344. function ltr (version, range, options) {
  8345. return outside(version, range, '<', options)
  8346. }
  8347. // Determine if version is greater than all the versions possible in the range.
  8348. exports.gtr = gtr
  8349. function gtr (version, range, options) {
  8350. return outside(version, range, '>', options)
  8351. }
  8352. exports.outside = outside
  8353. function outside (version, range, hilo, options) {
  8354. version = new SemVer(version, options)
  8355. range = new Range(range, options)
  8356. var gtfn, ltefn, ltfn, comp, ecomp
  8357. switch (hilo) {
  8358. case '>':
  8359. gtfn = gt
  8360. ltefn = lte
  8361. ltfn = lt
  8362. comp = '>'
  8363. ecomp = '>='
  8364. break
  8365. case '<':
  8366. gtfn = lt
  8367. ltefn = gte
  8368. ltfn = gt
  8369. comp = '<'
  8370. ecomp = '<='
  8371. break
  8372. default:
  8373. throw new TypeError('Must provide a hilo val of "<" or ">"')
  8374. }
  8375. // If it satisifes the range it is not outside
  8376. if (satisfies(version, range, options)) {
  8377. return false
  8378. }
  8379. // From now on, variable terms are as if we're in "gtr" mode.
  8380. // but note that everything is flipped for the "ltr" function.
  8381. for (var i = 0; i < range.set.length; ++i) {
  8382. var comparators = range.set[i]
  8383. var high = null
  8384. var low = null
  8385. comparators.forEach(function (comparator) {
  8386. if (comparator.semver === ANY) {
  8387. comparator = new Comparator('>=0.0.0')
  8388. }
  8389. high = high || comparator
  8390. low = low || comparator
  8391. if (gtfn(comparator.semver, high.semver, options)) {
  8392. high = comparator
  8393. } else if (ltfn(comparator.semver, low.semver, options)) {
  8394. low = comparator
  8395. }
  8396. })
  8397. // If the edge version comparator has a operator then our version
  8398. // isn't outside it
  8399. if (high.operator === comp || high.operator === ecomp) {
  8400. return false
  8401. }
  8402. // If the lowest version comparator has an operator and our version
  8403. // is less than it then it isn't higher than the range
  8404. if ((!low.operator || low.operator === comp) &&
  8405. ltefn(version, low.semver)) {
  8406. return false
  8407. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  8408. return false
  8409. }
  8410. }
  8411. return true
  8412. }
  8413. exports.prerelease = prerelease
  8414. function prerelease (version, options) {
  8415. var parsed = parse(version, options)
  8416. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  8417. }
  8418. exports.intersects = intersects
  8419. function intersects (r1, r2, options) {
  8420. r1 = new Range(r1, options)
  8421. r2 = new Range(r2, options)
  8422. return r1.intersects(r2)
  8423. }
  8424. exports.coerce = coerce
  8425. function coerce (version, options) {
  8426. if (version instanceof SemVer) {
  8427. return version
  8428. }
  8429. if (typeof version === 'number') {
  8430. version = String(version)
  8431. }
  8432. if (typeof version !== 'string') {
  8433. return null
  8434. }
  8435. options = options || {}
  8436. var match = null
  8437. if (!options.rtl) {
  8438. match = version.match(re[t.COERCE])
  8439. } else {
  8440. // Find the right-most coercible string that does not share
  8441. // a terminus with a more left-ward coercible string.
  8442. // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
  8443. //
  8444. // Walk through the string checking with a /g regexp
  8445. // Manually set the index so as to pick up overlapping matches.
  8446. // Stop when we get a match that ends at the string end, since no
  8447. // coercible string can be more right-ward without the same terminus.
  8448. var next
  8449. while ((next = re[t.COERCERTL].exec(version)) &&
  8450. (!match || match.index + match[0].length !== version.length)
  8451. ) {
  8452. if (!match ||
  8453. next.index + next[0].length !== match.index + match[0].length) {
  8454. match = next
  8455. }
  8456. re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
  8457. }
  8458. // leave it in a clean state
  8459. re[t.COERCERTL].lastIndex = -1
  8460. }
  8461. if (match === null) {
  8462. return null
  8463. }
  8464. return parse(match[2] +
  8465. '.' + (match[3] || '0') +
  8466. '.' + (match[4] || '0'), options)
  8467. }
  8468. /***/ }),
  8469. /***/ 334:
  8470. /***/ ((__unused_webpack_module, exports) => {
  8471. "use strict";
  8472. Object.defineProperty(exports, "__esModule", ({ value: true }));
  8473. async function auth(token) {
  8474. const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
  8475. return {
  8476. type: "token",
  8477. token: token,
  8478. tokenType
  8479. };
  8480. }
  8481. /**
  8482. * Prefix token for usage in the Authorization header
  8483. *
  8484. * @param token OAuth token or JSON Web Token
  8485. */
  8486. function withAuthorizationPrefix(token) {
  8487. if (token.split(/\./).length === 3) {
  8488. return `bearer ${token}`;
  8489. }
  8490. return `token ${token}`;
  8491. }
  8492. async function hook(token, request, route, parameters) {
  8493. const endpoint = request.endpoint.merge(route, parameters);
  8494. endpoint.headers.authorization = withAuthorizationPrefix(token);
  8495. return request(endpoint);
  8496. }
  8497. const createTokenAuth = function createTokenAuth(token) {
  8498. if (!token) {
  8499. throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
  8500. }
  8501. if (typeof token !== "string") {
  8502. throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
  8503. }
  8504. token = token.replace(/^(token|bearer) +/i, "");
  8505. return Object.assign(auth.bind(null, token), {
  8506. hook: hook.bind(null, token)
  8507. });
  8508. };
  8509. exports.createTokenAuth = createTokenAuth;
  8510. //# sourceMappingURL=index.js.map
  8511. /***/ }),
  8512. /***/ 9440:
  8513. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  8514. "use strict";
  8515. Object.defineProperty(exports, "__esModule", ({ value: true }));
  8516. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  8517. var isPlainObject = _interopDefault(__nccwpck_require__(8840));
  8518. var universalUserAgent = __nccwpck_require__(1292);
  8519. function lowercaseKeys(object) {
  8520. if (!object) {
  8521. return {};
  8522. }
  8523. return Object.keys(object).reduce((newObj, key) => {
  8524. newObj[key.toLowerCase()] = object[key];
  8525. return newObj;
  8526. }, {});
  8527. }
  8528. function mergeDeep(defaults, options) {
  8529. const result = Object.assign({}, defaults);
  8530. Object.keys(options).forEach(key => {
  8531. if (isPlainObject(options[key])) {
  8532. if (!(key in defaults)) Object.assign(result, {
  8533. [key]: options[key]
  8534. });else result[key] = mergeDeep(defaults[key], options[key]);
  8535. } else {
  8536. Object.assign(result, {
  8537. [key]: options[key]
  8538. });
  8539. }
  8540. });
  8541. return result;
  8542. }
  8543. function merge(defaults, route, options) {
  8544. if (typeof route === "string") {
  8545. let [method, url] = route.split(" ");
  8546. options = Object.assign(url ? {
  8547. method,
  8548. url
  8549. } : {
  8550. url: method
  8551. }, options);
  8552. } else {
  8553. options = Object.assign({}, route);
  8554. } // lowercase header names before merging with defaults to avoid duplicates
  8555. options.headers = lowercaseKeys(options.headers);
  8556. const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten
  8557. if (defaults && defaults.mediaType.previews.length) {
  8558. mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
  8559. }
  8560. mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, ""));
  8561. return mergedOptions;
  8562. }
  8563. function addQueryParameters(url, parameters) {
  8564. const separator = /\?/.test(url) ? "&" : "?";
  8565. const names = Object.keys(parameters);
  8566. if (names.length === 0) {
  8567. return url;
  8568. }
  8569. return url + separator + names.map(name => {
  8570. if (name === "q") {
  8571. return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
  8572. }
  8573. return `${name}=${encodeURIComponent(parameters[name])}`;
  8574. }).join("&");
  8575. }
  8576. const urlVariableRegex = /\{[^}]+\}/g;
  8577. function removeNonChars(variableName) {
  8578. return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
  8579. }
  8580. function extractUrlVariableNames(url) {
  8581. const matches = url.match(urlVariableRegex);
  8582. if (!matches) {
  8583. return [];
  8584. }
  8585. return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
  8586. }
  8587. function omit(object, keysToOmit) {
  8588. return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => {
  8589. obj[key] = object[key];
  8590. return obj;
  8591. }, {});
  8592. }
  8593. // Based on https://github.com/bramstein/url-template, licensed under BSD
  8594. // TODO: create separate package.
  8595. //
  8596. // Copyright (c) 2012-2014, Bram Stein
  8597. // All rights reserved.
  8598. // Redistribution and use in source and binary forms, with or without
  8599. // modification, are permitted provided that the following conditions
  8600. // are met:
  8601. // 1. Redistributions of source code must retain the above copyright
  8602. // notice, this list of conditions and the following disclaimer.
  8603. // 2. Redistributions in binary form must reproduce the above copyright
  8604. // notice, this list of conditions and the following disclaimer in the
  8605. // documentation and/or other materials provided with the distribution.
  8606. // 3. The name of the author may not be used to endorse or promote products
  8607. // derived from this software without specific prior written permission.
  8608. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
  8609. // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  8610. // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
  8611. // EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  8612. // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  8613. // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  8614. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  8615. // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  8616. // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  8617. // EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  8618. /* istanbul ignore file */
  8619. function encodeReserved(str) {
  8620. return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) {
  8621. if (!/%[0-9A-Fa-f]/.test(part)) {
  8622. part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
  8623. }
  8624. return part;
  8625. }).join("");
  8626. }
  8627. function encodeUnreserved(str) {
  8628. return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
  8629. return "%" + c.charCodeAt(0).toString(16).toUpperCase();
  8630. });
  8631. }
  8632. function encodeValue(operator, value, key) {
  8633. value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
  8634. if (key) {
  8635. return encodeUnreserved(key) + "=" + value;
  8636. } else {
  8637. return value;
  8638. }
  8639. }
  8640. function isDefined(value) {
  8641. return value !== undefined && value !== null;
  8642. }
  8643. function isKeyOperator(operator) {
  8644. return operator === ";" || operator === "&" || operator === "?";
  8645. }
  8646. function getValues(context, operator, key, modifier) {
  8647. var value = context[key],
  8648. result = [];
  8649. if (isDefined(value) && value !== "") {
  8650. if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
  8651. value = value.toString();
  8652. if (modifier && modifier !== "*") {
  8653. value = value.substring(0, parseInt(modifier, 10));
  8654. }
  8655. result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
  8656. } else {
  8657. if (modifier === "*") {
  8658. if (Array.isArray(value)) {
  8659. value.filter(isDefined).forEach(function (value) {
  8660. result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
  8661. });
  8662. } else {
  8663. Object.keys(value).forEach(function (k) {
  8664. if (isDefined(value[k])) {
  8665. result.push(encodeValue(operator, value[k], k));
  8666. }
  8667. });
  8668. }
  8669. } else {
  8670. const tmp = [];
  8671. if (Array.isArray(value)) {
  8672. value.filter(isDefined).forEach(function (value) {
  8673. tmp.push(encodeValue(operator, value));
  8674. });
  8675. } else {
  8676. Object.keys(value).forEach(function (k) {
  8677. if (isDefined(value[k])) {
  8678. tmp.push(encodeUnreserved(k));
  8679. tmp.push(encodeValue(operator, value[k].toString()));
  8680. }
  8681. });
  8682. }
  8683. if (isKeyOperator(operator)) {
  8684. result.push(encodeUnreserved(key) + "=" + tmp.join(","));
  8685. } else if (tmp.length !== 0) {
  8686. result.push(tmp.join(","));
  8687. }
  8688. }
  8689. }
  8690. } else {
  8691. if (operator === ";") {
  8692. if (isDefined(value)) {
  8693. result.push(encodeUnreserved(key));
  8694. }
  8695. } else if (value === "" && (operator === "&" || operator === "?")) {
  8696. result.push(encodeUnreserved(key) + "=");
  8697. } else if (value === "") {
  8698. result.push("");
  8699. }
  8700. }
  8701. return result;
  8702. }
  8703. function parseUrl(template) {
  8704. return {
  8705. expand: expand.bind(null, template)
  8706. };
  8707. }
  8708. function expand(template, context) {
  8709. var operators = ["+", "#", ".", "/", ";", "?", "&"];
  8710. return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) {
  8711. if (expression) {
  8712. let operator = "";
  8713. const values = [];
  8714. if (operators.indexOf(expression.charAt(0)) !== -1) {
  8715. operator = expression.charAt(0);
  8716. expression = expression.substr(1);
  8717. }
  8718. expression.split(/,/g).forEach(function (variable) {
  8719. var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
  8720. values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
  8721. });
  8722. if (operator && operator !== "+") {
  8723. var separator = ",";
  8724. if (operator === "?") {
  8725. separator = "&";
  8726. } else if (operator !== "#") {
  8727. separator = operator;
  8728. }
  8729. return (values.length !== 0 ? operator : "") + values.join(separator);
  8730. } else {
  8731. return values.join(",");
  8732. }
  8733. } else {
  8734. return encodeReserved(literal);
  8735. }
  8736. });
  8737. }
  8738. function parse(options) {
  8739. // https://fetch.spec.whatwg.org/#methods
  8740. let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible
  8741. let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{+$1}");
  8742. let headers = Object.assign({}, options.headers);
  8743. let body;
  8744. let parameters = omit(options, ["method", "baseUrl", "url", "headers", "request", "mediaType"]); // extract variable names from URL to calculate remaining variables later
  8745. const urlVariableNames = extractUrlVariableNames(url);
  8746. url = parseUrl(url).expand(parameters);
  8747. if (!/^http/.test(url)) {
  8748. url = options.baseUrl + url;
  8749. }
  8750. const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat("baseUrl");
  8751. const remainingParameters = omit(parameters, omittedParameters);
  8752. const isBinaryRequset = /application\/octet-stream/i.test(headers.accept);
  8753. if (!isBinaryRequset) {
  8754. if (options.mediaType.format) {
  8755. // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw
  8756. headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(",");
  8757. }
  8758. if (options.mediaType.previews.length) {
  8759. const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
  8760. headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => {
  8761. const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
  8762. return `application/vnd.github.${preview}-preview${format}`;
  8763. }).join(",");
  8764. }
  8765. } // for GET/HEAD requests, set URL query parameters from remaining parameters
  8766. // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters
  8767. if (["GET", "HEAD"].includes(method)) {
  8768. url = addQueryParameters(url, remainingParameters);
  8769. } else {
  8770. if ("data" in remainingParameters) {
  8771. body = remainingParameters.data;
  8772. } else {
  8773. if (Object.keys(remainingParameters).length) {
  8774. body = remainingParameters;
  8775. } else {
  8776. headers["content-length"] = 0;
  8777. }
  8778. }
  8779. } // default content-type for JSON if body is set
  8780. if (!headers["content-type"] && typeof body !== "undefined") {
  8781. headers["content-type"] = "application/json; charset=utf-8";
  8782. } // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.
  8783. // fetch does not allow to set `content-length` header, but we can set body to an empty string
  8784. if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
  8785. body = "";
  8786. } // Only return body/request keys if present
  8787. return Object.assign({
  8788. method,
  8789. url,
  8790. headers
  8791. }, typeof body !== "undefined" ? {
  8792. body
  8793. } : null, options.request ? {
  8794. request: options.request
  8795. } : null);
  8796. }
  8797. function endpointWithDefaults(defaults, route, options) {
  8798. return parse(merge(defaults, route, options));
  8799. }
  8800. function withDefaults(oldDefaults, newDefaults) {
  8801. const DEFAULTS = merge(oldDefaults, newDefaults);
  8802. const endpoint = endpointWithDefaults.bind(null, DEFAULTS);
  8803. return Object.assign(endpoint, {
  8804. DEFAULTS,
  8805. defaults: withDefaults.bind(null, DEFAULTS),
  8806. merge: merge.bind(null, DEFAULTS),
  8807. parse
  8808. });
  8809. }
  8810. const VERSION = "6.0.1";
  8811. const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.
  8812. // So we use RequestParameters and add method as additional required property.
  8813. const DEFAULTS = {
  8814. method: "GET",
  8815. baseUrl: "https://api.github.com",
  8816. headers: {
  8817. accept: "application/vnd.github.v3+json",
  8818. "user-agent": userAgent
  8819. },
  8820. mediaType: {
  8821. format: "",
  8822. previews: []
  8823. }
  8824. };
  8825. const endpoint = withDefaults(null, DEFAULTS);
  8826. exports.endpoint = endpoint;
  8827. //# sourceMappingURL=index.js.map
  8828. /***/ }),
  8829. /***/ 1292:
  8830. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  8831. "use strict";
  8832. Object.defineProperty(exports, "__esModule", ({ value: true }));
  8833. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  8834. var osName = _interopDefault(__nccwpck_require__(4824));
  8835. function getUserAgent() {
  8836. try {
  8837. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  8838. } catch (error) {
  8839. if (/wmic os get Caption/.test(error.message)) {
  8840. return "Windows <version undetectable>";
  8841. }
  8842. return "<environment undetectable>";
  8843. }
  8844. }
  8845. exports.getUserAgent = getUserAgent;
  8846. //# sourceMappingURL=index.js.map
  8847. /***/ }),
  8848. /***/ 8467:
  8849. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  8850. "use strict";
  8851. Object.defineProperty(exports, "__esModule", ({ value: true }));
  8852. var request = __nccwpck_require__(6234);
  8853. var universalUserAgent = __nccwpck_require__(5030);
  8854. const VERSION = "4.3.1";
  8855. class GraphqlError extends Error {
  8856. constructor(request, response) {
  8857. const message = response.data.errors[0].message;
  8858. super(message);
  8859. Object.assign(this, response.data);
  8860. this.name = "GraphqlError";
  8861. this.request = request; // Maintains proper stack trace (only available on V8)
  8862. /* istanbul ignore next */
  8863. if (Error.captureStackTrace) {
  8864. Error.captureStackTrace(this, this.constructor);
  8865. }
  8866. }
  8867. }
  8868. const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query"];
  8869. function graphql(request, query, options) {
  8870. options = typeof query === "string" ? options = Object.assign({
  8871. query
  8872. }, options) : options = query;
  8873. const requestOptions = Object.keys(options).reduce((result, key) => {
  8874. if (NON_VARIABLE_OPTIONS.includes(key)) {
  8875. result[key] = options[key];
  8876. return result;
  8877. }
  8878. if (!result.variables) {
  8879. result.variables = {};
  8880. }
  8881. result.variables[key] = options[key];
  8882. return result;
  8883. }, {});
  8884. return request(requestOptions).then(response => {
  8885. if (response.data.errors) {
  8886. throw new GraphqlError(requestOptions, {
  8887. data: response.data
  8888. });
  8889. }
  8890. return response.data.data;
  8891. });
  8892. }
  8893. function withDefaults(request$1, newDefaults) {
  8894. const newRequest = request$1.defaults(newDefaults);
  8895. const newApi = (query, options) => {
  8896. return graphql(newRequest, query, options);
  8897. };
  8898. return Object.assign(newApi, {
  8899. defaults: withDefaults.bind(null, newRequest),
  8900. endpoint: request.request.endpoint
  8901. });
  8902. }
  8903. const graphql$1 = withDefaults(request.request, {
  8904. headers: {
  8905. "user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}`
  8906. },
  8907. method: "POST",
  8908. url: "/graphql"
  8909. });
  8910. function withCustomRequest(customRequest) {
  8911. return withDefaults(customRequest, {
  8912. method: "POST",
  8913. url: "/graphql"
  8914. });
  8915. }
  8916. exports.graphql = graphql$1;
  8917. exports.withCustomRequest = withCustomRequest;
  8918. //# sourceMappingURL=index.js.map
  8919. /***/ }),
  8920. /***/ 4193:
  8921. /***/ ((__unused_webpack_module, exports) => {
  8922. "use strict";
  8923. Object.defineProperty(exports, "__esModule", ({ value: true }));
  8924. const VERSION = "1.1.2";
  8925. /**
  8926. * Some “list” response that can be paginated have a different response structure
  8927. *
  8928. * They have a `total_count` key in the response (search also has `incomplete_results`,
  8929. * /installation/repositories also has `repository_selection`), as well as a key with
  8930. * the list of the items which name varies from endpoint to endpoint:
  8931. *
  8932. * - https://developer.github.com/v3/search/#example (key `items`)
  8933. * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)
  8934. * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)
  8935. * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)
  8936. * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)
  8937. *
  8938. * Octokit normalizes these responses so that paginated results are always returned following
  8939. * the same structure. One challenge is that if the list response has only one page, no Link
  8940. * header is provided, so this header alone is not sufficient to check wether a response is
  8941. * paginated or not. For the exceptions with the namespace, a fallback check for the route
  8942. * paths has to be added in order to normalize the response. We cannot check for the total_count
  8943. * property because it also exists in the response of Get the combined status for a specific ref.
  8944. */
  8945. const REGEX = [/^\/search\//, /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/, /^\/installation\/repositories([^/]|$)/, /^\/user\/installations([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];
  8946. function normalizePaginatedListResponse(octokit, url, response) {
  8947. const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, "");
  8948. const responseNeedsNormalization = REGEX.find(regex => regex.test(path));
  8949. if (!responseNeedsNormalization) return; // keep the additional properties intact as there is currently no other way
  8950. // to retrieve the same information.
  8951. const incompleteResults = response.data.incomplete_results;
  8952. const repositorySelection = response.data.repository_selection;
  8953. const totalCount = response.data.total_count;
  8954. delete response.data.incomplete_results;
  8955. delete response.data.repository_selection;
  8956. delete response.data.total_count;
  8957. const namespaceKey = Object.keys(response.data)[0];
  8958. const data = response.data[namespaceKey];
  8959. response.data = data;
  8960. if (typeof incompleteResults !== "undefined") {
  8961. response.data.incomplete_results = incompleteResults;
  8962. }
  8963. if (typeof repositorySelection !== "undefined") {
  8964. response.data.repository_selection = repositorySelection;
  8965. }
  8966. response.data.total_count = totalCount;
  8967. Object.defineProperty(response.data, namespaceKey, {
  8968. get() {
  8969. octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`);
  8970. return Array.from(data);
  8971. }
  8972. });
  8973. }
  8974. function iterator(octokit, route, parameters) {
  8975. const options = octokit.request.endpoint(route, parameters);
  8976. const method = options.method;
  8977. const headers = options.headers;
  8978. let url = options.url;
  8979. return {
  8980. [Symbol.asyncIterator]: () => ({
  8981. next() {
  8982. if (!url) {
  8983. return Promise.resolve({
  8984. done: true
  8985. });
  8986. }
  8987. return octokit.request({
  8988. method,
  8989. url,
  8990. headers
  8991. }).then(response => {
  8992. normalizePaginatedListResponse(octokit, url, response); // `response.headers.link` format:
  8993. // '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
  8994. // sets `url` to undefined if "next" URL is not present or `link` header is not set
  8995. url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
  8996. return {
  8997. value: response
  8998. };
  8999. });
  9000. }
  9001. })
  9002. };
  9003. }
  9004. function paginate(octokit, route, parameters, mapFn) {
  9005. if (typeof parameters === "function") {
  9006. mapFn = parameters;
  9007. parameters = undefined;
  9008. }
  9009. return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
  9010. }
  9011. function gather(octokit, results, iterator, mapFn) {
  9012. return iterator.next().then(result => {
  9013. if (result.done) {
  9014. return results;
  9015. }
  9016. let earlyExit = false;
  9017. function done() {
  9018. earlyExit = true;
  9019. }
  9020. results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
  9021. if (earlyExit) {
  9022. return results;
  9023. }
  9024. return gather(octokit, results, iterator, mapFn);
  9025. });
  9026. }
  9027. /**
  9028. * @param octokit Octokit instance
  9029. * @param options Options passed to Octokit constructor
  9030. */
  9031. function paginateRest(octokit) {
  9032. return {
  9033. paginate: Object.assign(paginate.bind(null, octokit), {
  9034. iterator: iterator.bind(null, octokit)
  9035. })
  9036. };
  9037. }
  9038. paginateRest.VERSION = VERSION;
  9039. exports.paginateRest = paginateRest;
  9040. //# sourceMappingURL=index.js.map
  9041. /***/ }),
  9042. /***/ 8883:
  9043. /***/ ((__unused_webpack_module, exports) => {
  9044. "use strict";
  9045. Object.defineProperty(exports, "__esModule", ({ value: true }));
  9046. const VERSION = "1.0.0";
  9047. /**
  9048. * @param octokit Octokit instance
  9049. * @param options Options passed to Octokit constructor
  9050. */
  9051. function requestLog(octokit) {
  9052. octokit.hook.wrap("request", (request, options) => {
  9053. octokit.log.debug("request", options);
  9054. const start = Date.now();
  9055. const requestOptions = octokit.request.endpoint.parse(options);
  9056. const path = requestOptions.url.replace(options.baseUrl, "");
  9057. return request(options).then(response => {
  9058. octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);
  9059. return response;
  9060. }).catch(error => {
  9061. octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);
  9062. throw error;
  9063. });
  9064. });
  9065. }
  9066. requestLog.VERSION = VERSION;
  9067. exports.requestLog = requestLog;
  9068. //# sourceMappingURL=index.js.map
  9069. /***/ }),
  9070. /***/ 3044:
  9071. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  9072. "use strict";
  9073. Object.defineProperty(exports, "__esModule", ({ value: true }));
  9074. var deprecation = __nccwpck_require__(8932);
  9075. var endpointsByScope = {
  9076. actions: {
  9077. cancelWorkflowRun: {
  9078. method: "POST",
  9079. params: {
  9080. owner: {
  9081. required: true,
  9082. type: "string"
  9083. },
  9084. repo: {
  9085. required: true,
  9086. type: "string"
  9087. },
  9088. run_id: {
  9089. required: true,
  9090. type: "integer"
  9091. }
  9092. },
  9093. url: "/repos/:owner/:repo/actions/runs/:run_id/cancel"
  9094. },
  9095. createOrUpdateSecretForRepo: {
  9096. method: "PUT",
  9097. params: {
  9098. encrypted_value: {
  9099. type: "string"
  9100. },
  9101. key_id: {
  9102. type: "string"
  9103. },
  9104. name: {
  9105. required: true,
  9106. type: "string"
  9107. },
  9108. owner: {
  9109. required: true,
  9110. type: "string"
  9111. },
  9112. repo: {
  9113. required: true,
  9114. type: "string"
  9115. }
  9116. },
  9117. url: "/repos/:owner/:repo/actions/secrets/:name"
  9118. },
  9119. createRegistrationToken: {
  9120. method: "POST",
  9121. params: {
  9122. owner: {
  9123. required: true,
  9124. type: "string"
  9125. },
  9126. repo: {
  9127. required: true,
  9128. type: "string"
  9129. }
  9130. },
  9131. url: "/repos/:owner/:repo/actions/runners/registration-token"
  9132. },
  9133. createRemoveToken: {
  9134. method: "POST",
  9135. params: {
  9136. owner: {
  9137. required: true,
  9138. type: "string"
  9139. },
  9140. repo: {
  9141. required: true,
  9142. type: "string"
  9143. }
  9144. },
  9145. url: "/repos/:owner/:repo/actions/runners/remove-token"
  9146. },
  9147. deleteArtifact: {
  9148. method: "DELETE",
  9149. params: {
  9150. artifact_id: {
  9151. required: true,
  9152. type: "integer"
  9153. },
  9154. owner: {
  9155. required: true,
  9156. type: "string"
  9157. },
  9158. repo: {
  9159. required: true,
  9160. type: "string"
  9161. }
  9162. },
  9163. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
  9164. },
  9165. deleteSecretFromRepo: {
  9166. method: "DELETE",
  9167. params: {
  9168. name: {
  9169. required: true,
  9170. type: "string"
  9171. },
  9172. owner: {
  9173. required: true,
  9174. type: "string"
  9175. },
  9176. repo: {
  9177. required: true,
  9178. type: "string"
  9179. }
  9180. },
  9181. url: "/repos/:owner/:repo/actions/secrets/:name"
  9182. },
  9183. downloadArtifact: {
  9184. method: "GET",
  9185. params: {
  9186. archive_format: {
  9187. required: true,
  9188. type: "string"
  9189. },
  9190. artifact_id: {
  9191. required: true,
  9192. type: "integer"
  9193. },
  9194. owner: {
  9195. required: true,
  9196. type: "string"
  9197. },
  9198. repo: {
  9199. required: true,
  9200. type: "string"
  9201. }
  9202. },
  9203. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"
  9204. },
  9205. getArtifact: {
  9206. method: "GET",
  9207. params: {
  9208. artifact_id: {
  9209. required: true,
  9210. type: "integer"
  9211. },
  9212. owner: {
  9213. required: true,
  9214. type: "string"
  9215. },
  9216. repo: {
  9217. required: true,
  9218. type: "string"
  9219. }
  9220. },
  9221. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
  9222. },
  9223. getPublicKey: {
  9224. method: "GET",
  9225. params: {
  9226. owner: {
  9227. required: true,
  9228. type: "string"
  9229. },
  9230. repo: {
  9231. required: true,
  9232. type: "string"
  9233. }
  9234. },
  9235. url: "/repos/:owner/:repo/actions/secrets/public-key"
  9236. },
  9237. getSecret: {
  9238. method: "GET",
  9239. params: {
  9240. name: {
  9241. required: true,
  9242. type: "string"
  9243. },
  9244. owner: {
  9245. required: true,
  9246. type: "string"
  9247. },
  9248. page: {
  9249. type: "integer"
  9250. },
  9251. per_page: {
  9252. type: "integer"
  9253. },
  9254. repo: {
  9255. required: true,
  9256. type: "string"
  9257. }
  9258. },
  9259. url: "/repos/:owner/:repo/actions/secrets/:name"
  9260. },
  9261. getSelfHostedRunner: {
  9262. method: "GET",
  9263. params: {
  9264. owner: {
  9265. required: true,
  9266. type: "string"
  9267. },
  9268. repo: {
  9269. required: true,
  9270. type: "string"
  9271. },
  9272. runner_id: {
  9273. required: true,
  9274. type: "integer"
  9275. }
  9276. },
  9277. url: "/repos/:owner/:repo/actions/runners/:runner_id"
  9278. },
  9279. getWorkflow: {
  9280. method: "GET",
  9281. params: {
  9282. owner: {
  9283. required: true,
  9284. type: "string"
  9285. },
  9286. repo: {
  9287. required: true,
  9288. type: "string"
  9289. },
  9290. workflow_id: {
  9291. required: true,
  9292. type: "integer"
  9293. }
  9294. },
  9295. url: "/repos/:owner/:repo/actions/workflows/:workflow_id"
  9296. },
  9297. getWorkflowJob: {
  9298. method: "GET",
  9299. params: {
  9300. job_id: {
  9301. required: true,
  9302. type: "integer"
  9303. },
  9304. owner: {
  9305. required: true,
  9306. type: "string"
  9307. },
  9308. repo: {
  9309. required: true,
  9310. type: "string"
  9311. }
  9312. },
  9313. url: "/repos/:owner/:repo/actions/jobs/:job_id"
  9314. },
  9315. getWorkflowRun: {
  9316. method: "GET",
  9317. params: {
  9318. owner: {
  9319. required: true,
  9320. type: "string"
  9321. },
  9322. repo: {
  9323. required: true,
  9324. type: "string"
  9325. },
  9326. run_id: {
  9327. required: true,
  9328. type: "integer"
  9329. }
  9330. },
  9331. url: "/repos/:owner/:repo/actions/runs/:run_id"
  9332. },
  9333. listDownloadsForSelfHostedRunnerApplication: {
  9334. method: "GET",
  9335. params: {
  9336. owner: {
  9337. required: true,
  9338. type: "string"
  9339. },
  9340. repo: {
  9341. required: true,
  9342. type: "string"
  9343. }
  9344. },
  9345. url: "/repos/:owner/:repo/actions/runners/downloads"
  9346. },
  9347. listJobsForWorkflowRun: {
  9348. method: "GET",
  9349. params: {
  9350. owner: {
  9351. required: true,
  9352. type: "string"
  9353. },
  9354. page: {
  9355. type: "integer"
  9356. },
  9357. per_page: {
  9358. type: "integer"
  9359. },
  9360. repo: {
  9361. required: true,
  9362. type: "string"
  9363. },
  9364. run_id: {
  9365. required: true,
  9366. type: "integer"
  9367. }
  9368. },
  9369. url: "/repos/:owner/:repo/actions/runs/:run_id/jobs"
  9370. },
  9371. listRepoWorkflowRuns: {
  9372. method: "GET",
  9373. params: {
  9374. actor: {
  9375. type: "string"
  9376. },
  9377. branch: {
  9378. type: "string"
  9379. },
  9380. event: {
  9381. type: "string"
  9382. },
  9383. owner: {
  9384. required: true,
  9385. type: "string"
  9386. },
  9387. page: {
  9388. type: "integer"
  9389. },
  9390. per_page: {
  9391. type: "integer"
  9392. },
  9393. repo: {
  9394. required: true,
  9395. type: "string"
  9396. },
  9397. status: {
  9398. enum: ["completed", "status", "conclusion"],
  9399. type: "string"
  9400. }
  9401. },
  9402. url: "/repos/:owner/:repo/actions/runs"
  9403. },
  9404. listRepoWorkflows: {
  9405. method: "GET",
  9406. params: {
  9407. owner: {
  9408. required: true,
  9409. type: "string"
  9410. },
  9411. page: {
  9412. type: "integer"
  9413. },
  9414. per_page: {
  9415. type: "integer"
  9416. },
  9417. repo: {
  9418. required: true,
  9419. type: "string"
  9420. }
  9421. },
  9422. url: "/repos/:owner/:repo/actions/workflows"
  9423. },
  9424. listSecretsForRepo: {
  9425. method: "GET",
  9426. params: {
  9427. owner: {
  9428. required: true,
  9429. type: "string"
  9430. },
  9431. page: {
  9432. type: "integer"
  9433. },
  9434. per_page: {
  9435. type: "integer"
  9436. },
  9437. repo: {
  9438. required: true,
  9439. type: "string"
  9440. }
  9441. },
  9442. url: "/repos/:owner/:repo/actions/secrets"
  9443. },
  9444. listSelfHostedRunnersForRepo: {
  9445. method: "GET",
  9446. params: {
  9447. owner: {
  9448. required: true,
  9449. type: "string"
  9450. },
  9451. page: {
  9452. type: "integer"
  9453. },
  9454. per_page: {
  9455. type: "integer"
  9456. },
  9457. repo: {
  9458. required: true,
  9459. type: "string"
  9460. }
  9461. },
  9462. url: "/repos/:owner/:repo/actions/runners"
  9463. },
  9464. listWorkflowJobLogs: {
  9465. method: "GET",
  9466. params: {
  9467. job_id: {
  9468. required: true,
  9469. type: "integer"
  9470. },
  9471. owner: {
  9472. required: true,
  9473. type: "string"
  9474. },
  9475. page: {
  9476. type: "integer"
  9477. },
  9478. per_page: {
  9479. type: "integer"
  9480. },
  9481. repo: {
  9482. required: true,
  9483. type: "string"
  9484. }
  9485. },
  9486. url: "/repos/:owner/:repo/actions/jobs/:job_id/logs"
  9487. },
  9488. listWorkflowRunArtifacts: {
  9489. method: "GET",
  9490. params: {
  9491. owner: {
  9492. required: true,
  9493. type: "string"
  9494. },
  9495. page: {
  9496. type: "integer"
  9497. },
  9498. per_page: {
  9499. type: "integer"
  9500. },
  9501. repo: {
  9502. required: true,
  9503. type: "string"
  9504. },
  9505. run_id: {
  9506. required: true,
  9507. type: "integer"
  9508. }
  9509. },
  9510. url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts"
  9511. },
  9512. listWorkflowRunLogs: {
  9513. method: "GET",
  9514. params: {
  9515. owner: {
  9516. required: true,
  9517. type: "string"
  9518. },
  9519. page: {
  9520. type: "integer"
  9521. },
  9522. per_page: {
  9523. type: "integer"
  9524. },
  9525. repo: {
  9526. required: true,
  9527. type: "string"
  9528. },
  9529. run_id: {
  9530. required: true,
  9531. type: "integer"
  9532. }
  9533. },
  9534. url: "/repos/:owner/:repo/actions/runs/:run_id/logs"
  9535. },
  9536. listWorkflowRuns: {
  9537. method: "GET",
  9538. params: {
  9539. actor: {
  9540. type: "string"
  9541. },
  9542. branch: {
  9543. type: "string"
  9544. },
  9545. event: {
  9546. type: "string"
  9547. },
  9548. owner: {
  9549. required: true,
  9550. type: "string"
  9551. },
  9552. page: {
  9553. type: "integer"
  9554. },
  9555. per_page: {
  9556. type: "integer"
  9557. },
  9558. repo: {
  9559. required: true,
  9560. type: "string"
  9561. },
  9562. status: {
  9563. enum: ["completed", "status", "conclusion"],
  9564. type: "string"
  9565. },
  9566. workflow_id: {
  9567. required: true,
  9568. type: "integer"
  9569. }
  9570. },
  9571. url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"
  9572. },
  9573. reRunWorkflow: {
  9574. method: "POST",
  9575. params: {
  9576. owner: {
  9577. required: true,
  9578. type: "string"
  9579. },
  9580. repo: {
  9581. required: true,
  9582. type: "string"
  9583. },
  9584. run_id: {
  9585. required: true,
  9586. type: "integer"
  9587. }
  9588. },
  9589. url: "/repos/:owner/:repo/actions/runs/:run_id/rerun"
  9590. },
  9591. removeSelfHostedRunner: {
  9592. method: "DELETE",
  9593. params: {
  9594. owner: {
  9595. required: true,
  9596. type: "string"
  9597. },
  9598. repo: {
  9599. required: true,
  9600. type: "string"
  9601. },
  9602. runner_id: {
  9603. required: true,
  9604. type: "integer"
  9605. }
  9606. },
  9607. url: "/repos/:owner/:repo/actions/runners/:runner_id"
  9608. }
  9609. },
  9610. activity: {
  9611. checkStarringRepo: {
  9612. method: "GET",
  9613. params: {
  9614. owner: {
  9615. required: true,
  9616. type: "string"
  9617. },
  9618. repo: {
  9619. required: true,
  9620. type: "string"
  9621. }
  9622. },
  9623. url: "/user/starred/:owner/:repo"
  9624. },
  9625. deleteRepoSubscription: {
  9626. method: "DELETE",
  9627. params: {
  9628. owner: {
  9629. required: true,
  9630. type: "string"
  9631. },
  9632. repo: {
  9633. required: true,
  9634. type: "string"
  9635. }
  9636. },
  9637. url: "/repos/:owner/:repo/subscription"
  9638. },
  9639. deleteThreadSubscription: {
  9640. method: "DELETE",
  9641. params: {
  9642. thread_id: {
  9643. required: true,
  9644. type: "integer"
  9645. }
  9646. },
  9647. url: "/notifications/threads/:thread_id/subscription"
  9648. },
  9649. getRepoSubscription: {
  9650. method: "GET",
  9651. params: {
  9652. owner: {
  9653. required: true,
  9654. type: "string"
  9655. },
  9656. repo: {
  9657. required: true,
  9658. type: "string"
  9659. }
  9660. },
  9661. url: "/repos/:owner/:repo/subscription"
  9662. },
  9663. getThread: {
  9664. method: "GET",
  9665. params: {
  9666. thread_id: {
  9667. required: true,
  9668. type: "integer"
  9669. }
  9670. },
  9671. url: "/notifications/threads/:thread_id"
  9672. },
  9673. getThreadSubscription: {
  9674. method: "GET",
  9675. params: {
  9676. thread_id: {
  9677. required: true,
  9678. type: "integer"
  9679. }
  9680. },
  9681. url: "/notifications/threads/:thread_id/subscription"
  9682. },
  9683. listEventsForOrg: {
  9684. method: "GET",
  9685. params: {
  9686. org: {
  9687. required: true,
  9688. type: "string"
  9689. },
  9690. page: {
  9691. type: "integer"
  9692. },
  9693. per_page: {
  9694. type: "integer"
  9695. },
  9696. username: {
  9697. required: true,
  9698. type: "string"
  9699. }
  9700. },
  9701. url: "/users/:username/events/orgs/:org"
  9702. },
  9703. listEventsForUser: {
  9704. method: "GET",
  9705. params: {
  9706. page: {
  9707. type: "integer"
  9708. },
  9709. per_page: {
  9710. type: "integer"
  9711. },
  9712. username: {
  9713. required: true,
  9714. type: "string"
  9715. }
  9716. },
  9717. url: "/users/:username/events"
  9718. },
  9719. listFeeds: {
  9720. method: "GET",
  9721. params: {},
  9722. url: "/feeds"
  9723. },
  9724. listNotifications: {
  9725. method: "GET",
  9726. params: {
  9727. all: {
  9728. type: "boolean"
  9729. },
  9730. before: {
  9731. type: "string"
  9732. },
  9733. page: {
  9734. type: "integer"
  9735. },
  9736. participating: {
  9737. type: "boolean"
  9738. },
  9739. per_page: {
  9740. type: "integer"
  9741. },
  9742. since: {
  9743. type: "string"
  9744. }
  9745. },
  9746. url: "/notifications"
  9747. },
  9748. listNotificationsForRepo: {
  9749. method: "GET",
  9750. params: {
  9751. all: {
  9752. type: "boolean"
  9753. },
  9754. before: {
  9755. type: "string"
  9756. },
  9757. owner: {
  9758. required: true,
  9759. type: "string"
  9760. },
  9761. page: {
  9762. type: "integer"
  9763. },
  9764. participating: {
  9765. type: "boolean"
  9766. },
  9767. per_page: {
  9768. type: "integer"
  9769. },
  9770. repo: {
  9771. required: true,
  9772. type: "string"
  9773. },
  9774. since: {
  9775. type: "string"
  9776. }
  9777. },
  9778. url: "/repos/:owner/:repo/notifications"
  9779. },
  9780. listPublicEvents: {
  9781. method: "GET",
  9782. params: {
  9783. page: {
  9784. type: "integer"
  9785. },
  9786. per_page: {
  9787. type: "integer"
  9788. }
  9789. },
  9790. url: "/events"
  9791. },
  9792. listPublicEventsForOrg: {
  9793. method: "GET",
  9794. params: {
  9795. org: {
  9796. required: true,
  9797. type: "string"
  9798. },
  9799. page: {
  9800. type: "integer"
  9801. },
  9802. per_page: {
  9803. type: "integer"
  9804. }
  9805. },
  9806. url: "/orgs/:org/events"
  9807. },
  9808. listPublicEventsForRepoNetwork: {
  9809. method: "GET",
  9810. params: {
  9811. owner: {
  9812. required: true,
  9813. type: "string"
  9814. },
  9815. page: {
  9816. type: "integer"
  9817. },
  9818. per_page: {
  9819. type: "integer"
  9820. },
  9821. repo: {
  9822. required: true,
  9823. type: "string"
  9824. }
  9825. },
  9826. url: "/networks/:owner/:repo/events"
  9827. },
  9828. listPublicEventsForUser: {
  9829. method: "GET",
  9830. params: {
  9831. page: {
  9832. type: "integer"
  9833. },
  9834. per_page: {
  9835. type: "integer"
  9836. },
  9837. username: {
  9838. required: true,
  9839. type: "string"
  9840. }
  9841. },
  9842. url: "/users/:username/events/public"
  9843. },
  9844. listReceivedEventsForUser: {
  9845. method: "GET",
  9846. params: {
  9847. page: {
  9848. type: "integer"
  9849. },
  9850. per_page: {
  9851. type: "integer"
  9852. },
  9853. username: {
  9854. required: true,
  9855. type: "string"
  9856. }
  9857. },
  9858. url: "/users/:username/received_events"
  9859. },
  9860. listReceivedPublicEventsForUser: {
  9861. method: "GET",
  9862. params: {
  9863. page: {
  9864. type: "integer"
  9865. },
  9866. per_page: {
  9867. type: "integer"
  9868. },
  9869. username: {
  9870. required: true,
  9871. type: "string"
  9872. }
  9873. },
  9874. url: "/users/:username/received_events/public"
  9875. },
  9876. listRepoEvents: {
  9877. method: "GET",
  9878. params: {
  9879. owner: {
  9880. required: true,
  9881. type: "string"
  9882. },
  9883. page: {
  9884. type: "integer"
  9885. },
  9886. per_page: {
  9887. type: "integer"
  9888. },
  9889. repo: {
  9890. required: true,
  9891. type: "string"
  9892. }
  9893. },
  9894. url: "/repos/:owner/:repo/events"
  9895. },
  9896. listReposStarredByAuthenticatedUser: {
  9897. method: "GET",
  9898. params: {
  9899. direction: {
  9900. enum: ["asc", "desc"],
  9901. type: "string"
  9902. },
  9903. page: {
  9904. type: "integer"
  9905. },
  9906. per_page: {
  9907. type: "integer"
  9908. },
  9909. sort: {
  9910. enum: ["created", "updated"],
  9911. type: "string"
  9912. }
  9913. },
  9914. url: "/user/starred"
  9915. },
  9916. listReposStarredByUser: {
  9917. method: "GET",
  9918. params: {
  9919. direction: {
  9920. enum: ["asc", "desc"],
  9921. type: "string"
  9922. },
  9923. page: {
  9924. type: "integer"
  9925. },
  9926. per_page: {
  9927. type: "integer"
  9928. },
  9929. sort: {
  9930. enum: ["created", "updated"],
  9931. type: "string"
  9932. },
  9933. username: {
  9934. required: true,
  9935. type: "string"
  9936. }
  9937. },
  9938. url: "/users/:username/starred"
  9939. },
  9940. listReposWatchedByUser: {
  9941. method: "GET",
  9942. params: {
  9943. page: {
  9944. type: "integer"
  9945. },
  9946. per_page: {
  9947. type: "integer"
  9948. },
  9949. username: {
  9950. required: true,
  9951. type: "string"
  9952. }
  9953. },
  9954. url: "/users/:username/subscriptions"
  9955. },
  9956. listStargazersForRepo: {
  9957. method: "GET",
  9958. params: {
  9959. owner: {
  9960. required: true,
  9961. type: "string"
  9962. },
  9963. page: {
  9964. type: "integer"
  9965. },
  9966. per_page: {
  9967. type: "integer"
  9968. },
  9969. repo: {
  9970. required: true,
  9971. type: "string"
  9972. }
  9973. },
  9974. url: "/repos/:owner/:repo/stargazers"
  9975. },
  9976. listWatchedReposForAuthenticatedUser: {
  9977. method: "GET",
  9978. params: {
  9979. page: {
  9980. type: "integer"
  9981. },
  9982. per_page: {
  9983. type: "integer"
  9984. }
  9985. },
  9986. url: "/user/subscriptions"
  9987. },
  9988. listWatchersForRepo: {
  9989. method: "GET",
  9990. params: {
  9991. owner: {
  9992. required: true,
  9993. type: "string"
  9994. },
  9995. page: {
  9996. type: "integer"
  9997. },
  9998. per_page: {
  9999. type: "integer"
  10000. },
  10001. repo: {
  10002. required: true,
  10003. type: "string"
  10004. }
  10005. },
  10006. url: "/repos/:owner/:repo/subscribers"
  10007. },
  10008. markAsRead: {
  10009. method: "PUT",
  10010. params: {
  10011. last_read_at: {
  10012. type: "string"
  10013. }
  10014. },
  10015. url: "/notifications"
  10016. },
  10017. markNotificationsAsReadForRepo: {
  10018. method: "PUT",
  10019. params: {
  10020. last_read_at: {
  10021. type: "string"
  10022. },
  10023. owner: {
  10024. required: true,
  10025. type: "string"
  10026. },
  10027. repo: {
  10028. required: true,
  10029. type: "string"
  10030. }
  10031. },
  10032. url: "/repos/:owner/:repo/notifications"
  10033. },
  10034. markThreadAsRead: {
  10035. method: "PATCH",
  10036. params: {
  10037. thread_id: {
  10038. required: true,
  10039. type: "integer"
  10040. }
  10041. },
  10042. url: "/notifications/threads/:thread_id"
  10043. },
  10044. setRepoSubscription: {
  10045. method: "PUT",
  10046. params: {
  10047. ignored: {
  10048. type: "boolean"
  10049. },
  10050. owner: {
  10051. required: true,
  10052. type: "string"
  10053. },
  10054. repo: {
  10055. required: true,
  10056. type: "string"
  10057. },
  10058. subscribed: {
  10059. type: "boolean"
  10060. }
  10061. },
  10062. url: "/repos/:owner/:repo/subscription"
  10063. },
  10064. setThreadSubscription: {
  10065. method: "PUT",
  10066. params: {
  10067. ignored: {
  10068. type: "boolean"
  10069. },
  10070. thread_id: {
  10071. required: true,
  10072. type: "integer"
  10073. }
  10074. },
  10075. url: "/notifications/threads/:thread_id/subscription"
  10076. },
  10077. starRepo: {
  10078. method: "PUT",
  10079. params: {
  10080. owner: {
  10081. required: true,
  10082. type: "string"
  10083. },
  10084. repo: {
  10085. required: true,
  10086. type: "string"
  10087. }
  10088. },
  10089. url: "/user/starred/:owner/:repo"
  10090. },
  10091. unstarRepo: {
  10092. method: "DELETE",
  10093. params: {
  10094. owner: {
  10095. required: true,
  10096. type: "string"
  10097. },
  10098. repo: {
  10099. required: true,
  10100. type: "string"
  10101. }
  10102. },
  10103. url: "/user/starred/:owner/:repo"
  10104. }
  10105. },
  10106. apps: {
  10107. addRepoToInstallation: {
  10108. headers: {
  10109. accept: "application/vnd.github.machine-man-preview+json"
  10110. },
  10111. method: "PUT",
  10112. params: {
  10113. installation_id: {
  10114. required: true,
  10115. type: "integer"
  10116. },
  10117. repository_id: {
  10118. required: true,
  10119. type: "integer"
  10120. }
  10121. },
  10122. url: "/user/installations/:installation_id/repositories/:repository_id"
  10123. },
  10124. checkAccountIsAssociatedWithAny: {
  10125. method: "GET",
  10126. params: {
  10127. account_id: {
  10128. required: true,
  10129. type: "integer"
  10130. }
  10131. },
  10132. url: "/marketplace_listing/accounts/:account_id"
  10133. },
  10134. checkAccountIsAssociatedWithAnyStubbed: {
  10135. method: "GET",
  10136. params: {
  10137. account_id: {
  10138. required: true,
  10139. type: "integer"
  10140. }
  10141. },
  10142. url: "/marketplace_listing/stubbed/accounts/:account_id"
  10143. },
  10144. checkAuthorization: {
  10145. deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization",
  10146. method: "GET",
  10147. params: {
  10148. access_token: {
  10149. required: true,
  10150. type: "string"
  10151. },
  10152. client_id: {
  10153. required: true,
  10154. type: "string"
  10155. }
  10156. },
  10157. url: "/applications/:client_id/tokens/:access_token"
  10158. },
  10159. checkToken: {
  10160. headers: {
  10161. accept: "application/vnd.github.doctor-strange-preview+json"
  10162. },
  10163. method: "POST",
  10164. params: {
  10165. access_token: {
  10166. type: "string"
  10167. },
  10168. client_id: {
  10169. required: true,
  10170. type: "string"
  10171. }
  10172. },
  10173. url: "/applications/:client_id/token"
  10174. },
  10175. createContentAttachment: {
  10176. headers: {
  10177. accept: "application/vnd.github.corsair-preview+json"
  10178. },
  10179. method: "POST",
  10180. params: {
  10181. body: {
  10182. required: true,
  10183. type: "string"
  10184. },
  10185. content_reference_id: {
  10186. required: true,
  10187. type: "integer"
  10188. },
  10189. title: {
  10190. required: true,
  10191. type: "string"
  10192. }
  10193. },
  10194. url: "/content_references/:content_reference_id/attachments"
  10195. },
  10196. createFromManifest: {
  10197. headers: {
  10198. accept: "application/vnd.github.fury-preview+json"
  10199. },
  10200. method: "POST",
  10201. params: {
  10202. code: {
  10203. required: true,
  10204. type: "string"
  10205. }
  10206. },
  10207. url: "/app-manifests/:code/conversions"
  10208. },
  10209. createInstallationToken: {
  10210. headers: {
  10211. accept: "application/vnd.github.machine-man-preview+json"
  10212. },
  10213. method: "POST",
  10214. params: {
  10215. installation_id: {
  10216. required: true,
  10217. type: "integer"
  10218. },
  10219. permissions: {
  10220. type: "object"
  10221. },
  10222. repository_ids: {
  10223. type: "integer[]"
  10224. }
  10225. },
  10226. url: "/app/installations/:installation_id/access_tokens"
  10227. },
  10228. deleteAuthorization: {
  10229. headers: {
  10230. accept: "application/vnd.github.doctor-strange-preview+json"
  10231. },
  10232. method: "DELETE",
  10233. params: {
  10234. access_token: {
  10235. type: "string"
  10236. },
  10237. client_id: {
  10238. required: true,
  10239. type: "string"
  10240. }
  10241. },
  10242. url: "/applications/:client_id/grant"
  10243. },
  10244. deleteInstallation: {
  10245. headers: {
  10246. accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"
  10247. },
  10248. method: "DELETE",
  10249. params: {
  10250. installation_id: {
  10251. required: true,
  10252. type: "integer"
  10253. }
  10254. },
  10255. url: "/app/installations/:installation_id"
  10256. },
  10257. deleteToken: {
  10258. headers: {
  10259. accept: "application/vnd.github.doctor-strange-preview+json"
  10260. },
  10261. method: "DELETE",
  10262. params: {
  10263. access_token: {
  10264. type: "string"
  10265. },
  10266. client_id: {
  10267. required: true,
  10268. type: "string"
  10269. }
  10270. },
  10271. url: "/applications/:client_id/token"
  10272. },
  10273. findOrgInstallation: {
  10274. deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",
  10275. headers: {
  10276. accept: "application/vnd.github.machine-man-preview+json"
  10277. },
  10278. method: "GET",
  10279. params: {
  10280. org: {
  10281. required: true,
  10282. type: "string"
  10283. }
  10284. },
  10285. url: "/orgs/:org/installation"
  10286. },
  10287. findRepoInstallation: {
  10288. deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",
  10289. headers: {
  10290. accept: "application/vnd.github.machine-man-preview+json"
  10291. },
  10292. method: "GET",
  10293. params: {
  10294. owner: {
  10295. required: true,
  10296. type: "string"
  10297. },
  10298. repo: {
  10299. required: true,
  10300. type: "string"
  10301. }
  10302. },
  10303. url: "/repos/:owner/:repo/installation"
  10304. },
  10305. findUserInstallation: {
  10306. deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",
  10307. headers: {
  10308. accept: "application/vnd.github.machine-man-preview+json"
  10309. },
  10310. method: "GET",
  10311. params: {
  10312. username: {
  10313. required: true,
  10314. type: "string"
  10315. }
  10316. },
  10317. url: "/users/:username/installation"
  10318. },
  10319. getAuthenticated: {
  10320. headers: {
  10321. accept: "application/vnd.github.machine-man-preview+json"
  10322. },
  10323. method: "GET",
  10324. params: {},
  10325. url: "/app"
  10326. },
  10327. getBySlug: {
  10328. headers: {
  10329. accept: "application/vnd.github.machine-man-preview+json"
  10330. },
  10331. method: "GET",
  10332. params: {
  10333. app_slug: {
  10334. required: true,
  10335. type: "string"
  10336. }
  10337. },
  10338. url: "/apps/:app_slug"
  10339. },
  10340. getInstallation: {
  10341. headers: {
  10342. accept: "application/vnd.github.machine-man-preview+json"
  10343. },
  10344. method: "GET",
  10345. params: {
  10346. installation_id: {
  10347. required: true,
  10348. type: "integer"
  10349. }
  10350. },
  10351. url: "/app/installations/:installation_id"
  10352. },
  10353. getOrgInstallation: {
  10354. headers: {
  10355. accept: "application/vnd.github.machine-man-preview+json"
  10356. },
  10357. method: "GET",
  10358. params: {
  10359. org: {
  10360. required: true,
  10361. type: "string"
  10362. }
  10363. },
  10364. url: "/orgs/:org/installation"
  10365. },
  10366. getRepoInstallation: {
  10367. headers: {
  10368. accept: "application/vnd.github.machine-man-preview+json"
  10369. },
  10370. method: "GET",
  10371. params: {
  10372. owner: {
  10373. required: true,
  10374. type: "string"
  10375. },
  10376. repo: {
  10377. required: true,
  10378. type: "string"
  10379. }
  10380. },
  10381. url: "/repos/:owner/:repo/installation"
  10382. },
  10383. getUserInstallation: {
  10384. headers: {
  10385. accept: "application/vnd.github.machine-man-preview+json"
  10386. },
  10387. method: "GET",
  10388. params: {
  10389. username: {
  10390. required: true,
  10391. type: "string"
  10392. }
  10393. },
  10394. url: "/users/:username/installation"
  10395. },
  10396. listAccountsUserOrOrgOnPlan: {
  10397. method: "GET",
  10398. params: {
  10399. direction: {
  10400. enum: ["asc", "desc"],
  10401. type: "string"
  10402. },
  10403. page: {
  10404. type: "integer"
  10405. },
  10406. per_page: {
  10407. type: "integer"
  10408. },
  10409. plan_id: {
  10410. required: true,
  10411. type: "integer"
  10412. },
  10413. sort: {
  10414. enum: ["created", "updated"],
  10415. type: "string"
  10416. }
  10417. },
  10418. url: "/marketplace_listing/plans/:plan_id/accounts"
  10419. },
  10420. listAccountsUserOrOrgOnPlanStubbed: {
  10421. method: "GET",
  10422. params: {
  10423. direction: {
  10424. enum: ["asc", "desc"],
  10425. type: "string"
  10426. },
  10427. page: {
  10428. type: "integer"
  10429. },
  10430. per_page: {
  10431. type: "integer"
  10432. },
  10433. plan_id: {
  10434. required: true,
  10435. type: "integer"
  10436. },
  10437. sort: {
  10438. enum: ["created", "updated"],
  10439. type: "string"
  10440. }
  10441. },
  10442. url: "/marketplace_listing/stubbed/plans/:plan_id/accounts"
  10443. },
  10444. listInstallationReposForAuthenticatedUser: {
  10445. headers: {
  10446. accept: "application/vnd.github.machine-man-preview+json"
  10447. },
  10448. method: "GET",
  10449. params: {
  10450. installation_id: {
  10451. required: true,
  10452. type: "integer"
  10453. },
  10454. page: {
  10455. type: "integer"
  10456. },
  10457. per_page: {
  10458. type: "integer"
  10459. }
  10460. },
  10461. url: "/user/installations/:installation_id/repositories"
  10462. },
  10463. listInstallations: {
  10464. headers: {
  10465. accept: "application/vnd.github.machine-man-preview+json"
  10466. },
  10467. method: "GET",
  10468. params: {
  10469. page: {
  10470. type: "integer"
  10471. },
  10472. per_page: {
  10473. type: "integer"
  10474. }
  10475. },
  10476. url: "/app/installations"
  10477. },
  10478. listInstallationsForAuthenticatedUser: {
  10479. headers: {
  10480. accept: "application/vnd.github.machine-man-preview+json"
  10481. },
  10482. method: "GET",
  10483. params: {
  10484. page: {
  10485. type: "integer"
  10486. },
  10487. per_page: {
  10488. type: "integer"
  10489. }
  10490. },
  10491. url: "/user/installations"
  10492. },
  10493. listMarketplacePurchasesForAuthenticatedUser: {
  10494. method: "GET",
  10495. params: {
  10496. page: {
  10497. type: "integer"
  10498. },
  10499. per_page: {
  10500. type: "integer"
  10501. }
  10502. },
  10503. url: "/user/marketplace_purchases"
  10504. },
  10505. listMarketplacePurchasesForAuthenticatedUserStubbed: {
  10506. method: "GET",
  10507. params: {
  10508. page: {
  10509. type: "integer"
  10510. },
  10511. per_page: {
  10512. type: "integer"
  10513. }
  10514. },
  10515. url: "/user/marketplace_purchases/stubbed"
  10516. },
  10517. listPlans: {
  10518. method: "GET",
  10519. params: {
  10520. page: {
  10521. type: "integer"
  10522. },
  10523. per_page: {
  10524. type: "integer"
  10525. }
  10526. },
  10527. url: "/marketplace_listing/plans"
  10528. },
  10529. listPlansStubbed: {
  10530. method: "GET",
  10531. params: {
  10532. page: {
  10533. type: "integer"
  10534. },
  10535. per_page: {
  10536. type: "integer"
  10537. }
  10538. },
  10539. url: "/marketplace_listing/stubbed/plans"
  10540. },
  10541. listRepos: {
  10542. headers: {
  10543. accept: "application/vnd.github.machine-man-preview+json"
  10544. },
  10545. method: "GET",
  10546. params: {
  10547. page: {
  10548. type: "integer"
  10549. },
  10550. per_page: {
  10551. type: "integer"
  10552. }
  10553. },
  10554. url: "/installation/repositories"
  10555. },
  10556. removeRepoFromInstallation: {
  10557. headers: {
  10558. accept: "application/vnd.github.machine-man-preview+json"
  10559. },
  10560. method: "DELETE",
  10561. params: {
  10562. installation_id: {
  10563. required: true,
  10564. type: "integer"
  10565. },
  10566. repository_id: {
  10567. required: true,
  10568. type: "integer"
  10569. }
  10570. },
  10571. url: "/user/installations/:installation_id/repositories/:repository_id"
  10572. },
  10573. resetAuthorization: {
  10574. deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization",
  10575. method: "POST",
  10576. params: {
  10577. access_token: {
  10578. required: true,
  10579. type: "string"
  10580. },
  10581. client_id: {
  10582. required: true,
  10583. type: "string"
  10584. }
  10585. },
  10586. url: "/applications/:client_id/tokens/:access_token"
  10587. },
  10588. resetToken: {
  10589. headers: {
  10590. accept: "application/vnd.github.doctor-strange-preview+json"
  10591. },
  10592. method: "PATCH",
  10593. params: {
  10594. access_token: {
  10595. type: "string"
  10596. },
  10597. client_id: {
  10598. required: true,
  10599. type: "string"
  10600. }
  10601. },
  10602. url: "/applications/:client_id/token"
  10603. },
  10604. revokeAuthorizationForApplication: {
  10605. deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application",
  10606. method: "DELETE",
  10607. params: {
  10608. access_token: {
  10609. required: true,
  10610. type: "string"
  10611. },
  10612. client_id: {
  10613. required: true,
  10614. type: "string"
  10615. }
  10616. },
  10617. url: "/applications/:client_id/tokens/:access_token"
  10618. },
  10619. revokeGrantForApplication: {
  10620. deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application",
  10621. method: "DELETE",
  10622. params: {
  10623. access_token: {
  10624. required: true,
  10625. type: "string"
  10626. },
  10627. client_id: {
  10628. required: true,
  10629. type: "string"
  10630. }
  10631. },
  10632. url: "/applications/:client_id/grants/:access_token"
  10633. },
  10634. revokeInstallationToken: {
  10635. headers: {
  10636. accept: "application/vnd.github.gambit-preview+json"
  10637. },
  10638. method: "DELETE",
  10639. params: {},
  10640. url: "/installation/token"
  10641. }
  10642. },
  10643. checks: {
  10644. create: {
  10645. headers: {
  10646. accept: "application/vnd.github.antiope-preview+json"
  10647. },
  10648. method: "POST",
  10649. params: {
  10650. actions: {
  10651. type: "object[]"
  10652. },
  10653. "actions[].description": {
  10654. required: true,
  10655. type: "string"
  10656. },
  10657. "actions[].identifier": {
  10658. required: true,
  10659. type: "string"
  10660. },
  10661. "actions[].label": {
  10662. required: true,
  10663. type: "string"
  10664. },
  10665. completed_at: {
  10666. type: "string"
  10667. },
  10668. conclusion: {
  10669. enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
  10670. type: "string"
  10671. },
  10672. details_url: {
  10673. type: "string"
  10674. },
  10675. external_id: {
  10676. type: "string"
  10677. },
  10678. head_sha: {
  10679. required: true,
  10680. type: "string"
  10681. },
  10682. name: {
  10683. required: true,
  10684. type: "string"
  10685. },
  10686. output: {
  10687. type: "object"
  10688. },
  10689. "output.annotations": {
  10690. type: "object[]"
  10691. },
  10692. "output.annotations[].annotation_level": {
  10693. enum: ["notice", "warning", "failure"],
  10694. required: true,
  10695. type: "string"
  10696. },
  10697. "output.annotations[].end_column": {
  10698. type: "integer"
  10699. },
  10700. "output.annotations[].end_line": {
  10701. required: true,
  10702. type: "integer"
  10703. },
  10704. "output.annotations[].message": {
  10705. required: true,
  10706. type: "string"
  10707. },
  10708. "output.annotations[].path": {
  10709. required: true,
  10710. type: "string"
  10711. },
  10712. "output.annotations[].raw_details": {
  10713. type: "string"
  10714. },
  10715. "output.annotations[].start_column": {
  10716. type: "integer"
  10717. },
  10718. "output.annotations[].start_line": {
  10719. required: true,
  10720. type: "integer"
  10721. },
  10722. "output.annotations[].title": {
  10723. type: "string"
  10724. },
  10725. "output.images": {
  10726. type: "object[]"
  10727. },
  10728. "output.images[].alt": {
  10729. required: true,
  10730. type: "string"
  10731. },
  10732. "output.images[].caption": {
  10733. type: "string"
  10734. },
  10735. "output.images[].image_url": {
  10736. required: true,
  10737. type: "string"
  10738. },
  10739. "output.summary": {
  10740. required: true,
  10741. type: "string"
  10742. },
  10743. "output.text": {
  10744. type: "string"
  10745. },
  10746. "output.title": {
  10747. required: true,
  10748. type: "string"
  10749. },
  10750. owner: {
  10751. required: true,
  10752. type: "string"
  10753. },
  10754. repo: {
  10755. required: true,
  10756. type: "string"
  10757. },
  10758. started_at: {
  10759. type: "string"
  10760. },
  10761. status: {
  10762. enum: ["queued", "in_progress", "completed"],
  10763. type: "string"
  10764. }
  10765. },
  10766. url: "/repos/:owner/:repo/check-runs"
  10767. },
  10768. createSuite: {
  10769. headers: {
  10770. accept: "application/vnd.github.antiope-preview+json"
  10771. },
  10772. method: "POST",
  10773. params: {
  10774. head_sha: {
  10775. required: true,
  10776. type: "string"
  10777. },
  10778. owner: {
  10779. required: true,
  10780. type: "string"
  10781. },
  10782. repo: {
  10783. required: true,
  10784. type: "string"
  10785. }
  10786. },
  10787. url: "/repos/:owner/:repo/check-suites"
  10788. },
  10789. get: {
  10790. headers: {
  10791. accept: "application/vnd.github.antiope-preview+json"
  10792. },
  10793. method: "GET",
  10794. params: {
  10795. check_run_id: {
  10796. required: true,
  10797. type: "integer"
  10798. },
  10799. owner: {
  10800. required: true,
  10801. type: "string"
  10802. },
  10803. repo: {
  10804. required: true,
  10805. type: "string"
  10806. }
  10807. },
  10808. url: "/repos/:owner/:repo/check-runs/:check_run_id"
  10809. },
  10810. getSuite: {
  10811. headers: {
  10812. accept: "application/vnd.github.antiope-preview+json"
  10813. },
  10814. method: "GET",
  10815. params: {
  10816. check_suite_id: {
  10817. required: true,
  10818. type: "integer"
  10819. },
  10820. owner: {
  10821. required: true,
  10822. type: "string"
  10823. },
  10824. repo: {
  10825. required: true,
  10826. type: "string"
  10827. }
  10828. },
  10829. url: "/repos/:owner/:repo/check-suites/:check_suite_id"
  10830. },
  10831. listAnnotations: {
  10832. headers: {
  10833. accept: "application/vnd.github.antiope-preview+json"
  10834. },
  10835. method: "GET",
  10836. params: {
  10837. check_run_id: {
  10838. required: true,
  10839. type: "integer"
  10840. },
  10841. owner: {
  10842. required: true,
  10843. type: "string"
  10844. },
  10845. page: {
  10846. type: "integer"
  10847. },
  10848. per_page: {
  10849. type: "integer"
  10850. },
  10851. repo: {
  10852. required: true,
  10853. type: "string"
  10854. }
  10855. },
  10856. url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations"
  10857. },
  10858. listForRef: {
  10859. headers: {
  10860. accept: "application/vnd.github.antiope-preview+json"
  10861. },
  10862. method: "GET",
  10863. params: {
  10864. check_name: {
  10865. type: "string"
  10866. },
  10867. filter: {
  10868. enum: ["latest", "all"],
  10869. type: "string"
  10870. },
  10871. owner: {
  10872. required: true,
  10873. type: "string"
  10874. },
  10875. page: {
  10876. type: "integer"
  10877. },
  10878. per_page: {
  10879. type: "integer"
  10880. },
  10881. ref: {
  10882. required: true,
  10883. type: "string"
  10884. },
  10885. repo: {
  10886. required: true,
  10887. type: "string"
  10888. },
  10889. status: {
  10890. enum: ["queued", "in_progress", "completed"],
  10891. type: "string"
  10892. }
  10893. },
  10894. url: "/repos/:owner/:repo/commits/:ref/check-runs"
  10895. },
  10896. listForSuite: {
  10897. headers: {
  10898. accept: "application/vnd.github.antiope-preview+json"
  10899. },
  10900. method: "GET",
  10901. params: {
  10902. check_name: {
  10903. type: "string"
  10904. },
  10905. check_suite_id: {
  10906. required: true,
  10907. type: "integer"
  10908. },
  10909. filter: {
  10910. enum: ["latest", "all"],
  10911. type: "string"
  10912. },
  10913. owner: {
  10914. required: true,
  10915. type: "string"
  10916. },
  10917. page: {
  10918. type: "integer"
  10919. },
  10920. per_page: {
  10921. type: "integer"
  10922. },
  10923. repo: {
  10924. required: true,
  10925. type: "string"
  10926. },
  10927. status: {
  10928. enum: ["queued", "in_progress", "completed"],
  10929. type: "string"
  10930. }
  10931. },
  10932. url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"
  10933. },
  10934. listSuitesForRef: {
  10935. headers: {
  10936. accept: "application/vnd.github.antiope-preview+json"
  10937. },
  10938. method: "GET",
  10939. params: {
  10940. app_id: {
  10941. type: "integer"
  10942. },
  10943. check_name: {
  10944. type: "string"
  10945. },
  10946. owner: {
  10947. required: true,
  10948. type: "string"
  10949. },
  10950. page: {
  10951. type: "integer"
  10952. },
  10953. per_page: {
  10954. type: "integer"
  10955. },
  10956. ref: {
  10957. required: true,
  10958. type: "string"
  10959. },
  10960. repo: {
  10961. required: true,
  10962. type: "string"
  10963. }
  10964. },
  10965. url: "/repos/:owner/:repo/commits/:ref/check-suites"
  10966. },
  10967. rerequestSuite: {
  10968. headers: {
  10969. accept: "application/vnd.github.antiope-preview+json"
  10970. },
  10971. method: "POST",
  10972. params: {
  10973. check_suite_id: {
  10974. required: true,
  10975. type: "integer"
  10976. },
  10977. owner: {
  10978. required: true,
  10979. type: "string"
  10980. },
  10981. repo: {
  10982. required: true,
  10983. type: "string"
  10984. }
  10985. },
  10986. url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"
  10987. },
  10988. setSuitesPreferences: {
  10989. headers: {
  10990. accept: "application/vnd.github.antiope-preview+json"
  10991. },
  10992. method: "PATCH",
  10993. params: {
  10994. auto_trigger_checks: {
  10995. type: "object[]"
  10996. },
  10997. "auto_trigger_checks[].app_id": {
  10998. required: true,
  10999. type: "integer"
  11000. },
  11001. "auto_trigger_checks[].setting": {
  11002. required: true,
  11003. type: "boolean"
  11004. },
  11005. owner: {
  11006. required: true,
  11007. type: "string"
  11008. },
  11009. repo: {
  11010. required: true,
  11011. type: "string"
  11012. }
  11013. },
  11014. url: "/repos/:owner/:repo/check-suites/preferences"
  11015. },
  11016. update: {
  11017. headers: {
  11018. accept: "application/vnd.github.antiope-preview+json"
  11019. },
  11020. method: "PATCH",
  11021. params: {
  11022. actions: {
  11023. type: "object[]"
  11024. },
  11025. "actions[].description": {
  11026. required: true,
  11027. type: "string"
  11028. },
  11029. "actions[].identifier": {
  11030. required: true,
  11031. type: "string"
  11032. },
  11033. "actions[].label": {
  11034. required: true,
  11035. type: "string"
  11036. },
  11037. check_run_id: {
  11038. required: true,
  11039. type: "integer"
  11040. },
  11041. completed_at: {
  11042. type: "string"
  11043. },
  11044. conclusion: {
  11045. enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
  11046. type: "string"
  11047. },
  11048. details_url: {
  11049. type: "string"
  11050. },
  11051. external_id: {
  11052. type: "string"
  11053. },
  11054. name: {
  11055. type: "string"
  11056. },
  11057. output: {
  11058. type: "object"
  11059. },
  11060. "output.annotations": {
  11061. type: "object[]"
  11062. },
  11063. "output.annotations[].annotation_level": {
  11064. enum: ["notice", "warning", "failure"],
  11065. required: true,
  11066. type: "string"
  11067. },
  11068. "output.annotations[].end_column": {
  11069. type: "integer"
  11070. },
  11071. "output.annotations[].end_line": {
  11072. required: true,
  11073. type: "integer"
  11074. },
  11075. "output.annotations[].message": {
  11076. required: true,
  11077. type: "string"
  11078. },
  11079. "output.annotations[].path": {
  11080. required: true,
  11081. type: "string"
  11082. },
  11083. "output.annotations[].raw_details": {
  11084. type: "string"
  11085. },
  11086. "output.annotations[].start_column": {
  11087. type: "integer"
  11088. },
  11089. "output.annotations[].start_line": {
  11090. required: true,
  11091. type: "integer"
  11092. },
  11093. "output.annotations[].title": {
  11094. type: "string"
  11095. },
  11096. "output.images": {
  11097. type: "object[]"
  11098. },
  11099. "output.images[].alt": {
  11100. required: true,
  11101. type: "string"
  11102. },
  11103. "output.images[].caption": {
  11104. type: "string"
  11105. },
  11106. "output.images[].image_url": {
  11107. required: true,
  11108. type: "string"
  11109. },
  11110. "output.summary": {
  11111. required: true,
  11112. type: "string"
  11113. },
  11114. "output.text": {
  11115. type: "string"
  11116. },
  11117. "output.title": {
  11118. type: "string"
  11119. },
  11120. owner: {
  11121. required: true,
  11122. type: "string"
  11123. },
  11124. repo: {
  11125. required: true,
  11126. type: "string"
  11127. },
  11128. started_at: {
  11129. type: "string"
  11130. },
  11131. status: {
  11132. enum: ["queued", "in_progress", "completed"],
  11133. type: "string"
  11134. }
  11135. },
  11136. url: "/repos/:owner/:repo/check-runs/:check_run_id"
  11137. }
  11138. },
  11139. codesOfConduct: {
  11140. getConductCode: {
  11141. headers: {
  11142. accept: "application/vnd.github.scarlet-witch-preview+json"
  11143. },
  11144. method: "GET",
  11145. params: {
  11146. key: {
  11147. required: true,
  11148. type: "string"
  11149. }
  11150. },
  11151. url: "/codes_of_conduct/:key"
  11152. },
  11153. getForRepo: {
  11154. headers: {
  11155. accept: "application/vnd.github.scarlet-witch-preview+json"
  11156. },
  11157. method: "GET",
  11158. params: {
  11159. owner: {
  11160. required: true,
  11161. type: "string"
  11162. },
  11163. repo: {
  11164. required: true,
  11165. type: "string"
  11166. }
  11167. },
  11168. url: "/repos/:owner/:repo/community/code_of_conduct"
  11169. },
  11170. listConductCodes: {
  11171. headers: {
  11172. accept: "application/vnd.github.scarlet-witch-preview+json"
  11173. },
  11174. method: "GET",
  11175. params: {},
  11176. url: "/codes_of_conduct"
  11177. }
  11178. },
  11179. emojis: {
  11180. get: {
  11181. method: "GET",
  11182. params: {},
  11183. url: "/emojis"
  11184. }
  11185. },
  11186. gists: {
  11187. checkIsStarred: {
  11188. method: "GET",
  11189. params: {
  11190. gist_id: {
  11191. required: true,
  11192. type: "string"
  11193. }
  11194. },
  11195. url: "/gists/:gist_id/star"
  11196. },
  11197. create: {
  11198. method: "POST",
  11199. params: {
  11200. description: {
  11201. type: "string"
  11202. },
  11203. files: {
  11204. required: true,
  11205. type: "object"
  11206. },
  11207. "files.content": {
  11208. type: "string"
  11209. },
  11210. public: {
  11211. type: "boolean"
  11212. }
  11213. },
  11214. url: "/gists"
  11215. },
  11216. createComment: {
  11217. method: "POST",
  11218. params: {
  11219. body: {
  11220. required: true,
  11221. type: "string"
  11222. },
  11223. gist_id: {
  11224. required: true,
  11225. type: "string"
  11226. }
  11227. },
  11228. url: "/gists/:gist_id/comments"
  11229. },
  11230. delete: {
  11231. method: "DELETE",
  11232. params: {
  11233. gist_id: {
  11234. required: true,
  11235. type: "string"
  11236. }
  11237. },
  11238. url: "/gists/:gist_id"
  11239. },
  11240. deleteComment: {
  11241. method: "DELETE",
  11242. params: {
  11243. comment_id: {
  11244. required: true,
  11245. type: "integer"
  11246. },
  11247. gist_id: {
  11248. required: true,
  11249. type: "string"
  11250. }
  11251. },
  11252. url: "/gists/:gist_id/comments/:comment_id"
  11253. },
  11254. fork: {
  11255. method: "POST",
  11256. params: {
  11257. gist_id: {
  11258. required: true,
  11259. type: "string"
  11260. }
  11261. },
  11262. url: "/gists/:gist_id/forks"
  11263. },
  11264. get: {
  11265. method: "GET",
  11266. params: {
  11267. gist_id: {
  11268. required: true,
  11269. type: "string"
  11270. }
  11271. },
  11272. url: "/gists/:gist_id"
  11273. },
  11274. getComment: {
  11275. method: "GET",
  11276. params: {
  11277. comment_id: {
  11278. required: true,
  11279. type: "integer"
  11280. },
  11281. gist_id: {
  11282. required: true,
  11283. type: "string"
  11284. }
  11285. },
  11286. url: "/gists/:gist_id/comments/:comment_id"
  11287. },
  11288. getRevision: {
  11289. method: "GET",
  11290. params: {
  11291. gist_id: {
  11292. required: true,
  11293. type: "string"
  11294. },
  11295. sha: {
  11296. required: true,
  11297. type: "string"
  11298. }
  11299. },
  11300. url: "/gists/:gist_id/:sha"
  11301. },
  11302. list: {
  11303. method: "GET",
  11304. params: {
  11305. page: {
  11306. type: "integer"
  11307. },
  11308. per_page: {
  11309. type: "integer"
  11310. },
  11311. since: {
  11312. type: "string"
  11313. }
  11314. },
  11315. url: "/gists"
  11316. },
  11317. listComments: {
  11318. method: "GET",
  11319. params: {
  11320. gist_id: {
  11321. required: true,
  11322. type: "string"
  11323. },
  11324. page: {
  11325. type: "integer"
  11326. },
  11327. per_page: {
  11328. type: "integer"
  11329. }
  11330. },
  11331. url: "/gists/:gist_id/comments"
  11332. },
  11333. listCommits: {
  11334. method: "GET",
  11335. params: {
  11336. gist_id: {
  11337. required: true,
  11338. type: "string"
  11339. },
  11340. page: {
  11341. type: "integer"
  11342. },
  11343. per_page: {
  11344. type: "integer"
  11345. }
  11346. },
  11347. url: "/gists/:gist_id/commits"
  11348. },
  11349. listForks: {
  11350. method: "GET",
  11351. params: {
  11352. gist_id: {
  11353. required: true,
  11354. type: "string"
  11355. },
  11356. page: {
  11357. type: "integer"
  11358. },
  11359. per_page: {
  11360. type: "integer"
  11361. }
  11362. },
  11363. url: "/gists/:gist_id/forks"
  11364. },
  11365. listPublic: {
  11366. method: "GET",
  11367. params: {
  11368. page: {
  11369. type: "integer"
  11370. },
  11371. per_page: {
  11372. type: "integer"
  11373. },
  11374. since: {
  11375. type: "string"
  11376. }
  11377. },
  11378. url: "/gists/public"
  11379. },
  11380. listPublicForUser: {
  11381. method: "GET",
  11382. params: {
  11383. page: {
  11384. type: "integer"
  11385. },
  11386. per_page: {
  11387. type: "integer"
  11388. },
  11389. since: {
  11390. type: "string"
  11391. },
  11392. username: {
  11393. required: true,
  11394. type: "string"
  11395. }
  11396. },
  11397. url: "/users/:username/gists"
  11398. },
  11399. listStarred: {
  11400. method: "GET",
  11401. params: {
  11402. page: {
  11403. type: "integer"
  11404. },
  11405. per_page: {
  11406. type: "integer"
  11407. },
  11408. since: {
  11409. type: "string"
  11410. }
  11411. },
  11412. url: "/gists/starred"
  11413. },
  11414. star: {
  11415. method: "PUT",
  11416. params: {
  11417. gist_id: {
  11418. required: true,
  11419. type: "string"
  11420. }
  11421. },
  11422. url: "/gists/:gist_id/star"
  11423. },
  11424. unstar: {
  11425. method: "DELETE",
  11426. params: {
  11427. gist_id: {
  11428. required: true,
  11429. type: "string"
  11430. }
  11431. },
  11432. url: "/gists/:gist_id/star"
  11433. },
  11434. update: {
  11435. method: "PATCH",
  11436. params: {
  11437. description: {
  11438. type: "string"
  11439. },
  11440. files: {
  11441. type: "object"
  11442. },
  11443. "files.content": {
  11444. type: "string"
  11445. },
  11446. "files.filename": {
  11447. type: "string"
  11448. },
  11449. gist_id: {
  11450. required: true,
  11451. type: "string"
  11452. }
  11453. },
  11454. url: "/gists/:gist_id"
  11455. },
  11456. updateComment: {
  11457. method: "PATCH",
  11458. params: {
  11459. body: {
  11460. required: true,
  11461. type: "string"
  11462. },
  11463. comment_id: {
  11464. required: true,
  11465. type: "integer"
  11466. },
  11467. gist_id: {
  11468. required: true,
  11469. type: "string"
  11470. }
  11471. },
  11472. url: "/gists/:gist_id/comments/:comment_id"
  11473. }
  11474. },
  11475. git: {
  11476. createBlob: {
  11477. method: "POST",
  11478. params: {
  11479. content: {
  11480. required: true,
  11481. type: "string"
  11482. },
  11483. encoding: {
  11484. type: "string"
  11485. },
  11486. owner: {
  11487. required: true,
  11488. type: "string"
  11489. },
  11490. repo: {
  11491. required: true,
  11492. type: "string"
  11493. }
  11494. },
  11495. url: "/repos/:owner/:repo/git/blobs"
  11496. },
  11497. createCommit: {
  11498. method: "POST",
  11499. params: {
  11500. author: {
  11501. type: "object"
  11502. },
  11503. "author.date": {
  11504. type: "string"
  11505. },
  11506. "author.email": {
  11507. type: "string"
  11508. },
  11509. "author.name": {
  11510. type: "string"
  11511. },
  11512. committer: {
  11513. type: "object"
  11514. },
  11515. "committer.date": {
  11516. type: "string"
  11517. },
  11518. "committer.email": {
  11519. type: "string"
  11520. },
  11521. "committer.name": {
  11522. type: "string"
  11523. },
  11524. message: {
  11525. required: true,
  11526. type: "string"
  11527. },
  11528. owner: {
  11529. required: true,
  11530. type: "string"
  11531. },
  11532. parents: {
  11533. required: true,
  11534. type: "string[]"
  11535. },
  11536. repo: {
  11537. required: true,
  11538. type: "string"
  11539. },
  11540. signature: {
  11541. type: "string"
  11542. },
  11543. tree: {
  11544. required: true,
  11545. type: "string"
  11546. }
  11547. },
  11548. url: "/repos/:owner/:repo/git/commits"
  11549. },
  11550. createRef: {
  11551. method: "POST",
  11552. params: {
  11553. owner: {
  11554. required: true,
  11555. type: "string"
  11556. },
  11557. ref: {
  11558. required: true,
  11559. type: "string"
  11560. },
  11561. repo: {
  11562. required: true,
  11563. type: "string"
  11564. },
  11565. sha: {
  11566. required: true,
  11567. type: "string"
  11568. }
  11569. },
  11570. url: "/repos/:owner/:repo/git/refs"
  11571. },
  11572. createTag: {
  11573. method: "POST",
  11574. params: {
  11575. message: {
  11576. required: true,
  11577. type: "string"
  11578. },
  11579. object: {
  11580. required: true,
  11581. type: "string"
  11582. },
  11583. owner: {
  11584. required: true,
  11585. type: "string"
  11586. },
  11587. repo: {
  11588. required: true,
  11589. type: "string"
  11590. },
  11591. tag: {
  11592. required: true,
  11593. type: "string"
  11594. },
  11595. tagger: {
  11596. type: "object"
  11597. },
  11598. "tagger.date": {
  11599. type: "string"
  11600. },
  11601. "tagger.email": {
  11602. type: "string"
  11603. },
  11604. "tagger.name": {
  11605. type: "string"
  11606. },
  11607. type: {
  11608. enum: ["commit", "tree", "blob"],
  11609. required: true,
  11610. type: "string"
  11611. }
  11612. },
  11613. url: "/repos/:owner/:repo/git/tags"
  11614. },
  11615. createTree: {
  11616. method: "POST",
  11617. params: {
  11618. base_tree: {
  11619. type: "string"
  11620. },
  11621. owner: {
  11622. required: true,
  11623. type: "string"
  11624. },
  11625. repo: {
  11626. required: true,
  11627. type: "string"
  11628. },
  11629. tree: {
  11630. required: true,
  11631. type: "object[]"
  11632. },
  11633. "tree[].content": {
  11634. type: "string"
  11635. },
  11636. "tree[].mode": {
  11637. enum: ["100644", "100755", "040000", "160000", "120000"],
  11638. type: "string"
  11639. },
  11640. "tree[].path": {
  11641. type: "string"
  11642. },
  11643. "tree[].sha": {
  11644. allowNull: true,
  11645. type: "string"
  11646. },
  11647. "tree[].type": {
  11648. enum: ["blob", "tree", "commit"],
  11649. type: "string"
  11650. }
  11651. },
  11652. url: "/repos/:owner/:repo/git/trees"
  11653. },
  11654. deleteRef: {
  11655. method: "DELETE",
  11656. params: {
  11657. owner: {
  11658. required: true,
  11659. type: "string"
  11660. },
  11661. ref: {
  11662. required: true,
  11663. type: "string"
  11664. },
  11665. repo: {
  11666. required: true,
  11667. type: "string"
  11668. }
  11669. },
  11670. url: "/repos/:owner/:repo/git/refs/:ref"
  11671. },
  11672. getBlob: {
  11673. method: "GET",
  11674. params: {
  11675. file_sha: {
  11676. required: true,
  11677. type: "string"
  11678. },
  11679. owner: {
  11680. required: true,
  11681. type: "string"
  11682. },
  11683. repo: {
  11684. required: true,
  11685. type: "string"
  11686. }
  11687. },
  11688. url: "/repos/:owner/:repo/git/blobs/:file_sha"
  11689. },
  11690. getCommit: {
  11691. method: "GET",
  11692. params: {
  11693. commit_sha: {
  11694. required: true,
  11695. type: "string"
  11696. },
  11697. owner: {
  11698. required: true,
  11699. type: "string"
  11700. },
  11701. repo: {
  11702. required: true,
  11703. type: "string"
  11704. }
  11705. },
  11706. url: "/repos/:owner/:repo/git/commits/:commit_sha"
  11707. },
  11708. getRef: {
  11709. method: "GET",
  11710. params: {
  11711. owner: {
  11712. required: true,
  11713. type: "string"
  11714. },
  11715. ref: {
  11716. required: true,
  11717. type: "string"
  11718. },
  11719. repo: {
  11720. required: true,
  11721. type: "string"
  11722. }
  11723. },
  11724. url: "/repos/:owner/:repo/git/ref/:ref"
  11725. },
  11726. getTag: {
  11727. method: "GET",
  11728. params: {
  11729. owner: {
  11730. required: true,
  11731. type: "string"
  11732. },
  11733. repo: {
  11734. required: true,
  11735. type: "string"
  11736. },
  11737. tag_sha: {
  11738. required: true,
  11739. type: "string"
  11740. }
  11741. },
  11742. url: "/repos/:owner/:repo/git/tags/:tag_sha"
  11743. },
  11744. getTree: {
  11745. method: "GET",
  11746. params: {
  11747. owner: {
  11748. required: true,
  11749. type: "string"
  11750. },
  11751. recursive: {
  11752. enum: ["1"],
  11753. type: "integer"
  11754. },
  11755. repo: {
  11756. required: true,
  11757. type: "string"
  11758. },
  11759. tree_sha: {
  11760. required: true,
  11761. type: "string"
  11762. }
  11763. },
  11764. url: "/repos/:owner/:repo/git/trees/:tree_sha"
  11765. },
  11766. listMatchingRefs: {
  11767. method: "GET",
  11768. params: {
  11769. owner: {
  11770. required: true,
  11771. type: "string"
  11772. },
  11773. page: {
  11774. type: "integer"
  11775. },
  11776. per_page: {
  11777. type: "integer"
  11778. },
  11779. ref: {
  11780. required: true,
  11781. type: "string"
  11782. },
  11783. repo: {
  11784. required: true,
  11785. type: "string"
  11786. }
  11787. },
  11788. url: "/repos/:owner/:repo/git/matching-refs/:ref"
  11789. },
  11790. listRefs: {
  11791. method: "GET",
  11792. params: {
  11793. namespace: {
  11794. type: "string"
  11795. },
  11796. owner: {
  11797. required: true,
  11798. type: "string"
  11799. },
  11800. page: {
  11801. type: "integer"
  11802. },
  11803. per_page: {
  11804. type: "integer"
  11805. },
  11806. repo: {
  11807. required: true,
  11808. type: "string"
  11809. }
  11810. },
  11811. url: "/repos/:owner/:repo/git/refs/:namespace"
  11812. },
  11813. updateRef: {
  11814. method: "PATCH",
  11815. params: {
  11816. force: {
  11817. type: "boolean"
  11818. },
  11819. owner: {
  11820. required: true,
  11821. type: "string"
  11822. },
  11823. ref: {
  11824. required: true,
  11825. type: "string"
  11826. },
  11827. repo: {
  11828. required: true,
  11829. type: "string"
  11830. },
  11831. sha: {
  11832. required: true,
  11833. type: "string"
  11834. }
  11835. },
  11836. url: "/repos/:owner/:repo/git/refs/:ref"
  11837. }
  11838. },
  11839. gitignore: {
  11840. getTemplate: {
  11841. method: "GET",
  11842. params: {
  11843. name: {
  11844. required: true,
  11845. type: "string"
  11846. }
  11847. },
  11848. url: "/gitignore/templates/:name"
  11849. },
  11850. listTemplates: {
  11851. method: "GET",
  11852. params: {},
  11853. url: "/gitignore/templates"
  11854. }
  11855. },
  11856. interactions: {
  11857. addOrUpdateRestrictionsForOrg: {
  11858. headers: {
  11859. accept: "application/vnd.github.sombra-preview+json"
  11860. },
  11861. method: "PUT",
  11862. params: {
  11863. limit: {
  11864. enum: ["existing_users", "contributors_only", "collaborators_only"],
  11865. required: true,
  11866. type: "string"
  11867. },
  11868. org: {
  11869. required: true,
  11870. type: "string"
  11871. }
  11872. },
  11873. url: "/orgs/:org/interaction-limits"
  11874. },
  11875. addOrUpdateRestrictionsForRepo: {
  11876. headers: {
  11877. accept: "application/vnd.github.sombra-preview+json"
  11878. },
  11879. method: "PUT",
  11880. params: {
  11881. limit: {
  11882. enum: ["existing_users", "contributors_only", "collaborators_only"],
  11883. required: true,
  11884. type: "string"
  11885. },
  11886. owner: {
  11887. required: true,
  11888. type: "string"
  11889. },
  11890. repo: {
  11891. required: true,
  11892. type: "string"
  11893. }
  11894. },
  11895. url: "/repos/:owner/:repo/interaction-limits"
  11896. },
  11897. getRestrictionsForOrg: {
  11898. headers: {
  11899. accept: "application/vnd.github.sombra-preview+json"
  11900. },
  11901. method: "GET",
  11902. params: {
  11903. org: {
  11904. required: true,
  11905. type: "string"
  11906. }
  11907. },
  11908. url: "/orgs/:org/interaction-limits"
  11909. },
  11910. getRestrictionsForRepo: {
  11911. headers: {
  11912. accept: "application/vnd.github.sombra-preview+json"
  11913. },
  11914. method: "GET",
  11915. params: {
  11916. owner: {
  11917. required: true,
  11918. type: "string"
  11919. },
  11920. repo: {
  11921. required: true,
  11922. type: "string"
  11923. }
  11924. },
  11925. url: "/repos/:owner/:repo/interaction-limits"
  11926. },
  11927. removeRestrictionsForOrg: {
  11928. headers: {
  11929. accept: "application/vnd.github.sombra-preview+json"
  11930. },
  11931. method: "DELETE",
  11932. params: {
  11933. org: {
  11934. required: true,
  11935. type: "string"
  11936. }
  11937. },
  11938. url: "/orgs/:org/interaction-limits"
  11939. },
  11940. removeRestrictionsForRepo: {
  11941. headers: {
  11942. accept: "application/vnd.github.sombra-preview+json"
  11943. },
  11944. method: "DELETE",
  11945. params: {
  11946. owner: {
  11947. required: true,
  11948. type: "string"
  11949. },
  11950. repo: {
  11951. required: true,
  11952. type: "string"
  11953. }
  11954. },
  11955. url: "/repos/:owner/:repo/interaction-limits"
  11956. }
  11957. },
  11958. issues: {
  11959. addAssignees: {
  11960. method: "POST",
  11961. params: {
  11962. assignees: {
  11963. type: "string[]"
  11964. },
  11965. issue_number: {
  11966. required: true,
  11967. type: "integer"
  11968. },
  11969. number: {
  11970. alias: "issue_number",
  11971. deprecated: true,
  11972. type: "integer"
  11973. },
  11974. owner: {
  11975. required: true,
  11976. type: "string"
  11977. },
  11978. repo: {
  11979. required: true,
  11980. type: "string"
  11981. }
  11982. },
  11983. url: "/repos/:owner/:repo/issues/:issue_number/assignees"
  11984. },
  11985. addLabels: {
  11986. method: "POST",
  11987. params: {
  11988. issue_number: {
  11989. required: true,
  11990. type: "integer"
  11991. },
  11992. labels: {
  11993. required: true,
  11994. type: "string[]"
  11995. },
  11996. number: {
  11997. alias: "issue_number",
  11998. deprecated: true,
  11999. type: "integer"
  12000. },
  12001. owner: {
  12002. required: true,
  12003. type: "string"
  12004. },
  12005. repo: {
  12006. required: true,
  12007. type: "string"
  12008. }
  12009. },
  12010. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  12011. },
  12012. checkAssignee: {
  12013. method: "GET",
  12014. params: {
  12015. assignee: {
  12016. required: true,
  12017. type: "string"
  12018. },
  12019. owner: {
  12020. required: true,
  12021. type: "string"
  12022. },
  12023. repo: {
  12024. required: true,
  12025. type: "string"
  12026. }
  12027. },
  12028. url: "/repos/:owner/:repo/assignees/:assignee"
  12029. },
  12030. create: {
  12031. method: "POST",
  12032. params: {
  12033. assignee: {
  12034. type: "string"
  12035. },
  12036. assignees: {
  12037. type: "string[]"
  12038. },
  12039. body: {
  12040. type: "string"
  12041. },
  12042. labels: {
  12043. type: "string[]"
  12044. },
  12045. milestone: {
  12046. type: "integer"
  12047. },
  12048. owner: {
  12049. required: true,
  12050. type: "string"
  12051. },
  12052. repo: {
  12053. required: true,
  12054. type: "string"
  12055. },
  12056. title: {
  12057. required: true,
  12058. type: "string"
  12059. }
  12060. },
  12061. url: "/repos/:owner/:repo/issues"
  12062. },
  12063. createComment: {
  12064. method: "POST",
  12065. params: {
  12066. body: {
  12067. required: true,
  12068. type: "string"
  12069. },
  12070. issue_number: {
  12071. required: true,
  12072. type: "integer"
  12073. },
  12074. number: {
  12075. alias: "issue_number",
  12076. deprecated: true,
  12077. type: "integer"
  12078. },
  12079. owner: {
  12080. required: true,
  12081. type: "string"
  12082. },
  12083. repo: {
  12084. required: true,
  12085. type: "string"
  12086. }
  12087. },
  12088. url: "/repos/:owner/:repo/issues/:issue_number/comments"
  12089. },
  12090. createLabel: {
  12091. method: "POST",
  12092. params: {
  12093. color: {
  12094. required: true,
  12095. type: "string"
  12096. },
  12097. description: {
  12098. type: "string"
  12099. },
  12100. name: {
  12101. required: true,
  12102. type: "string"
  12103. },
  12104. owner: {
  12105. required: true,
  12106. type: "string"
  12107. },
  12108. repo: {
  12109. required: true,
  12110. type: "string"
  12111. }
  12112. },
  12113. url: "/repos/:owner/:repo/labels"
  12114. },
  12115. createMilestone: {
  12116. method: "POST",
  12117. params: {
  12118. description: {
  12119. type: "string"
  12120. },
  12121. due_on: {
  12122. type: "string"
  12123. },
  12124. owner: {
  12125. required: true,
  12126. type: "string"
  12127. },
  12128. repo: {
  12129. required: true,
  12130. type: "string"
  12131. },
  12132. state: {
  12133. enum: ["open", "closed"],
  12134. type: "string"
  12135. },
  12136. title: {
  12137. required: true,
  12138. type: "string"
  12139. }
  12140. },
  12141. url: "/repos/:owner/:repo/milestones"
  12142. },
  12143. deleteComment: {
  12144. method: "DELETE",
  12145. params: {
  12146. comment_id: {
  12147. required: true,
  12148. type: "integer"
  12149. },
  12150. owner: {
  12151. required: true,
  12152. type: "string"
  12153. },
  12154. repo: {
  12155. required: true,
  12156. type: "string"
  12157. }
  12158. },
  12159. url: "/repos/:owner/:repo/issues/comments/:comment_id"
  12160. },
  12161. deleteLabel: {
  12162. method: "DELETE",
  12163. params: {
  12164. name: {
  12165. required: true,
  12166. type: "string"
  12167. },
  12168. owner: {
  12169. required: true,
  12170. type: "string"
  12171. },
  12172. repo: {
  12173. required: true,
  12174. type: "string"
  12175. }
  12176. },
  12177. url: "/repos/:owner/:repo/labels/:name"
  12178. },
  12179. deleteMilestone: {
  12180. method: "DELETE",
  12181. params: {
  12182. milestone_number: {
  12183. required: true,
  12184. type: "integer"
  12185. },
  12186. number: {
  12187. alias: "milestone_number",
  12188. deprecated: true,
  12189. type: "integer"
  12190. },
  12191. owner: {
  12192. required: true,
  12193. type: "string"
  12194. },
  12195. repo: {
  12196. required: true,
  12197. type: "string"
  12198. }
  12199. },
  12200. url: "/repos/:owner/:repo/milestones/:milestone_number"
  12201. },
  12202. get: {
  12203. method: "GET",
  12204. params: {
  12205. issue_number: {
  12206. required: true,
  12207. type: "integer"
  12208. },
  12209. number: {
  12210. alias: "issue_number",
  12211. deprecated: true,
  12212. type: "integer"
  12213. },
  12214. owner: {
  12215. required: true,
  12216. type: "string"
  12217. },
  12218. repo: {
  12219. required: true,
  12220. type: "string"
  12221. }
  12222. },
  12223. url: "/repos/:owner/:repo/issues/:issue_number"
  12224. },
  12225. getComment: {
  12226. method: "GET",
  12227. params: {
  12228. comment_id: {
  12229. required: true,
  12230. type: "integer"
  12231. },
  12232. owner: {
  12233. required: true,
  12234. type: "string"
  12235. },
  12236. repo: {
  12237. required: true,
  12238. type: "string"
  12239. }
  12240. },
  12241. url: "/repos/:owner/:repo/issues/comments/:comment_id"
  12242. },
  12243. getEvent: {
  12244. method: "GET",
  12245. params: {
  12246. event_id: {
  12247. required: true,
  12248. type: "integer"
  12249. },
  12250. owner: {
  12251. required: true,
  12252. type: "string"
  12253. },
  12254. repo: {
  12255. required: true,
  12256. type: "string"
  12257. }
  12258. },
  12259. url: "/repos/:owner/:repo/issues/events/:event_id"
  12260. },
  12261. getLabel: {
  12262. method: "GET",
  12263. params: {
  12264. name: {
  12265. required: true,
  12266. type: "string"
  12267. },
  12268. owner: {
  12269. required: true,
  12270. type: "string"
  12271. },
  12272. repo: {
  12273. required: true,
  12274. type: "string"
  12275. }
  12276. },
  12277. url: "/repos/:owner/:repo/labels/:name"
  12278. },
  12279. getMilestone: {
  12280. method: "GET",
  12281. params: {
  12282. milestone_number: {
  12283. required: true,
  12284. type: "integer"
  12285. },
  12286. number: {
  12287. alias: "milestone_number",
  12288. deprecated: true,
  12289. type: "integer"
  12290. },
  12291. owner: {
  12292. required: true,
  12293. type: "string"
  12294. },
  12295. repo: {
  12296. required: true,
  12297. type: "string"
  12298. }
  12299. },
  12300. url: "/repos/:owner/:repo/milestones/:milestone_number"
  12301. },
  12302. list: {
  12303. method: "GET",
  12304. params: {
  12305. direction: {
  12306. enum: ["asc", "desc"],
  12307. type: "string"
  12308. },
  12309. filter: {
  12310. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  12311. type: "string"
  12312. },
  12313. labels: {
  12314. type: "string"
  12315. },
  12316. page: {
  12317. type: "integer"
  12318. },
  12319. per_page: {
  12320. type: "integer"
  12321. },
  12322. since: {
  12323. type: "string"
  12324. },
  12325. sort: {
  12326. enum: ["created", "updated", "comments"],
  12327. type: "string"
  12328. },
  12329. state: {
  12330. enum: ["open", "closed", "all"],
  12331. type: "string"
  12332. }
  12333. },
  12334. url: "/issues"
  12335. },
  12336. listAssignees: {
  12337. method: "GET",
  12338. params: {
  12339. owner: {
  12340. required: true,
  12341. type: "string"
  12342. },
  12343. page: {
  12344. type: "integer"
  12345. },
  12346. per_page: {
  12347. type: "integer"
  12348. },
  12349. repo: {
  12350. required: true,
  12351. type: "string"
  12352. }
  12353. },
  12354. url: "/repos/:owner/:repo/assignees"
  12355. },
  12356. listComments: {
  12357. method: "GET",
  12358. params: {
  12359. issue_number: {
  12360. required: true,
  12361. type: "integer"
  12362. },
  12363. number: {
  12364. alias: "issue_number",
  12365. deprecated: true,
  12366. type: "integer"
  12367. },
  12368. owner: {
  12369. required: true,
  12370. type: "string"
  12371. },
  12372. page: {
  12373. type: "integer"
  12374. },
  12375. per_page: {
  12376. type: "integer"
  12377. },
  12378. repo: {
  12379. required: true,
  12380. type: "string"
  12381. },
  12382. since: {
  12383. type: "string"
  12384. }
  12385. },
  12386. url: "/repos/:owner/:repo/issues/:issue_number/comments"
  12387. },
  12388. listCommentsForRepo: {
  12389. method: "GET",
  12390. params: {
  12391. direction: {
  12392. enum: ["asc", "desc"],
  12393. type: "string"
  12394. },
  12395. owner: {
  12396. required: true,
  12397. type: "string"
  12398. },
  12399. repo: {
  12400. required: true,
  12401. type: "string"
  12402. },
  12403. since: {
  12404. type: "string"
  12405. },
  12406. sort: {
  12407. enum: ["created", "updated"],
  12408. type: "string"
  12409. }
  12410. },
  12411. url: "/repos/:owner/:repo/issues/comments"
  12412. },
  12413. listEvents: {
  12414. method: "GET",
  12415. params: {
  12416. issue_number: {
  12417. required: true,
  12418. type: "integer"
  12419. },
  12420. number: {
  12421. alias: "issue_number",
  12422. deprecated: true,
  12423. type: "integer"
  12424. },
  12425. owner: {
  12426. required: true,
  12427. type: "string"
  12428. },
  12429. page: {
  12430. type: "integer"
  12431. },
  12432. per_page: {
  12433. type: "integer"
  12434. },
  12435. repo: {
  12436. required: true,
  12437. type: "string"
  12438. }
  12439. },
  12440. url: "/repos/:owner/:repo/issues/:issue_number/events"
  12441. },
  12442. listEventsForRepo: {
  12443. method: "GET",
  12444. params: {
  12445. owner: {
  12446. required: true,
  12447. type: "string"
  12448. },
  12449. page: {
  12450. type: "integer"
  12451. },
  12452. per_page: {
  12453. type: "integer"
  12454. },
  12455. repo: {
  12456. required: true,
  12457. type: "string"
  12458. }
  12459. },
  12460. url: "/repos/:owner/:repo/issues/events"
  12461. },
  12462. listEventsForTimeline: {
  12463. headers: {
  12464. accept: "application/vnd.github.mockingbird-preview+json"
  12465. },
  12466. method: "GET",
  12467. params: {
  12468. issue_number: {
  12469. required: true,
  12470. type: "integer"
  12471. },
  12472. number: {
  12473. alias: "issue_number",
  12474. deprecated: true,
  12475. type: "integer"
  12476. },
  12477. owner: {
  12478. required: true,
  12479. type: "string"
  12480. },
  12481. page: {
  12482. type: "integer"
  12483. },
  12484. per_page: {
  12485. type: "integer"
  12486. },
  12487. repo: {
  12488. required: true,
  12489. type: "string"
  12490. }
  12491. },
  12492. url: "/repos/:owner/:repo/issues/:issue_number/timeline"
  12493. },
  12494. listForAuthenticatedUser: {
  12495. method: "GET",
  12496. params: {
  12497. direction: {
  12498. enum: ["asc", "desc"],
  12499. type: "string"
  12500. },
  12501. filter: {
  12502. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  12503. type: "string"
  12504. },
  12505. labels: {
  12506. type: "string"
  12507. },
  12508. page: {
  12509. type: "integer"
  12510. },
  12511. per_page: {
  12512. type: "integer"
  12513. },
  12514. since: {
  12515. type: "string"
  12516. },
  12517. sort: {
  12518. enum: ["created", "updated", "comments"],
  12519. type: "string"
  12520. },
  12521. state: {
  12522. enum: ["open", "closed", "all"],
  12523. type: "string"
  12524. }
  12525. },
  12526. url: "/user/issues"
  12527. },
  12528. listForOrg: {
  12529. method: "GET",
  12530. params: {
  12531. direction: {
  12532. enum: ["asc", "desc"],
  12533. type: "string"
  12534. },
  12535. filter: {
  12536. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  12537. type: "string"
  12538. },
  12539. labels: {
  12540. type: "string"
  12541. },
  12542. org: {
  12543. required: true,
  12544. type: "string"
  12545. },
  12546. page: {
  12547. type: "integer"
  12548. },
  12549. per_page: {
  12550. type: "integer"
  12551. },
  12552. since: {
  12553. type: "string"
  12554. },
  12555. sort: {
  12556. enum: ["created", "updated", "comments"],
  12557. type: "string"
  12558. },
  12559. state: {
  12560. enum: ["open", "closed", "all"],
  12561. type: "string"
  12562. }
  12563. },
  12564. url: "/orgs/:org/issues"
  12565. },
  12566. listForRepo: {
  12567. method: "GET",
  12568. params: {
  12569. assignee: {
  12570. type: "string"
  12571. },
  12572. creator: {
  12573. type: "string"
  12574. },
  12575. direction: {
  12576. enum: ["asc", "desc"],
  12577. type: "string"
  12578. },
  12579. labels: {
  12580. type: "string"
  12581. },
  12582. mentioned: {
  12583. type: "string"
  12584. },
  12585. milestone: {
  12586. type: "string"
  12587. },
  12588. owner: {
  12589. required: true,
  12590. type: "string"
  12591. },
  12592. page: {
  12593. type: "integer"
  12594. },
  12595. per_page: {
  12596. type: "integer"
  12597. },
  12598. repo: {
  12599. required: true,
  12600. type: "string"
  12601. },
  12602. since: {
  12603. type: "string"
  12604. },
  12605. sort: {
  12606. enum: ["created", "updated", "comments"],
  12607. type: "string"
  12608. },
  12609. state: {
  12610. enum: ["open", "closed", "all"],
  12611. type: "string"
  12612. }
  12613. },
  12614. url: "/repos/:owner/:repo/issues"
  12615. },
  12616. listLabelsForMilestone: {
  12617. method: "GET",
  12618. params: {
  12619. milestone_number: {
  12620. required: true,
  12621. type: "integer"
  12622. },
  12623. number: {
  12624. alias: "milestone_number",
  12625. deprecated: true,
  12626. type: "integer"
  12627. },
  12628. owner: {
  12629. required: true,
  12630. type: "string"
  12631. },
  12632. page: {
  12633. type: "integer"
  12634. },
  12635. per_page: {
  12636. type: "integer"
  12637. },
  12638. repo: {
  12639. required: true,
  12640. type: "string"
  12641. }
  12642. },
  12643. url: "/repos/:owner/:repo/milestones/:milestone_number/labels"
  12644. },
  12645. listLabelsForRepo: {
  12646. method: "GET",
  12647. params: {
  12648. owner: {
  12649. required: true,
  12650. type: "string"
  12651. },
  12652. page: {
  12653. type: "integer"
  12654. },
  12655. per_page: {
  12656. type: "integer"
  12657. },
  12658. repo: {
  12659. required: true,
  12660. type: "string"
  12661. }
  12662. },
  12663. url: "/repos/:owner/:repo/labels"
  12664. },
  12665. listLabelsOnIssue: {
  12666. method: "GET",
  12667. params: {
  12668. issue_number: {
  12669. required: true,
  12670. type: "integer"
  12671. },
  12672. number: {
  12673. alias: "issue_number",
  12674. deprecated: true,
  12675. type: "integer"
  12676. },
  12677. owner: {
  12678. required: true,
  12679. type: "string"
  12680. },
  12681. page: {
  12682. type: "integer"
  12683. },
  12684. per_page: {
  12685. type: "integer"
  12686. },
  12687. repo: {
  12688. required: true,
  12689. type: "string"
  12690. }
  12691. },
  12692. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  12693. },
  12694. listMilestonesForRepo: {
  12695. method: "GET",
  12696. params: {
  12697. direction: {
  12698. enum: ["asc", "desc"],
  12699. type: "string"
  12700. },
  12701. owner: {
  12702. required: true,
  12703. type: "string"
  12704. },
  12705. page: {
  12706. type: "integer"
  12707. },
  12708. per_page: {
  12709. type: "integer"
  12710. },
  12711. repo: {
  12712. required: true,
  12713. type: "string"
  12714. },
  12715. sort: {
  12716. enum: ["due_on", "completeness"],
  12717. type: "string"
  12718. },
  12719. state: {
  12720. enum: ["open", "closed", "all"],
  12721. type: "string"
  12722. }
  12723. },
  12724. url: "/repos/:owner/:repo/milestones"
  12725. },
  12726. lock: {
  12727. method: "PUT",
  12728. params: {
  12729. issue_number: {
  12730. required: true,
  12731. type: "integer"
  12732. },
  12733. lock_reason: {
  12734. enum: ["off-topic", "too heated", "resolved", "spam"],
  12735. type: "string"
  12736. },
  12737. number: {
  12738. alias: "issue_number",
  12739. deprecated: true,
  12740. type: "integer"
  12741. },
  12742. owner: {
  12743. required: true,
  12744. type: "string"
  12745. },
  12746. repo: {
  12747. required: true,
  12748. type: "string"
  12749. }
  12750. },
  12751. url: "/repos/:owner/:repo/issues/:issue_number/lock"
  12752. },
  12753. removeAssignees: {
  12754. method: "DELETE",
  12755. params: {
  12756. assignees: {
  12757. type: "string[]"
  12758. },
  12759. issue_number: {
  12760. required: true,
  12761. type: "integer"
  12762. },
  12763. number: {
  12764. alias: "issue_number",
  12765. deprecated: true,
  12766. type: "integer"
  12767. },
  12768. owner: {
  12769. required: true,
  12770. type: "string"
  12771. },
  12772. repo: {
  12773. required: true,
  12774. type: "string"
  12775. }
  12776. },
  12777. url: "/repos/:owner/:repo/issues/:issue_number/assignees"
  12778. },
  12779. removeLabel: {
  12780. method: "DELETE",
  12781. params: {
  12782. issue_number: {
  12783. required: true,
  12784. type: "integer"
  12785. },
  12786. name: {
  12787. required: true,
  12788. type: "string"
  12789. },
  12790. number: {
  12791. alias: "issue_number",
  12792. deprecated: true,
  12793. type: "integer"
  12794. },
  12795. owner: {
  12796. required: true,
  12797. type: "string"
  12798. },
  12799. repo: {
  12800. required: true,
  12801. type: "string"
  12802. }
  12803. },
  12804. url: "/repos/:owner/:repo/issues/:issue_number/labels/:name"
  12805. },
  12806. removeLabels: {
  12807. method: "DELETE",
  12808. params: {
  12809. issue_number: {
  12810. required: true,
  12811. type: "integer"
  12812. },
  12813. number: {
  12814. alias: "issue_number",
  12815. deprecated: true,
  12816. type: "integer"
  12817. },
  12818. owner: {
  12819. required: true,
  12820. type: "string"
  12821. },
  12822. repo: {
  12823. required: true,
  12824. type: "string"
  12825. }
  12826. },
  12827. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  12828. },
  12829. replaceLabels: {
  12830. method: "PUT",
  12831. params: {
  12832. issue_number: {
  12833. required: true,
  12834. type: "integer"
  12835. },
  12836. labels: {
  12837. type: "string[]"
  12838. },
  12839. number: {
  12840. alias: "issue_number",
  12841. deprecated: true,
  12842. type: "integer"
  12843. },
  12844. owner: {
  12845. required: true,
  12846. type: "string"
  12847. },
  12848. repo: {
  12849. required: true,
  12850. type: "string"
  12851. }
  12852. },
  12853. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  12854. },
  12855. unlock: {
  12856. method: "DELETE",
  12857. params: {
  12858. issue_number: {
  12859. required: true,
  12860. type: "integer"
  12861. },
  12862. number: {
  12863. alias: "issue_number",
  12864. deprecated: true,
  12865. type: "integer"
  12866. },
  12867. owner: {
  12868. required: true,
  12869. type: "string"
  12870. },
  12871. repo: {
  12872. required: true,
  12873. type: "string"
  12874. }
  12875. },
  12876. url: "/repos/:owner/:repo/issues/:issue_number/lock"
  12877. },
  12878. update: {
  12879. method: "PATCH",
  12880. params: {
  12881. assignee: {
  12882. type: "string"
  12883. },
  12884. assignees: {
  12885. type: "string[]"
  12886. },
  12887. body: {
  12888. type: "string"
  12889. },
  12890. issue_number: {
  12891. required: true,
  12892. type: "integer"
  12893. },
  12894. labels: {
  12895. type: "string[]"
  12896. },
  12897. milestone: {
  12898. allowNull: true,
  12899. type: "integer"
  12900. },
  12901. number: {
  12902. alias: "issue_number",
  12903. deprecated: true,
  12904. type: "integer"
  12905. },
  12906. owner: {
  12907. required: true,
  12908. type: "string"
  12909. },
  12910. repo: {
  12911. required: true,
  12912. type: "string"
  12913. },
  12914. state: {
  12915. enum: ["open", "closed"],
  12916. type: "string"
  12917. },
  12918. title: {
  12919. type: "string"
  12920. }
  12921. },
  12922. url: "/repos/:owner/:repo/issues/:issue_number"
  12923. },
  12924. updateComment: {
  12925. method: "PATCH",
  12926. params: {
  12927. body: {
  12928. required: true,
  12929. type: "string"
  12930. },
  12931. comment_id: {
  12932. required: true,
  12933. type: "integer"
  12934. },
  12935. owner: {
  12936. required: true,
  12937. type: "string"
  12938. },
  12939. repo: {
  12940. required: true,
  12941. type: "string"
  12942. }
  12943. },
  12944. url: "/repos/:owner/:repo/issues/comments/:comment_id"
  12945. },
  12946. updateLabel: {
  12947. method: "PATCH",
  12948. params: {
  12949. color: {
  12950. type: "string"
  12951. },
  12952. current_name: {
  12953. required: true,
  12954. type: "string"
  12955. },
  12956. description: {
  12957. type: "string"
  12958. },
  12959. name: {
  12960. type: "string"
  12961. },
  12962. owner: {
  12963. required: true,
  12964. type: "string"
  12965. },
  12966. repo: {
  12967. required: true,
  12968. type: "string"
  12969. }
  12970. },
  12971. url: "/repos/:owner/:repo/labels/:current_name"
  12972. },
  12973. updateMilestone: {
  12974. method: "PATCH",
  12975. params: {
  12976. description: {
  12977. type: "string"
  12978. },
  12979. due_on: {
  12980. type: "string"
  12981. },
  12982. milestone_number: {
  12983. required: true,
  12984. type: "integer"
  12985. },
  12986. number: {
  12987. alias: "milestone_number",
  12988. deprecated: true,
  12989. type: "integer"
  12990. },
  12991. owner: {
  12992. required: true,
  12993. type: "string"
  12994. },
  12995. repo: {
  12996. required: true,
  12997. type: "string"
  12998. },
  12999. state: {
  13000. enum: ["open", "closed"],
  13001. type: "string"
  13002. },
  13003. title: {
  13004. type: "string"
  13005. }
  13006. },
  13007. url: "/repos/:owner/:repo/milestones/:milestone_number"
  13008. }
  13009. },
  13010. licenses: {
  13011. get: {
  13012. method: "GET",
  13013. params: {
  13014. license: {
  13015. required: true,
  13016. type: "string"
  13017. }
  13018. },
  13019. url: "/licenses/:license"
  13020. },
  13021. getForRepo: {
  13022. method: "GET",
  13023. params: {
  13024. owner: {
  13025. required: true,
  13026. type: "string"
  13027. },
  13028. repo: {
  13029. required: true,
  13030. type: "string"
  13031. }
  13032. },
  13033. url: "/repos/:owner/:repo/license"
  13034. },
  13035. list: {
  13036. deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",
  13037. method: "GET",
  13038. params: {},
  13039. url: "/licenses"
  13040. },
  13041. listCommonlyUsed: {
  13042. method: "GET",
  13043. params: {},
  13044. url: "/licenses"
  13045. }
  13046. },
  13047. markdown: {
  13048. render: {
  13049. method: "POST",
  13050. params: {
  13051. context: {
  13052. type: "string"
  13053. },
  13054. mode: {
  13055. enum: ["markdown", "gfm"],
  13056. type: "string"
  13057. },
  13058. text: {
  13059. required: true,
  13060. type: "string"
  13061. }
  13062. },
  13063. url: "/markdown"
  13064. },
  13065. renderRaw: {
  13066. headers: {
  13067. "content-type": "text/plain; charset=utf-8"
  13068. },
  13069. method: "POST",
  13070. params: {
  13071. data: {
  13072. mapTo: "data",
  13073. required: true,
  13074. type: "string"
  13075. }
  13076. },
  13077. url: "/markdown/raw"
  13078. }
  13079. },
  13080. meta: {
  13081. get: {
  13082. method: "GET",
  13083. params: {},
  13084. url: "/meta"
  13085. }
  13086. },
  13087. migrations: {
  13088. cancelImport: {
  13089. method: "DELETE",
  13090. params: {
  13091. owner: {
  13092. required: true,
  13093. type: "string"
  13094. },
  13095. repo: {
  13096. required: true,
  13097. type: "string"
  13098. }
  13099. },
  13100. url: "/repos/:owner/:repo/import"
  13101. },
  13102. deleteArchiveForAuthenticatedUser: {
  13103. headers: {
  13104. accept: "application/vnd.github.wyandotte-preview+json"
  13105. },
  13106. method: "DELETE",
  13107. params: {
  13108. migration_id: {
  13109. required: true,
  13110. type: "integer"
  13111. }
  13112. },
  13113. url: "/user/migrations/:migration_id/archive"
  13114. },
  13115. deleteArchiveForOrg: {
  13116. headers: {
  13117. accept: "application/vnd.github.wyandotte-preview+json"
  13118. },
  13119. method: "DELETE",
  13120. params: {
  13121. migration_id: {
  13122. required: true,
  13123. type: "integer"
  13124. },
  13125. org: {
  13126. required: true,
  13127. type: "string"
  13128. }
  13129. },
  13130. url: "/orgs/:org/migrations/:migration_id/archive"
  13131. },
  13132. downloadArchiveForOrg: {
  13133. headers: {
  13134. accept: "application/vnd.github.wyandotte-preview+json"
  13135. },
  13136. method: "GET",
  13137. params: {
  13138. migration_id: {
  13139. required: true,
  13140. type: "integer"
  13141. },
  13142. org: {
  13143. required: true,
  13144. type: "string"
  13145. }
  13146. },
  13147. url: "/orgs/:org/migrations/:migration_id/archive"
  13148. },
  13149. getArchiveForAuthenticatedUser: {
  13150. headers: {
  13151. accept: "application/vnd.github.wyandotte-preview+json"
  13152. },
  13153. method: "GET",
  13154. params: {
  13155. migration_id: {
  13156. required: true,
  13157. type: "integer"
  13158. }
  13159. },
  13160. url: "/user/migrations/:migration_id/archive"
  13161. },
  13162. getArchiveForOrg: {
  13163. deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)",
  13164. headers: {
  13165. accept: "application/vnd.github.wyandotte-preview+json"
  13166. },
  13167. method: "GET",
  13168. params: {
  13169. migration_id: {
  13170. required: true,
  13171. type: "integer"
  13172. },
  13173. org: {
  13174. required: true,
  13175. type: "string"
  13176. }
  13177. },
  13178. url: "/orgs/:org/migrations/:migration_id/archive"
  13179. },
  13180. getCommitAuthors: {
  13181. method: "GET",
  13182. params: {
  13183. owner: {
  13184. required: true,
  13185. type: "string"
  13186. },
  13187. repo: {
  13188. required: true,
  13189. type: "string"
  13190. },
  13191. since: {
  13192. type: "string"
  13193. }
  13194. },
  13195. url: "/repos/:owner/:repo/import/authors"
  13196. },
  13197. getImportProgress: {
  13198. method: "GET",
  13199. params: {
  13200. owner: {
  13201. required: true,
  13202. type: "string"
  13203. },
  13204. repo: {
  13205. required: true,
  13206. type: "string"
  13207. }
  13208. },
  13209. url: "/repos/:owner/:repo/import"
  13210. },
  13211. getLargeFiles: {
  13212. method: "GET",
  13213. params: {
  13214. owner: {
  13215. required: true,
  13216. type: "string"
  13217. },
  13218. repo: {
  13219. required: true,
  13220. type: "string"
  13221. }
  13222. },
  13223. url: "/repos/:owner/:repo/import/large_files"
  13224. },
  13225. getStatusForAuthenticatedUser: {
  13226. headers: {
  13227. accept: "application/vnd.github.wyandotte-preview+json"
  13228. },
  13229. method: "GET",
  13230. params: {
  13231. migration_id: {
  13232. required: true,
  13233. type: "integer"
  13234. }
  13235. },
  13236. url: "/user/migrations/:migration_id"
  13237. },
  13238. getStatusForOrg: {
  13239. headers: {
  13240. accept: "application/vnd.github.wyandotte-preview+json"
  13241. },
  13242. method: "GET",
  13243. params: {
  13244. migration_id: {
  13245. required: true,
  13246. type: "integer"
  13247. },
  13248. org: {
  13249. required: true,
  13250. type: "string"
  13251. }
  13252. },
  13253. url: "/orgs/:org/migrations/:migration_id"
  13254. },
  13255. listForAuthenticatedUser: {
  13256. headers: {
  13257. accept: "application/vnd.github.wyandotte-preview+json"
  13258. },
  13259. method: "GET",
  13260. params: {
  13261. page: {
  13262. type: "integer"
  13263. },
  13264. per_page: {
  13265. type: "integer"
  13266. }
  13267. },
  13268. url: "/user/migrations"
  13269. },
  13270. listForOrg: {
  13271. headers: {
  13272. accept: "application/vnd.github.wyandotte-preview+json"
  13273. },
  13274. method: "GET",
  13275. params: {
  13276. org: {
  13277. required: true,
  13278. type: "string"
  13279. },
  13280. page: {
  13281. type: "integer"
  13282. },
  13283. per_page: {
  13284. type: "integer"
  13285. }
  13286. },
  13287. url: "/orgs/:org/migrations"
  13288. },
  13289. listReposForOrg: {
  13290. headers: {
  13291. accept: "application/vnd.github.wyandotte-preview+json"
  13292. },
  13293. method: "GET",
  13294. params: {
  13295. migration_id: {
  13296. required: true,
  13297. type: "integer"
  13298. },
  13299. org: {
  13300. required: true,
  13301. type: "string"
  13302. },
  13303. page: {
  13304. type: "integer"
  13305. },
  13306. per_page: {
  13307. type: "integer"
  13308. }
  13309. },
  13310. url: "/orgs/:org/migrations/:migration_id/repositories"
  13311. },
  13312. listReposForUser: {
  13313. headers: {
  13314. accept: "application/vnd.github.wyandotte-preview+json"
  13315. },
  13316. method: "GET",
  13317. params: {
  13318. migration_id: {
  13319. required: true,
  13320. type: "integer"
  13321. },
  13322. page: {
  13323. type: "integer"
  13324. },
  13325. per_page: {
  13326. type: "integer"
  13327. }
  13328. },
  13329. url: "/user/:migration_id/repositories"
  13330. },
  13331. mapCommitAuthor: {
  13332. method: "PATCH",
  13333. params: {
  13334. author_id: {
  13335. required: true,
  13336. type: "integer"
  13337. },
  13338. email: {
  13339. type: "string"
  13340. },
  13341. name: {
  13342. type: "string"
  13343. },
  13344. owner: {
  13345. required: true,
  13346. type: "string"
  13347. },
  13348. repo: {
  13349. required: true,
  13350. type: "string"
  13351. }
  13352. },
  13353. url: "/repos/:owner/:repo/import/authors/:author_id"
  13354. },
  13355. setLfsPreference: {
  13356. method: "PATCH",
  13357. params: {
  13358. owner: {
  13359. required: true,
  13360. type: "string"
  13361. },
  13362. repo: {
  13363. required: true,
  13364. type: "string"
  13365. },
  13366. use_lfs: {
  13367. enum: ["opt_in", "opt_out"],
  13368. required: true,
  13369. type: "string"
  13370. }
  13371. },
  13372. url: "/repos/:owner/:repo/import/lfs"
  13373. },
  13374. startForAuthenticatedUser: {
  13375. method: "POST",
  13376. params: {
  13377. exclude_attachments: {
  13378. type: "boolean"
  13379. },
  13380. lock_repositories: {
  13381. type: "boolean"
  13382. },
  13383. repositories: {
  13384. required: true,
  13385. type: "string[]"
  13386. }
  13387. },
  13388. url: "/user/migrations"
  13389. },
  13390. startForOrg: {
  13391. method: "POST",
  13392. params: {
  13393. exclude_attachments: {
  13394. type: "boolean"
  13395. },
  13396. lock_repositories: {
  13397. type: "boolean"
  13398. },
  13399. org: {
  13400. required: true,
  13401. type: "string"
  13402. },
  13403. repositories: {
  13404. required: true,
  13405. type: "string[]"
  13406. }
  13407. },
  13408. url: "/orgs/:org/migrations"
  13409. },
  13410. startImport: {
  13411. method: "PUT",
  13412. params: {
  13413. owner: {
  13414. required: true,
  13415. type: "string"
  13416. },
  13417. repo: {
  13418. required: true,
  13419. type: "string"
  13420. },
  13421. tfvc_project: {
  13422. type: "string"
  13423. },
  13424. vcs: {
  13425. enum: ["subversion", "git", "mercurial", "tfvc"],
  13426. type: "string"
  13427. },
  13428. vcs_password: {
  13429. type: "string"
  13430. },
  13431. vcs_url: {
  13432. required: true,
  13433. type: "string"
  13434. },
  13435. vcs_username: {
  13436. type: "string"
  13437. }
  13438. },
  13439. url: "/repos/:owner/:repo/import"
  13440. },
  13441. unlockRepoForAuthenticatedUser: {
  13442. headers: {
  13443. accept: "application/vnd.github.wyandotte-preview+json"
  13444. },
  13445. method: "DELETE",
  13446. params: {
  13447. migration_id: {
  13448. required: true,
  13449. type: "integer"
  13450. },
  13451. repo_name: {
  13452. required: true,
  13453. type: "string"
  13454. }
  13455. },
  13456. url: "/user/migrations/:migration_id/repos/:repo_name/lock"
  13457. },
  13458. unlockRepoForOrg: {
  13459. headers: {
  13460. accept: "application/vnd.github.wyandotte-preview+json"
  13461. },
  13462. method: "DELETE",
  13463. params: {
  13464. migration_id: {
  13465. required: true,
  13466. type: "integer"
  13467. },
  13468. org: {
  13469. required: true,
  13470. type: "string"
  13471. },
  13472. repo_name: {
  13473. required: true,
  13474. type: "string"
  13475. }
  13476. },
  13477. url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"
  13478. },
  13479. updateImport: {
  13480. method: "PATCH",
  13481. params: {
  13482. owner: {
  13483. required: true,
  13484. type: "string"
  13485. },
  13486. repo: {
  13487. required: true,
  13488. type: "string"
  13489. },
  13490. vcs_password: {
  13491. type: "string"
  13492. },
  13493. vcs_username: {
  13494. type: "string"
  13495. }
  13496. },
  13497. url: "/repos/:owner/:repo/import"
  13498. }
  13499. },
  13500. oauthAuthorizations: {
  13501. checkAuthorization: {
  13502. deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",
  13503. method: "GET",
  13504. params: {
  13505. access_token: {
  13506. required: true,
  13507. type: "string"
  13508. },
  13509. client_id: {
  13510. required: true,
  13511. type: "string"
  13512. }
  13513. },
  13514. url: "/applications/:client_id/tokens/:access_token"
  13515. },
  13516. createAuthorization: {
  13517. deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",
  13518. method: "POST",
  13519. params: {
  13520. client_id: {
  13521. type: "string"
  13522. },
  13523. client_secret: {
  13524. type: "string"
  13525. },
  13526. fingerprint: {
  13527. type: "string"
  13528. },
  13529. note: {
  13530. required: true,
  13531. type: "string"
  13532. },
  13533. note_url: {
  13534. type: "string"
  13535. },
  13536. scopes: {
  13537. type: "string[]"
  13538. }
  13539. },
  13540. url: "/authorizations"
  13541. },
  13542. deleteAuthorization: {
  13543. deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",
  13544. method: "DELETE",
  13545. params: {
  13546. authorization_id: {
  13547. required: true,
  13548. type: "integer"
  13549. }
  13550. },
  13551. url: "/authorizations/:authorization_id"
  13552. },
  13553. deleteGrant: {
  13554. deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",
  13555. method: "DELETE",
  13556. params: {
  13557. grant_id: {
  13558. required: true,
  13559. type: "integer"
  13560. }
  13561. },
  13562. url: "/applications/grants/:grant_id"
  13563. },
  13564. getAuthorization: {
  13565. deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",
  13566. method: "GET",
  13567. params: {
  13568. authorization_id: {
  13569. required: true,
  13570. type: "integer"
  13571. }
  13572. },
  13573. url: "/authorizations/:authorization_id"
  13574. },
  13575. getGrant: {
  13576. deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",
  13577. method: "GET",
  13578. params: {
  13579. grant_id: {
  13580. required: true,
  13581. type: "integer"
  13582. }
  13583. },
  13584. url: "/applications/grants/:grant_id"
  13585. },
  13586. getOrCreateAuthorizationForApp: {
  13587. deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",
  13588. method: "PUT",
  13589. params: {
  13590. client_id: {
  13591. required: true,
  13592. type: "string"
  13593. },
  13594. client_secret: {
  13595. required: true,
  13596. type: "string"
  13597. },
  13598. fingerprint: {
  13599. type: "string"
  13600. },
  13601. note: {
  13602. type: "string"
  13603. },
  13604. note_url: {
  13605. type: "string"
  13606. },
  13607. scopes: {
  13608. type: "string[]"
  13609. }
  13610. },
  13611. url: "/authorizations/clients/:client_id"
  13612. },
  13613. getOrCreateAuthorizationForAppAndFingerprint: {
  13614. deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",
  13615. method: "PUT",
  13616. params: {
  13617. client_id: {
  13618. required: true,
  13619. type: "string"
  13620. },
  13621. client_secret: {
  13622. required: true,
  13623. type: "string"
  13624. },
  13625. fingerprint: {
  13626. required: true,
  13627. type: "string"
  13628. },
  13629. note: {
  13630. type: "string"
  13631. },
  13632. note_url: {
  13633. type: "string"
  13634. },
  13635. scopes: {
  13636. type: "string[]"
  13637. }
  13638. },
  13639. url: "/authorizations/clients/:client_id/:fingerprint"
  13640. },
  13641. getOrCreateAuthorizationForAppFingerprint: {
  13642. deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",
  13643. method: "PUT",
  13644. params: {
  13645. client_id: {
  13646. required: true,
  13647. type: "string"
  13648. },
  13649. client_secret: {
  13650. required: true,
  13651. type: "string"
  13652. },
  13653. fingerprint: {
  13654. required: true,
  13655. type: "string"
  13656. },
  13657. note: {
  13658. type: "string"
  13659. },
  13660. note_url: {
  13661. type: "string"
  13662. },
  13663. scopes: {
  13664. type: "string[]"
  13665. }
  13666. },
  13667. url: "/authorizations/clients/:client_id/:fingerprint"
  13668. },
  13669. listAuthorizations: {
  13670. deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",
  13671. method: "GET",
  13672. params: {
  13673. page: {
  13674. type: "integer"
  13675. },
  13676. per_page: {
  13677. type: "integer"
  13678. }
  13679. },
  13680. url: "/authorizations"
  13681. },
  13682. listGrants: {
  13683. deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",
  13684. method: "GET",
  13685. params: {
  13686. page: {
  13687. type: "integer"
  13688. },
  13689. per_page: {
  13690. type: "integer"
  13691. }
  13692. },
  13693. url: "/applications/grants"
  13694. },
  13695. resetAuthorization: {
  13696. deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",
  13697. method: "POST",
  13698. params: {
  13699. access_token: {
  13700. required: true,
  13701. type: "string"
  13702. },
  13703. client_id: {
  13704. required: true,
  13705. type: "string"
  13706. }
  13707. },
  13708. url: "/applications/:client_id/tokens/:access_token"
  13709. },
  13710. revokeAuthorizationForApplication: {
  13711. deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",
  13712. method: "DELETE",
  13713. params: {
  13714. access_token: {
  13715. required: true,
  13716. type: "string"
  13717. },
  13718. client_id: {
  13719. required: true,
  13720. type: "string"
  13721. }
  13722. },
  13723. url: "/applications/:client_id/tokens/:access_token"
  13724. },
  13725. revokeGrantForApplication: {
  13726. deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",
  13727. method: "DELETE",
  13728. params: {
  13729. access_token: {
  13730. required: true,
  13731. type: "string"
  13732. },
  13733. client_id: {
  13734. required: true,
  13735. type: "string"
  13736. }
  13737. },
  13738. url: "/applications/:client_id/grants/:access_token"
  13739. },
  13740. updateAuthorization: {
  13741. deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",
  13742. method: "PATCH",
  13743. params: {
  13744. add_scopes: {
  13745. type: "string[]"
  13746. },
  13747. authorization_id: {
  13748. required: true,
  13749. type: "integer"
  13750. },
  13751. fingerprint: {
  13752. type: "string"
  13753. },
  13754. note: {
  13755. type: "string"
  13756. },
  13757. note_url: {
  13758. type: "string"
  13759. },
  13760. remove_scopes: {
  13761. type: "string[]"
  13762. },
  13763. scopes: {
  13764. type: "string[]"
  13765. }
  13766. },
  13767. url: "/authorizations/:authorization_id"
  13768. }
  13769. },
  13770. orgs: {
  13771. addOrUpdateMembership: {
  13772. method: "PUT",
  13773. params: {
  13774. org: {
  13775. required: true,
  13776. type: "string"
  13777. },
  13778. role: {
  13779. enum: ["admin", "member"],
  13780. type: "string"
  13781. },
  13782. username: {
  13783. required: true,
  13784. type: "string"
  13785. }
  13786. },
  13787. url: "/orgs/:org/memberships/:username"
  13788. },
  13789. blockUser: {
  13790. method: "PUT",
  13791. params: {
  13792. org: {
  13793. required: true,
  13794. type: "string"
  13795. },
  13796. username: {
  13797. required: true,
  13798. type: "string"
  13799. }
  13800. },
  13801. url: "/orgs/:org/blocks/:username"
  13802. },
  13803. checkBlockedUser: {
  13804. method: "GET",
  13805. params: {
  13806. org: {
  13807. required: true,
  13808. type: "string"
  13809. },
  13810. username: {
  13811. required: true,
  13812. type: "string"
  13813. }
  13814. },
  13815. url: "/orgs/:org/blocks/:username"
  13816. },
  13817. checkMembership: {
  13818. method: "GET",
  13819. params: {
  13820. org: {
  13821. required: true,
  13822. type: "string"
  13823. },
  13824. username: {
  13825. required: true,
  13826. type: "string"
  13827. }
  13828. },
  13829. url: "/orgs/:org/members/:username"
  13830. },
  13831. checkPublicMembership: {
  13832. method: "GET",
  13833. params: {
  13834. org: {
  13835. required: true,
  13836. type: "string"
  13837. },
  13838. username: {
  13839. required: true,
  13840. type: "string"
  13841. }
  13842. },
  13843. url: "/orgs/:org/public_members/:username"
  13844. },
  13845. concealMembership: {
  13846. method: "DELETE",
  13847. params: {
  13848. org: {
  13849. required: true,
  13850. type: "string"
  13851. },
  13852. username: {
  13853. required: true,
  13854. type: "string"
  13855. }
  13856. },
  13857. url: "/orgs/:org/public_members/:username"
  13858. },
  13859. convertMemberToOutsideCollaborator: {
  13860. method: "PUT",
  13861. params: {
  13862. org: {
  13863. required: true,
  13864. type: "string"
  13865. },
  13866. username: {
  13867. required: true,
  13868. type: "string"
  13869. }
  13870. },
  13871. url: "/orgs/:org/outside_collaborators/:username"
  13872. },
  13873. createHook: {
  13874. method: "POST",
  13875. params: {
  13876. active: {
  13877. type: "boolean"
  13878. },
  13879. config: {
  13880. required: true,
  13881. type: "object"
  13882. },
  13883. "config.content_type": {
  13884. type: "string"
  13885. },
  13886. "config.insecure_ssl": {
  13887. type: "string"
  13888. },
  13889. "config.secret": {
  13890. type: "string"
  13891. },
  13892. "config.url": {
  13893. required: true,
  13894. type: "string"
  13895. },
  13896. events: {
  13897. type: "string[]"
  13898. },
  13899. name: {
  13900. required: true,
  13901. type: "string"
  13902. },
  13903. org: {
  13904. required: true,
  13905. type: "string"
  13906. }
  13907. },
  13908. url: "/orgs/:org/hooks"
  13909. },
  13910. createInvitation: {
  13911. method: "POST",
  13912. params: {
  13913. email: {
  13914. type: "string"
  13915. },
  13916. invitee_id: {
  13917. type: "integer"
  13918. },
  13919. org: {
  13920. required: true,
  13921. type: "string"
  13922. },
  13923. role: {
  13924. enum: ["admin", "direct_member", "billing_manager"],
  13925. type: "string"
  13926. },
  13927. team_ids: {
  13928. type: "integer[]"
  13929. }
  13930. },
  13931. url: "/orgs/:org/invitations"
  13932. },
  13933. deleteHook: {
  13934. method: "DELETE",
  13935. params: {
  13936. hook_id: {
  13937. required: true,
  13938. type: "integer"
  13939. },
  13940. org: {
  13941. required: true,
  13942. type: "string"
  13943. }
  13944. },
  13945. url: "/orgs/:org/hooks/:hook_id"
  13946. },
  13947. get: {
  13948. method: "GET",
  13949. params: {
  13950. org: {
  13951. required: true,
  13952. type: "string"
  13953. }
  13954. },
  13955. url: "/orgs/:org"
  13956. },
  13957. getHook: {
  13958. method: "GET",
  13959. params: {
  13960. hook_id: {
  13961. required: true,
  13962. type: "integer"
  13963. },
  13964. org: {
  13965. required: true,
  13966. type: "string"
  13967. }
  13968. },
  13969. url: "/orgs/:org/hooks/:hook_id"
  13970. },
  13971. getMembership: {
  13972. method: "GET",
  13973. params: {
  13974. org: {
  13975. required: true,
  13976. type: "string"
  13977. },
  13978. username: {
  13979. required: true,
  13980. type: "string"
  13981. }
  13982. },
  13983. url: "/orgs/:org/memberships/:username"
  13984. },
  13985. getMembershipForAuthenticatedUser: {
  13986. method: "GET",
  13987. params: {
  13988. org: {
  13989. required: true,
  13990. type: "string"
  13991. }
  13992. },
  13993. url: "/user/memberships/orgs/:org"
  13994. },
  13995. list: {
  13996. method: "GET",
  13997. params: {
  13998. page: {
  13999. type: "integer"
  14000. },
  14001. per_page: {
  14002. type: "integer"
  14003. },
  14004. since: {
  14005. type: "integer"
  14006. }
  14007. },
  14008. url: "/organizations"
  14009. },
  14010. listBlockedUsers: {
  14011. method: "GET",
  14012. params: {
  14013. org: {
  14014. required: true,
  14015. type: "string"
  14016. }
  14017. },
  14018. url: "/orgs/:org/blocks"
  14019. },
  14020. listForAuthenticatedUser: {
  14021. method: "GET",
  14022. params: {
  14023. page: {
  14024. type: "integer"
  14025. },
  14026. per_page: {
  14027. type: "integer"
  14028. }
  14029. },
  14030. url: "/user/orgs"
  14031. },
  14032. listForUser: {
  14033. method: "GET",
  14034. params: {
  14035. page: {
  14036. type: "integer"
  14037. },
  14038. per_page: {
  14039. type: "integer"
  14040. },
  14041. username: {
  14042. required: true,
  14043. type: "string"
  14044. }
  14045. },
  14046. url: "/users/:username/orgs"
  14047. },
  14048. listHooks: {
  14049. method: "GET",
  14050. params: {
  14051. org: {
  14052. required: true,
  14053. type: "string"
  14054. },
  14055. page: {
  14056. type: "integer"
  14057. },
  14058. per_page: {
  14059. type: "integer"
  14060. }
  14061. },
  14062. url: "/orgs/:org/hooks"
  14063. },
  14064. listInstallations: {
  14065. headers: {
  14066. accept: "application/vnd.github.machine-man-preview+json"
  14067. },
  14068. method: "GET",
  14069. params: {
  14070. org: {
  14071. required: true,
  14072. type: "string"
  14073. },
  14074. page: {
  14075. type: "integer"
  14076. },
  14077. per_page: {
  14078. type: "integer"
  14079. }
  14080. },
  14081. url: "/orgs/:org/installations"
  14082. },
  14083. listInvitationTeams: {
  14084. method: "GET",
  14085. params: {
  14086. invitation_id: {
  14087. required: true,
  14088. type: "integer"
  14089. },
  14090. org: {
  14091. required: true,
  14092. type: "string"
  14093. },
  14094. page: {
  14095. type: "integer"
  14096. },
  14097. per_page: {
  14098. type: "integer"
  14099. }
  14100. },
  14101. url: "/orgs/:org/invitations/:invitation_id/teams"
  14102. },
  14103. listMembers: {
  14104. method: "GET",
  14105. params: {
  14106. filter: {
  14107. enum: ["2fa_disabled", "all"],
  14108. type: "string"
  14109. },
  14110. org: {
  14111. required: true,
  14112. type: "string"
  14113. },
  14114. page: {
  14115. type: "integer"
  14116. },
  14117. per_page: {
  14118. type: "integer"
  14119. },
  14120. role: {
  14121. enum: ["all", "admin", "member"],
  14122. type: "string"
  14123. }
  14124. },
  14125. url: "/orgs/:org/members"
  14126. },
  14127. listMemberships: {
  14128. method: "GET",
  14129. params: {
  14130. page: {
  14131. type: "integer"
  14132. },
  14133. per_page: {
  14134. type: "integer"
  14135. },
  14136. state: {
  14137. enum: ["active", "pending"],
  14138. type: "string"
  14139. }
  14140. },
  14141. url: "/user/memberships/orgs"
  14142. },
  14143. listOutsideCollaborators: {
  14144. method: "GET",
  14145. params: {
  14146. filter: {
  14147. enum: ["2fa_disabled", "all"],
  14148. type: "string"
  14149. },
  14150. org: {
  14151. required: true,
  14152. type: "string"
  14153. },
  14154. page: {
  14155. type: "integer"
  14156. },
  14157. per_page: {
  14158. type: "integer"
  14159. }
  14160. },
  14161. url: "/orgs/:org/outside_collaborators"
  14162. },
  14163. listPendingInvitations: {
  14164. method: "GET",
  14165. params: {
  14166. org: {
  14167. required: true,
  14168. type: "string"
  14169. },
  14170. page: {
  14171. type: "integer"
  14172. },
  14173. per_page: {
  14174. type: "integer"
  14175. }
  14176. },
  14177. url: "/orgs/:org/invitations"
  14178. },
  14179. listPublicMembers: {
  14180. method: "GET",
  14181. params: {
  14182. org: {
  14183. required: true,
  14184. type: "string"
  14185. },
  14186. page: {
  14187. type: "integer"
  14188. },
  14189. per_page: {
  14190. type: "integer"
  14191. }
  14192. },
  14193. url: "/orgs/:org/public_members"
  14194. },
  14195. pingHook: {
  14196. method: "POST",
  14197. params: {
  14198. hook_id: {
  14199. required: true,
  14200. type: "integer"
  14201. },
  14202. org: {
  14203. required: true,
  14204. type: "string"
  14205. }
  14206. },
  14207. url: "/orgs/:org/hooks/:hook_id/pings"
  14208. },
  14209. publicizeMembership: {
  14210. method: "PUT",
  14211. params: {
  14212. org: {
  14213. required: true,
  14214. type: "string"
  14215. },
  14216. username: {
  14217. required: true,
  14218. type: "string"
  14219. }
  14220. },
  14221. url: "/orgs/:org/public_members/:username"
  14222. },
  14223. removeMember: {
  14224. method: "DELETE",
  14225. params: {
  14226. org: {
  14227. required: true,
  14228. type: "string"
  14229. },
  14230. username: {
  14231. required: true,
  14232. type: "string"
  14233. }
  14234. },
  14235. url: "/orgs/:org/members/:username"
  14236. },
  14237. removeMembership: {
  14238. method: "DELETE",
  14239. params: {
  14240. org: {
  14241. required: true,
  14242. type: "string"
  14243. },
  14244. username: {
  14245. required: true,
  14246. type: "string"
  14247. }
  14248. },
  14249. url: "/orgs/:org/memberships/:username"
  14250. },
  14251. removeOutsideCollaborator: {
  14252. method: "DELETE",
  14253. params: {
  14254. org: {
  14255. required: true,
  14256. type: "string"
  14257. },
  14258. username: {
  14259. required: true,
  14260. type: "string"
  14261. }
  14262. },
  14263. url: "/orgs/:org/outside_collaborators/:username"
  14264. },
  14265. unblockUser: {
  14266. method: "DELETE",
  14267. params: {
  14268. org: {
  14269. required: true,
  14270. type: "string"
  14271. },
  14272. username: {
  14273. required: true,
  14274. type: "string"
  14275. }
  14276. },
  14277. url: "/orgs/:org/blocks/:username"
  14278. },
  14279. update: {
  14280. method: "PATCH",
  14281. params: {
  14282. billing_email: {
  14283. type: "string"
  14284. },
  14285. company: {
  14286. type: "string"
  14287. },
  14288. default_repository_permission: {
  14289. enum: ["read", "write", "admin", "none"],
  14290. type: "string"
  14291. },
  14292. description: {
  14293. type: "string"
  14294. },
  14295. email: {
  14296. type: "string"
  14297. },
  14298. has_organization_projects: {
  14299. type: "boolean"
  14300. },
  14301. has_repository_projects: {
  14302. type: "boolean"
  14303. },
  14304. location: {
  14305. type: "string"
  14306. },
  14307. members_allowed_repository_creation_type: {
  14308. enum: ["all", "private", "none"],
  14309. type: "string"
  14310. },
  14311. members_can_create_internal_repositories: {
  14312. type: "boolean"
  14313. },
  14314. members_can_create_private_repositories: {
  14315. type: "boolean"
  14316. },
  14317. members_can_create_public_repositories: {
  14318. type: "boolean"
  14319. },
  14320. members_can_create_repositories: {
  14321. type: "boolean"
  14322. },
  14323. name: {
  14324. type: "string"
  14325. },
  14326. org: {
  14327. required: true,
  14328. type: "string"
  14329. }
  14330. },
  14331. url: "/orgs/:org"
  14332. },
  14333. updateHook: {
  14334. method: "PATCH",
  14335. params: {
  14336. active: {
  14337. type: "boolean"
  14338. },
  14339. config: {
  14340. type: "object"
  14341. },
  14342. "config.content_type": {
  14343. type: "string"
  14344. },
  14345. "config.insecure_ssl": {
  14346. type: "string"
  14347. },
  14348. "config.secret": {
  14349. type: "string"
  14350. },
  14351. "config.url": {
  14352. required: true,
  14353. type: "string"
  14354. },
  14355. events: {
  14356. type: "string[]"
  14357. },
  14358. hook_id: {
  14359. required: true,
  14360. type: "integer"
  14361. },
  14362. org: {
  14363. required: true,
  14364. type: "string"
  14365. }
  14366. },
  14367. url: "/orgs/:org/hooks/:hook_id"
  14368. },
  14369. updateMembership: {
  14370. method: "PATCH",
  14371. params: {
  14372. org: {
  14373. required: true,
  14374. type: "string"
  14375. },
  14376. state: {
  14377. enum: ["active"],
  14378. required: true,
  14379. type: "string"
  14380. }
  14381. },
  14382. url: "/user/memberships/orgs/:org"
  14383. }
  14384. },
  14385. projects: {
  14386. addCollaborator: {
  14387. headers: {
  14388. accept: "application/vnd.github.inertia-preview+json"
  14389. },
  14390. method: "PUT",
  14391. params: {
  14392. permission: {
  14393. enum: ["read", "write", "admin"],
  14394. type: "string"
  14395. },
  14396. project_id: {
  14397. required: true,
  14398. type: "integer"
  14399. },
  14400. username: {
  14401. required: true,
  14402. type: "string"
  14403. }
  14404. },
  14405. url: "/projects/:project_id/collaborators/:username"
  14406. },
  14407. createCard: {
  14408. headers: {
  14409. accept: "application/vnd.github.inertia-preview+json"
  14410. },
  14411. method: "POST",
  14412. params: {
  14413. column_id: {
  14414. required: true,
  14415. type: "integer"
  14416. },
  14417. content_id: {
  14418. type: "integer"
  14419. },
  14420. content_type: {
  14421. type: "string"
  14422. },
  14423. note: {
  14424. type: "string"
  14425. }
  14426. },
  14427. url: "/projects/columns/:column_id/cards"
  14428. },
  14429. createColumn: {
  14430. headers: {
  14431. accept: "application/vnd.github.inertia-preview+json"
  14432. },
  14433. method: "POST",
  14434. params: {
  14435. name: {
  14436. required: true,
  14437. type: "string"
  14438. },
  14439. project_id: {
  14440. required: true,
  14441. type: "integer"
  14442. }
  14443. },
  14444. url: "/projects/:project_id/columns"
  14445. },
  14446. createForAuthenticatedUser: {
  14447. headers: {
  14448. accept: "application/vnd.github.inertia-preview+json"
  14449. },
  14450. method: "POST",
  14451. params: {
  14452. body: {
  14453. type: "string"
  14454. },
  14455. name: {
  14456. required: true,
  14457. type: "string"
  14458. }
  14459. },
  14460. url: "/user/projects"
  14461. },
  14462. createForOrg: {
  14463. headers: {
  14464. accept: "application/vnd.github.inertia-preview+json"
  14465. },
  14466. method: "POST",
  14467. params: {
  14468. body: {
  14469. type: "string"
  14470. },
  14471. name: {
  14472. required: true,
  14473. type: "string"
  14474. },
  14475. org: {
  14476. required: true,
  14477. type: "string"
  14478. }
  14479. },
  14480. url: "/orgs/:org/projects"
  14481. },
  14482. createForRepo: {
  14483. headers: {
  14484. accept: "application/vnd.github.inertia-preview+json"
  14485. },
  14486. method: "POST",
  14487. params: {
  14488. body: {
  14489. type: "string"
  14490. },
  14491. name: {
  14492. required: true,
  14493. type: "string"
  14494. },
  14495. owner: {
  14496. required: true,
  14497. type: "string"
  14498. },
  14499. repo: {
  14500. required: true,
  14501. type: "string"
  14502. }
  14503. },
  14504. url: "/repos/:owner/:repo/projects"
  14505. },
  14506. delete: {
  14507. headers: {
  14508. accept: "application/vnd.github.inertia-preview+json"
  14509. },
  14510. method: "DELETE",
  14511. params: {
  14512. project_id: {
  14513. required: true,
  14514. type: "integer"
  14515. }
  14516. },
  14517. url: "/projects/:project_id"
  14518. },
  14519. deleteCard: {
  14520. headers: {
  14521. accept: "application/vnd.github.inertia-preview+json"
  14522. },
  14523. method: "DELETE",
  14524. params: {
  14525. card_id: {
  14526. required: true,
  14527. type: "integer"
  14528. }
  14529. },
  14530. url: "/projects/columns/cards/:card_id"
  14531. },
  14532. deleteColumn: {
  14533. headers: {
  14534. accept: "application/vnd.github.inertia-preview+json"
  14535. },
  14536. method: "DELETE",
  14537. params: {
  14538. column_id: {
  14539. required: true,
  14540. type: "integer"
  14541. }
  14542. },
  14543. url: "/projects/columns/:column_id"
  14544. },
  14545. get: {
  14546. headers: {
  14547. accept: "application/vnd.github.inertia-preview+json"
  14548. },
  14549. method: "GET",
  14550. params: {
  14551. project_id: {
  14552. required: true,
  14553. type: "integer"
  14554. }
  14555. },
  14556. url: "/projects/:project_id"
  14557. },
  14558. getCard: {
  14559. headers: {
  14560. accept: "application/vnd.github.inertia-preview+json"
  14561. },
  14562. method: "GET",
  14563. params: {
  14564. card_id: {
  14565. required: true,
  14566. type: "integer"
  14567. }
  14568. },
  14569. url: "/projects/columns/cards/:card_id"
  14570. },
  14571. getColumn: {
  14572. headers: {
  14573. accept: "application/vnd.github.inertia-preview+json"
  14574. },
  14575. method: "GET",
  14576. params: {
  14577. column_id: {
  14578. required: true,
  14579. type: "integer"
  14580. }
  14581. },
  14582. url: "/projects/columns/:column_id"
  14583. },
  14584. listCards: {
  14585. headers: {
  14586. accept: "application/vnd.github.inertia-preview+json"
  14587. },
  14588. method: "GET",
  14589. params: {
  14590. archived_state: {
  14591. enum: ["all", "archived", "not_archived"],
  14592. type: "string"
  14593. },
  14594. column_id: {
  14595. required: true,
  14596. type: "integer"
  14597. },
  14598. page: {
  14599. type: "integer"
  14600. },
  14601. per_page: {
  14602. type: "integer"
  14603. }
  14604. },
  14605. url: "/projects/columns/:column_id/cards"
  14606. },
  14607. listCollaborators: {
  14608. headers: {
  14609. accept: "application/vnd.github.inertia-preview+json"
  14610. },
  14611. method: "GET",
  14612. params: {
  14613. affiliation: {
  14614. enum: ["outside", "direct", "all"],
  14615. type: "string"
  14616. },
  14617. page: {
  14618. type: "integer"
  14619. },
  14620. per_page: {
  14621. type: "integer"
  14622. },
  14623. project_id: {
  14624. required: true,
  14625. type: "integer"
  14626. }
  14627. },
  14628. url: "/projects/:project_id/collaborators"
  14629. },
  14630. listColumns: {
  14631. headers: {
  14632. accept: "application/vnd.github.inertia-preview+json"
  14633. },
  14634. method: "GET",
  14635. params: {
  14636. page: {
  14637. type: "integer"
  14638. },
  14639. per_page: {
  14640. type: "integer"
  14641. },
  14642. project_id: {
  14643. required: true,
  14644. type: "integer"
  14645. }
  14646. },
  14647. url: "/projects/:project_id/columns"
  14648. },
  14649. listForOrg: {
  14650. headers: {
  14651. accept: "application/vnd.github.inertia-preview+json"
  14652. },
  14653. method: "GET",
  14654. params: {
  14655. org: {
  14656. required: true,
  14657. type: "string"
  14658. },
  14659. page: {
  14660. type: "integer"
  14661. },
  14662. per_page: {
  14663. type: "integer"
  14664. },
  14665. state: {
  14666. enum: ["open", "closed", "all"],
  14667. type: "string"
  14668. }
  14669. },
  14670. url: "/orgs/:org/projects"
  14671. },
  14672. listForRepo: {
  14673. headers: {
  14674. accept: "application/vnd.github.inertia-preview+json"
  14675. },
  14676. method: "GET",
  14677. params: {
  14678. owner: {
  14679. required: true,
  14680. type: "string"
  14681. },
  14682. page: {
  14683. type: "integer"
  14684. },
  14685. per_page: {
  14686. type: "integer"
  14687. },
  14688. repo: {
  14689. required: true,
  14690. type: "string"
  14691. },
  14692. state: {
  14693. enum: ["open", "closed", "all"],
  14694. type: "string"
  14695. }
  14696. },
  14697. url: "/repos/:owner/:repo/projects"
  14698. },
  14699. listForUser: {
  14700. headers: {
  14701. accept: "application/vnd.github.inertia-preview+json"
  14702. },
  14703. method: "GET",
  14704. params: {
  14705. page: {
  14706. type: "integer"
  14707. },
  14708. per_page: {
  14709. type: "integer"
  14710. },
  14711. state: {
  14712. enum: ["open", "closed", "all"],
  14713. type: "string"
  14714. },
  14715. username: {
  14716. required: true,
  14717. type: "string"
  14718. }
  14719. },
  14720. url: "/users/:username/projects"
  14721. },
  14722. moveCard: {
  14723. headers: {
  14724. accept: "application/vnd.github.inertia-preview+json"
  14725. },
  14726. method: "POST",
  14727. params: {
  14728. card_id: {
  14729. required: true,
  14730. type: "integer"
  14731. },
  14732. column_id: {
  14733. type: "integer"
  14734. },
  14735. position: {
  14736. required: true,
  14737. type: "string",
  14738. validation: "^(top|bottom|after:\\d+)$"
  14739. }
  14740. },
  14741. url: "/projects/columns/cards/:card_id/moves"
  14742. },
  14743. moveColumn: {
  14744. headers: {
  14745. accept: "application/vnd.github.inertia-preview+json"
  14746. },
  14747. method: "POST",
  14748. params: {
  14749. column_id: {
  14750. required: true,
  14751. type: "integer"
  14752. },
  14753. position: {
  14754. required: true,
  14755. type: "string",
  14756. validation: "^(first|last|after:\\d+)$"
  14757. }
  14758. },
  14759. url: "/projects/columns/:column_id/moves"
  14760. },
  14761. removeCollaborator: {
  14762. headers: {
  14763. accept: "application/vnd.github.inertia-preview+json"
  14764. },
  14765. method: "DELETE",
  14766. params: {
  14767. project_id: {
  14768. required: true,
  14769. type: "integer"
  14770. },
  14771. username: {
  14772. required: true,
  14773. type: "string"
  14774. }
  14775. },
  14776. url: "/projects/:project_id/collaborators/:username"
  14777. },
  14778. reviewUserPermissionLevel: {
  14779. headers: {
  14780. accept: "application/vnd.github.inertia-preview+json"
  14781. },
  14782. method: "GET",
  14783. params: {
  14784. project_id: {
  14785. required: true,
  14786. type: "integer"
  14787. },
  14788. username: {
  14789. required: true,
  14790. type: "string"
  14791. }
  14792. },
  14793. url: "/projects/:project_id/collaborators/:username/permission"
  14794. },
  14795. update: {
  14796. headers: {
  14797. accept: "application/vnd.github.inertia-preview+json"
  14798. },
  14799. method: "PATCH",
  14800. params: {
  14801. body: {
  14802. type: "string"
  14803. },
  14804. name: {
  14805. type: "string"
  14806. },
  14807. organization_permission: {
  14808. type: "string"
  14809. },
  14810. private: {
  14811. type: "boolean"
  14812. },
  14813. project_id: {
  14814. required: true,
  14815. type: "integer"
  14816. },
  14817. state: {
  14818. enum: ["open", "closed"],
  14819. type: "string"
  14820. }
  14821. },
  14822. url: "/projects/:project_id"
  14823. },
  14824. updateCard: {
  14825. headers: {
  14826. accept: "application/vnd.github.inertia-preview+json"
  14827. },
  14828. method: "PATCH",
  14829. params: {
  14830. archived: {
  14831. type: "boolean"
  14832. },
  14833. card_id: {
  14834. required: true,
  14835. type: "integer"
  14836. },
  14837. note: {
  14838. type: "string"
  14839. }
  14840. },
  14841. url: "/projects/columns/cards/:card_id"
  14842. },
  14843. updateColumn: {
  14844. headers: {
  14845. accept: "application/vnd.github.inertia-preview+json"
  14846. },
  14847. method: "PATCH",
  14848. params: {
  14849. column_id: {
  14850. required: true,
  14851. type: "integer"
  14852. },
  14853. name: {
  14854. required: true,
  14855. type: "string"
  14856. }
  14857. },
  14858. url: "/projects/columns/:column_id"
  14859. }
  14860. },
  14861. pulls: {
  14862. checkIfMerged: {
  14863. method: "GET",
  14864. params: {
  14865. number: {
  14866. alias: "pull_number",
  14867. deprecated: true,
  14868. type: "integer"
  14869. },
  14870. owner: {
  14871. required: true,
  14872. type: "string"
  14873. },
  14874. pull_number: {
  14875. required: true,
  14876. type: "integer"
  14877. },
  14878. repo: {
  14879. required: true,
  14880. type: "string"
  14881. }
  14882. },
  14883. url: "/repos/:owner/:repo/pulls/:pull_number/merge"
  14884. },
  14885. create: {
  14886. method: "POST",
  14887. params: {
  14888. base: {
  14889. required: true,
  14890. type: "string"
  14891. },
  14892. body: {
  14893. type: "string"
  14894. },
  14895. draft: {
  14896. type: "boolean"
  14897. },
  14898. head: {
  14899. required: true,
  14900. type: "string"
  14901. },
  14902. maintainer_can_modify: {
  14903. type: "boolean"
  14904. },
  14905. owner: {
  14906. required: true,
  14907. type: "string"
  14908. },
  14909. repo: {
  14910. required: true,
  14911. type: "string"
  14912. },
  14913. title: {
  14914. required: true,
  14915. type: "string"
  14916. }
  14917. },
  14918. url: "/repos/:owner/:repo/pulls"
  14919. },
  14920. createComment: {
  14921. method: "POST",
  14922. params: {
  14923. body: {
  14924. required: true,
  14925. type: "string"
  14926. },
  14927. commit_id: {
  14928. required: true,
  14929. type: "string"
  14930. },
  14931. in_reply_to: {
  14932. deprecated: true,
  14933. description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
  14934. type: "integer"
  14935. },
  14936. line: {
  14937. type: "integer"
  14938. },
  14939. number: {
  14940. alias: "pull_number",
  14941. deprecated: true,
  14942. type: "integer"
  14943. },
  14944. owner: {
  14945. required: true,
  14946. type: "string"
  14947. },
  14948. path: {
  14949. required: true,
  14950. type: "string"
  14951. },
  14952. position: {
  14953. type: "integer"
  14954. },
  14955. pull_number: {
  14956. required: true,
  14957. type: "integer"
  14958. },
  14959. repo: {
  14960. required: true,
  14961. type: "string"
  14962. },
  14963. side: {
  14964. enum: ["LEFT", "RIGHT"],
  14965. type: "string"
  14966. },
  14967. start_line: {
  14968. type: "integer"
  14969. },
  14970. start_side: {
  14971. enum: ["LEFT", "RIGHT", "side"],
  14972. type: "string"
  14973. }
  14974. },
  14975. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  14976. },
  14977. createCommentReply: {
  14978. deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",
  14979. method: "POST",
  14980. params: {
  14981. body: {
  14982. required: true,
  14983. type: "string"
  14984. },
  14985. commit_id: {
  14986. required: true,
  14987. type: "string"
  14988. },
  14989. in_reply_to: {
  14990. deprecated: true,
  14991. description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
  14992. type: "integer"
  14993. },
  14994. line: {
  14995. type: "integer"
  14996. },
  14997. number: {
  14998. alias: "pull_number",
  14999. deprecated: true,
  15000. type: "integer"
  15001. },
  15002. owner: {
  15003. required: true,
  15004. type: "string"
  15005. },
  15006. path: {
  15007. required: true,
  15008. type: "string"
  15009. },
  15010. position: {
  15011. type: "integer"
  15012. },
  15013. pull_number: {
  15014. required: true,
  15015. type: "integer"
  15016. },
  15017. repo: {
  15018. required: true,
  15019. type: "string"
  15020. },
  15021. side: {
  15022. enum: ["LEFT", "RIGHT"],
  15023. type: "string"
  15024. },
  15025. start_line: {
  15026. type: "integer"
  15027. },
  15028. start_side: {
  15029. enum: ["LEFT", "RIGHT", "side"],
  15030. type: "string"
  15031. }
  15032. },
  15033. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  15034. },
  15035. createFromIssue: {
  15036. deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",
  15037. method: "POST",
  15038. params: {
  15039. base: {
  15040. required: true,
  15041. type: "string"
  15042. },
  15043. draft: {
  15044. type: "boolean"
  15045. },
  15046. head: {
  15047. required: true,
  15048. type: "string"
  15049. },
  15050. issue: {
  15051. required: true,
  15052. type: "integer"
  15053. },
  15054. maintainer_can_modify: {
  15055. type: "boolean"
  15056. },
  15057. owner: {
  15058. required: true,
  15059. type: "string"
  15060. },
  15061. repo: {
  15062. required: true,
  15063. type: "string"
  15064. }
  15065. },
  15066. url: "/repos/:owner/:repo/pulls"
  15067. },
  15068. createReview: {
  15069. method: "POST",
  15070. params: {
  15071. body: {
  15072. type: "string"
  15073. },
  15074. comments: {
  15075. type: "object[]"
  15076. },
  15077. "comments[].body": {
  15078. required: true,
  15079. type: "string"
  15080. },
  15081. "comments[].path": {
  15082. required: true,
  15083. type: "string"
  15084. },
  15085. "comments[].position": {
  15086. required: true,
  15087. type: "integer"
  15088. },
  15089. commit_id: {
  15090. type: "string"
  15091. },
  15092. event: {
  15093. enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
  15094. type: "string"
  15095. },
  15096. number: {
  15097. alias: "pull_number",
  15098. deprecated: true,
  15099. type: "integer"
  15100. },
  15101. owner: {
  15102. required: true,
  15103. type: "string"
  15104. },
  15105. pull_number: {
  15106. required: true,
  15107. type: "integer"
  15108. },
  15109. repo: {
  15110. required: true,
  15111. type: "string"
  15112. }
  15113. },
  15114. url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
  15115. },
  15116. createReviewCommentReply: {
  15117. method: "POST",
  15118. params: {
  15119. body: {
  15120. required: true,
  15121. type: "string"
  15122. },
  15123. comment_id: {
  15124. required: true,
  15125. type: "integer"
  15126. },
  15127. owner: {
  15128. required: true,
  15129. type: "string"
  15130. },
  15131. pull_number: {
  15132. required: true,
  15133. type: "integer"
  15134. },
  15135. repo: {
  15136. required: true,
  15137. type: "string"
  15138. }
  15139. },
  15140. url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"
  15141. },
  15142. createReviewRequest: {
  15143. method: "POST",
  15144. params: {
  15145. number: {
  15146. alias: "pull_number",
  15147. deprecated: true,
  15148. type: "integer"
  15149. },
  15150. owner: {
  15151. required: true,
  15152. type: "string"
  15153. },
  15154. pull_number: {
  15155. required: true,
  15156. type: "integer"
  15157. },
  15158. repo: {
  15159. required: true,
  15160. type: "string"
  15161. },
  15162. reviewers: {
  15163. type: "string[]"
  15164. },
  15165. team_reviewers: {
  15166. type: "string[]"
  15167. }
  15168. },
  15169. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  15170. },
  15171. deleteComment: {
  15172. method: "DELETE",
  15173. params: {
  15174. comment_id: {
  15175. required: true,
  15176. type: "integer"
  15177. },
  15178. owner: {
  15179. required: true,
  15180. type: "string"
  15181. },
  15182. repo: {
  15183. required: true,
  15184. type: "string"
  15185. }
  15186. },
  15187. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  15188. },
  15189. deletePendingReview: {
  15190. method: "DELETE",
  15191. params: {
  15192. number: {
  15193. alias: "pull_number",
  15194. deprecated: true,
  15195. type: "integer"
  15196. },
  15197. owner: {
  15198. required: true,
  15199. type: "string"
  15200. },
  15201. pull_number: {
  15202. required: true,
  15203. type: "integer"
  15204. },
  15205. repo: {
  15206. required: true,
  15207. type: "string"
  15208. },
  15209. review_id: {
  15210. required: true,
  15211. type: "integer"
  15212. }
  15213. },
  15214. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  15215. },
  15216. deleteReviewRequest: {
  15217. method: "DELETE",
  15218. params: {
  15219. number: {
  15220. alias: "pull_number",
  15221. deprecated: true,
  15222. type: "integer"
  15223. },
  15224. owner: {
  15225. required: true,
  15226. type: "string"
  15227. },
  15228. pull_number: {
  15229. required: true,
  15230. type: "integer"
  15231. },
  15232. repo: {
  15233. required: true,
  15234. type: "string"
  15235. },
  15236. reviewers: {
  15237. type: "string[]"
  15238. },
  15239. team_reviewers: {
  15240. type: "string[]"
  15241. }
  15242. },
  15243. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  15244. },
  15245. dismissReview: {
  15246. method: "PUT",
  15247. params: {
  15248. message: {
  15249. required: true,
  15250. type: "string"
  15251. },
  15252. number: {
  15253. alias: "pull_number",
  15254. deprecated: true,
  15255. type: "integer"
  15256. },
  15257. owner: {
  15258. required: true,
  15259. type: "string"
  15260. },
  15261. pull_number: {
  15262. required: true,
  15263. type: "integer"
  15264. },
  15265. repo: {
  15266. required: true,
  15267. type: "string"
  15268. },
  15269. review_id: {
  15270. required: true,
  15271. type: "integer"
  15272. }
  15273. },
  15274. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"
  15275. },
  15276. get: {
  15277. method: "GET",
  15278. params: {
  15279. number: {
  15280. alias: "pull_number",
  15281. deprecated: true,
  15282. type: "integer"
  15283. },
  15284. owner: {
  15285. required: true,
  15286. type: "string"
  15287. },
  15288. pull_number: {
  15289. required: true,
  15290. type: "integer"
  15291. },
  15292. repo: {
  15293. required: true,
  15294. type: "string"
  15295. }
  15296. },
  15297. url: "/repos/:owner/:repo/pulls/:pull_number"
  15298. },
  15299. getComment: {
  15300. method: "GET",
  15301. params: {
  15302. comment_id: {
  15303. required: true,
  15304. type: "integer"
  15305. },
  15306. owner: {
  15307. required: true,
  15308. type: "string"
  15309. },
  15310. repo: {
  15311. required: true,
  15312. type: "string"
  15313. }
  15314. },
  15315. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  15316. },
  15317. getCommentsForReview: {
  15318. method: "GET",
  15319. params: {
  15320. number: {
  15321. alias: "pull_number",
  15322. deprecated: true,
  15323. type: "integer"
  15324. },
  15325. owner: {
  15326. required: true,
  15327. type: "string"
  15328. },
  15329. page: {
  15330. type: "integer"
  15331. },
  15332. per_page: {
  15333. type: "integer"
  15334. },
  15335. pull_number: {
  15336. required: true,
  15337. type: "integer"
  15338. },
  15339. repo: {
  15340. required: true,
  15341. type: "string"
  15342. },
  15343. review_id: {
  15344. required: true,
  15345. type: "integer"
  15346. }
  15347. },
  15348. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"
  15349. },
  15350. getReview: {
  15351. method: "GET",
  15352. params: {
  15353. number: {
  15354. alias: "pull_number",
  15355. deprecated: true,
  15356. type: "integer"
  15357. },
  15358. owner: {
  15359. required: true,
  15360. type: "string"
  15361. },
  15362. pull_number: {
  15363. required: true,
  15364. type: "integer"
  15365. },
  15366. repo: {
  15367. required: true,
  15368. type: "string"
  15369. },
  15370. review_id: {
  15371. required: true,
  15372. type: "integer"
  15373. }
  15374. },
  15375. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  15376. },
  15377. list: {
  15378. method: "GET",
  15379. params: {
  15380. base: {
  15381. type: "string"
  15382. },
  15383. direction: {
  15384. enum: ["asc", "desc"],
  15385. type: "string"
  15386. },
  15387. head: {
  15388. type: "string"
  15389. },
  15390. owner: {
  15391. required: true,
  15392. type: "string"
  15393. },
  15394. page: {
  15395. type: "integer"
  15396. },
  15397. per_page: {
  15398. type: "integer"
  15399. },
  15400. repo: {
  15401. required: true,
  15402. type: "string"
  15403. },
  15404. sort: {
  15405. enum: ["created", "updated", "popularity", "long-running"],
  15406. type: "string"
  15407. },
  15408. state: {
  15409. enum: ["open", "closed", "all"],
  15410. type: "string"
  15411. }
  15412. },
  15413. url: "/repos/:owner/:repo/pulls"
  15414. },
  15415. listComments: {
  15416. method: "GET",
  15417. params: {
  15418. direction: {
  15419. enum: ["asc", "desc"],
  15420. type: "string"
  15421. },
  15422. number: {
  15423. alias: "pull_number",
  15424. deprecated: true,
  15425. type: "integer"
  15426. },
  15427. owner: {
  15428. required: true,
  15429. type: "string"
  15430. },
  15431. page: {
  15432. type: "integer"
  15433. },
  15434. per_page: {
  15435. type: "integer"
  15436. },
  15437. pull_number: {
  15438. required: true,
  15439. type: "integer"
  15440. },
  15441. repo: {
  15442. required: true,
  15443. type: "string"
  15444. },
  15445. since: {
  15446. type: "string"
  15447. },
  15448. sort: {
  15449. enum: ["created", "updated"],
  15450. type: "string"
  15451. }
  15452. },
  15453. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  15454. },
  15455. listCommentsForRepo: {
  15456. method: "GET",
  15457. params: {
  15458. direction: {
  15459. enum: ["asc", "desc"],
  15460. type: "string"
  15461. },
  15462. owner: {
  15463. required: true,
  15464. type: "string"
  15465. },
  15466. page: {
  15467. type: "integer"
  15468. },
  15469. per_page: {
  15470. type: "integer"
  15471. },
  15472. repo: {
  15473. required: true,
  15474. type: "string"
  15475. },
  15476. since: {
  15477. type: "string"
  15478. },
  15479. sort: {
  15480. enum: ["created", "updated"],
  15481. type: "string"
  15482. }
  15483. },
  15484. url: "/repos/:owner/:repo/pulls/comments"
  15485. },
  15486. listCommits: {
  15487. method: "GET",
  15488. params: {
  15489. number: {
  15490. alias: "pull_number",
  15491. deprecated: true,
  15492. type: "integer"
  15493. },
  15494. owner: {
  15495. required: true,
  15496. type: "string"
  15497. },
  15498. page: {
  15499. type: "integer"
  15500. },
  15501. per_page: {
  15502. type: "integer"
  15503. },
  15504. pull_number: {
  15505. required: true,
  15506. type: "integer"
  15507. },
  15508. repo: {
  15509. required: true,
  15510. type: "string"
  15511. }
  15512. },
  15513. url: "/repos/:owner/:repo/pulls/:pull_number/commits"
  15514. },
  15515. listFiles: {
  15516. method: "GET",
  15517. params: {
  15518. number: {
  15519. alias: "pull_number",
  15520. deprecated: true,
  15521. type: "integer"
  15522. },
  15523. owner: {
  15524. required: true,
  15525. type: "string"
  15526. },
  15527. page: {
  15528. type: "integer"
  15529. },
  15530. per_page: {
  15531. type: "integer"
  15532. },
  15533. pull_number: {
  15534. required: true,
  15535. type: "integer"
  15536. },
  15537. repo: {
  15538. required: true,
  15539. type: "string"
  15540. }
  15541. },
  15542. url: "/repos/:owner/:repo/pulls/:pull_number/files"
  15543. },
  15544. listReviewRequests: {
  15545. method: "GET",
  15546. params: {
  15547. number: {
  15548. alias: "pull_number",
  15549. deprecated: true,
  15550. type: "integer"
  15551. },
  15552. owner: {
  15553. required: true,
  15554. type: "string"
  15555. },
  15556. page: {
  15557. type: "integer"
  15558. },
  15559. per_page: {
  15560. type: "integer"
  15561. },
  15562. pull_number: {
  15563. required: true,
  15564. type: "integer"
  15565. },
  15566. repo: {
  15567. required: true,
  15568. type: "string"
  15569. }
  15570. },
  15571. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  15572. },
  15573. listReviews: {
  15574. method: "GET",
  15575. params: {
  15576. number: {
  15577. alias: "pull_number",
  15578. deprecated: true,
  15579. type: "integer"
  15580. },
  15581. owner: {
  15582. required: true,
  15583. type: "string"
  15584. },
  15585. page: {
  15586. type: "integer"
  15587. },
  15588. per_page: {
  15589. type: "integer"
  15590. },
  15591. pull_number: {
  15592. required: true,
  15593. type: "integer"
  15594. },
  15595. repo: {
  15596. required: true,
  15597. type: "string"
  15598. }
  15599. },
  15600. url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
  15601. },
  15602. merge: {
  15603. method: "PUT",
  15604. params: {
  15605. commit_message: {
  15606. type: "string"
  15607. },
  15608. commit_title: {
  15609. type: "string"
  15610. },
  15611. merge_method: {
  15612. enum: ["merge", "squash", "rebase"],
  15613. type: "string"
  15614. },
  15615. number: {
  15616. alias: "pull_number",
  15617. deprecated: true,
  15618. type: "integer"
  15619. },
  15620. owner: {
  15621. required: true,
  15622. type: "string"
  15623. },
  15624. pull_number: {
  15625. required: true,
  15626. type: "integer"
  15627. },
  15628. repo: {
  15629. required: true,
  15630. type: "string"
  15631. },
  15632. sha: {
  15633. type: "string"
  15634. }
  15635. },
  15636. url: "/repos/:owner/:repo/pulls/:pull_number/merge"
  15637. },
  15638. submitReview: {
  15639. method: "POST",
  15640. params: {
  15641. body: {
  15642. type: "string"
  15643. },
  15644. event: {
  15645. enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
  15646. required: true,
  15647. type: "string"
  15648. },
  15649. number: {
  15650. alias: "pull_number",
  15651. deprecated: true,
  15652. type: "integer"
  15653. },
  15654. owner: {
  15655. required: true,
  15656. type: "string"
  15657. },
  15658. pull_number: {
  15659. required: true,
  15660. type: "integer"
  15661. },
  15662. repo: {
  15663. required: true,
  15664. type: "string"
  15665. },
  15666. review_id: {
  15667. required: true,
  15668. type: "integer"
  15669. }
  15670. },
  15671. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"
  15672. },
  15673. update: {
  15674. method: "PATCH",
  15675. params: {
  15676. base: {
  15677. type: "string"
  15678. },
  15679. body: {
  15680. type: "string"
  15681. },
  15682. maintainer_can_modify: {
  15683. type: "boolean"
  15684. },
  15685. number: {
  15686. alias: "pull_number",
  15687. deprecated: true,
  15688. type: "integer"
  15689. },
  15690. owner: {
  15691. required: true,
  15692. type: "string"
  15693. },
  15694. pull_number: {
  15695. required: true,
  15696. type: "integer"
  15697. },
  15698. repo: {
  15699. required: true,
  15700. type: "string"
  15701. },
  15702. state: {
  15703. enum: ["open", "closed"],
  15704. type: "string"
  15705. },
  15706. title: {
  15707. type: "string"
  15708. }
  15709. },
  15710. url: "/repos/:owner/:repo/pulls/:pull_number"
  15711. },
  15712. updateBranch: {
  15713. headers: {
  15714. accept: "application/vnd.github.lydian-preview+json"
  15715. },
  15716. method: "PUT",
  15717. params: {
  15718. expected_head_sha: {
  15719. type: "string"
  15720. },
  15721. owner: {
  15722. required: true,
  15723. type: "string"
  15724. },
  15725. pull_number: {
  15726. required: true,
  15727. type: "integer"
  15728. },
  15729. repo: {
  15730. required: true,
  15731. type: "string"
  15732. }
  15733. },
  15734. url: "/repos/:owner/:repo/pulls/:pull_number/update-branch"
  15735. },
  15736. updateComment: {
  15737. method: "PATCH",
  15738. params: {
  15739. body: {
  15740. required: true,
  15741. type: "string"
  15742. },
  15743. comment_id: {
  15744. required: true,
  15745. type: "integer"
  15746. },
  15747. owner: {
  15748. required: true,
  15749. type: "string"
  15750. },
  15751. repo: {
  15752. required: true,
  15753. type: "string"
  15754. }
  15755. },
  15756. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  15757. },
  15758. updateReview: {
  15759. method: "PUT",
  15760. params: {
  15761. body: {
  15762. required: true,
  15763. type: "string"
  15764. },
  15765. number: {
  15766. alias: "pull_number",
  15767. deprecated: true,
  15768. type: "integer"
  15769. },
  15770. owner: {
  15771. required: true,
  15772. type: "string"
  15773. },
  15774. pull_number: {
  15775. required: true,
  15776. type: "integer"
  15777. },
  15778. repo: {
  15779. required: true,
  15780. type: "string"
  15781. },
  15782. review_id: {
  15783. required: true,
  15784. type: "integer"
  15785. }
  15786. },
  15787. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  15788. }
  15789. },
  15790. rateLimit: {
  15791. get: {
  15792. method: "GET",
  15793. params: {},
  15794. url: "/rate_limit"
  15795. }
  15796. },
  15797. reactions: {
  15798. createForCommitComment: {
  15799. headers: {
  15800. accept: "application/vnd.github.squirrel-girl-preview+json"
  15801. },
  15802. method: "POST",
  15803. params: {
  15804. comment_id: {
  15805. required: true,
  15806. type: "integer"
  15807. },
  15808. content: {
  15809. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  15810. required: true,
  15811. type: "string"
  15812. },
  15813. owner: {
  15814. required: true,
  15815. type: "string"
  15816. },
  15817. repo: {
  15818. required: true,
  15819. type: "string"
  15820. }
  15821. },
  15822. url: "/repos/:owner/:repo/comments/:comment_id/reactions"
  15823. },
  15824. createForIssue: {
  15825. headers: {
  15826. accept: "application/vnd.github.squirrel-girl-preview+json"
  15827. },
  15828. method: "POST",
  15829. params: {
  15830. content: {
  15831. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  15832. required: true,
  15833. type: "string"
  15834. },
  15835. issue_number: {
  15836. required: true,
  15837. type: "integer"
  15838. },
  15839. number: {
  15840. alias: "issue_number",
  15841. deprecated: true,
  15842. type: "integer"
  15843. },
  15844. owner: {
  15845. required: true,
  15846. type: "string"
  15847. },
  15848. repo: {
  15849. required: true,
  15850. type: "string"
  15851. }
  15852. },
  15853. url: "/repos/:owner/:repo/issues/:issue_number/reactions"
  15854. },
  15855. createForIssueComment: {
  15856. headers: {
  15857. accept: "application/vnd.github.squirrel-girl-preview+json"
  15858. },
  15859. method: "POST",
  15860. params: {
  15861. comment_id: {
  15862. required: true,
  15863. type: "integer"
  15864. },
  15865. content: {
  15866. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  15867. required: true,
  15868. type: "string"
  15869. },
  15870. owner: {
  15871. required: true,
  15872. type: "string"
  15873. },
  15874. repo: {
  15875. required: true,
  15876. type: "string"
  15877. }
  15878. },
  15879. url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
  15880. },
  15881. createForPullRequestReviewComment: {
  15882. headers: {
  15883. accept: "application/vnd.github.squirrel-girl-preview+json"
  15884. },
  15885. method: "POST",
  15886. params: {
  15887. comment_id: {
  15888. required: true,
  15889. type: "integer"
  15890. },
  15891. content: {
  15892. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  15893. required: true,
  15894. type: "string"
  15895. },
  15896. owner: {
  15897. required: true,
  15898. type: "string"
  15899. },
  15900. repo: {
  15901. required: true,
  15902. type: "string"
  15903. }
  15904. },
  15905. url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
  15906. },
  15907. createForTeamDiscussion: {
  15908. deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",
  15909. headers: {
  15910. accept: "application/vnd.github.squirrel-girl-preview+json"
  15911. },
  15912. method: "POST",
  15913. params: {
  15914. content: {
  15915. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  15916. required: true,
  15917. type: "string"
  15918. },
  15919. discussion_number: {
  15920. required: true,
  15921. type: "integer"
  15922. },
  15923. team_id: {
  15924. required: true,
  15925. type: "integer"
  15926. }
  15927. },
  15928. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  15929. },
  15930. createForTeamDiscussionComment: {
  15931. deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",
  15932. headers: {
  15933. accept: "application/vnd.github.squirrel-girl-preview+json"
  15934. },
  15935. method: "POST",
  15936. params: {
  15937. comment_number: {
  15938. required: true,
  15939. type: "integer"
  15940. },
  15941. content: {
  15942. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  15943. required: true,
  15944. type: "string"
  15945. },
  15946. discussion_number: {
  15947. required: true,
  15948. type: "integer"
  15949. },
  15950. team_id: {
  15951. required: true,
  15952. type: "integer"
  15953. }
  15954. },
  15955. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  15956. },
  15957. createForTeamDiscussionCommentInOrg: {
  15958. headers: {
  15959. accept: "application/vnd.github.squirrel-girl-preview+json"
  15960. },
  15961. method: "POST",
  15962. params: {
  15963. comment_number: {
  15964. required: true,
  15965. type: "integer"
  15966. },
  15967. content: {
  15968. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  15969. required: true,
  15970. type: "string"
  15971. },
  15972. discussion_number: {
  15973. required: true,
  15974. type: "integer"
  15975. },
  15976. org: {
  15977. required: true,
  15978. type: "string"
  15979. },
  15980. team_slug: {
  15981. required: true,
  15982. type: "string"
  15983. }
  15984. },
  15985. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
  15986. },
  15987. createForTeamDiscussionCommentLegacy: {
  15988. deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",
  15989. headers: {
  15990. accept: "application/vnd.github.squirrel-girl-preview+json"
  15991. },
  15992. method: "POST",
  15993. params: {
  15994. comment_number: {
  15995. required: true,
  15996. type: "integer"
  15997. },
  15998. content: {
  15999. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16000. required: true,
  16001. type: "string"
  16002. },
  16003. discussion_number: {
  16004. required: true,
  16005. type: "integer"
  16006. },
  16007. team_id: {
  16008. required: true,
  16009. type: "integer"
  16010. }
  16011. },
  16012. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  16013. },
  16014. createForTeamDiscussionInOrg: {
  16015. headers: {
  16016. accept: "application/vnd.github.squirrel-girl-preview+json"
  16017. },
  16018. method: "POST",
  16019. params: {
  16020. content: {
  16021. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16022. required: true,
  16023. type: "string"
  16024. },
  16025. discussion_number: {
  16026. required: true,
  16027. type: "integer"
  16028. },
  16029. org: {
  16030. required: true,
  16031. type: "string"
  16032. },
  16033. team_slug: {
  16034. required: true,
  16035. type: "string"
  16036. }
  16037. },
  16038. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
  16039. },
  16040. createForTeamDiscussionLegacy: {
  16041. deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",
  16042. headers: {
  16043. accept: "application/vnd.github.squirrel-girl-preview+json"
  16044. },
  16045. method: "POST",
  16046. params: {
  16047. content: {
  16048. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16049. required: true,
  16050. type: "string"
  16051. },
  16052. discussion_number: {
  16053. required: true,
  16054. type: "integer"
  16055. },
  16056. team_id: {
  16057. required: true,
  16058. type: "integer"
  16059. }
  16060. },
  16061. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  16062. },
  16063. delete: {
  16064. headers: {
  16065. accept: "application/vnd.github.squirrel-girl-preview+json"
  16066. },
  16067. method: "DELETE",
  16068. params: {
  16069. reaction_id: {
  16070. required: true,
  16071. type: "integer"
  16072. }
  16073. },
  16074. url: "/reactions/:reaction_id"
  16075. },
  16076. listForCommitComment: {
  16077. headers: {
  16078. accept: "application/vnd.github.squirrel-girl-preview+json"
  16079. },
  16080. method: "GET",
  16081. params: {
  16082. comment_id: {
  16083. required: true,
  16084. type: "integer"
  16085. },
  16086. content: {
  16087. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16088. type: "string"
  16089. },
  16090. owner: {
  16091. required: true,
  16092. type: "string"
  16093. },
  16094. page: {
  16095. type: "integer"
  16096. },
  16097. per_page: {
  16098. type: "integer"
  16099. },
  16100. repo: {
  16101. required: true,
  16102. type: "string"
  16103. }
  16104. },
  16105. url: "/repos/:owner/:repo/comments/:comment_id/reactions"
  16106. },
  16107. listForIssue: {
  16108. headers: {
  16109. accept: "application/vnd.github.squirrel-girl-preview+json"
  16110. },
  16111. method: "GET",
  16112. params: {
  16113. content: {
  16114. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16115. type: "string"
  16116. },
  16117. issue_number: {
  16118. required: true,
  16119. type: "integer"
  16120. },
  16121. number: {
  16122. alias: "issue_number",
  16123. deprecated: true,
  16124. type: "integer"
  16125. },
  16126. owner: {
  16127. required: true,
  16128. type: "string"
  16129. },
  16130. page: {
  16131. type: "integer"
  16132. },
  16133. per_page: {
  16134. type: "integer"
  16135. },
  16136. repo: {
  16137. required: true,
  16138. type: "string"
  16139. }
  16140. },
  16141. url: "/repos/:owner/:repo/issues/:issue_number/reactions"
  16142. },
  16143. listForIssueComment: {
  16144. headers: {
  16145. accept: "application/vnd.github.squirrel-girl-preview+json"
  16146. },
  16147. method: "GET",
  16148. params: {
  16149. comment_id: {
  16150. required: true,
  16151. type: "integer"
  16152. },
  16153. content: {
  16154. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16155. type: "string"
  16156. },
  16157. owner: {
  16158. required: true,
  16159. type: "string"
  16160. },
  16161. page: {
  16162. type: "integer"
  16163. },
  16164. per_page: {
  16165. type: "integer"
  16166. },
  16167. repo: {
  16168. required: true,
  16169. type: "string"
  16170. }
  16171. },
  16172. url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
  16173. },
  16174. listForPullRequestReviewComment: {
  16175. headers: {
  16176. accept: "application/vnd.github.squirrel-girl-preview+json"
  16177. },
  16178. method: "GET",
  16179. params: {
  16180. comment_id: {
  16181. required: true,
  16182. type: "integer"
  16183. },
  16184. content: {
  16185. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16186. type: "string"
  16187. },
  16188. owner: {
  16189. required: true,
  16190. type: "string"
  16191. },
  16192. page: {
  16193. type: "integer"
  16194. },
  16195. per_page: {
  16196. type: "integer"
  16197. },
  16198. repo: {
  16199. required: true,
  16200. type: "string"
  16201. }
  16202. },
  16203. url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
  16204. },
  16205. listForTeamDiscussion: {
  16206. deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",
  16207. headers: {
  16208. accept: "application/vnd.github.squirrel-girl-preview+json"
  16209. },
  16210. method: "GET",
  16211. params: {
  16212. content: {
  16213. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16214. type: "string"
  16215. },
  16216. discussion_number: {
  16217. required: true,
  16218. type: "integer"
  16219. },
  16220. page: {
  16221. type: "integer"
  16222. },
  16223. per_page: {
  16224. type: "integer"
  16225. },
  16226. team_id: {
  16227. required: true,
  16228. type: "integer"
  16229. }
  16230. },
  16231. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  16232. },
  16233. listForTeamDiscussionComment: {
  16234. deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",
  16235. headers: {
  16236. accept: "application/vnd.github.squirrel-girl-preview+json"
  16237. },
  16238. method: "GET",
  16239. params: {
  16240. comment_number: {
  16241. required: true,
  16242. type: "integer"
  16243. },
  16244. content: {
  16245. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16246. type: "string"
  16247. },
  16248. discussion_number: {
  16249. required: true,
  16250. type: "integer"
  16251. },
  16252. page: {
  16253. type: "integer"
  16254. },
  16255. per_page: {
  16256. type: "integer"
  16257. },
  16258. team_id: {
  16259. required: true,
  16260. type: "integer"
  16261. }
  16262. },
  16263. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  16264. },
  16265. listForTeamDiscussionCommentInOrg: {
  16266. headers: {
  16267. accept: "application/vnd.github.squirrel-girl-preview+json"
  16268. },
  16269. method: "GET",
  16270. params: {
  16271. comment_number: {
  16272. required: true,
  16273. type: "integer"
  16274. },
  16275. content: {
  16276. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16277. type: "string"
  16278. },
  16279. discussion_number: {
  16280. required: true,
  16281. type: "integer"
  16282. },
  16283. org: {
  16284. required: true,
  16285. type: "string"
  16286. },
  16287. page: {
  16288. type: "integer"
  16289. },
  16290. per_page: {
  16291. type: "integer"
  16292. },
  16293. team_slug: {
  16294. required: true,
  16295. type: "string"
  16296. }
  16297. },
  16298. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
  16299. },
  16300. listForTeamDiscussionCommentLegacy: {
  16301. deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",
  16302. headers: {
  16303. accept: "application/vnd.github.squirrel-girl-preview+json"
  16304. },
  16305. method: "GET",
  16306. params: {
  16307. comment_number: {
  16308. required: true,
  16309. type: "integer"
  16310. },
  16311. content: {
  16312. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16313. type: "string"
  16314. },
  16315. discussion_number: {
  16316. required: true,
  16317. type: "integer"
  16318. },
  16319. page: {
  16320. type: "integer"
  16321. },
  16322. per_page: {
  16323. type: "integer"
  16324. },
  16325. team_id: {
  16326. required: true,
  16327. type: "integer"
  16328. }
  16329. },
  16330. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  16331. },
  16332. listForTeamDiscussionInOrg: {
  16333. headers: {
  16334. accept: "application/vnd.github.squirrel-girl-preview+json"
  16335. },
  16336. method: "GET",
  16337. params: {
  16338. content: {
  16339. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16340. type: "string"
  16341. },
  16342. discussion_number: {
  16343. required: true,
  16344. type: "integer"
  16345. },
  16346. org: {
  16347. required: true,
  16348. type: "string"
  16349. },
  16350. page: {
  16351. type: "integer"
  16352. },
  16353. per_page: {
  16354. type: "integer"
  16355. },
  16356. team_slug: {
  16357. required: true,
  16358. type: "string"
  16359. }
  16360. },
  16361. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
  16362. },
  16363. listForTeamDiscussionLegacy: {
  16364. deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",
  16365. headers: {
  16366. accept: "application/vnd.github.squirrel-girl-preview+json"
  16367. },
  16368. method: "GET",
  16369. params: {
  16370. content: {
  16371. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  16372. type: "string"
  16373. },
  16374. discussion_number: {
  16375. required: true,
  16376. type: "integer"
  16377. },
  16378. page: {
  16379. type: "integer"
  16380. },
  16381. per_page: {
  16382. type: "integer"
  16383. },
  16384. team_id: {
  16385. required: true,
  16386. type: "integer"
  16387. }
  16388. },
  16389. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  16390. }
  16391. },
  16392. repos: {
  16393. acceptInvitation: {
  16394. method: "PATCH",
  16395. params: {
  16396. invitation_id: {
  16397. required: true,
  16398. type: "integer"
  16399. }
  16400. },
  16401. url: "/user/repository_invitations/:invitation_id"
  16402. },
  16403. addCollaborator: {
  16404. method: "PUT",
  16405. params: {
  16406. owner: {
  16407. required: true,
  16408. type: "string"
  16409. },
  16410. permission: {
  16411. enum: ["pull", "push", "admin"],
  16412. type: "string"
  16413. },
  16414. repo: {
  16415. required: true,
  16416. type: "string"
  16417. },
  16418. username: {
  16419. required: true,
  16420. type: "string"
  16421. }
  16422. },
  16423. url: "/repos/:owner/:repo/collaborators/:username"
  16424. },
  16425. addDeployKey: {
  16426. method: "POST",
  16427. params: {
  16428. key: {
  16429. required: true,
  16430. type: "string"
  16431. },
  16432. owner: {
  16433. required: true,
  16434. type: "string"
  16435. },
  16436. read_only: {
  16437. type: "boolean"
  16438. },
  16439. repo: {
  16440. required: true,
  16441. type: "string"
  16442. },
  16443. title: {
  16444. type: "string"
  16445. }
  16446. },
  16447. url: "/repos/:owner/:repo/keys"
  16448. },
  16449. addProtectedBranchAdminEnforcement: {
  16450. method: "POST",
  16451. params: {
  16452. branch: {
  16453. required: true,
  16454. type: "string"
  16455. },
  16456. owner: {
  16457. required: true,
  16458. type: "string"
  16459. },
  16460. repo: {
  16461. required: true,
  16462. type: "string"
  16463. }
  16464. },
  16465. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  16466. },
  16467. addProtectedBranchAppRestrictions: {
  16468. method: "POST",
  16469. params: {
  16470. apps: {
  16471. mapTo: "data",
  16472. required: true,
  16473. type: "string[]"
  16474. },
  16475. branch: {
  16476. required: true,
  16477. type: "string"
  16478. },
  16479. owner: {
  16480. required: true,
  16481. type: "string"
  16482. },
  16483. repo: {
  16484. required: true,
  16485. type: "string"
  16486. }
  16487. },
  16488. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  16489. },
  16490. addProtectedBranchRequiredSignatures: {
  16491. headers: {
  16492. accept: "application/vnd.github.zzzax-preview+json"
  16493. },
  16494. method: "POST",
  16495. params: {
  16496. branch: {
  16497. required: true,
  16498. type: "string"
  16499. },
  16500. owner: {
  16501. required: true,
  16502. type: "string"
  16503. },
  16504. repo: {
  16505. required: true,
  16506. type: "string"
  16507. }
  16508. },
  16509. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  16510. },
  16511. addProtectedBranchRequiredStatusChecksContexts: {
  16512. method: "POST",
  16513. params: {
  16514. branch: {
  16515. required: true,
  16516. type: "string"
  16517. },
  16518. contexts: {
  16519. mapTo: "data",
  16520. required: true,
  16521. type: "string[]"
  16522. },
  16523. owner: {
  16524. required: true,
  16525. type: "string"
  16526. },
  16527. repo: {
  16528. required: true,
  16529. type: "string"
  16530. }
  16531. },
  16532. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  16533. },
  16534. addProtectedBranchTeamRestrictions: {
  16535. method: "POST",
  16536. params: {
  16537. branch: {
  16538. required: true,
  16539. type: "string"
  16540. },
  16541. owner: {
  16542. required: true,
  16543. type: "string"
  16544. },
  16545. repo: {
  16546. required: true,
  16547. type: "string"
  16548. },
  16549. teams: {
  16550. mapTo: "data",
  16551. required: true,
  16552. type: "string[]"
  16553. }
  16554. },
  16555. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  16556. },
  16557. addProtectedBranchUserRestrictions: {
  16558. method: "POST",
  16559. params: {
  16560. branch: {
  16561. required: true,
  16562. type: "string"
  16563. },
  16564. owner: {
  16565. required: true,
  16566. type: "string"
  16567. },
  16568. repo: {
  16569. required: true,
  16570. type: "string"
  16571. },
  16572. users: {
  16573. mapTo: "data",
  16574. required: true,
  16575. type: "string[]"
  16576. }
  16577. },
  16578. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  16579. },
  16580. checkCollaborator: {
  16581. method: "GET",
  16582. params: {
  16583. owner: {
  16584. required: true,
  16585. type: "string"
  16586. },
  16587. repo: {
  16588. required: true,
  16589. type: "string"
  16590. },
  16591. username: {
  16592. required: true,
  16593. type: "string"
  16594. }
  16595. },
  16596. url: "/repos/:owner/:repo/collaborators/:username"
  16597. },
  16598. checkVulnerabilityAlerts: {
  16599. headers: {
  16600. accept: "application/vnd.github.dorian-preview+json"
  16601. },
  16602. method: "GET",
  16603. params: {
  16604. owner: {
  16605. required: true,
  16606. type: "string"
  16607. },
  16608. repo: {
  16609. required: true,
  16610. type: "string"
  16611. }
  16612. },
  16613. url: "/repos/:owner/:repo/vulnerability-alerts"
  16614. },
  16615. compareCommits: {
  16616. method: "GET",
  16617. params: {
  16618. base: {
  16619. required: true,
  16620. type: "string"
  16621. },
  16622. head: {
  16623. required: true,
  16624. type: "string"
  16625. },
  16626. owner: {
  16627. required: true,
  16628. type: "string"
  16629. },
  16630. repo: {
  16631. required: true,
  16632. type: "string"
  16633. }
  16634. },
  16635. url: "/repos/:owner/:repo/compare/:base...:head"
  16636. },
  16637. createCommitComment: {
  16638. method: "POST",
  16639. params: {
  16640. body: {
  16641. required: true,
  16642. type: "string"
  16643. },
  16644. commit_sha: {
  16645. required: true,
  16646. type: "string"
  16647. },
  16648. line: {
  16649. type: "integer"
  16650. },
  16651. owner: {
  16652. required: true,
  16653. type: "string"
  16654. },
  16655. path: {
  16656. type: "string"
  16657. },
  16658. position: {
  16659. type: "integer"
  16660. },
  16661. repo: {
  16662. required: true,
  16663. type: "string"
  16664. },
  16665. sha: {
  16666. alias: "commit_sha",
  16667. deprecated: true,
  16668. type: "string"
  16669. }
  16670. },
  16671. url: "/repos/:owner/:repo/commits/:commit_sha/comments"
  16672. },
  16673. createDeployment: {
  16674. method: "POST",
  16675. params: {
  16676. auto_merge: {
  16677. type: "boolean"
  16678. },
  16679. description: {
  16680. type: "string"
  16681. },
  16682. environment: {
  16683. type: "string"
  16684. },
  16685. owner: {
  16686. required: true,
  16687. type: "string"
  16688. },
  16689. payload: {
  16690. type: "string"
  16691. },
  16692. production_environment: {
  16693. type: "boolean"
  16694. },
  16695. ref: {
  16696. required: true,
  16697. type: "string"
  16698. },
  16699. repo: {
  16700. required: true,
  16701. type: "string"
  16702. },
  16703. required_contexts: {
  16704. type: "string[]"
  16705. },
  16706. task: {
  16707. type: "string"
  16708. },
  16709. transient_environment: {
  16710. type: "boolean"
  16711. }
  16712. },
  16713. url: "/repos/:owner/:repo/deployments"
  16714. },
  16715. createDeploymentStatus: {
  16716. method: "POST",
  16717. params: {
  16718. auto_inactive: {
  16719. type: "boolean"
  16720. },
  16721. deployment_id: {
  16722. required: true,
  16723. type: "integer"
  16724. },
  16725. description: {
  16726. type: "string"
  16727. },
  16728. environment: {
  16729. enum: ["production", "staging", "qa"],
  16730. type: "string"
  16731. },
  16732. environment_url: {
  16733. type: "string"
  16734. },
  16735. log_url: {
  16736. type: "string"
  16737. },
  16738. owner: {
  16739. required: true,
  16740. type: "string"
  16741. },
  16742. repo: {
  16743. required: true,
  16744. type: "string"
  16745. },
  16746. state: {
  16747. enum: ["error", "failure", "inactive", "in_progress", "queued", "pending", "success"],
  16748. required: true,
  16749. type: "string"
  16750. },
  16751. target_url: {
  16752. type: "string"
  16753. }
  16754. },
  16755. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
  16756. },
  16757. createDispatchEvent: {
  16758. method: "POST",
  16759. params: {
  16760. client_payload: {
  16761. type: "object"
  16762. },
  16763. event_type: {
  16764. type: "string"
  16765. },
  16766. owner: {
  16767. required: true,
  16768. type: "string"
  16769. },
  16770. repo: {
  16771. required: true,
  16772. type: "string"
  16773. }
  16774. },
  16775. url: "/repos/:owner/:repo/dispatches"
  16776. },
  16777. createFile: {
  16778. deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
  16779. method: "PUT",
  16780. params: {
  16781. author: {
  16782. type: "object"
  16783. },
  16784. "author.email": {
  16785. required: true,
  16786. type: "string"
  16787. },
  16788. "author.name": {
  16789. required: true,
  16790. type: "string"
  16791. },
  16792. branch: {
  16793. type: "string"
  16794. },
  16795. committer: {
  16796. type: "object"
  16797. },
  16798. "committer.email": {
  16799. required: true,
  16800. type: "string"
  16801. },
  16802. "committer.name": {
  16803. required: true,
  16804. type: "string"
  16805. },
  16806. content: {
  16807. required: true,
  16808. type: "string"
  16809. },
  16810. message: {
  16811. required: true,
  16812. type: "string"
  16813. },
  16814. owner: {
  16815. required: true,
  16816. type: "string"
  16817. },
  16818. path: {
  16819. required: true,
  16820. type: "string"
  16821. },
  16822. repo: {
  16823. required: true,
  16824. type: "string"
  16825. },
  16826. sha: {
  16827. type: "string"
  16828. }
  16829. },
  16830. url: "/repos/:owner/:repo/contents/:path"
  16831. },
  16832. createForAuthenticatedUser: {
  16833. method: "POST",
  16834. params: {
  16835. allow_merge_commit: {
  16836. type: "boolean"
  16837. },
  16838. allow_rebase_merge: {
  16839. type: "boolean"
  16840. },
  16841. allow_squash_merge: {
  16842. type: "boolean"
  16843. },
  16844. auto_init: {
  16845. type: "boolean"
  16846. },
  16847. delete_branch_on_merge: {
  16848. type: "boolean"
  16849. },
  16850. description: {
  16851. type: "string"
  16852. },
  16853. gitignore_template: {
  16854. type: "string"
  16855. },
  16856. has_issues: {
  16857. type: "boolean"
  16858. },
  16859. has_projects: {
  16860. type: "boolean"
  16861. },
  16862. has_wiki: {
  16863. type: "boolean"
  16864. },
  16865. homepage: {
  16866. type: "string"
  16867. },
  16868. is_template: {
  16869. type: "boolean"
  16870. },
  16871. license_template: {
  16872. type: "string"
  16873. },
  16874. name: {
  16875. required: true,
  16876. type: "string"
  16877. },
  16878. private: {
  16879. type: "boolean"
  16880. },
  16881. team_id: {
  16882. type: "integer"
  16883. },
  16884. visibility: {
  16885. enum: ["public", "private", "visibility", "internal"],
  16886. type: "string"
  16887. }
  16888. },
  16889. url: "/user/repos"
  16890. },
  16891. createFork: {
  16892. method: "POST",
  16893. params: {
  16894. organization: {
  16895. type: "string"
  16896. },
  16897. owner: {
  16898. required: true,
  16899. type: "string"
  16900. },
  16901. repo: {
  16902. required: true,
  16903. type: "string"
  16904. }
  16905. },
  16906. url: "/repos/:owner/:repo/forks"
  16907. },
  16908. createHook: {
  16909. method: "POST",
  16910. params: {
  16911. active: {
  16912. type: "boolean"
  16913. },
  16914. config: {
  16915. required: true,
  16916. type: "object"
  16917. },
  16918. "config.content_type": {
  16919. type: "string"
  16920. },
  16921. "config.insecure_ssl": {
  16922. type: "string"
  16923. },
  16924. "config.secret": {
  16925. type: "string"
  16926. },
  16927. "config.url": {
  16928. required: true,
  16929. type: "string"
  16930. },
  16931. events: {
  16932. type: "string[]"
  16933. },
  16934. name: {
  16935. type: "string"
  16936. },
  16937. owner: {
  16938. required: true,
  16939. type: "string"
  16940. },
  16941. repo: {
  16942. required: true,
  16943. type: "string"
  16944. }
  16945. },
  16946. url: "/repos/:owner/:repo/hooks"
  16947. },
  16948. createInOrg: {
  16949. method: "POST",
  16950. params: {
  16951. allow_merge_commit: {
  16952. type: "boolean"
  16953. },
  16954. allow_rebase_merge: {
  16955. type: "boolean"
  16956. },
  16957. allow_squash_merge: {
  16958. type: "boolean"
  16959. },
  16960. auto_init: {
  16961. type: "boolean"
  16962. },
  16963. delete_branch_on_merge: {
  16964. type: "boolean"
  16965. },
  16966. description: {
  16967. type: "string"
  16968. },
  16969. gitignore_template: {
  16970. type: "string"
  16971. },
  16972. has_issues: {
  16973. type: "boolean"
  16974. },
  16975. has_projects: {
  16976. type: "boolean"
  16977. },
  16978. has_wiki: {
  16979. type: "boolean"
  16980. },
  16981. homepage: {
  16982. type: "string"
  16983. },
  16984. is_template: {
  16985. type: "boolean"
  16986. },
  16987. license_template: {
  16988. type: "string"
  16989. },
  16990. name: {
  16991. required: true,
  16992. type: "string"
  16993. },
  16994. org: {
  16995. required: true,
  16996. type: "string"
  16997. },
  16998. private: {
  16999. type: "boolean"
  17000. },
  17001. team_id: {
  17002. type: "integer"
  17003. },
  17004. visibility: {
  17005. enum: ["public", "private", "visibility", "internal"],
  17006. type: "string"
  17007. }
  17008. },
  17009. url: "/orgs/:org/repos"
  17010. },
  17011. createOrUpdateFile: {
  17012. method: "PUT",
  17013. params: {
  17014. author: {
  17015. type: "object"
  17016. },
  17017. "author.email": {
  17018. required: true,
  17019. type: "string"
  17020. },
  17021. "author.name": {
  17022. required: true,
  17023. type: "string"
  17024. },
  17025. branch: {
  17026. type: "string"
  17027. },
  17028. committer: {
  17029. type: "object"
  17030. },
  17031. "committer.email": {
  17032. required: true,
  17033. type: "string"
  17034. },
  17035. "committer.name": {
  17036. required: true,
  17037. type: "string"
  17038. },
  17039. content: {
  17040. required: true,
  17041. type: "string"
  17042. },
  17043. message: {
  17044. required: true,
  17045. type: "string"
  17046. },
  17047. owner: {
  17048. required: true,
  17049. type: "string"
  17050. },
  17051. path: {
  17052. required: true,
  17053. type: "string"
  17054. },
  17055. repo: {
  17056. required: true,
  17057. type: "string"
  17058. },
  17059. sha: {
  17060. type: "string"
  17061. }
  17062. },
  17063. url: "/repos/:owner/:repo/contents/:path"
  17064. },
  17065. createRelease: {
  17066. method: "POST",
  17067. params: {
  17068. body: {
  17069. type: "string"
  17070. },
  17071. draft: {
  17072. type: "boolean"
  17073. },
  17074. name: {
  17075. type: "string"
  17076. },
  17077. owner: {
  17078. required: true,
  17079. type: "string"
  17080. },
  17081. prerelease: {
  17082. type: "boolean"
  17083. },
  17084. repo: {
  17085. required: true,
  17086. type: "string"
  17087. },
  17088. tag_name: {
  17089. required: true,
  17090. type: "string"
  17091. },
  17092. target_commitish: {
  17093. type: "string"
  17094. }
  17095. },
  17096. url: "/repos/:owner/:repo/releases"
  17097. },
  17098. createStatus: {
  17099. method: "POST",
  17100. params: {
  17101. context: {
  17102. type: "string"
  17103. },
  17104. description: {
  17105. type: "string"
  17106. },
  17107. owner: {
  17108. required: true,
  17109. type: "string"
  17110. },
  17111. repo: {
  17112. required: true,
  17113. type: "string"
  17114. },
  17115. sha: {
  17116. required: true,
  17117. type: "string"
  17118. },
  17119. state: {
  17120. enum: ["error", "failure", "pending", "success"],
  17121. required: true,
  17122. type: "string"
  17123. },
  17124. target_url: {
  17125. type: "string"
  17126. }
  17127. },
  17128. url: "/repos/:owner/:repo/statuses/:sha"
  17129. },
  17130. createUsingTemplate: {
  17131. headers: {
  17132. accept: "application/vnd.github.baptiste-preview+json"
  17133. },
  17134. method: "POST",
  17135. params: {
  17136. description: {
  17137. type: "string"
  17138. },
  17139. name: {
  17140. required: true,
  17141. type: "string"
  17142. },
  17143. owner: {
  17144. type: "string"
  17145. },
  17146. private: {
  17147. type: "boolean"
  17148. },
  17149. template_owner: {
  17150. required: true,
  17151. type: "string"
  17152. },
  17153. template_repo: {
  17154. required: true,
  17155. type: "string"
  17156. }
  17157. },
  17158. url: "/repos/:template_owner/:template_repo/generate"
  17159. },
  17160. declineInvitation: {
  17161. method: "DELETE",
  17162. params: {
  17163. invitation_id: {
  17164. required: true,
  17165. type: "integer"
  17166. }
  17167. },
  17168. url: "/user/repository_invitations/:invitation_id"
  17169. },
  17170. delete: {
  17171. method: "DELETE",
  17172. params: {
  17173. owner: {
  17174. required: true,
  17175. type: "string"
  17176. },
  17177. repo: {
  17178. required: true,
  17179. type: "string"
  17180. }
  17181. },
  17182. url: "/repos/:owner/:repo"
  17183. },
  17184. deleteCommitComment: {
  17185. method: "DELETE",
  17186. params: {
  17187. comment_id: {
  17188. required: true,
  17189. type: "integer"
  17190. },
  17191. owner: {
  17192. required: true,
  17193. type: "string"
  17194. },
  17195. repo: {
  17196. required: true,
  17197. type: "string"
  17198. }
  17199. },
  17200. url: "/repos/:owner/:repo/comments/:comment_id"
  17201. },
  17202. deleteDownload: {
  17203. method: "DELETE",
  17204. params: {
  17205. download_id: {
  17206. required: true,
  17207. type: "integer"
  17208. },
  17209. owner: {
  17210. required: true,
  17211. type: "string"
  17212. },
  17213. repo: {
  17214. required: true,
  17215. type: "string"
  17216. }
  17217. },
  17218. url: "/repos/:owner/:repo/downloads/:download_id"
  17219. },
  17220. deleteFile: {
  17221. method: "DELETE",
  17222. params: {
  17223. author: {
  17224. type: "object"
  17225. },
  17226. "author.email": {
  17227. type: "string"
  17228. },
  17229. "author.name": {
  17230. type: "string"
  17231. },
  17232. branch: {
  17233. type: "string"
  17234. },
  17235. committer: {
  17236. type: "object"
  17237. },
  17238. "committer.email": {
  17239. type: "string"
  17240. },
  17241. "committer.name": {
  17242. type: "string"
  17243. },
  17244. message: {
  17245. required: true,
  17246. type: "string"
  17247. },
  17248. owner: {
  17249. required: true,
  17250. type: "string"
  17251. },
  17252. path: {
  17253. required: true,
  17254. type: "string"
  17255. },
  17256. repo: {
  17257. required: true,
  17258. type: "string"
  17259. },
  17260. sha: {
  17261. required: true,
  17262. type: "string"
  17263. }
  17264. },
  17265. url: "/repos/:owner/:repo/contents/:path"
  17266. },
  17267. deleteHook: {
  17268. method: "DELETE",
  17269. params: {
  17270. hook_id: {
  17271. required: true,
  17272. type: "integer"
  17273. },
  17274. owner: {
  17275. required: true,
  17276. type: "string"
  17277. },
  17278. repo: {
  17279. required: true,
  17280. type: "string"
  17281. }
  17282. },
  17283. url: "/repos/:owner/:repo/hooks/:hook_id"
  17284. },
  17285. deleteInvitation: {
  17286. method: "DELETE",
  17287. params: {
  17288. invitation_id: {
  17289. required: true,
  17290. type: "integer"
  17291. },
  17292. owner: {
  17293. required: true,
  17294. type: "string"
  17295. },
  17296. repo: {
  17297. required: true,
  17298. type: "string"
  17299. }
  17300. },
  17301. url: "/repos/:owner/:repo/invitations/:invitation_id"
  17302. },
  17303. deleteRelease: {
  17304. method: "DELETE",
  17305. params: {
  17306. owner: {
  17307. required: true,
  17308. type: "string"
  17309. },
  17310. release_id: {
  17311. required: true,
  17312. type: "integer"
  17313. },
  17314. repo: {
  17315. required: true,
  17316. type: "string"
  17317. }
  17318. },
  17319. url: "/repos/:owner/:repo/releases/:release_id"
  17320. },
  17321. deleteReleaseAsset: {
  17322. method: "DELETE",
  17323. params: {
  17324. asset_id: {
  17325. required: true,
  17326. type: "integer"
  17327. },
  17328. owner: {
  17329. required: true,
  17330. type: "string"
  17331. },
  17332. repo: {
  17333. required: true,
  17334. type: "string"
  17335. }
  17336. },
  17337. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  17338. },
  17339. disableAutomatedSecurityFixes: {
  17340. headers: {
  17341. accept: "application/vnd.github.london-preview+json"
  17342. },
  17343. method: "DELETE",
  17344. params: {
  17345. owner: {
  17346. required: true,
  17347. type: "string"
  17348. },
  17349. repo: {
  17350. required: true,
  17351. type: "string"
  17352. }
  17353. },
  17354. url: "/repos/:owner/:repo/automated-security-fixes"
  17355. },
  17356. disablePagesSite: {
  17357. headers: {
  17358. accept: "application/vnd.github.switcheroo-preview+json"
  17359. },
  17360. method: "DELETE",
  17361. params: {
  17362. owner: {
  17363. required: true,
  17364. type: "string"
  17365. },
  17366. repo: {
  17367. required: true,
  17368. type: "string"
  17369. }
  17370. },
  17371. url: "/repos/:owner/:repo/pages"
  17372. },
  17373. disableVulnerabilityAlerts: {
  17374. headers: {
  17375. accept: "application/vnd.github.dorian-preview+json"
  17376. },
  17377. method: "DELETE",
  17378. params: {
  17379. owner: {
  17380. required: true,
  17381. type: "string"
  17382. },
  17383. repo: {
  17384. required: true,
  17385. type: "string"
  17386. }
  17387. },
  17388. url: "/repos/:owner/:repo/vulnerability-alerts"
  17389. },
  17390. enableAutomatedSecurityFixes: {
  17391. headers: {
  17392. accept: "application/vnd.github.london-preview+json"
  17393. },
  17394. method: "PUT",
  17395. params: {
  17396. owner: {
  17397. required: true,
  17398. type: "string"
  17399. },
  17400. repo: {
  17401. required: true,
  17402. type: "string"
  17403. }
  17404. },
  17405. url: "/repos/:owner/:repo/automated-security-fixes"
  17406. },
  17407. enablePagesSite: {
  17408. headers: {
  17409. accept: "application/vnd.github.switcheroo-preview+json"
  17410. },
  17411. method: "POST",
  17412. params: {
  17413. owner: {
  17414. required: true,
  17415. type: "string"
  17416. },
  17417. repo: {
  17418. required: true,
  17419. type: "string"
  17420. },
  17421. source: {
  17422. type: "object"
  17423. },
  17424. "source.branch": {
  17425. enum: ["master", "gh-pages"],
  17426. type: "string"
  17427. },
  17428. "source.path": {
  17429. type: "string"
  17430. }
  17431. },
  17432. url: "/repos/:owner/:repo/pages"
  17433. },
  17434. enableVulnerabilityAlerts: {
  17435. headers: {
  17436. accept: "application/vnd.github.dorian-preview+json"
  17437. },
  17438. method: "PUT",
  17439. params: {
  17440. owner: {
  17441. required: true,
  17442. type: "string"
  17443. },
  17444. repo: {
  17445. required: true,
  17446. type: "string"
  17447. }
  17448. },
  17449. url: "/repos/:owner/:repo/vulnerability-alerts"
  17450. },
  17451. get: {
  17452. method: "GET",
  17453. params: {
  17454. owner: {
  17455. required: true,
  17456. type: "string"
  17457. },
  17458. repo: {
  17459. required: true,
  17460. type: "string"
  17461. }
  17462. },
  17463. url: "/repos/:owner/:repo"
  17464. },
  17465. getAppsWithAccessToProtectedBranch: {
  17466. method: "GET",
  17467. params: {
  17468. branch: {
  17469. required: true,
  17470. type: "string"
  17471. },
  17472. owner: {
  17473. required: true,
  17474. type: "string"
  17475. },
  17476. repo: {
  17477. required: true,
  17478. type: "string"
  17479. }
  17480. },
  17481. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  17482. },
  17483. getArchiveLink: {
  17484. method: "GET",
  17485. params: {
  17486. archive_format: {
  17487. required: true,
  17488. type: "string"
  17489. },
  17490. owner: {
  17491. required: true,
  17492. type: "string"
  17493. },
  17494. ref: {
  17495. required: true,
  17496. type: "string"
  17497. },
  17498. repo: {
  17499. required: true,
  17500. type: "string"
  17501. }
  17502. },
  17503. url: "/repos/:owner/:repo/:archive_format/:ref"
  17504. },
  17505. getBranch: {
  17506. method: "GET",
  17507. params: {
  17508. branch: {
  17509. required: true,
  17510. type: "string"
  17511. },
  17512. owner: {
  17513. required: true,
  17514. type: "string"
  17515. },
  17516. repo: {
  17517. required: true,
  17518. type: "string"
  17519. }
  17520. },
  17521. url: "/repos/:owner/:repo/branches/:branch"
  17522. },
  17523. getBranchProtection: {
  17524. method: "GET",
  17525. params: {
  17526. branch: {
  17527. required: true,
  17528. type: "string"
  17529. },
  17530. owner: {
  17531. required: true,
  17532. type: "string"
  17533. },
  17534. repo: {
  17535. required: true,
  17536. type: "string"
  17537. }
  17538. },
  17539. url: "/repos/:owner/:repo/branches/:branch/protection"
  17540. },
  17541. getClones: {
  17542. method: "GET",
  17543. params: {
  17544. owner: {
  17545. required: true,
  17546. type: "string"
  17547. },
  17548. per: {
  17549. enum: ["day", "week"],
  17550. type: "string"
  17551. },
  17552. repo: {
  17553. required: true,
  17554. type: "string"
  17555. }
  17556. },
  17557. url: "/repos/:owner/:repo/traffic/clones"
  17558. },
  17559. getCodeFrequencyStats: {
  17560. method: "GET",
  17561. params: {
  17562. owner: {
  17563. required: true,
  17564. type: "string"
  17565. },
  17566. repo: {
  17567. required: true,
  17568. type: "string"
  17569. }
  17570. },
  17571. url: "/repos/:owner/:repo/stats/code_frequency"
  17572. },
  17573. getCollaboratorPermissionLevel: {
  17574. method: "GET",
  17575. params: {
  17576. owner: {
  17577. required: true,
  17578. type: "string"
  17579. },
  17580. repo: {
  17581. required: true,
  17582. type: "string"
  17583. },
  17584. username: {
  17585. required: true,
  17586. type: "string"
  17587. }
  17588. },
  17589. url: "/repos/:owner/:repo/collaborators/:username/permission"
  17590. },
  17591. getCombinedStatusForRef: {
  17592. method: "GET",
  17593. params: {
  17594. owner: {
  17595. required: true,
  17596. type: "string"
  17597. },
  17598. ref: {
  17599. required: true,
  17600. type: "string"
  17601. },
  17602. repo: {
  17603. required: true,
  17604. type: "string"
  17605. }
  17606. },
  17607. url: "/repos/:owner/:repo/commits/:ref/status"
  17608. },
  17609. getCommit: {
  17610. method: "GET",
  17611. params: {
  17612. commit_sha: {
  17613. alias: "ref",
  17614. deprecated: true,
  17615. type: "string"
  17616. },
  17617. owner: {
  17618. required: true,
  17619. type: "string"
  17620. },
  17621. ref: {
  17622. required: true,
  17623. type: "string"
  17624. },
  17625. repo: {
  17626. required: true,
  17627. type: "string"
  17628. },
  17629. sha: {
  17630. alias: "ref",
  17631. deprecated: true,
  17632. type: "string"
  17633. }
  17634. },
  17635. url: "/repos/:owner/:repo/commits/:ref"
  17636. },
  17637. getCommitActivityStats: {
  17638. method: "GET",
  17639. params: {
  17640. owner: {
  17641. required: true,
  17642. type: "string"
  17643. },
  17644. repo: {
  17645. required: true,
  17646. type: "string"
  17647. }
  17648. },
  17649. url: "/repos/:owner/:repo/stats/commit_activity"
  17650. },
  17651. getCommitComment: {
  17652. method: "GET",
  17653. params: {
  17654. comment_id: {
  17655. required: true,
  17656. type: "integer"
  17657. },
  17658. owner: {
  17659. required: true,
  17660. type: "string"
  17661. },
  17662. repo: {
  17663. required: true,
  17664. type: "string"
  17665. }
  17666. },
  17667. url: "/repos/:owner/:repo/comments/:comment_id"
  17668. },
  17669. getCommitRefSha: {
  17670. deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",
  17671. headers: {
  17672. accept: "application/vnd.github.v3.sha"
  17673. },
  17674. method: "GET",
  17675. params: {
  17676. owner: {
  17677. required: true,
  17678. type: "string"
  17679. },
  17680. ref: {
  17681. required: true,
  17682. type: "string"
  17683. },
  17684. repo: {
  17685. required: true,
  17686. type: "string"
  17687. }
  17688. },
  17689. url: "/repos/:owner/:repo/commits/:ref"
  17690. },
  17691. getContents: {
  17692. method: "GET",
  17693. params: {
  17694. owner: {
  17695. required: true,
  17696. type: "string"
  17697. },
  17698. path: {
  17699. required: true,
  17700. type: "string"
  17701. },
  17702. ref: {
  17703. type: "string"
  17704. },
  17705. repo: {
  17706. required: true,
  17707. type: "string"
  17708. }
  17709. },
  17710. url: "/repos/:owner/:repo/contents/:path"
  17711. },
  17712. getContributorsStats: {
  17713. method: "GET",
  17714. params: {
  17715. owner: {
  17716. required: true,
  17717. type: "string"
  17718. },
  17719. repo: {
  17720. required: true,
  17721. type: "string"
  17722. }
  17723. },
  17724. url: "/repos/:owner/:repo/stats/contributors"
  17725. },
  17726. getDeployKey: {
  17727. method: "GET",
  17728. params: {
  17729. key_id: {
  17730. required: true,
  17731. type: "integer"
  17732. },
  17733. owner: {
  17734. required: true,
  17735. type: "string"
  17736. },
  17737. repo: {
  17738. required: true,
  17739. type: "string"
  17740. }
  17741. },
  17742. url: "/repos/:owner/:repo/keys/:key_id"
  17743. },
  17744. getDeployment: {
  17745. method: "GET",
  17746. params: {
  17747. deployment_id: {
  17748. required: true,
  17749. type: "integer"
  17750. },
  17751. owner: {
  17752. required: true,
  17753. type: "string"
  17754. },
  17755. repo: {
  17756. required: true,
  17757. type: "string"
  17758. }
  17759. },
  17760. url: "/repos/:owner/:repo/deployments/:deployment_id"
  17761. },
  17762. getDeploymentStatus: {
  17763. method: "GET",
  17764. params: {
  17765. deployment_id: {
  17766. required: true,
  17767. type: "integer"
  17768. },
  17769. owner: {
  17770. required: true,
  17771. type: "string"
  17772. },
  17773. repo: {
  17774. required: true,
  17775. type: "string"
  17776. },
  17777. status_id: {
  17778. required: true,
  17779. type: "integer"
  17780. }
  17781. },
  17782. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"
  17783. },
  17784. getDownload: {
  17785. method: "GET",
  17786. params: {
  17787. download_id: {
  17788. required: true,
  17789. type: "integer"
  17790. },
  17791. owner: {
  17792. required: true,
  17793. type: "string"
  17794. },
  17795. repo: {
  17796. required: true,
  17797. type: "string"
  17798. }
  17799. },
  17800. url: "/repos/:owner/:repo/downloads/:download_id"
  17801. },
  17802. getHook: {
  17803. method: "GET",
  17804. params: {
  17805. hook_id: {
  17806. required: true,
  17807. type: "integer"
  17808. },
  17809. owner: {
  17810. required: true,
  17811. type: "string"
  17812. },
  17813. repo: {
  17814. required: true,
  17815. type: "string"
  17816. }
  17817. },
  17818. url: "/repos/:owner/:repo/hooks/:hook_id"
  17819. },
  17820. getLatestPagesBuild: {
  17821. method: "GET",
  17822. params: {
  17823. owner: {
  17824. required: true,
  17825. type: "string"
  17826. },
  17827. repo: {
  17828. required: true,
  17829. type: "string"
  17830. }
  17831. },
  17832. url: "/repos/:owner/:repo/pages/builds/latest"
  17833. },
  17834. getLatestRelease: {
  17835. method: "GET",
  17836. params: {
  17837. owner: {
  17838. required: true,
  17839. type: "string"
  17840. },
  17841. repo: {
  17842. required: true,
  17843. type: "string"
  17844. }
  17845. },
  17846. url: "/repos/:owner/:repo/releases/latest"
  17847. },
  17848. getPages: {
  17849. method: "GET",
  17850. params: {
  17851. owner: {
  17852. required: true,
  17853. type: "string"
  17854. },
  17855. repo: {
  17856. required: true,
  17857. type: "string"
  17858. }
  17859. },
  17860. url: "/repos/:owner/:repo/pages"
  17861. },
  17862. getPagesBuild: {
  17863. method: "GET",
  17864. params: {
  17865. build_id: {
  17866. required: true,
  17867. type: "integer"
  17868. },
  17869. owner: {
  17870. required: true,
  17871. type: "string"
  17872. },
  17873. repo: {
  17874. required: true,
  17875. type: "string"
  17876. }
  17877. },
  17878. url: "/repos/:owner/:repo/pages/builds/:build_id"
  17879. },
  17880. getParticipationStats: {
  17881. method: "GET",
  17882. params: {
  17883. owner: {
  17884. required: true,
  17885. type: "string"
  17886. },
  17887. repo: {
  17888. required: true,
  17889. type: "string"
  17890. }
  17891. },
  17892. url: "/repos/:owner/:repo/stats/participation"
  17893. },
  17894. getProtectedBranchAdminEnforcement: {
  17895. method: "GET",
  17896. params: {
  17897. branch: {
  17898. required: true,
  17899. type: "string"
  17900. },
  17901. owner: {
  17902. required: true,
  17903. type: "string"
  17904. },
  17905. repo: {
  17906. required: true,
  17907. type: "string"
  17908. }
  17909. },
  17910. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  17911. },
  17912. getProtectedBranchPullRequestReviewEnforcement: {
  17913. method: "GET",
  17914. params: {
  17915. branch: {
  17916. required: true,
  17917. type: "string"
  17918. },
  17919. owner: {
  17920. required: true,
  17921. type: "string"
  17922. },
  17923. repo: {
  17924. required: true,
  17925. type: "string"
  17926. }
  17927. },
  17928. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  17929. },
  17930. getProtectedBranchRequiredSignatures: {
  17931. headers: {
  17932. accept: "application/vnd.github.zzzax-preview+json"
  17933. },
  17934. method: "GET",
  17935. params: {
  17936. branch: {
  17937. required: true,
  17938. type: "string"
  17939. },
  17940. owner: {
  17941. required: true,
  17942. type: "string"
  17943. },
  17944. repo: {
  17945. required: true,
  17946. type: "string"
  17947. }
  17948. },
  17949. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  17950. },
  17951. getProtectedBranchRequiredStatusChecks: {
  17952. method: "GET",
  17953. params: {
  17954. branch: {
  17955. required: true,
  17956. type: "string"
  17957. },
  17958. owner: {
  17959. required: true,
  17960. type: "string"
  17961. },
  17962. repo: {
  17963. required: true,
  17964. type: "string"
  17965. }
  17966. },
  17967. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  17968. },
  17969. getProtectedBranchRestrictions: {
  17970. method: "GET",
  17971. params: {
  17972. branch: {
  17973. required: true,
  17974. type: "string"
  17975. },
  17976. owner: {
  17977. required: true,
  17978. type: "string"
  17979. },
  17980. repo: {
  17981. required: true,
  17982. type: "string"
  17983. }
  17984. },
  17985. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
  17986. },
  17987. getPunchCardStats: {
  17988. method: "GET",
  17989. params: {
  17990. owner: {
  17991. required: true,
  17992. type: "string"
  17993. },
  17994. repo: {
  17995. required: true,
  17996. type: "string"
  17997. }
  17998. },
  17999. url: "/repos/:owner/:repo/stats/punch_card"
  18000. },
  18001. getReadme: {
  18002. method: "GET",
  18003. params: {
  18004. owner: {
  18005. required: true,
  18006. type: "string"
  18007. },
  18008. ref: {
  18009. type: "string"
  18010. },
  18011. repo: {
  18012. required: true,
  18013. type: "string"
  18014. }
  18015. },
  18016. url: "/repos/:owner/:repo/readme"
  18017. },
  18018. getRelease: {
  18019. method: "GET",
  18020. params: {
  18021. owner: {
  18022. required: true,
  18023. type: "string"
  18024. },
  18025. release_id: {
  18026. required: true,
  18027. type: "integer"
  18028. },
  18029. repo: {
  18030. required: true,
  18031. type: "string"
  18032. }
  18033. },
  18034. url: "/repos/:owner/:repo/releases/:release_id"
  18035. },
  18036. getReleaseAsset: {
  18037. method: "GET",
  18038. params: {
  18039. asset_id: {
  18040. required: true,
  18041. type: "integer"
  18042. },
  18043. owner: {
  18044. required: true,
  18045. type: "string"
  18046. },
  18047. repo: {
  18048. required: true,
  18049. type: "string"
  18050. }
  18051. },
  18052. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  18053. },
  18054. getReleaseByTag: {
  18055. method: "GET",
  18056. params: {
  18057. owner: {
  18058. required: true,
  18059. type: "string"
  18060. },
  18061. repo: {
  18062. required: true,
  18063. type: "string"
  18064. },
  18065. tag: {
  18066. required: true,
  18067. type: "string"
  18068. }
  18069. },
  18070. url: "/repos/:owner/:repo/releases/tags/:tag"
  18071. },
  18072. getTeamsWithAccessToProtectedBranch: {
  18073. method: "GET",
  18074. params: {
  18075. branch: {
  18076. required: true,
  18077. type: "string"
  18078. },
  18079. owner: {
  18080. required: true,
  18081. type: "string"
  18082. },
  18083. repo: {
  18084. required: true,
  18085. type: "string"
  18086. }
  18087. },
  18088. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  18089. },
  18090. getTopPaths: {
  18091. method: "GET",
  18092. params: {
  18093. owner: {
  18094. required: true,
  18095. type: "string"
  18096. },
  18097. repo: {
  18098. required: true,
  18099. type: "string"
  18100. }
  18101. },
  18102. url: "/repos/:owner/:repo/traffic/popular/paths"
  18103. },
  18104. getTopReferrers: {
  18105. method: "GET",
  18106. params: {
  18107. owner: {
  18108. required: true,
  18109. type: "string"
  18110. },
  18111. repo: {
  18112. required: true,
  18113. type: "string"
  18114. }
  18115. },
  18116. url: "/repos/:owner/:repo/traffic/popular/referrers"
  18117. },
  18118. getUsersWithAccessToProtectedBranch: {
  18119. method: "GET",
  18120. params: {
  18121. branch: {
  18122. required: true,
  18123. type: "string"
  18124. },
  18125. owner: {
  18126. required: true,
  18127. type: "string"
  18128. },
  18129. repo: {
  18130. required: true,
  18131. type: "string"
  18132. }
  18133. },
  18134. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  18135. },
  18136. getViews: {
  18137. method: "GET",
  18138. params: {
  18139. owner: {
  18140. required: true,
  18141. type: "string"
  18142. },
  18143. per: {
  18144. enum: ["day", "week"],
  18145. type: "string"
  18146. },
  18147. repo: {
  18148. required: true,
  18149. type: "string"
  18150. }
  18151. },
  18152. url: "/repos/:owner/:repo/traffic/views"
  18153. },
  18154. list: {
  18155. method: "GET",
  18156. params: {
  18157. affiliation: {
  18158. type: "string"
  18159. },
  18160. direction: {
  18161. enum: ["asc", "desc"],
  18162. type: "string"
  18163. },
  18164. page: {
  18165. type: "integer"
  18166. },
  18167. per_page: {
  18168. type: "integer"
  18169. },
  18170. sort: {
  18171. enum: ["created", "updated", "pushed", "full_name"],
  18172. type: "string"
  18173. },
  18174. type: {
  18175. enum: ["all", "owner", "public", "private", "member"],
  18176. type: "string"
  18177. },
  18178. visibility: {
  18179. enum: ["all", "public", "private"],
  18180. type: "string"
  18181. }
  18182. },
  18183. url: "/user/repos"
  18184. },
  18185. listAppsWithAccessToProtectedBranch: {
  18186. deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",
  18187. method: "GET",
  18188. params: {
  18189. branch: {
  18190. required: true,
  18191. type: "string"
  18192. },
  18193. owner: {
  18194. required: true,
  18195. type: "string"
  18196. },
  18197. repo: {
  18198. required: true,
  18199. type: "string"
  18200. }
  18201. },
  18202. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  18203. },
  18204. listAssetsForRelease: {
  18205. method: "GET",
  18206. params: {
  18207. owner: {
  18208. required: true,
  18209. type: "string"
  18210. },
  18211. page: {
  18212. type: "integer"
  18213. },
  18214. per_page: {
  18215. type: "integer"
  18216. },
  18217. release_id: {
  18218. required: true,
  18219. type: "integer"
  18220. },
  18221. repo: {
  18222. required: true,
  18223. type: "string"
  18224. }
  18225. },
  18226. url: "/repos/:owner/:repo/releases/:release_id/assets"
  18227. },
  18228. listBranches: {
  18229. method: "GET",
  18230. params: {
  18231. owner: {
  18232. required: true,
  18233. type: "string"
  18234. },
  18235. page: {
  18236. type: "integer"
  18237. },
  18238. per_page: {
  18239. type: "integer"
  18240. },
  18241. protected: {
  18242. type: "boolean"
  18243. },
  18244. repo: {
  18245. required: true,
  18246. type: "string"
  18247. }
  18248. },
  18249. url: "/repos/:owner/:repo/branches"
  18250. },
  18251. listBranchesForHeadCommit: {
  18252. headers: {
  18253. accept: "application/vnd.github.groot-preview+json"
  18254. },
  18255. method: "GET",
  18256. params: {
  18257. commit_sha: {
  18258. required: true,
  18259. type: "string"
  18260. },
  18261. owner: {
  18262. required: true,
  18263. type: "string"
  18264. },
  18265. repo: {
  18266. required: true,
  18267. type: "string"
  18268. }
  18269. },
  18270. url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head"
  18271. },
  18272. listCollaborators: {
  18273. method: "GET",
  18274. params: {
  18275. affiliation: {
  18276. enum: ["outside", "direct", "all"],
  18277. type: "string"
  18278. },
  18279. owner: {
  18280. required: true,
  18281. type: "string"
  18282. },
  18283. page: {
  18284. type: "integer"
  18285. },
  18286. per_page: {
  18287. type: "integer"
  18288. },
  18289. repo: {
  18290. required: true,
  18291. type: "string"
  18292. }
  18293. },
  18294. url: "/repos/:owner/:repo/collaborators"
  18295. },
  18296. listCommentsForCommit: {
  18297. method: "GET",
  18298. params: {
  18299. commit_sha: {
  18300. required: true,
  18301. type: "string"
  18302. },
  18303. owner: {
  18304. required: true,
  18305. type: "string"
  18306. },
  18307. page: {
  18308. type: "integer"
  18309. },
  18310. per_page: {
  18311. type: "integer"
  18312. },
  18313. ref: {
  18314. alias: "commit_sha",
  18315. deprecated: true,
  18316. type: "string"
  18317. },
  18318. repo: {
  18319. required: true,
  18320. type: "string"
  18321. }
  18322. },
  18323. url: "/repos/:owner/:repo/commits/:commit_sha/comments"
  18324. },
  18325. listCommitComments: {
  18326. method: "GET",
  18327. params: {
  18328. owner: {
  18329. required: true,
  18330. type: "string"
  18331. },
  18332. page: {
  18333. type: "integer"
  18334. },
  18335. per_page: {
  18336. type: "integer"
  18337. },
  18338. repo: {
  18339. required: true,
  18340. type: "string"
  18341. }
  18342. },
  18343. url: "/repos/:owner/:repo/comments"
  18344. },
  18345. listCommits: {
  18346. method: "GET",
  18347. params: {
  18348. author: {
  18349. type: "string"
  18350. },
  18351. owner: {
  18352. required: true,
  18353. type: "string"
  18354. },
  18355. page: {
  18356. type: "integer"
  18357. },
  18358. path: {
  18359. type: "string"
  18360. },
  18361. per_page: {
  18362. type: "integer"
  18363. },
  18364. repo: {
  18365. required: true,
  18366. type: "string"
  18367. },
  18368. sha: {
  18369. type: "string"
  18370. },
  18371. since: {
  18372. type: "string"
  18373. },
  18374. until: {
  18375. type: "string"
  18376. }
  18377. },
  18378. url: "/repos/:owner/:repo/commits"
  18379. },
  18380. listContributors: {
  18381. method: "GET",
  18382. params: {
  18383. anon: {
  18384. type: "string"
  18385. },
  18386. owner: {
  18387. required: true,
  18388. type: "string"
  18389. },
  18390. page: {
  18391. type: "integer"
  18392. },
  18393. per_page: {
  18394. type: "integer"
  18395. },
  18396. repo: {
  18397. required: true,
  18398. type: "string"
  18399. }
  18400. },
  18401. url: "/repos/:owner/:repo/contributors"
  18402. },
  18403. listDeployKeys: {
  18404. method: "GET",
  18405. params: {
  18406. owner: {
  18407. required: true,
  18408. type: "string"
  18409. },
  18410. page: {
  18411. type: "integer"
  18412. },
  18413. per_page: {
  18414. type: "integer"
  18415. },
  18416. repo: {
  18417. required: true,
  18418. type: "string"
  18419. }
  18420. },
  18421. url: "/repos/:owner/:repo/keys"
  18422. },
  18423. listDeploymentStatuses: {
  18424. method: "GET",
  18425. params: {
  18426. deployment_id: {
  18427. required: true,
  18428. type: "integer"
  18429. },
  18430. owner: {
  18431. required: true,
  18432. type: "string"
  18433. },
  18434. page: {
  18435. type: "integer"
  18436. },
  18437. per_page: {
  18438. type: "integer"
  18439. },
  18440. repo: {
  18441. required: true,
  18442. type: "string"
  18443. }
  18444. },
  18445. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
  18446. },
  18447. listDeployments: {
  18448. method: "GET",
  18449. params: {
  18450. environment: {
  18451. type: "string"
  18452. },
  18453. owner: {
  18454. required: true,
  18455. type: "string"
  18456. },
  18457. page: {
  18458. type: "integer"
  18459. },
  18460. per_page: {
  18461. type: "integer"
  18462. },
  18463. ref: {
  18464. type: "string"
  18465. },
  18466. repo: {
  18467. required: true,
  18468. type: "string"
  18469. },
  18470. sha: {
  18471. type: "string"
  18472. },
  18473. task: {
  18474. type: "string"
  18475. }
  18476. },
  18477. url: "/repos/:owner/:repo/deployments"
  18478. },
  18479. listDownloads: {
  18480. method: "GET",
  18481. params: {
  18482. owner: {
  18483. required: true,
  18484. type: "string"
  18485. },
  18486. page: {
  18487. type: "integer"
  18488. },
  18489. per_page: {
  18490. type: "integer"
  18491. },
  18492. repo: {
  18493. required: true,
  18494. type: "string"
  18495. }
  18496. },
  18497. url: "/repos/:owner/:repo/downloads"
  18498. },
  18499. listForOrg: {
  18500. method: "GET",
  18501. params: {
  18502. direction: {
  18503. enum: ["asc", "desc"],
  18504. type: "string"
  18505. },
  18506. org: {
  18507. required: true,
  18508. type: "string"
  18509. },
  18510. page: {
  18511. type: "integer"
  18512. },
  18513. per_page: {
  18514. type: "integer"
  18515. },
  18516. sort: {
  18517. enum: ["created", "updated", "pushed", "full_name"],
  18518. type: "string"
  18519. },
  18520. type: {
  18521. enum: ["all", "public", "private", "forks", "sources", "member", "internal"],
  18522. type: "string"
  18523. }
  18524. },
  18525. url: "/orgs/:org/repos"
  18526. },
  18527. listForUser: {
  18528. method: "GET",
  18529. params: {
  18530. direction: {
  18531. enum: ["asc", "desc"],
  18532. type: "string"
  18533. },
  18534. page: {
  18535. type: "integer"
  18536. },
  18537. per_page: {
  18538. type: "integer"
  18539. },
  18540. sort: {
  18541. enum: ["created", "updated", "pushed", "full_name"],
  18542. type: "string"
  18543. },
  18544. type: {
  18545. enum: ["all", "owner", "member"],
  18546. type: "string"
  18547. },
  18548. username: {
  18549. required: true,
  18550. type: "string"
  18551. }
  18552. },
  18553. url: "/users/:username/repos"
  18554. },
  18555. listForks: {
  18556. method: "GET",
  18557. params: {
  18558. owner: {
  18559. required: true,
  18560. type: "string"
  18561. },
  18562. page: {
  18563. type: "integer"
  18564. },
  18565. per_page: {
  18566. type: "integer"
  18567. },
  18568. repo: {
  18569. required: true,
  18570. type: "string"
  18571. },
  18572. sort: {
  18573. enum: ["newest", "oldest", "stargazers"],
  18574. type: "string"
  18575. }
  18576. },
  18577. url: "/repos/:owner/:repo/forks"
  18578. },
  18579. listHooks: {
  18580. method: "GET",
  18581. params: {
  18582. owner: {
  18583. required: true,
  18584. type: "string"
  18585. },
  18586. page: {
  18587. type: "integer"
  18588. },
  18589. per_page: {
  18590. type: "integer"
  18591. },
  18592. repo: {
  18593. required: true,
  18594. type: "string"
  18595. }
  18596. },
  18597. url: "/repos/:owner/:repo/hooks"
  18598. },
  18599. listInvitations: {
  18600. method: "GET",
  18601. params: {
  18602. owner: {
  18603. required: true,
  18604. type: "string"
  18605. },
  18606. page: {
  18607. type: "integer"
  18608. },
  18609. per_page: {
  18610. type: "integer"
  18611. },
  18612. repo: {
  18613. required: true,
  18614. type: "string"
  18615. }
  18616. },
  18617. url: "/repos/:owner/:repo/invitations"
  18618. },
  18619. listInvitationsForAuthenticatedUser: {
  18620. method: "GET",
  18621. params: {
  18622. page: {
  18623. type: "integer"
  18624. },
  18625. per_page: {
  18626. type: "integer"
  18627. }
  18628. },
  18629. url: "/user/repository_invitations"
  18630. },
  18631. listLanguages: {
  18632. method: "GET",
  18633. params: {
  18634. owner: {
  18635. required: true,
  18636. type: "string"
  18637. },
  18638. repo: {
  18639. required: true,
  18640. type: "string"
  18641. }
  18642. },
  18643. url: "/repos/:owner/:repo/languages"
  18644. },
  18645. listPagesBuilds: {
  18646. method: "GET",
  18647. params: {
  18648. owner: {
  18649. required: true,
  18650. type: "string"
  18651. },
  18652. page: {
  18653. type: "integer"
  18654. },
  18655. per_page: {
  18656. type: "integer"
  18657. },
  18658. repo: {
  18659. required: true,
  18660. type: "string"
  18661. }
  18662. },
  18663. url: "/repos/:owner/:repo/pages/builds"
  18664. },
  18665. listProtectedBranchRequiredStatusChecksContexts: {
  18666. method: "GET",
  18667. params: {
  18668. branch: {
  18669. required: true,
  18670. type: "string"
  18671. },
  18672. owner: {
  18673. required: true,
  18674. type: "string"
  18675. },
  18676. repo: {
  18677. required: true,
  18678. type: "string"
  18679. }
  18680. },
  18681. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  18682. },
  18683. listProtectedBranchTeamRestrictions: {
  18684. deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",
  18685. method: "GET",
  18686. params: {
  18687. branch: {
  18688. required: true,
  18689. type: "string"
  18690. },
  18691. owner: {
  18692. required: true,
  18693. type: "string"
  18694. },
  18695. repo: {
  18696. required: true,
  18697. type: "string"
  18698. }
  18699. },
  18700. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  18701. },
  18702. listProtectedBranchUserRestrictions: {
  18703. deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",
  18704. method: "GET",
  18705. params: {
  18706. branch: {
  18707. required: true,
  18708. type: "string"
  18709. },
  18710. owner: {
  18711. required: true,
  18712. type: "string"
  18713. },
  18714. repo: {
  18715. required: true,
  18716. type: "string"
  18717. }
  18718. },
  18719. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  18720. },
  18721. listPublic: {
  18722. method: "GET",
  18723. params: {
  18724. page: {
  18725. type: "integer"
  18726. },
  18727. per_page: {
  18728. type: "integer"
  18729. },
  18730. since: {
  18731. type: "integer"
  18732. }
  18733. },
  18734. url: "/repositories"
  18735. },
  18736. listPullRequestsAssociatedWithCommit: {
  18737. headers: {
  18738. accept: "application/vnd.github.groot-preview+json"
  18739. },
  18740. method: "GET",
  18741. params: {
  18742. commit_sha: {
  18743. required: true,
  18744. type: "string"
  18745. },
  18746. owner: {
  18747. required: true,
  18748. type: "string"
  18749. },
  18750. page: {
  18751. type: "integer"
  18752. },
  18753. per_page: {
  18754. type: "integer"
  18755. },
  18756. repo: {
  18757. required: true,
  18758. type: "string"
  18759. }
  18760. },
  18761. url: "/repos/:owner/:repo/commits/:commit_sha/pulls"
  18762. },
  18763. listReleases: {
  18764. method: "GET",
  18765. params: {
  18766. owner: {
  18767. required: true,
  18768. type: "string"
  18769. },
  18770. page: {
  18771. type: "integer"
  18772. },
  18773. per_page: {
  18774. type: "integer"
  18775. },
  18776. repo: {
  18777. required: true,
  18778. type: "string"
  18779. }
  18780. },
  18781. url: "/repos/:owner/:repo/releases"
  18782. },
  18783. listStatusesForRef: {
  18784. method: "GET",
  18785. params: {
  18786. owner: {
  18787. required: true,
  18788. type: "string"
  18789. },
  18790. page: {
  18791. type: "integer"
  18792. },
  18793. per_page: {
  18794. type: "integer"
  18795. },
  18796. ref: {
  18797. required: true,
  18798. type: "string"
  18799. },
  18800. repo: {
  18801. required: true,
  18802. type: "string"
  18803. }
  18804. },
  18805. url: "/repos/:owner/:repo/commits/:ref/statuses"
  18806. },
  18807. listTags: {
  18808. method: "GET",
  18809. params: {
  18810. owner: {
  18811. required: true,
  18812. type: "string"
  18813. },
  18814. page: {
  18815. type: "integer"
  18816. },
  18817. per_page: {
  18818. type: "integer"
  18819. },
  18820. repo: {
  18821. required: true,
  18822. type: "string"
  18823. }
  18824. },
  18825. url: "/repos/:owner/:repo/tags"
  18826. },
  18827. listTeams: {
  18828. method: "GET",
  18829. params: {
  18830. owner: {
  18831. required: true,
  18832. type: "string"
  18833. },
  18834. page: {
  18835. type: "integer"
  18836. },
  18837. per_page: {
  18838. type: "integer"
  18839. },
  18840. repo: {
  18841. required: true,
  18842. type: "string"
  18843. }
  18844. },
  18845. url: "/repos/:owner/:repo/teams"
  18846. },
  18847. listTeamsWithAccessToProtectedBranch: {
  18848. deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",
  18849. method: "GET",
  18850. params: {
  18851. branch: {
  18852. required: true,
  18853. type: "string"
  18854. },
  18855. owner: {
  18856. required: true,
  18857. type: "string"
  18858. },
  18859. repo: {
  18860. required: true,
  18861. type: "string"
  18862. }
  18863. },
  18864. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  18865. },
  18866. listTopics: {
  18867. headers: {
  18868. accept: "application/vnd.github.mercy-preview+json"
  18869. },
  18870. method: "GET",
  18871. params: {
  18872. owner: {
  18873. required: true,
  18874. type: "string"
  18875. },
  18876. repo: {
  18877. required: true,
  18878. type: "string"
  18879. }
  18880. },
  18881. url: "/repos/:owner/:repo/topics"
  18882. },
  18883. listUsersWithAccessToProtectedBranch: {
  18884. deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",
  18885. method: "GET",
  18886. params: {
  18887. branch: {
  18888. required: true,
  18889. type: "string"
  18890. },
  18891. owner: {
  18892. required: true,
  18893. type: "string"
  18894. },
  18895. repo: {
  18896. required: true,
  18897. type: "string"
  18898. }
  18899. },
  18900. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  18901. },
  18902. merge: {
  18903. method: "POST",
  18904. params: {
  18905. base: {
  18906. required: true,
  18907. type: "string"
  18908. },
  18909. commit_message: {
  18910. type: "string"
  18911. },
  18912. head: {
  18913. required: true,
  18914. type: "string"
  18915. },
  18916. owner: {
  18917. required: true,
  18918. type: "string"
  18919. },
  18920. repo: {
  18921. required: true,
  18922. type: "string"
  18923. }
  18924. },
  18925. url: "/repos/:owner/:repo/merges"
  18926. },
  18927. pingHook: {
  18928. method: "POST",
  18929. params: {
  18930. hook_id: {
  18931. required: true,
  18932. type: "integer"
  18933. },
  18934. owner: {
  18935. required: true,
  18936. type: "string"
  18937. },
  18938. repo: {
  18939. required: true,
  18940. type: "string"
  18941. }
  18942. },
  18943. url: "/repos/:owner/:repo/hooks/:hook_id/pings"
  18944. },
  18945. removeBranchProtection: {
  18946. method: "DELETE",
  18947. params: {
  18948. branch: {
  18949. required: true,
  18950. type: "string"
  18951. },
  18952. owner: {
  18953. required: true,
  18954. type: "string"
  18955. },
  18956. repo: {
  18957. required: true,
  18958. type: "string"
  18959. }
  18960. },
  18961. url: "/repos/:owner/:repo/branches/:branch/protection"
  18962. },
  18963. removeCollaborator: {
  18964. method: "DELETE",
  18965. params: {
  18966. owner: {
  18967. required: true,
  18968. type: "string"
  18969. },
  18970. repo: {
  18971. required: true,
  18972. type: "string"
  18973. },
  18974. username: {
  18975. required: true,
  18976. type: "string"
  18977. }
  18978. },
  18979. url: "/repos/:owner/:repo/collaborators/:username"
  18980. },
  18981. removeDeployKey: {
  18982. method: "DELETE",
  18983. params: {
  18984. key_id: {
  18985. required: true,
  18986. type: "integer"
  18987. },
  18988. owner: {
  18989. required: true,
  18990. type: "string"
  18991. },
  18992. repo: {
  18993. required: true,
  18994. type: "string"
  18995. }
  18996. },
  18997. url: "/repos/:owner/:repo/keys/:key_id"
  18998. },
  18999. removeProtectedBranchAdminEnforcement: {
  19000. method: "DELETE",
  19001. params: {
  19002. branch: {
  19003. required: true,
  19004. type: "string"
  19005. },
  19006. owner: {
  19007. required: true,
  19008. type: "string"
  19009. },
  19010. repo: {
  19011. required: true,
  19012. type: "string"
  19013. }
  19014. },
  19015. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  19016. },
  19017. removeProtectedBranchAppRestrictions: {
  19018. method: "DELETE",
  19019. params: {
  19020. apps: {
  19021. mapTo: "data",
  19022. required: true,
  19023. type: "string[]"
  19024. },
  19025. branch: {
  19026. required: true,
  19027. type: "string"
  19028. },
  19029. owner: {
  19030. required: true,
  19031. type: "string"
  19032. },
  19033. repo: {
  19034. required: true,
  19035. type: "string"
  19036. }
  19037. },
  19038. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  19039. },
  19040. removeProtectedBranchPullRequestReviewEnforcement: {
  19041. method: "DELETE",
  19042. params: {
  19043. branch: {
  19044. required: true,
  19045. type: "string"
  19046. },
  19047. owner: {
  19048. required: true,
  19049. type: "string"
  19050. },
  19051. repo: {
  19052. required: true,
  19053. type: "string"
  19054. }
  19055. },
  19056. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  19057. },
  19058. removeProtectedBranchRequiredSignatures: {
  19059. headers: {
  19060. accept: "application/vnd.github.zzzax-preview+json"
  19061. },
  19062. method: "DELETE",
  19063. params: {
  19064. branch: {
  19065. required: true,
  19066. type: "string"
  19067. },
  19068. owner: {
  19069. required: true,
  19070. type: "string"
  19071. },
  19072. repo: {
  19073. required: true,
  19074. type: "string"
  19075. }
  19076. },
  19077. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  19078. },
  19079. removeProtectedBranchRequiredStatusChecks: {
  19080. method: "DELETE",
  19081. params: {
  19082. branch: {
  19083. required: true,
  19084. type: "string"
  19085. },
  19086. owner: {
  19087. required: true,
  19088. type: "string"
  19089. },
  19090. repo: {
  19091. required: true,
  19092. type: "string"
  19093. }
  19094. },
  19095. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  19096. },
  19097. removeProtectedBranchRequiredStatusChecksContexts: {
  19098. method: "DELETE",
  19099. params: {
  19100. branch: {
  19101. required: true,
  19102. type: "string"
  19103. },
  19104. contexts: {
  19105. mapTo: "data",
  19106. required: true,
  19107. type: "string[]"
  19108. },
  19109. owner: {
  19110. required: true,
  19111. type: "string"
  19112. },
  19113. repo: {
  19114. required: true,
  19115. type: "string"
  19116. }
  19117. },
  19118. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  19119. },
  19120. removeProtectedBranchRestrictions: {
  19121. method: "DELETE",
  19122. params: {
  19123. branch: {
  19124. required: true,
  19125. type: "string"
  19126. },
  19127. owner: {
  19128. required: true,
  19129. type: "string"
  19130. },
  19131. repo: {
  19132. required: true,
  19133. type: "string"
  19134. }
  19135. },
  19136. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
  19137. },
  19138. removeProtectedBranchTeamRestrictions: {
  19139. method: "DELETE",
  19140. params: {
  19141. branch: {
  19142. required: true,
  19143. type: "string"
  19144. },
  19145. owner: {
  19146. required: true,
  19147. type: "string"
  19148. },
  19149. repo: {
  19150. required: true,
  19151. type: "string"
  19152. },
  19153. teams: {
  19154. mapTo: "data",
  19155. required: true,
  19156. type: "string[]"
  19157. }
  19158. },
  19159. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  19160. },
  19161. removeProtectedBranchUserRestrictions: {
  19162. method: "DELETE",
  19163. params: {
  19164. branch: {
  19165. required: true,
  19166. type: "string"
  19167. },
  19168. owner: {
  19169. required: true,
  19170. type: "string"
  19171. },
  19172. repo: {
  19173. required: true,
  19174. type: "string"
  19175. },
  19176. users: {
  19177. mapTo: "data",
  19178. required: true,
  19179. type: "string[]"
  19180. }
  19181. },
  19182. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  19183. },
  19184. replaceProtectedBranchAppRestrictions: {
  19185. method: "PUT",
  19186. params: {
  19187. apps: {
  19188. mapTo: "data",
  19189. required: true,
  19190. type: "string[]"
  19191. },
  19192. branch: {
  19193. required: true,
  19194. type: "string"
  19195. },
  19196. owner: {
  19197. required: true,
  19198. type: "string"
  19199. },
  19200. repo: {
  19201. required: true,
  19202. type: "string"
  19203. }
  19204. },
  19205. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  19206. },
  19207. replaceProtectedBranchRequiredStatusChecksContexts: {
  19208. method: "PUT",
  19209. params: {
  19210. branch: {
  19211. required: true,
  19212. type: "string"
  19213. },
  19214. contexts: {
  19215. mapTo: "data",
  19216. required: true,
  19217. type: "string[]"
  19218. },
  19219. owner: {
  19220. required: true,
  19221. type: "string"
  19222. },
  19223. repo: {
  19224. required: true,
  19225. type: "string"
  19226. }
  19227. },
  19228. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  19229. },
  19230. replaceProtectedBranchTeamRestrictions: {
  19231. method: "PUT",
  19232. params: {
  19233. branch: {
  19234. required: true,
  19235. type: "string"
  19236. },
  19237. owner: {
  19238. required: true,
  19239. type: "string"
  19240. },
  19241. repo: {
  19242. required: true,
  19243. type: "string"
  19244. },
  19245. teams: {
  19246. mapTo: "data",
  19247. required: true,
  19248. type: "string[]"
  19249. }
  19250. },
  19251. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  19252. },
  19253. replaceProtectedBranchUserRestrictions: {
  19254. method: "PUT",
  19255. params: {
  19256. branch: {
  19257. required: true,
  19258. type: "string"
  19259. },
  19260. owner: {
  19261. required: true,
  19262. type: "string"
  19263. },
  19264. repo: {
  19265. required: true,
  19266. type: "string"
  19267. },
  19268. users: {
  19269. mapTo: "data",
  19270. required: true,
  19271. type: "string[]"
  19272. }
  19273. },
  19274. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  19275. },
  19276. replaceTopics: {
  19277. headers: {
  19278. accept: "application/vnd.github.mercy-preview+json"
  19279. },
  19280. method: "PUT",
  19281. params: {
  19282. names: {
  19283. required: true,
  19284. type: "string[]"
  19285. },
  19286. owner: {
  19287. required: true,
  19288. type: "string"
  19289. },
  19290. repo: {
  19291. required: true,
  19292. type: "string"
  19293. }
  19294. },
  19295. url: "/repos/:owner/:repo/topics"
  19296. },
  19297. requestPageBuild: {
  19298. method: "POST",
  19299. params: {
  19300. owner: {
  19301. required: true,
  19302. type: "string"
  19303. },
  19304. repo: {
  19305. required: true,
  19306. type: "string"
  19307. }
  19308. },
  19309. url: "/repos/:owner/:repo/pages/builds"
  19310. },
  19311. retrieveCommunityProfileMetrics: {
  19312. method: "GET",
  19313. params: {
  19314. owner: {
  19315. required: true,
  19316. type: "string"
  19317. },
  19318. repo: {
  19319. required: true,
  19320. type: "string"
  19321. }
  19322. },
  19323. url: "/repos/:owner/:repo/community/profile"
  19324. },
  19325. testPushHook: {
  19326. method: "POST",
  19327. params: {
  19328. hook_id: {
  19329. required: true,
  19330. type: "integer"
  19331. },
  19332. owner: {
  19333. required: true,
  19334. type: "string"
  19335. },
  19336. repo: {
  19337. required: true,
  19338. type: "string"
  19339. }
  19340. },
  19341. url: "/repos/:owner/:repo/hooks/:hook_id/tests"
  19342. },
  19343. transfer: {
  19344. method: "POST",
  19345. params: {
  19346. new_owner: {
  19347. type: "string"
  19348. },
  19349. owner: {
  19350. required: true,
  19351. type: "string"
  19352. },
  19353. repo: {
  19354. required: true,
  19355. type: "string"
  19356. },
  19357. team_ids: {
  19358. type: "integer[]"
  19359. }
  19360. },
  19361. url: "/repos/:owner/:repo/transfer"
  19362. },
  19363. update: {
  19364. method: "PATCH",
  19365. params: {
  19366. allow_merge_commit: {
  19367. type: "boolean"
  19368. },
  19369. allow_rebase_merge: {
  19370. type: "boolean"
  19371. },
  19372. allow_squash_merge: {
  19373. type: "boolean"
  19374. },
  19375. archived: {
  19376. type: "boolean"
  19377. },
  19378. default_branch: {
  19379. type: "string"
  19380. },
  19381. delete_branch_on_merge: {
  19382. type: "boolean"
  19383. },
  19384. description: {
  19385. type: "string"
  19386. },
  19387. has_issues: {
  19388. type: "boolean"
  19389. },
  19390. has_projects: {
  19391. type: "boolean"
  19392. },
  19393. has_wiki: {
  19394. type: "boolean"
  19395. },
  19396. homepage: {
  19397. type: "string"
  19398. },
  19399. is_template: {
  19400. type: "boolean"
  19401. },
  19402. name: {
  19403. type: "string"
  19404. },
  19405. owner: {
  19406. required: true,
  19407. type: "string"
  19408. },
  19409. private: {
  19410. type: "boolean"
  19411. },
  19412. repo: {
  19413. required: true,
  19414. type: "string"
  19415. },
  19416. visibility: {
  19417. enum: ["public", "private", "visibility", "internal"],
  19418. type: "string"
  19419. }
  19420. },
  19421. url: "/repos/:owner/:repo"
  19422. },
  19423. updateBranchProtection: {
  19424. method: "PUT",
  19425. params: {
  19426. allow_deletions: {
  19427. type: "boolean"
  19428. },
  19429. allow_force_pushes: {
  19430. allowNull: true,
  19431. type: "boolean"
  19432. },
  19433. branch: {
  19434. required: true,
  19435. type: "string"
  19436. },
  19437. enforce_admins: {
  19438. allowNull: true,
  19439. required: true,
  19440. type: "boolean"
  19441. },
  19442. owner: {
  19443. required: true,
  19444. type: "string"
  19445. },
  19446. repo: {
  19447. required: true,
  19448. type: "string"
  19449. },
  19450. required_linear_history: {
  19451. type: "boolean"
  19452. },
  19453. required_pull_request_reviews: {
  19454. allowNull: true,
  19455. required: true,
  19456. type: "object"
  19457. },
  19458. "required_pull_request_reviews.dismiss_stale_reviews": {
  19459. type: "boolean"
  19460. },
  19461. "required_pull_request_reviews.dismissal_restrictions": {
  19462. type: "object"
  19463. },
  19464. "required_pull_request_reviews.dismissal_restrictions.teams": {
  19465. type: "string[]"
  19466. },
  19467. "required_pull_request_reviews.dismissal_restrictions.users": {
  19468. type: "string[]"
  19469. },
  19470. "required_pull_request_reviews.require_code_owner_reviews": {
  19471. type: "boolean"
  19472. },
  19473. "required_pull_request_reviews.required_approving_review_count": {
  19474. type: "integer"
  19475. },
  19476. required_status_checks: {
  19477. allowNull: true,
  19478. required: true,
  19479. type: "object"
  19480. },
  19481. "required_status_checks.contexts": {
  19482. required: true,
  19483. type: "string[]"
  19484. },
  19485. "required_status_checks.strict": {
  19486. required: true,
  19487. type: "boolean"
  19488. },
  19489. restrictions: {
  19490. allowNull: true,
  19491. required: true,
  19492. type: "object"
  19493. },
  19494. "restrictions.apps": {
  19495. type: "string[]"
  19496. },
  19497. "restrictions.teams": {
  19498. required: true,
  19499. type: "string[]"
  19500. },
  19501. "restrictions.users": {
  19502. required: true,
  19503. type: "string[]"
  19504. }
  19505. },
  19506. url: "/repos/:owner/:repo/branches/:branch/protection"
  19507. },
  19508. updateCommitComment: {
  19509. method: "PATCH",
  19510. params: {
  19511. body: {
  19512. required: true,
  19513. type: "string"
  19514. },
  19515. comment_id: {
  19516. required: true,
  19517. type: "integer"
  19518. },
  19519. owner: {
  19520. required: true,
  19521. type: "string"
  19522. },
  19523. repo: {
  19524. required: true,
  19525. type: "string"
  19526. }
  19527. },
  19528. url: "/repos/:owner/:repo/comments/:comment_id"
  19529. },
  19530. updateFile: {
  19531. deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
  19532. method: "PUT",
  19533. params: {
  19534. author: {
  19535. type: "object"
  19536. },
  19537. "author.email": {
  19538. required: true,
  19539. type: "string"
  19540. },
  19541. "author.name": {
  19542. required: true,
  19543. type: "string"
  19544. },
  19545. branch: {
  19546. type: "string"
  19547. },
  19548. committer: {
  19549. type: "object"
  19550. },
  19551. "committer.email": {
  19552. required: true,
  19553. type: "string"
  19554. },
  19555. "committer.name": {
  19556. required: true,
  19557. type: "string"
  19558. },
  19559. content: {
  19560. required: true,
  19561. type: "string"
  19562. },
  19563. message: {
  19564. required: true,
  19565. type: "string"
  19566. },
  19567. owner: {
  19568. required: true,
  19569. type: "string"
  19570. },
  19571. path: {
  19572. required: true,
  19573. type: "string"
  19574. },
  19575. repo: {
  19576. required: true,
  19577. type: "string"
  19578. },
  19579. sha: {
  19580. type: "string"
  19581. }
  19582. },
  19583. url: "/repos/:owner/:repo/contents/:path"
  19584. },
  19585. updateHook: {
  19586. method: "PATCH",
  19587. params: {
  19588. active: {
  19589. type: "boolean"
  19590. },
  19591. add_events: {
  19592. type: "string[]"
  19593. },
  19594. config: {
  19595. type: "object"
  19596. },
  19597. "config.content_type": {
  19598. type: "string"
  19599. },
  19600. "config.insecure_ssl": {
  19601. type: "string"
  19602. },
  19603. "config.secret": {
  19604. type: "string"
  19605. },
  19606. "config.url": {
  19607. required: true,
  19608. type: "string"
  19609. },
  19610. events: {
  19611. type: "string[]"
  19612. },
  19613. hook_id: {
  19614. required: true,
  19615. type: "integer"
  19616. },
  19617. owner: {
  19618. required: true,
  19619. type: "string"
  19620. },
  19621. remove_events: {
  19622. type: "string[]"
  19623. },
  19624. repo: {
  19625. required: true,
  19626. type: "string"
  19627. }
  19628. },
  19629. url: "/repos/:owner/:repo/hooks/:hook_id"
  19630. },
  19631. updateInformationAboutPagesSite: {
  19632. method: "PUT",
  19633. params: {
  19634. cname: {
  19635. type: "string"
  19636. },
  19637. owner: {
  19638. required: true,
  19639. type: "string"
  19640. },
  19641. repo: {
  19642. required: true,
  19643. type: "string"
  19644. },
  19645. source: {
  19646. enum: ['"gh-pages"', '"master"', '"master /docs"'],
  19647. type: "string"
  19648. }
  19649. },
  19650. url: "/repos/:owner/:repo/pages"
  19651. },
  19652. updateInvitation: {
  19653. method: "PATCH",
  19654. params: {
  19655. invitation_id: {
  19656. required: true,
  19657. type: "integer"
  19658. },
  19659. owner: {
  19660. required: true,
  19661. type: "string"
  19662. },
  19663. permissions: {
  19664. enum: ["read", "write", "admin"],
  19665. type: "string"
  19666. },
  19667. repo: {
  19668. required: true,
  19669. type: "string"
  19670. }
  19671. },
  19672. url: "/repos/:owner/:repo/invitations/:invitation_id"
  19673. },
  19674. updateProtectedBranchPullRequestReviewEnforcement: {
  19675. method: "PATCH",
  19676. params: {
  19677. branch: {
  19678. required: true,
  19679. type: "string"
  19680. },
  19681. dismiss_stale_reviews: {
  19682. type: "boolean"
  19683. },
  19684. dismissal_restrictions: {
  19685. type: "object"
  19686. },
  19687. "dismissal_restrictions.teams": {
  19688. type: "string[]"
  19689. },
  19690. "dismissal_restrictions.users": {
  19691. type: "string[]"
  19692. },
  19693. owner: {
  19694. required: true,
  19695. type: "string"
  19696. },
  19697. repo: {
  19698. required: true,
  19699. type: "string"
  19700. },
  19701. require_code_owner_reviews: {
  19702. type: "boolean"
  19703. },
  19704. required_approving_review_count: {
  19705. type: "integer"
  19706. }
  19707. },
  19708. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  19709. },
  19710. updateProtectedBranchRequiredStatusChecks: {
  19711. method: "PATCH",
  19712. params: {
  19713. branch: {
  19714. required: true,
  19715. type: "string"
  19716. },
  19717. contexts: {
  19718. type: "string[]"
  19719. },
  19720. owner: {
  19721. required: true,
  19722. type: "string"
  19723. },
  19724. repo: {
  19725. required: true,
  19726. type: "string"
  19727. },
  19728. strict: {
  19729. type: "boolean"
  19730. }
  19731. },
  19732. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  19733. },
  19734. updateRelease: {
  19735. method: "PATCH",
  19736. params: {
  19737. body: {
  19738. type: "string"
  19739. },
  19740. draft: {
  19741. type: "boolean"
  19742. },
  19743. name: {
  19744. type: "string"
  19745. },
  19746. owner: {
  19747. required: true,
  19748. type: "string"
  19749. },
  19750. prerelease: {
  19751. type: "boolean"
  19752. },
  19753. release_id: {
  19754. required: true,
  19755. type: "integer"
  19756. },
  19757. repo: {
  19758. required: true,
  19759. type: "string"
  19760. },
  19761. tag_name: {
  19762. type: "string"
  19763. },
  19764. target_commitish: {
  19765. type: "string"
  19766. }
  19767. },
  19768. url: "/repos/:owner/:repo/releases/:release_id"
  19769. },
  19770. updateReleaseAsset: {
  19771. method: "PATCH",
  19772. params: {
  19773. asset_id: {
  19774. required: true,
  19775. type: "integer"
  19776. },
  19777. label: {
  19778. type: "string"
  19779. },
  19780. name: {
  19781. type: "string"
  19782. },
  19783. owner: {
  19784. required: true,
  19785. type: "string"
  19786. },
  19787. repo: {
  19788. required: true,
  19789. type: "string"
  19790. }
  19791. },
  19792. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  19793. },
  19794. uploadReleaseAsset: {
  19795. method: "POST",
  19796. params: {
  19797. data: {
  19798. mapTo: "data",
  19799. required: true,
  19800. type: "string | object"
  19801. },
  19802. file: {
  19803. alias: "data",
  19804. deprecated: true,
  19805. type: "string | object"
  19806. },
  19807. headers: {
  19808. required: true,
  19809. type: "object"
  19810. },
  19811. "headers.content-length": {
  19812. required: true,
  19813. type: "integer"
  19814. },
  19815. "headers.content-type": {
  19816. required: true,
  19817. type: "string"
  19818. },
  19819. label: {
  19820. type: "string"
  19821. },
  19822. name: {
  19823. required: true,
  19824. type: "string"
  19825. },
  19826. url: {
  19827. required: true,
  19828. type: "string"
  19829. }
  19830. },
  19831. url: ":url"
  19832. }
  19833. },
  19834. search: {
  19835. code: {
  19836. method: "GET",
  19837. params: {
  19838. order: {
  19839. enum: ["desc", "asc"],
  19840. type: "string"
  19841. },
  19842. page: {
  19843. type: "integer"
  19844. },
  19845. per_page: {
  19846. type: "integer"
  19847. },
  19848. q: {
  19849. required: true,
  19850. type: "string"
  19851. },
  19852. sort: {
  19853. enum: ["indexed"],
  19854. type: "string"
  19855. }
  19856. },
  19857. url: "/search/code"
  19858. },
  19859. commits: {
  19860. headers: {
  19861. accept: "application/vnd.github.cloak-preview+json"
  19862. },
  19863. method: "GET",
  19864. params: {
  19865. order: {
  19866. enum: ["desc", "asc"],
  19867. type: "string"
  19868. },
  19869. page: {
  19870. type: "integer"
  19871. },
  19872. per_page: {
  19873. type: "integer"
  19874. },
  19875. q: {
  19876. required: true,
  19877. type: "string"
  19878. },
  19879. sort: {
  19880. enum: ["author-date", "committer-date"],
  19881. type: "string"
  19882. }
  19883. },
  19884. url: "/search/commits"
  19885. },
  19886. issues: {
  19887. deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",
  19888. method: "GET",
  19889. params: {
  19890. order: {
  19891. enum: ["desc", "asc"],
  19892. type: "string"
  19893. },
  19894. page: {
  19895. type: "integer"
  19896. },
  19897. per_page: {
  19898. type: "integer"
  19899. },
  19900. q: {
  19901. required: true,
  19902. type: "string"
  19903. },
  19904. sort: {
  19905. enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
  19906. type: "string"
  19907. }
  19908. },
  19909. url: "/search/issues"
  19910. },
  19911. issuesAndPullRequests: {
  19912. method: "GET",
  19913. params: {
  19914. order: {
  19915. enum: ["desc", "asc"],
  19916. type: "string"
  19917. },
  19918. page: {
  19919. type: "integer"
  19920. },
  19921. per_page: {
  19922. type: "integer"
  19923. },
  19924. q: {
  19925. required: true,
  19926. type: "string"
  19927. },
  19928. sort: {
  19929. enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
  19930. type: "string"
  19931. }
  19932. },
  19933. url: "/search/issues"
  19934. },
  19935. labels: {
  19936. method: "GET",
  19937. params: {
  19938. order: {
  19939. enum: ["desc", "asc"],
  19940. type: "string"
  19941. },
  19942. q: {
  19943. required: true,
  19944. type: "string"
  19945. },
  19946. repository_id: {
  19947. required: true,
  19948. type: "integer"
  19949. },
  19950. sort: {
  19951. enum: ["created", "updated"],
  19952. type: "string"
  19953. }
  19954. },
  19955. url: "/search/labels"
  19956. },
  19957. repos: {
  19958. method: "GET",
  19959. params: {
  19960. order: {
  19961. enum: ["desc", "asc"],
  19962. type: "string"
  19963. },
  19964. page: {
  19965. type: "integer"
  19966. },
  19967. per_page: {
  19968. type: "integer"
  19969. },
  19970. q: {
  19971. required: true,
  19972. type: "string"
  19973. },
  19974. sort: {
  19975. enum: ["stars", "forks", "help-wanted-issues", "updated"],
  19976. type: "string"
  19977. }
  19978. },
  19979. url: "/search/repositories"
  19980. },
  19981. topics: {
  19982. method: "GET",
  19983. params: {
  19984. q: {
  19985. required: true,
  19986. type: "string"
  19987. }
  19988. },
  19989. url: "/search/topics"
  19990. },
  19991. users: {
  19992. method: "GET",
  19993. params: {
  19994. order: {
  19995. enum: ["desc", "asc"],
  19996. type: "string"
  19997. },
  19998. page: {
  19999. type: "integer"
  20000. },
  20001. per_page: {
  20002. type: "integer"
  20003. },
  20004. q: {
  20005. required: true,
  20006. type: "string"
  20007. },
  20008. sort: {
  20009. enum: ["followers", "repositories", "joined"],
  20010. type: "string"
  20011. }
  20012. },
  20013. url: "/search/users"
  20014. }
  20015. },
  20016. teams: {
  20017. addMember: {
  20018. deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",
  20019. method: "PUT",
  20020. params: {
  20021. team_id: {
  20022. required: true,
  20023. type: "integer"
  20024. },
  20025. username: {
  20026. required: true,
  20027. type: "string"
  20028. }
  20029. },
  20030. url: "/teams/:team_id/members/:username"
  20031. },
  20032. addMemberLegacy: {
  20033. deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",
  20034. method: "PUT",
  20035. params: {
  20036. team_id: {
  20037. required: true,
  20038. type: "integer"
  20039. },
  20040. username: {
  20041. required: true,
  20042. type: "string"
  20043. }
  20044. },
  20045. url: "/teams/:team_id/members/:username"
  20046. },
  20047. addOrUpdateMembership: {
  20048. deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",
  20049. method: "PUT",
  20050. params: {
  20051. role: {
  20052. enum: ["member", "maintainer"],
  20053. type: "string"
  20054. },
  20055. team_id: {
  20056. required: true,
  20057. type: "integer"
  20058. },
  20059. username: {
  20060. required: true,
  20061. type: "string"
  20062. }
  20063. },
  20064. url: "/teams/:team_id/memberships/:username"
  20065. },
  20066. addOrUpdateMembershipInOrg: {
  20067. method: "PUT",
  20068. params: {
  20069. org: {
  20070. required: true,
  20071. type: "string"
  20072. },
  20073. role: {
  20074. enum: ["member", "maintainer"],
  20075. type: "string"
  20076. },
  20077. team_slug: {
  20078. required: true,
  20079. type: "string"
  20080. },
  20081. username: {
  20082. required: true,
  20083. type: "string"
  20084. }
  20085. },
  20086. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  20087. },
  20088. addOrUpdateMembershipLegacy: {
  20089. deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",
  20090. method: "PUT",
  20091. params: {
  20092. role: {
  20093. enum: ["member", "maintainer"],
  20094. type: "string"
  20095. },
  20096. team_id: {
  20097. required: true,
  20098. type: "integer"
  20099. },
  20100. username: {
  20101. required: true,
  20102. type: "string"
  20103. }
  20104. },
  20105. url: "/teams/:team_id/memberships/:username"
  20106. },
  20107. addOrUpdateProject: {
  20108. deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",
  20109. headers: {
  20110. accept: "application/vnd.github.inertia-preview+json"
  20111. },
  20112. method: "PUT",
  20113. params: {
  20114. permission: {
  20115. enum: ["read", "write", "admin"],
  20116. type: "string"
  20117. },
  20118. project_id: {
  20119. required: true,
  20120. type: "integer"
  20121. },
  20122. team_id: {
  20123. required: true,
  20124. type: "integer"
  20125. }
  20126. },
  20127. url: "/teams/:team_id/projects/:project_id"
  20128. },
  20129. addOrUpdateProjectInOrg: {
  20130. headers: {
  20131. accept: "application/vnd.github.inertia-preview+json"
  20132. },
  20133. method: "PUT",
  20134. params: {
  20135. org: {
  20136. required: true,
  20137. type: "string"
  20138. },
  20139. permission: {
  20140. enum: ["read", "write", "admin"],
  20141. type: "string"
  20142. },
  20143. project_id: {
  20144. required: true,
  20145. type: "integer"
  20146. },
  20147. team_slug: {
  20148. required: true,
  20149. type: "string"
  20150. }
  20151. },
  20152. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  20153. },
  20154. addOrUpdateProjectLegacy: {
  20155. deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",
  20156. headers: {
  20157. accept: "application/vnd.github.inertia-preview+json"
  20158. },
  20159. method: "PUT",
  20160. params: {
  20161. permission: {
  20162. enum: ["read", "write", "admin"],
  20163. type: "string"
  20164. },
  20165. project_id: {
  20166. required: true,
  20167. type: "integer"
  20168. },
  20169. team_id: {
  20170. required: true,
  20171. type: "integer"
  20172. }
  20173. },
  20174. url: "/teams/:team_id/projects/:project_id"
  20175. },
  20176. addOrUpdateRepo: {
  20177. deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",
  20178. method: "PUT",
  20179. params: {
  20180. owner: {
  20181. required: true,
  20182. type: "string"
  20183. },
  20184. permission: {
  20185. enum: ["pull", "push", "admin"],
  20186. type: "string"
  20187. },
  20188. repo: {
  20189. required: true,
  20190. type: "string"
  20191. },
  20192. team_id: {
  20193. required: true,
  20194. type: "integer"
  20195. }
  20196. },
  20197. url: "/teams/:team_id/repos/:owner/:repo"
  20198. },
  20199. addOrUpdateRepoInOrg: {
  20200. method: "PUT",
  20201. params: {
  20202. org: {
  20203. required: true,
  20204. type: "string"
  20205. },
  20206. owner: {
  20207. required: true,
  20208. type: "string"
  20209. },
  20210. permission: {
  20211. enum: ["pull", "push", "admin"],
  20212. type: "string"
  20213. },
  20214. repo: {
  20215. required: true,
  20216. type: "string"
  20217. },
  20218. team_slug: {
  20219. required: true,
  20220. type: "string"
  20221. }
  20222. },
  20223. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  20224. },
  20225. addOrUpdateRepoLegacy: {
  20226. deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",
  20227. method: "PUT",
  20228. params: {
  20229. owner: {
  20230. required: true,
  20231. type: "string"
  20232. },
  20233. permission: {
  20234. enum: ["pull", "push", "admin"],
  20235. type: "string"
  20236. },
  20237. repo: {
  20238. required: true,
  20239. type: "string"
  20240. },
  20241. team_id: {
  20242. required: true,
  20243. type: "integer"
  20244. }
  20245. },
  20246. url: "/teams/:team_id/repos/:owner/:repo"
  20247. },
  20248. checkManagesRepo: {
  20249. deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",
  20250. method: "GET",
  20251. params: {
  20252. owner: {
  20253. required: true,
  20254. type: "string"
  20255. },
  20256. repo: {
  20257. required: true,
  20258. type: "string"
  20259. },
  20260. team_id: {
  20261. required: true,
  20262. type: "integer"
  20263. }
  20264. },
  20265. url: "/teams/:team_id/repos/:owner/:repo"
  20266. },
  20267. checkManagesRepoInOrg: {
  20268. method: "GET",
  20269. params: {
  20270. org: {
  20271. required: true,
  20272. type: "string"
  20273. },
  20274. owner: {
  20275. required: true,
  20276. type: "string"
  20277. },
  20278. repo: {
  20279. required: true,
  20280. type: "string"
  20281. },
  20282. team_slug: {
  20283. required: true,
  20284. type: "string"
  20285. }
  20286. },
  20287. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  20288. },
  20289. checkManagesRepoLegacy: {
  20290. deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",
  20291. method: "GET",
  20292. params: {
  20293. owner: {
  20294. required: true,
  20295. type: "string"
  20296. },
  20297. repo: {
  20298. required: true,
  20299. type: "string"
  20300. },
  20301. team_id: {
  20302. required: true,
  20303. type: "integer"
  20304. }
  20305. },
  20306. url: "/teams/:team_id/repos/:owner/:repo"
  20307. },
  20308. create: {
  20309. method: "POST",
  20310. params: {
  20311. description: {
  20312. type: "string"
  20313. },
  20314. maintainers: {
  20315. type: "string[]"
  20316. },
  20317. name: {
  20318. required: true,
  20319. type: "string"
  20320. },
  20321. org: {
  20322. required: true,
  20323. type: "string"
  20324. },
  20325. parent_team_id: {
  20326. type: "integer"
  20327. },
  20328. permission: {
  20329. enum: ["pull", "push", "admin"],
  20330. type: "string"
  20331. },
  20332. privacy: {
  20333. enum: ["secret", "closed"],
  20334. type: "string"
  20335. },
  20336. repo_names: {
  20337. type: "string[]"
  20338. }
  20339. },
  20340. url: "/orgs/:org/teams"
  20341. },
  20342. createDiscussion: {
  20343. deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",
  20344. method: "POST",
  20345. params: {
  20346. body: {
  20347. required: true,
  20348. type: "string"
  20349. },
  20350. private: {
  20351. type: "boolean"
  20352. },
  20353. team_id: {
  20354. required: true,
  20355. type: "integer"
  20356. },
  20357. title: {
  20358. required: true,
  20359. type: "string"
  20360. }
  20361. },
  20362. url: "/teams/:team_id/discussions"
  20363. },
  20364. createDiscussionComment: {
  20365. deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",
  20366. method: "POST",
  20367. params: {
  20368. body: {
  20369. required: true,
  20370. type: "string"
  20371. },
  20372. discussion_number: {
  20373. required: true,
  20374. type: "integer"
  20375. },
  20376. team_id: {
  20377. required: true,
  20378. type: "integer"
  20379. }
  20380. },
  20381. url: "/teams/:team_id/discussions/:discussion_number/comments"
  20382. },
  20383. createDiscussionCommentInOrg: {
  20384. method: "POST",
  20385. params: {
  20386. body: {
  20387. required: true,
  20388. type: "string"
  20389. },
  20390. discussion_number: {
  20391. required: true,
  20392. type: "integer"
  20393. },
  20394. org: {
  20395. required: true,
  20396. type: "string"
  20397. },
  20398. team_slug: {
  20399. required: true,
  20400. type: "string"
  20401. }
  20402. },
  20403. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
  20404. },
  20405. createDiscussionCommentLegacy: {
  20406. deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",
  20407. method: "POST",
  20408. params: {
  20409. body: {
  20410. required: true,
  20411. type: "string"
  20412. },
  20413. discussion_number: {
  20414. required: true,
  20415. type: "integer"
  20416. },
  20417. team_id: {
  20418. required: true,
  20419. type: "integer"
  20420. }
  20421. },
  20422. url: "/teams/:team_id/discussions/:discussion_number/comments"
  20423. },
  20424. createDiscussionInOrg: {
  20425. method: "POST",
  20426. params: {
  20427. body: {
  20428. required: true,
  20429. type: "string"
  20430. },
  20431. org: {
  20432. required: true,
  20433. type: "string"
  20434. },
  20435. private: {
  20436. type: "boolean"
  20437. },
  20438. team_slug: {
  20439. required: true,
  20440. type: "string"
  20441. },
  20442. title: {
  20443. required: true,
  20444. type: "string"
  20445. }
  20446. },
  20447. url: "/orgs/:org/teams/:team_slug/discussions"
  20448. },
  20449. createDiscussionLegacy: {
  20450. deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",
  20451. method: "POST",
  20452. params: {
  20453. body: {
  20454. required: true,
  20455. type: "string"
  20456. },
  20457. private: {
  20458. type: "boolean"
  20459. },
  20460. team_id: {
  20461. required: true,
  20462. type: "integer"
  20463. },
  20464. title: {
  20465. required: true,
  20466. type: "string"
  20467. }
  20468. },
  20469. url: "/teams/:team_id/discussions"
  20470. },
  20471. delete: {
  20472. deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",
  20473. method: "DELETE",
  20474. params: {
  20475. team_id: {
  20476. required: true,
  20477. type: "integer"
  20478. }
  20479. },
  20480. url: "/teams/:team_id"
  20481. },
  20482. deleteDiscussion: {
  20483. deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",
  20484. method: "DELETE",
  20485. params: {
  20486. discussion_number: {
  20487. required: true,
  20488. type: "integer"
  20489. },
  20490. team_id: {
  20491. required: true,
  20492. type: "integer"
  20493. }
  20494. },
  20495. url: "/teams/:team_id/discussions/:discussion_number"
  20496. },
  20497. deleteDiscussionComment: {
  20498. deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",
  20499. method: "DELETE",
  20500. params: {
  20501. comment_number: {
  20502. required: true,
  20503. type: "integer"
  20504. },
  20505. discussion_number: {
  20506. required: true,
  20507. type: "integer"
  20508. },
  20509. team_id: {
  20510. required: true,
  20511. type: "integer"
  20512. }
  20513. },
  20514. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  20515. },
  20516. deleteDiscussionCommentInOrg: {
  20517. method: "DELETE",
  20518. params: {
  20519. comment_number: {
  20520. required: true,
  20521. type: "integer"
  20522. },
  20523. discussion_number: {
  20524. required: true,
  20525. type: "integer"
  20526. },
  20527. org: {
  20528. required: true,
  20529. type: "string"
  20530. },
  20531. team_slug: {
  20532. required: true,
  20533. type: "string"
  20534. }
  20535. },
  20536. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  20537. },
  20538. deleteDiscussionCommentLegacy: {
  20539. deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",
  20540. method: "DELETE",
  20541. params: {
  20542. comment_number: {
  20543. required: true,
  20544. type: "integer"
  20545. },
  20546. discussion_number: {
  20547. required: true,
  20548. type: "integer"
  20549. },
  20550. team_id: {
  20551. required: true,
  20552. type: "integer"
  20553. }
  20554. },
  20555. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  20556. },
  20557. deleteDiscussionInOrg: {
  20558. method: "DELETE",
  20559. params: {
  20560. discussion_number: {
  20561. required: true,
  20562. type: "integer"
  20563. },
  20564. org: {
  20565. required: true,
  20566. type: "string"
  20567. },
  20568. team_slug: {
  20569. required: true,
  20570. type: "string"
  20571. }
  20572. },
  20573. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  20574. },
  20575. deleteDiscussionLegacy: {
  20576. deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",
  20577. method: "DELETE",
  20578. params: {
  20579. discussion_number: {
  20580. required: true,
  20581. type: "integer"
  20582. },
  20583. team_id: {
  20584. required: true,
  20585. type: "integer"
  20586. }
  20587. },
  20588. url: "/teams/:team_id/discussions/:discussion_number"
  20589. },
  20590. deleteInOrg: {
  20591. method: "DELETE",
  20592. params: {
  20593. org: {
  20594. required: true,
  20595. type: "string"
  20596. },
  20597. team_slug: {
  20598. required: true,
  20599. type: "string"
  20600. }
  20601. },
  20602. url: "/orgs/:org/teams/:team_slug"
  20603. },
  20604. deleteLegacy: {
  20605. deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",
  20606. method: "DELETE",
  20607. params: {
  20608. team_id: {
  20609. required: true,
  20610. type: "integer"
  20611. }
  20612. },
  20613. url: "/teams/:team_id"
  20614. },
  20615. get: {
  20616. deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",
  20617. method: "GET",
  20618. params: {
  20619. team_id: {
  20620. required: true,
  20621. type: "integer"
  20622. }
  20623. },
  20624. url: "/teams/:team_id"
  20625. },
  20626. getByName: {
  20627. method: "GET",
  20628. params: {
  20629. org: {
  20630. required: true,
  20631. type: "string"
  20632. },
  20633. team_slug: {
  20634. required: true,
  20635. type: "string"
  20636. }
  20637. },
  20638. url: "/orgs/:org/teams/:team_slug"
  20639. },
  20640. getDiscussion: {
  20641. deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",
  20642. method: "GET",
  20643. params: {
  20644. discussion_number: {
  20645. required: true,
  20646. type: "integer"
  20647. },
  20648. team_id: {
  20649. required: true,
  20650. type: "integer"
  20651. }
  20652. },
  20653. url: "/teams/:team_id/discussions/:discussion_number"
  20654. },
  20655. getDiscussionComment: {
  20656. deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",
  20657. method: "GET",
  20658. params: {
  20659. comment_number: {
  20660. required: true,
  20661. type: "integer"
  20662. },
  20663. discussion_number: {
  20664. required: true,
  20665. type: "integer"
  20666. },
  20667. team_id: {
  20668. required: true,
  20669. type: "integer"
  20670. }
  20671. },
  20672. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  20673. },
  20674. getDiscussionCommentInOrg: {
  20675. method: "GET",
  20676. params: {
  20677. comment_number: {
  20678. required: true,
  20679. type: "integer"
  20680. },
  20681. discussion_number: {
  20682. required: true,
  20683. type: "integer"
  20684. },
  20685. org: {
  20686. required: true,
  20687. type: "string"
  20688. },
  20689. team_slug: {
  20690. required: true,
  20691. type: "string"
  20692. }
  20693. },
  20694. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  20695. },
  20696. getDiscussionCommentLegacy: {
  20697. deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",
  20698. method: "GET",
  20699. params: {
  20700. comment_number: {
  20701. required: true,
  20702. type: "integer"
  20703. },
  20704. discussion_number: {
  20705. required: true,
  20706. type: "integer"
  20707. },
  20708. team_id: {
  20709. required: true,
  20710. type: "integer"
  20711. }
  20712. },
  20713. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  20714. },
  20715. getDiscussionInOrg: {
  20716. method: "GET",
  20717. params: {
  20718. discussion_number: {
  20719. required: true,
  20720. type: "integer"
  20721. },
  20722. org: {
  20723. required: true,
  20724. type: "string"
  20725. },
  20726. team_slug: {
  20727. required: true,
  20728. type: "string"
  20729. }
  20730. },
  20731. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  20732. },
  20733. getDiscussionLegacy: {
  20734. deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",
  20735. method: "GET",
  20736. params: {
  20737. discussion_number: {
  20738. required: true,
  20739. type: "integer"
  20740. },
  20741. team_id: {
  20742. required: true,
  20743. type: "integer"
  20744. }
  20745. },
  20746. url: "/teams/:team_id/discussions/:discussion_number"
  20747. },
  20748. getLegacy: {
  20749. deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",
  20750. method: "GET",
  20751. params: {
  20752. team_id: {
  20753. required: true,
  20754. type: "integer"
  20755. }
  20756. },
  20757. url: "/teams/:team_id"
  20758. },
  20759. getMember: {
  20760. deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",
  20761. method: "GET",
  20762. params: {
  20763. team_id: {
  20764. required: true,
  20765. type: "integer"
  20766. },
  20767. username: {
  20768. required: true,
  20769. type: "string"
  20770. }
  20771. },
  20772. url: "/teams/:team_id/members/:username"
  20773. },
  20774. getMemberLegacy: {
  20775. deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",
  20776. method: "GET",
  20777. params: {
  20778. team_id: {
  20779. required: true,
  20780. type: "integer"
  20781. },
  20782. username: {
  20783. required: true,
  20784. type: "string"
  20785. }
  20786. },
  20787. url: "/teams/:team_id/members/:username"
  20788. },
  20789. getMembership: {
  20790. deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",
  20791. method: "GET",
  20792. params: {
  20793. team_id: {
  20794. required: true,
  20795. type: "integer"
  20796. },
  20797. username: {
  20798. required: true,
  20799. type: "string"
  20800. }
  20801. },
  20802. url: "/teams/:team_id/memberships/:username"
  20803. },
  20804. getMembershipInOrg: {
  20805. method: "GET",
  20806. params: {
  20807. org: {
  20808. required: true,
  20809. type: "string"
  20810. },
  20811. team_slug: {
  20812. required: true,
  20813. type: "string"
  20814. },
  20815. username: {
  20816. required: true,
  20817. type: "string"
  20818. }
  20819. },
  20820. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  20821. },
  20822. getMembershipLegacy: {
  20823. deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",
  20824. method: "GET",
  20825. params: {
  20826. team_id: {
  20827. required: true,
  20828. type: "integer"
  20829. },
  20830. username: {
  20831. required: true,
  20832. type: "string"
  20833. }
  20834. },
  20835. url: "/teams/:team_id/memberships/:username"
  20836. },
  20837. list: {
  20838. method: "GET",
  20839. params: {
  20840. org: {
  20841. required: true,
  20842. type: "string"
  20843. },
  20844. page: {
  20845. type: "integer"
  20846. },
  20847. per_page: {
  20848. type: "integer"
  20849. }
  20850. },
  20851. url: "/orgs/:org/teams"
  20852. },
  20853. listChild: {
  20854. deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",
  20855. method: "GET",
  20856. params: {
  20857. page: {
  20858. type: "integer"
  20859. },
  20860. per_page: {
  20861. type: "integer"
  20862. },
  20863. team_id: {
  20864. required: true,
  20865. type: "integer"
  20866. }
  20867. },
  20868. url: "/teams/:team_id/teams"
  20869. },
  20870. listChildInOrg: {
  20871. method: "GET",
  20872. params: {
  20873. org: {
  20874. required: true,
  20875. type: "string"
  20876. },
  20877. page: {
  20878. type: "integer"
  20879. },
  20880. per_page: {
  20881. type: "integer"
  20882. },
  20883. team_slug: {
  20884. required: true,
  20885. type: "string"
  20886. }
  20887. },
  20888. url: "/orgs/:org/teams/:team_slug/teams"
  20889. },
  20890. listChildLegacy: {
  20891. deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",
  20892. method: "GET",
  20893. params: {
  20894. page: {
  20895. type: "integer"
  20896. },
  20897. per_page: {
  20898. type: "integer"
  20899. },
  20900. team_id: {
  20901. required: true,
  20902. type: "integer"
  20903. }
  20904. },
  20905. url: "/teams/:team_id/teams"
  20906. },
  20907. listDiscussionComments: {
  20908. deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",
  20909. method: "GET",
  20910. params: {
  20911. direction: {
  20912. enum: ["asc", "desc"],
  20913. type: "string"
  20914. },
  20915. discussion_number: {
  20916. required: true,
  20917. type: "integer"
  20918. },
  20919. page: {
  20920. type: "integer"
  20921. },
  20922. per_page: {
  20923. type: "integer"
  20924. },
  20925. team_id: {
  20926. required: true,
  20927. type: "integer"
  20928. }
  20929. },
  20930. url: "/teams/:team_id/discussions/:discussion_number/comments"
  20931. },
  20932. listDiscussionCommentsInOrg: {
  20933. method: "GET",
  20934. params: {
  20935. direction: {
  20936. enum: ["asc", "desc"],
  20937. type: "string"
  20938. },
  20939. discussion_number: {
  20940. required: true,
  20941. type: "integer"
  20942. },
  20943. org: {
  20944. required: true,
  20945. type: "string"
  20946. },
  20947. page: {
  20948. type: "integer"
  20949. },
  20950. per_page: {
  20951. type: "integer"
  20952. },
  20953. team_slug: {
  20954. required: true,
  20955. type: "string"
  20956. }
  20957. },
  20958. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
  20959. },
  20960. listDiscussionCommentsLegacy: {
  20961. deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",
  20962. method: "GET",
  20963. params: {
  20964. direction: {
  20965. enum: ["asc", "desc"],
  20966. type: "string"
  20967. },
  20968. discussion_number: {
  20969. required: true,
  20970. type: "integer"
  20971. },
  20972. page: {
  20973. type: "integer"
  20974. },
  20975. per_page: {
  20976. type: "integer"
  20977. },
  20978. team_id: {
  20979. required: true,
  20980. type: "integer"
  20981. }
  20982. },
  20983. url: "/teams/:team_id/discussions/:discussion_number/comments"
  20984. },
  20985. listDiscussions: {
  20986. deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",
  20987. method: "GET",
  20988. params: {
  20989. direction: {
  20990. enum: ["asc", "desc"],
  20991. type: "string"
  20992. },
  20993. page: {
  20994. type: "integer"
  20995. },
  20996. per_page: {
  20997. type: "integer"
  20998. },
  20999. team_id: {
  21000. required: true,
  21001. type: "integer"
  21002. }
  21003. },
  21004. url: "/teams/:team_id/discussions"
  21005. },
  21006. listDiscussionsInOrg: {
  21007. method: "GET",
  21008. params: {
  21009. direction: {
  21010. enum: ["asc", "desc"],
  21011. type: "string"
  21012. },
  21013. org: {
  21014. required: true,
  21015. type: "string"
  21016. },
  21017. page: {
  21018. type: "integer"
  21019. },
  21020. per_page: {
  21021. type: "integer"
  21022. },
  21023. team_slug: {
  21024. required: true,
  21025. type: "string"
  21026. }
  21027. },
  21028. url: "/orgs/:org/teams/:team_slug/discussions"
  21029. },
  21030. listDiscussionsLegacy: {
  21031. deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",
  21032. method: "GET",
  21033. params: {
  21034. direction: {
  21035. enum: ["asc", "desc"],
  21036. type: "string"
  21037. },
  21038. page: {
  21039. type: "integer"
  21040. },
  21041. per_page: {
  21042. type: "integer"
  21043. },
  21044. team_id: {
  21045. required: true,
  21046. type: "integer"
  21047. }
  21048. },
  21049. url: "/teams/:team_id/discussions"
  21050. },
  21051. listForAuthenticatedUser: {
  21052. method: "GET",
  21053. params: {
  21054. page: {
  21055. type: "integer"
  21056. },
  21057. per_page: {
  21058. type: "integer"
  21059. }
  21060. },
  21061. url: "/user/teams"
  21062. },
  21063. listMembers: {
  21064. deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",
  21065. method: "GET",
  21066. params: {
  21067. page: {
  21068. type: "integer"
  21069. },
  21070. per_page: {
  21071. type: "integer"
  21072. },
  21073. role: {
  21074. enum: ["member", "maintainer", "all"],
  21075. type: "string"
  21076. },
  21077. team_id: {
  21078. required: true,
  21079. type: "integer"
  21080. }
  21081. },
  21082. url: "/teams/:team_id/members"
  21083. },
  21084. listMembersInOrg: {
  21085. method: "GET",
  21086. params: {
  21087. org: {
  21088. required: true,
  21089. type: "string"
  21090. },
  21091. page: {
  21092. type: "integer"
  21093. },
  21094. per_page: {
  21095. type: "integer"
  21096. },
  21097. role: {
  21098. enum: ["member", "maintainer", "all"],
  21099. type: "string"
  21100. },
  21101. team_slug: {
  21102. required: true,
  21103. type: "string"
  21104. }
  21105. },
  21106. url: "/orgs/:org/teams/:team_slug/members"
  21107. },
  21108. listMembersLegacy: {
  21109. deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",
  21110. method: "GET",
  21111. params: {
  21112. page: {
  21113. type: "integer"
  21114. },
  21115. per_page: {
  21116. type: "integer"
  21117. },
  21118. role: {
  21119. enum: ["member", "maintainer", "all"],
  21120. type: "string"
  21121. },
  21122. team_id: {
  21123. required: true,
  21124. type: "integer"
  21125. }
  21126. },
  21127. url: "/teams/:team_id/members"
  21128. },
  21129. listPendingInvitations: {
  21130. deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",
  21131. method: "GET",
  21132. params: {
  21133. page: {
  21134. type: "integer"
  21135. },
  21136. per_page: {
  21137. type: "integer"
  21138. },
  21139. team_id: {
  21140. required: true,
  21141. type: "integer"
  21142. }
  21143. },
  21144. url: "/teams/:team_id/invitations"
  21145. },
  21146. listPendingInvitationsInOrg: {
  21147. method: "GET",
  21148. params: {
  21149. org: {
  21150. required: true,
  21151. type: "string"
  21152. },
  21153. page: {
  21154. type: "integer"
  21155. },
  21156. per_page: {
  21157. type: "integer"
  21158. },
  21159. team_slug: {
  21160. required: true,
  21161. type: "string"
  21162. }
  21163. },
  21164. url: "/orgs/:org/teams/:team_slug/invitations"
  21165. },
  21166. listPendingInvitationsLegacy: {
  21167. deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",
  21168. method: "GET",
  21169. params: {
  21170. page: {
  21171. type: "integer"
  21172. },
  21173. per_page: {
  21174. type: "integer"
  21175. },
  21176. team_id: {
  21177. required: true,
  21178. type: "integer"
  21179. }
  21180. },
  21181. url: "/teams/:team_id/invitations"
  21182. },
  21183. listProjects: {
  21184. deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",
  21185. headers: {
  21186. accept: "application/vnd.github.inertia-preview+json"
  21187. },
  21188. method: "GET",
  21189. params: {
  21190. page: {
  21191. type: "integer"
  21192. },
  21193. per_page: {
  21194. type: "integer"
  21195. },
  21196. team_id: {
  21197. required: true,
  21198. type: "integer"
  21199. }
  21200. },
  21201. url: "/teams/:team_id/projects"
  21202. },
  21203. listProjectsInOrg: {
  21204. headers: {
  21205. accept: "application/vnd.github.inertia-preview+json"
  21206. },
  21207. method: "GET",
  21208. params: {
  21209. org: {
  21210. required: true,
  21211. type: "string"
  21212. },
  21213. page: {
  21214. type: "integer"
  21215. },
  21216. per_page: {
  21217. type: "integer"
  21218. },
  21219. team_slug: {
  21220. required: true,
  21221. type: "string"
  21222. }
  21223. },
  21224. url: "/orgs/:org/teams/:team_slug/projects"
  21225. },
  21226. listProjectsLegacy: {
  21227. deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",
  21228. headers: {
  21229. accept: "application/vnd.github.inertia-preview+json"
  21230. },
  21231. method: "GET",
  21232. params: {
  21233. page: {
  21234. type: "integer"
  21235. },
  21236. per_page: {
  21237. type: "integer"
  21238. },
  21239. team_id: {
  21240. required: true,
  21241. type: "integer"
  21242. }
  21243. },
  21244. url: "/teams/:team_id/projects"
  21245. },
  21246. listRepos: {
  21247. deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",
  21248. method: "GET",
  21249. params: {
  21250. page: {
  21251. type: "integer"
  21252. },
  21253. per_page: {
  21254. type: "integer"
  21255. },
  21256. team_id: {
  21257. required: true,
  21258. type: "integer"
  21259. }
  21260. },
  21261. url: "/teams/:team_id/repos"
  21262. },
  21263. listReposInOrg: {
  21264. method: "GET",
  21265. params: {
  21266. org: {
  21267. required: true,
  21268. type: "string"
  21269. },
  21270. page: {
  21271. type: "integer"
  21272. },
  21273. per_page: {
  21274. type: "integer"
  21275. },
  21276. team_slug: {
  21277. required: true,
  21278. type: "string"
  21279. }
  21280. },
  21281. url: "/orgs/:org/teams/:team_slug/repos"
  21282. },
  21283. listReposLegacy: {
  21284. deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",
  21285. method: "GET",
  21286. params: {
  21287. page: {
  21288. type: "integer"
  21289. },
  21290. per_page: {
  21291. type: "integer"
  21292. },
  21293. team_id: {
  21294. required: true,
  21295. type: "integer"
  21296. }
  21297. },
  21298. url: "/teams/:team_id/repos"
  21299. },
  21300. removeMember: {
  21301. deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)",
  21302. method: "DELETE",
  21303. params: {
  21304. team_id: {
  21305. required: true,
  21306. type: "integer"
  21307. },
  21308. username: {
  21309. required: true,
  21310. type: "string"
  21311. }
  21312. },
  21313. url: "/teams/:team_id/members/:username"
  21314. },
  21315. removeMemberLegacy: {
  21316. deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",
  21317. method: "DELETE",
  21318. params: {
  21319. team_id: {
  21320. required: true,
  21321. type: "integer"
  21322. },
  21323. username: {
  21324. required: true,
  21325. type: "string"
  21326. }
  21327. },
  21328. url: "/teams/:team_id/members/:username"
  21329. },
  21330. removeMembership: {
  21331. deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)",
  21332. method: "DELETE",
  21333. params: {
  21334. team_id: {
  21335. required: true,
  21336. type: "integer"
  21337. },
  21338. username: {
  21339. required: true,
  21340. type: "string"
  21341. }
  21342. },
  21343. url: "/teams/:team_id/memberships/:username"
  21344. },
  21345. removeMembershipInOrg: {
  21346. method: "DELETE",
  21347. params: {
  21348. org: {
  21349. required: true,
  21350. type: "string"
  21351. },
  21352. team_slug: {
  21353. required: true,
  21354. type: "string"
  21355. },
  21356. username: {
  21357. required: true,
  21358. type: "string"
  21359. }
  21360. },
  21361. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  21362. },
  21363. removeMembershipLegacy: {
  21364. deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",
  21365. method: "DELETE",
  21366. params: {
  21367. team_id: {
  21368. required: true,
  21369. type: "integer"
  21370. },
  21371. username: {
  21372. required: true,
  21373. type: "string"
  21374. }
  21375. },
  21376. url: "/teams/:team_id/memberships/:username"
  21377. },
  21378. removeProject: {
  21379. deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",
  21380. method: "DELETE",
  21381. params: {
  21382. project_id: {
  21383. required: true,
  21384. type: "integer"
  21385. },
  21386. team_id: {
  21387. required: true,
  21388. type: "integer"
  21389. }
  21390. },
  21391. url: "/teams/:team_id/projects/:project_id"
  21392. },
  21393. removeProjectInOrg: {
  21394. method: "DELETE",
  21395. params: {
  21396. org: {
  21397. required: true,
  21398. type: "string"
  21399. },
  21400. project_id: {
  21401. required: true,
  21402. type: "integer"
  21403. },
  21404. team_slug: {
  21405. required: true,
  21406. type: "string"
  21407. }
  21408. },
  21409. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  21410. },
  21411. removeProjectLegacy: {
  21412. deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",
  21413. method: "DELETE",
  21414. params: {
  21415. project_id: {
  21416. required: true,
  21417. type: "integer"
  21418. },
  21419. team_id: {
  21420. required: true,
  21421. type: "integer"
  21422. }
  21423. },
  21424. url: "/teams/:team_id/projects/:project_id"
  21425. },
  21426. removeRepo: {
  21427. deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",
  21428. method: "DELETE",
  21429. params: {
  21430. owner: {
  21431. required: true,
  21432. type: "string"
  21433. },
  21434. repo: {
  21435. required: true,
  21436. type: "string"
  21437. },
  21438. team_id: {
  21439. required: true,
  21440. type: "integer"
  21441. }
  21442. },
  21443. url: "/teams/:team_id/repos/:owner/:repo"
  21444. },
  21445. removeRepoInOrg: {
  21446. method: "DELETE",
  21447. params: {
  21448. org: {
  21449. required: true,
  21450. type: "string"
  21451. },
  21452. owner: {
  21453. required: true,
  21454. type: "string"
  21455. },
  21456. repo: {
  21457. required: true,
  21458. type: "string"
  21459. },
  21460. team_slug: {
  21461. required: true,
  21462. type: "string"
  21463. }
  21464. },
  21465. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  21466. },
  21467. removeRepoLegacy: {
  21468. deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",
  21469. method: "DELETE",
  21470. params: {
  21471. owner: {
  21472. required: true,
  21473. type: "string"
  21474. },
  21475. repo: {
  21476. required: true,
  21477. type: "string"
  21478. },
  21479. team_id: {
  21480. required: true,
  21481. type: "integer"
  21482. }
  21483. },
  21484. url: "/teams/:team_id/repos/:owner/:repo"
  21485. },
  21486. reviewProject: {
  21487. deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",
  21488. headers: {
  21489. accept: "application/vnd.github.inertia-preview+json"
  21490. },
  21491. method: "GET",
  21492. params: {
  21493. project_id: {
  21494. required: true,
  21495. type: "integer"
  21496. },
  21497. team_id: {
  21498. required: true,
  21499. type: "integer"
  21500. }
  21501. },
  21502. url: "/teams/:team_id/projects/:project_id"
  21503. },
  21504. reviewProjectInOrg: {
  21505. headers: {
  21506. accept: "application/vnd.github.inertia-preview+json"
  21507. },
  21508. method: "GET",
  21509. params: {
  21510. org: {
  21511. required: true,
  21512. type: "string"
  21513. },
  21514. project_id: {
  21515. required: true,
  21516. type: "integer"
  21517. },
  21518. team_slug: {
  21519. required: true,
  21520. type: "string"
  21521. }
  21522. },
  21523. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  21524. },
  21525. reviewProjectLegacy: {
  21526. deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",
  21527. headers: {
  21528. accept: "application/vnd.github.inertia-preview+json"
  21529. },
  21530. method: "GET",
  21531. params: {
  21532. project_id: {
  21533. required: true,
  21534. type: "integer"
  21535. },
  21536. team_id: {
  21537. required: true,
  21538. type: "integer"
  21539. }
  21540. },
  21541. url: "/teams/:team_id/projects/:project_id"
  21542. },
  21543. update: {
  21544. deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",
  21545. method: "PATCH",
  21546. params: {
  21547. description: {
  21548. type: "string"
  21549. },
  21550. name: {
  21551. required: true,
  21552. type: "string"
  21553. },
  21554. parent_team_id: {
  21555. type: "integer"
  21556. },
  21557. permission: {
  21558. enum: ["pull", "push", "admin"],
  21559. type: "string"
  21560. },
  21561. privacy: {
  21562. enum: ["secret", "closed"],
  21563. type: "string"
  21564. },
  21565. team_id: {
  21566. required: true,
  21567. type: "integer"
  21568. }
  21569. },
  21570. url: "/teams/:team_id"
  21571. },
  21572. updateDiscussion: {
  21573. deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",
  21574. method: "PATCH",
  21575. params: {
  21576. body: {
  21577. type: "string"
  21578. },
  21579. discussion_number: {
  21580. required: true,
  21581. type: "integer"
  21582. },
  21583. team_id: {
  21584. required: true,
  21585. type: "integer"
  21586. },
  21587. title: {
  21588. type: "string"
  21589. }
  21590. },
  21591. url: "/teams/:team_id/discussions/:discussion_number"
  21592. },
  21593. updateDiscussionComment: {
  21594. deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",
  21595. method: "PATCH",
  21596. params: {
  21597. body: {
  21598. required: true,
  21599. type: "string"
  21600. },
  21601. comment_number: {
  21602. required: true,
  21603. type: "integer"
  21604. },
  21605. discussion_number: {
  21606. required: true,
  21607. type: "integer"
  21608. },
  21609. team_id: {
  21610. required: true,
  21611. type: "integer"
  21612. }
  21613. },
  21614. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  21615. },
  21616. updateDiscussionCommentInOrg: {
  21617. method: "PATCH",
  21618. params: {
  21619. body: {
  21620. required: true,
  21621. type: "string"
  21622. },
  21623. comment_number: {
  21624. required: true,
  21625. type: "integer"
  21626. },
  21627. discussion_number: {
  21628. required: true,
  21629. type: "integer"
  21630. },
  21631. org: {
  21632. required: true,
  21633. type: "string"
  21634. },
  21635. team_slug: {
  21636. required: true,
  21637. type: "string"
  21638. }
  21639. },
  21640. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  21641. },
  21642. updateDiscussionCommentLegacy: {
  21643. deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",
  21644. method: "PATCH",
  21645. params: {
  21646. body: {
  21647. required: true,
  21648. type: "string"
  21649. },
  21650. comment_number: {
  21651. required: true,
  21652. type: "integer"
  21653. },
  21654. discussion_number: {
  21655. required: true,
  21656. type: "integer"
  21657. },
  21658. team_id: {
  21659. required: true,
  21660. type: "integer"
  21661. }
  21662. },
  21663. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  21664. },
  21665. updateDiscussionInOrg: {
  21666. method: "PATCH",
  21667. params: {
  21668. body: {
  21669. type: "string"
  21670. },
  21671. discussion_number: {
  21672. required: true,
  21673. type: "integer"
  21674. },
  21675. org: {
  21676. required: true,
  21677. type: "string"
  21678. },
  21679. team_slug: {
  21680. required: true,
  21681. type: "string"
  21682. },
  21683. title: {
  21684. type: "string"
  21685. }
  21686. },
  21687. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  21688. },
  21689. updateDiscussionLegacy: {
  21690. deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",
  21691. method: "PATCH",
  21692. params: {
  21693. body: {
  21694. type: "string"
  21695. },
  21696. discussion_number: {
  21697. required: true,
  21698. type: "integer"
  21699. },
  21700. team_id: {
  21701. required: true,
  21702. type: "integer"
  21703. },
  21704. title: {
  21705. type: "string"
  21706. }
  21707. },
  21708. url: "/teams/:team_id/discussions/:discussion_number"
  21709. },
  21710. updateInOrg: {
  21711. method: "PATCH",
  21712. params: {
  21713. description: {
  21714. type: "string"
  21715. },
  21716. name: {
  21717. required: true,
  21718. type: "string"
  21719. },
  21720. org: {
  21721. required: true,
  21722. type: "string"
  21723. },
  21724. parent_team_id: {
  21725. type: "integer"
  21726. },
  21727. permission: {
  21728. enum: ["pull", "push", "admin"],
  21729. type: "string"
  21730. },
  21731. privacy: {
  21732. enum: ["secret", "closed"],
  21733. type: "string"
  21734. },
  21735. team_slug: {
  21736. required: true,
  21737. type: "string"
  21738. }
  21739. },
  21740. url: "/orgs/:org/teams/:team_slug"
  21741. },
  21742. updateLegacy: {
  21743. deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",
  21744. method: "PATCH",
  21745. params: {
  21746. description: {
  21747. type: "string"
  21748. },
  21749. name: {
  21750. required: true,
  21751. type: "string"
  21752. },
  21753. parent_team_id: {
  21754. type: "integer"
  21755. },
  21756. permission: {
  21757. enum: ["pull", "push", "admin"],
  21758. type: "string"
  21759. },
  21760. privacy: {
  21761. enum: ["secret", "closed"],
  21762. type: "string"
  21763. },
  21764. team_id: {
  21765. required: true,
  21766. type: "integer"
  21767. }
  21768. },
  21769. url: "/teams/:team_id"
  21770. }
  21771. },
  21772. users: {
  21773. addEmails: {
  21774. method: "POST",
  21775. params: {
  21776. emails: {
  21777. required: true,
  21778. type: "string[]"
  21779. }
  21780. },
  21781. url: "/user/emails"
  21782. },
  21783. block: {
  21784. method: "PUT",
  21785. params: {
  21786. username: {
  21787. required: true,
  21788. type: "string"
  21789. }
  21790. },
  21791. url: "/user/blocks/:username"
  21792. },
  21793. checkBlocked: {
  21794. method: "GET",
  21795. params: {
  21796. username: {
  21797. required: true,
  21798. type: "string"
  21799. }
  21800. },
  21801. url: "/user/blocks/:username"
  21802. },
  21803. checkFollowing: {
  21804. method: "GET",
  21805. params: {
  21806. username: {
  21807. required: true,
  21808. type: "string"
  21809. }
  21810. },
  21811. url: "/user/following/:username"
  21812. },
  21813. checkFollowingForUser: {
  21814. method: "GET",
  21815. params: {
  21816. target_user: {
  21817. required: true,
  21818. type: "string"
  21819. },
  21820. username: {
  21821. required: true,
  21822. type: "string"
  21823. }
  21824. },
  21825. url: "/users/:username/following/:target_user"
  21826. },
  21827. createGpgKey: {
  21828. method: "POST",
  21829. params: {
  21830. armored_public_key: {
  21831. type: "string"
  21832. }
  21833. },
  21834. url: "/user/gpg_keys"
  21835. },
  21836. createPublicKey: {
  21837. method: "POST",
  21838. params: {
  21839. key: {
  21840. type: "string"
  21841. },
  21842. title: {
  21843. type: "string"
  21844. }
  21845. },
  21846. url: "/user/keys"
  21847. },
  21848. deleteEmails: {
  21849. method: "DELETE",
  21850. params: {
  21851. emails: {
  21852. required: true,
  21853. type: "string[]"
  21854. }
  21855. },
  21856. url: "/user/emails"
  21857. },
  21858. deleteGpgKey: {
  21859. method: "DELETE",
  21860. params: {
  21861. gpg_key_id: {
  21862. required: true,
  21863. type: "integer"
  21864. }
  21865. },
  21866. url: "/user/gpg_keys/:gpg_key_id"
  21867. },
  21868. deletePublicKey: {
  21869. method: "DELETE",
  21870. params: {
  21871. key_id: {
  21872. required: true,
  21873. type: "integer"
  21874. }
  21875. },
  21876. url: "/user/keys/:key_id"
  21877. },
  21878. follow: {
  21879. method: "PUT",
  21880. params: {
  21881. username: {
  21882. required: true,
  21883. type: "string"
  21884. }
  21885. },
  21886. url: "/user/following/:username"
  21887. },
  21888. getAuthenticated: {
  21889. method: "GET",
  21890. params: {},
  21891. url: "/user"
  21892. },
  21893. getByUsername: {
  21894. method: "GET",
  21895. params: {
  21896. username: {
  21897. required: true,
  21898. type: "string"
  21899. }
  21900. },
  21901. url: "/users/:username"
  21902. },
  21903. getContextForUser: {
  21904. method: "GET",
  21905. params: {
  21906. subject_id: {
  21907. type: "string"
  21908. },
  21909. subject_type: {
  21910. enum: ["organization", "repository", "issue", "pull_request"],
  21911. type: "string"
  21912. },
  21913. username: {
  21914. required: true,
  21915. type: "string"
  21916. }
  21917. },
  21918. url: "/users/:username/hovercard"
  21919. },
  21920. getGpgKey: {
  21921. method: "GET",
  21922. params: {
  21923. gpg_key_id: {
  21924. required: true,
  21925. type: "integer"
  21926. }
  21927. },
  21928. url: "/user/gpg_keys/:gpg_key_id"
  21929. },
  21930. getPublicKey: {
  21931. method: "GET",
  21932. params: {
  21933. key_id: {
  21934. required: true,
  21935. type: "integer"
  21936. }
  21937. },
  21938. url: "/user/keys/:key_id"
  21939. },
  21940. list: {
  21941. method: "GET",
  21942. params: {
  21943. page: {
  21944. type: "integer"
  21945. },
  21946. per_page: {
  21947. type: "integer"
  21948. },
  21949. since: {
  21950. type: "string"
  21951. }
  21952. },
  21953. url: "/users"
  21954. },
  21955. listBlocked: {
  21956. method: "GET",
  21957. params: {},
  21958. url: "/user/blocks"
  21959. },
  21960. listEmails: {
  21961. method: "GET",
  21962. params: {
  21963. page: {
  21964. type: "integer"
  21965. },
  21966. per_page: {
  21967. type: "integer"
  21968. }
  21969. },
  21970. url: "/user/emails"
  21971. },
  21972. listFollowersForAuthenticatedUser: {
  21973. method: "GET",
  21974. params: {
  21975. page: {
  21976. type: "integer"
  21977. },
  21978. per_page: {
  21979. type: "integer"
  21980. }
  21981. },
  21982. url: "/user/followers"
  21983. },
  21984. listFollowersForUser: {
  21985. method: "GET",
  21986. params: {
  21987. page: {
  21988. type: "integer"
  21989. },
  21990. per_page: {
  21991. type: "integer"
  21992. },
  21993. username: {
  21994. required: true,
  21995. type: "string"
  21996. }
  21997. },
  21998. url: "/users/:username/followers"
  21999. },
  22000. listFollowingForAuthenticatedUser: {
  22001. method: "GET",
  22002. params: {
  22003. page: {
  22004. type: "integer"
  22005. },
  22006. per_page: {
  22007. type: "integer"
  22008. }
  22009. },
  22010. url: "/user/following"
  22011. },
  22012. listFollowingForUser: {
  22013. method: "GET",
  22014. params: {
  22015. page: {
  22016. type: "integer"
  22017. },
  22018. per_page: {
  22019. type: "integer"
  22020. },
  22021. username: {
  22022. required: true,
  22023. type: "string"
  22024. }
  22025. },
  22026. url: "/users/:username/following"
  22027. },
  22028. listGpgKeys: {
  22029. method: "GET",
  22030. params: {
  22031. page: {
  22032. type: "integer"
  22033. },
  22034. per_page: {
  22035. type: "integer"
  22036. }
  22037. },
  22038. url: "/user/gpg_keys"
  22039. },
  22040. listGpgKeysForUser: {
  22041. method: "GET",
  22042. params: {
  22043. page: {
  22044. type: "integer"
  22045. },
  22046. per_page: {
  22047. type: "integer"
  22048. },
  22049. username: {
  22050. required: true,
  22051. type: "string"
  22052. }
  22053. },
  22054. url: "/users/:username/gpg_keys"
  22055. },
  22056. listPublicEmails: {
  22057. method: "GET",
  22058. params: {
  22059. page: {
  22060. type: "integer"
  22061. },
  22062. per_page: {
  22063. type: "integer"
  22064. }
  22065. },
  22066. url: "/user/public_emails"
  22067. },
  22068. listPublicKeys: {
  22069. method: "GET",
  22070. params: {
  22071. page: {
  22072. type: "integer"
  22073. },
  22074. per_page: {
  22075. type: "integer"
  22076. }
  22077. },
  22078. url: "/user/keys"
  22079. },
  22080. listPublicKeysForUser: {
  22081. method: "GET",
  22082. params: {
  22083. page: {
  22084. type: "integer"
  22085. },
  22086. per_page: {
  22087. type: "integer"
  22088. },
  22089. username: {
  22090. required: true,
  22091. type: "string"
  22092. }
  22093. },
  22094. url: "/users/:username/keys"
  22095. },
  22096. togglePrimaryEmailVisibility: {
  22097. method: "PATCH",
  22098. params: {
  22099. email: {
  22100. required: true,
  22101. type: "string"
  22102. },
  22103. visibility: {
  22104. required: true,
  22105. type: "string"
  22106. }
  22107. },
  22108. url: "/user/email/visibility"
  22109. },
  22110. unblock: {
  22111. method: "DELETE",
  22112. params: {
  22113. username: {
  22114. required: true,
  22115. type: "string"
  22116. }
  22117. },
  22118. url: "/user/blocks/:username"
  22119. },
  22120. unfollow: {
  22121. method: "DELETE",
  22122. params: {
  22123. username: {
  22124. required: true,
  22125. type: "string"
  22126. }
  22127. },
  22128. url: "/user/following/:username"
  22129. },
  22130. updateAuthenticated: {
  22131. method: "PATCH",
  22132. params: {
  22133. bio: {
  22134. type: "string"
  22135. },
  22136. blog: {
  22137. type: "string"
  22138. },
  22139. company: {
  22140. type: "string"
  22141. },
  22142. email: {
  22143. type: "string"
  22144. },
  22145. hireable: {
  22146. type: "boolean"
  22147. },
  22148. location: {
  22149. type: "string"
  22150. },
  22151. name: {
  22152. type: "string"
  22153. }
  22154. },
  22155. url: "/user"
  22156. }
  22157. }
  22158. };
  22159. const VERSION = "2.4.0";
  22160. function registerEndpoints(octokit, routes) {
  22161. Object.keys(routes).forEach(namespaceName => {
  22162. if (!octokit[namespaceName]) {
  22163. octokit[namespaceName] = {};
  22164. }
  22165. Object.keys(routes[namespaceName]).forEach(apiName => {
  22166. const apiOptions = routes[namespaceName][apiName];
  22167. const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => {
  22168. if (typeof apiOptions[key] !== "undefined") {
  22169. map[key] = apiOptions[key];
  22170. }
  22171. return map;
  22172. }, {});
  22173. endpointDefaults.request = {
  22174. validate: apiOptions.params
  22175. };
  22176. let request = octokit.request.defaults(endpointDefaults); // patch request & endpoint methods to support deprecated parameters.
  22177. // Not the most elegant solution, but we don’t want to move deprecation
  22178. // logic into octokit/endpoint.js as it’s out of scope
  22179. const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated);
  22180. if (hasDeprecatedParam) {
  22181. const patch = patchForDeprecation.bind(null, octokit, apiOptions);
  22182. request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`);
  22183. request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`);
  22184. request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`);
  22185. }
  22186. if (apiOptions.deprecated) {
  22187. octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() {
  22188. octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`));
  22189. octokit[namespaceName][apiName] = request;
  22190. return request.apply(null, arguments);
  22191. }, request);
  22192. return;
  22193. }
  22194. octokit[namespaceName][apiName] = request;
  22195. });
  22196. });
  22197. }
  22198. function patchForDeprecation(octokit, apiOptions, method, methodName) {
  22199. const patchedMethod = options => {
  22200. options = Object.assign({}, options);
  22201. Object.keys(options).forEach(key => {
  22202. if (apiOptions.params[key] && apiOptions.params[key].deprecated) {
  22203. const aliasKey = apiOptions.params[key].alias;
  22204. octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`));
  22205. if (!(aliasKey in options)) {
  22206. options[aliasKey] = options[key];
  22207. }
  22208. delete options[key];
  22209. }
  22210. });
  22211. return method(options);
  22212. };
  22213. Object.keys(method).forEach(key => {
  22214. patchedMethod[key] = method[key];
  22215. });
  22216. return patchedMethod;
  22217. }
  22218. /**
  22219. * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary
  22220. * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is
  22221. * done, we will remove the registerEndpoints methods and return the methods
  22222. * directly as with the other plugins. At that point we will also remove the
  22223. * legacy workarounds and deprecations.
  22224. *
  22225. * See the plan at
  22226. * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1
  22227. */
  22228. function restEndpointMethods(octokit) {
  22229. // @ts-ignore
  22230. octokit.registerEndpoints = registerEndpoints.bind(null, octokit);
  22231. registerEndpoints(octokit, endpointsByScope); // Aliasing scopes for backward compatibility
  22232. // See https://github.com/octokit/rest.js/pull/1134
  22233. [["gitdata", "git"], ["authorization", "oauthAuthorizations"], ["pullRequests", "pulls"]].forEach(([deprecatedScope, scope]) => {
  22234. Object.defineProperty(octokit, deprecatedScope, {
  22235. get() {
  22236. octokit.log.warn( // @ts-ignore
  22237. new deprecation.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); // @ts-ignore
  22238. return octokit[scope];
  22239. }
  22240. });
  22241. });
  22242. return {};
  22243. }
  22244. restEndpointMethods.VERSION = VERSION;
  22245. exports.restEndpointMethods = restEndpointMethods;
  22246. //# sourceMappingURL=index.js.map
  22247. /***/ }),
  22248. /***/ 537:
  22249. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  22250. "use strict";
  22251. Object.defineProperty(exports, "__esModule", ({ value: true }));
  22252. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  22253. var deprecation = __nccwpck_require__(8932);
  22254. var once = _interopDefault(__nccwpck_require__(1223));
  22255. const logOnce = once(deprecation => console.warn(deprecation));
  22256. /**
  22257. * Error with extra properties to help with debugging
  22258. */
  22259. class RequestError extends Error {
  22260. constructor(message, statusCode, options) {
  22261. super(message); // Maintains proper stack trace (only available on V8)
  22262. /* istanbul ignore next */
  22263. if (Error.captureStackTrace) {
  22264. Error.captureStackTrace(this, this.constructor);
  22265. }
  22266. this.name = "HttpError";
  22267. this.status = statusCode;
  22268. Object.defineProperty(this, "code", {
  22269. get() {
  22270. logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
  22271. return statusCode;
  22272. }
  22273. });
  22274. this.headers = options.headers || {}; // redact request credentials without mutating original request options
  22275. const requestCopy = Object.assign({}, options.request);
  22276. if (options.request.headers.authorization) {
  22277. requestCopy.headers = Object.assign({}, options.request.headers, {
  22278. authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
  22279. });
  22280. }
  22281. requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
  22282. // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
  22283. .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
  22284. // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
  22285. .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
  22286. this.request = requestCopy;
  22287. }
  22288. }
  22289. exports.RequestError = RequestError;
  22290. //# sourceMappingURL=index.js.map
  22291. /***/ }),
  22292. /***/ 6234:
  22293. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  22294. "use strict";
  22295. Object.defineProperty(exports, "__esModule", ({ value: true }));
  22296. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  22297. var endpoint = __nccwpck_require__(9440);
  22298. var universalUserAgent = __nccwpck_require__(1441);
  22299. var isPlainObject = _interopDefault(__nccwpck_require__(8840));
  22300. var nodeFetch = _interopDefault(__nccwpck_require__(467));
  22301. var requestError = __nccwpck_require__(537);
  22302. const VERSION = "5.4.2";
  22303. function getBufferResponse(response) {
  22304. return response.arrayBuffer();
  22305. }
  22306. function fetchWrapper(requestOptions) {
  22307. if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
  22308. requestOptions.body = JSON.stringify(requestOptions.body);
  22309. }
  22310. let headers = {};
  22311. let status;
  22312. let url;
  22313. const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch;
  22314. return fetch(requestOptions.url, Object.assign({
  22315. method: requestOptions.method,
  22316. body: requestOptions.body,
  22317. headers: requestOptions.headers,
  22318. redirect: requestOptions.redirect
  22319. }, requestOptions.request)).then(response => {
  22320. url = response.url;
  22321. status = response.status;
  22322. for (const keyAndValue of response.headers) {
  22323. headers[keyAndValue[0]] = keyAndValue[1];
  22324. }
  22325. if (status === 204 || status === 205) {
  22326. return;
  22327. } // GitHub API returns 200 for HEAD requests
  22328. if (requestOptions.method === "HEAD") {
  22329. if (status < 400) {
  22330. return;
  22331. }
  22332. throw new requestError.RequestError(response.statusText, status, {
  22333. headers,
  22334. request: requestOptions
  22335. });
  22336. }
  22337. if (status === 304) {
  22338. throw new requestError.RequestError("Not modified", status, {
  22339. headers,
  22340. request: requestOptions
  22341. });
  22342. }
  22343. if (status >= 400) {
  22344. return response.text().then(message => {
  22345. const error = new requestError.RequestError(message, status, {
  22346. headers,
  22347. request: requestOptions
  22348. });
  22349. try {
  22350. let responseBody = JSON.parse(error.message);
  22351. Object.assign(error, responseBody);
  22352. let errors = responseBody.errors; // Assumption `errors` would always be in Array format
  22353. error.message = error.message + ": " + errors.map(JSON.stringify).join(", ");
  22354. } catch (e) {// ignore, see octokit/rest.js#684
  22355. }
  22356. throw error;
  22357. });
  22358. }
  22359. const contentType = response.headers.get("content-type");
  22360. if (/application\/json/.test(contentType)) {
  22361. return response.json();
  22362. }
  22363. if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
  22364. return response.text();
  22365. }
  22366. return getBufferResponse(response);
  22367. }).then(data => {
  22368. return {
  22369. status,
  22370. url,
  22371. headers,
  22372. data
  22373. };
  22374. }).catch(error => {
  22375. if (error instanceof requestError.RequestError) {
  22376. throw error;
  22377. }
  22378. throw new requestError.RequestError(error.message, 500, {
  22379. headers,
  22380. request: requestOptions
  22381. });
  22382. });
  22383. }
  22384. function withDefaults(oldEndpoint, newDefaults) {
  22385. const endpoint = oldEndpoint.defaults(newDefaults);
  22386. const newApi = function (route, parameters) {
  22387. const endpointOptions = endpoint.merge(route, parameters);
  22388. if (!endpointOptions.request || !endpointOptions.request.hook) {
  22389. return fetchWrapper(endpoint.parse(endpointOptions));
  22390. }
  22391. const request = (route, parameters) => {
  22392. return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));
  22393. };
  22394. Object.assign(request, {
  22395. endpoint,
  22396. defaults: withDefaults.bind(null, endpoint)
  22397. });
  22398. return endpointOptions.request.hook(request, endpointOptions);
  22399. };
  22400. return Object.assign(newApi, {
  22401. endpoint,
  22402. defaults: withDefaults.bind(null, endpoint)
  22403. });
  22404. }
  22405. const request = withDefaults(endpoint.endpoint, {
  22406. headers: {
  22407. "user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}`
  22408. }
  22409. });
  22410. exports.request = request;
  22411. //# sourceMappingURL=index.js.map
  22412. /***/ }),
  22413. /***/ 1441:
  22414. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  22415. "use strict";
  22416. Object.defineProperty(exports, "__esModule", ({ value: true }));
  22417. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  22418. var osName = _interopDefault(__nccwpck_require__(4824));
  22419. function getUserAgent() {
  22420. try {
  22421. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  22422. } catch (error) {
  22423. if (/wmic os get Caption/.test(error.message)) {
  22424. return "Windows <version undetectable>";
  22425. }
  22426. return "<environment undetectable>";
  22427. }
  22428. }
  22429. exports.getUserAgent = getUserAgent;
  22430. //# sourceMappingURL=index.js.map
  22431. /***/ }),
  22432. /***/ 9351:
  22433. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22434. const { requestLog } = __nccwpck_require__(8883);
  22435. const {
  22436. restEndpointMethods
  22437. } = __nccwpck_require__(3044);
  22438. const Core = __nccwpck_require__(9833);
  22439. const CORE_PLUGINS = [
  22440. __nccwpck_require__(4555),
  22441. __nccwpck_require__(3691), // deprecated: remove in v17
  22442. requestLog,
  22443. __nccwpck_require__(8579),
  22444. restEndpointMethods,
  22445. __nccwpck_require__(2657),
  22446. __nccwpck_require__(2072) // deprecated: remove in v17
  22447. ];
  22448. const OctokitRest = Core.plugin(CORE_PLUGINS);
  22449. function DeprecatedOctokit(options) {
  22450. const warn =
  22451. options && options.log && options.log.warn
  22452. ? options.log.warn
  22453. : console.warn;
  22454. warn(
  22455. '[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead'
  22456. );
  22457. return new OctokitRest(options);
  22458. }
  22459. const Octokit = Object.assign(DeprecatedOctokit, {
  22460. Octokit: OctokitRest
  22461. });
  22462. Object.keys(OctokitRest).forEach(key => {
  22463. /* istanbul ignore else */
  22464. if (OctokitRest.hasOwnProperty(key)) {
  22465. Octokit[key] = OctokitRest[key];
  22466. }
  22467. });
  22468. module.exports = Octokit;
  22469. /***/ }),
  22470. /***/ 823:
  22471. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22472. module.exports = Octokit;
  22473. const { request } = __nccwpck_require__(6234);
  22474. const Hook = __nccwpck_require__(3682);
  22475. const parseClientOptions = __nccwpck_require__(4613);
  22476. function Octokit(plugins, options) {
  22477. options = options || {};
  22478. const hook = new Hook.Collection();
  22479. const log = Object.assign(
  22480. {
  22481. debug: () => {},
  22482. info: () => {},
  22483. warn: console.warn,
  22484. error: console.error
  22485. },
  22486. options && options.log
  22487. );
  22488. const api = {
  22489. hook,
  22490. log,
  22491. request: request.defaults(parseClientOptions(options, log, hook))
  22492. };
  22493. plugins.forEach(pluginFunction => pluginFunction(api, options));
  22494. return api;
  22495. }
  22496. /***/ }),
  22497. /***/ 9833:
  22498. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22499. const factory = __nccwpck_require__(5320);
  22500. module.exports = factory();
  22501. /***/ }),
  22502. /***/ 5320:
  22503. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22504. module.exports = factory;
  22505. const Octokit = __nccwpck_require__(823);
  22506. const registerPlugin = __nccwpck_require__(7826);
  22507. function factory(plugins) {
  22508. const Api = Octokit.bind(null, plugins || []);
  22509. Api.plugin = registerPlugin.bind(null, plugins || []);
  22510. return Api;
  22511. }
  22512. /***/ }),
  22513. /***/ 4613:
  22514. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22515. module.exports = parseOptions;
  22516. const { Deprecation } = __nccwpck_require__(8932);
  22517. const { getUserAgent } = __nccwpck_require__(5030);
  22518. const once = __nccwpck_require__(1223);
  22519. const pkg = __nccwpck_require__(1322);
  22520. const deprecateOptionsTimeout = once((log, deprecation) =>
  22521. log.warn(deprecation)
  22522. );
  22523. const deprecateOptionsAgent = once((log, deprecation) => log.warn(deprecation));
  22524. const deprecateOptionsHeaders = once((log, deprecation) =>
  22525. log.warn(deprecation)
  22526. );
  22527. function parseOptions(options, log, hook) {
  22528. if (options.headers) {
  22529. options.headers = Object.keys(options.headers).reduce((newObj, key) => {
  22530. newObj[key.toLowerCase()] = options.headers[key];
  22531. return newObj;
  22532. }, {});
  22533. }
  22534. const clientDefaults = {
  22535. headers: options.headers || {},
  22536. request: options.request || {},
  22537. mediaType: {
  22538. previews: [],
  22539. format: ""
  22540. }
  22541. };
  22542. if (options.baseUrl) {
  22543. clientDefaults.baseUrl = options.baseUrl;
  22544. }
  22545. if (options.userAgent) {
  22546. clientDefaults.headers["user-agent"] = options.userAgent;
  22547. }
  22548. if (options.previews) {
  22549. clientDefaults.mediaType.previews = options.previews;
  22550. }
  22551. if (options.timeZone) {
  22552. clientDefaults.headers["time-zone"] = options.timeZone;
  22553. }
  22554. if (options.timeout) {
  22555. deprecateOptionsTimeout(
  22556. log,
  22557. new Deprecation(
  22558. "[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request"
  22559. )
  22560. );
  22561. clientDefaults.request.timeout = options.timeout;
  22562. }
  22563. if (options.agent) {
  22564. deprecateOptionsAgent(
  22565. log,
  22566. new Deprecation(
  22567. "[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request"
  22568. )
  22569. );
  22570. clientDefaults.request.agent = options.agent;
  22571. }
  22572. if (options.headers) {
  22573. deprecateOptionsHeaders(
  22574. log,
  22575. new Deprecation(
  22576. "[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"
  22577. )
  22578. );
  22579. }
  22580. const userAgentOption = clientDefaults.headers["user-agent"];
  22581. const defaultUserAgent = `octokit.js/${pkg.version} ${getUserAgent()}`;
  22582. clientDefaults.headers["user-agent"] = [userAgentOption, defaultUserAgent]
  22583. .filter(Boolean)
  22584. .join(" ");
  22585. clientDefaults.request.hook = hook.bind(null, "request");
  22586. return clientDefaults;
  22587. }
  22588. /***/ }),
  22589. /***/ 7826:
  22590. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22591. module.exports = registerPlugin;
  22592. const factory = __nccwpck_require__(5320);
  22593. function registerPlugin(plugins, pluginFunction) {
  22594. return factory(
  22595. plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction)
  22596. );
  22597. }
  22598. /***/ }),
  22599. /***/ 6239:
  22600. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  22601. "use strict";
  22602. Object.defineProperty(exports, "__esModule", ({ value: true }));
  22603. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  22604. var deprecation = __nccwpck_require__(8932);
  22605. var once = _interopDefault(__nccwpck_require__(1223));
  22606. const logOnce = once(deprecation => console.warn(deprecation));
  22607. /**
  22608. * Error with extra properties to help with debugging
  22609. */
  22610. class RequestError extends Error {
  22611. constructor(message, statusCode, options) {
  22612. super(message); // Maintains proper stack trace (only available on V8)
  22613. /* istanbul ignore next */
  22614. if (Error.captureStackTrace) {
  22615. Error.captureStackTrace(this, this.constructor);
  22616. }
  22617. this.name = "HttpError";
  22618. this.status = statusCode;
  22619. Object.defineProperty(this, "code", {
  22620. get() {
  22621. logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
  22622. return statusCode;
  22623. }
  22624. });
  22625. this.headers = options.headers || {}; // redact request credentials without mutating original request options
  22626. const requestCopy = Object.assign({}, options.request);
  22627. if (options.request.headers.authorization) {
  22628. requestCopy.headers = Object.assign({}, options.request.headers, {
  22629. authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
  22630. });
  22631. }
  22632. requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
  22633. // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
  22634. .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
  22635. // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
  22636. .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
  22637. this.request = requestCopy;
  22638. }
  22639. }
  22640. exports.RequestError = RequestError;
  22641. //# sourceMappingURL=index.js.map
  22642. /***/ }),
  22643. /***/ 795:
  22644. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22645. module.exports = authenticate;
  22646. const { Deprecation } = __nccwpck_require__(8932);
  22647. const once = __nccwpck_require__(1223);
  22648. const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
  22649. function authenticate(state, options) {
  22650. deprecateAuthenticate(
  22651. state.octokit.log,
  22652. new Deprecation(
  22653. '[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'
  22654. )
  22655. );
  22656. if (!options) {
  22657. state.auth = false;
  22658. return;
  22659. }
  22660. switch (options.type) {
  22661. case "basic":
  22662. if (!options.username || !options.password) {
  22663. throw new Error(
  22664. "Basic authentication requires both a username and password to be set"
  22665. );
  22666. }
  22667. break;
  22668. case "oauth":
  22669. if (!options.token && !(options.key && options.secret)) {
  22670. throw new Error(
  22671. "OAuth2 authentication requires a token or key & secret to be set"
  22672. );
  22673. }
  22674. break;
  22675. case "token":
  22676. case "app":
  22677. if (!options.token) {
  22678. throw new Error("Token authentication requires a token to be set");
  22679. }
  22680. break;
  22681. default:
  22682. throw new Error(
  22683. "Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'"
  22684. );
  22685. }
  22686. state.auth = options;
  22687. }
  22688. /***/ }),
  22689. /***/ 7578:
  22690. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22691. module.exports = authenticationBeforeRequest;
  22692. const btoa = __nccwpck_require__(2358);
  22693. const uniq = __nccwpck_require__(8216);
  22694. function authenticationBeforeRequest(state, options) {
  22695. if (!state.auth.type) {
  22696. return;
  22697. }
  22698. if (state.auth.type === "basic") {
  22699. const hash = btoa(`${state.auth.username}:${state.auth.password}`);
  22700. options.headers.authorization = `Basic ${hash}`;
  22701. return;
  22702. }
  22703. if (state.auth.type === "token") {
  22704. options.headers.authorization = `token ${state.auth.token}`;
  22705. return;
  22706. }
  22707. if (state.auth.type === "app") {
  22708. options.headers.authorization = `Bearer ${state.auth.token}`;
  22709. const acceptHeaders = options.headers.accept
  22710. .split(",")
  22711. .concat("application/vnd.github.machine-man-preview+json");
  22712. options.headers.accept = uniq(acceptHeaders)
  22713. .filter(Boolean)
  22714. .join(",");
  22715. return;
  22716. }
  22717. options.url += options.url.indexOf("?") === -1 ? "?" : "&";
  22718. if (state.auth.token) {
  22719. options.url += `access_token=${encodeURIComponent(state.auth.token)}`;
  22720. return;
  22721. }
  22722. const key = encodeURIComponent(state.auth.key);
  22723. const secret = encodeURIComponent(state.auth.secret);
  22724. options.url += `client_id=${key}&client_secret=${secret}`;
  22725. }
  22726. /***/ }),
  22727. /***/ 3691:
  22728. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22729. module.exports = authenticationPlugin;
  22730. const { Deprecation } = __nccwpck_require__(8932);
  22731. const once = __nccwpck_require__(1223);
  22732. const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
  22733. const authenticate = __nccwpck_require__(795);
  22734. const beforeRequest = __nccwpck_require__(7578);
  22735. const requestError = __nccwpck_require__(4275);
  22736. function authenticationPlugin(octokit, options) {
  22737. if (options.auth) {
  22738. octokit.authenticate = () => {
  22739. deprecateAuthenticate(
  22740. octokit.log,
  22741. new Deprecation(
  22742. '[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'
  22743. )
  22744. );
  22745. };
  22746. return;
  22747. }
  22748. const state = {
  22749. octokit,
  22750. auth: false
  22751. };
  22752. octokit.authenticate = authenticate.bind(null, state);
  22753. octokit.hook.before("request", beforeRequest.bind(null, state));
  22754. octokit.hook.error("request", requestError.bind(null, state));
  22755. }
  22756. /***/ }),
  22757. /***/ 4275:
  22758. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22759. module.exports = authenticationRequestError;
  22760. const { RequestError } = __nccwpck_require__(6239);
  22761. function authenticationRequestError(state, error, options) {
  22762. /* istanbul ignore next */
  22763. if (!error.headers) throw error;
  22764. const otpRequired = /required/.test(error.headers["x-github-otp"] || "");
  22765. // handle "2FA required" error only
  22766. if (error.status !== 401 || !otpRequired) {
  22767. throw error;
  22768. }
  22769. if (
  22770. error.status === 401 &&
  22771. otpRequired &&
  22772. error.request &&
  22773. error.request.headers["x-github-otp"]
  22774. ) {
  22775. throw new RequestError(
  22776. "Invalid one-time password for two-factor authentication",
  22777. 401,
  22778. {
  22779. headers: error.headers,
  22780. request: options
  22781. }
  22782. );
  22783. }
  22784. if (typeof state.auth.on2fa !== "function") {
  22785. throw new RequestError(
  22786. "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",
  22787. 401,
  22788. {
  22789. headers: error.headers,
  22790. request: options
  22791. }
  22792. );
  22793. }
  22794. return Promise.resolve()
  22795. .then(() => {
  22796. return state.auth.on2fa();
  22797. })
  22798. .then(oneTimePassword => {
  22799. const newOptions = Object.assign(options, {
  22800. headers: Object.assign(
  22801. { "x-github-otp": oneTimePassword },
  22802. options.headers
  22803. )
  22804. });
  22805. return state.octokit.request(newOptions);
  22806. });
  22807. }
  22808. /***/ }),
  22809. /***/ 9733:
  22810. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22811. module.exports = authenticationBeforeRequest;
  22812. const btoa = __nccwpck_require__(2358);
  22813. const withAuthorizationPrefix = __nccwpck_require__(9603);
  22814. function authenticationBeforeRequest(state, options) {
  22815. if (typeof state.auth === "string") {
  22816. options.headers.authorization = withAuthorizationPrefix(state.auth);
  22817. return;
  22818. }
  22819. if (state.auth.username) {
  22820. const hash = btoa(`${state.auth.username}:${state.auth.password}`);
  22821. options.headers.authorization = `Basic ${hash}`;
  22822. if (state.otp) {
  22823. options.headers["x-github-otp"] = state.otp;
  22824. }
  22825. return;
  22826. }
  22827. if (state.auth.clientId) {
  22828. // There is a special case for OAuth applications, when `clientId` and `clientSecret` is passed as
  22829. // Basic Authorization instead of query parameters. The only routes where that applies share the same
  22830. // URL though: `/applications/:client_id/tokens/:access_token`.
  22831. //
  22832. // 1. [Check an authorization](https://developer.github.com/v3/oauth_authorizations/#check-an-authorization)
  22833. // 2. [Reset an authorization](https://developer.github.com/v3/oauth_authorizations/#reset-an-authorization)
  22834. // 3. [Revoke an authorization for an application](https://developer.github.com/v3/oauth_authorizations/#revoke-an-authorization-for-an-application)
  22835. //
  22836. // We identify by checking the URL. It must merge both "/applications/:client_id/tokens/:access_token"
  22837. // as well as "/applications/123/tokens/token456"
  22838. if (/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(options.url)) {
  22839. const hash = btoa(`${state.auth.clientId}:${state.auth.clientSecret}`);
  22840. options.headers.authorization = `Basic ${hash}`;
  22841. return;
  22842. }
  22843. options.url += options.url.indexOf("?") === -1 ? "?" : "&";
  22844. options.url += `client_id=${state.auth.clientId}&client_secret=${state.auth.clientSecret}`;
  22845. return;
  22846. }
  22847. return Promise.resolve()
  22848. .then(() => {
  22849. return state.auth();
  22850. })
  22851. .then(authorization => {
  22852. options.headers.authorization = withAuthorizationPrefix(authorization);
  22853. });
  22854. }
  22855. /***/ }),
  22856. /***/ 4555:
  22857. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22858. module.exports = authenticationPlugin;
  22859. const { createTokenAuth } = __nccwpck_require__(334);
  22860. const { Deprecation } = __nccwpck_require__(8932);
  22861. const once = __nccwpck_require__(1223);
  22862. const beforeRequest = __nccwpck_require__(9733);
  22863. const requestError = __nccwpck_require__(3217);
  22864. const validate = __nccwpck_require__(8997);
  22865. const withAuthorizationPrefix = __nccwpck_require__(9603);
  22866. const deprecateAuthBasic = once((log, deprecation) => log.warn(deprecation));
  22867. const deprecateAuthObject = once((log, deprecation) => log.warn(deprecation));
  22868. function authenticationPlugin(octokit, options) {
  22869. // If `options.authStrategy` is set then use it and pass in `options.auth`
  22870. if (options.authStrategy) {
  22871. const auth = options.authStrategy(options.auth);
  22872. octokit.hook.wrap("request", auth.hook);
  22873. octokit.auth = auth;
  22874. return;
  22875. }
  22876. // If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance
  22877. // is unauthenticated. The `octokit.auth()` method is a no-op and no request hook is registred.
  22878. if (!options.auth) {
  22879. octokit.auth = () =>
  22880. Promise.resolve({
  22881. type: "unauthenticated"
  22882. });
  22883. return;
  22884. }
  22885. const isBasicAuthString =
  22886. typeof options.auth === "string" &&
  22887. /^basic/.test(withAuthorizationPrefix(options.auth));
  22888. // If only `options.auth` is set to a string, use the default token authentication strategy.
  22889. if (typeof options.auth === "string" && !isBasicAuthString) {
  22890. const auth = createTokenAuth(options.auth);
  22891. octokit.hook.wrap("request", auth.hook);
  22892. octokit.auth = auth;
  22893. return;
  22894. }
  22895. // Otherwise log a deprecation message
  22896. const [deprecationMethod, deprecationMessapge] = isBasicAuthString
  22897. ? [
  22898. deprecateAuthBasic,
  22899. 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)'
  22900. ]
  22901. : [
  22902. deprecateAuthObject,
  22903. 'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'
  22904. ];
  22905. deprecationMethod(
  22906. octokit.log,
  22907. new Deprecation("[@octokit/rest] " + deprecationMessapge)
  22908. );
  22909. octokit.auth = () =>
  22910. Promise.resolve({
  22911. type: "deprecated",
  22912. message: deprecationMessapge
  22913. });
  22914. validate(options.auth);
  22915. const state = {
  22916. octokit,
  22917. auth: options.auth
  22918. };
  22919. octokit.hook.before("request", beforeRequest.bind(null, state));
  22920. octokit.hook.error("request", requestError.bind(null, state));
  22921. }
  22922. /***/ }),
  22923. /***/ 3217:
  22924. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22925. module.exports = authenticationRequestError;
  22926. const { RequestError } = __nccwpck_require__(6239);
  22927. function authenticationRequestError(state, error, options) {
  22928. if (!error.headers) throw error;
  22929. const otpRequired = /required/.test(error.headers["x-github-otp"] || "");
  22930. // handle "2FA required" error only
  22931. if (error.status !== 401 || !otpRequired) {
  22932. throw error;
  22933. }
  22934. if (
  22935. error.status === 401 &&
  22936. otpRequired &&
  22937. error.request &&
  22938. error.request.headers["x-github-otp"]
  22939. ) {
  22940. if (state.otp) {
  22941. delete state.otp; // no longer valid, request again
  22942. } else {
  22943. throw new RequestError(
  22944. "Invalid one-time password for two-factor authentication",
  22945. 401,
  22946. {
  22947. headers: error.headers,
  22948. request: options
  22949. }
  22950. );
  22951. }
  22952. }
  22953. if (typeof state.auth.on2fa !== "function") {
  22954. throw new RequestError(
  22955. "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",
  22956. 401,
  22957. {
  22958. headers: error.headers,
  22959. request: options
  22960. }
  22961. );
  22962. }
  22963. return Promise.resolve()
  22964. .then(() => {
  22965. return state.auth.on2fa();
  22966. })
  22967. .then(oneTimePassword => {
  22968. const newOptions = Object.assign(options, {
  22969. headers: Object.assign(options.headers, {
  22970. "x-github-otp": oneTimePassword
  22971. })
  22972. });
  22973. return state.octokit.request(newOptions).then(response => {
  22974. // If OTP still valid, then persist it for following requests
  22975. state.otp = oneTimePassword;
  22976. return response;
  22977. });
  22978. });
  22979. }
  22980. /***/ }),
  22981. /***/ 8997:
  22982. /***/ ((module) => {
  22983. module.exports = validateAuth;
  22984. function validateAuth(auth) {
  22985. if (typeof auth === "string") {
  22986. return;
  22987. }
  22988. if (typeof auth === "function") {
  22989. return;
  22990. }
  22991. if (auth.username && auth.password) {
  22992. return;
  22993. }
  22994. if (auth.clientId && auth.clientSecret) {
  22995. return;
  22996. }
  22997. throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`);
  22998. }
  22999. /***/ }),
  23000. /***/ 9603:
  23001. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23002. module.exports = withAuthorizationPrefix;
  23003. const atob = __nccwpck_require__(5224);
  23004. const REGEX_IS_BASIC_AUTH = /^[\w-]+:/;
  23005. function withAuthorizationPrefix(authorization) {
  23006. if (/^(basic|bearer|token) /i.test(authorization)) {
  23007. return authorization;
  23008. }
  23009. try {
  23010. if (REGEX_IS_BASIC_AUTH.test(atob(authorization))) {
  23011. return `basic ${authorization}`;
  23012. }
  23013. } catch (error) {}
  23014. if (authorization.split(/\./).length === 3) {
  23015. return `bearer ${authorization}`;
  23016. }
  23017. return `token ${authorization}`;
  23018. }
  23019. /***/ }),
  23020. /***/ 8579:
  23021. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23022. module.exports = paginatePlugin;
  23023. const { paginateRest } = __nccwpck_require__(4193);
  23024. function paginatePlugin(octokit) {
  23025. Object.assign(octokit, paginateRest(octokit));
  23026. }
  23027. /***/ }),
  23028. /***/ 2657:
  23029. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23030. module.exports = octokitValidate;
  23031. const validate = __nccwpck_require__(6132);
  23032. function octokitValidate(octokit) {
  23033. octokit.hook.before("request", validate.bind(null, octokit));
  23034. }
  23035. /***/ }),
  23036. /***/ 6132:
  23037. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23038. "use strict";
  23039. module.exports = validate;
  23040. const { RequestError } = __nccwpck_require__(6239);
  23041. const get = __nccwpck_require__(9197);
  23042. const set = __nccwpck_require__(1552);
  23043. function validate(octokit, options) {
  23044. if (!options.request.validate) {
  23045. return;
  23046. }
  23047. const { validate: params } = options.request;
  23048. Object.keys(params).forEach(parameterName => {
  23049. const parameter = get(params, parameterName);
  23050. const expectedType = parameter.type;
  23051. let parentParameterName;
  23052. let parentValue;
  23053. let parentParamIsPresent = true;
  23054. let parentParameterIsArray = false;
  23055. if (/\./.test(parameterName)) {
  23056. parentParameterName = parameterName.replace(/\.[^.]+$/, "");
  23057. parentParameterIsArray = parentParameterName.slice(-2) === "[]";
  23058. if (parentParameterIsArray) {
  23059. parentParameterName = parentParameterName.slice(0, -2);
  23060. }
  23061. parentValue = get(options, parentParameterName);
  23062. parentParamIsPresent =
  23063. parentParameterName === "headers" ||
  23064. (typeof parentValue === "object" && parentValue !== null);
  23065. }
  23066. const values = parentParameterIsArray
  23067. ? (get(options, parentParameterName) || []).map(
  23068. value => value[parameterName.split(/\./).pop()]
  23069. )
  23070. : [get(options, parameterName)];
  23071. values.forEach((value, i) => {
  23072. const valueIsPresent = typeof value !== "undefined";
  23073. const valueIsNull = value === null;
  23074. const currentParameterName = parentParameterIsArray
  23075. ? parameterName.replace(/\[\]/, `[${i}]`)
  23076. : parameterName;
  23077. if (!parameter.required && !valueIsPresent) {
  23078. return;
  23079. }
  23080. // if the parent parameter is of type object but allows null
  23081. // then the child parameters can be ignored
  23082. if (!parentParamIsPresent) {
  23083. return;
  23084. }
  23085. if (parameter.allowNull && valueIsNull) {
  23086. return;
  23087. }
  23088. if (!parameter.allowNull && valueIsNull) {
  23089. throw new RequestError(
  23090. `'${currentParameterName}' cannot be null`,
  23091. 400,
  23092. {
  23093. request: options
  23094. }
  23095. );
  23096. }
  23097. if (parameter.required && !valueIsPresent) {
  23098. throw new RequestError(
  23099. `Empty value for parameter '${currentParameterName}': ${JSON.stringify(
  23100. value
  23101. )}`,
  23102. 400,
  23103. {
  23104. request: options
  23105. }
  23106. );
  23107. }
  23108. // parse to integer before checking for enum
  23109. // so that string "1" will match enum with number 1
  23110. if (expectedType === "integer") {
  23111. const unparsedValue = value;
  23112. value = parseInt(value, 10);
  23113. if (isNaN(value)) {
  23114. throw new RequestError(
  23115. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  23116. unparsedValue
  23117. )} is NaN`,
  23118. 400,
  23119. {
  23120. request: options
  23121. }
  23122. );
  23123. }
  23124. }
  23125. if (parameter.enum && parameter.enum.indexOf(String(value)) === -1) {
  23126. throw new RequestError(
  23127. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  23128. value
  23129. )}`,
  23130. 400,
  23131. {
  23132. request: options
  23133. }
  23134. );
  23135. }
  23136. if (parameter.validation) {
  23137. const regex = new RegExp(parameter.validation);
  23138. if (!regex.test(value)) {
  23139. throw new RequestError(
  23140. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  23141. value
  23142. )}`,
  23143. 400,
  23144. {
  23145. request: options
  23146. }
  23147. );
  23148. }
  23149. }
  23150. if (expectedType === "object" && typeof value === "string") {
  23151. try {
  23152. value = JSON.parse(value);
  23153. } catch (exception) {
  23154. throw new RequestError(
  23155. `JSON parse error of value for parameter '${currentParameterName}': ${JSON.stringify(
  23156. value
  23157. )}`,
  23158. 400,
  23159. {
  23160. request: options
  23161. }
  23162. );
  23163. }
  23164. }
  23165. set(options, parameter.mapTo || currentParameterName, value);
  23166. });
  23167. });
  23168. return options;
  23169. }
  23170. /***/ }),
  23171. /***/ 5224:
  23172. /***/ ((module) => {
  23173. module.exports = function atob(str) {
  23174. return Buffer.from(str, 'base64').toString('binary')
  23175. }
  23176. /***/ }),
  23177. /***/ 3682:
  23178. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23179. var register = __nccwpck_require__(4670)
  23180. var addHook = __nccwpck_require__(5549)
  23181. var removeHook = __nccwpck_require__(6819)
  23182. // bind with array of arguments: https://stackoverflow.com/a/21792913
  23183. var bind = Function.bind
  23184. var bindable = bind.bind(bind)
  23185. function bindApi (hook, state, name) {
  23186. var removeHookRef = bindable(removeHook, null).apply(null, name ? [state, name] : [state])
  23187. hook.api = { remove: removeHookRef }
  23188. hook.remove = removeHookRef
  23189. ;['before', 'error', 'after', 'wrap'].forEach(function (kind) {
  23190. var args = name ? [state, kind, name] : [state, kind]
  23191. hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args)
  23192. })
  23193. }
  23194. function HookSingular () {
  23195. var singularHookName = 'h'
  23196. var singularHookState = {
  23197. registry: {}
  23198. }
  23199. var singularHook = register.bind(null, singularHookState, singularHookName)
  23200. bindApi(singularHook, singularHookState, singularHookName)
  23201. return singularHook
  23202. }
  23203. function HookCollection () {
  23204. var state = {
  23205. registry: {}
  23206. }
  23207. var hook = register.bind(null, state)
  23208. bindApi(hook, state)
  23209. return hook
  23210. }
  23211. var collectionHookDeprecationMessageDisplayed = false
  23212. function Hook () {
  23213. if (!collectionHookDeprecationMessageDisplayed) {
  23214. console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4')
  23215. collectionHookDeprecationMessageDisplayed = true
  23216. }
  23217. return HookCollection()
  23218. }
  23219. Hook.Singular = HookSingular.bind()
  23220. Hook.Collection = HookCollection.bind()
  23221. module.exports = Hook
  23222. // expose constructors as a named property for TypeScript
  23223. module.exports.Hook = Hook
  23224. module.exports.Singular = Hook.Singular
  23225. module.exports.Collection = Hook.Collection
  23226. /***/ }),
  23227. /***/ 5549:
  23228. /***/ ((module) => {
  23229. module.exports = addHook
  23230. function addHook (state, kind, name, hook) {
  23231. var orig = hook
  23232. if (!state.registry[name]) {
  23233. state.registry[name] = []
  23234. }
  23235. if (kind === 'before') {
  23236. hook = function (method, options) {
  23237. return Promise.resolve()
  23238. .then(orig.bind(null, options))
  23239. .then(method.bind(null, options))
  23240. }
  23241. }
  23242. if (kind === 'after') {
  23243. hook = function (method, options) {
  23244. var result
  23245. return Promise.resolve()
  23246. .then(method.bind(null, options))
  23247. .then(function (result_) {
  23248. result = result_
  23249. return orig(result, options)
  23250. })
  23251. .then(function () {
  23252. return result
  23253. })
  23254. }
  23255. }
  23256. if (kind === 'error') {
  23257. hook = function (method, options) {
  23258. return Promise.resolve()
  23259. .then(method.bind(null, options))
  23260. .catch(function (error) {
  23261. return orig(error, options)
  23262. })
  23263. }
  23264. }
  23265. state.registry[name].push({
  23266. hook: hook,
  23267. orig: orig
  23268. })
  23269. }
  23270. /***/ }),
  23271. /***/ 4670:
  23272. /***/ ((module) => {
  23273. module.exports = register
  23274. function register (state, name, method, options) {
  23275. if (typeof method !== 'function') {
  23276. throw new Error('method for before hook must be a function')
  23277. }
  23278. if (!options) {
  23279. options = {}
  23280. }
  23281. if (Array.isArray(name)) {
  23282. return name.reverse().reduce(function (callback, name) {
  23283. return register.bind(null, state, name, callback, options)
  23284. }, method)()
  23285. }
  23286. return Promise.resolve()
  23287. .then(function () {
  23288. if (!state.registry[name]) {
  23289. return method(options)
  23290. }
  23291. return (state.registry[name]).reduce(function (method, registered) {
  23292. return registered.hook.bind(null, method, options)
  23293. }, method)()
  23294. })
  23295. }
  23296. /***/ }),
  23297. /***/ 6819:
  23298. /***/ ((module) => {
  23299. module.exports = removeHook
  23300. function removeHook (state, name, method) {
  23301. if (!state.registry[name]) {
  23302. return
  23303. }
  23304. var index = state.registry[name]
  23305. .map(function (registered) { return registered.orig })
  23306. .indexOf(method)
  23307. if (index === -1) {
  23308. return
  23309. }
  23310. state.registry[name].splice(index, 1)
  23311. }
  23312. /***/ }),
  23313. /***/ 2358:
  23314. /***/ ((module) => {
  23315. module.exports = function btoa(str) {
  23316. return new Buffer(str).toString('base64')
  23317. }
  23318. /***/ }),
  23319. /***/ 8803:
  23320. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23321. "use strict";
  23322. var GetIntrinsic = __nccwpck_require__(4538);
  23323. var callBind = __nccwpck_require__(2977);
  23324. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  23325. module.exports = function callBoundIntrinsic(name, allowMissing) {
  23326. var intrinsic = GetIntrinsic(name, !!allowMissing);
  23327. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  23328. return callBind(intrinsic);
  23329. }
  23330. return intrinsic;
  23331. };
  23332. /***/ }),
  23333. /***/ 2977:
  23334. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23335. "use strict";
  23336. var bind = __nccwpck_require__(8334);
  23337. var GetIntrinsic = __nccwpck_require__(4538);
  23338. var $apply = GetIntrinsic('%Function.prototype.apply%');
  23339. var $call = GetIntrinsic('%Function.prototype.call%');
  23340. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  23341. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  23342. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  23343. var $max = GetIntrinsic('%Math.max%');
  23344. if ($defineProperty) {
  23345. try {
  23346. $defineProperty({}, 'a', { value: 1 });
  23347. } catch (e) {
  23348. // IE 8 has a broken defineProperty
  23349. $defineProperty = null;
  23350. }
  23351. }
  23352. module.exports = function callBind(originalFunction) {
  23353. var func = $reflectApply(bind, $call, arguments);
  23354. if ($gOPD && $defineProperty) {
  23355. var desc = $gOPD(func, 'length');
  23356. if (desc.configurable) {
  23357. // original length, plus the receiver, minus any additional arguments (after the receiver)
  23358. $defineProperty(
  23359. func,
  23360. 'length',
  23361. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  23362. );
  23363. }
  23364. }
  23365. return func;
  23366. };
  23367. var applyBind = function applyBind() {
  23368. return $reflectApply(bind, $apply, arguments);
  23369. };
  23370. if ($defineProperty) {
  23371. $defineProperty(module.exports, 'apply', { value: applyBind });
  23372. } else {
  23373. module.exports.apply = applyBind;
  23374. }
  23375. /***/ }),
  23376. /***/ 2746:
  23377. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23378. "use strict";
  23379. const cp = __nccwpck_require__(2081);
  23380. const parse = __nccwpck_require__(6855);
  23381. const enoent = __nccwpck_require__(4101);
  23382. function spawn(command, args, options) {
  23383. // Parse the arguments
  23384. const parsed = parse(command, args, options);
  23385. // Spawn the child process
  23386. const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
  23387. // Hook into child process "exit" event to emit an error if the command
  23388. // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
  23389. enoent.hookChildProcess(spawned, parsed);
  23390. return spawned;
  23391. }
  23392. function spawnSync(command, args, options) {
  23393. // Parse the arguments
  23394. const parsed = parse(command, args, options);
  23395. // Spawn the child process
  23396. const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
  23397. // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
  23398. result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
  23399. return result;
  23400. }
  23401. module.exports = spawn;
  23402. module.exports.spawn = spawn;
  23403. module.exports.sync = spawnSync;
  23404. module.exports._parse = parse;
  23405. module.exports._enoent = enoent;
  23406. /***/ }),
  23407. /***/ 4101:
  23408. /***/ ((module) => {
  23409. "use strict";
  23410. const isWin = process.platform === 'win32';
  23411. function notFoundError(original, syscall) {
  23412. return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
  23413. code: 'ENOENT',
  23414. errno: 'ENOENT',
  23415. syscall: `${syscall} ${original.command}`,
  23416. path: original.command,
  23417. spawnargs: original.args,
  23418. });
  23419. }
  23420. function hookChildProcess(cp, parsed) {
  23421. if (!isWin) {
  23422. return;
  23423. }
  23424. const originalEmit = cp.emit;
  23425. cp.emit = function (name, arg1) {
  23426. // If emitting "exit" event and exit code is 1, we need to check if
  23427. // the command exists and emit an "error" instead
  23428. // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
  23429. if (name === 'exit') {
  23430. const err = verifyENOENT(arg1, parsed, 'spawn');
  23431. if (err) {
  23432. return originalEmit.call(cp, 'error', err);
  23433. }
  23434. }
  23435. return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
  23436. };
  23437. }
  23438. function verifyENOENT(status, parsed) {
  23439. if (isWin && status === 1 && !parsed.file) {
  23440. return notFoundError(parsed.original, 'spawn');
  23441. }
  23442. return null;
  23443. }
  23444. function verifyENOENTSync(status, parsed) {
  23445. if (isWin && status === 1 && !parsed.file) {
  23446. return notFoundError(parsed.original, 'spawnSync');
  23447. }
  23448. return null;
  23449. }
  23450. module.exports = {
  23451. hookChildProcess,
  23452. verifyENOENT,
  23453. verifyENOENTSync,
  23454. notFoundError,
  23455. };
  23456. /***/ }),
  23457. /***/ 6855:
  23458. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23459. "use strict";
  23460. const path = __nccwpck_require__(1017);
  23461. const niceTry = __nccwpck_require__(8560);
  23462. const resolveCommand = __nccwpck_require__(7274);
  23463. const escape = __nccwpck_require__(4274);
  23464. const readShebang = __nccwpck_require__(1252);
  23465. const semver = __nccwpck_require__(5911);
  23466. const isWin = process.platform === 'win32';
  23467. const isExecutableRegExp = /\.(?:com|exe)$/i;
  23468. const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
  23469. // `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0
  23470. const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false;
  23471. function detectShebang(parsed) {
  23472. parsed.file = resolveCommand(parsed);
  23473. const shebang = parsed.file && readShebang(parsed.file);
  23474. if (shebang) {
  23475. parsed.args.unshift(parsed.file);
  23476. parsed.command = shebang;
  23477. return resolveCommand(parsed);
  23478. }
  23479. return parsed.file;
  23480. }
  23481. function parseNonShell(parsed) {
  23482. if (!isWin) {
  23483. return parsed;
  23484. }
  23485. // Detect & add support for shebangs
  23486. const commandFile = detectShebang(parsed);
  23487. // We don't need a shell if the command filename is an executable
  23488. const needsShell = !isExecutableRegExp.test(commandFile);
  23489. // If a shell is required, use cmd.exe and take care of escaping everything correctly
  23490. // Note that `forceShell` is an hidden option used only in tests
  23491. if (parsed.options.forceShell || needsShell) {
  23492. // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
  23493. // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
  23494. // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
  23495. // we need to double escape them
  23496. const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
  23497. // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
  23498. // This is necessary otherwise it will always fail with ENOENT in those cases
  23499. parsed.command = path.normalize(parsed.command);
  23500. // Escape command & arguments
  23501. parsed.command = escape.command(parsed.command);
  23502. parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
  23503. const shellCommand = [parsed.command].concat(parsed.args).join(' ');
  23504. parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
  23505. parsed.command = process.env.comspec || 'cmd.exe';
  23506. parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
  23507. }
  23508. return parsed;
  23509. }
  23510. function parseShell(parsed) {
  23511. // If node supports the shell option, there's no need to mimic its behavior
  23512. if (supportsShellOption) {
  23513. return parsed;
  23514. }
  23515. // Mimic node shell option
  23516. // See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335
  23517. const shellCommand = [parsed.command].concat(parsed.args).join(' ');
  23518. if (isWin) {
  23519. parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe';
  23520. parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
  23521. parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
  23522. } else {
  23523. if (typeof parsed.options.shell === 'string') {
  23524. parsed.command = parsed.options.shell;
  23525. } else if (process.platform === 'android') {
  23526. parsed.command = '/system/bin/sh';
  23527. } else {
  23528. parsed.command = '/bin/sh';
  23529. }
  23530. parsed.args = ['-c', shellCommand];
  23531. }
  23532. return parsed;
  23533. }
  23534. function parse(command, args, options) {
  23535. // Normalize arguments, similar to nodejs
  23536. if (args && !Array.isArray(args)) {
  23537. options = args;
  23538. args = null;
  23539. }
  23540. args = args ? args.slice(0) : []; // Clone array to avoid changing the original
  23541. options = Object.assign({}, options); // Clone object to avoid changing the original
  23542. // Build our parsed object
  23543. const parsed = {
  23544. command,
  23545. args,
  23546. options,
  23547. file: undefined,
  23548. original: {
  23549. command,
  23550. args,
  23551. },
  23552. };
  23553. // Delegate further parsing to shell or non-shell
  23554. return options.shell ? parseShell(parsed) : parseNonShell(parsed);
  23555. }
  23556. module.exports = parse;
  23557. /***/ }),
  23558. /***/ 4274:
  23559. /***/ ((module) => {
  23560. "use strict";
  23561. // See http://www.robvanderwoude.com/escapechars.php
  23562. const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
  23563. function escapeCommand(arg) {
  23564. // Escape meta chars
  23565. arg = arg.replace(metaCharsRegExp, '^$1');
  23566. return arg;
  23567. }
  23568. function escapeArgument(arg, doubleEscapeMetaChars) {
  23569. // Convert to string
  23570. arg = `${arg}`;
  23571. // Algorithm below is based on https://qntm.org/cmd
  23572. // Sequence of backslashes followed by a double quote:
  23573. // double up all the backslashes and escape the double quote
  23574. arg = arg.replace(/(\\*)"/g, '$1$1\\"');
  23575. // Sequence of backslashes followed by the end of the string
  23576. // (which will become a double quote later):
  23577. // double up all the backslashes
  23578. arg = arg.replace(/(\\*)$/, '$1$1');
  23579. // All other backslashes occur literally
  23580. // Quote the whole thing:
  23581. arg = `"${arg}"`;
  23582. // Escape meta chars
  23583. arg = arg.replace(metaCharsRegExp, '^$1');
  23584. // Double escape meta chars if necessary
  23585. if (doubleEscapeMetaChars) {
  23586. arg = arg.replace(metaCharsRegExp, '^$1');
  23587. }
  23588. return arg;
  23589. }
  23590. module.exports.command = escapeCommand;
  23591. module.exports.argument = escapeArgument;
  23592. /***/ }),
  23593. /***/ 1252:
  23594. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23595. "use strict";
  23596. const fs = __nccwpck_require__(7147);
  23597. const shebangCommand = __nccwpck_require__(7032);
  23598. function readShebang(command) {
  23599. // Read the first 150 bytes from the file
  23600. const size = 150;
  23601. let buffer;
  23602. if (Buffer.alloc) {
  23603. // Node.js v4.5+ / v5.10+
  23604. buffer = Buffer.alloc(size);
  23605. } else {
  23606. // Old Node.js API
  23607. buffer = new Buffer(size);
  23608. buffer.fill(0); // zero-fill
  23609. }
  23610. let fd;
  23611. try {
  23612. fd = fs.openSync(command, 'r');
  23613. fs.readSync(fd, buffer, 0, size, 0);
  23614. fs.closeSync(fd);
  23615. } catch (e) { /* Empty */ }
  23616. // Attempt to extract shebang (null is returned if not a shebang)
  23617. return shebangCommand(buffer.toString());
  23618. }
  23619. module.exports = readShebang;
  23620. /***/ }),
  23621. /***/ 7274:
  23622. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23623. "use strict";
  23624. const path = __nccwpck_require__(1017);
  23625. const which = __nccwpck_require__(4207);
  23626. const pathKey = __nccwpck_require__(539)();
  23627. function resolveCommandAttempt(parsed, withoutPathExt) {
  23628. const cwd = process.cwd();
  23629. const hasCustomCwd = parsed.options.cwd != null;
  23630. // If a custom `cwd` was specified, we need to change the process cwd
  23631. // because `which` will do stat calls but does not support a custom cwd
  23632. if (hasCustomCwd) {
  23633. try {
  23634. process.chdir(parsed.options.cwd);
  23635. } catch (err) {
  23636. /* Empty */
  23637. }
  23638. }
  23639. let resolved;
  23640. try {
  23641. resolved = which.sync(parsed.command, {
  23642. path: (parsed.options.env || process.env)[pathKey],
  23643. pathExt: withoutPathExt ? path.delimiter : undefined,
  23644. });
  23645. } catch (e) {
  23646. /* Empty */
  23647. } finally {
  23648. process.chdir(cwd);
  23649. }
  23650. // If we successfully resolved, ensure that an absolute path is returned
  23651. // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
  23652. if (resolved) {
  23653. resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
  23654. }
  23655. return resolved;
  23656. }
  23657. function resolveCommand(parsed) {
  23658. return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
  23659. }
  23660. module.exports = resolveCommand;
  23661. /***/ }),
  23662. /***/ 8932:
  23663. /***/ ((__unused_webpack_module, exports) => {
  23664. "use strict";
  23665. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23666. class Deprecation extends Error {
  23667. constructor(message) {
  23668. super(message); // Maintains proper stack trace (only available on V8)
  23669. /* istanbul ignore next */
  23670. if (Error.captureStackTrace) {
  23671. Error.captureStackTrace(this, this.constructor);
  23672. }
  23673. this.name = 'Deprecation';
  23674. }
  23675. }
  23676. exports.Deprecation = Deprecation;
  23677. /***/ }),
  23678. /***/ 1205:
  23679. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23680. var once = __nccwpck_require__(1223);
  23681. var noop = function() {};
  23682. var isRequest = function(stream) {
  23683. return stream.setHeader && typeof stream.abort === 'function';
  23684. };
  23685. var isChildProcess = function(stream) {
  23686. return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3
  23687. };
  23688. var eos = function(stream, opts, callback) {
  23689. if (typeof opts === 'function') return eos(stream, null, opts);
  23690. if (!opts) opts = {};
  23691. callback = once(callback || noop);
  23692. var ws = stream._writableState;
  23693. var rs = stream._readableState;
  23694. var readable = opts.readable || (opts.readable !== false && stream.readable);
  23695. var writable = opts.writable || (opts.writable !== false && stream.writable);
  23696. var cancelled = false;
  23697. var onlegacyfinish = function() {
  23698. if (!stream.writable) onfinish();
  23699. };
  23700. var onfinish = function() {
  23701. writable = false;
  23702. if (!readable) callback.call(stream);
  23703. };
  23704. var onend = function() {
  23705. readable = false;
  23706. if (!writable) callback.call(stream);
  23707. };
  23708. var onexit = function(exitCode) {
  23709. callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);
  23710. };
  23711. var onerror = function(err) {
  23712. callback.call(stream, err);
  23713. };
  23714. var onclose = function() {
  23715. process.nextTick(onclosenexttick);
  23716. };
  23717. var onclosenexttick = function() {
  23718. if (cancelled) return;
  23719. if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close'));
  23720. if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close'));
  23721. };
  23722. var onrequest = function() {
  23723. stream.req.on('finish', onfinish);
  23724. };
  23725. if (isRequest(stream)) {
  23726. stream.on('complete', onfinish);
  23727. stream.on('abort', onclose);
  23728. if (stream.req) onrequest();
  23729. else stream.on('request', onrequest);
  23730. } else if (writable && !ws) { // legacy streams
  23731. stream.on('end', onlegacyfinish);
  23732. stream.on('close', onlegacyfinish);
  23733. }
  23734. if (isChildProcess(stream)) stream.on('exit', onexit);
  23735. stream.on('end', onend);
  23736. stream.on('finish', onfinish);
  23737. if (opts.error !== false) stream.on('error', onerror);
  23738. stream.on('close', onclose);
  23739. return function() {
  23740. cancelled = true;
  23741. stream.removeListener('complete', onfinish);
  23742. stream.removeListener('abort', onclose);
  23743. stream.removeListener('request', onrequest);
  23744. if (stream.req) stream.req.removeListener('finish', onfinish);
  23745. stream.removeListener('end', onlegacyfinish);
  23746. stream.removeListener('close', onlegacyfinish);
  23747. stream.removeListener('finish', onfinish);
  23748. stream.removeListener('exit', onexit);
  23749. stream.removeListener('end', onend);
  23750. stream.removeListener('error', onerror);
  23751. stream.removeListener('close', onclose);
  23752. };
  23753. };
  23754. module.exports = eos;
  23755. /***/ }),
  23756. /***/ 5447:
  23757. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23758. "use strict";
  23759. const path = __nccwpck_require__(1017);
  23760. const childProcess = __nccwpck_require__(2081);
  23761. const crossSpawn = __nccwpck_require__(2746);
  23762. const stripEof = __nccwpck_require__(5515);
  23763. const npmRunPath = __nccwpck_require__(502);
  23764. const isStream = __nccwpck_require__(1554);
  23765. const _getStream = __nccwpck_require__(1766);
  23766. const pFinally = __nccwpck_require__(1330);
  23767. const onExit = __nccwpck_require__(4931);
  23768. const errname = __nccwpck_require__(4689);
  23769. const stdio = __nccwpck_require__(166);
  23770. const TEN_MEGABYTES = 1000 * 1000 * 10;
  23771. function handleArgs(cmd, args, opts) {
  23772. let parsed;
  23773. opts = Object.assign({
  23774. extendEnv: true,
  23775. env: {}
  23776. }, opts);
  23777. if (opts.extendEnv) {
  23778. opts.env = Object.assign({}, process.env, opts.env);
  23779. }
  23780. if (opts.__winShell === true) {
  23781. delete opts.__winShell;
  23782. parsed = {
  23783. command: cmd,
  23784. args,
  23785. options: opts,
  23786. file: cmd,
  23787. original: {
  23788. cmd,
  23789. args
  23790. }
  23791. };
  23792. } else {
  23793. parsed = crossSpawn._parse(cmd, args, opts);
  23794. }
  23795. opts = Object.assign({
  23796. maxBuffer: TEN_MEGABYTES,
  23797. buffer: true,
  23798. stripEof: true,
  23799. preferLocal: true,
  23800. localDir: parsed.options.cwd || process.cwd(),
  23801. encoding: 'utf8',
  23802. reject: true,
  23803. cleanup: true
  23804. }, parsed.options);
  23805. opts.stdio = stdio(opts);
  23806. if (opts.preferLocal) {
  23807. opts.env = npmRunPath.env(Object.assign({}, opts, {cwd: opts.localDir}));
  23808. }
  23809. if (opts.detached) {
  23810. // #115
  23811. opts.cleanup = false;
  23812. }
  23813. if (process.platform === 'win32' && path.basename(parsed.command) === 'cmd.exe') {
  23814. // #116
  23815. parsed.args.unshift('/q');
  23816. }
  23817. return {
  23818. cmd: parsed.command,
  23819. args: parsed.args,
  23820. opts,
  23821. parsed
  23822. };
  23823. }
  23824. function handleInput(spawned, input) {
  23825. if (input === null || input === undefined) {
  23826. return;
  23827. }
  23828. if (isStream(input)) {
  23829. input.pipe(spawned.stdin);
  23830. } else {
  23831. spawned.stdin.end(input);
  23832. }
  23833. }
  23834. function handleOutput(opts, val) {
  23835. if (val && opts.stripEof) {
  23836. val = stripEof(val);
  23837. }
  23838. return val;
  23839. }
  23840. function handleShell(fn, cmd, opts) {
  23841. let file = '/bin/sh';
  23842. let args = ['-c', cmd];
  23843. opts = Object.assign({}, opts);
  23844. if (process.platform === 'win32') {
  23845. opts.__winShell = true;
  23846. file = process.env.comspec || 'cmd.exe';
  23847. args = ['/s', '/c', `"${cmd}"`];
  23848. opts.windowsVerbatimArguments = true;
  23849. }
  23850. if (opts.shell) {
  23851. file = opts.shell;
  23852. delete opts.shell;
  23853. }
  23854. return fn(file, args, opts);
  23855. }
  23856. function getStream(process, stream, {encoding, buffer, maxBuffer}) {
  23857. if (!process[stream]) {
  23858. return null;
  23859. }
  23860. let ret;
  23861. if (!buffer) {
  23862. // TODO: Use `ret = util.promisify(stream.finished)(process[stream]);` when targeting Node.js 10
  23863. ret = new Promise((resolve, reject) => {
  23864. process[stream]
  23865. .once('end', resolve)
  23866. .once('error', reject);
  23867. });
  23868. } else if (encoding) {
  23869. ret = _getStream(process[stream], {
  23870. encoding,
  23871. maxBuffer
  23872. });
  23873. } else {
  23874. ret = _getStream.buffer(process[stream], {maxBuffer});
  23875. }
  23876. return ret.catch(err => {
  23877. err.stream = stream;
  23878. err.message = `${stream} ${err.message}`;
  23879. throw err;
  23880. });
  23881. }
  23882. function makeError(result, options) {
  23883. const {stdout, stderr} = result;
  23884. let err = result.error;
  23885. const {code, signal} = result;
  23886. const {parsed, joinedCmd} = options;
  23887. const timedOut = options.timedOut || false;
  23888. if (!err) {
  23889. let output = '';
  23890. if (Array.isArray(parsed.opts.stdio)) {
  23891. if (parsed.opts.stdio[2] !== 'inherit') {
  23892. output += output.length > 0 ? stderr : `\n${stderr}`;
  23893. }
  23894. if (parsed.opts.stdio[1] !== 'inherit') {
  23895. output += `\n${stdout}`;
  23896. }
  23897. } else if (parsed.opts.stdio !== 'inherit') {
  23898. output = `\n${stderr}${stdout}`;
  23899. }
  23900. err = new Error(`Command failed: ${joinedCmd}${output}`);
  23901. err.code = code < 0 ? errname(code) : code;
  23902. }
  23903. err.stdout = stdout;
  23904. err.stderr = stderr;
  23905. err.failed = true;
  23906. err.signal = signal || null;
  23907. err.cmd = joinedCmd;
  23908. err.timedOut = timedOut;
  23909. return err;
  23910. }
  23911. function joinCmd(cmd, args) {
  23912. let joinedCmd = cmd;
  23913. if (Array.isArray(args) && args.length > 0) {
  23914. joinedCmd += ' ' + args.join(' ');
  23915. }
  23916. return joinedCmd;
  23917. }
  23918. module.exports = (cmd, args, opts) => {
  23919. const parsed = handleArgs(cmd, args, opts);
  23920. const {encoding, buffer, maxBuffer} = parsed.opts;
  23921. const joinedCmd = joinCmd(cmd, args);
  23922. let spawned;
  23923. try {
  23924. spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts);
  23925. } catch (err) {
  23926. return Promise.reject(err);
  23927. }
  23928. let removeExitHandler;
  23929. if (parsed.opts.cleanup) {
  23930. removeExitHandler = onExit(() => {
  23931. spawned.kill();
  23932. });
  23933. }
  23934. let timeoutId = null;
  23935. let timedOut = false;
  23936. const cleanup = () => {
  23937. if (timeoutId) {
  23938. clearTimeout(timeoutId);
  23939. timeoutId = null;
  23940. }
  23941. if (removeExitHandler) {
  23942. removeExitHandler();
  23943. }
  23944. };
  23945. if (parsed.opts.timeout > 0) {
  23946. timeoutId = setTimeout(() => {
  23947. timeoutId = null;
  23948. timedOut = true;
  23949. spawned.kill(parsed.opts.killSignal);
  23950. }, parsed.opts.timeout);
  23951. }
  23952. const processDone = new Promise(resolve => {
  23953. spawned.on('exit', (code, signal) => {
  23954. cleanup();
  23955. resolve({code, signal});
  23956. });
  23957. spawned.on('error', err => {
  23958. cleanup();
  23959. resolve({error: err});
  23960. });
  23961. if (spawned.stdin) {
  23962. spawned.stdin.on('error', err => {
  23963. cleanup();
  23964. resolve({error: err});
  23965. });
  23966. }
  23967. });
  23968. function destroy() {
  23969. if (spawned.stdout) {
  23970. spawned.stdout.destroy();
  23971. }
  23972. if (spawned.stderr) {
  23973. spawned.stderr.destroy();
  23974. }
  23975. }
  23976. const handlePromise = () => pFinally(Promise.all([
  23977. processDone,
  23978. getStream(spawned, 'stdout', {encoding, buffer, maxBuffer}),
  23979. getStream(spawned, 'stderr', {encoding, buffer, maxBuffer})
  23980. ]).then(arr => {
  23981. const result = arr[0];
  23982. result.stdout = arr[1];
  23983. result.stderr = arr[2];
  23984. if (result.error || result.code !== 0 || result.signal !== null) {
  23985. const err = makeError(result, {
  23986. joinedCmd,
  23987. parsed,
  23988. timedOut
  23989. });
  23990. // TODO: missing some timeout logic for killed
  23991. // https://github.com/nodejs/node/blob/master/lib/child_process.js#L203
  23992. // err.killed = spawned.killed || killed;
  23993. err.killed = err.killed || spawned.killed;
  23994. if (!parsed.opts.reject) {
  23995. return err;
  23996. }
  23997. throw err;
  23998. }
  23999. return {
  24000. stdout: handleOutput(parsed.opts, result.stdout),
  24001. stderr: handleOutput(parsed.opts, result.stderr),
  24002. code: 0,
  24003. failed: false,
  24004. killed: false,
  24005. signal: null,
  24006. cmd: joinedCmd,
  24007. timedOut: false
  24008. };
  24009. }), destroy);
  24010. crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);
  24011. handleInput(spawned, parsed.opts.input);
  24012. spawned.then = (onfulfilled, onrejected) => handlePromise().then(onfulfilled, onrejected);
  24013. spawned.catch = onrejected => handlePromise().catch(onrejected);
  24014. return spawned;
  24015. };
  24016. // TODO: set `stderr: 'ignore'` when that option is implemented
  24017. module.exports.stdout = (...args) => module.exports(...args).then(x => x.stdout);
  24018. // TODO: set `stdout: 'ignore'` when that option is implemented
  24019. module.exports.stderr = (...args) => module.exports(...args).then(x => x.stderr);
  24020. module.exports.shell = (cmd, opts) => handleShell(module.exports, cmd, opts);
  24021. module.exports.sync = (cmd, args, opts) => {
  24022. const parsed = handleArgs(cmd, args, opts);
  24023. const joinedCmd = joinCmd(cmd, args);
  24024. if (isStream(parsed.opts.input)) {
  24025. throw new TypeError('The `input` option cannot be a stream in sync mode');
  24026. }
  24027. const result = childProcess.spawnSync(parsed.cmd, parsed.args, parsed.opts);
  24028. result.code = result.status;
  24029. if (result.error || result.status !== 0 || result.signal !== null) {
  24030. const err = makeError(result, {
  24031. joinedCmd,
  24032. parsed
  24033. });
  24034. if (!parsed.opts.reject) {
  24035. return err;
  24036. }
  24037. throw err;
  24038. }
  24039. return {
  24040. stdout: handleOutput(parsed.opts, result.stdout),
  24041. stderr: handleOutput(parsed.opts, result.stderr),
  24042. code: 0,
  24043. failed: false,
  24044. signal: null,
  24045. cmd: joinedCmd,
  24046. timedOut: false
  24047. };
  24048. };
  24049. module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts);
  24050. /***/ }),
  24051. /***/ 4689:
  24052. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24053. "use strict";
  24054. // Older verions of Node.js might not have `util.getSystemErrorName()`.
  24055. // In that case, fall back to a deprecated internal.
  24056. const util = __nccwpck_require__(3837);
  24057. let uv;
  24058. if (typeof util.getSystemErrorName === 'function') {
  24059. module.exports = util.getSystemErrorName;
  24060. } else {
  24061. try {
  24062. uv = process.binding('uv');
  24063. if (typeof uv.errname !== 'function') {
  24064. throw new TypeError('uv.errname is not a function');
  24065. }
  24066. } catch (err) {
  24067. console.error('execa/lib/errname: unable to establish process.binding(\'uv\')', err);
  24068. uv = null;
  24069. }
  24070. module.exports = code => errname(uv, code);
  24071. }
  24072. // Used for testing the fallback behavior
  24073. module.exports.__test__ = errname;
  24074. function errname(uv, code) {
  24075. if (uv) {
  24076. return uv.errname(code);
  24077. }
  24078. if (!(code < 0)) {
  24079. throw new Error('err >= 0');
  24080. }
  24081. return `Unknown system error ${code}`;
  24082. }
  24083. /***/ }),
  24084. /***/ 166:
  24085. /***/ ((module) => {
  24086. "use strict";
  24087. const alias = ['stdin', 'stdout', 'stderr'];
  24088. const hasAlias = opts => alias.some(x => Boolean(opts[x]));
  24089. module.exports = opts => {
  24090. if (!opts) {
  24091. return null;
  24092. }
  24093. if (opts.stdio && hasAlias(opts)) {
  24094. throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${alias.map(x => `\`${x}\``).join(', ')}`);
  24095. }
  24096. if (typeof opts.stdio === 'string') {
  24097. return opts.stdio;
  24098. }
  24099. const stdio = opts.stdio || [];
  24100. if (!Array.isArray(stdio)) {
  24101. throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
  24102. }
  24103. const result = [];
  24104. const len = Math.max(stdio.length, alias.length);
  24105. for (let i = 0; i < len; i++) {
  24106. let value = null;
  24107. if (stdio[i] !== undefined) {
  24108. value = stdio[i];
  24109. } else if (opts[alias[i]] !== undefined) {
  24110. value = opts[alias[i]];
  24111. }
  24112. result[i] = value;
  24113. }
  24114. return result;
  24115. };
  24116. /***/ }),
  24117. /***/ 9320:
  24118. /***/ ((module) => {
  24119. "use strict";
  24120. /* eslint no-invalid-this: 1 */
  24121. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  24122. var slice = Array.prototype.slice;
  24123. var toStr = Object.prototype.toString;
  24124. var funcType = '[object Function]';
  24125. module.exports = function bind(that) {
  24126. var target = this;
  24127. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  24128. throw new TypeError(ERROR_MESSAGE + target);
  24129. }
  24130. var args = slice.call(arguments, 1);
  24131. var bound;
  24132. var binder = function () {
  24133. if (this instanceof bound) {
  24134. var result = target.apply(
  24135. this,
  24136. args.concat(slice.call(arguments))
  24137. );
  24138. if (Object(result) === result) {
  24139. return result;
  24140. }
  24141. return this;
  24142. } else {
  24143. return target.apply(
  24144. that,
  24145. args.concat(slice.call(arguments))
  24146. );
  24147. }
  24148. };
  24149. var boundLength = Math.max(0, target.length - args.length);
  24150. var boundArgs = [];
  24151. for (var i = 0; i < boundLength; i++) {
  24152. boundArgs.push('$' + i);
  24153. }
  24154. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  24155. if (target.prototype) {
  24156. var Empty = function Empty() {};
  24157. Empty.prototype = target.prototype;
  24158. bound.prototype = new Empty();
  24159. Empty.prototype = null;
  24160. }
  24161. return bound;
  24162. };
  24163. /***/ }),
  24164. /***/ 8334:
  24165. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24166. "use strict";
  24167. var implementation = __nccwpck_require__(9320);
  24168. module.exports = Function.prototype.bind || implementation;
  24169. /***/ }),
  24170. /***/ 4538:
  24171. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24172. "use strict";
  24173. var undefined;
  24174. var $SyntaxError = SyntaxError;
  24175. var $Function = Function;
  24176. var $TypeError = TypeError;
  24177. // eslint-disable-next-line consistent-return
  24178. var getEvalledConstructor = function (expressionSyntax) {
  24179. try {
  24180. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  24181. } catch (e) {}
  24182. };
  24183. var $gOPD = Object.getOwnPropertyDescriptor;
  24184. if ($gOPD) {
  24185. try {
  24186. $gOPD({}, '');
  24187. } catch (e) {
  24188. $gOPD = null; // this is IE 8, which has a broken gOPD
  24189. }
  24190. }
  24191. var throwTypeError = function () {
  24192. throw new $TypeError();
  24193. };
  24194. var ThrowTypeError = $gOPD
  24195. ? (function () {
  24196. try {
  24197. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  24198. arguments.callee; // IE 8 does not throw here
  24199. return throwTypeError;
  24200. } catch (calleeThrows) {
  24201. try {
  24202. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  24203. return $gOPD(arguments, 'callee').get;
  24204. } catch (gOPDthrows) {
  24205. return throwTypeError;
  24206. }
  24207. }
  24208. }())
  24209. : throwTypeError;
  24210. var hasSymbols = __nccwpck_require__(587)();
  24211. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  24212. var needsEval = {};
  24213. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  24214. var INTRINSICS = {
  24215. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  24216. '%Array%': Array,
  24217. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  24218. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  24219. '%AsyncFromSyncIteratorPrototype%': undefined,
  24220. '%AsyncFunction%': needsEval,
  24221. '%AsyncGenerator%': needsEval,
  24222. '%AsyncGeneratorFunction%': needsEval,
  24223. '%AsyncIteratorPrototype%': needsEval,
  24224. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  24225. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  24226. '%Boolean%': Boolean,
  24227. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  24228. '%Date%': Date,
  24229. '%decodeURI%': decodeURI,
  24230. '%decodeURIComponent%': decodeURIComponent,
  24231. '%encodeURI%': encodeURI,
  24232. '%encodeURIComponent%': encodeURIComponent,
  24233. '%Error%': Error,
  24234. '%eval%': eval, // eslint-disable-line no-eval
  24235. '%EvalError%': EvalError,
  24236. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  24237. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  24238. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  24239. '%Function%': $Function,
  24240. '%GeneratorFunction%': needsEval,
  24241. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  24242. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  24243. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  24244. '%isFinite%': isFinite,
  24245. '%isNaN%': isNaN,
  24246. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  24247. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  24248. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  24249. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  24250. '%Math%': Math,
  24251. '%Number%': Number,
  24252. '%Object%': Object,
  24253. '%parseFloat%': parseFloat,
  24254. '%parseInt%': parseInt,
  24255. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  24256. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  24257. '%RangeError%': RangeError,
  24258. '%ReferenceError%': ReferenceError,
  24259. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  24260. '%RegExp%': RegExp,
  24261. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  24262. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  24263. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  24264. '%String%': String,
  24265. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  24266. '%Symbol%': hasSymbols ? Symbol : undefined,
  24267. '%SyntaxError%': $SyntaxError,
  24268. '%ThrowTypeError%': ThrowTypeError,
  24269. '%TypedArray%': TypedArray,
  24270. '%TypeError%': $TypeError,
  24271. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  24272. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  24273. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  24274. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  24275. '%URIError%': URIError,
  24276. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  24277. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  24278. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  24279. };
  24280. var doEval = function doEval(name) {
  24281. var value;
  24282. if (name === '%AsyncFunction%') {
  24283. value = getEvalledConstructor('async function () {}');
  24284. } else if (name === '%GeneratorFunction%') {
  24285. value = getEvalledConstructor('function* () {}');
  24286. } else if (name === '%AsyncGeneratorFunction%') {
  24287. value = getEvalledConstructor('async function* () {}');
  24288. } else if (name === '%AsyncGenerator%') {
  24289. var fn = doEval('%AsyncGeneratorFunction%');
  24290. if (fn) {
  24291. value = fn.prototype;
  24292. }
  24293. } else if (name === '%AsyncIteratorPrototype%') {
  24294. var gen = doEval('%AsyncGenerator%');
  24295. if (gen) {
  24296. value = getProto(gen.prototype);
  24297. }
  24298. }
  24299. INTRINSICS[name] = value;
  24300. return value;
  24301. };
  24302. var LEGACY_ALIASES = {
  24303. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  24304. '%ArrayPrototype%': ['Array', 'prototype'],
  24305. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  24306. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  24307. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  24308. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  24309. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  24310. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  24311. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  24312. '%BooleanPrototype%': ['Boolean', 'prototype'],
  24313. '%DataViewPrototype%': ['DataView', 'prototype'],
  24314. '%DatePrototype%': ['Date', 'prototype'],
  24315. '%ErrorPrototype%': ['Error', 'prototype'],
  24316. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  24317. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  24318. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  24319. '%FunctionPrototype%': ['Function', 'prototype'],
  24320. '%Generator%': ['GeneratorFunction', 'prototype'],
  24321. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  24322. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  24323. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  24324. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  24325. '%JSONParse%': ['JSON', 'parse'],
  24326. '%JSONStringify%': ['JSON', 'stringify'],
  24327. '%MapPrototype%': ['Map', 'prototype'],
  24328. '%NumberPrototype%': ['Number', 'prototype'],
  24329. '%ObjectPrototype%': ['Object', 'prototype'],
  24330. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  24331. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  24332. '%PromisePrototype%': ['Promise', 'prototype'],
  24333. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  24334. '%Promise_all%': ['Promise', 'all'],
  24335. '%Promise_reject%': ['Promise', 'reject'],
  24336. '%Promise_resolve%': ['Promise', 'resolve'],
  24337. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  24338. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  24339. '%RegExpPrototype%': ['RegExp', 'prototype'],
  24340. '%SetPrototype%': ['Set', 'prototype'],
  24341. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  24342. '%StringPrototype%': ['String', 'prototype'],
  24343. '%SymbolPrototype%': ['Symbol', 'prototype'],
  24344. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  24345. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  24346. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  24347. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  24348. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  24349. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  24350. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  24351. '%URIErrorPrototype%': ['URIError', 'prototype'],
  24352. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  24353. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  24354. };
  24355. var bind = __nccwpck_require__(8334);
  24356. var hasOwn = __nccwpck_require__(6339);
  24357. var $concat = bind.call(Function.call, Array.prototype.concat);
  24358. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  24359. var $replace = bind.call(Function.call, String.prototype.replace);
  24360. var $strSlice = bind.call(Function.call, String.prototype.slice);
  24361. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  24362. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  24363. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  24364. var stringToPath = function stringToPath(string) {
  24365. var first = $strSlice(string, 0, 1);
  24366. var last = $strSlice(string, -1);
  24367. if (first === '%' && last !== '%') {
  24368. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  24369. } else if (last === '%' && first !== '%') {
  24370. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  24371. }
  24372. var result = [];
  24373. $replace(string, rePropName, function (match, number, quote, subString) {
  24374. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  24375. });
  24376. return result;
  24377. };
  24378. /* end adaptation */
  24379. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  24380. var intrinsicName = name;
  24381. var alias;
  24382. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  24383. alias = LEGACY_ALIASES[intrinsicName];
  24384. intrinsicName = '%' + alias[0] + '%';
  24385. }
  24386. if (hasOwn(INTRINSICS, intrinsicName)) {
  24387. var value = INTRINSICS[intrinsicName];
  24388. if (value === needsEval) {
  24389. value = doEval(intrinsicName);
  24390. }
  24391. if (typeof value === 'undefined' && !allowMissing) {
  24392. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  24393. }
  24394. return {
  24395. alias: alias,
  24396. name: intrinsicName,
  24397. value: value
  24398. };
  24399. }
  24400. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  24401. };
  24402. module.exports = function GetIntrinsic(name, allowMissing) {
  24403. if (typeof name !== 'string' || name.length === 0) {
  24404. throw new $TypeError('intrinsic name must be a non-empty string');
  24405. }
  24406. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  24407. throw new $TypeError('"allowMissing" argument must be a boolean');
  24408. }
  24409. var parts = stringToPath(name);
  24410. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  24411. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  24412. var intrinsicRealName = intrinsic.name;
  24413. var value = intrinsic.value;
  24414. var skipFurtherCaching = false;
  24415. var alias = intrinsic.alias;
  24416. if (alias) {
  24417. intrinsicBaseName = alias[0];
  24418. $spliceApply(parts, $concat([0, 1], alias));
  24419. }
  24420. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  24421. var part = parts[i];
  24422. var first = $strSlice(part, 0, 1);
  24423. var last = $strSlice(part, -1);
  24424. if (
  24425. (
  24426. (first === '"' || first === "'" || first === '`')
  24427. || (last === '"' || last === "'" || last === '`')
  24428. )
  24429. && first !== last
  24430. ) {
  24431. throw new $SyntaxError('property names with quotes must have matching quotes');
  24432. }
  24433. if (part === 'constructor' || !isOwn) {
  24434. skipFurtherCaching = true;
  24435. }
  24436. intrinsicBaseName += '.' + part;
  24437. intrinsicRealName = '%' + intrinsicBaseName + '%';
  24438. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  24439. value = INTRINSICS[intrinsicRealName];
  24440. } else if (value != null) {
  24441. if (!(part in value)) {
  24442. if (!allowMissing) {
  24443. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  24444. }
  24445. return void undefined;
  24446. }
  24447. if ($gOPD && (i + 1) >= parts.length) {
  24448. var desc = $gOPD(value, part);
  24449. isOwn = !!desc;
  24450. // By convention, when a data property is converted to an accessor
  24451. // property to emulate a data property that does not suffer from
  24452. // the override mistake, that accessor's getter is marked with
  24453. // an `originalValue` property. Here, when we detect this, we
  24454. // uphold the illusion by pretending to see that original data
  24455. // property, i.e., returning the value rather than the getter
  24456. // itself.
  24457. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  24458. value = desc.get;
  24459. } else {
  24460. value = value[part];
  24461. }
  24462. } else {
  24463. isOwn = hasOwn(value, part);
  24464. value = value[part];
  24465. }
  24466. if (isOwn && !skipFurtherCaching) {
  24467. INTRINSICS[intrinsicRealName] = value;
  24468. }
  24469. }
  24470. }
  24471. return value;
  24472. };
  24473. /***/ }),
  24474. /***/ 1585:
  24475. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24476. "use strict";
  24477. const {PassThrough} = __nccwpck_require__(2781);
  24478. module.exports = options => {
  24479. options = Object.assign({}, options);
  24480. const {array} = options;
  24481. let {encoding} = options;
  24482. const buffer = encoding === 'buffer';
  24483. let objectMode = false;
  24484. if (array) {
  24485. objectMode = !(encoding || buffer);
  24486. } else {
  24487. encoding = encoding || 'utf8';
  24488. }
  24489. if (buffer) {
  24490. encoding = null;
  24491. }
  24492. let len = 0;
  24493. const ret = [];
  24494. const stream = new PassThrough({objectMode});
  24495. if (encoding) {
  24496. stream.setEncoding(encoding);
  24497. }
  24498. stream.on('data', chunk => {
  24499. ret.push(chunk);
  24500. if (objectMode) {
  24501. len = ret.length;
  24502. } else {
  24503. len += chunk.length;
  24504. }
  24505. });
  24506. stream.getBufferedValue = () => {
  24507. if (array) {
  24508. return ret;
  24509. }
  24510. return buffer ? Buffer.concat(ret, len) : ret.join('');
  24511. };
  24512. stream.getBufferedLength = () => len;
  24513. return stream;
  24514. };
  24515. /***/ }),
  24516. /***/ 1766:
  24517. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24518. "use strict";
  24519. const pump = __nccwpck_require__(8341);
  24520. const bufferStream = __nccwpck_require__(1585);
  24521. class MaxBufferError extends Error {
  24522. constructor() {
  24523. super('maxBuffer exceeded');
  24524. this.name = 'MaxBufferError';
  24525. }
  24526. }
  24527. function getStream(inputStream, options) {
  24528. if (!inputStream) {
  24529. return Promise.reject(new Error('Expected a stream'));
  24530. }
  24531. options = Object.assign({maxBuffer: Infinity}, options);
  24532. const {maxBuffer} = options;
  24533. let stream;
  24534. return new Promise((resolve, reject) => {
  24535. const rejectPromise = error => {
  24536. if (error) { // A null check
  24537. error.bufferedData = stream.getBufferedValue();
  24538. }
  24539. reject(error);
  24540. };
  24541. stream = pump(inputStream, bufferStream(options), error => {
  24542. if (error) {
  24543. rejectPromise(error);
  24544. return;
  24545. }
  24546. resolve();
  24547. });
  24548. stream.on('data', () => {
  24549. if (stream.getBufferedLength() > maxBuffer) {
  24550. rejectPromise(new MaxBufferError());
  24551. }
  24552. });
  24553. }).then(() => stream.getBufferedValue());
  24554. }
  24555. module.exports = getStream;
  24556. module.exports.buffer = (stream, options) => getStream(stream, Object.assign({}, options, {encoding: 'buffer'}));
  24557. module.exports.array = (stream, options) => getStream(stream, Object.assign({}, options, {array: true}));
  24558. module.exports.MaxBufferError = MaxBufferError;
  24559. /***/ }),
  24560. /***/ 587:
  24561. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24562. "use strict";
  24563. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  24564. var hasSymbolSham = __nccwpck_require__(7747);
  24565. module.exports = function hasNativeSymbols() {
  24566. if (typeof origSymbol !== 'function') { return false; }
  24567. if (typeof Symbol !== 'function') { return false; }
  24568. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  24569. if (typeof Symbol('bar') !== 'symbol') { return false; }
  24570. return hasSymbolSham();
  24571. };
  24572. /***/ }),
  24573. /***/ 7747:
  24574. /***/ ((module) => {
  24575. "use strict";
  24576. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  24577. module.exports = function hasSymbols() {
  24578. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  24579. if (typeof Symbol.iterator === 'symbol') { return true; }
  24580. var obj = {};
  24581. var sym = Symbol('test');
  24582. var symObj = Object(sym);
  24583. if (typeof sym === 'string') { return false; }
  24584. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  24585. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  24586. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  24587. // if (sym instanceof Symbol) { return false; }
  24588. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  24589. // if (!(symObj instanceof Symbol)) { return false; }
  24590. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  24591. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  24592. var symVal = 42;
  24593. obj[sym] = symVal;
  24594. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  24595. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  24596. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  24597. var syms = Object.getOwnPropertySymbols(obj);
  24598. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  24599. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  24600. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  24601. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  24602. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  24603. }
  24604. return true;
  24605. };
  24606. /***/ }),
  24607. /***/ 6339:
  24608. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24609. "use strict";
  24610. var bind = __nccwpck_require__(8334);
  24611. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  24612. /***/ }),
  24613. /***/ 8840:
  24614. /***/ ((module) => {
  24615. "use strict";
  24616. /*!
  24617. * isobject <https://github.com/jonschlinkert/isobject>
  24618. *
  24619. * Copyright (c) 2014-2017, Jon Schlinkert.
  24620. * Released under the MIT License.
  24621. */
  24622. function isObject(val) {
  24623. return val != null && typeof val === 'object' && Array.isArray(val) === false;
  24624. }
  24625. /*!
  24626. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  24627. *
  24628. * Copyright (c) 2014-2017, Jon Schlinkert.
  24629. * Released under the MIT License.
  24630. */
  24631. function isObjectObject(o) {
  24632. return isObject(o) === true
  24633. && Object.prototype.toString.call(o) === '[object Object]';
  24634. }
  24635. function isPlainObject(o) {
  24636. var ctor,prot;
  24637. if (isObjectObject(o) === false) return false;
  24638. // If has modified constructor
  24639. ctor = o.constructor;
  24640. if (typeof ctor !== 'function') return false;
  24641. // If has modified prototype
  24642. prot = ctor.prototype;
  24643. if (isObjectObject(prot) === false) return false;
  24644. // If constructor does not have an Object-specific method
  24645. if (prot.hasOwnProperty('isPrototypeOf') === false) {
  24646. return false;
  24647. }
  24648. // Most likely a plain Object
  24649. return true;
  24650. }
  24651. module.exports = isPlainObject;
  24652. /***/ }),
  24653. /***/ 1554:
  24654. /***/ ((module) => {
  24655. "use strict";
  24656. var isStream = module.exports = function (stream) {
  24657. return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function';
  24658. };
  24659. isStream.writable = function (stream) {
  24660. return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object';
  24661. };
  24662. isStream.readable = function (stream) {
  24663. return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object';
  24664. };
  24665. isStream.duplex = function (stream) {
  24666. return isStream.writable(stream) && isStream.readable(stream);
  24667. };
  24668. isStream.transform = function (stream) {
  24669. return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object';
  24670. };
  24671. /***/ }),
  24672. /***/ 7126:
  24673. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24674. var fs = __nccwpck_require__(7147)
  24675. var core
  24676. if (process.platform === 'win32' || global.TESTING_WINDOWS) {
  24677. core = __nccwpck_require__(2001)
  24678. } else {
  24679. core = __nccwpck_require__(9728)
  24680. }
  24681. module.exports = isexe
  24682. isexe.sync = sync
  24683. function isexe (path, options, cb) {
  24684. if (typeof options === 'function') {
  24685. cb = options
  24686. options = {}
  24687. }
  24688. if (!cb) {
  24689. if (typeof Promise !== 'function') {
  24690. throw new TypeError('callback not provided')
  24691. }
  24692. return new Promise(function (resolve, reject) {
  24693. isexe(path, options || {}, function (er, is) {
  24694. if (er) {
  24695. reject(er)
  24696. } else {
  24697. resolve(is)
  24698. }
  24699. })
  24700. })
  24701. }
  24702. core(path, options || {}, function (er, is) {
  24703. // ignore EACCES because that just means we aren't allowed to run it
  24704. if (er) {
  24705. if (er.code === 'EACCES' || options && options.ignoreErrors) {
  24706. er = null
  24707. is = false
  24708. }
  24709. }
  24710. cb(er, is)
  24711. })
  24712. }
  24713. function sync (path, options) {
  24714. // my kingdom for a filtered catch
  24715. try {
  24716. return core.sync(path, options || {})
  24717. } catch (er) {
  24718. if (options && options.ignoreErrors || er.code === 'EACCES') {
  24719. return false
  24720. } else {
  24721. throw er
  24722. }
  24723. }
  24724. }
  24725. /***/ }),
  24726. /***/ 9728:
  24727. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24728. module.exports = isexe
  24729. isexe.sync = sync
  24730. var fs = __nccwpck_require__(7147)
  24731. function isexe (path, options, cb) {
  24732. fs.stat(path, function (er, stat) {
  24733. cb(er, er ? false : checkStat(stat, options))
  24734. })
  24735. }
  24736. function sync (path, options) {
  24737. return checkStat(fs.statSync(path), options)
  24738. }
  24739. function checkStat (stat, options) {
  24740. return stat.isFile() && checkMode(stat, options)
  24741. }
  24742. function checkMode (stat, options) {
  24743. var mod = stat.mode
  24744. var uid = stat.uid
  24745. var gid = stat.gid
  24746. var myUid = options.uid !== undefined ?
  24747. options.uid : process.getuid && process.getuid()
  24748. var myGid = options.gid !== undefined ?
  24749. options.gid : process.getgid && process.getgid()
  24750. var u = parseInt('100', 8)
  24751. var g = parseInt('010', 8)
  24752. var o = parseInt('001', 8)
  24753. var ug = u | g
  24754. var ret = (mod & o) ||
  24755. (mod & g) && gid === myGid ||
  24756. (mod & u) && uid === myUid ||
  24757. (mod & ug) && myUid === 0
  24758. return ret
  24759. }
  24760. /***/ }),
  24761. /***/ 2001:
  24762. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24763. module.exports = isexe
  24764. isexe.sync = sync
  24765. var fs = __nccwpck_require__(7147)
  24766. function checkPathExt (path, options) {
  24767. var pathext = options.pathExt !== undefined ?
  24768. options.pathExt : process.env.PATHEXT
  24769. if (!pathext) {
  24770. return true
  24771. }
  24772. pathext = pathext.split(';')
  24773. if (pathext.indexOf('') !== -1) {
  24774. return true
  24775. }
  24776. for (var i = 0; i < pathext.length; i++) {
  24777. var p = pathext[i].toLowerCase()
  24778. if (p && path.substr(-p.length).toLowerCase() === p) {
  24779. return true
  24780. }
  24781. }
  24782. return false
  24783. }
  24784. function checkStat (stat, path, options) {
  24785. if (!stat.isSymbolicLink() && !stat.isFile()) {
  24786. return false
  24787. }
  24788. return checkPathExt(path, options)
  24789. }
  24790. function isexe (path, options, cb) {
  24791. fs.stat(path, function (er, stat) {
  24792. cb(er, er ? false : checkStat(stat, path, options))
  24793. })
  24794. }
  24795. function sync (path, options) {
  24796. return checkStat(fs.statSync(path), path, options)
  24797. }
  24798. /***/ }),
  24799. /***/ 9197:
  24800. /***/ ((module) => {
  24801. /**
  24802. * lodash (Custom Build) <https://lodash.com/>
  24803. * Build: `lodash modularize exports="npm" -o ./`
  24804. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  24805. * Released under MIT license <https://lodash.com/license>
  24806. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  24807. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  24808. */
  24809. /** Used as the `TypeError` message for "Functions" methods. */
  24810. var FUNC_ERROR_TEXT = 'Expected a function';
  24811. /** Used to stand-in for `undefined` hash values. */
  24812. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  24813. /** Used as references for various `Number` constants. */
  24814. var INFINITY = 1 / 0;
  24815. /** `Object#toString` result references. */
  24816. var funcTag = '[object Function]',
  24817. genTag = '[object GeneratorFunction]',
  24818. symbolTag = '[object Symbol]';
  24819. /** Used to match property names within property paths. */
  24820. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  24821. reIsPlainProp = /^\w*$/,
  24822. reLeadingDot = /^\./,
  24823. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  24824. /**
  24825. * Used to match `RegExp`
  24826. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  24827. */
  24828. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  24829. /** Used to match backslashes in property paths. */
  24830. var reEscapeChar = /\\(\\)?/g;
  24831. /** Used to detect host constructors (Safari). */
  24832. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  24833. /** Detect free variable `global` from Node.js. */
  24834. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  24835. /** Detect free variable `self`. */
  24836. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  24837. /** Used as a reference to the global object. */
  24838. var root = freeGlobal || freeSelf || Function('return this')();
  24839. /**
  24840. * Gets the value at `key` of `object`.
  24841. *
  24842. * @private
  24843. * @param {Object} [object] The object to query.
  24844. * @param {string} key The key of the property to get.
  24845. * @returns {*} Returns the property value.
  24846. */
  24847. function getValue(object, key) {
  24848. return object == null ? undefined : object[key];
  24849. }
  24850. /**
  24851. * Checks if `value` is a host object in IE < 9.
  24852. *
  24853. * @private
  24854. * @param {*} value The value to check.
  24855. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  24856. */
  24857. function isHostObject(value) {
  24858. // Many host objects are `Object` objects that can coerce to strings
  24859. // despite having improperly defined `toString` methods.
  24860. var result = false;
  24861. if (value != null && typeof value.toString != 'function') {
  24862. try {
  24863. result = !!(value + '');
  24864. } catch (e) {}
  24865. }
  24866. return result;
  24867. }
  24868. /** Used for built-in method references. */
  24869. var arrayProto = Array.prototype,
  24870. funcProto = Function.prototype,
  24871. objectProto = Object.prototype;
  24872. /** Used to detect overreaching core-js shims. */
  24873. var coreJsData = root['__core-js_shared__'];
  24874. /** Used to detect methods masquerading as native. */
  24875. var maskSrcKey = (function() {
  24876. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  24877. return uid ? ('Symbol(src)_1.' + uid) : '';
  24878. }());
  24879. /** Used to resolve the decompiled source of functions. */
  24880. var funcToString = funcProto.toString;
  24881. /** Used to check objects for own properties. */
  24882. var hasOwnProperty = objectProto.hasOwnProperty;
  24883. /**
  24884. * Used to resolve the
  24885. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  24886. * of values.
  24887. */
  24888. var objectToString = objectProto.toString;
  24889. /** Used to detect if a method is native. */
  24890. var reIsNative = RegExp('^' +
  24891. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  24892. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  24893. );
  24894. /** Built-in value references. */
  24895. var Symbol = root.Symbol,
  24896. splice = arrayProto.splice;
  24897. /* Built-in method references that are verified to be native. */
  24898. var Map = getNative(root, 'Map'),
  24899. nativeCreate = getNative(Object, 'create');
  24900. /** Used to convert symbols to primitives and strings. */
  24901. var symbolProto = Symbol ? Symbol.prototype : undefined,
  24902. symbolToString = symbolProto ? symbolProto.toString : undefined;
  24903. /**
  24904. * Creates a hash object.
  24905. *
  24906. * @private
  24907. * @constructor
  24908. * @param {Array} [entries] The key-value pairs to cache.
  24909. */
  24910. function Hash(entries) {
  24911. var index = -1,
  24912. length = entries ? entries.length : 0;
  24913. this.clear();
  24914. while (++index < length) {
  24915. var entry = entries[index];
  24916. this.set(entry[0], entry[1]);
  24917. }
  24918. }
  24919. /**
  24920. * Removes all key-value entries from the hash.
  24921. *
  24922. * @private
  24923. * @name clear
  24924. * @memberOf Hash
  24925. */
  24926. function hashClear() {
  24927. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  24928. }
  24929. /**
  24930. * Removes `key` and its value from the hash.
  24931. *
  24932. * @private
  24933. * @name delete
  24934. * @memberOf Hash
  24935. * @param {Object} hash The hash to modify.
  24936. * @param {string} key The key of the value to remove.
  24937. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24938. */
  24939. function hashDelete(key) {
  24940. return this.has(key) && delete this.__data__[key];
  24941. }
  24942. /**
  24943. * Gets the hash value for `key`.
  24944. *
  24945. * @private
  24946. * @name get
  24947. * @memberOf Hash
  24948. * @param {string} key The key of the value to get.
  24949. * @returns {*} Returns the entry value.
  24950. */
  24951. function hashGet(key) {
  24952. var data = this.__data__;
  24953. if (nativeCreate) {
  24954. var result = data[key];
  24955. return result === HASH_UNDEFINED ? undefined : result;
  24956. }
  24957. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  24958. }
  24959. /**
  24960. * Checks if a hash value for `key` exists.
  24961. *
  24962. * @private
  24963. * @name has
  24964. * @memberOf Hash
  24965. * @param {string} key The key of the entry to check.
  24966. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24967. */
  24968. function hashHas(key) {
  24969. var data = this.__data__;
  24970. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  24971. }
  24972. /**
  24973. * Sets the hash `key` to `value`.
  24974. *
  24975. * @private
  24976. * @name set
  24977. * @memberOf Hash
  24978. * @param {string} key The key of the value to set.
  24979. * @param {*} value The value to set.
  24980. * @returns {Object} Returns the hash instance.
  24981. */
  24982. function hashSet(key, value) {
  24983. var data = this.__data__;
  24984. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  24985. return this;
  24986. }
  24987. // Add methods to `Hash`.
  24988. Hash.prototype.clear = hashClear;
  24989. Hash.prototype['delete'] = hashDelete;
  24990. Hash.prototype.get = hashGet;
  24991. Hash.prototype.has = hashHas;
  24992. Hash.prototype.set = hashSet;
  24993. /**
  24994. * Creates an list cache object.
  24995. *
  24996. * @private
  24997. * @constructor
  24998. * @param {Array} [entries] The key-value pairs to cache.
  24999. */
  25000. function ListCache(entries) {
  25001. var index = -1,
  25002. length = entries ? entries.length : 0;
  25003. this.clear();
  25004. while (++index < length) {
  25005. var entry = entries[index];
  25006. this.set(entry[0], entry[1]);
  25007. }
  25008. }
  25009. /**
  25010. * Removes all key-value entries from the list cache.
  25011. *
  25012. * @private
  25013. * @name clear
  25014. * @memberOf ListCache
  25015. */
  25016. function listCacheClear() {
  25017. this.__data__ = [];
  25018. }
  25019. /**
  25020. * Removes `key` and its value from the list cache.
  25021. *
  25022. * @private
  25023. * @name delete
  25024. * @memberOf ListCache
  25025. * @param {string} key The key of the value to remove.
  25026. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  25027. */
  25028. function listCacheDelete(key) {
  25029. var data = this.__data__,
  25030. index = assocIndexOf(data, key);
  25031. if (index < 0) {
  25032. return false;
  25033. }
  25034. var lastIndex = data.length - 1;
  25035. if (index == lastIndex) {
  25036. data.pop();
  25037. } else {
  25038. splice.call(data, index, 1);
  25039. }
  25040. return true;
  25041. }
  25042. /**
  25043. * Gets the list cache value for `key`.
  25044. *
  25045. * @private
  25046. * @name get
  25047. * @memberOf ListCache
  25048. * @param {string} key The key of the value to get.
  25049. * @returns {*} Returns the entry value.
  25050. */
  25051. function listCacheGet(key) {
  25052. var data = this.__data__,
  25053. index = assocIndexOf(data, key);
  25054. return index < 0 ? undefined : data[index][1];
  25055. }
  25056. /**
  25057. * Checks if a list cache value for `key` exists.
  25058. *
  25059. * @private
  25060. * @name has
  25061. * @memberOf ListCache
  25062. * @param {string} key The key of the entry to check.
  25063. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  25064. */
  25065. function listCacheHas(key) {
  25066. return assocIndexOf(this.__data__, key) > -1;
  25067. }
  25068. /**
  25069. * Sets the list cache `key` to `value`.
  25070. *
  25071. * @private
  25072. * @name set
  25073. * @memberOf ListCache
  25074. * @param {string} key The key of the value to set.
  25075. * @param {*} value The value to set.
  25076. * @returns {Object} Returns the list cache instance.
  25077. */
  25078. function listCacheSet(key, value) {
  25079. var data = this.__data__,
  25080. index = assocIndexOf(data, key);
  25081. if (index < 0) {
  25082. data.push([key, value]);
  25083. } else {
  25084. data[index][1] = value;
  25085. }
  25086. return this;
  25087. }
  25088. // Add methods to `ListCache`.
  25089. ListCache.prototype.clear = listCacheClear;
  25090. ListCache.prototype['delete'] = listCacheDelete;
  25091. ListCache.prototype.get = listCacheGet;
  25092. ListCache.prototype.has = listCacheHas;
  25093. ListCache.prototype.set = listCacheSet;
  25094. /**
  25095. * Creates a map cache object to store key-value pairs.
  25096. *
  25097. * @private
  25098. * @constructor
  25099. * @param {Array} [entries] The key-value pairs to cache.
  25100. */
  25101. function MapCache(entries) {
  25102. var index = -1,
  25103. length = entries ? entries.length : 0;
  25104. this.clear();
  25105. while (++index < length) {
  25106. var entry = entries[index];
  25107. this.set(entry[0], entry[1]);
  25108. }
  25109. }
  25110. /**
  25111. * Removes all key-value entries from the map.
  25112. *
  25113. * @private
  25114. * @name clear
  25115. * @memberOf MapCache
  25116. */
  25117. function mapCacheClear() {
  25118. this.__data__ = {
  25119. 'hash': new Hash,
  25120. 'map': new (Map || ListCache),
  25121. 'string': new Hash
  25122. };
  25123. }
  25124. /**
  25125. * Removes `key` and its value from the map.
  25126. *
  25127. * @private
  25128. * @name delete
  25129. * @memberOf MapCache
  25130. * @param {string} key The key of the value to remove.
  25131. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  25132. */
  25133. function mapCacheDelete(key) {
  25134. return getMapData(this, key)['delete'](key);
  25135. }
  25136. /**
  25137. * Gets the map value for `key`.
  25138. *
  25139. * @private
  25140. * @name get
  25141. * @memberOf MapCache
  25142. * @param {string} key The key of the value to get.
  25143. * @returns {*} Returns the entry value.
  25144. */
  25145. function mapCacheGet(key) {
  25146. return getMapData(this, key).get(key);
  25147. }
  25148. /**
  25149. * Checks if a map value for `key` exists.
  25150. *
  25151. * @private
  25152. * @name has
  25153. * @memberOf MapCache
  25154. * @param {string} key The key of the entry to check.
  25155. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  25156. */
  25157. function mapCacheHas(key) {
  25158. return getMapData(this, key).has(key);
  25159. }
  25160. /**
  25161. * Sets the map `key` to `value`.
  25162. *
  25163. * @private
  25164. * @name set
  25165. * @memberOf MapCache
  25166. * @param {string} key The key of the value to set.
  25167. * @param {*} value The value to set.
  25168. * @returns {Object} Returns the map cache instance.
  25169. */
  25170. function mapCacheSet(key, value) {
  25171. getMapData(this, key).set(key, value);
  25172. return this;
  25173. }
  25174. // Add methods to `MapCache`.
  25175. MapCache.prototype.clear = mapCacheClear;
  25176. MapCache.prototype['delete'] = mapCacheDelete;
  25177. MapCache.prototype.get = mapCacheGet;
  25178. MapCache.prototype.has = mapCacheHas;
  25179. MapCache.prototype.set = mapCacheSet;
  25180. /**
  25181. * Gets the index at which the `key` is found in `array` of key-value pairs.
  25182. *
  25183. * @private
  25184. * @param {Array} array The array to inspect.
  25185. * @param {*} key The key to search for.
  25186. * @returns {number} Returns the index of the matched value, else `-1`.
  25187. */
  25188. function assocIndexOf(array, key) {
  25189. var length = array.length;
  25190. while (length--) {
  25191. if (eq(array[length][0], key)) {
  25192. return length;
  25193. }
  25194. }
  25195. return -1;
  25196. }
  25197. /**
  25198. * The base implementation of `_.get` without support for default values.
  25199. *
  25200. * @private
  25201. * @param {Object} object The object to query.
  25202. * @param {Array|string} path The path of the property to get.
  25203. * @returns {*} Returns the resolved value.
  25204. */
  25205. function baseGet(object, path) {
  25206. path = isKey(path, object) ? [path] : castPath(path);
  25207. var index = 0,
  25208. length = path.length;
  25209. while (object != null && index < length) {
  25210. object = object[toKey(path[index++])];
  25211. }
  25212. return (index && index == length) ? object : undefined;
  25213. }
  25214. /**
  25215. * The base implementation of `_.isNative` without bad shim checks.
  25216. *
  25217. * @private
  25218. * @param {*} value The value to check.
  25219. * @returns {boolean} Returns `true` if `value` is a native function,
  25220. * else `false`.
  25221. */
  25222. function baseIsNative(value) {
  25223. if (!isObject(value) || isMasked(value)) {
  25224. return false;
  25225. }
  25226. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  25227. return pattern.test(toSource(value));
  25228. }
  25229. /**
  25230. * The base implementation of `_.toString` which doesn't convert nullish
  25231. * values to empty strings.
  25232. *
  25233. * @private
  25234. * @param {*} value The value to process.
  25235. * @returns {string} Returns the string.
  25236. */
  25237. function baseToString(value) {
  25238. // Exit early for strings to avoid a performance hit in some environments.
  25239. if (typeof value == 'string') {
  25240. return value;
  25241. }
  25242. if (isSymbol(value)) {
  25243. return symbolToString ? symbolToString.call(value) : '';
  25244. }
  25245. var result = (value + '');
  25246. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  25247. }
  25248. /**
  25249. * Casts `value` to a path array if it's not one.
  25250. *
  25251. * @private
  25252. * @param {*} value The value to inspect.
  25253. * @returns {Array} Returns the cast property path array.
  25254. */
  25255. function castPath(value) {
  25256. return isArray(value) ? value : stringToPath(value);
  25257. }
  25258. /**
  25259. * Gets the data for `map`.
  25260. *
  25261. * @private
  25262. * @param {Object} map The map to query.
  25263. * @param {string} key The reference key.
  25264. * @returns {*} Returns the map data.
  25265. */
  25266. function getMapData(map, key) {
  25267. var data = map.__data__;
  25268. return isKeyable(key)
  25269. ? data[typeof key == 'string' ? 'string' : 'hash']
  25270. : data.map;
  25271. }
  25272. /**
  25273. * Gets the native function at `key` of `object`.
  25274. *
  25275. * @private
  25276. * @param {Object} object The object to query.
  25277. * @param {string} key The key of the method to get.
  25278. * @returns {*} Returns the function if it's native, else `undefined`.
  25279. */
  25280. function getNative(object, key) {
  25281. var value = getValue(object, key);
  25282. return baseIsNative(value) ? value : undefined;
  25283. }
  25284. /**
  25285. * Checks if `value` is a property name and not a property path.
  25286. *
  25287. * @private
  25288. * @param {*} value The value to check.
  25289. * @param {Object} [object] The object to query keys on.
  25290. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  25291. */
  25292. function isKey(value, object) {
  25293. if (isArray(value)) {
  25294. return false;
  25295. }
  25296. var type = typeof value;
  25297. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  25298. value == null || isSymbol(value)) {
  25299. return true;
  25300. }
  25301. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  25302. (object != null && value in Object(object));
  25303. }
  25304. /**
  25305. * Checks if `value` is suitable for use as unique object key.
  25306. *
  25307. * @private
  25308. * @param {*} value The value to check.
  25309. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  25310. */
  25311. function isKeyable(value) {
  25312. var type = typeof value;
  25313. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  25314. ? (value !== '__proto__')
  25315. : (value === null);
  25316. }
  25317. /**
  25318. * Checks if `func` has its source masked.
  25319. *
  25320. * @private
  25321. * @param {Function} func The function to check.
  25322. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  25323. */
  25324. function isMasked(func) {
  25325. return !!maskSrcKey && (maskSrcKey in func);
  25326. }
  25327. /**
  25328. * Converts `string` to a property path array.
  25329. *
  25330. * @private
  25331. * @param {string} string The string to convert.
  25332. * @returns {Array} Returns the property path array.
  25333. */
  25334. var stringToPath = memoize(function(string) {
  25335. string = toString(string);
  25336. var result = [];
  25337. if (reLeadingDot.test(string)) {
  25338. result.push('');
  25339. }
  25340. string.replace(rePropName, function(match, number, quote, string) {
  25341. result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
  25342. });
  25343. return result;
  25344. });
  25345. /**
  25346. * Converts `value` to a string key if it's not a string or symbol.
  25347. *
  25348. * @private
  25349. * @param {*} value The value to inspect.
  25350. * @returns {string|symbol} Returns the key.
  25351. */
  25352. function toKey(value) {
  25353. if (typeof value == 'string' || isSymbol(value)) {
  25354. return value;
  25355. }
  25356. var result = (value + '');
  25357. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  25358. }
  25359. /**
  25360. * Converts `func` to its source code.
  25361. *
  25362. * @private
  25363. * @param {Function} func The function to process.
  25364. * @returns {string} Returns the source code.
  25365. */
  25366. function toSource(func) {
  25367. if (func != null) {
  25368. try {
  25369. return funcToString.call(func);
  25370. } catch (e) {}
  25371. try {
  25372. return (func + '');
  25373. } catch (e) {}
  25374. }
  25375. return '';
  25376. }
  25377. /**
  25378. * Creates a function that memoizes the result of `func`. If `resolver` is
  25379. * provided, it determines the cache key for storing the result based on the
  25380. * arguments provided to the memoized function. By default, the first argument
  25381. * provided to the memoized function is used as the map cache key. The `func`
  25382. * is invoked with the `this` binding of the memoized function.
  25383. *
  25384. * **Note:** The cache is exposed as the `cache` property on the memoized
  25385. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  25386. * constructor with one whose instances implement the
  25387. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  25388. * method interface of `delete`, `get`, `has`, and `set`.
  25389. *
  25390. * @static
  25391. * @memberOf _
  25392. * @since 0.1.0
  25393. * @category Function
  25394. * @param {Function} func The function to have its output memoized.
  25395. * @param {Function} [resolver] The function to resolve the cache key.
  25396. * @returns {Function} Returns the new memoized function.
  25397. * @example
  25398. *
  25399. * var object = { 'a': 1, 'b': 2 };
  25400. * var other = { 'c': 3, 'd': 4 };
  25401. *
  25402. * var values = _.memoize(_.values);
  25403. * values(object);
  25404. * // => [1, 2]
  25405. *
  25406. * values(other);
  25407. * // => [3, 4]
  25408. *
  25409. * object.a = 2;
  25410. * values(object);
  25411. * // => [1, 2]
  25412. *
  25413. * // Modify the result cache.
  25414. * values.cache.set(object, ['a', 'b']);
  25415. * values(object);
  25416. * // => ['a', 'b']
  25417. *
  25418. * // Replace `_.memoize.Cache`.
  25419. * _.memoize.Cache = WeakMap;
  25420. */
  25421. function memoize(func, resolver) {
  25422. if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
  25423. throw new TypeError(FUNC_ERROR_TEXT);
  25424. }
  25425. var memoized = function() {
  25426. var args = arguments,
  25427. key = resolver ? resolver.apply(this, args) : args[0],
  25428. cache = memoized.cache;
  25429. if (cache.has(key)) {
  25430. return cache.get(key);
  25431. }
  25432. var result = func.apply(this, args);
  25433. memoized.cache = cache.set(key, result);
  25434. return result;
  25435. };
  25436. memoized.cache = new (memoize.Cache || MapCache);
  25437. return memoized;
  25438. }
  25439. // Assign cache to `_.memoize`.
  25440. memoize.Cache = MapCache;
  25441. /**
  25442. * Performs a
  25443. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  25444. * comparison between two values to determine if they are equivalent.
  25445. *
  25446. * @static
  25447. * @memberOf _
  25448. * @since 4.0.0
  25449. * @category Lang
  25450. * @param {*} value The value to compare.
  25451. * @param {*} other The other value to compare.
  25452. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  25453. * @example
  25454. *
  25455. * var object = { 'a': 1 };
  25456. * var other = { 'a': 1 };
  25457. *
  25458. * _.eq(object, object);
  25459. * // => true
  25460. *
  25461. * _.eq(object, other);
  25462. * // => false
  25463. *
  25464. * _.eq('a', 'a');
  25465. * // => true
  25466. *
  25467. * _.eq('a', Object('a'));
  25468. * // => false
  25469. *
  25470. * _.eq(NaN, NaN);
  25471. * // => true
  25472. */
  25473. function eq(value, other) {
  25474. return value === other || (value !== value && other !== other);
  25475. }
  25476. /**
  25477. * Checks if `value` is classified as an `Array` object.
  25478. *
  25479. * @static
  25480. * @memberOf _
  25481. * @since 0.1.0
  25482. * @category Lang
  25483. * @param {*} value The value to check.
  25484. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  25485. * @example
  25486. *
  25487. * _.isArray([1, 2, 3]);
  25488. * // => true
  25489. *
  25490. * _.isArray(document.body.children);
  25491. * // => false
  25492. *
  25493. * _.isArray('abc');
  25494. * // => false
  25495. *
  25496. * _.isArray(_.noop);
  25497. * // => false
  25498. */
  25499. var isArray = Array.isArray;
  25500. /**
  25501. * Checks if `value` is classified as a `Function` object.
  25502. *
  25503. * @static
  25504. * @memberOf _
  25505. * @since 0.1.0
  25506. * @category Lang
  25507. * @param {*} value The value to check.
  25508. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  25509. * @example
  25510. *
  25511. * _.isFunction(_);
  25512. * // => true
  25513. *
  25514. * _.isFunction(/abc/);
  25515. * // => false
  25516. */
  25517. function isFunction(value) {
  25518. // The use of `Object#toString` avoids issues with the `typeof` operator
  25519. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  25520. var tag = isObject(value) ? objectToString.call(value) : '';
  25521. return tag == funcTag || tag == genTag;
  25522. }
  25523. /**
  25524. * Checks if `value` is the
  25525. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  25526. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  25527. *
  25528. * @static
  25529. * @memberOf _
  25530. * @since 0.1.0
  25531. * @category Lang
  25532. * @param {*} value The value to check.
  25533. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  25534. * @example
  25535. *
  25536. * _.isObject({});
  25537. * // => true
  25538. *
  25539. * _.isObject([1, 2, 3]);
  25540. * // => true
  25541. *
  25542. * _.isObject(_.noop);
  25543. * // => true
  25544. *
  25545. * _.isObject(null);
  25546. * // => false
  25547. */
  25548. function isObject(value) {
  25549. var type = typeof value;
  25550. return !!value && (type == 'object' || type == 'function');
  25551. }
  25552. /**
  25553. * Checks if `value` is object-like. A value is object-like if it's not `null`
  25554. * and has a `typeof` result of "object".
  25555. *
  25556. * @static
  25557. * @memberOf _
  25558. * @since 4.0.0
  25559. * @category Lang
  25560. * @param {*} value The value to check.
  25561. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  25562. * @example
  25563. *
  25564. * _.isObjectLike({});
  25565. * // => true
  25566. *
  25567. * _.isObjectLike([1, 2, 3]);
  25568. * // => true
  25569. *
  25570. * _.isObjectLike(_.noop);
  25571. * // => false
  25572. *
  25573. * _.isObjectLike(null);
  25574. * // => false
  25575. */
  25576. function isObjectLike(value) {
  25577. return !!value && typeof value == 'object';
  25578. }
  25579. /**
  25580. * Checks if `value` is classified as a `Symbol` primitive or object.
  25581. *
  25582. * @static
  25583. * @memberOf _
  25584. * @since 4.0.0
  25585. * @category Lang
  25586. * @param {*} value The value to check.
  25587. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  25588. * @example
  25589. *
  25590. * _.isSymbol(Symbol.iterator);
  25591. * // => true
  25592. *
  25593. * _.isSymbol('abc');
  25594. * // => false
  25595. */
  25596. function isSymbol(value) {
  25597. return typeof value == 'symbol' ||
  25598. (isObjectLike(value) && objectToString.call(value) == symbolTag);
  25599. }
  25600. /**
  25601. * Converts `value` to a string. An empty string is returned for `null`
  25602. * and `undefined` values. The sign of `-0` is preserved.
  25603. *
  25604. * @static
  25605. * @memberOf _
  25606. * @since 4.0.0
  25607. * @category Lang
  25608. * @param {*} value The value to process.
  25609. * @returns {string} Returns the string.
  25610. * @example
  25611. *
  25612. * _.toString(null);
  25613. * // => ''
  25614. *
  25615. * _.toString(-0);
  25616. * // => '-0'
  25617. *
  25618. * _.toString([1, 2, 3]);
  25619. * // => '1,2,3'
  25620. */
  25621. function toString(value) {
  25622. return value == null ? '' : baseToString(value);
  25623. }
  25624. /**
  25625. * Gets the value at `path` of `object`. If the resolved value is
  25626. * `undefined`, the `defaultValue` is returned in its place.
  25627. *
  25628. * @static
  25629. * @memberOf _
  25630. * @since 3.7.0
  25631. * @category Object
  25632. * @param {Object} object The object to query.
  25633. * @param {Array|string} path The path of the property to get.
  25634. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  25635. * @returns {*} Returns the resolved value.
  25636. * @example
  25637. *
  25638. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  25639. *
  25640. * _.get(object, 'a[0].b.c');
  25641. * // => 3
  25642. *
  25643. * _.get(object, ['a', '0', 'b', 'c']);
  25644. * // => 3
  25645. *
  25646. * _.get(object, 'a.b.c', 'default');
  25647. * // => 'default'
  25648. */
  25649. function get(object, path, defaultValue) {
  25650. var result = object == null ? undefined : baseGet(object, path);
  25651. return result === undefined ? defaultValue : result;
  25652. }
  25653. module.exports = get;
  25654. /***/ }),
  25655. /***/ 1552:
  25656. /***/ ((module) => {
  25657. /**
  25658. * lodash (Custom Build) <https://lodash.com/>
  25659. * Build: `lodash modularize exports="npm" -o ./`
  25660. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  25661. * Released under MIT license <https://lodash.com/license>
  25662. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  25663. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  25664. */
  25665. /** Used as the `TypeError` message for "Functions" methods. */
  25666. var FUNC_ERROR_TEXT = 'Expected a function';
  25667. /** Used to stand-in for `undefined` hash values. */
  25668. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  25669. /** Used as references for various `Number` constants. */
  25670. var INFINITY = 1 / 0,
  25671. MAX_SAFE_INTEGER = 9007199254740991;
  25672. /** `Object#toString` result references. */
  25673. var funcTag = '[object Function]',
  25674. genTag = '[object GeneratorFunction]',
  25675. symbolTag = '[object Symbol]';
  25676. /** Used to match property names within property paths. */
  25677. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  25678. reIsPlainProp = /^\w*$/,
  25679. reLeadingDot = /^\./,
  25680. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  25681. /**
  25682. * Used to match `RegExp`
  25683. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  25684. */
  25685. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  25686. /** Used to match backslashes in property paths. */
  25687. var reEscapeChar = /\\(\\)?/g;
  25688. /** Used to detect host constructors (Safari). */
  25689. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  25690. /** Used to detect unsigned integer values. */
  25691. var reIsUint = /^(?:0|[1-9]\d*)$/;
  25692. /** Detect free variable `global` from Node.js. */
  25693. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  25694. /** Detect free variable `self`. */
  25695. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  25696. /** Used as a reference to the global object. */
  25697. var root = freeGlobal || freeSelf || Function('return this')();
  25698. /**
  25699. * Gets the value at `key` of `object`.
  25700. *
  25701. * @private
  25702. * @param {Object} [object] The object to query.
  25703. * @param {string} key The key of the property to get.
  25704. * @returns {*} Returns the property value.
  25705. */
  25706. function getValue(object, key) {
  25707. return object == null ? undefined : object[key];
  25708. }
  25709. /**
  25710. * Checks if `value` is a host object in IE < 9.
  25711. *
  25712. * @private
  25713. * @param {*} value The value to check.
  25714. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  25715. */
  25716. function isHostObject(value) {
  25717. // Many host objects are `Object` objects that can coerce to strings
  25718. // despite having improperly defined `toString` methods.
  25719. var result = false;
  25720. if (value != null && typeof value.toString != 'function') {
  25721. try {
  25722. result = !!(value + '');
  25723. } catch (e) {}
  25724. }
  25725. return result;
  25726. }
  25727. /** Used for built-in method references. */
  25728. var arrayProto = Array.prototype,
  25729. funcProto = Function.prototype,
  25730. objectProto = Object.prototype;
  25731. /** Used to detect overreaching core-js shims. */
  25732. var coreJsData = root['__core-js_shared__'];
  25733. /** Used to detect methods masquerading as native. */
  25734. var maskSrcKey = (function() {
  25735. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  25736. return uid ? ('Symbol(src)_1.' + uid) : '';
  25737. }());
  25738. /** Used to resolve the decompiled source of functions. */
  25739. var funcToString = funcProto.toString;
  25740. /** Used to check objects for own properties. */
  25741. var hasOwnProperty = objectProto.hasOwnProperty;
  25742. /**
  25743. * Used to resolve the
  25744. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  25745. * of values.
  25746. */
  25747. var objectToString = objectProto.toString;
  25748. /** Used to detect if a method is native. */
  25749. var reIsNative = RegExp('^' +
  25750. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  25751. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  25752. );
  25753. /** Built-in value references. */
  25754. var Symbol = root.Symbol,
  25755. splice = arrayProto.splice;
  25756. /* Built-in method references that are verified to be native. */
  25757. var Map = getNative(root, 'Map'),
  25758. nativeCreate = getNative(Object, 'create');
  25759. /** Used to convert symbols to primitives and strings. */
  25760. var symbolProto = Symbol ? Symbol.prototype : undefined,
  25761. symbolToString = symbolProto ? symbolProto.toString : undefined;
  25762. /**
  25763. * Creates a hash object.
  25764. *
  25765. * @private
  25766. * @constructor
  25767. * @param {Array} [entries] The key-value pairs to cache.
  25768. */
  25769. function Hash(entries) {
  25770. var index = -1,
  25771. length = entries ? entries.length : 0;
  25772. this.clear();
  25773. while (++index < length) {
  25774. var entry = entries[index];
  25775. this.set(entry[0], entry[1]);
  25776. }
  25777. }
  25778. /**
  25779. * Removes all key-value entries from the hash.
  25780. *
  25781. * @private
  25782. * @name clear
  25783. * @memberOf Hash
  25784. */
  25785. function hashClear() {
  25786. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  25787. }
  25788. /**
  25789. * Removes `key` and its value from the hash.
  25790. *
  25791. * @private
  25792. * @name delete
  25793. * @memberOf Hash
  25794. * @param {Object} hash The hash to modify.
  25795. * @param {string} key The key of the value to remove.
  25796. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  25797. */
  25798. function hashDelete(key) {
  25799. return this.has(key) && delete this.__data__[key];
  25800. }
  25801. /**
  25802. * Gets the hash value for `key`.
  25803. *
  25804. * @private
  25805. * @name get
  25806. * @memberOf Hash
  25807. * @param {string} key The key of the value to get.
  25808. * @returns {*} Returns the entry value.
  25809. */
  25810. function hashGet(key) {
  25811. var data = this.__data__;
  25812. if (nativeCreate) {
  25813. var result = data[key];
  25814. return result === HASH_UNDEFINED ? undefined : result;
  25815. }
  25816. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  25817. }
  25818. /**
  25819. * Checks if a hash value for `key` exists.
  25820. *
  25821. * @private
  25822. * @name has
  25823. * @memberOf Hash
  25824. * @param {string} key The key of the entry to check.
  25825. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  25826. */
  25827. function hashHas(key) {
  25828. var data = this.__data__;
  25829. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  25830. }
  25831. /**
  25832. * Sets the hash `key` to `value`.
  25833. *
  25834. * @private
  25835. * @name set
  25836. * @memberOf Hash
  25837. * @param {string} key The key of the value to set.
  25838. * @param {*} value The value to set.
  25839. * @returns {Object} Returns the hash instance.
  25840. */
  25841. function hashSet(key, value) {
  25842. var data = this.__data__;
  25843. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  25844. return this;
  25845. }
  25846. // Add methods to `Hash`.
  25847. Hash.prototype.clear = hashClear;
  25848. Hash.prototype['delete'] = hashDelete;
  25849. Hash.prototype.get = hashGet;
  25850. Hash.prototype.has = hashHas;
  25851. Hash.prototype.set = hashSet;
  25852. /**
  25853. * Creates an list cache object.
  25854. *
  25855. * @private
  25856. * @constructor
  25857. * @param {Array} [entries] The key-value pairs to cache.
  25858. */
  25859. function ListCache(entries) {
  25860. var index = -1,
  25861. length = entries ? entries.length : 0;
  25862. this.clear();
  25863. while (++index < length) {
  25864. var entry = entries[index];
  25865. this.set(entry[0], entry[1]);
  25866. }
  25867. }
  25868. /**
  25869. * Removes all key-value entries from the list cache.
  25870. *
  25871. * @private
  25872. * @name clear
  25873. * @memberOf ListCache
  25874. */
  25875. function listCacheClear() {
  25876. this.__data__ = [];
  25877. }
  25878. /**
  25879. * Removes `key` and its value from the list cache.
  25880. *
  25881. * @private
  25882. * @name delete
  25883. * @memberOf ListCache
  25884. * @param {string} key The key of the value to remove.
  25885. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  25886. */
  25887. function listCacheDelete(key) {
  25888. var data = this.__data__,
  25889. index = assocIndexOf(data, key);
  25890. if (index < 0) {
  25891. return false;
  25892. }
  25893. var lastIndex = data.length - 1;
  25894. if (index == lastIndex) {
  25895. data.pop();
  25896. } else {
  25897. splice.call(data, index, 1);
  25898. }
  25899. return true;
  25900. }
  25901. /**
  25902. * Gets the list cache value for `key`.
  25903. *
  25904. * @private
  25905. * @name get
  25906. * @memberOf ListCache
  25907. * @param {string} key The key of the value to get.
  25908. * @returns {*} Returns the entry value.
  25909. */
  25910. function listCacheGet(key) {
  25911. var data = this.__data__,
  25912. index = assocIndexOf(data, key);
  25913. return index < 0 ? undefined : data[index][1];
  25914. }
  25915. /**
  25916. * Checks if a list cache value for `key` exists.
  25917. *
  25918. * @private
  25919. * @name has
  25920. * @memberOf ListCache
  25921. * @param {string} key The key of the entry to check.
  25922. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  25923. */
  25924. function listCacheHas(key) {
  25925. return assocIndexOf(this.__data__, key) > -1;
  25926. }
  25927. /**
  25928. * Sets the list cache `key` to `value`.
  25929. *
  25930. * @private
  25931. * @name set
  25932. * @memberOf ListCache
  25933. * @param {string} key The key of the value to set.
  25934. * @param {*} value The value to set.
  25935. * @returns {Object} Returns the list cache instance.
  25936. */
  25937. function listCacheSet(key, value) {
  25938. var data = this.__data__,
  25939. index = assocIndexOf(data, key);
  25940. if (index < 0) {
  25941. data.push([key, value]);
  25942. } else {
  25943. data[index][1] = value;
  25944. }
  25945. return this;
  25946. }
  25947. // Add methods to `ListCache`.
  25948. ListCache.prototype.clear = listCacheClear;
  25949. ListCache.prototype['delete'] = listCacheDelete;
  25950. ListCache.prototype.get = listCacheGet;
  25951. ListCache.prototype.has = listCacheHas;
  25952. ListCache.prototype.set = listCacheSet;
  25953. /**
  25954. * Creates a map cache object to store key-value pairs.
  25955. *
  25956. * @private
  25957. * @constructor
  25958. * @param {Array} [entries] The key-value pairs to cache.
  25959. */
  25960. function MapCache(entries) {
  25961. var index = -1,
  25962. length = entries ? entries.length : 0;
  25963. this.clear();
  25964. while (++index < length) {
  25965. var entry = entries[index];
  25966. this.set(entry[0], entry[1]);
  25967. }
  25968. }
  25969. /**
  25970. * Removes all key-value entries from the map.
  25971. *
  25972. * @private
  25973. * @name clear
  25974. * @memberOf MapCache
  25975. */
  25976. function mapCacheClear() {
  25977. this.__data__ = {
  25978. 'hash': new Hash,
  25979. 'map': new (Map || ListCache),
  25980. 'string': new Hash
  25981. };
  25982. }
  25983. /**
  25984. * Removes `key` and its value from the map.
  25985. *
  25986. * @private
  25987. * @name delete
  25988. * @memberOf MapCache
  25989. * @param {string} key The key of the value to remove.
  25990. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  25991. */
  25992. function mapCacheDelete(key) {
  25993. return getMapData(this, key)['delete'](key);
  25994. }
  25995. /**
  25996. * Gets the map value for `key`.
  25997. *
  25998. * @private
  25999. * @name get
  26000. * @memberOf MapCache
  26001. * @param {string} key The key of the value to get.
  26002. * @returns {*} Returns the entry value.
  26003. */
  26004. function mapCacheGet(key) {
  26005. return getMapData(this, key).get(key);
  26006. }
  26007. /**
  26008. * Checks if a map value for `key` exists.
  26009. *
  26010. * @private
  26011. * @name has
  26012. * @memberOf MapCache
  26013. * @param {string} key The key of the entry to check.
  26014. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  26015. */
  26016. function mapCacheHas(key) {
  26017. return getMapData(this, key).has(key);
  26018. }
  26019. /**
  26020. * Sets the map `key` to `value`.
  26021. *
  26022. * @private
  26023. * @name set
  26024. * @memberOf MapCache
  26025. * @param {string} key The key of the value to set.
  26026. * @param {*} value The value to set.
  26027. * @returns {Object} Returns the map cache instance.
  26028. */
  26029. function mapCacheSet(key, value) {
  26030. getMapData(this, key).set(key, value);
  26031. return this;
  26032. }
  26033. // Add methods to `MapCache`.
  26034. MapCache.prototype.clear = mapCacheClear;
  26035. MapCache.prototype['delete'] = mapCacheDelete;
  26036. MapCache.prototype.get = mapCacheGet;
  26037. MapCache.prototype.has = mapCacheHas;
  26038. MapCache.prototype.set = mapCacheSet;
  26039. /**
  26040. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  26041. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  26042. * for equality comparisons.
  26043. *
  26044. * @private
  26045. * @param {Object} object The object to modify.
  26046. * @param {string} key The key of the property to assign.
  26047. * @param {*} value The value to assign.
  26048. */
  26049. function assignValue(object, key, value) {
  26050. var objValue = object[key];
  26051. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  26052. (value === undefined && !(key in object))) {
  26053. object[key] = value;
  26054. }
  26055. }
  26056. /**
  26057. * Gets the index at which the `key` is found in `array` of key-value pairs.
  26058. *
  26059. * @private
  26060. * @param {Array} array The array to inspect.
  26061. * @param {*} key The key to search for.
  26062. * @returns {number} Returns the index of the matched value, else `-1`.
  26063. */
  26064. function assocIndexOf(array, key) {
  26065. var length = array.length;
  26066. while (length--) {
  26067. if (eq(array[length][0], key)) {
  26068. return length;
  26069. }
  26070. }
  26071. return -1;
  26072. }
  26073. /**
  26074. * The base implementation of `_.isNative` without bad shim checks.
  26075. *
  26076. * @private
  26077. * @param {*} value The value to check.
  26078. * @returns {boolean} Returns `true` if `value` is a native function,
  26079. * else `false`.
  26080. */
  26081. function baseIsNative(value) {
  26082. if (!isObject(value) || isMasked(value)) {
  26083. return false;
  26084. }
  26085. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  26086. return pattern.test(toSource(value));
  26087. }
  26088. /**
  26089. * The base implementation of `_.set`.
  26090. *
  26091. * @private
  26092. * @param {Object} object The object to modify.
  26093. * @param {Array|string} path The path of the property to set.
  26094. * @param {*} value The value to set.
  26095. * @param {Function} [customizer] The function to customize path creation.
  26096. * @returns {Object} Returns `object`.
  26097. */
  26098. function baseSet(object, path, value, customizer) {
  26099. if (!isObject(object)) {
  26100. return object;
  26101. }
  26102. path = isKey(path, object) ? [path] : castPath(path);
  26103. var index = -1,
  26104. length = path.length,
  26105. lastIndex = length - 1,
  26106. nested = object;
  26107. while (nested != null && ++index < length) {
  26108. var key = toKey(path[index]),
  26109. newValue = value;
  26110. if (index != lastIndex) {
  26111. var objValue = nested[key];
  26112. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  26113. if (newValue === undefined) {
  26114. newValue = isObject(objValue)
  26115. ? objValue
  26116. : (isIndex(path[index + 1]) ? [] : {});
  26117. }
  26118. }
  26119. assignValue(nested, key, newValue);
  26120. nested = nested[key];
  26121. }
  26122. return object;
  26123. }
  26124. /**
  26125. * The base implementation of `_.toString` which doesn't convert nullish
  26126. * values to empty strings.
  26127. *
  26128. * @private
  26129. * @param {*} value The value to process.
  26130. * @returns {string} Returns the string.
  26131. */
  26132. function baseToString(value) {
  26133. // Exit early for strings to avoid a performance hit in some environments.
  26134. if (typeof value == 'string') {
  26135. return value;
  26136. }
  26137. if (isSymbol(value)) {
  26138. return symbolToString ? symbolToString.call(value) : '';
  26139. }
  26140. var result = (value + '');
  26141. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  26142. }
  26143. /**
  26144. * Casts `value` to a path array if it's not one.
  26145. *
  26146. * @private
  26147. * @param {*} value The value to inspect.
  26148. * @returns {Array} Returns the cast property path array.
  26149. */
  26150. function castPath(value) {
  26151. return isArray(value) ? value : stringToPath(value);
  26152. }
  26153. /**
  26154. * Gets the data for `map`.
  26155. *
  26156. * @private
  26157. * @param {Object} map The map to query.
  26158. * @param {string} key The reference key.
  26159. * @returns {*} Returns the map data.
  26160. */
  26161. function getMapData(map, key) {
  26162. var data = map.__data__;
  26163. return isKeyable(key)
  26164. ? data[typeof key == 'string' ? 'string' : 'hash']
  26165. : data.map;
  26166. }
  26167. /**
  26168. * Gets the native function at `key` of `object`.
  26169. *
  26170. * @private
  26171. * @param {Object} object The object to query.
  26172. * @param {string} key The key of the method to get.
  26173. * @returns {*} Returns the function if it's native, else `undefined`.
  26174. */
  26175. function getNative(object, key) {
  26176. var value = getValue(object, key);
  26177. return baseIsNative(value) ? value : undefined;
  26178. }
  26179. /**
  26180. * Checks if `value` is a valid array-like index.
  26181. *
  26182. * @private
  26183. * @param {*} value The value to check.
  26184. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  26185. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  26186. */
  26187. function isIndex(value, length) {
  26188. length = length == null ? MAX_SAFE_INTEGER : length;
  26189. return !!length &&
  26190. (typeof value == 'number' || reIsUint.test(value)) &&
  26191. (value > -1 && value % 1 == 0 && value < length);
  26192. }
  26193. /**
  26194. * Checks if `value` is a property name and not a property path.
  26195. *
  26196. * @private
  26197. * @param {*} value The value to check.
  26198. * @param {Object} [object] The object to query keys on.
  26199. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  26200. */
  26201. function isKey(value, object) {
  26202. if (isArray(value)) {
  26203. return false;
  26204. }
  26205. var type = typeof value;
  26206. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  26207. value == null || isSymbol(value)) {
  26208. return true;
  26209. }
  26210. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  26211. (object != null && value in Object(object));
  26212. }
  26213. /**
  26214. * Checks if `value` is suitable for use as unique object key.
  26215. *
  26216. * @private
  26217. * @param {*} value The value to check.
  26218. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  26219. */
  26220. function isKeyable(value) {
  26221. var type = typeof value;
  26222. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  26223. ? (value !== '__proto__')
  26224. : (value === null);
  26225. }
  26226. /**
  26227. * Checks if `func` has its source masked.
  26228. *
  26229. * @private
  26230. * @param {Function} func The function to check.
  26231. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  26232. */
  26233. function isMasked(func) {
  26234. return !!maskSrcKey && (maskSrcKey in func);
  26235. }
  26236. /**
  26237. * Converts `string` to a property path array.
  26238. *
  26239. * @private
  26240. * @param {string} string The string to convert.
  26241. * @returns {Array} Returns the property path array.
  26242. */
  26243. var stringToPath = memoize(function(string) {
  26244. string = toString(string);
  26245. var result = [];
  26246. if (reLeadingDot.test(string)) {
  26247. result.push('');
  26248. }
  26249. string.replace(rePropName, function(match, number, quote, string) {
  26250. result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
  26251. });
  26252. return result;
  26253. });
  26254. /**
  26255. * Converts `value` to a string key if it's not a string or symbol.
  26256. *
  26257. * @private
  26258. * @param {*} value The value to inspect.
  26259. * @returns {string|symbol} Returns the key.
  26260. */
  26261. function toKey(value) {
  26262. if (typeof value == 'string' || isSymbol(value)) {
  26263. return value;
  26264. }
  26265. var result = (value + '');
  26266. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  26267. }
  26268. /**
  26269. * Converts `func` to its source code.
  26270. *
  26271. * @private
  26272. * @param {Function} func The function to process.
  26273. * @returns {string} Returns the source code.
  26274. */
  26275. function toSource(func) {
  26276. if (func != null) {
  26277. try {
  26278. return funcToString.call(func);
  26279. } catch (e) {}
  26280. try {
  26281. return (func + '');
  26282. } catch (e) {}
  26283. }
  26284. return '';
  26285. }
  26286. /**
  26287. * Creates a function that memoizes the result of `func`. If `resolver` is
  26288. * provided, it determines the cache key for storing the result based on the
  26289. * arguments provided to the memoized function. By default, the first argument
  26290. * provided to the memoized function is used as the map cache key. The `func`
  26291. * is invoked with the `this` binding of the memoized function.
  26292. *
  26293. * **Note:** The cache is exposed as the `cache` property on the memoized
  26294. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  26295. * constructor with one whose instances implement the
  26296. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  26297. * method interface of `delete`, `get`, `has`, and `set`.
  26298. *
  26299. * @static
  26300. * @memberOf _
  26301. * @since 0.1.0
  26302. * @category Function
  26303. * @param {Function} func The function to have its output memoized.
  26304. * @param {Function} [resolver] The function to resolve the cache key.
  26305. * @returns {Function} Returns the new memoized function.
  26306. * @example
  26307. *
  26308. * var object = { 'a': 1, 'b': 2 };
  26309. * var other = { 'c': 3, 'd': 4 };
  26310. *
  26311. * var values = _.memoize(_.values);
  26312. * values(object);
  26313. * // => [1, 2]
  26314. *
  26315. * values(other);
  26316. * // => [3, 4]
  26317. *
  26318. * object.a = 2;
  26319. * values(object);
  26320. * // => [1, 2]
  26321. *
  26322. * // Modify the result cache.
  26323. * values.cache.set(object, ['a', 'b']);
  26324. * values(object);
  26325. * // => ['a', 'b']
  26326. *
  26327. * // Replace `_.memoize.Cache`.
  26328. * _.memoize.Cache = WeakMap;
  26329. */
  26330. function memoize(func, resolver) {
  26331. if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
  26332. throw new TypeError(FUNC_ERROR_TEXT);
  26333. }
  26334. var memoized = function() {
  26335. var args = arguments,
  26336. key = resolver ? resolver.apply(this, args) : args[0],
  26337. cache = memoized.cache;
  26338. if (cache.has(key)) {
  26339. return cache.get(key);
  26340. }
  26341. var result = func.apply(this, args);
  26342. memoized.cache = cache.set(key, result);
  26343. return result;
  26344. };
  26345. memoized.cache = new (memoize.Cache || MapCache);
  26346. return memoized;
  26347. }
  26348. // Assign cache to `_.memoize`.
  26349. memoize.Cache = MapCache;
  26350. /**
  26351. * Performs a
  26352. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  26353. * comparison between two values to determine if they are equivalent.
  26354. *
  26355. * @static
  26356. * @memberOf _
  26357. * @since 4.0.0
  26358. * @category Lang
  26359. * @param {*} value The value to compare.
  26360. * @param {*} other The other value to compare.
  26361. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26362. * @example
  26363. *
  26364. * var object = { 'a': 1 };
  26365. * var other = { 'a': 1 };
  26366. *
  26367. * _.eq(object, object);
  26368. * // => true
  26369. *
  26370. * _.eq(object, other);
  26371. * // => false
  26372. *
  26373. * _.eq('a', 'a');
  26374. * // => true
  26375. *
  26376. * _.eq('a', Object('a'));
  26377. * // => false
  26378. *
  26379. * _.eq(NaN, NaN);
  26380. * // => true
  26381. */
  26382. function eq(value, other) {
  26383. return value === other || (value !== value && other !== other);
  26384. }
  26385. /**
  26386. * Checks if `value` is classified as an `Array` object.
  26387. *
  26388. * @static
  26389. * @memberOf _
  26390. * @since 0.1.0
  26391. * @category Lang
  26392. * @param {*} value The value to check.
  26393. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  26394. * @example
  26395. *
  26396. * _.isArray([1, 2, 3]);
  26397. * // => true
  26398. *
  26399. * _.isArray(document.body.children);
  26400. * // => false
  26401. *
  26402. * _.isArray('abc');
  26403. * // => false
  26404. *
  26405. * _.isArray(_.noop);
  26406. * // => false
  26407. */
  26408. var isArray = Array.isArray;
  26409. /**
  26410. * Checks if `value` is classified as a `Function` object.
  26411. *
  26412. * @static
  26413. * @memberOf _
  26414. * @since 0.1.0
  26415. * @category Lang
  26416. * @param {*} value The value to check.
  26417. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  26418. * @example
  26419. *
  26420. * _.isFunction(_);
  26421. * // => true
  26422. *
  26423. * _.isFunction(/abc/);
  26424. * // => false
  26425. */
  26426. function isFunction(value) {
  26427. // The use of `Object#toString` avoids issues with the `typeof` operator
  26428. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  26429. var tag = isObject(value) ? objectToString.call(value) : '';
  26430. return tag == funcTag || tag == genTag;
  26431. }
  26432. /**
  26433. * Checks if `value` is the
  26434. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  26435. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  26436. *
  26437. * @static
  26438. * @memberOf _
  26439. * @since 0.1.0
  26440. * @category Lang
  26441. * @param {*} value The value to check.
  26442. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  26443. * @example
  26444. *
  26445. * _.isObject({});
  26446. * // => true
  26447. *
  26448. * _.isObject([1, 2, 3]);
  26449. * // => true
  26450. *
  26451. * _.isObject(_.noop);
  26452. * // => true
  26453. *
  26454. * _.isObject(null);
  26455. * // => false
  26456. */
  26457. function isObject(value) {
  26458. var type = typeof value;
  26459. return !!value && (type == 'object' || type == 'function');
  26460. }
  26461. /**
  26462. * Checks if `value` is object-like. A value is object-like if it's not `null`
  26463. * and has a `typeof` result of "object".
  26464. *
  26465. * @static
  26466. * @memberOf _
  26467. * @since 4.0.0
  26468. * @category Lang
  26469. * @param {*} value The value to check.
  26470. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  26471. * @example
  26472. *
  26473. * _.isObjectLike({});
  26474. * // => true
  26475. *
  26476. * _.isObjectLike([1, 2, 3]);
  26477. * // => true
  26478. *
  26479. * _.isObjectLike(_.noop);
  26480. * // => false
  26481. *
  26482. * _.isObjectLike(null);
  26483. * // => false
  26484. */
  26485. function isObjectLike(value) {
  26486. return !!value && typeof value == 'object';
  26487. }
  26488. /**
  26489. * Checks if `value` is classified as a `Symbol` primitive or object.
  26490. *
  26491. * @static
  26492. * @memberOf _
  26493. * @since 4.0.0
  26494. * @category Lang
  26495. * @param {*} value The value to check.
  26496. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  26497. * @example
  26498. *
  26499. * _.isSymbol(Symbol.iterator);
  26500. * // => true
  26501. *
  26502. * _.isSymbol('abc');
  26503. * // => false
  26504. */
  26505. function isSymbol(value) {
  26506. return typeof value == 'symbol' ||
  26507. (isObjectLike(value) && objectToString.call(value) == symbolTag);
  26508. }
  26509. /**
  26510. * Converts `value` to a string. An empty string is returned for `null`
  26511. * and `undefined` values. The sign of `-0` is preserved.
  26512. *
  26513. * @static
  26514. * @memberOf _
  26515. * @since 4.0.0
  26516. * @category Lang
  26517. * @param {*} value The value to process.
  26518. * @returns {string} Returns the string.
  26519. * @example
  26520. *
  26521. * _.toString(null);
  26522. * // => ''
  26523. *
  26524. * _.toString(-0);
  26525. * // => '-0'
  26526. *
  26527. * _.toString([1, 2, 3]);
  26528. * // => '1,2,3'
  26529. */
  26530. function toString(value) {
  26531. return value == null ? '' : baseToString(value);
  26532. }
  26533. /**
  26534. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  26535. * it's created. Arrays are created for missing index properties while objects
  26536. * are created for all other missing properties. Use `_.setWith` to customize
  26537. * `path` creation.
  26538. *
  26539. * **Note:** This method mutates `object`.
  26540. *
  26541. * @static
  26542. * @memberOf _
  26543. * @since 3.7.0
  26544. * @category Object
  26545. * @param {Object} object The object to modify.
  26546. * @param {Array|string} path The path of the property to set.
  26547. * @param {*} value The value to set.
  26548. * @returns {Object} Returns `object`.
  26549. * @example
  26550. *
  26551. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  26552. *
  26553. * _.set(object, 'a[0].b.c', 4);
  26554. * console.log(object.a[0].b.c);
  26555. * // => 4
  26556. *
  26557. * _.set(object, ['x', '0', 'y', 'z'], 5);
  26558. * console.log(object.x[0].y.z);
  26559. * // => 5
  26560. */
  26561. function set(object, path, value) {
  26562. return object == null ? object : baseSet(object, path, value);
  26563. }
  26564. module.exports = set;
  26565. /***/ }),
  26566. /***/ 8216:
  26567. /***/ ((module) => {
  26568. /**
  26569. * lodash (Custom Build) <https://lodash.com/>
  26570. * Build: `lodash modularize exports="npm" -o ./`
  26571. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  26572. * Released under MIT license <https://lodash.com/license>
  26573. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  26574. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  26575. */
  26576. /** Used as the size to enable large array optimizations. */
  26577. var LARGE_ARRAY_SIZE = 200;
  26578. /** Used to stand-in for `undefined` hash values. */
  26579. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  26580. /** Used as references for various `Number` constants. */
  26581. var INFINITY = 1 / 0;
  26582. /** `Object#toString` result references. */
  26583. var funcTag = '[object Function]',
  26584. genTag = '[object GeneratorFunction]';
  26585. /**
  26586. * Used to match `RegExp`
  26587. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  26588. */
  26589. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  26590. /** Used to detect host constructors (Safari). */
  26591. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  26592. /** Detect free variable `global` from Node.js. */
  26593. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  26594. /** Detect free variable `self`. */
  26595. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  26596. /** Used as a reference to the global object. */
  26597. var root = freeGlobal || freeSelf || Function('return this')();
  26598. /**
  26599. * A specialized version of `_.includes` for arrays without support for
  26600. * specifying an index to search from.
  26601. *
  26602. * @private
  26603. * @param {Array} [array] The array to inspect.
  26604. * @param {*} target The value to search for.
  26605. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  26606. */
  26607. function arrayIncludes(array, value) {
  26608. var length = array ? array.length : 0;
  26609. return !!length && baseIndexOf(array, value, 0) > -1;
  26610. }
  26611. /**
  26612. * This function is like `arrayIncludes` except that it accepts a comparator.
  26613. *
  26614. * @private
  26615. * @param {Array} [array] The array to inspect.
  26616. * @param {*} target The value to search for.
  26617. * @param {Function} comparator The comparator invoked per element.
  26618. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  26619. */
  26620. function arrayIncludesWith(array, value, comparator) {
  26621. var index = -1,
  26622. length = array ? array.length : 0;
  26623. while (++index < length) {
  26624. if (comparator(value, array[index])) {
  26625. return true;
  26626. }
  26627. }
  26628. return false;
  26629. }
  26630. /**
  26631. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  26632. * support for iteratee shorthands.
  26633. *
  26634. * @private
  26635. * @param {Array} array The array to inspect.
  26636. * @param {Function} predicate The function invoked per iteration.
  26637. * @param {number} fromIndex The index to search from.
  26638. * @param {boolean} [fromRight] Specify iterating from right to left.
  26639. * @returns {number} Returns the index of the matched value, else `-1`.
  26640. */
  26641. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  26642. var length = array.length,
  26643. index = fromIndex + (fromRight ? 1 : -1);
  26644. while ((fromRight ? index-- : ++index < length)) {
  26645. if (predicate(array[index], index, array)) {
  26646. return index;
  26647. }
  26648. }
  26649. return -1;
  26650. }
  26651. /**
  26652. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  26653. *
  26654. * @private
  26655. * @param {Array} array The array to inspect.
  26656. * @param {*} value The value to search for.
  26657. * @param {number} fromIndex The index to search from.
  26658. * @returns {number} Returns the index of the matched value, else `-1`.
  26659. */
  26660. function baseIndexOf(array, value, fromIndex) {
  26661. if (value !== value) {
  26662. return baseFindIndex(array, baseIsNaN, fromIndex);
  26663. }
  26664. var index = fromIndex - 1,
  26665. length = array.length;
  26666. while (++index < length) {
  26667. if (array[index] === value) {
  26668. return index;
  26669. }
  26670. }
  26671. return -1;
  26672. }
  26673. /**
  26674. * The base implementation of `_.isNaN` without support for number objects.
  26675. *
  26676. * @private
  26677. * @param {*} value The value to check.
  26678. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  26679. */
  26680. function baseIsNaN(value) {
  26681. return value !== value;
  26682. }
  26683. /**
  26684. * Checks if a cache value for `key` exists.
  26685. *
  26686. * @private
  26687. * @param {Object} cache The cache to query.
  26688. * @param {string} key The key of the entry to check.
  26689. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  26690. */
  26691. function cacheHas(cache, key) {
  26692. return cache.has(key);
  26693. }
  26694. /**
  26695. * Gets the value at `key` of `object`.
  26696. *
  26697. * @private
  26698. * @param {Object} [object] The object to query.
  26699. * @param {string} key The key of the property to get.
  26700. * @returns {*} Returns the property value.
  26701. */
  26702. function getValue(object, key) {
  26703. return object == null ? undefined : object[key];
  26704. }
  26705. /**
  26706. * Checks if `value` is a host object in IE < 9.
  26707. *
  26708. * @private
  26709. * @param {*} value The value to check.
  26710. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  26711. */
  26712. function isHostObject(value) {
  26713. // Many host objects are `Object` objects that can coerce to strings
  26714. // despite having improperly defined `toString` methods.
  26715. var result = false;
  26716. if (value != null && typeof value.toString != 'function') {
  26717. try {
  26718. result = !!(value + '');
  26719. } catch (e) {}
  26720. }
  26721. return result;
  26722. }
  26723. /**
  26724. * Converts `set` to an array of its values.
  26725. *
  26726. * @private
  26727. * @param {Object} set The set to convert.
  26728. * @returns {Array} Returns the values.
  26729. */
  26730. function setToArray(set) {
  26731. var index = -1,
  26732. result = Array(set.size);
  26733. set.forEach(function(value) {
  26734. result[++index] = value;
  26735. });
  26736. return result;
  26737. }
  26738. /** Used for built-in method references. */
  26739. var arrayProto = Array.prototype,
  26740. funcProto = Function.prototype,
  26741. objectProto = Object.prototype;
  26742. /** Used to detect overreaching core-js shims. */
  26743. var coreJsData = root['__core-js_shared__'];
  26744. /** Used to detect methods masquerading as native. */
  26745. var maskSrcKey = (function() {
  26746. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  26747. return uid ? ('Symbol(src)_1.' + uid) : '';
  26748. }());
  26749. /** Used to resolve the decompiled source of functions. */
  26750. var funcToString = funcProto.toString;
  26751. /** Used to check objects for own properties. */
  26752. var hasOwnProperty = objectProto.hasOwnProperty;
  26753. /**
  26754. * Used to resolve the
  26755. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  26756. * of values.
  26757. */
  26758. var objectToString = objectProto.toString;
  26759. /** Used to detect if a method is native. */
  26760. var reIsNative = RegExp('^' +
  26761. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  26762. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  26763. );
  26764. /** Built-in value references. */
  26765. var splice = arrayProto.splice;
  26766. /* Built-in method references that are verified to be native. */
  26767. var Map = getNative(root, 'Map'),
  26768. Set = getNative(root, 'Set'),
  26769. nativeCreate = getNative(Object, 'create');
  26770. /**
  26771. * Creates a hash object.
  26772. *
  26773. * @private
  26774. * @constructor
  26775. * @param {Array} [entries] The key-value pairs to cache.
  26776. */
  26777. function Hash(entries) {
  26778. var index = -1,
  26779. length = entries ? entries.length : 0;
  26780. this.clear();
  26781. while (++index < length) {
  26782. var entry = entries[index];
  26783. this.set(entry[0], entry[1]);
  26784. }
  26785. }
  26786. /**
  26787. * Removes all key-value entries from the hash.
  26788. *
  26789. * @private
  26790. * @name clear
  26791. * @memberOf Hash
  26792. */
  26793. function hashClear() {
  26794. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  26795. }
  26796. /**
  26797. * Removes `key` and its value from the hash.
  26798. *
  26799. * @private
  26800. * @name delete
  26801. * @memberOf Hash
  26802. * @param {Object} hash The hash to modify.
  26803. * @param {string} key The key of the value to remove.
  26804. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  26805. */
  26806. function hashDelete(key) {
  26807. return this.has(key) && delete this.__data__[key];
  26808. }
  26809. /**
  26810. * Gets the hash value for `key`.
  26811. *
  26812. * @private
  26813. * @name get
  26814. * @memberOf Hash
  26815. * @param {string} key The key of the value to get.
  26816. * @returns {*} Returns the entry value.
  26817. */
  26818. function hashGet(key) {
  26819. var data = this.__data__;
  26820. if (nativeCreate) {
  26821. var result = data[key];
  26822. return result === HASH_UNDEFINED ? undefined : result;
  26823. }
  26824. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  26825. }
  26826. /**
  26827. * Checks if a hash value for `key` exists.
  26828. *
  26829. * @private
  26830. * @name has
  26831. * @memberOf Hash
  26832. * @param {string} key The key of the entry to check.
  26833. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  26834. */
  26835. function hashHas(key) {
  26836. var data = this.__data__;
  26837. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  26838. }
  26839. /**
  26840. * Sets the hash `key` to `value`.
  26841. *
  26842. * @private
  26843. * @name set
  26844. * @memberOf Hash
  26845. * @param {string} key The key of the value to set.
  26846. * @param {*} value The value to set.
  26847. * @returns {Object} Returns the hash instance.
  26848. */
  26849. function hashSet(key, value) {
  26850. var data = this.__data__;
  26851. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  26852. return this;
  26853. }
  26854. // Add methods to `Hash`.
  26855. Hash.prototype.clear = hashClear;
  26856. Hash.prototype['delete'] = hashDelete;
  26857. Hash.prototype.get = hashGet;
  26858. Hash.prototype.has = hashHas;
  26859. Hash.prototype.set = hashSet;
  26860. /**
  26861. * Creates an list cache object.
  26862. *
  26863. * @private
  26864. * @constructor
  26865. * @param {Array} [entries] The key-value pairs to cache.
  26866. */
  26867. function ListCache(entries) {
  26868. var index = -1,
  26869. length = entries ? entries.length : 0;
  26870. this.clear();
  26871. while (++index < length) {
  26872. var entry = entries[index];
  26873. this.set(entry[0], entry[1]);
  26874. }
  26875. }
  26876. /**
  26877. * Removes all key-value entries from the list cache.
  26878. *
  26879. * @private
  26880. * @name clear
  26881. * @memberOf ListCache
  26882. */
  26883. function listCacheClear() {
  26884. this.__data__ = [];
  26885. }
  26886. /**
  26887. * Removes `key` and its value from the list cache.
  26888. *
  26889. * @private
  26890. * @name delete
  26891. * @memberOf ListCache
  26892. * @param {string} key The key of the value to remove.
  26893. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  26894. */
  26895. function listCacheDelete(key) {
  26896. var data = this.__data__,
  26897. index = assocIndexOf(data, key);
  26898. if (index < 0) {
  26899. return false;
  26900. }
  26901. var lastIndex = data.length - 1;
  26902. if (index == lastIndex) {
  26903. data.pop();
  26904. } else {
  26905. splice.call(data, index, 1);
  26906. }
  26907. return true;
  26908. }
  26909. /**
  26910. * Gets the list cache value for `key`.
  26911. *
  26912. * @private
  26913. * @name get
  26914. * @memberOf ListCache
  26915. * @param {string} key The key of the value to get.
  26916. * @returns {*} Returns the entry value.
  26917. */
  26918. function listCacheGet(key) {
  26919. var data = this.__data__,
  26920. index = assocIndexOf(data, key);
  26921. return index < 0 ? undefined : data[index][1];
  26922. }
  26923. /**
  26924. * Checks if a list cache value for `key` exists.
  26925. *
  26926. * @private
  26927. * @name has
  26928. * @memberOf ListCache
  26929. * @param {string} key The key of the entry to check.
  26930. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  26931. */
  26932. function listCacheHas(key) {
  26933. return assocIndexOf(this.__data__, key) > -1;
  26934. }
  26935. /**
  26936. * Sets the list cache `key` to `value`.
  26937. *
  26938. * @private
  26939. * @name set
  26940. * @memberOf ListCache
  26941. * @param {string} key The key of the value to set.
  26942. * @param {*} value The value to set.
  26943. * @returns {Object} Returns the list cache instance.
  26944. */
  26945. function listCacheSet(key, value) {
  26946. var data = this.__data__,
  26947. index = assocIndexOf(data, key);
  26948. if (index < 0) {
  26949. data.push([key, value]);
  26950. } else {
  26951. data[index][1] = value;
  26952. }
  26953. return this;
  26954. }
  26955. // Add methods to `ListCache`.
  26956. ListCache.prototype.clear = listCacheClear;
  26957. ListCache.prototype['delete'] = listCacheDelete;
  26958. ListCache.prototype.get = listCacheGet;
  26959. ListCache.prototype.has = listCacheHas;
  26960. ListCache.prototype.set = listCacheSet;
  26961. /**
  26962. * Creates a map cache object to store key-value pairs.
  26963. *
  26964. * @private
  26965. * @constructor
  26966. * @param {Array} [entries] The key-value pairs to cache.
  26967. */
  26968. function MapCache(entries) {
  26969. var index = -1,
  26970. length = entries ? entries.length : 0;
  26971. this.clear();
  26972. while (++index < length) {
  26973. var entry = entries[index];
  26974. this.set(entry[0], entry[1]);
  26975. }
  26976. }
  26977. /**
  26978. * Removes all key-value entries from the map.
  26979. *
  26980. * @private
  26981. * @name clear
  26982. * @memberOf MapCache
  26983. */
  26984. function mapCacheClear() {
  26985. this.__data__ = {
  26986. 'hash': new Hash,
  26987. 'map': new (Map || ListCache),
  26988. 'string': new Hash
  26989. };
  26990. }
  26991. /**
  26992. * Removes `key` and its value from the map.
  26993. *
  26994. * @private
  26995. * @name delete
  26996. * @memberOf MapCache
  26997. * @param {string} key The key of the value to remove.
  26998. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  26999. */
  27000. function mapCacheDelete(key) {
  27001. return getMapData(this, key)['delete'](key);
  27002. }
  27003. /**
  27004. * Gets the map value for `key`.
  27005. *
  27006. * @private
  27007. * @name get
  27008. * @memberOf MapCache
  27009. * @param {string} key The key of the value to get.
  27010. * @returns {*} Returns the entry value.
  27011. */
  27012. function mapCacheGet(key) {
  27013. return getMapData(this, key).get(key);
  27014. }
  27015. /**
  27016. * Checks if a map value for `key` exists.
  27017. *
  27018. * @private
  27019. * @name has
  27020. * @memberOf MapCache
  27021. * @param {string} key The key of the entry to check.
  27022. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  27023. */
  27024. function mapCacheHas(key) {
  27025. return getMapData(this, key).has(key);
  27026. }
  27027. /**
  27028. * Sets the map `key` to `value`.
  27029. *
  27030. * @private
  27031. * @name set
  27032. * @memberOf MapCache
  27033. * @param {string} key The key of the value to set.
  27034. * @param {*} value The value to set.
  27035. * @returns {Object} Returns the map cache instance.
  27036. */
  27037. function mapCacheSet(key, value) {
  27038. getMapData(this, key).set(key, value);
  27039. return this;
  27040. }
  27041. // Add methods to `MapCache`.
  27042. MapCache.prototype.clear = mapCacheClear;
  27043. MapCache.prototype['delete'] = mapCacheDelete;
  27044. MapCache.prototype.get = mapCacheGet;
  27045. MapCache.prototype.has = mapCacheHas;
  27046. MapCache.prototype.set = mapCacheSet;
  27047. /**
  27048. *
  27049. * Creates an array cache object to store unique values.
  27050. *
  27051. * @private
  27052. * @constructor
  27053. * @param {Array} [values] The values to cache.
  27054. */
  27055. function SetCache(values) {
  27056. var index = -1,
  27057. length = values ? values.length : 0;
  27058. this.__data__ = new MapCache;
  27059. while (++index < length) {
  27060. this.add(values[index]);
  27061. }
  27062. }
  27063. /**
  27064. * Adds `value` to the array cache.
  27065. *
  27066. * @private
  27067. * @name add
  27068. * @memberOf SetCache
  27069. * @alias push
  27070. * @param {*} value The value to cache.
  27071. * @returns {Object} Returns the cache instance.
  27072. */
  27073. function setCacheAdd(value) {
  27074. this.__data__.set(value, HASH_UNDEFINED);
  27075. return this;
  27076. }
  27077. /**
  27078. * Checks if `value` is in the array cache.
  27079. *
  27080. * @private
  27081. * @name has
  27082. * @memberOf SetCache
  27083. * @param {*} value The value to search for.
  27084. * @returns {number} Returns `true` if `value` is found, else `false`.
  27085. */
  27086. function setCacheHas(value) {
  27087. return this.__data__.has(value);
  27088. }
  27089. // Add methods to `SetCache`.
  27090. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  27091. SetCache.prototype.has = setCacheHas;
  27092. /**
  27093. * Gets the index at which the `key` is found in `array` of key-value pairs.
  27094. *
  27095. * @private
  27096. * @param {Array} array The array to inspect.
  27097. * @param {*} key The key to search for.
  27098. * @returns {number} Returns the index of the matched value, else `-1`.
  27099. */
  27100. function assocIndexOf(array, key) {
  27101. var length = array.length;
  27102. while (length--) {
  27103. if (eq(array[length][0], key)) {
  27104. return length;
  27105. }
  27106. }
  27107. return -1;
  27108. }
  27109. /**
  27110. * The base implementation of `_.isNative` without bad shim checks.
  27111. *
  27112. * @private
  27113. * @param {*} value The value to check.
  27114. * @returns {boolean} Returns `true` if `value` is a native function,
  27115. * else `false`.
  27116. */
  27117. function baseIsNative(value) {
  27118. if (!isObject(value) || isMasked(value)) {
  27119. return false;
  27120. }
  27121. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  27122. return pattern.test(toSource(value));
  27123. }
  27124. /**
  27125. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  27126. *
  27127. * @private
  27128. * @param {Array} array The array to inspect.
  27129. * @param {Function} [iteratee] The iteratee invoked per element.
  27130. * @param {Function} [comparator] The comparator invoked per element.
  27131. * @returns {Array} Returns the new duplicate free array.
  27132. */
  27133. function baseUniq(array, iteratee, comparator) {
  27134. var index = -1,
  27135. includes = arrayIncludes,
  27136. length = array.length,
  27137. isCommon = true,
  27138. result = [],
  27139. seen = result;
  27140. if (comparator) {
  27141. isCommon = false;
  27142. includes = arrayIncludesWith;
  27143. }
  27144. else if (length >= LARGE_ARRAY_SIZE) {
  27145. var set = iteratee ? null : createSet(array);
  27146. if (set) {
  27147. return setToArray(set);
  27148. }
  27149. isCommon = false;
  27150. includes = cacheHas;
  27151. seen = new SetCache;
  27152. }
  27153. else {
  27154. seen = iteratee ? [] : result;
  27155. }
  27156. outer:
  27157. while (++index < length) {
  27158. var value = array[index],
  27159. computed = iteratee ? iteratee(value) : value;
  27160. value = (comparator || value !== 0) ? value : 0;
  27161. if (isCommon && computed === computed) {
  27162. var seenIndex = seen.length;
  27163. while (seenIndex--) {
  27164. if (seen[seenIndex] === computed) {
  27165. continue outer;
  27166. }
  27167. }
  27168. if (iteratee) {
  27169. seen.push(computed);
  27170. }
  27171. result.push(value);
  27172. }
  27173. else if (!includes(seen, computed, comparator)) {
  27174. if (seen !== result) {
  27175. seen.push(computed);
  27176. }
  27177. result.push(value);
  27178. }
  27179. }
  27180. return result;
  27181. }
  27182. /**
  27183. * Creates a set object of `values`.
  27184. *
  27185. * @private
  27186. * @param {Array} values The values to add to the set.
  27187. * @returns {Object} Returns the new set.
  27188. */
  27189. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  27190. return new Set(values);
  27191. };
  27192. /**
  27193. * Gets the data for `map`.
  27194. *
  27195. * @private
  27196. * @param {Object} map The map to query.
  27197. * @param {string} key The reference key.
  27198. * @returns {*} Returns the map data.
  27199. */
  27200. function getMapData(map, key) {
  27201. var data = map.__data__;
  27202. return isKeyable(key)
  27203. ? data[typeof key == 'string' ? 'string' : 'hash']
  27204. : data.map;
  27205. }
  27206. /**
  27207. * Gets the native function at `key` of `object`.
  27208. *
  27209. * @private
  27210. * @param {Object} object The object to query.
  27211. * @param {string} key The key of the method to get.
  27212. * @returns {*} Returns the function if it's native, else `undefined`.
  27213. */
  27214. function getNative(object, key) {
  27215. var value = getValue(object, key);
  27216. return baseIsNative(value) ? value : undefined;
  27217. }
  27218. /**
  27219. * Checks if `value` is suitable for use as unique object key.
  27220. *
  27221. * @private
  27222. * @param {*} value The value to check.
  27223. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  27224. */
  27225. function isKeyable(value) {
  27226. var type = typeof value;
  27227. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  27228. ? (value !== '__proto__')
  27229. : (value === null);
  27230. }
  27231. /**
  27232. * Checks if `func` has its source masked.
  27233. *
  27234. * @private
  27235. * @param {Function} func The function to check.
  27236. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  27237. */
  27238. function isMasked(func) {
  27239. return !!maskSrcKey && (maskSrcKey in func);
  27240. }
  27241. /**
  27242. * Converts `func` to its source code.
  27243. *
  27244. * @private
  27245. * @param {Function} func The function to process.
  27246. * @returns {string} Returns the source code.
  27247. */
  27248. function toSource(func) {
  27249. if (func != null) {
  27250. try {
  27251. return funcToString.call(func);
  27252. } catch (e) {}
  27253. try {
  27254. return (func + '');
  27255. } catch (e) {}
  27256. }
  27257. return '';
  27258. }
  27259. /**
  27260. * Creates a duplicate-free version of an array, using
  27261. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  27262. * for equality comparisons, in which only the first occurrence of each
  27263. * element is kept.
  27264. *
  27265. * @static
  27266. * @memberOf _
  27267. * @since 0.1.0
  27268. * @category Array
  27269. * @param {Array} array The array to inspect.
  27270. * @returns {Array} Returns the new duplicate free array.
  27271. * @example
  27272. *
  27273. * _.uniq([2, 1, 2]);
  27274. * // => [2, 1]
  27275. */
  27276. function uniq(array) {
  27277. return (array && array.length)
  27278. ? baseUniq(array)
  27279. : [];
  27280. }
  27281. /**
  27282. * Performs a
  27283. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  27284. * comparison between two values to determine if they are equivalent.
  27285. *
  27286. * @static
  27287. * @memberOf _
  27288. * @since 4.0.0
  27289. * @category Lang
  27290. * @param {*} value The value to compare.
  27291. * @param {*} other The other value to compare.
  27292. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  27293. * @example
  27294. *
  27295. * var object = { 'a': 1 };
  27296. * var other = { 'a': 1 };
  27297. *
  27298. * _.eq(object, object);
  27299. * // => true
  27300. *
  27301. * _.eq(object, other);
  27302. * // => false
  27303. *
  27304. * _.eq('a', 'a');
  27305. * // => true
  27306. *
  27307. * _.eq('a', Object('a'));
  27308. * // => false
  27309. *
  27310. * _.eq(NaN, NaN);
  27311. * // => true
  27312. */
  27313. function eq(value, other) {
  27314. return value === other || (value !== value && other !== other);
  27315. }
  27316. /**
  27317. * Checks if `value` is classified as a `Function` object.
  27318. *
  27319. * @static
  27320. * @memberOf _
  27321. * @since 0.1.0
  27322. * @category Lang
  27323. * @param {*} value The value to check.
  27324. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  27325. * @example
  27326. *
  27327. * _.isFunction(_);
  27328. * // => true
  27329. *
  27330. * _.isFunction(/abc/);
  27331. * // => false
  27332. */
  27333. function isFunction(value) {
  27334. // The use of `Object#toString` avoids issues with the `typeof` operator
  27335. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  27336. var tag = isObject(value) ? objectToString.call(value) : '';
  27337. return tag == funcTag || tag == genTag;
  27338. }
  27339. /**
  27340. * Checks if `value` is the
  27341. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  27342. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  27343. *
  27344. * @static
  27345. * @memberOf _
  27346. * @since 0.1.0
  27347. * @category Lang
  27348. * @param {*} value The value to check.
  27349. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  27350. * @example
  27351. *
  27352. * _.isObject({});
  27353. * // => true
  27354. *
  27355. * _.isObject([1, 2, 3]);
  27356. * // => true
  27357. *
  27358. * _.isObject(_.noop);
  27359. * // => true
  27360. *
  27361. * _.isObject(null);
  27362. * // => false
  27363. */
  27364. function isObject(value) {
  27365. var type = typeof value;
  27366. return !!value && (type == 'object' || type == 'function');
  27367. }
  27368. /**
  27369. * This method returns `undefined`.
  27370. *
  27371. * @static
  27372. * @memberOf _
  27373. * @since 2.3.0
  27374. * @category Util
  27375. * @example
  27376. *
  27377. * _.times(2, _.noop);
  27378. * // => [undefined, undefined]
  27379. */
  27380. function noop() {
  27381. // No operation performed.
  27382. }
  27383. module.exports = uniq;
  27384. /***/ }),
  27385. /***/ 7493:
  27386. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  27387. "use strict";
  27388. const os = __nccwpck_require__(2037);
  27389. const nameMap = new Map([
  27390. [19, 'Catalina'],
  27391. [18, 'Mojave'],
  27392. [17, 'High Sierra'],
  27393. [16, 'Sierra'],
  27394. [15, 'El Capitan'],
  27395. [14, 'Yosemite'],
  27396. [13, 'Mavericks'],
  27397. [12, 'Mountain Lion'],
  27398. [11, 'Lion'],
  27399. [10, 'Snow Leopard'],
  27400. [9, 'Leopard'],
  27401. [8, 'Tiger'],
  27402. [7, 'Panther'],
  27403. [6, 'Jaguar'],
  27404. [5, 'Puma']
  27405. ]);
  27406. const macosRelease = release => {
  27407. release = Number((release || os.release()).split('.')[0]);
  27408. return {
  27409. name: nameMap.get(release),
  27410. version: '10.' + (release - 4)
  27411. };
  27412. };
  27413. module.exports = macosRelease;
  27414. // TODO: remove this in the next major version
  27415. module.exports["default"] = macosRelease;
  27416. /***/ }),
  27417. /***/ 8560:
  27418. /***/ ((module) => {
  27419. "use strict";
  27420. /**
  27421. * Tries to execute a function and discards any error that occurs.
  27422. * @param {Function} fn - Function that might or might not throw an error.
  27423. * @returns {?*} Return-value of the function when no error occurred.
  27424. */
  27425. module.exports = function(fn) {
  27426. try { return fn() } catch (e) {}
  27427. }
  27428. /***/ }),
  27429. /***/ 467:
  27430. /***/ ((module, exports, __nccwpck_require__) => {
  27431. "use strict";
  27432. Object.defineProperty(exports, "__esModule", ({ value: true }));
  27433. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  27434. var Stream = _interopDefault(__nccwpck_require__(2781));
  27435. var http = _interopDefault(__nccwpck_require__(3685));
  27436. var Url = _interopDefault(__nccwpck_require__(7310));
  27437. var whatwgUrl = _interopDefault(__nccwpck_require__(3323));
  27438. var https = _interopDefault(__nccwpck_require__(5687));
  27439. var zlib = _interopDefault(__nccwpck_require__(9796));
  27440. // Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
  27441. // fix for "Readable" isn't a named export issue
  27442. const Readable = Stream.Readable;
  27443. const BUFFER = Symbol('buffer');
  27444. const TYPE = Symbol('type');
  27445. class Blob {
  27446. constructor() {
  27447. this[TYPE] = '';
  27448. const blobParts = arguments[0];
  27449. const options = arguments[1];
  27450. const buffers = [];
  27451. let size = 0;
  27452. if (blobParts) {
  27453. const a = blobParts;
  27454. const length = Number(a.length);
  27455. for (let i = 0; i < length; i++) {
  27456. const element = a[i];
  27457. let buffer;
  27458. if (element instanceof Buffer) {
  27459. buffer = element;
  27460. } else if (ArrayBuffer.isView(element)) {
  27461. buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
  27462. } else if (element instanceof ArrayBuffer) {
  27463. buffer = Buffer.from(element);
  27464. } else if (element instanceof Blob) {
  27465. buffer = element[BUFFER];
  27466. } else {
  27467. buffer = Buffer.from(typeof element === 'string' ? element : String(element));
  27468. }
  27469. size += buffer.length;
  27470. buffers.push(buffer);
  27471. }
  27472. }
  27473. this[BUFFER] = Buffer.concat(buffers);
  27474. let type = options && options.type !== undefined && String(options.type).toLowerCase();
  27475. if (type && !/[^\u0020-\u007E]/.test(type)) {
  27476. this[TYPE] = type;
  27477. }
  27478. }
  27479. get size() {
  27480. return this[BUFFER].length;
  27481. }
  27482. get type() {
  27483. return this[TYPE];
  27484. }
  27485. text() {
  27486. return Promise.resolve(this[BUFFER].toString());
  27487. }
  27488. arrayBuffer() {
  27489. const buf = this[BUFFER];
  27490. const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  27491. return Promise.resolve(ab);
  27492. }
  27493. stream() {
  27494. const readable = new Readable();
  27495. readable._read = function () {};
  27496. readable.push(this[BUFFER]);
  27497. readable.push(null);
  27498. return readable;
  27499. }
  27500. toString() {
  27501. return '[object Blob]';
  27502. }
  27503. slice() {
  27504. const size = this.size;
  27505. const start = arguments[0];
  27506. const end = arguments[1];
  27507. let relativeStart, relativeEnd;
  27508. if (start === undefined) {
  27509. relativeStart = 0;
  27510. } else if (start < 0) {
  27511. relativeStart = Math.max(size + start, 0);
  27512. } else {
  27513. relativeStart = Math.min(start, size);
  27514. }
  27515. if (end === undefined) {
  27516. relativeEnd = size;
  27517. } else if (end < 0) {
  27518. relativeEnd = Math.max(size + end, 0);
  27519. } else {
  27520. relativeEnd = Math.min(end, size);
  27521. }
  27522. const span = Math.max(relativeEnd - relativeStart, 0);
  27523. const buffer = this[BUFFER];
  27524. const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
  27525. const blob = new Blob([], { type: arguments[2] });
  27526. blob[BUFFER] = slicedBuffer;
  27527. return blob;
  27528. }
  27529. }
  27530. Object.defineProperties(Blob.prototype, {
  27531. size: { enumerable: true },
  27532. type: { enumerable: true },
  27533. slice: { enumerable: true }
  27534. });
  27535. Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
  27536. value: 'Blob',
  27537. writable: false,
  27538. enumerable: false,
  27539. configurable: true
  27540. });
  27541. /**
  27542. * fetch-error.js
  27543. *
  27544. * FetchError interface for operational errors
  27545. */
  27546. /**
  27547. * Create FetchError instance
  27548. *
  27549. * @param String message Error message for human
  27550. * @param String type Error type for machine
  27551. * @param String systemError For Node.js system error
  27552. * @return FetchError
  27553. */
  27554. function FetchError(message, type, systemError) {
  27555. Error.call(this, message);
  27556. this.message = message;
  27557. this.type = type;
  27558. // when err.type is `system`, err.code contains system error code
  27559. if (systemError) {
  27560. this.code = this.errno = systemError.code;
  27561. }
  27562. // hide custom error implementation details from end-users
  27563. Error.captureStackTrace(this, this.constructor);
  27564. }
  27565. FetchError.prototype = Object.create(Error.prototype);
  27566. FetchError.prototype.constructor = FetchError;
  27567. FetchError.prototype.name = 'FetchError';
  27568. let convert;
  27569. try {
  27570. convert = (__nccwpck_require__(2877).convert);
  27571. } catch (e) {}
  27572. const INTERNALS = Symbol('Body internals');
  27573. // fix an issue where "PassThrough" isn't a named export for node <10
  27574. const PassThrough = Stream.PassThrough;
  27575. /**
  27576. * Body mixin
  27577. *
  27578. * Ref: https://fetch.spec.whatwg.org/#body
  27579. *
  27580. * @param Stream body Readable stream
  27581. * @param Object opts Response options
  27582. * @return Void
  27583. */
  27584. function Body(body) {
  27585. var _this = this;
  27586. var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  27587. _ref$size = _ref.size;
  27588. let size = _ref$size === undefined ? 0 : _ref$size;
  27589. var _ref$timeout = _ref.timeout;
  27590. let timeout = _ref$timeout === undefined ? 0 : _ref$timeout;
  27591. if (body == null) {
  27592. // body is undefined or null
  27593. body = null;
  27594. } else if (isURLSearchParams(body)) {
  27595. // body is a URLSearchParams
  27596. body = Buffer.from(body.toString());
  27597. } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  27598. // body is ArrayBuffer
  27599. body = Buffer.from(body);
  27600. } else if (ArrayBuffer.isView(body)) {
  27601. // body is ArrayBufferView
  27602. body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
  27603. } else if (body instanceof Stream) ; else {
  27604. // none of the above
  27605. // coerce to string then buffer
  27606. body = Buffer.from(String(body));
  27607. }
  27608. this[INTERNALS] = {
  27609. body,
  27610. disturbed: false,
  27611. error: null
  27612. };
  27613. this.size = size;
  27614. this.timeout = timeout;
  27615. if (body instanceof Stream) {
  27616. body.on('error', function (err) {
  27617. const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);
  27618. _this[INTERNALS].error = error;
  27619. });
  27620. }
  27621. }
  27622. Body.prototype = {
  27623. get body() {
  27624. return this[INTERNALS].body;
  27625. },
  27626. get bodyUsed() {
  27627. return this[INTERNALS].disturbed;
  27628. },
  27629. /**
  27630. * Decode response as ArrayBuffer
  27631. *
  27632. * @return Promise
  27633. */
  27634. arrayBuffer() {
  27635. return consumeBody.call(this).then(function (buf) {
  27636. return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  27637. });
  27638. },
  27639. /**
  27640. * Return raw response as Blob
  27641. *
  27642. * @return Promise
  27643. */
  27644. blob() {
  27645. let ct = this.headers && this.headers.get('content-type') || '';
  27646. return consumeBody.call(this).then(function (buf) {
  27647. return Object.assign(
  27648. // Prevent copying
  27649. new Blob([], {
  27650. type: ct.toLowerCase()
  27651. }), {
  27652. [BUFFER]: buf
  27653. });
  27654. });
  27655. },
  27656. /**
  27657. * Decode response as json
  27658. *
  27659. * @return Promise
  27660. */
  27661. json() {
  27662. var _this2 = this;
  27663. return consumeBody.call(this).then(function (buffer) {
  27664. try {
  27665. return JSON.parse(buffer.toString());
  27666. } catch (err) {
  27667. return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
  27668. }
  27669. });
  27670. },
  27671. /**
  27672. * Decode response as text
  27673. *
  27674. * @return Promise
  27675. */
  27676. text() {
  27677. return consumeBody.call(this).then(function (buffer) {
  27678. return buffer.toString();
  27679. });
  27680. },
  27681. /**
  27682. * Decode response as buffer (non-spec api)
  27683. *
  27684. * @return Promise
  27685. */
  27686. buffer() {
  27687. return consumeBody.call(this);
  27688. },
  27689. /**
  27690. * Decode response as text, while automatically detecting the encoding and
  27691. * trying to decode to UTF-8 (non-spec api)
  27692. *
  27693. * @return Promise
  27694. */
  27695. textConverted() {
  27696. var _this3 = this;
  27697. return consumeBody.call(this).then(function (buffer) {
  27698. return convertBody(buffer, _this3.headers);
  27699. });
  27700. }
  27701. };
  27702. // In browsers, all properties are enumerable.
  27703. Object.defineProperties(Body.prototype, {
  27704. body: { enumerable: true },
  27705. bodyUsed: { enumerable: true },
  27706. arrayBuffer: { enumerable: true },
  27707. blob: { enumerable: true },
  27708. json: { enumerable: true },
  27709. text: { enumerable: true }
  27710. });
  27711. Body.mixIn = function (proto) {
  27712. for (const name of Object.getOwnPropertyNames(Body.prototype)) {
  27713. // istanbul ignore else: future proof
  27714. if (!(name in proto)) {
  27715. const desc = Object.getOwnPropertyDescriptor(Body.prototype, name);
  27716. Object.defineProperty(proto, name, desc);
  27717. }
  27718. }
  27719. };
  27720. /**
  27721. * Consume and convert an entire Body to a Buffer.
  27722. *
  27723. * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body
  27724. *
  27725. * @return Promise
  27726. */
  27727. function consumeBody() {
  27728. var _this4 = this;
  27729. if (this[INTERNALS].disturbed) {
  27730. return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
  27731. }
  27732. this[INTERNALS].disturbed = true;
  27733. if (this[INTERNALS].error) {
  27734. return Body.Promise.reject(this[INTERNALS].error);
  27735. }
  27736. let body = this.body;
  27737. // body is null
  27738. if (body === null) {
  27739. return Body.Promise.resolve(Buffer.alloc(0));
  27740. }
  27741. // body is blob
  27742. if (isBlob(body)) {
  27743. body = body.stream();
  27744. }
  27745. // body is buffer
  27746. if (Buffer.isBuffer(body)) {
  27747. return Body.Promise.resolve(body);
  27748. }
  27749. // istanbul ignore if: should never happen
  27750. if (!(body instanceof Stream)) {
  27751. return Body.Promise.resolve(Buffer.alloc(0));
  27752. }
  27753. // body is stream
  27754. // get ready to actually consume the body
  27755. let accum = [];
  27756. let accumBytes = 0;
  27757. let abort = false;
  27758. return new Body.Promise(function (resolve, reject) {
  27759. let resTimeout;
  27760. // allow timeout on slow response body
  27761. if (_this4.timeout) {
  27762. resTimeout = setTimeout(function () {
  27763. abort = true;
  27764. reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));
  27765. }, _this4.timeout);
  27766. }
  27767. // handle stream errors
  27768. body.on('error', function (err) {
  27769. if (err.name === 'AbortError') {
  27770. // if the request was aborted, reject with this Error
  27771. abort = true;
  27772. reject(err);
  27773. } else {
  27774. // other errors, such as incorrect content-encoding
  27775. reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));
  27776. }
  27777. });
  27778. body.on('data', function (chunk) {
  27779. if (abort || chunk === null) {
  27780. return;
  27781. }
  27782. if (_this4.size && accumBytes + chunk.length > _this4.size) {
  27783. abort = true;
  27784. reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));
  27785. return;
  27786. }
  27787. accumBytes += chunk.length;
  27788. accum.push(chunk);
  27789. });
  27790. body.on('end', function () {
  27791. if (abort) {
  27792. return;
  27793. }
  27794. clearTimeout(resTimeout);
  27795. try {
  27796. resolve(Buffer.concat(accum, accumBytes));
  27797. } catch (err) {
  27798. // handle streams that have accumulated too much data (issue #414)
  27799. reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));
  27800. }
  27801. });
  27802. });
  27803. }
  27804. /**
  27805. * Detect buffer encoding and convert to target encoding
  27806. * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding
  27807. *
  27808. * @param Buffer buffer Incoming buffer
  27809. * @param String encoding Target encoding
  27810. * @return String
  27811. */
  27812. function convertBody(buffer, headers) {
  27813. if (typeof convert !== 'function') {
  27814. throw new Error('The package `encoding` must be installed to use the textConverted() function');
  27815. }
  27816. const ct = headers.get('content-type');
  27817. let charset = 'utf-8';
  27818. let res, str;
  27819. // header
  27820. if (ct) {
  27821. res = /charset=([^;]*)/i.exec(ct);
  27822. }
  27823. // no charset in content type, peek at response body for at most 1024 bytes
  27824. str = buffer.slice(0, 1024).toString();
  27825. // html5
  27826. if (!res && str) {
  27827. res = /<meta.+?charset=(['"])(.+?)\1/i.exec(str);
  27828. }
  27829. // html4
  27830. if (!res && str) {
  27831. res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
  27832. if (!res) {
  27833. res = /<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(str);
  27834. if (res) {
  27835. res.pop(); // drop last quote
  27836. }
  27837. }
  27838. if (res) {
  27839. res = /charset=(.*)/i.exec(res.pop());
  27840. }
  27841. }
  27842. // xml
  27843. if (!res && str) {
  27844. res = /<\?xml.+?encoding=(['"])(.+?)\1/i.exec(str);
  27845. }
  27846. // found charset
  27847. if (res) {
  27848. charset = res.pop();
  27849. // prevent decode issues when sites use incorrect encoding
  27850. // ref: https://hsivonen.fi/encoding-menu/
  27851. if (charset === 'gb2312' || charset === 'gbk') {
  27852. charset = 'gb18030';
  27853. }
  27854. }
  27855. // turn raw buffers into a single utf-8 buffer
  27856. return convert(buffer, 'UTF-8', charset).toString();
  27857. }
  27858. /**
  27859. * Detect a URLSearchParams object
  27860. * ref: https://github.com/bitinn/node-fetch/issues/296#issuecomment-307598143
  27861. *
  27862. * @param Object obj Object to detect by type or brand
  27863. * @return String
  27864. */
  27865. function isURLSearchParams(obj) {
  27866. // Duck-typing as a necessary condition.
  27867. 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') {
  27868. return false;
  27869. }
  27870. // Brand-checking and more duck-typing as optional condition.
  27871. return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';
  27872. }
  27873. /**
  27874. * Check if `obj` is a W3C `Blob` object (which `File` inherits from)
  27875. * @param {*} obj
  27876. * @return {boolean}
  27877. */
  27878. function isBlob(obj) {
  27879. 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]);
  27880. }
  27881. /**
  27882. * Clone body given Res/Req instance
  27883. *
  27884. * @param Mixed instance Response or Request instance
  27885. * @return Mixed
  27886. */
  27887. function clone(instance) {
  27888. let p1, p2;
  27889. let body = instance.body;
  27890. // don't allow cloning a used body
  27891. if (instance.bodyUsed) {
  27892. throw new Error('cannot clone body after it is used');
  27893. }
  27894. // check that body is a stream and not form-data object
  27895. // note: we can't clone the form-data object without having it as a dependency
  27896. if (body instanceof Stream && typeof body.getBoundary !== 'function') {
  27897. // tee instance body
  27898. p1 = new PassThrough();
  27899. p2 = new PassThrough();
  27900. body.pipe(p1);
  27901. body.pipe(p2);
  27902. // set instance body to teed body and return the other teed body
  27903. instance[INTERNALS].body = p1;
  27904. body = p2;
  27905. }
  27906. return body;
  27907. }
  27908. /**
  27909. * Performs the operation "extract a `Content-Type` value from |object|" as
  27910. * specified in the specification:
  27911. * https://fetch.spec.whatwg.org/#concept-bodyinit-extract
  27912. *
  27913. * This function assumes that instance.body is present.
  27914. *
  27915. * @param Mixed instance Any options.body input
  27916. */
  27917. function extractContentType(body) {
  27918. if (body === null) {
  27919. // body is null
  27920. return null;
  27921. } else if (typeof body === 'string') {
  27922. // body is string
  27923. return 'text/plain;charset=UTF-8';
  27924. } else if (isURLSearchParams(body)) {
  27925. // body is a URLSearchParams
  27926. return 'application/x-www-form-urlencoded;charset=UTF-8';
  27927. } else if (isBlob(body)) {
  27928. // body is blob
  27929. return body.type || null;
  27930. } else if (Buffer.isBuffer(body)) {
  27931. // body is buffer
  27932. return null;
  27933. } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  27934. // body is ArrayBuffer
  27935. return null;
  27936. } else if (ArrayBuffer.isView(body)) {
  27937. // body is ArrayBufferView
  27938. return null;
  27939. } else if (typeof body.getBoundary === 'function') {
  27940. // detect form data input from form-data module
  27941. return `multipart/form-data;boundary=${body.getBoundary()}`;
  27942. } else if (body instanceof Stream) {
  27943. // body is stream
  27944. // can't really do much about this
  27945. return null;
  27946. } else {
  27947. // Body constructor defaults other things to string
  27948. return 'text/plain;charset=UTF-8';
  27949. }
  27950. }
  27951. /**
  27952. * The Fetch Standard treats this as if "total bytes" is a property on the body.
  27953. * For us, we have to explicitly get it with a function.
  27954. *
  27955. * ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes
  27956. *
  27957. * @param Body instance Instance of Body
  27958. * @return Number? Number of bytes, or null if not possible
  27959. */
  27960. function getTotalBytes(instance) {
  27961. const body = instance.body;
  27962. if (body === null) {
  27963. // body is null
  27964. return 0;
  27965. } else if (isBlob(body)) {
  27966. return body.size;
  27967. } else if (Buffer.isBuffer(body)) {
  27968. // body is buffer
  27969. return body.length;
  27970. } else if (body && typeof body.getLengthSync === 'function') {
  27971. // detect form data input from form-data module
  27972. if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x
  27973. body.hasKnownLength && body.hasKnownLength()) {
  27974. // 2.x
  27975. return body.getLengthSync();
  27976. }
  27977. return null;
  27978. } else {
  27979. // body is stream
  27980. return null;
  27981. }
  27982. }
  27983. /**
  27984. * Write a Body to a Node.js WritableStream (e.g. http.Request) object.
  27985. *
  27986. * @param Body instance Instance of Body
  27987. * @return Void
  27988. */
  27989. function writeToStream(dest, instance) {
  27990. const body = instance.body;
  27991. if (body === null) {
  27992. // body is null
  27993. dest.end();
  27994. } else if (isBlob(body)) {
  27995. body.stream().pipe(dest);
  27996. } else if (Buffer.isBuffer(body)) {
  27997. // body is buffer
  27998. dest.write(body);
  27999. dest.end();
  28000. } else {
  28001. // body is stream
  28002. body.pipe(dest);
  28003. }
  28004. }
  28005. // expose Promise
  28006. Body.Promise = global.Promise;
  28007. /**
  28008. * headers.js
  28009. *
  28010. * Headers class offers convenient helpers
  28011. */
  28012. const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
  28013. const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
  28014. function validateName(name) {
  28015. name = `${name}`;
  28016. if (invalidTokenRegex.test(name) || name === '') {
  28017. throw new TypeError(`${name} is not a legal HTTP header name`);
  28018. }
  28019. }
  28020. function validateValue(value) {
  28021. value = `${value}`;
  28022. if (invalidHeaderCharRegex.test(value)) {
  28023. throw new TypeError(`${value} is not a legal HTTP header value`);
  28024. }
  28025. }
  28026. /**
  28027. * Find the key in the map object given a header name.
  28028. *
  28029. * Returns undefined if not found.
  28030. *
  28031. * @param String name Header name
  28032. * @return String|Undefined
  28033. */
  28034. function find(map, name) {
  28035. name = name.toLowerCase();
  28036. for (const key in map) {
  28037. if (key.toLowerCase() === name) {
  28038. return key;
  28039. }
  28040. }
  28041. return undefined;
  28042. }
  28043. const MAP = Symbol('map');
  28044. class Headers {
  28045. /**
  28046. * Headers class
  28047. *
  28048. * @param Object headers Response headers
  28049. * @return Void
  28050. */
  28051. constructor() {
  28052. let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  28053. this[MAP] = Object.create(null);
  28054. if (init instanceof Headers) {
  28055. const rawHeaders = init.raw();
  28056. const headerNames = Object.keys(rawHeaders);
  28057. for (const headerName of headerNames) {
  28058. for (const value of rawHeaders[headerName]) {
  28059. this.append(headerName, value);
  28060. }
  28061. }
  28062. return;
  28063. }
  28064. // We don't worry about converting prop to ByteString here as append()
  28065. // will handle it.
  28066. if (init == null) ; else if (typeof init === 'object') {
  28067. const method = init[Symbol.iterator];
  28068. if (method != null) {
  28069. if (typeof method !== 'function') {
  28070. throw new TypeError('Header pairs must be iterable');
  28071. }
  28072. // sequence<sequence<ByteString>>
  28073. // Note: per spec we have to first exhaust the lists then process them
  28074. const pairs = [];
  28075. for (const pair of init) {
  28076. if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {
  28077. throw new TypeError('Each header pair must be iterable');
  28078. }
  28079. pairs.push(Array.from(pair));
  28080. }
  28081. for (const pair of pairs) {
  28082. if (pair.length !== 2) {
  28083. throw new TypeError('Each header pair must be a name/value tuple');
  28084. }
  28085. this.append(pair[0], pair[1]);
  28086. }
  28087. } else {
  28088. // record<ByteString, ByteString>
  28089. for (const key of Object.keys(init)) {
  28090. const value = init[key];
  28091. this.append(key, value);
  28092. }
  28093. }
  28094. } else {
  28095. throw new TypeError('Provided initializer must be an object');
  28096. }
  28097. }
  28098. /**
  28099. * Return combined header value given name
  28100. *
  28101. * @param String name Header name
  28102. * @return Mixed
  28103. */
  28104. get(name) {
  28105. name = `${name}`;
  28106. validateName(name);
  28107. const key = find(this[MAP], name);
  28108. if (key === undefined) {
  28109. return null;
  28110. }
  28111. return this[MAP][key].join(', ');
  28112. }
  28113. /**
  28114. * Iterate over all headers
  28115. *
  28116. * @param Function callback Executed for each item with parameters (value, name, thisArg)
  28117. * @param Boolean thisArg `this` context for callback function
  28118. * @return Void
  28119. */
  28120. forEach(callback) {
  28121. let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
  28122. let pairs = getHeaders(this);
  28123. let i = 0;
  28124. while (i < pairs.length) {
  28125. var _pairs$i = pairs[i];
  28126. const name = _pairs$i[0],
  28127. value = _pairs$i[1];
  28128. callback.call(thisArg, value, name, this);
  28129. pairs = getHeaders(this);
  28130. i++;
  28131. }
  28132. }
  28133. /**
  28134. * Overwrite header values given name
  28135. *
  28136. * @param String name Header name
  28137. * @param String value Header value
  28138. * @return Void
  28139. */
  28140. set(name, value) {
  28141. name = `${name}`;
  28142. value = `${value}`;
  28143. validateName(name);
  28144. validateValue(value);
  28145. const key = find(this[MAP], name);
  28146. this[MAP][key !== undefined ? key : name] = [value];
  28147. }
  28148. /**
  28149. * Append a value onto existing header
  28150. *
  28151. * @param String name Header name
  28152. * @param String value Header value
  28153. * @return Void
  28154. */
  28155. append(name, value) {
  28156. name = `${name}`;
  28157. value = `${value}`;
  28158. validateName(name);
  28159. validateValue(value);
  28160. const key = find(this[MAP], name);
  28161. if (key !== undefined) {
  28162. this[MAP][key].push(value);
  28163. } else {
  28164. this[MAP][name] = [value];
  28165. }
  28166. }
  28167. /**
  28168. * Check for header name existence
  28169. *
  28170. * @param String name Header name
  28171. * @return Boolean
  28172. */
  28173. has(name) {
  28174. name = `${name}`;
  28175. validateName(name);
  28176. return find(this[MAP], name) !== undefined;
  28177. }
  28178. /**
  28179. * Delete all header values given name
  28180. *
  28181. * @param String name Header name
  28182. * @return Void
  28183. */
  28184. delete(name) {
  28185. name = `${name}`;
  28186. validateName(name);
  28187. const key = find(this[MAP], name);
  28188. if (key !== undefined) {
  28189. delete this[MAP][key];
  28190. }
  28191. }
  28192. /**
  28193. * Return raw headers (non-spec api)
  28194. *
  28195. * @return Object
  28196. */
  28197. raw() {
  28198. return this[MAP];
  28199. }
  28200. /**
  28201. * Get an iterator on keys.
  28202. *
  28203. * @return Iterator
  28204. */
  28205. keys() {
  28206. return createHeadersIterator(this, 'key');
  28207. }
  28208. /**
  28209. * Get an iterator on values.
  28210. *
  28211. * @return Iterator
  28212. */
  28213. values() {
  28214. return createHeadersIterator(this, 'value');
  28215. }
  28216. /**
  28217. * Get an iterator on entries.
  28218. *
  28219. * This is the default iterator of the Headers object.
  28220. *
  28221. * @return Iterator
  28222. */
  28223. [Symbol.iterator]() {
  28224. return createHeadersIterator(this, 'key+value');
  28225. }
  28226. }
  28227. Headers.prototype.entries = Headers.prototype[Symbol.iterator];
  28228. Object.defineProperty(Headers.prototype, Symbol.toStringTag, {
  28229. value: 'Headers',
  28230. writable: false,
  28231. enumerable: false,
  28232. configurable: true
  28233. });
  28234. Object.defineProperties(Headers.prototype, {
  28235. get: { enumerable: true },
  28236. forEach: { enumerable: true },
  28237. set: { enumerable: true },
  28238. append: { enumerable: true },
  28239. has: { enumerable: true },
  28240. delete: { enumerable: true },
  28241. keys: { enumerable: true },
  28242. values: { enumerable: true },
  28243. entries: { enumerable: true }
  28244. });
  28245. function getHeaders(headers) {
  28246. let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';
  28247. const keys = Object.keys(headers[MAP]).sort();
  28248. return keys.map(kind === 'key' ? function (k) {
  28249. return k.toLowerCase();
  28250. } : kind === 'value' ? function (k) {
  28251. return headers[MAP][k].join(', ');
  28252. } : function (k) {
  28253. return [k.toLowerCase(), headers[MAP][k].join(', ')];
  28254. });
  28255. }
  28256. const INTERNAL = Symbol('internal');
  28257. function createHeadersIterator(target, kind) {
  28258. const iterator = Object.create(HeadersIteratorPrototype);
  28259. iterator[INTERNAL] = {
  28260. target,
  28261. kind,
  28262. index: 0
  28263. };
  28264. return iterator;
  28265. }
  28266. const HeadersIteratorPrototype = Object.setPrototypeOf({
  28267. next() {
  28268. // istanbul ignore if
  28269. if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
  28270. throw new TypeError('Value of `this` is not a HeadersIterator');
  28271. }
  28272. var _INTERNAL = this[INTERNAL];
  28273. const target = _INTERNAL.target,
  28274. kind = _INTERNAL.kind,
  28275. index = _INTERNAL.index;
  28276. const values = getHeaders(target, kind);
  28277. const len = values.length;
  28278. if (index >= len) {
  28279. return {
  28280. value: undefined,
  28281. done: true
  28282. };
  28283. }
  28284. this[INTERNAL].index = index + 1;
  28285. return {
  28286. value: values[index],
  28287. done: false
  28288. };
  28289. }
  28290. }, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));
  28291. Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {
  28292. value: 'HeadersIterator',
  28293. writable: false,
  28294. enumerable: false,
  28295. configurable: true
  28296. });
  28297. /**
  28298. * Export the Headers object in a form that Node.js can consume.
  28299. *
  28300. * @param Headers headers
  28301. * @return Object
  28302. */
  28303. function exportNodeCompatibleHeaders(headers) {
  28304. const obj = Object.assign({ __proto__: null }, headers[MAP]);
  28305. // http.request() only supports string as Host header. This hack makes
  28306. // specifying custom Host header possible.
  28307. const hostHeaderKey = find(headers[MAP], 'Host');
  28308. if (hostHeaderKey !== undefined) {
  28309. obj[hostHeaderKey] = obj[hostHeaderKey][0];
  28310. }
  28311. return obj;
  28312. }
  28313. /**
  28314. * Create a Headers object from an object of headers, ignoring those that do
  28315. * not conform to HTTP grammar productions.
  28316. *
  28317. * @param Object obj Object of headers
  28318. * @return Headers
  28319. */
  28320. function createHeadersLenient(obj) {
  28321. const headers = new Headers();
  28322. for (const name of Object.keys(obj)) {
  28323. if (invalidTokenRegex.test(name)) {
  28324. continue;
  28325. }
  28326. if (Array.isArray(obj[name])) {
  28327. for (const val of obj[name]) {
  28328. if (invalidHeaderCharRegex.test(val)) {
  28329. continue;
  28330. }
  28331. if (headers[MAP][name] === undefined) {
  28332. headers[MAP][name] = [val];
  28333. } else {
  28334. headers[MAP][name].push(val);
  28335. }
  28336. }
  28337. } else if (!invalidHeaderCharRegex.test(obj[name])) {
  28338. headers[MAP][name] = [obj[name]];
  28339. }
  28340. }
  28341. return headers;
  28342. }
  28343. const INTERNALS$1 = Symbol('Response internals');
  28344. // fix an issue where "STATUS_CODES" aren't a named export for node <10
  28345. const STATUS_CODES = http.STATUS_CODES;
  28346. /**
  28347. * Response class
  28348. *
  28349. * @param Stream body Readable stream
  28350. * @param Object opts Response options
  28351. * @return Void
  28352. */
  28353. class Response {
  28354. constructor() {
  28355. let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  28356. let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28357. Body.call(this, body, opts);
  28358. const status = opts.status || 200;
  28359. const headers = new Headers(opts.headers);
  28360. if (body != null && !headers.has('Content-Type')) {
  28361. const contentType = extractContentType(body);
  28362. if (contentType) {
  28363. headers.append('Content-Type', contentType);
  28364. }
  28365. }
  28366. this[INTERNALS$1] = {
  28367. url: opts.url,
  28368. status,
  28369. statusText: opts.statusText || STATUS_CODES[status],
  28370. headers,
  28371. counter: opts.counter
  28372. };
  28373. }
  28374. get url() {
  28375. return this[INTERNALS$1].url || '';
  28376. }
  28377. get status() {
  28378. return this[INTERNALS$1].status;
  28379. }
  28380. /**
  28381. * Convenience property representing if the request ended normally
  28382. */
  28383. get ok() {
  28384. return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;
  28385. }
  28386. get redirected() {
  28387. return this[INTERNALS$1].counter > 0;
  28388. }
  28389. get statusText() {
  28390. return this[INTERNALS$1].statusText;
  28391. }
  28392. get headers() {
  28393. return this[INTERNALS$1].headers;
  28394. }
  28395. /**
  28396. * Clone this response
  28397. *
  28398. * @return Response
  28399. */
  28400. clone() {
  28401. return new Response(clone(this), {
  28402. url: this.url,
  28403. status: this.status,
  28404. statusText: this.statusText,
  28405. headers: this.headers,
  28406. ok: this.ok,
  28407. redirected: this.redirected
  28408. });
  28409. }
  28410. }
  28411. Body.mixIn(Response.prototype);
  28412. Object.defineProperties(Response.prototype, {
  28413. url: { enumerable: true },
  28414. status: { enumerable: true },
  28415. ok: { enumerable: true },
  28416. redirected: { enumerable: true },
  28417. statusText: { enumerable: true },
  28418. headers: { enumerable: true },
  28419. clone: { enumerable: true }
  28420. });
  28421. Object.defineProperty(Response.prototype, Symbol.toStringTag, {
  28422. value: 'Response',
  28423. writable: false,
  28424. enumerable: false,
  28425. configurable: true
  28426. });
  28427. const INTERNALS$2 = Symbol('Request internals');
  28428. const URL = Url.URL || whatwgUrl.URL;
  28429. // fix an issue where "format", "parse" aren't a named export for node <10
  28430. const parse_url = Url.parse;
  28431. const format_url = Url.format;
  28432. /**
  28433. * Wrapper around `new URL` to handle arbitrary URLs
  28434. *
  28435. * @param {string} urlStr
  28436. * @return {void}
  28437. */
  28438. function parseURL(urlStr) {
  28439. /*
  28440. Check whether the URL is absolute or not
  28441. Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
  28442. Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
  28443. */
  28444. if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) {
  28445. urlStr = new URL(urlStr).toString();
  28446. }
  28447. // Fallback to old implementation for arbitrary URLs
  28448. return parse_url(urlStr);
  28449. }
  28450. const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
  28451. /**
  28452. * Check if a value is an instance of Request.
  28453. *
  28454. * @param Mixed input
  28455. * @return Boolean
  28456. */
  28457. function isRequest(input) {
  28458. return typeof input === 'object' && typeof input[INTERNALS$2] === 'object';
  28459. }
  28460. function isAbortSignal(signal) {
  28461. const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
  28462. return !!(proto && proto.constructor.name === 'AbortSignal');
  28463. }
  28464. /**
  28465. * Request class
  28466. *
  28467. * @param Mixed input Url or Request instance
  28468. * @param Object init Custom options
  28469. * @return Void
  28470. */
  28471. class Request {
  28472. constructor(input) {
  28473. let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28474. let parsedURL;
  28475. // normalize input
  28476. if (!isRequest(input)) {
  28477. if (input && input.href) {
  28478. // in order to support Node.js' Url objects; though WHATWG's URL objects
  28479. // will fall into this branch also (since their `toString()` will return
  28480. // `href` property anyway)
  28481. parsedURL = parseURL(input.href);
  28482. } else {
  28483. // coerce input to a string before attempting to parse
  28484. parsedURL = parseURL(`${input}`);
  28485. }
  28486. input = {};
  28487. } else {
  28488. parsedURL = parseURL(input.url);
  28489. }
  28490. let method = init.method || input.method || 'GET';
  28491. method = method.toUpperCase();
  28492. if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {
  28493. throw new TypeError('Request with GET/HEAD method cannot have body');
  28494. }
  28495. let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
  28496. Body.call(this, inputBody, {
  28497. timeout: init.timeout || input.timeout || 0,
  28498. size: init.size || input.size || 0
  28499. });
  28500. const headers = new Headers(init.headers || input.headers || {});
  28501. if (inputBody != null && !headers.has('Content-Type')) {
  28502. const contentType = extractContentType(inputBody);
  28503. if (contentType) {
  28504. headers.append('Content-Type', contentType);
  28505. }
  28506. }
  28507. let signal = isRequest(input) ? input.signal : null;
  28508. if ('signal' in init) signal = init.signal;
  28509. if (signal != null && !isAbortSignal(signal)) {
  28510. throw new TypeError('Expected signal to be an instanceof AbortSignal');
  28511. }
  28512. this[INTERNALS$2] = {
  28513. method,
  28514. redirect: init.redirect || input.redirect || 'follow',
  28515. headers,
  28516. parsedURL,
  28517. signal
  28518. };
  28519. // node-fetch-only options
  28520. this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;
  28521. this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
  28522. this.counter = init.counter || input.counter || 0;
  28523. this.agent = init.agent || input.agent;
  28524. }
  28525. get method() {
  28526. return this[INTERNALS$2].method;
  28527. }
  28528. get url() {
  28529. return format_url(this[INTERNALS$2].parsedURL);
  28530. }
  28531. get headers() {
  28532. return this[INTERNALS$2].headers;
  28533. }
  28534. get redirect() {
  28535. return this[INTERNALS$2].redirect;
  28536. }
  28537. get signal() {
  28538. return this[INTERNALS$2].signal;
  28539. }
  28540. /**
  28541. * Clone this request
  28542. *
  28543. * @return Request
  28544. */
  28545. clone() {
  28546. return new Request(this);
  28547. }
  28548. }
  28549. Body.mixIn(Request.prototype);
  28550. Object.defineProperty(Request.prototype, Symbol.toStringTag, {
  28551. value: 'Request',
  28552. writable: false,
  28553. enumerable: false,
  28554. configurable: true
  28555. });
  28556. Object.defineProperties(Request.prototype, {
  28557. method: { enumerable: true },
  28558. url: { enumerable: true },
  28559. headers: { enumerable: true },
  28560. redirect: { enumerable: true },
  28561. clone: { enumerable: true },
  28562. signal: { enumerable: true }
  28563. });
  28564. /**
  28565. * Convert a Request to Node.js http request options.
  28566. *
  28567. * @param Request A Request instance
  28568. * @return Object The options object to be passed to http.request
  28569. */
  28570. function getNodeRequestOptions(request) {
  28571. const parsedURL = request[INTERNALS$2].parsedURL;
  28572. const headers = new Headers(request[INTERNALS$2].headers);
  28573. // fetch step 1.3
  28574. if (!headers.has('Accept')) {
  28575. headers.set('Accept', '*/*');
  28576. }
  28577. // Basic fetch
  28578. if (!parsedURL.protocol || !parsedURL.hostname) {
  28579. throw new TypeError('Only absolute URLs are supported');
  28580. }
  28581. if (!/^https?:$/.test(parsedURL.protocol)) {
  28582. throw new TypeError('Only HTTP(S) protocols are supported');
  28583. }
  28584. if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) {
  28585. throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');
  28586. }
  28587. // HTTP-network-or-cache fetch steps 2.4-2.7
  28588. let contentLengthValue = null;
  28589. if (request.body == null && /^(POST|PUT)$/i.test(request.method)) {
  28590. contentLengthValue = '0';
  28591. }
  28592. if (request.body != null) {
  28593. const totalBytes = getTotalBytes(request);
  28594. if (typeof totalBytes === 'number') {
  28595. contentLengthValue = String(totalBytes);
  28596. }
  28597. }
  28598. if (contentLengthValue) {
  28599. headers.set('Content-Length', contentLengthValue);
  28600. }
  28601. // HTTP-network-or-cache fetch step 2.11
  28602. if (!headers.has('User-Agent')) {
  28603. headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');
  28604. }
  28605. // HTTP-network-or-cache fetch step 2.15
  28606. if (request.compress && !headers.has('Accept-Encoding')) {
  28607. headers.set('Accept-Encoding', 'gzip,deflate');
  28608. }
  28609. let agent = request.agent;
  28610. if (typeof agent === 'function') {
  28611. agent = agent(parsedURL);
  28612. }
  28613. if (!headers.has('Connection') && !agent) {
  28614. headers.set('Connection', 'close');
  28615. }
  28616. // HTTP-network fetch step 4.2
  28617. // chunked encoding is handled by Node.js
  28618. return Object.assign({}, parsedURL, {
  28619. method: request.method,
  28620. headers: exportNodeCompatibleHeaders(headers),
  28621. agent
  28622. });
  28623. }
  28624. /**
  28625. * abort-error.js
  28626. *
  28627. * AbortError interface for cancelled requests
  28628. */
  28629. /**
  28630. * Create AbortError instance
  28631. *
  28632. * @param String message Error message for human
  28633. * @return AbortError
  28634. */
  28635. function AbortError(message) {
  28636. Error.call(this, message);
  28637. this.type = 'aborted';
  28638. this.message = message;
  28639. // hide custom error implementation details from end-users
  28640. Error.captureStackTrace(this, this.constructor);
  28641. }
  28642. AbortError.prototype = Object.create(Error.prototype);
  28643. AbortError.prototype.constructor = AbortError;
  28644. AbortError.prototype.name = 'AbortError';
  28645. const URL$1 = Url.URL || whatwgUrl.URL;
  28646. // fix an issue where "PassThrough", "resolve" aren't a named export for node <10
  28647. const PassThrough$1 = Stream.PassThrough;
  28648. const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) {
  28649. const orig = new URL$1(original).hostname;
  28650. const dest = new URL$1(destination).hostname;
  28651. return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);
  28652. };
  28653. /**
  28654. * Fetch function
  28655. *
  28656. * @param Mixed url Absolute url or Request instance
  28657. * @param Object opts Fetch options
  28658. * @return Promise
  28659. */
  28660. function fetch(url, opts) {
  28661. // allow custom promise
  28662. if (!fetch.Promise) {
  28663. throw new Error('native promise missing, set fetch.Promise to your favorite alternative');
  28664. }
  28665. Body.Promise = fetch.Promise;
  28666. // wrap http.request into fetch
  28667. return new fetch.Promise(function (resolve, reject) {
  28668. // build request object
  28669. const request = new Request(url, opts);
  28670. const options = getNodeRequestOptions(request);
  28671. const send = (options.protocol === 'https:' ? https : http).request;
  28672. const signal = request.signal;
  28673. let response = null;
  28674. const abort = function abort() {
  28675. let error = new AbortError('The user aborted a request.');
  28676. reject(error);
  28677. if (request.body && request.body instanceof Stream.Readable) {
  28678. request.body.destroy(error);
  28679. }
  28680. if (!response || !response.body) return;
  28681. response.body.emit('error', error);
  28682. };
  28683. if (signal && signal.aborted) {
  28684. abort();
  28685. return;
  28686. }
  28687. const abortAndFinalize = function abortAndFinalize() {
  28688. abort();
  28689. finalize();
  28690. };
  28691. // send request
  28692. const req = send(options);
  28693. let reqTimeout;
  28694. if (signal) {
  28695. signal.addEventListener('abort', abortAndFinalize);
  28696. }
  28697. function finalize() {
  28698. req.abort();
  28699. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  28700. clearTimeout(reqTimeout);
  28701. }
  28702. if (request.timeout) {
  28703. req.once('socket', function (socket) {
  28704. reqTimeout = setTimeout(function () {
  28705. reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));
  28706. finalize();
  28707. }, request.timeout);
  28708. });
  28709. }
  28710. req.on('error', function (err) {
  28711. reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
  28712. finalize();
  28713. });
  28714. req.on('response', function (res) {
  28715. clearTimeout(reqTimeout);
  28716. const headers = createHeadersLenient(res.headers);
  28717. // HTTP fetch step 5
  28718. if (fetch.isRedirect(res.statusCode)) {
  28719. // HTTP fetch step 5.2
  28720. const location = headers.get('Location');
  28721. // HTTP fetch step 5.3
  28722. let locationURL = null;
  28723. try {
  28724. locationURL = location === null ? null : new URL$1(location, request.url).toString();
  28725. } catch (err) {
  28726. // error here can only be invalid URL in Location: header
  28727. // do not throw when options.redirect == manual
  28728. // let the user extract the errorneous redirect URL
  28729. if (request.redirect !== 'manual') {
  28730. reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect'));
  28731. finalize();
  28732. return;
  28733. }
  28734. }
  28735. // HTTP fetch step 5.5
  28736. switch (request.redirect) {
  28737. case 'error':
  28738. reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
  28739. finalize();
  28740. return;
  28741. case 'manual':
  28742. // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL.
  28743. if (locationURL !== null) {
  28744. // handle corrupted header
  28745. try {
  28746. headers.set('Location', locationURL);
  28747. } catch (err) {
  28748. // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request
  28749. reject(err);
  28750. }
  28751. }
  28752. break;
  28753. case 'follow':
  28754. // HTTP-redirect fetch step 2
  28755. if (locationURL === null) {
  28756. break;
  28757. }
  28758. // HTTP-redirect fetch step 5
  28759. if (request.counter >= request.follow) {
  28760. reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));
  28761. finalize();
  28762. return;
  28763. }
  28764. // HTTP-redirect fetch step 6 (counter increment)
  28765. // Create a new Request object.
  28766. const requestOpts = {
  28767. headers: new Headers(request.headers),
  28768. follow: request.follow,
  28769. counter: request.counter + 1,
  28770. agent: request.agent,
  28771. compress: request.compress,
  28772. method: request.method,
  28773. body: request.body,
  28774. signal: request.signal,
  28775. timeout: request.timeout,
  28776. size: request.size
  28777. };
  28778. if (!isDomainOrSubdomain(request.url, locationURL)) {
  28779. for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {
  28780. requestOpts.headers.delete(name);
  28781. }
  28782. }
  28783. // HTTP-redirect fetch step 9
  28784. if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {
  28785. reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));
  28786. finalize();
  28787. return;
  28788. }
  28789. // HTTP-redirect fetch step 11
  28790. if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {
  28791. requestOpts.method = 'GET';
  28792. requestOpts.body = undefined;
  28793. requestOpts.headers.delete('content-length');
  28794. }
  28795. // HTTP-redirect fetch step 15
  28796. resolve(fetch(new Request(locationURL, requestOpts)));
  28797. finalize();
  28798. return;
  28799. }
  28800. }
  28801. // prepare response
  28802. res.once('end', function () {
  28803. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  28804. });
  28805. let body = res.pipe(new PassThrough$1());
  28806. const response_options = {
  28807. url: request.url,
  28808. status: res.statusCode,
  28809. statusText: res.statusMessage,
  28810. headers: headers,
  28811. size: request.size,
  28812. timeout: request.timeout,
  28813. counter: request.counter
  28814. };
  28815. // HTTP-network fetch step 12.1.1.3
  28816. const codings = headers.get('Content-Encoding');
  28817. // HTTP-network fetch step 12.1.1.4: handle content codings
  28818. // in following scenarios we ignore compression support
  28819. // 1. compression support is disabled
  28820. // 2. HEAD request
  28821. // 3. no Content-Encoding header
  28822. // 4. no content response (204)
  28823. // 5. content not modified response (304)
  28824. if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {
  28825. response = new Response(body, response_options);
  28826. resolve(response);
  28827. return;
  28828. }
  28829. // For Node v6+
  28830. // Be less strict when decoding compressed responses, since sometimes
  28831. // servers send slightly invalid responses that are still accepted
  28832. // by common browsers.
  28833. // Always using Z_SYNC_FLUSH is what cURL does.
  28834. const zlibOptions = {
  28835. flush: zlib.Z_SYNC_FLUSH,
  28836. finishFlush: zlib.Z_SYNC_FLUSH
  28837. };
  28838. // for gzip
  28839. if (codings == 'gzip' || codings == 'x-gzip') {
  28840. body = body.pipe(zlib.createGunzip(zlibOptions));
  28841. response = new Response(body, response_options);
  28842. resolve(response);
  28843. return;
  28844. }
  28845. // for deflate
  28846. if (codings == 'deflate' || codings == 'x-deflate') {
  28847. // handle the infamous raw deflate response from old servers
  28848. // a hack for old IIS and Apache servers
  28849. const raw = res.pipe(new PassThrough$1());
  28850. raw.once('data', function (chunk) {
  28851. // see http://stackoverflow.com/questions/37519828
  28852. if ((chunk[0] & 0x0F) === 0x08) {
  28853. body = body.pipe(zlib.createInflate());
  28854. } else {
  28855. body = body.pipe(zlib.createInflateRaw());
  28856. }
  28857. response = new Response(body, response_options);
  28858. resolve(response);
  28859. });
  28860. return;
  28861. }
  28862. // for br
  28863. if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {
  28864. body = body.pipe(zlib.createBrotliDecompress());
  28865. response = new Response(body, response_options);
  28866. resolve(response);
  28867. return;
  28868. }
  28869. // otherwise, use response as-is
  28870. response = new Response(body, response_options);
  28871. resolve(response);
  28872. });
  28873. writeToStream(req, request);
  28874. });
  28875. }
  28876. /**
  28877. * Redirect code matching
  28878. *
  28879. * @param Number code Status code
  28880. * @return Boolean
  28881. */
  28882. fetch.isRedirect = function (code) {
  28883. return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
  28884. };
  28885. // expose Promise
  28886. fetch.Promise = global.Promise;
  28887. module.exports = exports = fetch;
  28888. Object.defineProperty(exports, "__esModule", ({ value: true }));
  28889. exports["default"] = exports;
  28890. exports.Headers = Headers;
  28891. exports.Request = Request;
  28892. exports.Response = Response;
  28893. exports.FetchError = FetchError;
  28894. /***/ }),
  28895. /***/ 2299:
  28896. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  28897. "use strict";
  28898. var punycode = __nccwpck_require__(5477);
  28899. var mappingTable = __nccwpck_require__(1907);
  28900. var PROCESSING_OPTIONS = {
  28901. TRANSITIONAL: 0,
  28902. NONTRANSITIONAL: 1
  28903. };
  28904. function normalize(str) { // fix bug in v8
  28905. return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000');
  28906. }
  28907. function findStatus(val) {
  28908. var start = 0;
  28909. var end = mappingTable.length - 1;
  28910. while (start <= end) {
  28911. var mid = Math.floor((start + end) / 2);
  28912. var target = mappingTable[mid];
  28913. if (target[0][0] <= val && target[0][1] >= val) {
  28914. return target;
  28915. } else if (target[0][0] > val) {
  28916. end = mid - 1;
  28917. } else {
  28918. start = mid + 1;
  28919. }
  28920. }
  28921. return null;
  28922. }
  28923. var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  28924. function countSymbols(string) {
  28925. return string
  28926. // replace every surrogate pair with a BMP symbol
  28927. .replace(regexAstralSymbols, '_')
  28928. // then get the length
  28929. .length;
  28930. }
  28931. function mapChars(domain_name, useSTD3, processing_option) {
  28932. var hasError = false;
  28933. var processed = "";
  28934. var len = countSymbols(domain_name);
  28935. for (var i = 0; i < len; ++i) {
  28936. var codePoint = domain_name.codePointAt(i);
  28937. var status = findStatus(codePoint);
  28938. switch (status[1]) {
  28939. case "disallowed":
  28940. hasError = true;
  28941. processed += String.fromCodePoint(codePoint);
  28942. break;
  28943. case "ignored":
  28944. break;
  28945. case "mapped":
  28946. processed += String.fromCodePoint.apply(String, status[2]);
  28947. break;
  28948. case "deviation":
  28949. if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) {
  28950. processed += String.fromCodePoint.apply(String, status[2]);
  28951. } else {
  28952. processed += String.fromCodePoint(codePoint);
  28953. }
  28954. break;
  28955. case "valid":
  28956. processed += String.fromCodePoint(codePoint);
  28957. break;
  28958. case "disallowed_STD3_mapped":
  28959. if (useSTD3) {
  28960. hasError = true;
  28961. processed += String.fromCodePoint(codePoint);
  28962. } else {
  28963. processed += String.fromCodePoint.apply(String, status[2]);
  28964. }
  28965. break;
  28966. case "disallowed_STD3_valid":
  28967. if (useSTD3) {
  28968. hasError = true;
  28969. }
  28970. processed += String.fromCodePoint(codePoint);
  28971. break;
  28972. }
  28973. }
  28974. return {
  28975. string: processed,
  28976. error: hasError
  28977. };
  28978. }
  28979. 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]/;
  28980. function validateLabel(label, processing_option) {
  28981. if (label.substr(0, 4) === "xn--") {
  28982. label = punycode.toUnicode(label);
  28983. processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
  28984. }
  28985. var error = false;
  28986. if (normalize(label) !== label ||
  28987. (label[3] === "-" && label[4] === "-") ||
  28988. label[0] === "-" || label[label.length - 1] === "-" ||
  28989. label.indexOf(".") !== -1 ||
  28990. label.search(combiningMarksRegex) === 0) {
  28991. error = true;
  28992. }
  28993. var len = countSymbols(label);
  28994. for (var i = 0; i < len; ++i) {
  28995. var status = findStatus(label.codePointAt(i));
  28996. if ((processing === PROCESSING_OPTIONS.TRANSITIONAL && status[1] !== "valid") ||
  28997. (processing === PROCESSING_OPTIONS.NONTRANSITIONAL &&
  28998. status[1] !== "valid" && status[1] !== "deviation")) {
  28999. error = true;
  29000. break;
  29001. }
  29002. }
  29003. return {
  29004. label: label,
  29005. error: error
  29006. };
  29007. }
  29008. function processing(domain_name, useSTD3, processing_option) {
  29009. var result = mapChars(domain_name, useSTD3, processing_option);
  29010. result.string = normalize(result.string);
  29011. var labels = result.string.split(".");
  29012. for (var i = 0; i < labels.length; ++i) {
  29013. try {
  29014. var validation = validateLabel(labels[i]);
  29015. labels[i] = validation.label;
  29016. result.error = result.error || validation.error;
  29017. } catch(e) {
  29018. result.error = true;
  29019. }
  29020. }
  29021. return {
  29022. string: labels.join("."),
  29023. error: result.error
  29024. };
  29025. }
  29026. module.exports.toASCII = function(domain_name, useSTD3, processing_option, verifyDnsLength) {
  29027. var result = processing(domain_name, useSTD3, processing_option);
  29028. var labels = result.string.split(".");
  29029. labels = labels.map(function(l) {
  29030. try {
  29031. return punycode.toASCII(l);
  29032. } catch(e) {
  29033. result.error = true;
  29034. return l;
  29035. }
  29036. });
  29037. if (verifyDnsLength) {
  29038. var total = labels.slice(0, labels.length - 1).join(".").length;
  29039. if (total.length > 253 || total.length === 0) {
  29040. result.error = true;
  29041. }
  29042. for (var i=0; i < labels.length; ++i) {
  29043. if (labels.length > 63 || labels.length === 0) {
  29044. result.error = true;
  29045. break;
  29046. }
  29047. }
  29048. }
  29049. if (result.error) return null;
  29050. return labels.join(".");
  29051. };
  29052. module.exports.toUnicode = function(domain_name, useSTD3) {
  29053. var result = processing(domain_name, useSTD3, PROCESSING_OPTIONS.NONTRANSITIONAL);
  29054. return {
  29055. domain: result.string,
  29056. error: result.error
  29057. };
  29058. };
  29059. module.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS;
  29060. /***/ }),
  29061. /***/ 5871:
  29062. /***/ ((module) => {
  29063. "use strict";
  29064. var conversions = {};
  29065. module.exports = conversions;
  29066. function sign(x) {
  29067. return x < 0 ? -1 : 1;
  29068. }
  29069. function evenRound(x) {
  29070. // Round x to the nearest integer, choosing the even integer if it lies halfway between two.
  29071. if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. floor)
  29072. return Math.floor(x);
  29073. } else {
  29074. return Math.round(x);
  29075. }
  29076. }
  29077. function createNumberConversion(bitLength, typeOpts) {
  29078. if (!typeOpts.unsigned) {
  29079. --bitLength;
  29080. }
  29081. const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength);
  29082. const upperBound = Math.pow(2, bitLength) - 1;
  29083. const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength);
  29084. const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1);
  29085. return function(V, opts) {
  29086. if (!opts) opts = {};
  29087. let x = +V;
  29088. if (opts.enforceRange) {
  29089. if (!Number.isFinite(x)) {
  29090. throw new TypeError("Argument is not a finite number");
  29091. }
  29092. x = sign(x) * Math.floor(Math.abs(x));
  29093. if (x < lowerBound || x > upperBound) {
  29094. throw new TypeError("Argument is not in byte range");
  29095. }
  29096. return x;
  29097. }
  29098. if (!isNaN(x) && opts.clamp) {
  29099. x = evenRound(x);
  29100. if (x < lowerBound) x = lowerBound;
  29101. if (x > upperBound) x = upperBound;
  29102. return x;
  29103. }
  29104. if (!Number.isFinite(x) || x === 0) {
  29105. return 0;
  29106. }
  29107. x = sign(x) * Math.floor(Math.abs(x));
  29108. x = x % moduloVal;
  29109. if (!typeOpts.unsigned && x >= moduloBound) {
  29110. return x - moduloVal;
  29111. } else if (typeOpts.unsigned) {
  29112. if (x < 0) {
  29113. x += moduloVal;
  29114. } else if (x === -0) { // don't return negative zero
  29115. return 0;
  29116. }
  29117. }
  29118. return x;
  29119. }
  29120. }
  29121. conversions["void"] = function () {
  29122. return undefined;
  29123. };
  29124. conversions["boolean"] = function (val) {
  29125. return !!val;
  29126. };
  29127. conversions["byte"] = createNumberConversion(8, { unsigned: false });
  29128. conversions["octet"] = createNumberConversion(8, { unsigned: true });
  29129. conversions["short"] = createNumberConversion(16, { unsigned: false });
  29130. conversions["unsigned short"] = createNumberConversion(16, { unsigned: true });
  29131. conversions["long"] = createNumberConversion(32, { unsigned: false });
  29132. conversions["unsigned long"] = createNumberConversion(32, { unsigned: true });
  29133. conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 });
  29134. conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 });
  29135. conversions["double"] = function (V) {
  29136. const x = +V;
  29137. if (!Number.isFinite(x)) {
  29138. throw new TypeError("Argument is not a finite floating-point value");
  29139. }
  29140. return x;
  29141. };
  29142. conversions["unrestricted double"] = function (V) {
  29143. const x = +V;
  29144. if (isNaN(x)) {
  29145. throw new TypeError("Argument is NaN");
  29146. }
  29147. return x;
  29148. };
  29149. // not quite valid, but good enough for JS
  29150. conversions["float"] = conversions["double"];
  29151. conversions["unrestricted float"] = conversions["unrestricted double"];
  29152. conversions["DOMString"] = function (V, opts) {
  29153. if (!opts) opts = {};
  29154. if (opts.treatNullAsEmptyString && V === null) {
  29155. return "";
  29156. }
  29157. return String(V);
  29158. };
  29159. conversions["ByteString"] = function (V, opts) {
  29160. const x = String(V);
  29161. let c = undefined;
  29162. for (let i = 0; (c = x.codePointAt(i)) !== undefined; ++i) {
  29163. if (c > 255) {
  29164. throw new TypeError("Argument is not a valid bytestring");
  29165. }
  29166. }
  29167. return x;
  29168. };
  29169. conversions["USVString"] = function (V) {
  29170. const S = String(V);
  29171. const n = S.length;
  29172. const U = [];
  29173. for (let i = 0; i < n; ++i) {
  29174. const c = S.charCodeAt(i);
  29175. if (c < 0xD800 || c > 0xDFFF) {
  29176. U.push(String.fromCodePoint(c));
  29177. } else if (0xDC00 <= c && c <= 0xDFFF) {
  29178. U.push(String.fromCodePoint(0xFFFD));
  29179. } else {
  29180. if (i === n - 1) {
  29181. U.push(String.fromCodePoint(0xFFFD));
  29182. } else {
  29183. const d = S.charCodeAt(i + 1);
  29184. if (0xDC00 <= d && d <= 0xDFFF) {
  29185. const a = c & 0x3FF;
  29186. const b = d & 0x3FF;
  29187. U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b));
  29188. ++i;
  29189. } else {
  29190. U.push(String.fromCodePoint(0xFFFD));
  29191. }
  29192. }
  29193. }
  29194. }
  29195. return U.join('');
  29196. };
  29197. conversions["Date"] = function (V, opts) {
  29198. if (!(V instanceof Date)) {
  29199. throw new TypeError("Argument is not a Date object");
  29200. }
  29201. if (isNaN(V)) {
  29202. return undefined;
  29203. }
  29204. return V;
  29205. };
  29206. conversions["RegExp"] = function (V, opts) {
  29207. if (!(V instanceof RegExp)) {
  29208. V = new RegExp(V);
  29209. }
  29210. return V;
  29211. };
  29212. /***/ }),
  29213. /***/ 8262:
  29214. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  29215. "use strict";
  29216. const usm = __nccwpck_require__(33);
  29217. exports.implementation = class URLImpl {
  29218. constructor(constructorArgs) {
  29219. const url = constructorArgs[0];
  29220. const base = constructorArgs[1];
  29221. let parsedBase = null;
  29222. if (base !== undefined) {
  29223. parsedBase = usm.basicURLParse(base);
  29224. if (parsedBase === "failure") {
  29225. throw new TypeError("Invalid base URL");
  29226. }
  29227. }
  29228. const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase });
  29229. if (parsedURL === "failure") {
  29230. throw new TypeError("Invalid URL");
  29231. }
  29232. this._url = parsedURL;
  29233. // TODO: query stuff
  29234. }
  29235. get href() {
  29236. return usm.serializeURL(this._url);
  29237. }
  29238. set href(v) {
  29239. const parsedURL = usm.basicURLParse(v);
  29240. if (parsedURL === "failure") {
  29241. throw new TypeError("Invalid URL");
  29242. }
  29243. this._url = parsedURL;
  29244. }
  29245. get origin() {
  29246. return usm.serializeURLOrigin(this._url);
  29247. }
  29248. get protocol() {
  29249. return this._url.scheme + ":";
  29250. }
  29251. set protocol(v) {
  29252. usm.basicURLParse(v + ":", { url: this._url, stateOverride: "scheme start" });
  29253. }
  29254. get username() {
  29255. return this._url.username;
  29256. }
  29257. set username(v) {
  29258. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  29259. return;
  29260. }
  29261. usm.setTheUsername(this._url, v);
  29262. }
  29263. get password() {
  29264. return this._url.password;
  29265. }
  29266. set password(v) {
  29267. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  29268. return;
  29269. }
  29270. usm.setThePassword(this._url, v);
  29271. }
  29272. get host() {
  29273. const url = this._url;
  29274. if (url.host === null) {
  29275. return "";
  29276. }
  29277. if (url.port === null) {
  29278. return usm.serializeHost(url.host);
  29279. }
  29280. return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port);
  29281. }
  29282. set host(v) {
  29283. if (this._url.cannotBeABaseURL) {
  29284. return;
  29285. }
  29286. usm.basicURLParse(v, { url: this._url, stateOverride: "host" });
  29287. }
  29288. get hostname() {
  29289. if (this._url.host === null) {
  29290. return "";
  29291. }
  29292. return usm.serializeHost(this._url.host);
  29293. }
  29294. set hostname(v) {
  29295. if (this._url.cannotBeABaseURL) {
  29296. return;
  29297. }
  29298. usm.basicURLParse(v, { url: this._url, stateOverride: "hostname" });
  29299. }
  29300. get port() {
  29301. if (this._url.port === null) {
  29302. return "";
  29303. }
  29304. return usm.serializeInteger(this._url.port);
  29305. }
  29306. set port(v) {
  29307. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  29308. return;
  29309. }
  29310. if (v === "") {
  29311. this._url.port = null;
  29312. } else {
  29313. usm.basicURLParse(v, { url: this._url, stateOverride: "port" });
  29314. }
  29315. }
  29316. get pathname() {
  29317. if (this._url.cannotBeABaseURL) {
  29318. return this._url.path[0];
  29319. }
  29320. if (this._url.path.length === 0) {
  29321. return "";
  29322. }
  29323. return "/" + this._url.path.join("/");
  29324. }
  29325. set pathname(v) {
  29326. if (this._url.cannotBeABaseURL) {
  29327. return;
  29328. }
  29329. this._url.path = [];
  29330. usm.basicURLParse(v, { url: this._url, stateOverride: "path start" });
  29331. }
  29332. get search() {
  29333. if (this._url.query === null || this._url.query === "") {
  29334. return "";
  29335. }
  29336. return "?" + this._url.query;
  29337. }
  29338. set search(v) {
  29339. // TODO: query stuff
  29340. const url = this._url;
  29341. if (v === "") {
  29342. url.query = null;
  29343. return;
  29344. }
  29345. const input = v[0] === "?" ? v.substring(1) : v;
  29346. url.query = "";
  29347. usm.basicURLParse(input, { url, stateOverride: "query" });
  29348. }
  29349. get hash() {
  29350. if (this._url.fragment === null || this._url.fragment === "") {
  29351. return "";
  29352. }
  29353. return "#" + this._url.fragment;
  29354. }
  29355. set hash(v) {
  29356. if (v === "") {
  29357. this._url.fragment = null;
  29358. return;
  29359. }
  29360. const input = v[0] === "#" ? v.substring(1) : v;
  29361. this._url.fragment = "";
  29362. usm.basicURLParse(input, { url: this._url, stateOverride: "fragment" });
  29363. }
  29364. toJSON() {
  29365. return this.href;
  29366. }
  29367. };
  29368. /***/ }),
  29369. /***/ 653:
  29370. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  29371. "use strict";
  29372. const conversions = __nccwpck_require__(5871);
  29373. const utils = __nccwpck_require__(276);
  29374. const Impl = __nccwpck_require__(8262);
  29375. const impl = utils.implSymbol;
  29376. function URL(url) {
  29377. if (!this || this[impl] || !(this instanceof URL)) {
  29378. throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");
  29379. }
  29380. if (arguments.length < 1) {
  29381. throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present.");
  29382. }
  29383. const args = [];
  29384. for (let i = 0; i < arguments.length && i < 2; ++i) {
  29385. args[i] = arguments[i];
  29386. }
  29387. args[0] = conversions["USVString"](args[0]);
  29388. if (args[1] !== undefined) {
  29389. args[1] = conversions["USVString"](args[1]);
  29390. }
  29391. module.exports.setup(this, args);
  29392. }
  29393. URL.prototype.toJSON = function toJSON() {
  29394. if (!this || !module.exports.is(this)) {
  29395. throw new TypeError("Illegal invocation");
  29396. }
  29397. const args = [];
  29398. for (let i = 0; i < arguments.length && i < 0; ++i) {
  29399. args[i] = arguments[i];
  29400. }
  29401. return this[impl].toJSON.apply(this[impl], args);
  29402. };
  29403. Object.defineProperty(URL.prototype, "href", {
  29404. get() {
  29405. return this[impl].href;
  29406. },
  29407. set(V) {
  29408. V = conversions["USVString"](V);
  29409. this[impl].href = V;
  29410. },
  29411. enumerable: true,
  29412. configurable: true
  29413. });
  29414. URL.prototype.toString = function () {
  29415. if (!this || !module.exports.is(this)) {
  29416. throw new TypeError("Illegal invocation");
  29417. }
  29418. return this.href;
  29419. };
  29420. Object.defineProperty(URL.prototype, "origin", {
  29421. get() {
  29422. return this[impl].origin;
  29423. },
  29424. enumerable: true,
  29425. configurable: true
  29426. });
  29427. Object.defineProperty(URL.prototype, "protocol", {
  29428. get() {
  29429. return this[impl].protocol;
  29430. },
  29431. set(V) {
  29432. V = conversions["USVString"](V);
  29433. this[impl].protocol = V;
  29434. },
  29435. enumerable: true,
  29436. configurable: true
  29437. });
  29438. Object.defineProperty(URL.prototype, "username", {
  29439. get() {
  29440. return this[impl].username;
  29441. },
  29442. set(V) {
  29443. V = conversions["USVString"](V);
  29444. this[impl].username = V;
  29445. },
  29446. enumerable: true,
  29447. configurable: true
  29448. });
  29449. Object.defineProperty(URL.prototype, "password", {
  29450. get() {
  29451. return this[impl].password;
  29452. },
  29453. set(V) {
  29454. V = conversions["USVString"](V);
  29455. this[impl].password = V;
  29456. },
  29457. enumerable: true,
  29458. configurable: true
  29459. });
  29460. Object.defineProperty(URL.prototype, "host", {
  29461. get() {
  29462. return this[impl].host;
  29463. },
  29464. set(V) {
  29465. V = conversions["USVString"](V);
  29466. this[impl].host = V;
  29467. },
  29468. enumerable: true,
  29469. configurable: true
  29470. });
  29471. Object.defineProperty(URL.prototype, "hostname", {
  29472. get() {
  29473. return this[impl].hostname;
  29474. },
  29475. set(V) {
  29476. V = conversions["USVString"](V);
  29477. this[impl].hostname = V;
  29478. },
  29479. enumerable: true,
  29480. configurable: true
  29481. });
  29482. Object.defineProperty(URL.prototype, "port", {
  29483. get() {
  29484. return this[impl].port;
  29485. },
  29486. set(V) {
  29487. V = conversions["USVString"](V);
  29488. this[impl].port = V;
  29489. },
  29490. enumerable: true,
  29491. configurable: true
  29492. });
  29493. Object.defineProperty(URL.prototype, "pathname", {
  29494. get() {
  29495. return this[impl].pathname;
  29496. },
  29497. set(V) {
  29498. V = conversions["USVString"](V);
  29499. this[impl].pathname = V;
  29500. },
  29501. enumerable: true,
  29502. configurable: true
  29503. });
  29504. Object.defineProperty(URL.prototype, "search", {
  29505. get() {
  29506. return this[impl].search;
  29507. },
  29508. set(V) {
  29509. V = conversions["USVString"](V);
  29510. this[impl].search = V;
  29511. },
  29512. enumerable: true,
  29513. configurable: true
  29514. });
  29515. Object.defineProperty(URL.prototype, "hash", {
  29516. get() {
  29517. return this[impl].hash;
  29518. },
  29519. set(V) {
  29520. V = conversions["USVString"](V);
  29521. this[impl].hash = V;
  29522. },
  29523. enumerable: true,
  29524. configurable: true
  29525. });
  29526. module.exports = {
  29527. is(obj) {
  29528. return !!obj && obj[impl] instanceof Impl.implementation;
  29529. },
  29530. create(constructorArgs, privateData) {
  29531. let obj = Object.create(URL.prototype);
  29532. this.setup(obj, constructorArgs, privateData);
  29533. return obj;
  29534. },
  29535. setup(obj, constructorArgs, privateData) {
  29536. if (!privateData) privateData = {};
  29537. privateData.wrapper = obj;
  29538. obj[impl] = new Impl.implementation(constructorArgs, privateData);
  29539. obj[impl][utils.wrapperSymbol] = obj;
  29540. },
  29541. interface: URL,
  29542. expose: {
  29543. Window: { URL: URL },
  29544. Worker: { URL: URL }
  29545. }
  29546. };
  29547. /***/ }),
  29548. /***/ 3323:
  29549. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  29550. "use strict";
  29551. exports.URL = __nccwpck_require__(653)["interface"];
  29552. exports.serializeURL = __nccwpck_require__(33).serializeURL;
  29553. exports.serializeURLOrigin = __nccwpck_require__(33).serializeURLOrigin;
  29554. exports.basicURLParse = __nccwpck_require__(33).basicURLParse;
  29555. exports.setTheUsername = __nccwpck_require__(33).setTheUsername;
  29556. exports.setThePassword = __nccwpck_require__(33).setThePassword;
  29557. exports.serializeHost = __nccwpck_require__(33).serializeHost;
  29558. exports.serializeInteger = __nccwpck_require__(33).serializeInteger;
  29559. exports.parseURL = __nccwpck_require__(33).parseURL;
  29560. /***/ }),
  29561. /***/ 33:
  29562. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  29563. "use strict";
  29564. const punycode = __nccwpck_require__(5477);
  29565. const tr46 = __nccwpck_require__(2299);
  29566. const specialSchemes = {
  29567. ftp: 21,
  29568. file: null,
  29569. gopher: 70,
  29570. http: 80,
  29571. https: 443,
  29572. ws: 80,
  29573. wss: 443
  29574. };
  29575. const failure = Symbol("failure");
  29576. function countSymbols(str) {
  29577. return punycode.ucs2.decode(str).length;
  29578. }
  29579. function at(input, idx) {
  29580. const c = input[idx];
  29581. return isNaN(c) ? undefined : String.fromCodePoint(c);
  29582. }
  29583. function isASCIIDigit(c) {
  29584. return c >= 0x30 && c <= 0x39;
  29585. }
  29586. function isASCIIAlpha(c) {
  29587. return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A);
  29588. }
  29589. function isASCIIAlphanumeric(c) {
  29590. return isASCIIAlpha(c) || isASCIIDigit(c);
  29591. }
  29592. function isASCIIHex(c) {
  29593. return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66);
  29594. }
  29595. function isSingleDot(buffer) {
  29596. return buffer === "." || buffer.toLowerCase() === "%2e";
  29597. }
  29598. function isDoubleDot(buffer) {
  29599. buffer = buffer.toLowerCase();
  29600. return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e";
  29601. }
  29602. function isWindowsDriveLetterCodePoints(cp1, cp2) {
  29603. return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124);
  29604. }
  29605. function isWindowsDriveLetterString(string) {
  29606. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|");
  29607. }
  29608. function isNormalizedWindowsDriveLetterString(string) {
  29609. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
  29610. }
  29611. function containsForbiddenHostCodePoint(string) {
  29612. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1;
  29613. }
  29614. function containsForbiddenHostCodePointExcludingPercent(string) {
  29615. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1;
  29616. }
  29617. function isSpecialScheme(scheme) {
  29618. return specialSchemes[scheme] !== undefined;
  29619. }
  29620. function isSpecial(url) {
  29621. return isSpecialScheme(url.scheme);
  29622. }
  29623. function defaultPort(scheme) {
  29624. return specialSchemes[scheme];
  29625. }
  29626. function percentEncode(c) {
  29627. let hex = c.toString(16).toUpperCase();
  29628. if (hex.length === 1) {
  29629. hex = "0" + hex;
  29630. }
  29631. return "%" + hex;
  29632. }
  29633. function utf8PercentEncode(c) {
  29634. const buf = new Buffer(c);
  29635. let str = "";
  29636. for (let i = 0; i < buf.length; ++i) {
  29637. str += percentEncode(buf[i]);
  29638. }
  29639. return str;
  29640. }
  29641. function utf8PercentDecode(str) {
  29642. const input = new Buffer(str);
  29643. const output = [];
  29644. for (let i = 0; i < input.length; ++i) {
  29645. if (input[i] !== 37) {
  29646. output.push(input[i]);
  29647. } else if (input[i] === 37 && isASCIIHex(input[i + 1]) && isASCIIHex(input[i + 2])) {
  29648. output.push(parseInt(input.slice(i + 1, i + 3).toString(), 16));
  29649. i += 2;
  29650. } else {
  29651. output.push(input[i]);
  29652. }
  29653. }
  29654. return new Buffer(output).toString();
  29655. }
  29656. function isC0ControlPercentEncode(c) {
  29657. return c <= 0x1F || c > 0x7E;
  29658. }
  29659. const extraPathPercentEncodeSet = new Set([32, 34, 35, 60, 62, 63, 96, 123, 125]);
  29660. function isPathPercentEncode(c) {
  29661. return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c);
  29662. }
  29663. const extraUserinfoPercentEncodeSet =
  29664. new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]);
  29665. function isUserinfoPercentEncode(c) {
  29666. return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c);
  29667. }
  29668. function percentEncodeChar(c, encodeSetPredicate) {
  29669. const cStr = String.fromCodePoint(c);
  29670. if (encodeSetPredicate(c)) {
  29671. return utf8PercentEncode(cStr);
  29672. }
  29673. return cStr;
  29674. }
  29675. function parseIPv4Number(input) {
  29676. let R = 10;
  29677. if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
  29678. input = input.substring(2);
  29679. R = 16;
  29680. } else if (input.length >= 2 && input.charAt(0) === "0") {
  29681. input = input.substring(1);
  29682. R = 8;
  29683. }
  29684. if (input === "") {
  29685. return 0;
  29686. }
  29687. const regex = R === 10 ? /[^0-9]/ : (R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/);
  29688. if (regex.test(input)) {
  29689. return failure;
  29690. }
  29691. return parseInt(input, R);
  29692. }
  29693. function parseIPv4(input) {
  29694. const parts = input.split(".");
  29695. if (parts[parts.length - 1] === "") {
  29696. if (parts.length > 1) {
  29697. parts.pop();
  29698. }
  29699. }
  29700. if (parts.length > 4) {
  29701. return input;
  29702. }
  29703. const numbers = [];
  29704. for (const part of parts) {
  29705. if (part === "") {
  29706. return input;
  29707. }
  29708. const n = parseIPv4Number(part);
  29709. if (n === failure) {
  29710. return input;
  29711. }
  29712. numbers.push(n);
  29713. }
  29714. for (let i = 0; i < numbers.length - 1; ++i) {
  29715. if (numbers[i] > 255) {
  29716. return failure;
  29717. }
  29718. }
  29719. if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) {
  29720. return failure;
  29721. }
  29722. let ipv4 = numbers.pop();
  29723. let counter = 0;
  29724. for (const n of numbers) {
  29725. ipv4 += n * Math.pow(256, 3 - counter);
  29726. ++counter;
  29727. }
  29728. return ipv4;
  29729. }
  29730. function serializeIPv4(address) {
  29731. let output = "";
  29732. let n = address;
  29733. for (let i = 1; i <= 4; ++i) {
  29734. output = String(n % 256) + output;
  29735. if (i !== 4) {
  29736. output = "." + output;
  29737. }
  29738. n = Math.floor(n / 256);
  29739. }
  29740. return output;
  29741. }
  29742. function parseIPv6(input) {
  29743. const address = [0, 0, 0, 0, 0, 0, 0, 0];
  29744. let pieceIndex = 0;
  29745. let compress = null;
  29746. let pointer = 0;
  29747. input = punycode.ucs2.decode(input);
  29748. if (input[pointer] === 58) {
  29749. if (input[pointer + 1] !== 58) {
  29750. return failure;
  29751. }
  29752. pointer += 2;
  29753. ++pieceIndex;
  29754. compress = pieceIndex;
  29755. }
  29756. while (pointer < input.length) {
  29757. if (pieceIndex === 8) {
  29758. return failure;
  29759. }
  29760. if (input[pointer] === 58) {
  29761. if (compress !== null) {
  29762. return failure;
  29763. }
  29764. ++pointer;
  29765. ++pieceIndex;
  29766. compress = pieceIndex;
  29767. continue;
  29768. }
  29769. let value = 0;
  29770. let length = 0;
  29771. while (length < 4 && isASCIIHex(input[pointer])) {
  29772. value = value * 0x10 + parseInt(at(input, pointer), 16);
  29773. ++pointer;
  29774. ++length;
  29775. }
  29776. if (input[pointer] === 46) {
  29777. if (length === 0) {
  29778. return failure;
  29779. }
  29780. pointer -= length;
  29781. if (pieceIndex > 6) {
  29782. return failure;
  29783. }
  29784. let numbersSeen = 0;
  29785. while (input[pointer] !== undefined) {
  29786. let ipv4Piece = null;
  29787. if (numbersSeen > 0) {
  29788. if (input[pointer] === 46 && numbersSeen < 4) {
  29789. ++pointer;
  29790. } else {
  29791. return failure;
  29792. }
  29793. }
  29794. if (!isASCIIDigit(input[pointer])) {
  29795. return failure;
  29796. }
  29797. while (isASCIIDigit(input[pointer])) {
  29798. const number = parseInt(at(input, pointer));
  29799. if (ipv4Piece === null) {
  29800. ipv4Piece = number;
  29801. } else if (ipv4Piece === 0) {
  29802. return failure;
  29803. } else {
  29804. ipv4Piece = ipv4Piece * 10 + number;
  29805. }
  29806. if (ipv4Piece > 255) {
  29807. return failure;
  29808. }
  29809. ++pointer;
  29810. }
  29811. address[pieceIndex] = address[pieceIndex] * 0x100 + ipv4Piece;
  29812. ++numbersSeen;
  29813. if (numbersSeen === 2 || numbersSeen === 4) {
  29814. ++pieceIndex;
  29815. }
  29816. }
  29817. if (numbersSeen !== 4) {
  29818. return failure;
  29819. }
  29820. break;
  29821. } else if (input[pointer] === 58) {
  29822. ++pointer;
  29823. if (input[pointer] === undefined) {
  29824. return failure;
  29825. }
  29826. } else if (input[pointer] !== undefined) {
  29827. return failure;
  29828. }
  29829. address[pieceIndex] = value;
  29830. ++pieceIndex;
  29831. }
  29832. if (compress !== null) {
  29833. let swaps = pieceIndex - compress;
  29834. pieceIndex = 7;
  29835. while (pieceIndex !== 0 && swaps > 0) {
  29836. const temp = address[compress + swaps - 1];
  29837. address[compress + swaps - 1] = address[pieceIndex];
  29838. address[pieceIndex] = temp;
  29839. --pieceIndex;
  29840. --swaps;
  29841. }
  29842. } else if (compress === null && pieceIndex !== 8) {
  29843. return failure;
  29844. }
  29845. return address;
  29846. }
  29847. function serializeIPv6(address) {
  29848. let output = "";
  29849. const seqResult = findLongestZeroSequence(address);
  29850. const compress = seqResult.idx;
  29851. let ignore0 = false;
  29852. for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) {
  29853. if (ignore0 && address[pieceIndex] === 0) {
  29854. continue;
  29855. } else if (ignore0) {
  29856. ignore0 = false;
  29857. }
  29858. if (compress === pieceIndex) {
  29859. const separator = pieceIndex === 0 ? "::" : ":";
  29860. output += separator;
  29861. ignore0 = true;
  29862. continue;
  29863. }
  29864. output += address[pieceIndex].toString(16);
  29865. if (pieceIndex !== 7) {
  29866. output += ":";
  29867. }
  29868. }
  29869. return output;
  29870. }
  29871. function parseHost(input, isSpecialArg) {
  29872. if (input[0] === "[") {
  29873. if (input[input.length - 1] !== "]") {
  29874. return failure;
  29875. }
  29876. return parseIPv6(input.substring(1, input.length - 1));
  29877. }
  29878. if (!isSpecialArg) {
  29879. return parseOpaqueHost(input);
  29880. }
  29881. const domain = utf8PercentDecode(input);
  29882. const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false);
  29883. if (asciiDomain === null) {
  29884. return failure;
  29885. }
  29886. if (containsForbiddenHostCodePoint(asciiDomain)) {
  29887. return failure;
  29888. }
  29889. const ipv4Host = parseIPv4(asciiDomain);
  29890. if (typeof ipv4Host === "number" || ipv4Host === failure) {
  29891. return ipv4Host;
  29892. }
  29893. return asciiDomain;
  29894. }
  29895. function parseOpaqueHost(input) {
  29896. if (containsForbiddenHostCodePointExcludingPercent(input)) {
  29897. return failure;
  29898. }
  29899. let output = "";
  29900. const decoded = punycode.ucs2.decode(input);
  29901. for (let i = 0; i < decoded.length; ++i) {
  29902. output += percentEncodeChar(decoded[i], isC0ControlPercentEncode);
  29903. }
  29904. return output;
  29905. }
  29906. function findLongestZeroSequence(arr) {
  29907. let maxIdx = null;
  29908. let maxLen = 1; // only find elements > 1
  29909. let currStart = null;
  29910. let currLen = 0;
  29911. for (let i = 0; i < arr.length; ++i) {
  29912. if (arr[i] !== 0) {
  29913. if (currLen > maxLen) {
  29914. maxIdx = currStart;
  29915. maxLen = currLen;
  29916. }
  29917. currStart = null;
  29918. currLen = 0;
  29919. } else {
  29920. if (currStart === null) {
  29921. currStart = i;
  29922. }
  29923. ++currLen;
  29924. }
  29925. }
  29926. // if trailing zeros
  29927. if (currLen > maxLen) {
  29928. maxIdx = currStart;
  29929. maxLen = currLen;
  29930. }
  29931. return {
  29932. idx: maxIdx,
  29933. len: maxLen
  29934. };
  29935. }
  29936. function serializeHost(host) {
  29937. if (typeof host === "number") {
  29938. return serializeIPv4(host);
  29939. }
  29940. // IPv6 serializer
  29941. if (host instanceof Array) {
  29942. return "[" + serializeIPv6(host) + "]";
  29943. }
  29944. return host;
  29945. }
  29946. function trimControlChars(url) {
  29947. return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
  29948. }
  29949. function trimTabAndNewline(url) {
  29950. return url.replace(/\u0009|\u000A|\u000D/g, "");
  29951. }
  29952. function shortenPath(url) {
  29953. const path = url.path;
  29954. if (path.length === 0) {
  29955. return;
  29956. }
  29957. if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) {
  29958. return;
  29959. }
  29960. path.pop();
  29961. }
  29962. function includesCredentials(url) {
  29963. return url.username !== "" || url.password !== "";
  29964. }
  29965. function cannotHaveAUsernamePasswordPort(url) {
  29966. return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
  29967. }
  29968. function isNormalizedWindowsDriveLetter(string) {
  29969. return /^[A-Za-z]:$/.test(string);
  29970. }
  29971. function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
  29972. this.pointer = 0;
  29973. this.input = input;
  29974. this.base = base || null;
  29975. this.encodingOverride = encodingOverride || "utf-8";
  29976. this.stateOverride = stateOverride;
  29977. this.url = url;
  29978. this.failure = false;
  29979. this.parseError = false;
  29980. if (!this.url) {
  29981. this.url = {
  29982. scheme: "",
  29983. username: "",
  29984. password: "",
  29985. host: null,
  29986. port: null,
  29987. path: [],
  29988. query: null,
  29989. fragment: null,
  29990. cannotBeABaseURL: false
  29991. };
  29992. const res = trimControlChars(this.input);
  29993. if (res !== this.input) {
  29994. this.parseError = true;
  29995. }
  29996. this.input = res;
  29997. }
  29998. const res = trimTabAndNewline(this.input);
  29999. if (res !== this.input) {
  30000. this.parseError = true;
  30001. }
  30002. this.input = res;
  30003. this.state = stateOverride || "scheme start";
  30004. this.buffer = "";
  30005. this.atFlag = false;
  30006. this.arrFlag = false;
  30007. this.passwordTokenSeenFlag = false;
  30008. this.input = punycode.ucs2.decode(this.input);
  30009. for (; this.pointer <= this.input.length; ++this.pointer) {
  30010. const c = this.input[this.pointer];
  30011. const cStr = isNaN(c) ? undefined : String.fromCodePoint(c);
  30012. // exec state machine
  30013. const ret = this["parse " + this.state](c, cStr);
  30014. if (!ret) {
  30015. break; // terminate algorithm
  30016. } else if (ret === failure) {
  30017. this.failure = true;
  30018. break;
  30019. }
  30020. }
  30021. }
  30022. URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) {
  30023. if (isASCIIAlpha(c)) {
  30024. this.buffer += cStr.toLowerCase();
  30025. this.state = "scheme";
  30026. } else if (!this.stateOverride) {
  30027. this.state = "no scheme";
  30028. --this.pointer;
  30029. } else {
  30030. this.parseError = true;
  30031. return failure;
  30032. }
  30033. return true;
  30034. };
  30035. URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) {
  30036. if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) {
  30037. this.buffer += cStr.toLowerCase();
  30038. } else if (c === 58) {
  30039. if (this.stateOverride) {
  30040. if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) {
  30041. return false;
  30042. }
  30043. if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) {
  30044. return false;
  30045. }
  30046. if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") {
  30047. return false;
  30048. }
  30049. if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) {
  30050. return false;
  30051. }
  30052. }
  30053. this.url.scheme = this.buffer;
  30054. this.buffer = "";
  30055. if (this.stateOverride) {
  30056. return false;
  30057. }
  30058. if (this.url.scheme === "file") {
  30059. if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) {
  30060. this.parseError = true;
  30061. }
  30062. this.state = "file";
  30063. } else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) {
  30064. this.state = "special relative or authority";
  30065. } else if (isSpecial(this.url)) {
  30066. this.state = "special authority slashes";
  30067. } else if (this.input[this.pointer + 1] === 47) {
  30068. this.state = "path or authority";
  30069. ++this.pointer;
  30070. } else {
  30071. this.url.cannotBeABaseURL = true;
  30072. this.url.path.push("");
  30073. this.state = "cannot-be-a-base-URL path";
  30074. }
  30075. } else if (!this.stateOverride) {
  30076. this.buffer = "";
  30077. this.state = "no scheme";
  30078. this.pointer = -1;
  30079. } else {
  30080. this.parseError = true;
  30081. return failure;
  30082. }
  30083. return true;
  30084. };
  30085. URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) {
  30086. if (this.base === null || (this.base.cannotBeABaseURL && c !== 35)) {
  30087. return failure;
  30088. } else if (this.base.cannotBeABaseURL && c === 35) {
  30089. this.url.scheme = this.base.scheme;
  30090. this.url.path = this.base.path.slice();
  30091. this.url.query = this.base.query;
  30092. this.url.fragment = "";
  30093. this.url.cannotBeABaseURL = true;
  30094. this.state = "fragment";
  30095. } else if (this.base.scheme === "file") {
  30096. this.state = "file";
  30097. --this.pointer;
  30098. } else {
  30099. this.state = "relative";
  30100. --this.pointer;
  30101. }
  30102. return true;
  30103. };
  30104. URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) {
  30105. if (c === 47 && this.input[this.pointer + 1] === 47) {
  30106. this.state = "special authority ignore slashes";
  30107. ++this.pointer;
  30108. } else {
  30109. this.parseError = true;
  30110. this.state = "relative";
  30111. --this.pointer;
  30112. }
  30113. return true;
  30114. };
  30115. URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) {
  30116. if (c === 47) {
  30117. this.state = "authority";
  30118. } else {
  30119. this.state = "path";
  30120. --this.pointer;
  30121. }
  30122. return true;
  30123. };
  30124. URLStateMachine.prototype["parse relative"] = function parseRelative(c) {
  30125. this.url.scheme = this.base.scheme;
  30126. if (isNaN(c)) {
  30127. this.url.username = this.base.username;
  30128. this.url.password = this.base.password;
  30129. this.url.host = this.base.host;
  30130. this.url.port = this.base.port;
  30131. this.url.path = this.base.path.slice();
  30132. this.url.query = this.base.query;
  30133. } else if (c === 47) {
  30134. this.state = "relative slash";
  30135. } else if (c === 63) {
  30136. this.url.username = this.base.username;
  30137. this.url.password = this.base.password;
  30138. this.url.host = this.base.host;
  30139. this.url.port = this.base.port;
  30140. this.url.path = this.base.path.slice();
  30141. this.url.query = "";
  30142. this.state = "query";
  30143. } else if (c === 35) {
  30144. this.url.username = this.base.username;
  30145. this.url.password = this.base.password;
  30146. this.url.host = this.base.host;
  30147. this.url.port = this.base.port;
  30148. this.url.path = this.base.path.slice();
  30149. this.url.query = this.base.query;
  30150. this.url.fragment = "";
  30151. this.state = "fragment";
  30152. } else if (isSpecial(this.url) && c === 92) {
  30153. this.parseError = true;
  30154. this.state = "relative slash";
  30155. } else {
  30156. this.url.username = this.base.username;
  30157. this.url.password = this.base.password;
  30158. this.url.host = this.base.host;
  30159. this.url.port = this.base.port;
  30160. this.url.path = this.base.path.slice(0, this.base.path.length - 1);
  30161. this.state = "path";
  30162. --this.pointer;
  30163. }
  30164. return true;
  30165. };
  30166. URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) {
  30167. if (isSpecial(this.url) && (c === 47 || c === 92)) {
  30168. if (c === 92) {
  30169. this.parseError = true;
  30170. }
  30171. this.state = "special authority ignore slashes";
  30172. } else if (c === 47) {
  30173. this.state = "authority";
  30174. } else {
  30175. this.url.username = this.base.username;
  30176. this.url.password = this.base.password;
  30177. this.url.host = this.base.host;
  30178. this.url.port = this.base.port;
  30179. this.state = "path";
  30180. --this.pointer;
  30181. }
  30182. return true;
  30183. };
  30184. URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) {
  30185. if (c === 47 && this.input[this.pointer + 1] === 47) {
  30186. this.state = "special authority ignore slashes";
  30187. ++this.pointer;
  30188. } else {
  30189. this.parseError = true;
  30190. this.state = "special authority ignore slashes";
  30191. --this.pointer;
  30192. }
  30193. return true;
  30194. };
  30195. URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) {
  30196. if (c !== 47 && c !== 92) {
  30197. this.state = "authority";
  30198. --this.pointer;
  30199. } else {
  30200. this.parseError = true;
  30201. }
  30202. return true;
  30203. };
  30204. URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) {
  30205. if (c === 64) {
  30206. this.parseError = true;
  30207. if (this.atFlag) {
  30208. this.buffer = "%40" + this.buffer;
  30209. }
  30210. this.atFlag = true;
  30211. // careful, this is based on buffer and has its own pointer (this.pointer != pointer) and inner chars
  30212. const len = countSymbols(this.buffer);
  30213. for (let pointer = 0; pointer < len; ++pointer) {
  30214. const codePoint = this.buffer.codePointAt(pointer);
  30215. if (codePoint === 58 && !this.passwordTokenSeenFlag) {
  30216. this.passwordTokenSeenFlag = true;
  30217. continue;
  30218. }
  30219. const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode);
  30220. if (this.passwordTokenSeenFlag) {
  30221. this.url.password += encodedCodePoints;
  30222. } else {
  30223. this.url.username += encodedCodePoints;
  30224. }
  30225. }
  30226. this.buffer = "";
  30227. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  30228. (isSpecial(this.url) && c === 92)) {
  30229. if (this.atFlag && this.buffer === "") {
  30230. this.parseError = true;
  30231. return failure;
  30232. }
  30233. this.pointer -= countSymbols(this.buffer) + 1;
  30234. this.buffer = "";
  30235. this.state = "host";
  30236. } else {
  30237. this.buffer += cStr;
  30238. }
  30239. return true;
  30240. };
  30241. URLStateMachine.prototype["parse hostname"] =
  30242. URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
  30243. if (this.stateOverride && this.url.scheme === "file") {
  30244. --this.pointer;
  30245. this.state = "file host";
  30246. } else if (c === 58 && !this.arrFlag) {
  30247. if (this.buffer === "") {
  30248. this.parseError = true;
  30249. return failure;
  30250. }
  30251. const host = parseHost(this.buffer, isSpecial(this.url));
  30252. if (host === failure) {
  30253. return failure;
  30254. }
  30255. this.url.host = host;
  30256. this.buffer = "";
  30257. this.state = "port";
  30258. if (this.stateOverride === "hostname") {
  30259. return false;
  30260. }
  30261. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  30262. (isSpecial(this.url) && c === 92)) {
  30263. --this.pointer;
  30264. if (isSpecial(this.url) && this.buffer === "") {
  30265. this.parseError = true;
  30266. return failure;
  30267. } else if (this.stateOverride && this.buffer === "" &&
  30268. (includesCredentials(this.url) || this.url.port !== null)) {
  30269. this.parseError = true;
  30270. return false;
  30271. }
  30272. const host = parseHost(this.buffer, isSpecial(this.url));
  30273. if (host === failure) {
  30274. return failure;
  30275. }
  30276. this.url.host = host;
  30277. this.buffer = "";
  30278. this.state = "path start";
  30279. if (this.stateOverride) {
  30280. return false;
  30281. }
  30282. } else {
  30283. if (c === 91) {
  30284. this.arrFlag = true;
  30285. } else if (c === 93) {
  30286. this.arrFlag = false;
  30287. }
  30288. this.buffer += cStr;
  30289. }
  30290. return true;
  30291. };
  30292. URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) {
  30293. if (isASCIIDigit(c)) {
  30294. this.buffer += cStr;
  30295. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  30296. (isSpecial(this.url) && c === 92) ||
  30297. this.stateOverride) {
  30298. if (this.buffer !== "") {
  30299. const port = parseInt(this.buffer);
  30300. if (port > Math.pow(2, 16) - 1) {
  30301. this.parseError = true;
  30302. return failure;
  30303. }
  30304. this.url.port = port === defaultPort(this.url.scheme) ? null : port;
  30305. this.buffer = "";
  30306. }
  30307. if (this.stateOverride) {
  30308. return false;
  30309. }
  30310. this.state = "path start";
  30311. --this.pointer;
  30312. } else {
  30313. this.parseError = true;
  30314. return failure;
  30315. }
  30316. return true;
  30317. };
  30318. const fileOtherwiseCodePoints = new Set([47, 92, 63, 35]);
  30319. URLStateMachine.prototype["parse file"] = function parseFile(c) {
  30320. this.url.scheme = "file";
  30321. if (c === 47 || c === 92) {
  30322. if (c === 92) {
  30323. this.parseError = true;
  30324. }
  30325. this.state = "file slash";
  30326. } else if (this.base !== null && this.base.scheme === "file") {
  30327. if (isNaN(c)) {
  30328. this.url.host = this.base.host;
  30329. this.url.path = this.base.path.slice();
  30330. this.url.query = this.base.query;
  30331. } else if (c === 63) {
  30332. this.url.host = this.base.host;
  30333. this.url.path = this.base.path.slice();
  30334. this.url.query = "";
  30335. this.state = "query";
  30336. } else if (c === 35) {
  30337. this.url.host = this.base.host;
  30338. this.url.path = this.base.path.slice();
  30339. this.url.query = this.base.query;
  30340. this.url.fragment = "";
  30341. this.state = "fragment";
  30342. } else {
  30343. if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points
  30344. !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) ||
  30345. (this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points
  30346. !fileOtherwiseCodePoints.has(this.input[this.pointer + 2]))) {
  30347. this.url.host = this.base.host;
  30348. this.url.path = this.base.path.slice();
  30349. shortenPath(this.url);
  30350. } else {
  30351. this.parseError = true;
  30352. }
  30353. this.state = "path";
  30354. --this.pointer;
  30355. }
  30356. } else {
  30357. this.state = "path";
  30358. --this.pointer;
  30359. }
  30360. return true;
  30361. };
  30362. URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) {
  30363. if (c === 47 || c === 92) {
  30364. if (c === 92) {
  30365. this.parseError = true;
  30366. }
  30367. this.state = "file host";
  30368. } else {
  30369. if (this.base !== null && this.base.scheme === "file") {
  30370. if (isNormalizedWindowsDriveLetterString(this.base.path[0])) {
  30371. this.url.path.push(this.base.path[0]);
  30372. } else {
  30373. this.url.host = this.base.host;
  30374. }
  30375. }
  30376. this.state = "path";
  30377. --this.pointer;
  30378. }
  30379. return true;
  30380. };
  30381. URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) {
  30382. if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) {
  30383. --this.pointer;
  30384. if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) {
  30385. this.parseError = true;
  30386. this.state = "path";
  30387. } else if (this.buffer === "") {
  30388. this.url.host = "";
  30389. if (this.stateOverride) {
  30390. return false;
  30391. }
  30392. this.state = "path start";
  30393. } else {
  30394. let host = parseHost(this.buffer, isSpecial(this.url));
  30395. if (host === failure) {
  30396. return failure;
  30397. }
  30398. if (host === "localhost") {
  30399. host = "";
  30400. }
  30401. this.url.host = host;
  30402. if (this.stateOverride) {
  30403. return false;
  30404. }
  30405. this.buffer = "";
  30406. this.state = "path start";
  30407. }
  30408. } else {
  30409. this.buffer += cStr;
  30410. }
  30411. return true;
  30412. };
  30413. URLStateMachine.prototype["parse path start"] = function parsePathStart(c) {
  30414. if (isSpecial(this.url)) {
  30415. if (c === 92) {
  30416. this.parseError = true;
  30417. }
  30418. this.state = "path";
  30419. if (c !== 47 && c !== 92) {
  30420. --this.pointer;
  30421. }
  30422. } else if (!this.stateOverride && c === 63) {
  30423. this.url.query = "";
  30424. this.state = "query";
  30425. } else if (!this.stateOverride && c === 35) {
  30426. this.url.fragment = "";
  30427. this.state = "fragment";
  30428. } else if (c !== undefined) {
  30429. this.state = "path";
  30430. if (c !== 47) {
  30431. --this.pointer;
  30432. }
  30433. }
  30434. return true;
  30435. };
  30436. URLStateMachine.prototype["parse path"] = function parsePath(c) {
  30437. if (isNaN(c) || c === 47 || (isSpecial(this.url) && c === 92) ||
  30438. (!this.stateOverride && (c === 63 || c === 35))) {
  30439. if (isSpecial(this.url) && c === 92) {
  30440. this.parseError = true;
  30441. }
  30442. if (isDoubleDot(this.buffer)) {
  30443. shortenPath(this.url);
  30444. if (c !== 47 && !(isSpecial(this.url) && c === 92)) {
  30445. this.url.path.push("");
  30446. }
  30447. } else if (isSingleDot(this.buffer) && c !== 47 &&
  30448. !(isSpecial(this.url) && c === 92)) {
  30449. this.url.path.push("");
  30450. } else if (!isSingleDot(this.buffer)) {
  30451. if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) {
  30452. if (this.url.host !== "" && this.url.host !== null) {
  30453. this.parseError = true;
  30454. this.url.host = "";
  30455. }
  30456. this.buffer = this.buffer[0] + ":";
  30457. }
  30458. this.url.path.push(this.buffer);
  30459. }
  30460. this.buffer = "";
  30461. if (this.url.scheme === "file" && (c === undefined || c === 63 || c === 35)) {
  30462. while (this.url.path.length > 1 && this.url.path[0] === "") {
  30463. this.parseError = true;
  30464. this.url.path.shift();
  30465. }
  30466. }
  30467. if (c === 63) {
  30468. this.url.query = "";
  30469. this.state = "query";
  30470. }
  30471. if (c === 35) {
  30472. this.url.fragment = "";
  30473. this.state = "fragment";
  30474. }
  30475. } else {
  30476. // TODO: If c is not a URL code point and not "%", parse error.
  30477. if (c === 37 &&
  30478. (!isASCIIHex(this.input[this.pointer + 1]) ||
  30479. !isASCIIHex(this.input[this.pointer + 2]))) {
  30480. this.parseError = true;
  30481. }
  30482. this.buffer += percentEncodeChar(c, isPathPercentEncode);
  30483. }
  30484. return true;
  30485. };
  30486. URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) {
  30487. if (c === 63) {
  30488. this.url.query = "";
  30489. this.state = "query";
  30490. } else if (c === 35) {
  30491. this.url.fragment = "";
  30492. this.state = "fragment";
  30493. } else {
  30494. // TODO: Add: not a URL code point
  30495. if (!isNaN(c) && c !== 37) {
  30496. this.parseError = true;
  30497. }
  30498. if (c === 37 &&
  30499. (!isASCIIHex(this.input[this.pointer + 1]) ||
  30500. !isASCIIHex(this.input[this.pointer + 2]))) {
  30501. this.parseError = true;
  30502. }
  30503. if (!isNaN(c)) {
  30504. this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode);
  30505. }
  30506. }
  30507. return true;
  30508. };
  30509. URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) {
  30510. if (isNaN(c) || (!this.stateOverride && c === 35)) {
  30511. if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") {
  30512. this.encodingOverride = "utf-8";
  30513. }
  30514. const buffer = new Buffer(this.buffer); // TODO: Use encoding override instead
  30515. for (let i = 0; i < buffer.length; ++i) {
  30516. if (buffer[i] < 0x21 || buffer[i] > 0x7E || buffer[i] === 0x22 || buffer[i] === 0x23 ||
  30517. buffer[i] === 0x3C || buffer[i] === 0x3E) {
  30518. this.url.query += percentEncode(buffer[i]);
  30519. } else {
  30520. this.url.query += String.fromCodePoint(buffer[i]);
  30521. }
  30522. }
  30523. this.buffer = "";
  30524. if (c === 35) {
  30525. this.url.fragment = "";
  30526. this.state = "fragment";
  30527. }
  30528. } else {
  30529. // TODO: If c is not a URL code point and not "%", parse error.
  30530. if (c === 37 &&
  30531. (!isASCIIHex(this.input[this.pointer + 1]) ||
  30532. !isASCIIHex(this.input[this.pointer + 2]))) {
  30533. this.parseError = true;
  30534. }
  30535. this.buffer += cStr;
  30536. }
  30537. return true;
  30538. };
  30539. URLStateMachine.prototype["parse fragment"] = function parseFragment(c) {
  30540. if (isNaN(c)) { // do nothing
  30541. } else if (c === 0x0) {
  30542. this.parseError = true;
  30543. } else {
  30544. // TODO: If c is not a URL code point and not "%", parse error.
  30545. if (c === 37 &&
  30546. (!isASCIIHex(this.input[this.pointer + 1]) ||
  30547. !isASCIIHex(this.input[this.pointer + 2]))) {
  30548. this.parseError = true;
  30549. }
  30550. this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode);
  30551. }
  30552. return true;
  30553. };
  30554. function serializeURL(url, excludeFragment) {
  30555. let output = url.scheme + ":";
  30556. if (url.host !== null) {
  30557. output += "//";
  30558. if (url.username !== "" || url.password !== "") {
  30559. output += url.username;
  30560. if (url.password !== "") {
  30561. output += ":" + url.password;
  30562. }
  30563. output += "@";
  30564. }
  30565. output += serializeHost(url.host);
  30566. if (url.port !== null) {
  30567. output += ":" + url.port;
  30568. }
  30569. } else if (url.host === null && url.scheme === "file") {
  30570. output += "//";
  30571. }
  30572. if (url.cannotBeABaseURL) {
  30573. output += url.path[0];
  30574. } else {
  30575. for (const string of url.path) {
  30576. output += "/" + string;
  30577. }
  30578. }
  30579. if (url.query !== null) {
  30580. output += "?" + url.query;
  30581. }
  30582. if (!excludeFragment && url.fragment !== null) {
  30583. output += "#" + url.fragment;
  30584. }
  30585. return output;
  30586. }
  30587. function serializeOrigin(tuple) {
  30588. let result = tuple.scheme + "://";
  30589. result += serializeHost(tuple.host);
  30590. if (tuple.port !== null) {
  30591. result += ":" + tuple.port;
  30592. }
  30593. return result;
  30594. }
  30595. module.exports.serializeURL = serializeURL;
  30596. module.exports.serializeURLOrigin = function (url) {
  30597. // https://url.spec.whatwg.org/#concept-url-origin
  30598. switch (url.scheme) {
  30599. case "blob":
  30600. try {
  30601. return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0]));
  30602. } catch (e) {
  30603. // serializing an opaque origin returns "null"
  30604. return "null";
  30605. }
  30606. case "ftp":
  30607. case "gopher":
  30608. case "http":
  30609. case "https":
  30610. case "ws":
  30611. case "wss":
  30612. return serializeOrigin({
  30613. scheme: url.scheme,
  30614. host: url.host,
  30615. port: url.port
  30616. });
  30617. case "file":
  30618. // spec says "exercise to the reader", chrome says "file://"
  30619. return "file://";
  30620. default:
  30621. // serializing an opaque origin returns "null"
  30622. return "null";
  30623. }
  30624. };
  30625. module.exports.basicURLParse = function (input, options) {
  30626. if (options === undefined) {
  30627. options = {};
  30628. }
  30629. const usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride);
  30630. if (usm.failure) {
  30631. return "failure";
  30632. }
  30633. return usm.url;
  30634. };
  30635. module.exports.setTheUsername = function (url, username) {
  30636. url.username = "";
  30637. const decoded = punycode.ucs2.decode(username);
  30638. for (let i = 0; i < decoded.length; ++i) {
  30639. url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  30640. }
  30641. };
  30642. module.exports.setThePassword = function (url, password) {
  30643. url.password = "";
  30644. const decoded = punycode.ucs2.decode(password);
  30645. for (let i = 0; i < decoded.length; ++i) {
  30646. url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  30647. }
  30648. };
  30649. module.exports.serializeHost = serializeHost;
  30650. module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
  30651. module.exports.serializeInteger = function (integer) {
  30652. return String(integer);
  30653. };
  30654. module.exports.parseURL = function (input, options) {
  30655. if (options === undefined) {
  30656. options = {};
  30657. }
  30658. // We don't handle blobs, so this just delegates:
  30659. return module.exports.basicURLParse(input, { baseURL: options.baseURL, encodingOverride: options.encodingOverride });
  30660. };
  30661. /***/ }),
  30662. /***/ 276:
  30663. /***/ ((module) => {
  30664. "use strict";
  30665. module.exports.mixin = function mixin(target, source) {
  30666. const keys = Object.getOwnPropertyNames(source);
  30667. for (let i = 0; i < keys.length; ++i) {
  30668. Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i]));
  30669. }
  30670. };
  30671. module.exports.wrapperSymbol = Symbol("wrapper");
  30672. module.exports.implSymbol = Symbol("impl");
  30673. module.exports.wrapperForImpl = function (impl) {
  30674. return impl[module.exports.wrapperSymbol];
  30675. };
  30676. module.exports.implForWrapper = function (wrapper) {
  30677. return wrapper[module.exports.implSymbol];
  30678. };
  30679. /***/ }),
  30680. /***/ 502:
  30681. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  30682. "use strict";
  30683. const path = __nccwpck_require__(1017);
  30684. const pathKey = __nccwpck_require__(539);
  30685. module.exports = opts => {
  30686. opts = Object.assign({
  30687. cwd: process.cwd(),
  30688. path: process.env[pathKey()]
  30689. }, opts);
  30690. let prev;
  30691. let pth = path.resolve(opts.cwd);
  30692. const ret = [];
  30693. while (prev !== pth) {
  30694. ret.push(path.join(pth, 'node_modules/.bin'));
  30695. prev = pth;
  30696. pth = path.resolve(pth, '..');
  30697. }
  30698. // ensure the running `node` binary is used
  30699. ret.push(path.dirname(process.execPath));
  30700. return ret.concat(opts.path).join(path.delimiter);
  30701. };
  30702. module.exports.env = opts => {
  30703. opts = Object.assign({
  30704. env: process.env
  30705. }, opts);
  30706. const env = Object.assign({}, opts.env);
  30707. const path = pathKey({env});
  30708. opts.path = env[path];
  30709. env[path] = module.exports(opts);
  30710. return env;
  30711. };
  30712. /***/ }),
  30713. /***/ 504:
  30714. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  30715. var hasMap = typeof Map === 'function' && Map.prototype;
  30716. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  30717. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  30718. var mapForEach = hasMap && Map.prototype.forEach;
  30719. var hasSet = typeof Set === 'function' && Set.prototype;
  30720. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  30721. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  30722. var setForEach = hasSet && Set.prototype.forEach;
  30723. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  30724. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  30725. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  30726. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  30727. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  30728. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  30729. var booleanValueOf = Boolean.prototype.valueOf;
  30730. var objectToString = Object.prototype.toString;
  30731. var functionToString = Function.prototype.toString;
  30732. var match = String.prototype.match;
  30733. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  30734. var gOPS = Object.getOwnPropertySymbols;
  30735. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  30736. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  30737. var isEnumerable = Object.prototype.propertyIsEnumerable;
  30738. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  30739. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  30740. ? function (O) {
  30741. return O.__proto__; // eslint-disable-line no-proto
  30742. }
  30743. : null
  30744. );
  30745. var inspectCustom = (__nccwpck_require__(7265).custom);
  30746. var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
  30747. var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
  30748. module.exports = function inspect_(obj, options, depth, seen) {
  30749. var opts = options || {};
  30750. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  30751. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  30752. }
  30753. if (
  30754. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  30755. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  30756. : opts.maxStringLength !== null
  30757. )
  30758. ) {
  30759. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  30760. }
  30761. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  30762. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  30763. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  30764. }
  30765. if (
  30766. has(opts, 'indent')
  30767. && opts.indent !== null
  30768. && opts.indent !== '\t'
  30769. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  30770. ) {
  30771. throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
  30772. }
  30773. if (typeof obj === 'undefined') {
  30774. return 'undefined';
  30775. }
  30776. if (obj === null) {
  30777. return 'null';
  30778. }
  30779. if (typeof obj === 'boolean') {
  30780. return obj ? 'true' : 'false';
  30781. }
  30782. if (typeof obj === 'string') {
  30783. return inspectString(obj, opts);
  30784. }
  30785. if (typeof obj === 'number') {
  30786. if (obj === 0) {
  30787. return Infinity / obj > 0 ? '0' : '-0';
  30788. }
  30789. return String(obj);
  30790. }
  30791. if (typeof obj === 'bigint') {
  30792. return String(obj) + 'n';
  30793. }
  30794. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  30795. if (typeof depth === 'undefined') { depth = 0; }
  30796. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  30797. return isArray(obj) ? '[Array]' : '[Object]';
  30798. }
  30799. var indent = getIndent(opts, depth);
  30800. if (typeof seen === 'undefined') {
  30801. seen = [];
  30802. } else if (indexOf(seen, obj) >= 0) {
  30803. return '[Circular]';
  30804. }
  30805. function inspect(value, from, noIndent) {
  30806. if (from) {
  30807. seen = seen.slice();
  30808. seen.push(from);
  30809. }
  30810. if (noIndent) {
  30811. var newOpts = {
  30812. depth: opts.depth
  30813. };
  30814. if (has(opts, 'quoteStyle')) {
  30815. newOpts.quoteStyle = opts.quoteStyle;
  30816. }
  30817. return inspect_(value, newOpts, depth + 1, seen);
  30818. }
  30819. return inspect_(value, opts, depth + 1, seen);
  30820. }
  30821. if (typeof obj === 'function') {
  30822. var name = nameOf(obj);
  30823. var keys = arrObjKeys(obj, inspect);
  30824. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
  30825. }
  30826. if (isSymbol(obj)) {
  30827. var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  30828. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  30829. }
  30830. if (isElement(obj)) {
  30831. var s = '<' + String(obj.nodeName).toLowerCase();
  30832. var attrs = obj.attributes || [];
  30833. for (var i = 0; i < attrs.length; i++) {
  30834. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  30835. }
  30836. s += '>';
  30837. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  30838. s += '</' + String(obj.nodeName).toLowerCase() + '>';
  30839. return s;
  30840. }
  30841. if (isArray(obj)) {
  30842. if (obj.length === 0) { return '[]'; }
  30843. var xs = arrObjKeys(obj, inspect);
  30844. if (indent && !singleLineValues(xs)) {
  30845. return '[' + indentedJoin(xs, indent) + ']';
  30846. }
  30847. return '[ ' + xs.join(', ') + ' ]';
  30848. }
  30849. if (isError(obj)) {
  30850. var parts = arrObjKeys(obj, inspect);
  30851. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  30852. return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
  30853. }
  30854. if (typeof obj === 'object' && customInspect) {
  30855. if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
  30856. return obj[inspectSymbol]();
  30857. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  30858. return obj.inspect();
  30859. }
  30860. }
  30861. if (isMap(obj)) {
  30862. var mapParts = [];
  30863. mapForEach.call(obj, function (value, key) {
  30864. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  30865. });
  30866. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  30867. }
  30868. if (isSet(obj)) {
  30869. var setParts = [];
  30870. setForEach.call(obj, function (value) {
  30871. setParts.push(inspect(value, obj));
  30872. });
  30873. return collectionOf('Set', setSize.call(obj), setParts, indent);
  30874. }
  30875. if (isWeakMap(obj)) {
  30876. return weakCollectionOf('WeakMap');
  30877. }
  30878. if (isWeakSet(obj)) {
  30879. return weakCollectionOf('WeakSet');
  30880. }
  30881. if (isWeakRef(obj)) {
  30882. return weakCollectionOf('WeakRef');
  30883. }
  30884. if (isNumber(obj)) {
  30885. return markBoxed(inspect(Number(obj)));
  30886. }
  30887. if (isBigInt(obj)) {
  30888. return markBoxed(inspect(bigIntValueOf.call(obj)));
  30889. }
  30890. if (isBoolean(obj)) {
  30891. return markBoxed(booleanValueOf.call(obj));
  30892. }
  30893. if (isString(obj)) {
  30894. return markBoxed(inspect(String(obj)));
  30895. }
  30896. if (!isDate(obj) && !isRegExp(obj)) {
  30897. var ys = arrObjKeys(obj, inspect);
  30898. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  30899. var protoTag = obj instanceof Object ? '' : 'null prototype';
  30900. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
  30901. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  30902. var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
  30903. if (ys.length === 0) { return tag + '{}'; }
  30904. if (indent) {
  30905. return tag + '{' + indentedJoin(ys, indent) + '}';
  30906. }
  30907. return tag + '{ ' + ys.join(', ') + ' }';
  30908. }
  30909. return String(obj);
  30910. };
  30911. function wrapQuotes(s, defaultStyle, opts) {
  30912. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  30913. return quoteChar + s + quoteChar;
  30914. }
  30915. function quote(s) {
  30916. return String(s).replace(/"/g, '&quot;');
  30917. }
  30918. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  30919. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  30920. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  30921. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  30922. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  30923. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  30924. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  30925. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  30926. function isSymbol(obj) {
  30927. if (hasShammedSymbols) {
  30928. return obj && typeof obj === 'object' && obj instanceof Symbol;
  30929. }
  30930. if (typeof obj === 'symbol') {
  30931. return true;
  30932. }
  30933. if (!obj || typeof obj !== 'object' || !symToString) {
  30934. return false;
  30935. }
  30936. try {
  30937. symToString.call(obj);
  30938. return true;
  30939. } catch (e) {}
  30940. return false;
  30941. }
  30942. function isBigInt(obj) {
  30943. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  30944. return false;
  30945. }
  30946. try {
  30947. bigIntValueOf.call(obj);
  30948. return true;
  30949. } catch (e) {}
  30950. return false;
  30951. }
  30952. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  30953. function has(obj, key) {
  30954. return hasOwn.call(obj, key);
  30955. }
  30956. function toStr(obj) {
  30957. return objectToString.call(obj);
  30958. }
  30959. function nameOf(f) {
  30960. if (f.name) { return f.name; }
  30961. var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  30962. if (m) { return m[1]; }
  30963. return null;
  30964. }
  30965. function indexOf(xs, x) {
  30966. if (xs.indexOf) { return xs.indexOf(x); }
  30967. for (var i = 0, l = xs.length; i < l; i++) {
  30968. if (xs[i] === x) { return i; }
  30969. }
  30970. return -1;
  30971. }
  30972. function isMap(x) {
  30973. if (!mapSize || !x || typeof x !== 'object') {
  30974. return false;
  30975. }
  30976. try {
  30977. mapSize.call(x);
  30978. try {
  30979. setSize.call(x);
  30980. } catch (s) {
  30981. return true;
  30982. }
  30983. return x instanceof Map; // core-js workaround, pre-v2.5.0
  30984. } catch (e) {}
  30985. return false;
  30986. }
  30987. function isWeakMap(x) {
  30988. if (!weakMapHas || !x || typeof x !== 'object') {
  30989. return false;
  30990. }
  30991. try {
  30992. weakMapHas.call(x, weakMapHas);
  30993. try {
  30994. weakSetHas.call(x, weakSetHas);
  30995. } catch (s) {
  30996. return true;
  30997. }
  30998. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  30999. } catch (e) {}
  31000. return false;
  31001. }
  31002. function isWeakRef(x) {
  31003. if (!weakRefDeref || !x || typeof x !== 'object') {
  31004. return false;
  31005. }
  31006. try {
  31007. weakRefDeref.call(x);
  31008. return true;
  31009. } catch (e) {}
  31010. return false;
  31011. }
  31012. function isSet(x) {
  31013. if (!setSize || !x || typeof x !== 'object') {
  31014. return false;
  31015. }
  31016. try {
  31017. setSize.call(x);
  31018. try {
  31019. mapSize.call(x);
  31020. } catch (m) {
  31021. return true;
  31022. }
  31023. return x instanceof Set; // core-js workaround, pre-v2.5.0
  31024. } catch (e) {}
  31025. return false;
  31026. }
  31027. function isWeakSet(x) {
  31028. if (!weakSetHas || !x || typeof x !== 'object') {
  31029. return false;
  31030. }
  31031. try {
  31032. weakSetHas.call(x, weakSetHas);
  31033. try {
  31034. weakMapHas.call(x, weakMapHas);
  31035. } catch (s) {
  31036. return true;
  31037. }
  31038. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  31039. } catch (e) {}
  31040. return false;
  31041. }
  31042. function isElement(x) {
  31043. if (!x || typeof x !== 'object') { return false; }
  31044. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  31045. return true;
  31046. }
  31047. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  31048. }
  31049. function inspectString(str, opts) {
  31050. if (str.length > opts.maxStringLength) {
  31051. var remaining = str.length - opts.maxStringLength;
  31052. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  31053. return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
  31054. }
  31055. // eslint-disable-next-line no-control-regex
  31056. var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
  31057. return wrapQuotes(s, 'single', opts);
  31058. }
  31059. function lowbyte(c) {
  31060. var n = c.charCodeAt(0);
  31061. var x = {
  31062. 8: 'b',
  31063. 9: 't',
  31064. 10: 'n',
  31065. 12: 'f',
  31066. 13: 'r'
  31067. }[n];
  31068. if (x) { return '\\' + x; }
  31069. return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
  31070. }
  31071. function markBoxed(str) {
  31072. return 'Object(' + str + ')';
  31073. }
  31074. function weakCollectionOf(type) {
  31075. return type + ' { ? }';
  31076. }
  31077. function collectionOf(type, size, entries, indent) {
  31078. var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
  31079. return type + ' (' + size + ') {' + joinedEntries + '}';
  31080. }
  31081. function singleLineValues(xs) {
  31082. for (var i = 0; i < xs.length; i++) {
  31083. if (indexOf(xs[i], '\n') >= 0) {
  31084. return false;
  31085. }
  31086. }
  31087. return true;
  31088. }
  31089. function getIndent(opts, depth) {
  31090. var baseIndent;
  31091. if (opts.indent === '\t') {
  31092. baseIndent = '\t';
  31093. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  31094. baseIndent = Array(opts.indent + 1).join(' ');
  31095. } else {
  31096. return null;
  31097. }
  31098. return {
  31099. base: baseIndent,
  31100. prev: Array(depth + 1).join(baseIndent)
  31101. };
  31102. }
  31103. function indentedJoin(xs, indent) {
  31104. if (xs.length === 0) { return ''; }
  31105. var lineJoiner = '\n' + indent.prev + indent.base;
  31106. return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
  31107. }
  31108. function arrObjKeys(obj, inspect) {
  31109. var isArr = isArray(obj);
  31110. var xs = [];
  31111. if (isArr) {
  31112. xs.length = obj.length;
  31113. for (var i = 0; i < obj.length; i++) {
  31114. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  31115. }
  31116. }
  31117. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  31118. var symMap;
  31119. if (hasShammedSymbols) {
  31120. symMap = {};
  31121. for (var k = 0; k < syms.length; k++) {
  31122. symMap['$' + syms[k]] = syms[k];
  31123. }
  31124. }
  31125. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  31126. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  31127. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  31128. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  31129. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  31130. continue; // eslint-disable-line no-restricted-syntax, no-continue
  31131. } else if ((/[^\w$]/).test(key)) {
  31132. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  31133. } else {
  31134. xs.push(key + ': ' + inspect(obj[key], obj));
  31135. }
  31136. }
  31137. if (typeof gOPS === 'function') {
  31138. for (var j = 0; j < syms.length; j++) {
  31139. if (isEnumerable.call(obj, syms[j])) {
  31140. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  31141. }
  31142. }
  31143. }
  31144. return xs;
  31145. }
  31146. /***/ }),
  31147. /***/ 7265:
  31148. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31149. module.exports = __nccwpck_require__(3837).inspect;
  31150. /***/ }),
  31151. /***/ 2072:
  31152. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31153. module.exports = paginationMethodsPlugin
  31154. function paginationMethodsPlugin (octokit) {
  31155. octokit.getFirstPage = (__nccwpck_require__(9555).bind)(null, octokit)
  31156. octokit.getLastPage = (__nccwpck_require__(2203).bind)(null, octokit)
  31157. octokit.getNextPage = (__nccwpck_require__(6655).bind)(null, octokit)
  31158. octokit.getPreviousPage = (__nccwpck_require__(3032).bind)(null, octokit)
  31159. octokit.hasFirstPage = __nccwpck_require__(9631)
  31160. octokit.hasLastPage = __nccwpck_require__(4286)
  31161. octokit.hasNextPage = __nccwpck_require__(500)
  31162. octokit.hasPreviousPage = __nccwpck_require__(5996)
  31163. }
  31164. /***/ }),
  31165. /***/ 191:
  31166. /***/ ((module) => {
  31167. module.exports = deprecate
  31168. const loggedMessages = {}
  31169. function deprecate (message) {
  31170. if (loggedMessages[message]) {
  31171. return
  31172. }
  31173. console.warn(`DEPRECATED (@octokit/rest): ${message}`)
  31174. loggedMessages[message] = 1
  31175. }
  31176. /***/ }),
  31177. /***/ 9555:
  31178. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31179. module.exports = getFirstPage
  31180. const getPage = __nccwpck_require__(8604)
  31181. function getFirstPage (octokit, link, headers) {
  31182. return getPage(octokit, link, 'first', headers)
  31183. }
  31184. /***/ }),
  31185. /***/ 2203:
  31186. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31187. module.exports = getLastPage
  31188. const getPage = __nccwpck_require__(8604)
  31189. function getLastPage (octokit, link, headers) {
  31190. return getPage(octokit, link, 'last', headers)
  31191. }
  31192. /***/ }),
  31193. /***/ 6655:
  31194. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31195. module.exports = getNextPage
  31196. const getPage = __nccwpck_require__(8604)
  31197. function getNextPage (octokit, link, headers) {
  31198. return getPage(octokit, link, 'next', headers)
  31199. }
  31200. /***/ }),
  31201. /***/ 7889:
  31202. /***/ ((module) => {
  31203. module.exports = getPageLinks
  31204. function getPageLinks (link) {
  31205. link = link.link || link.headers.link || ''
  31206. const links = {}
  31207. // link format:
  31208. // '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
  31209. link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => {
  31210. links[type] = uri
  31211. })
  31212. return links
  31213. }
  31214. /***/ }),
  31215. /***/ 8604:
  31216. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31217. module.exports = getPage
  31218. const deprecate = __nccwpck_require__(191)
  31219. const getPageLinks = __nccwpck_require__(7889)
  31220. const HttpError = __nccwpck_require__(6058)
  31221. function getPage (octokit, link, which, headers) {
  31222. deprecate(`octokit.get${which.charAt(0).toUpperCase() + which.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  31223. const url = getPageLinks(link)[which]
  31224. if (!url) {
  31225. const urlError = new HttpError(`No ${which} page found`, 404)
  31226. return Promise.reject(urlError)
  31227. }
  31228. const requestOptions = {
  31229. url,
  31230. headers: applyAcceptHeader(link, headers)
  31231. }
  31232. const promise = octokit.request(requestOptions)
  31233. return promise
  31234. }
  31235. function applyAcceptHeader (res, headers) {
  31236. const previous = res.headers && res.headers['x-github-media-type']
  31237. if (!previous || (headers && headers.accept)) {
  31238. return headers
  31239. }
  31240. headers = headers || {}
  31241. headers.accept = 'application/vnd.' + previous
  31242. .replace('; param=', '.')
  31243. .replace('; format=', '+')
  31244. return headers
  31245. }
  31246. /***/ }),
  31247. /***/ 3032:
  31248. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31249. module.exports = getPreviousPage
  31250. const getPage = __nccwpck_require__(8604)
  31251. function getPreviousPage (octokit, link, headers) {
  31252. return getPage(octokit, link, 'prev', headers)
  31253. }
  31254. /***/ }),
  31255. /***/ 9631:
  31256. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31257. module.exports = hasFirstPage
  31258. const deprecate = __nccwpck_require__(191)
  31259. const getPageLinks = __nccwpck_require__(7889)
  31260. function hasFirstPage (link) {
  31261. deprecate(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  31262. return getPageLinks(link).first
  31263. }
  31264. /***/ }),
  31265. /***/ 4286:
  31266. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31267. module.exports = hasLastPage
  31268. const deprecate = __nccwpck_require__(191)
  31269. const getPageLinks = __nccwpck_require__(7889)
  31270. function hasLastPage (link) {
  31271. deprecate(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  31272. return getPageLinks(link).last
  31273. }
  31274. /***/ }),
  31275. /***/ 500:
  31276. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31277. module.exports = hasNextPage
  31278. const deprecate = __nccwpck_require__(191)
  31279. const getPageLinks = __nccwpck_require__(7889)
  31280. function hasNextPage (link) {
  31281. deprecate(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  31282. return getPageLinks(link).next
  31283. }
  31284. /***/ }),
  31285. /***/ 5996:
  31286. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31287. module.exports = hasPreviousPage
  31288. const deprecate = __nccwpck_require__(191)
  31289. const getPageLinks = __nccwpck_require__(7889)
  31290. function hasPreviousPage (link) {
  31291. deprecate(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  31292. return getPageLinks(link).prev
  31293. }
  31294. /***/ }),
  31295. /***/ 6058:
  31296. /***/ ((module) => {
  31297. module.exports = class HttpError extends Error {
  31298. constructor (message, code, headers) {
  31299. super(message)
  31300. // Maintains proper stack trace (only available on V8)
  31301. /* istanbul ignore next */
  31302. if (Error.captureStackTrace) {
  31303. Error.captureStackTrace(this, this.constructor)
  31304. }
  31305. this.name = 'HttpError'
  31306. this.code = code
  31307. this.headers = headers
  31308. }
  31309. }
  31310. /***/ }),
  31311. /***/ 1223:
  31312. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31313. var wrappy = __nccwpck_require__(2940)
  31314. module.exports = wrappy(once)
  31315. module.exports.strict = wrappy(onceStrict)
  31316. once.proto = once(function () {
  31317. Object.defineProperty(Function.prototype, 'once', {
  31318. value: function () {
  31319. return once(this)
  31320. },
  31321. configurable: true
  31322. })
  31323. Object.defineProperty(Function.prototype, 'onceStrict', {
  31324. value: function () {
  31325. return onceStrict(this)
  31326. },
  31327. configurable: true
  31328. })
  31329. })
  31330. function once (fn) {
  31331. var f = function () {
  31332. if (f.called) return f.value
  31333. f.called = true
  31334. return f.value = fn.apply(this, arguments)
  31335. }
  31336. f.called = false
  31337. return f
  31338. }
  31339. function onceStrict (fn) {
  31340. var f = function () {
  31341. if (f.called)
  31342. throw new Error(f.onceError)
  31343. f.called = true
  31344. return f.value = fn.apply(this, arguments)
  31345. }
  31346. var name = fn.name || 'Function wrapped with `once`'
  31347. f.onceError = name + " shouldn't be called more than once"
  31348. f.called = false
  31349. return f
  31350. }
  31351. /***/ }),
  31352. /***/ 4824:
  31353. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31354. "use strict";
  31355. const os = __nccwpck_require__(2037);
  31356. const macosRelease = __nccwpck_require__(7493);
  31357. const winRelease = __nccwpck_require__(3515);
  31358. const osName = (platform, release) => {
  31359. if (!platform && release) {
  31360. throw new Error('You can\'t specify a `release` without specifying `platform`');
  31361. }
  31362. platform = platform || os.platform();
  31363. let id;
  31364. if (platform === 'darwin') {
  31365. if (!release && os.platform() === 'darwin') {
  31366. release = os.release();
  31367. }
  31368. const prefix = release ? (Number(release.split('.')[0]) > 15 ? 'macOS' : 'OS X') : 'macOS';
  31369. id = release ? macosRelease(release).name : '';
  31370. return prefix + (id ? ' ' + id : '');
  31371. }
  31372. if (platform === 'linux') {
  31373. if (!release && os.platform() === 'linux') {
  31374. release = os.release();
  31375. }
  31376. id = release ? release.replace(/^(\d+\.\d+).*/, '$1') : '';
  31377. return 'Linux' + (id ? ' ' + id : '');
  31378. }
  31379. if (platform === 'win32') {
  31380. if (!release && os.platform() === 'win32') {
  31381. release = os.release();
  31382. }
  31383. id = release ? winRelease(release) : '';
  31384. return 'Windows' + (id ? ' ' + id : '');
  31385. }
  31386. return platform;
  31387. };
  31388. module.exports = osName;
  31389. /***/ }),
  31390. /***/ 1330:
  31391. /***/ ((module) => {
  31392. "use strict";
  31393. module.exports = (promise, onFinally) => {
  31394. onFinally = onFinally || (() => {});
  31395. return promise.then(
  31396. val => new Promise(resolve => {
  31397. resolve(onFinally());
  31398. }).then(() => val),
  31399. err => new Promise(resolve => {
  31400. resolve(onFinally());
  31401. }).then(() => {
  31402. throw err;
  31403. })
  31404. );
  31405. };
  31406. /***/ }),
  31407. /***/ 539:
  31408. /***/ ((module) => {
  31409. "use strict";
  31410. module.exports = opts => {
  31411. opts = opts || {};
  31412. const env = opts.env || process.env;
  31413. const platform = opts.platform || process.platform;
  31414. if (platform !== 'win32') {
  31415. return 'PATH';
  31416. }
  31417. return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
  31418. };
  31419. /***/ }),
  31420. /***/ 8341:
  31421. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31422. var once = __nccwpck_require__(1223)
  31423. var eos = __nccwpck_require__(1205)
  31424. var fs = __nccwpck_require__(7147) // we only need fs to get the ReadStream and WriteStream prototypes
  31425. var noop = function () {}
  31426. var ancient = /^v?\.0/.test(process.version)
  31427. var isFn = function (fn) {
  31428. return typeof fn === 'function'
  31429. }
  31430. var isFS = function (stream) {
  31431. if (!ancient) return false // newer node version do not need to care about fs is a special way
  31432. if (!fs) return false // browser
  31433. return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close)
  31434. }
  31435. var isRequest = function (stream) {
  31436. return stream.setHeader && isFn(stream.abort)
  31437. }
  31438. var destroyer = function (stream, reading, writing, callback) {
  31439. callback = once(callback)
  31440. var closed = false
  31441. stream.on('close', function () {
  31442. closed = true
  31443. })
  31444. eos(stream, {readable: reading, writable: writing}, function (err) {
  31445. if (err) return callback(err)
  31446. closed = true
  31447. callback()
  31448. })
  31449. var destroyed = false
  31450. return function (err) {
  31451. if (closed) return
  31452. if (destroyed) return
  31453. destroyed = true
  31454. if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks
  31455. if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want
  31456. if (isFn(stream.destroy)) return stream.destroy()
  31457. callback(err || new Error('stream was destroyed'))
  31458. }
  31459. }
  31460. var call = function (fn) {
  31461. fn()
  31462. }
  31463. var pipe = function (from, to) {
  31464. return from.pipe(to)
  31465. }
  31466. var pump = function () {
  31467. var streams = Array.prototype.slice.call(arguments)
  31468. var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop
  31469. if (Array.isArray(streams[0])) streams = streams[0]
  31470. if (streams.length < 2) throw new Error('pump requires two streams per minimum')
  31471. var error
  31472. var destroys = streams.map(function (stream, i) {
  31473. var reading = i < streams.length - 1
  31474. var writing = i > 0
  31475. return destroyer(stream, reading, writing, function (err) {
  31476. if (!error) error = err
  31477. if (err) destroys.forEach(call)
  31478. if (reading) return
  31479. destroys.forEach(call)
  31480. callback(error)
  31481. })
  31482. })
  31483. return streams.reduce(pipe)
  31484. }
  31485. module.exports = pump
  31486. /***/ }),
  31487. /***/ 4907:
  31488. /***/ ((module) => {
  31489. "use strict";
  31490. var replace = String.prototype.replace;
  31491. var percentTwenties = /%20/g;
  31492. var Format = {
  31493. RFC1738: 'RFC1738',
  31494. RFC3986: 'RFC3986'
  31495. };
  31496. module.exports = {
  31497. 'default': Format.RFC3986,
  31498. formatters: {
  31499. RFC1738: function (value) {
  31500. return replace.call(value, percentTwenties, '+');
  31501. },
  31502. RFC3986: function (value) {
  31503. return String(value);
  31504. }
  31505. },
  31506. RFC1738: Format.RFC1738,
  31507. RFC3986: Format.RFC3986
  31508. };
  31509. /***/ }),
  31510. /***/ 2760:
  31511. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31512. "use strict";
  31513. var stringify = __nccwpck_require__(9954);
  31514. var parse = __nccwpck_require__(3912);
  31515. var formats = __nccwpck_require__(4907);
  31516. module.exports = {
  31517. formats: formats,
  31518. parse: parse,
  31519. stringify: stringify
  31520. };
  31521. /***/ }),
  31522. /***/ 3912:
  31523. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31524. "use strict";
  31525. var utils = __nccwpck_require__(2360);
  31526. var has = Object.prototype.hasOwnProperty;
  31527. var isArray = Array.isArray;
  31528. var defaults = {
  31529. allowDots: false,
  31530. allowPrototypes: false,
  31531. allowSparse: false,
  31532. arrayLimit: 20,
  31533. charset: 'utf-8',
  31534. charsetSentinel: false,
  31535. comma: false,
  31536. decoder: utils.decode,
  31537. delimiter: '&',
  31538. depth: 5,
  31539. ignoreQueryPrefix: false,
  31540. interpretNumericEntities: false,
  31541. parameterLimit: 1000,
  31542. parseArrays: true,
  31543. plainObjects: false,
  31544. strictNullHandling: false
  31545. };
  31546. var interpretNumericEntities = function (str) {
  31547. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  31548. return String.fromCharCode(parseInt(numberStr, 10));
  31549. });
  31550. };
  31551. var parseArrayValue = function (val, options) {
  31552. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  31553. return val.split(',');
  31554. }
  31555. return val;
  31556. };
  31557. // This is what browsers will submit when the ✓ character occurs in an
  31558. // application/x-www-form-urlencoded body and the encoding of the page containing
  31559. // the form is iso-8859-1, or when the submitted form has an accept-charset
  31560. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  31561. // the ✓ character, such as us-ascii.
  31562. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  31563. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  31564. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  31565. var parseValues = function parseQueryStringValues(str, options) {
  31566. var obj = {};
  31567. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  31568. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  31569. var parts = cleanStr.split(options.delimiter, limit);
  31570. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  31571. var i;
  31572. var charset = options.charset;
  31573. if (options.charsetSentinel) {
  31574. for (i = 0; i < parts.length; ++i) {
  31575. if (parts[i].indexOf('utf8=') === 0) {
  31576. if (parts[i] === charsetSentinel) {
  31577. charset = 'utf-8';
  31578. } else if (parts[i] === isoSentinel) {
  31579. charset = 'iso-8859-1';
  31580. }
  31581. skipIndex = i;
  31582. i = parts.length; // The eslint settings do not allow break;
  31583. }
  31584. }
  31585. }
  31586. for (i = 0; i < parts.length; ++i) {
  31587. if (i === skipIndex) {
  31588. continue;
  31589. }
  31590. var part = parts[i];
  31591. var bracketEqualsPos = part.indexOf(']=');
  31592. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  31593. var key, val;
  31594. if (pos === -1) {
  31595. key = options.decoder(part, defaults.decoder, charset, 'key');
  31596. val = options.strictNullHandling ? null : '';
  31597. } else {
  31598. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  31599. val = utils.maybeMap(
  31600. parseArrayValue(part.slice(pos + 1), options),
  31601. function (encodedVal) {
  31602. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  31603. }
  31604. );
  31605. }
  31606. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  31607. val = interpretNumericEntities(val);
  31608. }
  31609. if (part.indexOf('[]=') > -1) {
  31610. val = isArray(val) ? [val] : val;
  31611. }
  31612. if (has.call(obj, key)) {
  31613. obj[key] = utils.combine(obj[key], val);
  31614. } else {
  31615. obj[key] = val;
  31616. }
  31617. }
  31618. return obj;
  31619. };
  31620. var parseObject = function (chain, val, options, valuesParsed) {
  31621. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  31622. for (var i = chain.length - 1; i >= 0; --i) {
  31623. var obj;
  31624. var root = chain[i];
  31625. if (root === '[]' && options.parseArrays) {
  31626. obj = [].concat(leaf);
  31627. } else {
  31628. obj = options.plainObjects ? Object.create(null) : {};
  31629. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  31630. var index = parseInt(cleanRoot, 10);
  31631. if (!options.parseArrays && cleanRoot === '') {
  31632. obj = { 0: leaf };
  31633. } else if (
  31634. !isNaN(index)
  31635. && root !== cleanRoot
  31636. && String(index) === cleanRoot
  31637. && index >= 0
  31638. && (options.parseArrays && index <= options.arrayLimit)
  31639. ) {
  31640. obj = [];
  31641. obj[index] = leaf;
  31642. } else if (cleanRoot !== '__proto__') {
  31643. obj[cleanRoot] = leaf;
  31644. }
  31645. }
  31646. leaf = obj;
  31647. }
  31648. return leaf;
  31649. };
  31650. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  31651. if (!givenKey) {
  31652. return;
  31653. }
  31654. // Transform dot notation to bracket notation
  31655. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  31656. // The regex chunks
  31657. var brackets = /(\[[^[\]]*])/;
  31658. var child = /(\[[^[\]]*])/g;
  31659. // Get the parent
  31660. var segment = options.depth > 0 && brackets.exec(key);
  31661. var parent = segment ? key.slice(0, segment.index) : key;
  31662. // Stash the parent if it exists
  31663. var keys = [];
  31664. if (parent) {
  31665. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  31666. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  31667. if (!options.allowPrototypes) {
  31668. return;
  31669. }
  31670. }
  31671. keys.push(parent);
  31672. }
  31673. // Loop through children appending to the array until we hit depth
  31674. var i = 0;
  31675. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  31676. i += 1;
  31677. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  31678. if (!options.allowPrototypes) {
  31679. return;
  31680. }
  31681. }
  31682. keys.push(segment[1]);
  31683. }
  31684. // If there's a remainder, just add whatever is left
  31685. if (segment) {
  31686. keys.push('[' + key.slice(segment.index) + ']');
  31687. }
  31688. return parseObject(keys, val, options, valuesParsed);
  31689. };
  31690. var normalizeParseOptions = function normalizeParseOptions(opts) {
  31691. if (!opts) {
  31692. return defaults;
  31693. }
  31694. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  31695. throw new TypeError('Decoder has to be a function.');
  31696. }
  31697. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  31698. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  31699. }
  31700. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  31701. return {
  31702. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  31703. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  31704. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  31705. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  31706. charset: charset,
  31707. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  31708. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  31709. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  31710. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  31711. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  31712. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  31713. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  31714. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  31715. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  31716. parseArrays: opts.parseArrays !== false,
  31717. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  31718. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  31719. };
  31720. };
  31721. module.exports = function (str, opts) {
  31722. var options = normalizeParseOptions(opts);
  31723. if (str === '' || str === null || typeof str === 'undefined') {
  31724. return options.plainObjects ? Object.create(null) : {};
  31725. }
  31726. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  31727. var obj = options.plainObjects ? Object.create(null) : {};
  31728. // Iterate over the keys and setup the new object
  31729. var keys = Object.keys(tempObj);
  31730. for (var i = 0; i < keys.length; ++i) {
  31731. var key = keys[i];
  31732. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  31733. obj = utils.merge(obj, newObj, options);
  31734. }
  31735. if (options.allowSparse === true) {
  31736. return obj;
  31737. }
  31738. return utils.compact(obj);
  31739. };
  31740. /***/ }),
  31741. /***/ 9954:
  31742. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31743. "use strict";
  31744. var getSideChannel = __nccwpck_require__(4334);
  31745. var utils = __nccwpck_require__(2360);
  31746. var formats = __nccwpck_require__(4907);
  31747. var has = Object.prototype.hasOwnProperty;
  31748. var arrayPrefixGenerators = {
  31749. brackets: function brackets(prefix) {
  31750. return prefix + '[]';
  31751. },
  31752. comma: 'comma',
  31753. indices: function indices(prefix, key) {
  31754. return prefix + '[' + key + ']';
  31755. },
  31756. repeat: function repeat(prefix) {
  31757. return prefix;
  31758. }
  31759. };
  31760. var isArray = Array.isArray;
  31761. var split = String.prototype.split;
  31762. var push = Array.prototype.push;
  31763. var pushToArray = function (arr, valueOrArray) {
  31764. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  31765. };
  31766. var toISO = Date.prototype.toISOString;
  31767. var defaultFormat = formats['default'];
  31768. var defaults = {
  31769. addQueryPrefix: false,
  31770. allowDots: false,
  31771. charset: 'utf-8',
  31772. charsetSentinel: false,
  31773. delimiter: '&',
  31774. encode: true,
  31775. encoder: utils.encode,
  31776. encodeValuesOnly: false,
  31777. format: defaultFormat,
  31778. formatter: formats.formatters[defaultFormat],
  31779. // deprecated
  31780. indices: false,
  31781. serializeDate: function serializeDate(date) {
  31782. return toISO.call(date);
  31783. },
  31784. skipNulls: false,
  31785. strictNullHandling: false
  31786. };
  31787. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  31788. return typeof v === 'string'
  31789. || typeof v === 'number'
  31790. || typeof v === 'boolean'
  31791. || typeof v === 'symbol'
  31792. || typeof v === 'bigint';
  31793. };
  31794. var sentinel = {};
  31795. var stringify = function stringify(
  31796. object,
  31797. prefix,
  31798. generateArrayPrefix,
  31799. commaRoundTrip,
  31800. strictNullHandling,
  31801. skipNulls,
  31802. encoder,
  31803. filter,
  31804. sort,
  31805. allowDots,
  31806. serializeDate,
  31807. format,
  31808. formatter,
  31809. encodeValuesOnly,
  31810. charset,
  31811. sideChannel
  31812. ) {
  31813. var obj = object;
  31814. var tmpSc = sideChannel;
  31815. var step = 0;
  31816. var findFlag = false;
  31817. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  31818. // Where object last appeared in the ref tree
  31819. var pos = tmpSc.get(object);
  31820. step += 1;
  31821. if (typeof pos !== 'undefined') {
  31822. if (pos === step) {
  31823. throw new RangeError('Cyclic object value');
  31824. } else {
  31825. findFlag = true; // Break while
  31826. }
  31827. }
  31828. if (typeof tmpSc.get(sentinel) === 'undefined') {
  31829. step = 0;
  31830. }
  31831. }
  31832. if (typeof filter === 'function') {
  31833. obj = filter(prefix, obj);
  31834. } else if (obj instanceof Date) {
  31835. obj = serializeDate(obj);
  31836. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  31837. obj = utils.maybeMap(obj, function (value) {
  31838. if (value instanceof Date) {
  31839. return serializeDate(value);
  31840. }
  31841. return value;
  31842. });
  31843. }
  31844. if (obj === null) {
  31845. if (strictNullHandling) {
  31846. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  31847. }
  31848. obj = '';
  31849. }
  31850. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  31851. if (encoder) {
  31852. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  31853. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  31854. var valuesArray = split.call(String(obj), ',');
  31855. var valuesJoined = '';
  31856. for (var i = 0; i < valuesArray.length; ++i) {
  31857. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  31858. }
  31859. return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
  31860. }
  31861. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  31862. }
  31863. return [formatter(prefix) + '=' + formatter(String(obj))];
  31864. }
  31865. var values = [];
  31866. if (typeof obj === 'undefined') {
  31867. return values;
  31868. }
  31869. var objKeys;
  31870. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  31871. // we need to join elements in
  31872. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  31873. } else if (isArray(filter)) {
  31874. objKeys = filter;
  31875. } else {
  31876. var keys = Object.keys(obj);
  31877. objKeys = sort ? keys.sort(sort) : keys;
  31878. }
  31879. var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
  31880. for (var j = 0; j < objKeys.length; ++j) {
  31881. var key = objKeys[j];
  31882. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  31883. if (skipNulls && value === null) {
  31884. continue;
  31885. }
  31886. var keyPrefix = isArray(obj)
  31887. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
  31888. : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
  31889. sideChannel.set(object, step);
  31890. var valueSideChannel = getSideChannel();
  31891. valueSideChannel.set(sentinel, sideChannel);
  31892. pushToArray(values, stringify(
  31893. value,
  31894. keyPrefix,
  31895. generateArrayPrefix,
  31896. commaRoundTrip,
  31897. strictNullHandling,
  31898. skipNulls,
  31899. encoder,
  31900. filter,
  31901. sort,
  31902. allowDots,
  31903. serializeDate,
  31904. format,
  31905. formatter,
  31906. encodeValuesOnly,
  31907. charset,
  31908. valueSideChannel
  31909. ));
  31910. }
  31911. return values;
  31912. };
  31913. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  31914. if (!opts) {
  31915. return defaults;
  31916. }
  31917. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  31918. throw new TypeError('Encoder has to be a function.');
  31919. }
  31920. var charset = opts.charset || defaults.charset;
  31921. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  31922. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  31923. }
  31924. var format = formats['default'];
  31925. if (typeof opts.format !== 'undefined') {
  31926. if (!has.call(formats.formatters, opts.format)) {
  31927. throw new TypeError('Unknown format option provided.');
  31928. }
  31929. format = opts.format;
  31930. }
  31931. var formatter = formats.formatters[format];
  31932. var filter = defaults.filter;
  31933. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  31934. filter = opts.filter;
  31935. }
  31936. return {
  31937. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  31938. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  31939. charset: charset,
  31940. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  31941. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  31942. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  31943. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  31944. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  31945. filter: filter,
  31946. format: format,
  31947. formatter: formatter,
  31948. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  31949. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  31950. sort: typeof opts.sort === 'function' ? opts.sort : null,
  31951. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  31952. };
  31953. };
  31954. module.exports = function (object, opts) {
  31955. var obj = object;
  31956. var options = normalizeStringifyOptions(opts);
  31957. var objKeys;
  31958. var filter;
  31959. if (typeof options.filter === 'function') {
  31960. filter = options.filter;
  31961. obj = filter('', obj);
  31962. } else if (isArray(options.filter)) {
  31963. filter = options.filter;
  31964. objKeys = filter;
  31965. }
  31966. var keys = [];
  31967. if (typeof obj !== 'object' || obj === null) {
  31968. return '';
  31969. }
  31970. var arrayFormat;
  31971. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  31972. arrayFormat = opts.arrayFormat;
  31973. } else if (opts && 'indices' in opts) {
  31974. arrayFormat = opts.indices ? 'indices' : 'repeat';
  31975. } else {
  31976. arrayFormat = 'indices';
  31977. }
  31978. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  31979. if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
  31980. throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
  31981. }
  31982. var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
  31983. if (!objKeys) {
  31984. objKeys = Object.keys(obj);
  31985. }
  31986. if (options.sort) {
  31987. objKeys.sort(options.sort);
  31988. }
  31989. var sideChannel = getSideChannel();
  31990. for (var i = 0; i < objKeys.length; ++i) {
  31991. var key = objKeys[i];
  31992. if (options.skipNulls && obj[key] === null) {
  31993. continue;
  31994. }
  31995. pushToArray(keys, stringify(
  31996. obj[key],
  31997. key,
  31998. generateArrayPrefix,
  31999. commaRoundTrip,
  32000. options.strictNullHandling,
  32001. options.skipNulls,
  32002. options.encode ? options.encoder : null,
  32003. options.filter,
  32004. options.sort,
  32005. options.allowDots,
  32006. options.serializeDate,
  32007. options.format,
  32008. options.formatter,
  32009. options.encodeValuesOnly,
  32010. options.charset,
  32011. sideChannel
  32012. ));
  32013. }
  32014. var joined = keys.join(options.delimiter);
  32015. var prefix = options.addQueryPrefix === true ? '?' : '';
  32016. if (options.charsetSentinel) {
  32017. if (options.charset === 'iso-8859-1') {
  32018. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  32019. prefix += 'utf8=%26%2310003%3B&';
  32020. } else {
  32021. // encodeURIComponent('✓')
  32022. prefix += 'utf8=%E2%9C%93&';
  32023. }
  32024. }
  32025. return joined.length > 0 ? prefix + joined : '';
  32026. };
  32027. /***/ }),
  32028. /***/ 2360:
  32029. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  32030. "use strict";
  32031. var formats = __nccwpck_require__(4907);
  32032. var has = Object.prototype.hasOwnProperty;
  32033. var isArray = Array.isArray;
  32034. var hexTable = (function () {
  32035. var array = [];
  32036. for (var i = 0; i < 256; ++i) {
  32037. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  32038. }
  32039. return array;
  32040. }());
  32041. var compactQueue = function compactQueue(queue) {
  32042. while (queue.length > 1) {
  32043. var item = queue.pop();
  32044. var obj = item.obj[item.prop];
  32045. if (isArray(obj)) {
  32046. var compacted = [];
  32047. for (var j = 0; j < obj.length; ++j) {
  32048. if (typeof obj[j] !== 'undefined') {
  32049. compacted.push(obj[j]);
  32050. }
  32051. }
  32052. item.obj[item.prop] = compacted;
  32053. }
  32054. }
  32055. };
  32056. var arrayToObject = function arrayToObject(source, options) {
  32057. var obj = options && options.plainObjects ? Object.create(null) : {};
  32058. for (var i = 0; i < source.length; ++i) {
  32059. if (typeof source[i] !== 'undefined') {
  32060. obj[i] = source[i];
  32061. }
  32062. }
  32063. return obj;
  32064. };
  32065. var merge = function merge(target, source, options) {
  32066. /* eslint no-param-reassign: 0 */
  32067. if (!source) {
  32068. return target;
  32069. }
  32070. if (typeof source !== 'object') {
  32071. if (isArray(target)) {
  32072. target.push(source);
  32073. } else if (target && typeof target === 'object') {
  32074. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  32075. target[source] = true;
  32076. }
  32077. } else {
  32078. return [target, source];
  32079. }
  32080. return target;
  32081. }
  32082. if (!target || typeof target !== 'object') {
  32083. return [target].concat(source);
  32084. }
  32085. var mergeTarget = target;
  32086. if (isArray(target) && !isArray(source)) {
  32087. mergeTarget = arrayToObject(target, options);
  32088. }
  32089. if (isArray(target) && isArray(source)) {
  32090. source.forEach(function (item, i) {
  32091. if (has.call(target, i)) {
  32092. var targetItem = target[i];
  32093. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  32094. target[i] = merge(targetItem, item, options);
  32095. } else {
  32096. target.push(item);
  32097. }
  32098. } else {
  32099. target[i] = item;
  32100. }
  32101. });
  32102. return target;
  32103. }
  32104. return Object.keys(source).reduce(function (acc, key) {
  32105. var value = source[key];
  32106. if (has.call(acc, key)) {
  32107. acc[key] = merge(acc[key], value, options);
  32108. } else {
  32109. acc[key] = value;
  32110. }
  32111. return acc;
  32112. }, mergeTarget);
  32113. };
  32114. var assign = function assignSingleSource(target, source) {
  32115. return Object.keys(source).reduce(function (acc, key) {
  32116. acc[key] = source[key];
  32117. return acc;
  32118. }, target);
  32119. };
  32120. var decode = function (str, decoder, charset) {
  32121. var strWithoutPlus = str.replace(/\+/g, ' ');
  32122. if (charset === 'iso-8859-1') {
  32123. // unescape never throws, no try...catch needed:
  32124. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  32125. }
  32126. // utf-8
  32127. try {
  32128. return decodeURIComponent(strWithoutPlus);
  32129. } catch (e) {
  32130. return strWithoutPlus;
  32131. }
  32132. };
  32133. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  32134. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  32135. // It has been adapted here for stricter adherence to RFC 3986
  32136. if (str.length === 0) {
  32137. return str;
  32138. }
  32139. var string = str;
  32140. if (typeof str === 'symbol') {
  32141. string = Symbol.prototype.toString.call(str);
  32142. } else if (typeof str !== 'string') {
  32143. string = String(str);
  32144. }
  32145. if (charset === 'iso-8859-1') {
  32146. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  32147. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  32148. });
  32149. }
  32150. var out = '';
  32151. for (var i = 0; i < string.length; ++i) {
  32152. var c = string.charCodeAt(i);
  32153. if (
  32154. c === 0x2D // -
  32155. || c === 0x2E // .
  32156. || c === 0x5F // _
  32157. || c === 0x7E // ~
  32158. || (c >= 0x30 && c <= 0x39) // 0-9
  32159. || (c >= 0x41 && c <= 0x5A) // a-z
  32160. || (c >= 0x61 && c <= 0x7A) // A-Z
  32161. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  32162. ) {
  32163. out += string.charAt(i);
  32164. continue;
  32165. }
  32166. if (c < 0x80) {
  32167. out = out + hexTable[c];
  32168. continue;
  32169. }
  32170. if (c < 0x800) {
  32171. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  32172. continue;
  32173. }
  32174. if (c < 0xD800 || c >= 0xE000) {
  32175. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  32176. continue;
  32177. }
  32178. i += 1;
  32179. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  32180. /* eslint operator-linebreak: [2, "before"] */
  32181. out += hexTable[0xF0 | (c >> 18)]
  32182. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  32183. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  32184. + hexTable[0x80 | (c & 0x3F)];
  32185. }
  32186. return out;
  32187. };
  32188. var compact = function compact(value) {
  32189. var queue = [{ obj: { o: value }, prop: 'o' }];
  32190. var refs = [];
  32191. for (var i = 0; i < queue.length; ++i) {
  32192. var item = queue[i];
  32193. var obj = item.obj[item.prop];
  32194. var keys = Object.keys(obj);
  32195. for (var j = 0; j < keys.length; ++j) {
  32196. var key = keys[j];
  32197. var val = obj[key];
  32198. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  32199. queue.push({ obj: obj, prop: key });
  32200. refs.push(val);
  32201. }
  32202. }
  32203. }
  32204. compactQueue(queue);
  32205. return value;
  32206. };
  32207. var isRegExp = function isRegExp(obj) {
  32208. return Object.prototype.toString.call(obj) === '[object RegExp]';
  32209. };
  32210. var isBuffer = function isBuffer(obj) {
  32211. if (!obj || typeof obj !== 'object') {
  32212. return false;
  32213. }
  32214. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  32215. };
  32216. var combine = function combine(a, b) {
  32217. return [].concat(a, b);
  32218. };
  32219. var maybeMap = function maybeMap(val, fn) {
  32220. if (isArray(val)) {
  32221. var mapped = [];
  32222. for (var i = 0; i < val.length; i += 1) {
  32223. mapped.push(fn(val[i]));
  32224. }
  32225. return mapped;
  32226. }
  32227. return fn(val);
  32228. };
  32229. module.exports = {
  32230. arrayToObject: arrayToObject,
  32231. assign: assign,
  32232. combine: combine,
  32233. compact: compact,
  32234. decode: decode,
  32235. encode: encode,
  32236. isBuffer: isBuffer,
  32237. isRegExp: isRegExp,
  32238. maybeMap: maybeMap,
  32239. merge: merge
  32240. };
  32241. /***/ }),
  32242. /***/ 5911:
  32243. /***/ ((module, exports) => {
  32244. exports = module.exports = SemVer
  32245. var debug
  32246. /* istanbul ignore next */
  32247. if (typeof process === 'object' &&
  32248. process.env &&
  32249. process.env.NODE_DEBUG &&
  32250. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  32251. debug = function () {
  32252. var args = Array.prototype.slice.call(arguments, 0)
  32253. args.unshift('SEMVER')
  32254. console.log.apply(console, args)
  32255. }
  32256. } else {
  32257. debug = function () {}
  32258. }
  32259. // Note: this is the semver.org version of the spec that it implements
  32260. // Not necessarily the package version of this code.
  32261. exports.SEMVER_SPEC_VERSION = '2.0.0'
  32262. var MAX_LENGTH = 256
  32263. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  32264. /* istanbul ignore next */ 9007199254740991
  32265. // Max safe segment length for coercion.
  32266. var MAX_SAFE_COMPONENT_LENGTH = 16
  32267. // The actual regexps go on exports.re
  32268. var re = exports.re = []
  32269. var src = exports.src = []
  32270. var R = 0
  32271. // The following Regular Expressions can be used for tokenizing,
  32272. // validating, and parsing SemVer version strings.
  32273. // ## Numeric Identifier
  32274. // A single `0`, or a non-zero digit followed by zero or more digits.
  32275. var NUMERICIDENTIFIER = R++
  32276. src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  32277. var NUMERICIDENTIFIERLOOSE = R++
  32278. src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  32279. // ## Non-numeric Identifier
  32280. // Zero or more digits, followed by a letter or hyphen, and then zero or
  32281. // more letters, digits, or hyphens.
  32282. var NONNUMERICIDENTIFIER = R++
  32283. src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  32284. // ## Main Version
  32285. // Three dot-separated numeric identifiers.
  32286. var MAINVERSION = R++
  32287. src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
  32288. '(' + src[NUMERICIDENTIFIER] + ')\\.' +
  32289. '(' + src[NUMERICIDENTIFIER] + ')'
  32290. var MAINVERSIONLOOSE = R++
  32291. src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
  32292. '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
  32293. '(' + src[NUMERICIDENTIFIERLOOSE] + ')'
  32294. // ## Pre-release Version Identifier
  32295. // A numeric identifier, or a non-numeric identifier.
  32296. var PRERELEASEIDENTIFIER = R++
  32297. src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
  32298. '|' + src[NONNUMERICIDENTIFIER] + ')'
  32299. var PRERELEASEIDENTIFIERLOOSE = R++
  32300. src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
  32301. '|' + src[NONNUMERICIDENTIFIER] + ')'
  32302. // ## Pre-release Version
  32303. // Hyphen, followed by one or more dot-separated pre-release version
  32304. // identifiers.
  32305. var PRERELEASE = R++
  32306. src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
  32307. '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))'
  32308. var PRERELEASELOOSE = R++
  32309. src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
  32310. '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))'
  32311. // ## Build Metadata Identifier
  32312. // Any combination of digits, letters, or hyphens.
  32313. var BUILDIDENTIFIER = R++
  32314. src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  32315. // ## Build Metadata
  32316. // Plus sign, followed by one or more period-separated build metadata
  32317. // identifiers.
  32318. var BUILD = R++
  32319. src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
  32320. '(?:\\.' + src[BUILDIDENTIFIER] + ')*))'
  32321. // ## Full Version String
  32322. // A main version, followed optionally by a pre-release version and
  32323. // build metadata.
  32324. // Note that the only major, minor, patch, and pre-release sections of
  32325. // the version string are capturing groups. The build metadata is not a
  32326. // capturing group, because it should not ever be used in version
  32327. // comparison.
  32328. var FULL = R++
  32329. var FULLPLAIN = 'v?' + src[MAINVERSION] +
  32330. src[PRERELEASE] + '?' +
  32331. src[BUILD] + '?'
  32332. src[FULL] = '^' + FULLPLAIN + '$'
  32333. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  32334. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  32335. // common in the npm registry.
  32336. var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
  32337. src[PRERELEASELOOSE] + '?' +
  32338. src[BUILD] + '?'
  32339. var LOOSE = R++
  32340. src[LOOSE] = '^' + LOOSEPLAIN + '$'
  32341. var GTLT = R++
  32342. src[GTLT] = '((?:<|>)?=?)'
  32343. // Something like "2.*" or "1.2.x".
  32344. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  32345. // Only the first item is strictly required.
  32346. var XRANGEIDENTIFIERLOOSE = R++
  32347. src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  32348. var XRANGEIDENTIFIER = R++
  32349. src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'
  32350. var XRANGEPLAIN = R++
  32351. src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
  32352. '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
  32353. '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
  32354. '(?:' + src[PRERELEASE] + ')?' +
  32355. src[BUILD] + '?' +
  32356. ')?)?'
  32357. var XRANGEPLAINLOOSE = R++
  32358. src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  32359. '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  32360. '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  32361. '(?:' + src[PRERELEASELOOSE] + ')?' +
  32362. src[BUILD] + '?' +
  32363. ')?)?'
  32364. var XRANGE = R++
  32365. src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'
  32366. var XRANGELOOSE = R++
  32367. src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'
  32368. // Coercion.
  32369. // Extract anything that could conceivably be a part of a valid semver
  32370. var COERCE = R++
  32371. src[COERCE] = '(?:^|[^\\d])' +
  32372. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  32373. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  32374. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  32375. '(?:$|[^\\d])'
  32376. // Tilde ranges.
  32377. // Meaning is "reasonably at or greater than"
  32378. var LONETILDE = R++
  32379. src[LONETILDE] = '(?:~>?)'
  32380. var TILDETRIM = R++
  32381. src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'
  32382. re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g')
  32383. var tildeTrimReplace = '$1~'
  32384. var TILDE = R++
  32385. src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'
  32386. var TILDELOOSE = R++
  32387. src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'
  32388. // Caret ranges.
  32389. // Meaning is "at least and backwards compatible with"
  32390. var LONECARET = R++
  32391. src[LONECARET] = '(?:\\^)'
  32392. var CARETTRIM = R++
  32393. src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'
  32394. re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g')
  32395. var caretTrimReplace = '$1^'
  32396. var CARET = R++
  32397. src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'
  32398. var CARETLOOSE = R++
  32399. src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'
  32400. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  32401. var COMPARATORLOOSE = R++
  32402. src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'
  32403. var COMPARATOR = R++
  32404. src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'
  32405. // An expression to strip any whitespace between the gtlt and the thing
  32406. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  32407. var COMPARATORTRIM = R++
  32408. src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
  32409. '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')'
  32410. // this one has to use the /g flag
  32411. re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g')
  32412. var comparatorTrimReplace = '$1$2$3'
  32413. // Something like `1.2.3 - 1.2.4`
  32414. // Note that these all use the loose form, because they'll be
  32415. // checked against either the strict or loose comparator form
  32416. // later.
  32417. var HYPHENRANGE = R++
  32418. src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
  32419. '\\s+-\\s+' +
  32420. '(' + src[XRANGEPLAIN] + ')' +
  32421. '\\s*$'
  32422. var HYPHENRANGELOOSE = R++
  32423. src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
  32424. '\\s+-\\s+' +
  32425. '(' + src[XRANGEPLAINLOOSE] + ')' +
  32426. '\\s*$'
  32427. // Star ranges basically just allow anything at all.
  32428. var STAR = R++
  32429. src[STAR] = '(<|>)?=?\\s*\\*'
  32430. // Compile to actual regexp objects.
  32431. // All are flag-free, unless they were created above with a flag.
  32432. for (var i = 0; i < R; i++) {
  32433. debug(i, src[i])
  32434. if (!re[i]) {
  32435. re[i] = new RegExp(src[i])
  32436. }
  32437. }
  32438. exports.parse = parse
  32439. function parse (version, options) {
  32440. if (!options || typeof options !== 'object') {
  32441. options = {
  32442. loose: !!options,
  32443. includePrerelease: false
  32444. }
  32445. }
  32446. if (version instanceof SemVer) {
  32447. return version
  32448. }
  32449. if (typeof version !== 'string') {
  32450. return null
  32451. }
  32452. if (version.length > MAX_LENGTH) {
  32453. return null
  32454. }
  32455. var r = options.loose ? re[LOOSE] : re[FULL]
  32456. if (!r.test(version)) {
  32457. return null
  32458. }
  32459. try {
  32460. return new SemVer(version, options)
  32461. } catch (er) {
  32462. return null
  32463. }
  32464. }
  32465. exports.valid = valid
  32466. function valid (version, options) {
  32467. var v = parse(version, options)
  32468. return v ? v.version : null
  32469. }
  32470. exports.clean = clean
  32471. function clean (version, options) {
  32472. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  32473. return s ? s.version : null
  32474. }
  32475. exports.SemVer = SemVer
  32476. function SemVer (version, options) {
  32477. if (!options || typeof options !== 'object') {
  32478. options = {
  32479. loose: !!options,
  32480. includePrerelease: false
  32481. }
  32482. }
  32483. if (version instanceof SemVer) {
  32484. if (version.loose === options.loose) {
  32485. return version
  32486. } else {
  32487. version = version.version
  32488. }
  32489. } else if (typeof version !== 'string') {
  32490. throw new TypeError('Invalid Version: ' + version)
  32491. }
  32492. if (version.length > MAX_LENGTH) {
  32493. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  32494. }
  32495. if (!(this instanceof SemVer)) {
  32496. return new SemVer(version, options)
  32497. }
  32498. debug('SemVer', version, options)
  32499. this.options = options
  32500. this.loose = !!options.loose
  32501. var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL])
  32502. if (!m) {
  32503. throw new TypeError('Invalid Version: ' + version)
  32504. }
  32505. this.raw = version
  32506. // these are actually numbers
  32507. this.major = +m[1]
  32508. this.minor = +m[2]
  32509. this.patch = +m[3]
  32510. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  32511. throw new TypeError('Invalid major version')
  32512. }
  32513. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  32514. throw new TypeError('Invalid minor version')
  32515. }
  32516. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  32517. throw new TypeError('Invalid patch version')
  32518. }
  32519. // numberify any prerelease numeric ids
  32520. if (!m[4]) {
  32521. this.prerelease = []
  32522. } else {
  32523. this.prerelease = m[4].split('.').map(function (id) {
  32524. if (/^[0-9]+$/.test(id)) {
  32525. var num = +id
  32526. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  32527. return num
  32528. }
  32529. }
  32530. return id
  32531. })
  32532. }
  32533. this.build = m[5] ? m[5].split('.') : []
  32534. this.format()
  32535. }
  32536. SemVer.prototype.format = function () {
  32537. this.version = this.major + '.' + this.minor + '.' + this.patch
  32538. if (this.prerelease.length) {
  32539. this.version += '-' + this.prerelease.join('.')
  32540. }
  32541. return this.version
  32542. }
  32543. SemVer.prototype.toString = function () {
  32544. return this.version
  32545. }
  32546. SemVer.prototype.compare = function (other) {
  32547. debug('SemVer.compare', this.version, this.options, other)
  32548. if (!(other instanceof SemVer)) {
  32549. other = new SemVer(other, this.options)
  32550. }
  32551. return this.compareMain(other) || this.comparePre(other)
  32552. }
  32553. SemVer.prototype.compareMain = function (other) {
  32554. if (!(other instanceof SemVer)) {
  32555. other = new SemVer(other, this.options)
  32556. }
  32557. return compareIdentifiers(this.major, other.major) ||
  32558. compareIdentifiers(this.minor, other.minor) ||
  32559. compareIdentifiers(this.patch, other.patch)
  32560. }
  32561. SemVer.prototype.comparePre = function (other) {
  32562. if (!(other instanceof SemVer)) {
  32563. other = new SemVer(other, this.options)
  32564. }
  32565. // NOT having a prerelease is > having one
  32566. if (this.prerelease.length && !other.prerelease.length) {
  32567. return -1
  32568. } else if (!this.prerelease.length && other.prerelease.length) {
  32569. return 1
  32570. } else if (!this.prerelease.length && !other.prerelease.length) {
  32571. return 0
  32572. }
  32573. var i = 0
  32574. do {
  32575. var a = this.prerelease[i]
  32576. var b = other.prerelease[i]
  32577. debug('prerelease compare', i, a, b)
  32578. if (a === undefined && b === undefined) {
  32579. return 0
  32580. } else if (b === undefined) {
  32581. return 1
  32582. } else if (a === undefined) {
  32583. return -1
  32584. } else if (a === b) {
  32585. continue
  32586. } else {
  32587. return compareIdentifiers(a, b)
  32588. }
  32589. } while (++i)
  32590. }
  32591. // preminor will bump the version up to the next minor release, and immediately
  32592. // down to pre-release. premajor and prepatch work the same way.
  32593. SemVer.prototype.inc = function (release, identifier) {
  32594. switch (release) {
  32595. case 'premajor':
  32596. this.prerelease.length = 0
  32597. this.patch = 0
  32598. this.minor = 0
  32599. this.major++
  32600. this.inc('pre', identifier)
  32601. break
  32602. case 'preminor':
  32603. this.prerelease.length = 0
  32604. this.patch = 0
  32605. this.minor++
  32606. this.inc('pre', identifier)
  32607. break
  32608. case 'prepatch':
  32609. // If this is already a prerelease, it will bump to the next version
  32610. // drop any prereleases that might already exist, since they are not
  32611. // relevant at this point.
  32612. this.prerelease.length = 0
  32613. this.inc('patch', identifier)
  32614. this.inc('pre', identifier)
  32615. break
  32616. // If the input is a non-prerelease version, this acts the same as
  32617. // prepatch.
  32618. case 'prerelease':
  32619. if (this.prerelease.length === 0) {
  32620. this.inc('patch', identifier)
  32621. }
  32622. this.inc('pre', identifier)
  32623. break
  32624. case 'major':
  32625. // If this is a pre-major version, bump up to the same major version.
  32626. // Otherwise increment major.
  32627. // 1.0.0-5 bumps to 1.0.0
  32628. // 1.1.0 bumps to 2.0.0
  32629. if (this.minor !== 0 ||
  32630. this.patch !== 0 ||
  32631. this.prerelease.length === 0) {
  32632. this.major++
  32633. }
  32634. this.minor = 0
  32635. this.patch = 0
  32636. this.prerelease = []
  32637. break
  32638. case 'minor':
  32639. // If this is a pre-minor version, bump up to the same minor version.
  32640. // Otherwise increment minor.
  32641. // 1.2.0-5 bumps to 1.2.0
  32642. // 1.2.1 bumps to 1.3.0
  32643. if (this.patch !== 0 || this.prerelease.length === 0) {
  32644. this.minor++
  32645. }
  32646. this.patch = 0
  32647. this.prerelease = []
  32648. break
  32649. case 'patch':
  32650. // If this is not a pre-release version, it will increment the patch.
  32651. // If it is a pre-release it will bump up to the same patch version.
  32652. // 1.2.0-5 patches to 1.2.0
  32653. // 1.2.0 patches to 1.2.1
  32654. if (this.prerelease.length === 0) {
  32655. this.patch++
  32656. }
  32657. this.prerelease = []
  32658. break
  32659. // This probably shouldn't be used publicly.
  32660. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  32661. case 'pre':
  32662. if (this.prerelease.length === 0) {
  32663. this.prerelease = [0]
  32664. } else {
  32665. var i = this.prerelease.length
  32666. while (--i >= 0) {
  32667. if (typeof this.prerelease[i] === 'number') {
  32668. this.prerelease[i]++
  32669. i = -2
  32670. }
  32671. }
  32672. if (i === -1) {
  32673. // didn't increment anything
  32674. this.prerelease.push(0)
  32675. }
  32676. }
  32677. if (identifier) {
  32678. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  32679. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  32680. if (this.prerelease[0] === identifier) {
  32681. if (isNaN(this.prerelease[1])) {
  32682. this.prerelease = [identifier, 0]
  32683. }
  32684. } else {
  32685. this.prerelease = [identifier, 0]
  32686. }
  32687. }
  32688. break
  32689. default:
  32690. throw new Error('invalid increment argument: ' + release)
  32691. }
  32692. this.format()
  32693. this.raw = this.version
  32694. return this
  32695. }
  32696. exports.inc = inc
  32697. function inc (version, release, loose, identifier) {
  32698. if (typeof (loose) === 'string') {
  32699. identifier = loose
  32700. loose = undefined
  32701. }
  32702. try {
  32703. return new SemVer(version, loose).inc(release, identifier).version
  32704. } catch (er) {
  32705. return null
  32706. }
  32707. }
  32708. exports.diff = diff
  32709. function diff (version1, version2) {
  32710. if (eq(version1, version2)) {
  32711. return null
  32712. } else {
  32713. var v1 = parse(version1)
  32714. var v2 = parse(version2)
  32715. var prefix = ''
  32716. if (v1.prerelease.length || v2.prerelease.length) {
  32717. prefix = 'pre'
  32718. var defaultResult = 'prerelease'
  32719. }
  32720. for (var key in v1) {
  32721. if (key === 'major' || key === 'minor' || key === 'patch') {
  32722. if (v1[key] !== v2[key]) {
  32723. return prefix + key
  32724. }
  32725. }
  32726. }
  32727. return defaultResult // may be undefined
  32728. }
  32729. }
  32730. exports.compareIdentifiers = compareIdentifiers
  32731. var numeric = /^[0-9]+$/
  32732. function compareIdentifiers (a, b) {
  32733. var anum = numeric.test(a)
  32734. var bnum = numeric.test(b)
  32735. if (anum && bnum) {
  32736. a = +a
  32737. b = +b
  32738. }
  32739. return a === b ? 0
  32740. : (anum && !bnum) ? -1
  32741. : (bnum && !anum) ? 1
  32742. : a < b ? -1
  32743. : 1
  32744. }
  32745. exports.rcompareIdentifiers = rcompareIdentifiers
  32746. function rcompareIdentifiers (a, b) {
  32747. return compareIdentifiers(b, a)
  32748. }
  32749. exports.major = major
  32750. function major (a, loose) {
  32751. return new SemVer(a, loose).major
  32752. }
  32753. exports.minor = minor
  32754. function minor (a, loose) {
  32755. return new SemVer(a, loose).minor
  32756. }
  32757. exports.patch = patch
  32758. function patch (a, loose) {
  32759. return new SemVer(a, loose).patch
  32760. }
  32761. exports.compare = compare
  32762. function compare (a, b, loose) {
  32763. return new SemVer(a, loose).compare(new SemVer(b, loose))
  32764. }
  32765. exports.compareLoose = compareLoose
  32766. function compareLoose (a, b) {
  32767. return compare(a, b, true)
  32768. }
  32769. exports.rcompare = rcompare
  32770. function rcompare (a, b, loose) {
  32771. return compare(b, a, loose)
  32772. }
  32773. exports.sort = sort
  32774. function sort (list, loose) {
  32775. return list.sort(function (a, b) {
  32776. return exports.compare(a, b, loose)
  32777. })
  32778. }
  32779. exports.rsort = rsort
  32780. function rsort (list, loose) {
  32781. return list.sort(function (a, b) {
  32782. return exports.rcompare(a, b, loose)
  32783. })
  32784. }
  32785. exports.gt = gt
  32786. function gt (a, b, loose) {
  32787. return compare(a, b, loose) > 0
  32788. }
  32789. exports.lt = lt
  32790. function lt (a, b, loose) {
  32791. return compare(a, b, loose) < 0
  32792. }
  32793. exports.eq = eq
  32794. function eq (a, b, loose) {
  32795. return compare(a, b, loose) === 0
  32796. }
  32797. exports.neq = neq
  32798. function neq (a, b, loose) {
  32799. return compare(a, b, loose) !== 0
  32800. }
  32801. exports.gte = gte
  32802. function gte (a, b, loose) {
  32803. return compare(a, b, loose) >= 0
  32804. }
  32805. exports.lte = lte
  32806. function lte (a, b, loose) {
  32807. return compare(a, b, loose) <= 0
  32808. }
  32809. exports.cmp = cmp
  32810. function cmp (a, op, b, loose) {
  32811. switch (op) {
  32812. case '===':
  32813. if (typeof a === 'object')
  32814. a = a.version
  32815. if (typeof b === 'object')
  32816. b = b.version
  32817. return a === b
  32818. case '!==':
  32819. if (typeof a === 'object')
  32820. a = a.version
  32821. if (typeof b === 'object')
  32822. b = b.version
  32823. return a !== b
  32824. case '':
  32825. case '=':
  32826. case '==':
  32827. return eq(a, b, loose)
  32828. case '!=':
  32829. return neq(a, b, loose)
  32830. case '>':
  32831. return gt(a, b, loose)
  32832. case '>=':
  32833. return gte(a, b, loose)
  32834. case '<':
  32835. return lt(a, b, loose)
  32836. case '<=':
  32837. return lte(a, b, loose)
  32838. default:
  32839. throw new TypeError('Invalid operator: ' + op)
  32840. }
  32841. }
  32842. exports.Comparator = Comparator
  32843. function Comparator (comp, options) {
  32844. if (!options || typeof options !== 'object') {
  32845. options = {
  32846. loose: !!options,
  32847. includePrerelease: false
  32848. }
  32849. }
  32850. if (comp instanceof Comparator) {
  32851. if (comp.loose === !!options.loose) {
  32852. return comp
  32853. } else {
  32854. comp = comp.value
  32855. }
  32856. }
  32857. if (!(this instanceof Comparator)) {
  32858. return new Comparator(comp, options)
  32859. }
  32860. debug('comparator', comp, options)
  32861. this.options = options
  32862. this.loose = !!options.loose
  32863. this.parse(comp)
  32864. if (this.semver === ANY) {
  32865. this.value = ''
  32866. } else {
  32867. this.value = this.operator + this.semver.version
  32868. }
  32869. debug('comp', this)
  32870. }
  32871. var ANY = {}
  32872. Comparator.prototype.parse = function (comp) {
  32873. var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
  32874. var m = comp.match(r)
  32875. if (!m) {
  32876. throw new TypeError('Invalid comparator: ' + comp)
  32877. }
  32878. this.operator = m[1]
  32879. if (this.operator === '=') {
  32880. this.operator = ''
  32881. }
  32882. // if it literally is just '>' or '' then allow anything.
  32883. if (!m[2]) {
  32884. this.semver = ANY
  32885. } else {
  32886. this.semver = new SemVer(m[2], this.options.loose)
  32887. }
  32888. }
  32889. Comparator.prototype.toString = function () {
  32890. return this.value
  32891. }
  32892. Comparator.prototype.test = function (version) {
  32893. debug('Comparator.test', version, this.options.loose)
  32894. if (this.semver === ANY) {
  32895. return true
  32896. }
  32897. if (typeof version === 'string') {
  32898. version = new SemVer(version, this.options)
  32899. }
  32900. return cmp(version, this.operator, this.semver, this.options)
  32901. }
  32902. Comparator.prototype.intersects = function (comp, options) {
  32903. if (!(comp instanceof Comparator)) {
  32904. throw new TypeError('a Comparator is required')
  32905. }
  32906. if (!options || typeof options !== 'object') {
  32907. options = {
  32908. loose: !!options,
  32909. includePrerelease: false
  32910. }
  32911. }
  32912. var rangeTmp
  32913. if (this.operator === '') {
  32914. rangeTmp = new Range(comp.value, options)
  32915. return satisfies(this.value, rangeTmp, options)
  32916. } else if (comp.operator === '') {
  32917. rangeTmp = new Range(this.value, options)
  32918. return satisfies(comp.semver, rangeTmp, options)
  32919. }
  32920. var sameDirectionIncreasing =
  32921. (this.operator === '>=' || this.operator === '>') &&
  32922. (comp.operator === '>=' || comp.operator === '>')
  32923. var sameDirectionDecreasing =
  32924. (this.operator === '<=' || this.operator === '<') &&
  32925. (comp.operator === '<=' || comp.operator === '<')
  32926. var sameSemVer = this.semver.version === comp.semver.version
  32927. var differentDirectionsInclusive =
  32928. (this.operator === '>=' || this.operator === '<=') &&
  32929. (comp.operator === '>=' || comp.operator === '<=')
  32930. var oppositeDirectionsLessThan =
  32931. cmp(this.semver, '<', comp.semver, options) &&
  32932. ((this.operator === '>=' || this.operator === '>') &&
  32933. (comp.operator === '<=' || comp.operator === '<'))
  32934. var oppositeDirectionsGreaterThan =
  32935. cmp(this.semver, '>', comp.semver, options) &&
  32936. ((this.operator === '<=' || this.operator === '<') &&
  32937. (comp.operator === '>=' || comp.operator === '>'))
  32938. return sameDirectionIncreasing || sameDirectionDecreasing ||
  32939. (sameSemVer && differentDirectionsInclusive) ||
  32940. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  32941. }
  32942. exports.Range = Range
  32943. function Range (range, options) {
  32944. if (!options || typeof options !== 'object') {
  32945. options = {
  32946. loose: !!options,
  32947. includePrerelease: false
  32948. }
  32949. }
  32950. if (range instanceof Range) {
  32951. if (range.loose === !!options.loose &&
  32952. range.includePrerelease === !!options.includePrerelease) {
  32953. return range
  32954. } else {
  32955. return new Range(range.raw, options)
  32956. }
  32957. }
  32958. if (range instanceof Comparator) {
  32959. return new Range(range.value, options)
  32960. }
  32961. if (!(this instanceof Range)) {
  32962. return new Range(range, options)
  32963. }
  32964. this.options = options
  32965. this.loose = !!options.loose
  32966. this.includePrerelease = !!options.includePrerelease
  32967. // First, split based on boolean or ||
  32968. this.raw = range
  32969. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  32970. return this.parseRange(range.trim())
  32971. }, this).filter(function (c) {
  32972. // throw out any that are not relevant for whatever reason
  32973. return c.length
  32974. })
  32975. if (!this.set.length) {
  32976. throw new TypeError('Invalid SemVer Range: ' + range)
  32977. }
  32978. this.format()
  32979. }
  32980. Range.prototype.format = function () {
  32981. this.range = this.set.map(function (comps) {
  32982. return comps.join(' ').trim()
  32983. }).join('||').trim()
  32984. return this.range
  32985. }
  32986. Range.prototype.toString = function () {
  32987. return this.range
  32988. }
  32989. Range.prototype.parseRange = function (range) {
  32990. var loose = this.options.loose
  32991. range = range.trim()
  32992. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  32993. var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]
  32994. range = range.replace(hr, hyphenReplace)
  32995. debug('hyphen replace', range)
  32996. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  32997. range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace)
  32998. debug('comparator trim', range, re[COMPARATORTRIM])
  32999. // `~ 1.2.3` => `~1.2.3`
  33000. range = range.replace(re[TILDETRIM], tildeTrimReplace)
  33001. // `^ 1.2.3` => `^1.2.3`
  33002. range = range.replace(re[CARETTRIM], caretTrimReplace)
  33003. // normalize spaces
  33004. range = range.split(/\s+/).join(' ')
  33005. // At this point, the range is completely trimmed and
  33006. // ready to be split into comparators.
  33007. var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
  33008. var set = range.split(' ').map(function (comp) {
  33009. return parseComparator(comp, this.options)
  33010. }, this).join(' ').split(/\s+/)
  33011. if (this.options.loose) {
  33012. // in loose mode, throw out any that are not valid comparators
  33013. set = set.filter(function (comp) {
  33014. return !!comp.match(compRe)
  33015. })
  33016. }
  33017. set = set.map(function (comp) {
  33018. return new Comparator(comp, this.options)
  33019. }, this)
  33020. return set
  33021. }
  33022. Range.prototype.intersects = function (range, options) {
  33023. if (!(range instanceof Range)) {
  33024. throw new TypeError('a Range is required')
  33025. }
  33026. return this.set.some(function (thisComparators) {
  33027. return thisComparators.every(function (thisComparator) {
  33028. return range.set.some(function (rangeComparators) {
  33029. return rangeComparators.every(function (rangeComparator) {
  33030. return thisComparator.intersects(rangeComparator, options)
  33031. })
  33032. })
  33033. })
  33034. })
  33035. }
  33036. // Mostly just for testing and legacy API reasons
  33037. exports.toComparators = toComparators
  33038. function toComparators (range, options) {
  33039. return new Range(range, options).set.map(function (comp) {
  33040. return comp.map(function (c) {
  33041. return c.value
  33042. }).join(' ').trim().split(' ')
  33043. })
  33044. }
  33045. // comprised of xranges, tildes, stars, and gtlt's at this point.
  33046. // already replaced the hyphen ranges
  33047. // turn into a set of JUST comparators.
  33048. function parseComparator (comp, options) {
  33049. debug('comp', comp, options)
  33050. comp = replaceCarets(comp, options)
  33051. debug('caret', comp)
  33052. comp = replaceTildes(comp, options)
  33053. debug('tildes', comp)
  33054. comp = replaceXRanges(comp, options)
  33055. debug('xrange', comp)
  33056. comp = replaceStars(comp, options)
  33057. debug('stars', comp)
  33058. return comp
  33059. }
  33060. function isX (id) {
  33061. return !id || id.toLowerCase() === 'x' || id === '*'
  33062. }
  33063. // ~, ~> --> * (any, kinda silly)
  33064. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  33065. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  33066. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  33067. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  33068. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  33069. function replaceTildes (comp, options) {
  33070. return comp.trim().split(/\s+/).map(function (comp) {
  33071. return replaceTilde(comp, options)
  33072. }).join(' ')
  33073. }
  33074. function replaceTilde (comp, options) {
  33075. var r = options.loose ? re[TILDELOOSE] : re[TILDE]
  33076. return comp.replace(r, function (_, M, m, p, pr) {
  33077. debug('tilde', comp, _, M, m, p, pr)
  33078. var ret
  33079. if (isX(M)) {
  33080. ret = ''
  33081. } else if (isX(m)) {
  33082. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  33083. } else if (isX(p)) {
  33084. // ~1.2 == >=1.2.0 <1.3.0
  33085. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  33086. } else if (pr) {
  33087. debug('replaceTilde pr', pr)
  33088. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  33089. ' <' + M + '.' + (+m + 1) + '.0'
  33090. } else {
  33091. // ~1.2.3 == >=1.2.3 <1.3.0
  33092. ret = '>=' + M + '.' + m + '.' + p +
  33093. ' <' + M + '.' + (+m + 1) + '.0'
  33094. }
  33095. debug('tilde return', ret)
  33096. return ret
  33097. })
  33098. }
  33099. // ^ --> * (any, kinda silly)
  33100. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  33101. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  33102. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  33103. // ^1.2.3 --> >=1.2.3 <2.0.0
  33104. // ^1.2.0 --> >=1.2.0 <2.0.0
  33105. function replaceCarets (comp, options) {
  33106. return comp.trim().split(/\s+/).map(function (comp) {
  33107. return replaceCaret(comp, options)
  33108. }).join(' ')
  33109. }
  33110. function replaceCaret (comp, options) {
  33111. debug('caret', comp, options)
  33112. var r = options.loose ? re[CARETLOOSE] : re[CARET]
  33113. return comp.replace(r, function (_, M, m, p, pr) {
  33114. debug('caret', comp, _, M, m, p, pr)
  33115. var ret
  33116. if (isX(M)) {
  33117. ret = ''
  33118. } else if (isX(m)) {
  33119. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  33120. } else if (isX(p)) {
  33121. if (M === '0') {
  33122. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  33123. } else {
  33124. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  33125. }
  33126. } else if (pr) {
  33127. debug('replaceCaret pr', pr)
  33128. if (M === '0') {
  33129. if (m === '0') {
  33130. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  33131. ' <' + M + '.' + m + '.' + (+p + 1)
  33132. } else {
  33133. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  33134. ' <' + M + '.' + (+m + 1) + '.0'
  33135. }
  33136. } else {
  33137. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  33138. ' <' + (+M + 1) + '.0.0'
  33139. }
  33140. } else {
  33141. debug('no pr')
  33142. if (M === '0') {
  33143. if (m === '0') {
  33144. ret = '>=' + M + '.' + m + '.' + p +
  33145. ' <' + M + '.' + m + '.' + (+p + 1)
  33146. } else {
  33147. ret = '>=' + M + '.' + m + '.' + p +
  33148. ' <' + M + '.' + (+m + 1) + '.0'
  33149. }
  33150. } else {
  33151. ret = '>=' + M + '.' + m + '.' + p +
  33152. ' <' + (+M + 1) + '.0.0'
  33153. }
  33154. }
  33155. debug('caret return', ret)
  33156. return ret
  33157. })
  33158. }
  33159. function replaceXRanges (comp, options) {
  33160. debug('replaceXRanges', comp, options)
  33161. return comp.split(/\s+/).map(function (comp) {
  33162. return replaceXRange(comp, options)
  33163. }).join(' ')
  33164. }
  33165. function replaceXRange (comp, options) {
  33166. comp = comp.trim()
  33167. var r = options.loose ? re[XRANGELOOSE] : re[XRANGE]
  33168. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  33169. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  33170. var xM = isX(M)
  33171. var xm = xM || isX(m)
  33172. var xp = xm || isX(p)
  33173. var anyX = xp
  33174. if (gtlt === '=' && anyX) {
  33175. gtlt = ''
  33176. }
  33177. if (xM) {
  33178. if (gtlt === '>' || gtlt === '<') {
  33179. // nothing is allowed
  33180. ret = '<0.0.0'
  33181. } else {
  33182. // nothing is forbidden
  33183. ret = '*'
  33184. }
  33185. } else if (gtlt && anyX) {
  33186. // we know patch is an x, because we have any x at all.
  33187. // replace X with 0
  33188. if (xm) {
  33189. m = 0
  33190. }
  33191. p = 0
  33192. if (gtlt === '>') {
  33193. // >1 => >=2.0.0
  33194. // >1.2 => >=1.3.0
  33195. // >1.2.3 => >= 1.2.4
  33196. gtlt = '>='
  33197. if (xm) {
  33198. M = +M + 1
  33199. m = 0
  33200. p = 0
  33201. } else {
  33202. m = +m + 1
  33203. p = 0
  33204. }
  33205. } else if (gtlt === '<=') {
  33206. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  33207. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  33208. gtlt = '<'
  33209. if (xm) {
  33210. M = +M + 1
  33211. } else {
  33212. m = +m + 1
  33213. }
  33214. }
  33215. ret = gtlt + M + '.' + m + '.' + p
  33216. } else if (xm) {
  33217. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  33218. } else if (xp) {
  33219. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  33220. }
  33221. debug('xRange return', ret)
  33222. return ret
  33223. })
  33224. }
  33225. // Because * is AND-ed with everything else in the comparator,
  33226. // and '' means "any version", just remove the *s entirely.
  33227. function replaceStars (comp, options) {
  33228. debug('replaceStars', comp, options)
  33229. // Looseness is ignored here. star is always as loose as it gets!
  33230. return comp.trim().replace(re[STAR], '')
  33231. }
  33232. // This function is passed to string.replace(re[HYPHENRANGE])
  33233. // M, m, patch, prerelease, build
  33234. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  33235. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  33236. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  33237. function hyphenReplace ($0,
  33238. from, fM, fm, fp, fpr, fb,
  33239. to, tM, tm, tp, tpr, tb) {
  33240. if (isX(fM)) {
  33241. from = ''
  33242. } else if (isX(fm)) {
  33243. from = '>=' + fM + '.0.0'
  33244. } else if (isX(fp)) {
  33245. from = '>=' + fM + '.' + fm + '.0'
  33246. } else {
  33247. from = '>=' + from
  33248. }
  33249. if (isX(tM)) {
  33250. to = ''
  33251. } else if (isX(tm)) {
  33252. to = '<' + (+tM + 1) + '.0.0'
  33253. } else if (isX(tp)) {
  33254. to = '<' + tM + '.' + (+tm + 1) + '.0'
  33255. } else if (tpr) {
  33256. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  33257. } else {
  33258. to = '<=' + to
  33259. }
  33260. return (from + ' ' + to).trim()
  33261. }
  33262. // if ANY of the sets match ALL of its comparators, then pass
  33263. Range.prototype.test = function (version) {
  33264. if (!version) {
  33265. return false
  33266. }
  33267. if (typeof version === 'string') {
  33268. version = new SemVer(version, this.options)
  33269. }
  33270. for (var i = 0; i < this.set.length; i++) {
  33271. if (testSet(this.set[i], version, this.options)) {
  33272. return true
  33273. }
  33274. }
  33275. return false
  33276. }
  33277. function testSet (set, version, options) {
  33278. for (var i = 0; i < set.length; i++) {
  33279. if (!set[i].test(version)) {
  33280. return false
  33281. }
  33282. }
  33283. if (version.prerelease.length && !options.includePrerelease) {
  33284. // Find the set of versions that are allowed to have prereleases
  33285. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  33286. // That should allow `1.2.3-pr.2` to pass.
  33287. // However, `1.2.4-alpha.notready` should NOT be allowed,
  33288. // even though it's within the range set by the comparators.
  33289. for (i = 0; i < set.length; i++) {
  33290. debug(set[i].semver)
  33291. if (set[i].semver === ANY) {
  33292. continue
  33293. }
  33294. if (set[i].semver.prerelease.length > 0) {
  33295. var allowed = set[i].semver
  33296. if (allowed.major === version.major &&
  33297. allowed.minor === version.minor &&
  33298. allowed.patch === version.patch) {
  33299. return true
  33300. }
  33301. }
  33302. }
  33303. // Version has a -pre, but it's not one of the ones we like.
  33304. return false
  33305. }
  33306. return true
  33307. }
  33308. exports.satisfies = satisfies
  33309. function satisfies (version, range, options) {
  33310. try {
  33311. range = new Range(range, options)
  33312. } catch (er) {
  33313. return false
  33314. }
  33315. return range.test(version)
  33316. }
  33317. exports.maxSatisfying = maxSatisfying
  33318. function maxSatisfying (versions, range, options) {
  33319. var max = null
  33320. var maxSV = null
  33321. try {
  33322. var rangeObj = new Range(range, options)
  33323. } catch (er) {
  33324. return null
  33325. }
  33326. versions.forEach(function (v) {
  33327. if (rangeObj.test(v)) {
  33328. // satisfies(v, range, options)
  33329. if (!max || maxSV.compare(v) === -1) {
  33330. // compare(max, v, true)
  33331. max = v
  33332. maxSV = new SemVer(max, options)
  33333. }
  33334. }
  33335. })
  33336. return max
  33337. }
  33338. exports.minSatisfying = minSatisfying
  33339. function minSatisfying (versions, range, options) {
  33340. var min = null
  33341. var minSV = null
  33342. try {
  33343. var rangeObj = new Range(range, options)
  33344. } catch (er) {
  33345. return null
  33346. }
  33347. versions.forEach(function (v) {
  33348. if (rangeObj.test(v)) {
  33349. // satisfies(v, range, options)
  33350. if (!min || minSV.compare(v) === 1) {
  33351. // compare(min, v, true)
  33352. min = v
  33353. minSV = new SemVer(min, options)
  33354. }
  33355. }
  33356. })
  33357. return min
  33358. }
  33359. exports.minVersion = minVersion
  33360. function minVersion (range, loose) {
  33361. range = new Range(range, loose)
  33362. var minver = new SemVer('0.0.0')
  33363. if (range.test(minver)) {
  33364. return minver
  33365. }
  33366. minver = new SemVer('0.0.0-0')
  33367. if (range.test(minver)) {
  33368. return minver
  33369. }
  33370. minver = null
  33371. for (var i = 0; i < range.set.length; ++i) {
  33372. var comparators = range.set[i]
  33373. comparators.forEach(function (comparator) {
  33374. // Clone to avoid manipulating the comparator's semver object.
  33375. var compver = new SemVer(comparator.semver.version)
  33376. switch (comparator.operator) {
  33377. case '>':
  33378. if (compver.prerelease.length === 0) {
  33379. compver.patch++
  33380. } else {
  33381. compver.prerelease.push(0)
  33382. }
  33383. compver.raw = compver.format()
  33384. /* fallthrough */
  33385. case '':
  33386. case '>=':
  33387. if (!minver || gt(minver, compver)) {
  33388. minver = compver
  33389. }
  33390. break
  33391. case '<':
  33392. case '<=':
  33393. /* Ignore maximum versions */
  33394. break
  33395. /* istanbul ignore next */
  33396. default:
  33397. throw new Error('Unexpected operation: ' + comparator.operator)
  33398. }
  33399. })
  33400. }
  33401. if (minver && range.test(minver)) {
  33402. return minver
  33403. }
  33404. return null
  33405. }
  33406. exports.validRange = validRange
  33407. function validRange (range, options) {
  33408. try {
  33409. // Return '*' instead of '' so that truthiness works.
  33410. // This will throw if it's invalid anyway
  33411. return new Range(range, options).range || '*'
  33412. } catch (er) {
  33413. return null
  33414. }
  33415. }
  33416. // Determine if version is less than all the versions possible in the range
  33417. exports.ltr = ltr
  33418. function ltr (version, range, options) {
  33419. return outside(version, range, '<', options)
  33420. }
  33421. // Determine if version is greater than all the versions possible in the range.
  33422. exports.gtr = gtr
  33423. function gtr (version, range, options) {
  33424. return outside(version, range, '>', options)
  33425. }
  33426. exports.outside = outside
  33427. function outside (version, range, hilo, options) {
  33428. version = new SemVer(version, options)
  33429. range = new Range(range, options)
  33430. var gtfn, ltefn, ltfn, comp, ecomp
  33431. switch (hilo) {
  33432. case '>':
  33433. gtfn = gt
  33434. ltefn = lte
  33435. ltfn = lt
  33436. comp = '>'
  33437. ecomp = '>='
  33438. break
  33439. case '<':
  33440. gtfn = lt
  33441. ltefn = gte
  33442. ltfn = gt
  33443. comp = '<'
  33444. ecomp = '<='
  33445. break
  33446. default:
  33447. throw new TypeError('Must provide a hilo val of "<" or ">"')
  33448. }
  33449. // If it satisifes the range it is not outside
  33450. if (satisfies(version, range, options)) {
  33451. return false
  33452. }
  33453. // From now on, variable terms are as if we're in "gtr" mode.
  33454. // but note that everything is flipped for the "ltr" function.
  33455. for (var i = 0; i < range.set.length; ++i) {
  33456. var comparators = range.set[i]
  33457. var high = null
  33458. var low = null
  33459. comparators.forEach(function (comparator) {
  33460. if (comparator.semver === ANY) {
  33461. comparator = new Comparator('>=0.0.0')
  33462. }
  33463. high = high || comparator
  33464. low = low || comparator
  33465. if (gtfn(comparator.semver, high.semver, options)) {
  33466. high = comparator
  33467. } else if (ltfn(comparator.semver, low.semver, options)) {
  33468. low = comparator
  33469. }
  33470. })
  33471. // If the edge version comparator has a operator then our version
  33472. // isn't outside it
  33473. if (high.operator === comp || high.operator === ecomp) {
  33474. return false
  33475. }
  33476. // If the lowest version comparator has an operator and our version
  33477. // is less than it then it isn't higher than the range
  33478. if ((!low.operator || low.operator === comp) &&
  33479. ltefn(version, low.semver)) {
  33480. return false
  33481. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  33482. return false
  33483. }
  33484. }
  33485. return true
  33486. }
  33487. exports.prerelease = prerelease
  33488. function prerelease (version, options) {
  33489. var parsed = parse(version, options)
  33490. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  33491. }
  33492. exports.intersects = intersects
  33493. function intersects (r1, r2, options) {
  33494. r1 = new Range(r1, options)
  33495. r2 = new Range(r2, options)
  33496. return r1.intersects(r2)
  33497. }
  33498. exports.coerce = coerce
  33499. function coerce (version) {
  33500. if (version instanceof SemVer) {
  33501. return version
  33502. }
  33503. if (typeof version !== 'string') {
  33504. return null
  33505. }
  33506. var match = version.match(re[COERCE])
  33507. if (match == null) {
  33508. return null
  33509. }
  33510. return parse(match[1] +
  33511. '.' + (match[2] || '0') +
  33512. '.' + (match[3] || '0'))
  33513. }
  33514. /***/ }),
  33515. /***/ 7032:
  33516. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33517. "use strict";
  33518. var shebangRegex = __nccwpck_require__(2638);
  33519. module.exports = function (str) {
  33520. var match = str.match(shebangRegex);
  33521. if (!match) {
  33522. return null;
  33523. }
  33524. var arr = match[0].replace(/#! ?/, '').split(' ');
  33525. var bin = arr[0].split('/').pop();
  33526. var arg = arr[1];
  33527. return (bin === 'env' ?
  33528. arg :
  33529. bin + (arg ? ' ' + arg : '')
  33530. );
  33531. };
  33532. /***/ }),
  33533. /***/ 2638:
  33534. /***/ ((module) => {
  33535. "use strict";
  33536. module.exports = /^#!.*/;
  33537. /***/ }),
  33538. /***/ 4334:
  33539. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33540. "use strict";
  33541. var GetIntrinsic = __nccwpck_require__(4538);
  33542. var callBound = __nccwpck_require__(8803);
  33543. var inspect = __nccwpck_require__(504);
  33544. var $TypeError = GetIntrinsic('%TypeError%');
  33545. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  33546. var $Map = GetIntrinsic('%Map%', true);
  33547. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  33548. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  33549. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  33550. var $mapGet = callBound('Map.prototype.get', true);
  33551. var $mapSet = callBound('Map.prototype.set', true);
  33552. var $mapHas = callBound('Map.prototype.has', true);
  33553. /*
  33554. * This function traverses the list returning the node corresponding to the
  33555. * given key.
  33556. *
  33557. * That node is also moved to the head of the list, so that if it's accessed
  33558. * again we don't need to traverse the whole list. By doing so, all the recently
  33559. * used nodes can be accessed relatively quickly.
  33560. */
  33561. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  33562. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  33563. if (curr.key === key) {
  33564. prev.next = curr.next;
  33565. curr.next = list.next;
  33566. list.next = curr; // eslint-disable-line no-param-reassign
  33567. return curr;
  33568. }
  33569. }
  33570. };
  33571. var listGet = function (objects, key) {
  33572. var node = listGetNode(objects, key);
  33573. return node && node.value;
  33574. };
  33575. var listSet = function (objects, key, value) {
  33576. var node = listGetNode(objects, key);
  33577. if (node) {
  33578. node.value = value;
  33579. } else {
  33580. // Prepend the new node to the beginning of the list
  33581. objects.next = { // eslint-disable-line no-param-reassign
  33582. key: key,
  33583. next: objects.next,
  33584. value: value
  33585. };
  33586. }
  33587. };
  33588. var listHas = function (objects, key) {
  33589. return !!listGetNode(objects, key);
  33590. };
  33591. module.exports = function getSideChannel() {
  33592. var $wm;
  33593. var $m;
  33594. var $o;
  33595. var channel = {
  33596. assert: function (key) {
  33597. if (!channel.has(key)) {
  33598. throw new $TypeError('Side channel does not contain ' + inspect(key));
  33599. }
  33600. },
  33601. get: function (key) { // eslint-disable-line consistent-return
  33602. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  33603. if ($wm) {
  33604. return $weakMapGet($wm, key);
  33605. }
  33606. } else if ($Map) {
  33607. if ($m) {
  33608. return $mapGet($m, key);
  33609. }
  33610. } else {
  33611. if ($o) { // eslint-disable-line no-lonely-if
  33612. return listGet($o, key);
  33613. }
  33614. }
  33615. },
  33616. has: function (key) {
  33617. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  33618. if ($wm) {
  33619. return $weakMapHas($wm, key);
  33620. }
  33621. } else if ($Map) {
  33622. if ($m) {
  33623. return $mapHas($m, key);
  33624. }
  33625. } else {
  33626. if ($o) { // eslint-disable-line no-lonely-if
  33627. return listHas($o, key);
  33628. }
  33629. }
  33630. return false;
  33631. },
  33632. set: function (key, value) {
  33633. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  33634. if (!$wm) {
  33635. $wm = new $WeakMap();
  33636. }
  33637. $weakMapSet($wm, key, value);
  33638. } else if ($Map) {
  33639. if (!$m) {
  33640. $m = new $Map();
  33641. }
  33642. $mapSet($m, key, value);
  33643. } else {
  33644. if (!$o) {
  33645. /*
  33646. * Initialize the linked list as an empty node, so that we don't have
  33647. * to special-case handling of the first node: we can always refer to
  33648. * it as (previous node).next, instead of something like (list).head
  33649. */
  33650. $o = { key: {}, next: null };
  33651. }
  33652. listSet($o, key, value);
  33653. }
  33654. }
  33655. };
  33656. return channel;
  33657. };
  33658. /***/ }),
  33659. /***/ 4931:
  33660. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33661. // Note: since nyc uses this module to output coverage, any lines
  33662. // that are in the direct sync flow of nyc's outputCoverage are
  33663. // ignored, since we can never get coverage for them.
  33664. var assert = __nccwpck_require__(9491)
  33665. var signals = __nccwpck_require__(3710)
  33666. var EE = __nccwpck_require__(2361)
  33667. /* istanbul ignore if */
  33668. if (typeof EE !== 'function') {
  33669. EE = EE.EventEmitter
  33670. }
  33671. var emitter
  33672. if (process.__signal_exit_emitter__) {
  33673. emitter = process.__signal_exit_emitter__
  33674. } else {
  33675. emitter = process.__signal_exit_emitter__ = new EE()
  33676. emitter.count = 0
  33677. emitter.emitted = {}
  33678. }
  33679. // Because this emitter is a global, we have to check to see if a
  33680. // previous version of this library failed to enable infinite listeners.
  33681. // I know what you're about to say. But literally everything about
  33682. // signal-exit is a compromise with evil. Get used to it.
  33683. if (!emitter.infinite) {
  33684. emitter.setMaxListeners(Infinity)
  33685. emitter.infinite = true
  33686. }
  33687. module.exports = function (cb, opts) {
  33688. assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
  33689. if (loaded === false) {
  33690. load()
  33691. }
  33692. var ev = 'exit'
  33693. if (opts && opts.alwaysLast) {
  33694. ev = 'afterexit'
  33695. }
  33696. var remove = function () {
  33697. emitter.removeListener(ev, cb)
  33698. if (emitter.listeners('exit').length === 0 &&
  33699. emitter.listeners('afterexit').length === 0) {
  33700. unload()
  33701. }
  33702. }
  33703. emitter.on(ev, cb)
  33704. return remove
  33705. }
  33706. module.exports.unload = unload
  33707. function unload () {
  33708. if (!loaded) {
  33709. return
  33710. }
  33711. loaded = false
  33712. signals.forEach(function (sig) {
  33713. try {
  33714. process.removeListener(sig, sigListeners[sig])
  33715. } catch (er) {}
  33716. })
  33717. process.emit = originalProcessEmit
  33718. process.reallyExit = originalProcessReallyExit
  33719. emitter.count -= 1
  33720. }
  33721. function emit (event, code, signal) {
  33722. if (emitter.emitted[event]) {
  33723. return
  33724. }
  33725. emitter.emitted[event] = true
  33726. emitter.emit(event, code, signal)
  33727. }
  33728. // { <signal>: <listener fn>, ... }
  33729. var sigListeners = {}
  33730. signals.forEach(function (sig) {
  33731. sigListeners[sig] = function listener () {
  33732. // If there are no other listeners, an exit is coming!
  33733. // Simplest way: remove us and then re-send the signal.
  33734. // We know that this will kill the process, so we can
  33735. // safely emit now.
  33736. var listeners = process.listeners(sig)
  33737. if (listeners.length === emitter.count) {
  33738. unload()
  33739. emit('exit', null, sig)
  33740. /* istanbul ignore next */
  33741. emit('afterexit', null, sig)
  33742. /* istanbul ignore next */
  33743. process.kill(process.pid, sig)
  33744. }
  33745. }
  33746. })
  33747. module.exports.signals = function () {
  33748. return signals
  33749. }
  33750. module.exports.load = load
  33751. var loaded = false
  33752. function load () {
  33753. if (loaded) {
  33754. return
  33755. }
  33756. loaded = true
  33757. // This is the number of onSignalExit's that are in play.
  33758. // It's important so that we can count the correct number of
  33759. // listeners on signals, and don't wait for the other one to
  33760. // handle it instead of us.
  33761. emitter.count += 1
  33762. signals = signals.filter(function (sig) {
  33763. try {
  33764. process.on(sig, sigListeners[sig])
  33765. return true
  33766. } catch (er) {
  33767. return false
  33768. }
  33769. })
  33770. process.emit = processEmit
  33771. process.reallyExit = processReallyExit
  33772. }
  33773. var originalProcessReallyExit = process.reallyExit
  33774. function processReallyExit (code) {
  33775. process.exitCode = code || 0
  33776. emit('exit', process.exitCode, null)
  33777. /* istanbul ignore next */
  33778. emit('afterexit', process.exitCode, null)
  33779. /* istanbul ignore next */
  33780. originalProcessReallyExit.call(process, process.exitCode)
  33781. }
  33782. var originalProcessEmit = process.emit
  33783. function processEmit (ev, arg) {
  33784. if (ev === 'exit') {
  33785. if (arg !== undefined) {
  33786. process.exitCode = arg
  33787. }
  33788. var ret = originalProcessEmit.apply(this, arguments)
  33789. emit('exit', process.exitCode, null)
  33790. /* istanbul ignore next */
  33791. emit('afterexit', process.exitCode, null)
  33792. return ret
  33793. } else {
  33794. return originalProcessEmit.apply(this, arguments)
  33795. }
  33796. }
  33797. /***/ }),
  33798. /***/ 3710:
  33799. /***/ ((module) => {
  33800. // This is not the set of all possible signals.
  33801. //
  33802. // It IS, however, the set of all signals that trigger
  33803. // an exit on either Linux or BSD systems. Linux is a
  33804. // superset of the signal names supported on BSD, and
  33805. // the unknown signals just fail to register, so we can
  33806. // catch that easily enough.
  33807. //
  33808. // Don't bother with SIGKILL. It's uncatchable, which
  33809. // means that we can't fire any callbacks anyway.
  33810. //
  33811. // If a user does happen to register a handler on a non-
  33812. // fatal signal like SIGWINCH or something, and then
  33813. // exit, it'll end up firing `process.emit('exit')`, so
  33814. // the handler will be fired anyway.
  33815. //
  33816. // SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
  33817. // artificially, inherently leave the process in a
  33818. // state from which it is not safe to try and enter JS
  33819. // listeners.
  33820. module.exports = [
  33821. 'SIGABRT',
  33822. 'SIGALRM',
  33823. 'SIGHUP',
  33824. 'SIGINT',
  33825. 'SIGTERM'
  33826. ]
  33827. if (process.platform !== 'win32') {
  33828. module.exports.push(
  33829. 'SIGVTALRM',
  33830. 'SIGXCPU',
  33831. 'SIGXFSZ',
  33832. 'SIGUSR2',
  33833. 'SIGTRAP',
  33834. 'SIGSYS',
  33835. 'SIGQUIT',
  33836. 'SIGIOT'
  33837. // should detect profiler and enable/disable accordingly.
  33838. // see #21
  33839. // 'SIGPROF'
  33840. )
  33841. }
  33842. if (process.platform === 'linux') {
  33843. module.exports.push(
  33844. 'SIGIO',
  33845. 'SIGPOLL',
  33846. 'SIGPWR',
  33847. 'SIGSTKFLT',
  33848. 'SIGUNUSED'
  33849. )
  33850. }
  33851. /***/ }),
  33852. /***/ 5515:
  33853. /***/ ((module) => {
  33854. "use strict";
  33855. module.exports = function (x) {
  33856. var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt();
  33857. var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt();
  33858. if (x[x.length - 1] === lf) {
  33859. x = x.slice(0, x.length - 1);
  33860. }
  33861. if (x[x.length - 1] === cr) {
  33862. x = x.slice(0, x.length - 1);
  33863. }
  33864. return x;
  33865. };
  33866. /***/ }),
  33867. /***/ 4294:
  33868. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33869. module.exports = __nccwpck_require__(4219);
  33870. /***/ }),
  33871. /***/ 4219:
  33872. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  33873. "use strict";
  33874. var net = __nccwpck_require__(1808);
  33875. var tls = __nccwpck_require__(4404);
  33876. var http = __nccwpck_require__(3685);
  33877. var https = __nccwpck_require__(5687);
  33878. var events = __nccwpck_require__(2361);
  33879. var assert = __nccwpck_require__(9491);
  33880. var util = __nccwpck_require__(3837);
  33881. exports.httpOverHttp = httpOverHttp;
  33882. exports.httpsOverHttp = httpsOverHttp;
  33883. exports.httpOverHttps = httpOverHttps;
  33884. exports.httpsOverHttps = httpsOverHttps;
  33885. function httpOverHttp(options) {
  33886. var agent = new TunnelingAgent(options);
  33887. agent.request = http.request;
  33888. return agent;
  33889. }
  33890. function httpsOverHttp(options) {
  33891. var agent = new TunnelingAgent(options);
  33892. agent.request = http.request;
  33893. agent.createSocket = createSecureSocket;
  33894. agent.defaultPort = 443;
  33895. return agent;
  33896. }
  33897. function httpOverHttps(options) {
  33898. var agent = new TunnelingAgent(options);
  33899. agent.request = https.request;
  33900. return agent;
  33901. }
  33902. function httpsOverHttps(options) {
  33903. var agent = new TunnelingAgent(options);
  33904. agent.request = https.request;
  33905. agent.createSocket = createSecureSocket;
  33906. agent.defaultPort = 443;
  33907. return agent;
  33908. }
  33909. function TunnelingAgent(options) {
  33910. var self = this;
  33911. self.options = options || {};
  33912. self.proxyOptions = self.options.proxy || {};
  33913. self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
  33914. self.requests = [];
  33915. self.sockets = [];
  33916. self.on('free', function onFree(socket, host, port, localAddress) {
  33917. var options = toOptions(host, port, localAddress);
  33918. for (var i = 0, len = self.requests.length; i < len; ++i) {
  33919. var pending = self.requests[i];
  33920. if (pending.host === options.host && pending.port === options.port) {
  33921. // Detect the request to connect same origin server,
  33922. // reuse the connection.
  33923. self.requests.splice(i, 1);
  33924. pending.request.onSocket(socket);
  33925. return;
  33926. }
  33927. }
  33928. socket.destroy();
  33929. self.removeSocket(socket);
  33930. });
  33931. }
  33932. util.inherits(TunnelingAgent, events.EventEmitter);
  33933. TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
  33934. var self = this;
  33935. var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
  33936. if (self.sockets.length >= this.maxSockets) {
  33937. // We are over limit so we'll add it to the queue.
  33938. self.requests.push(options);
  33939. return;
  33940. }
  33941. // If we are under maxSockets create a new one.
  33942. self.createSocket(options, function(socket) {
  33943. socket.on('free', onFree);
  33944. socket.on('close', onCloseOrRemove);
  33945. socket.on('agentRemove', onCloseOrRemove);
  33946. req.onSocket(socket);
  33947. function onFree() {
  33948. self.emit('free', socket, options);
  33949. }
  33950. function onCloseOrRemove(err) {
  33951. self.removeSocket(socket);
  33952. socket.removeListener('free', onFree);
  33953. socket.removeListener('close', onCloseOrRemove);
  33954. socket.removeListener('agentRemove', onCloseOrRemove);
  33955. }
  33956. });
  33957. };
  33958. TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
  33959. var self = this;
  33960. var placeholder = {};
  33961. self.sockets.push(placeholder);
  33962. var connectOptions = mergeOptions({}, self.proxyOptions, {
  33963. method: 'CONNECT',
  33964. path: options.host + ':' + options.port,
  33965. agent: false,
  33966. headers: {
  33967. host: options.host + ':' + options.port
  33968. }
  33969. });
  33970. if (options.localAddress) {
  33971. connectOptions.localAddress = options.localAddress;
  33972. }
  33973. if (connectOptions.proxyAuth) {
  33974. connectOptions.headers = connectOptions.headers || {};
  33975. connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
  33976. new Buffer(connectOptions.proxyAuth).toString('base64');
  33977. }
  33978. debug('making CONNECT request');
  33979. var connectReq = self.request(connectOptions);
  33980. connectReq.useChunkedEncodingByDefault = false; // for v0.6
  33981. connectReq.once('response', onResponse); // for v0.6
  33982. connectReq.once('upgrade', onUpgrade); // for v0.6
  33983. connectReq.once('connect', onConnect); // for v0.7 or later
  33984. connectReq.once('error', onError);
  33985. connectReq.end();
  33986. function onResponse(res) {
  33987. // Very hacky. This is necessary to avoid http-parser leaks.
  33988. res.upgrade = true;
  33989. }
  33990. function onUpgrade(res, socket, head) {
  33991. // Hacky.
  33992. process.nextTick(function() {
  33993. onConnect(res, socket, head);
  33994. });
  33995. }
  33996. function onConnect(res, socket, head) {
  33997. connectReq.removeAllListeners();
  33998. socket.removeAllListeners();
  33999. if (res.statusCode !== 200) {
  34000. debug('tunneling socket could not be established, statusCode=%d',
  34001. res.statusCode);
  34002. socket.destroy();
  34003. var error = new Error('tunneling socket could not be established, ' +
  34004. 'statusCode=' + res.statusCode);
  34005. error.code = 'ECONNRESET';
  34006. options.request.emit('error', error);
  34007. self.removeSocket(placeholder);
  34008. return;
  34009. }
  34010. if (head.length > 0) {
  34011. debug('got illegal response body from proxy');
  34012. socket.destroy();
  34013. var error = new Error('got illegal response body from proxy');
  34014. error.code = 'ECONNRESET';
  34015. options.request.emit('error', error);
  34016. self.removeSocket(placeholder);
  34017. return;
  34018. }
  34019. debug('tunneling connection has established');
  34020. self.sockets[self.sockets.indexOf(placeholder)] = socket;
  34021. return cb(socket);
  34022. }
  34023. function onError(cause) {
  34024. connectReq.removeAllListeners();
  34025. debug('tunneling socket could not be established, cause=%s\n',
  34026. cause.message, cause.stack);
  34027. var error = new Error('tunneling socket could not be established, ' +
  34028. 'cause=' + cause.message);
  34029. error.code = 'ECONNRESET';
  34030. options.request.emit('error', error);
  34031. self.removeSocket(placeholder);
  34032. }
  34033. };
  34034. TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
  34035. var pos = this.sockets.indexOf(socket)
  34036. if (pos === -1) {
  34037. return;
  34038. }
  34039. this.sockets.splice(pos, 1);
  34040. var pending = this.requests.shift();
  34041. if (pending) {
  34042. // If we have pending requests and a socket gets closed a new one
  34043. // needs to be created to take over in the pool for the one that closed.
  34044. this.createSocket(pending, function(socket) {
  34045. pending.request.onSocket(socket);
  34046. });
  34047. }
  34048. };
  34049. function createSecureSocket(options, cb) {
  34050. var self = this;
  34051. TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
  34052. var hostHeader = options.request.getHeader('host');
  34053. var tlsOptions = mergeOptions({}, self.options, {
  34054. socket: socket,
  34055. servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
  34056. });
  34057. // 0 is dummy port for v0.6
  34058. var secureSocket = tls.connect(0, tlsOptions);
  34059. self.sockets[self.sockets.indexOf(socket)] = secureSocket;
  34060. cb(secureSocket);
  34061. });
  34062. }
  34063. function toOptions(host, port, localAddress) {
  34064. if (typeof host === 'string') { // since v0.10
  34065. return {
  34066. host: host,
  34067. port: port,
  34068. localAddress: localAddress
  34069. };
  34070. }
  34071. return host; // for v0.11 or later
  34072. }
  34073. function mergeOptions(target) {
  34074. for (var i = 1, len = arguments.length; i < len; ++i) {
  34075. var overrides = arguments[i];
  34076. if (typeof overrides === 'object') {
  34077. var keys = Object.keys(overrides);
  34078. for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
  34079. var k = keys[j];
  34080. if (overrides[k] !== undefined) {
  34081. target[k] = overrides[k];
  34082. }
  34083. }
  34084. }
  34085. }
  34086. return target;
  34087. }
  34088. var debug;
  34089. if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
  34090. debug = function() {
  34091. var args = Array.prototype.slice.call(arguments);
  34092. if (typeof args[0] === 'string') {
  34093. args[0] = 'TUNNEL: ' + args[0];
  34094. } else {
  34095. args.unshift('TUNNEL:');
  34096. }
  34097. console.error.apply(console, args);
  34098. }
  34099. } else {
  34100. debug = function() {};
  34101. }
  34102. exports.debug = debug; // for test
  34103. /***/ }),
  34104. /***/ 5538:
  34105. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  34106. "use strict";
  34107. // Copyright (c) Microsoft. All rights reserved.
  34108. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  34109. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  34110. return new (P || (P = Promise))(function (resolve, reject) {
  34111. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  34112. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  34113. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  34114. step((generator = generator.apply(thisArg, _arguments || [])).next());
  34115. });
  34116. };
  34117. Object.defineProperty(exports, "__esModule", ({ value: true }));
  34118. const url = __nccwpck_require__(7310);
  34119. const http = __nccwpck_require__(3685);
  34120. const https = __nccwpck_require__(5687);
  34121. const util = __nccwpck_require__(9470);
  34122. let fs;
  34123. let tunnel;
  34124. var HttpCodes;
  34125. (function (HttpCodes) {
  34126. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  34127. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  34128. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  34129. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  34130. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  34131. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  34132. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  34133. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  34134. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  34135. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  34136. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  34137. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  34138. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  34139. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  34140. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  34141. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  34142. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  34143. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  34144. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  34145. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  34146. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  34147. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  34148. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  34149. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  34150. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  34151. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  34152. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  34153. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  34154. const HttpRedirectCodes = [HttpCodes.MovedPermanently, HttpCodes.ResourceMoved, HttpCodes.SeeOther, HttpCodes.TemporaryRedirect, HttpCodes.PermanentRedirect];
  34155. const HttpResponseRetryCodes = [HttpCodes.BadGateway, HttpCodes.ServiceUnavailable, HttpCodes.GatewayTimeout];
  34156. const NetworkRetryErrors = ['ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED'];
  34157. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  34158. const ExponentialBackoffCeiling = 10;
  34159. const ExponentialBackoffTimeSlice = 5;
  34160. class HttpClientResponse {
  34161. constructor(message) {
  34162. this.message = message;
  34163. }
  34164. readBody() {
  34165. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  34166. let buffer = Buffer.alloc(0);
  34167. const encodingCharset = util.obtainContentCharset(this);
  34168. // Extract Encoding from header: 'content-encoding'
  34169. // Match `gzip`, `gzip, deflate` variations of GZIP encoding
  34170. const contentEncoding = this.message.headers['content-encoding'] || '';
  34171. const isGzippedEncoded = new RegExp('(gzip$)|(gzip, *deflate)').test(contentEncoding);
  34172. this.message.on('data', function (data) {
  34173. const chunk = (typeof data === 'string') ? Buffer.from(data, encodingCharset) : data;
  34174. buffer = Buffer.concat([buffer, chunk]);
  34175. }).on('end', function () {
  34176. return __awaiter(this, void 0, void 0, function* () {
  34177. if (isGzippedEncoded) { // Process GZipped Response Body HERE
  34178. const gunzippedBody = yield util.decompressGzippedContent(buffer, encodingCharset);
  34179. resolve(gunzippedBody);
  34180. }
  34181. else {
  34182. resolve(buffer.toString(encodingCharset));
  34183. }
  34184. });
  34185. }).on('error', function (err) {
  34186. reject(err);
  34187. });
  34188. }));
  34189. }
  34190. }
  34191. exports.HttpClientResponse = HttpClientResponse;
  34192. function isHttps(requestUrl) {
  34193. let parsedUrl = url.parse(requestUrl);
  34194. return parsedUrl.protocol === 'https:';
  34195. }
  34196. exports.isHttps = isHttps;
  34197. var EnvironmentVariables;
  34198. (function (EnvironmentVariables) {
  34199. EnvironmentVariables["HTTP_PROXY"] = "HTTP_PROXY";
  34200. EnvironmentVariables["HTTPS_PROXY"] = "HTTPS_PROXY";
  34201. EnvironmentVariables["NO_PROXY"] = "NO_PROXY";
  34202. })(EnvironmentVariables || (EnvironmentVariables = {}));
  34203. class HttpClient {
  34204. constructor(userAgent, handlers, requestOptions) {
  34205. this._ignoreSslError = false;
  34206. this._allowRedirects = true;
  34207. this._allowRedirectDowngrade = false;
  34208. this._maxRedirects = 50;
  34209. this._allowRetries = false;
  34210. this._maxRetries = 1;
  34211. this._keepAlive = false;
  34212. this._disposed = false;
  34213. this.userAgent = userAgent;
  34214. this.handlers = handlers || [];
  34215. let no_proxy = process.env[EnvironmentVariables.NO_PROXY];
  34216. if (no_proxy) {
  34217. this._httpProxyBypassHosts = [];
  34218. no_proxy.split(',').forEach(bypass => {
  34219. this._httpProxyBypassHosts.push(util.buildProxyBypassRegexFromEnv(bypass));
  34220. });
  34221. }
  34222. this.requestOptions = requestOptions;
  34223. if (requestOptions) {
  34224. if (requestOptions.ignoreSslError != null) {
  34225. this._ignoreSslError = requestOptions.ignoreSslError;
  34226. }
  34227. this._socketTimeout = requestOptions.socketTimeout;
  34228. this._httpProxy = requestOptions.proxy;
  34229. if (requestOptions.proxy && requestOptions.proxy.proxyBypassHosts) {
  34230. this._httpProxyBypassHosts = [];
  34231. requestOptions.proxy.proxyBypassHosts.forEach(bypass => {
  34232. this._httpProxyBypassHosts.push(new RegExp(bypass, 'i'));
  34233. });
  34234. }
  34235. this._certConfig = requestOptions.cert;
  34236. if (this._certConfig) {
  34237. // If using cert, need fs
  34238. fs = __nccwpck_require__(7147);
  34239. // cache the cert content into memory, so we don't have to read it from disk every time
  34240. if (this._certConfig.caFile && fs.existsSync(this._certConfig.caFile)) {
  34241. this._ca = fs.readFileSync(this._certConfig.caFile, 'utf8');
  34242. }
  34243. if (this._certConfig.certFile && fs.existsSync(this._certConfig.certFile)) {
  34244. this._cert = fs.readFileSync(this._certConfig.certFile, 'utf8');
  34245. }
  34246. if (this._certConfig.keyFile && fs.existsSync(this._certConfig.keyFile)) {
  34247. this._key = fs.readFileSync(this._certConfig.keyFile, 'utf8');
  34248. }
  34249. }
  34250. if (requestOptions.allowRedirects != null) {
  34251. this._allowRedirects = requestOptions.allowRedirects;
  34252. }
  34253. if (requestOptions.allowRedirectDowngrade != null) {
  34254. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  34255. }
  34256. if (requestOptions.maxRedirects != null) {
  34257. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  34258. }
  34259. if (requestOptions.keepAlive != null) {
  34260. this._keepAlive = requestOptions.keepAlive;
  34261. }
  34262. if (requestOptions.allowRetries != null) {
  34263. this._allowRetries = requestOptions.allowRetries;
  34264. }
  34265. if (requestOptions.maxRetries != null) {
  34266. this._maxRetries = requestOptions.maxRetries;
  34267. }
  34268. }
  34269. }
  34270. options(requestUrl, additionalHeaders) {
  34271. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  34272. }
  34273. get(requestUrl, additionalHeaders) {
  34274. return this.request('GET', requestUrl, null, additionalHeaders || {});
  34275. }
  34276. del(requestUrl, additionalHeaders) {
  34277. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  34278. }
  34279. post(requestUrl, data, additionalHeaders) {
  34280. return this.request('POST', requestUrl, data, additionalHeaders || {});
  34281. }
  34282. patch(requestUrl, data, additionalHeaders) {
  34283. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  34284. }
  34285. put(requestUrl, data, additionalHeaders) {
  34286. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  34287. }
  34288. head(requestUrl, additionalHeaders) {
  34289. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  34290. }
  34291. sendStream(verb, requestUrl, stream, additionalHeaders) {
  34292. return this.request(verb, requestUrl, stream, additionalHeaders);
  34293. }
  34294. /**
  34295. * Makes a raw http request.
  34296. * All other methods such as get, post, patch, and request ultimately call this.
  34297. * Prefer get, del, post and patch
  34298. */
  34299. request(verb, requestUrl, data, headers) {
  34300. return __awaiter(this, void 0, void 0, function* () {
  34301. if (this._disposed) {
  34302. throw new Error("Client has already been disposed.");
  34303. }
  34304. let parsedUrl = url.parse(requestUrl);
  34305. let info = this._prepareRequest(verb, parsedUrl, headers);
  34306. // Only perform retries on reads since writes may not be idempotent.
  34307. let maxTries = (this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1) ? this._maxRetries + 1 : 1;
  34308. let numTries = 0;
  34309. let response;
  34310. while (numTries < maxTries) {
  34311. try {
  34312. response = yield this.requestRaw(info, data);
  34313. }
  34314. catch (err) {
  34315. numTries++;
  34316. if (err && err.code && NetworkRetryErrors.indexOf(err.code) > -1 && numTries < maxTries) {
  34317. yield this._performExponentialBackoff(numTries);
  34318. continue;
  34319. }
  34320. throw err;
  34321. }
  34322. // Check if it's an authentication challenge
  34323. if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) {
  34324. let authenticationHandler;
  34325. for (let i = 0; i < this.handlers.length; i++) {
  34326. if (this.handlers[i].canHandleAuthentication(response)) {
  34327. authenticationHandler = this.handlers[i];
  34328. break;
  34329. }
  34330. }
  34331. if (authenticationHandler) {
  34332. return authenticationHandler.handleAuthentication(this, info, data);
  34333. }
  34334. else {
  34335. // We have received an unauthorized response but have no handlers to handle it.
  34336. // Let the response return to the caller.
  34337. return response;
  34338. }
  34339. }
  34340. let redirectsRemaining = this._maxRedirects;
  34341. while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1
  34342. && this._allowRedirects
  34343. && redirectsRemaining > 0) {
  34344. const redirectUrl = response.message.headers["location"];
  34345. if (!redirectUrl) {
  34346. // if there's no location to redirect to, we won't
  34347. break;
  34348. }
  34349. let parsedRedirectUrl = url.parse(redirectUrl);
  34350. if (parsedUrl.protocol == 'https:' && parsedUrl.protocol != parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) {
  34351. 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.");
  34352. }
  34353. // we need to finish reading the response before reassigning response
  34354. // which will leak the open socket.
  34355. yield response.readBody();
  34356. // let's make the request with the new redirectUrl
  34357. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  34358. response = yield this.requestRaw(info, data);
  34359. redirectsRemaining--;
  34360. }
  34361. if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
  34362. // If not a retry code, return immediately instead of retrying
  34363. return response;
  34364. }
  34365. numTries += 1;
  34366. if (numTries < maxTries) {
  34367. yield response.readBody();
  34368. yield this._performExponentialBackoff(numTries);
  34369. }
  34370. }
  34371. return response;
  34372. });
  34373. }
  34374. /**
  34375. * Needs to be called if keepAlive is set to true in request options.
  34376. */
  34377. dispose() {
  34378. if (this._agent) {
  34379. this._agent.destroy();
  34380. }
  34381. this._disposed = true;
  34382. }
  34383. /**
  34384. * Raw request.
  34385. * @param info
  34386. * @param data
  34387. */
  34388. requestRaw(info, data) {
  34389. return new Promise((resolve, reject) => {
  34390. let callbackForResult = function (err, res) {
  34391. if (err) {
  34392. reject(err);
  34393. }
  34394. resolve(res);
  34395. };
  34396. this.requestRawWithCallback(info, data, callbackForResult);
  34397. });
  34398. }
  34399. /**
  34400. * Raw request with callback.
  34401. * @param info
  34402. * @param data
  34403. * @param onResult
  34404. */
  34405. requestRawWithCallback(info, data, onResult) {
  34406. let socket;
  34407. if (typeof (data) === 'string') {
  34408. info.options.headers["Content-Length"] = Buffer.byteLength(data, 'utf8');
  34409. }
  34410. let callbackCalled = false;
  34411. let handleResult = (err, res) => {
  34412. if (!callbackCalled) {
  34413. callbackCalled = true;
  34414. onResult(err, res);
  34415. }
  34416. };
  34417. let req = info.httpModule.request(info.options, (msg) => {
  34418. let res = new HttpClientResponse(msg);
  34419. handleResult(null, res);
  34420. });
  34421. req.on('socket', (sock) => {
  34422. socket = sock;
  34423. });
  34424. // If we ever get disconnected, we want the socket to timeout eventually
  34425. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  34426. if (socket) {
  34427. socket.destroy();
  34428. }
  34429. handleResult(new Error('Request timeout: ' + info.options.path), null);
  34430. });
  34431. req.on('error', function (err) {
  34432. // err has statusCode property
  34433. // res should have headers
  34434. handleResult(err, null);
  34435. });
  34436. if (data && typeof (data) === 'string') {
  34437. req.write(data, 'utf8');
  34438. }
  34439. if (data && typeof (data) !== 'string') {
  34440. data.on('close', function () {
  34441. req.end();
  34442. });
  34443. data.pipe(req);
  34444. }
  34445. else {
  34446. req.end();
  34447. }
  34448. }
  34449. _prepareRequest(method, requestUrl, headers) {
  34450. const info = {};
  34451. info.parsedUrl = requestUrl;
  34452. const usingSsl = info.parsedUrl.protocol === 'https:';
  34453. info.httpModule = usingSsl ? https : http;
  34454. const defaultPort = usingSsl ? 443 : 80;
  34455. info.options = {};
  34456. info.options.host = info.parsedUrl.hostname;
  34457. info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;
  34458. info.options.path = (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  34459. info.options.method = method;
  34460. info.options.timeout = (this.requestOptions && this.requestOptions.socketTimeout) || this._socketTimeout;
  34461. this._socketTimeout = info.options.timeout;
  34462. info.options.headers = this._mergeHeaders(headers);
  34463. if (this.userAgent != null) {
  34464. info.options.headers["user-agent"] = this.userAgent;
  34465. }
  34466. info.options.agent = this._getAgent(info.parsedUrl);
  34467. // gives handlers an opportunity to participate
  34468. if (this.handlers && !this._isPresigned(url.format(requestUrl))) {
  34469. this.handlers.forEach((handler) => {
  34470. handler.prepareRequest(info.options);
  34471. });
  34472. }
  34473. return info;
  34474. }
  34475. _isPresigned(requestUrl) {
  34476. if (this.requestOptions && this.requestOptions.presignedUrlPatterns) {
  34477. const patterns = this.requestOptions.presignedUrlPatterns;
  34478. for (let i = 0; i < patterns.length; i++) {
  34479. if (requestUrl.match(patterns[i])) {
  34480. return true;
  34481. }
  34482. }
  34483. }
  34484. return false;
  34485. }
  34486. _mergeHeaders(headers) {
  34487. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
  34488. if (this.requestOptions && this.requestOptions.headers) {
  34489. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
  34490. }
  34491. return lowercaseKeys(headers || {});
  34492. }
  34493. _getAgent(parsedUrl) {
  34494. let agent;
  34495. let proxy = this._getProxy(parsedUrl);
  34496. let useProxy = proxy.proxyUrl && proxy.proxyUrl.hostname && !this._isMatchInBypassProxyList(parsedUrl);
  34497. if (this._keepAlive && useProxy) {
  34498. agent = this._proxyAgent;
  34499. }
  34500. if (this._keepAlive && !useProxy) {
  34501. agent = this._agent;
  34502. }
  34503. // if agent is already assigned use that agent.
  34504. if (!!agent) {
  34505. return agent;
  34506. }
  34507. const usingSsl = parsedUrl.protocol === 'https:';
  34508. let maxSockets = 100;
  34509. if (!!this.requestOptions) {
  34510. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  34511. }
  34512. if (useProxy) {
  34513. // If using proxy, need tunnel
  34514. if (!tunnel) {
  34515. tunnel = __nccwpck_require__(4294);
  34516. }
  34517. const agentOptions = {
  34518. maxSockets: maxSockets,
  34519. keepAlive: this._keepAlive,
  34520. proxy: {
  34521. proxyAuth: proxy.proxyAuth,
  34522. host: proxy.proxyUrl.hostname,
  34523. port: proxy.proxyUrl.port
  34524. },
  34525. };
  34526. let tunnelAgent;
  34527. const overHttps = proxy.proxyUrl.protocol === 'https:';
  34528. if (usingSsl) {
  34529. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  34530. }
  34531. else {
  34532. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  34533. }
  34534. agent = tunnelAgent(agentOptions);
  34535. this._proxyAgent = agent;
  34536. }
  34537. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  34538. if (this._keepAlive && !agent) {
  34539. const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };
  34540. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  34541. this._agent = agent;
  34542. }
  34543. // if not using private agent and tunnel agent isn't setup then use global agent
  34544. if (!agent) {
  34545. agent = usingSsl ? https.globalAgent : http.globalAgent;
  34546. }
  34547. if (usingSsl && this._ignoreSslError) {
  34548. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  34549. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  34550. // we have to cast it to any and change it directly
  34551. agent.options = Object.assign(agent.options || {}, { rejectUnauthorized: false });
  34552. }
  34553. if (usingSsl && this._certConfig) {
  34554. agent.options = Object.assign(agent.options || {}, { ca: this._ca, cert: this._cert, key: this._key, passphrase: this._certConfig.passphrase });
  34555. }
  34556. return agent;
  34557. }
  34558. _getProxy(parsedUrl) {
  34559. let usingSsl = parsedUrl.protocol === 'https:';
  34560. let proxyConfig = this._httpProxy;
  34561. // fallback to http_proxy and https_proxy env
  34562. let https_proxy = process.env[EnvironmentVariables.HTTPS_PROXY];
  34563. let http_proxy = process.env[EnvironmentVariables.HTTP_PROXY];
  34564. if (!proxyConfig) {
  34565. if (https_proxy && usingSsl) {
  34566. proxyConfig = {
  34567. proxyUrl: https_proxy
  34568. };
  34569. }
  34570. else if (http_proxy) {
  34571. proxyConfig = {
  34572. proxyUrl: http_proxy
  34573. };
  34574. }
  34575. }
  34576. let proxyUrl;
  34577. let proxyAuth;
  34578. if (proxyConfig) {
  34579. if (proxyConfig.proxyUrl.length > 0) {
  34580. proxyUrl = url.parse(proxyConfig.proxyUrl);
  34581. }
  34582. if (proxyConfig.proxyUsername || proxyConfig.proxyPassword) {
  34583. proxyAuth = proxyConfig.proxyUsername + ":" + proxyConfig.proxyPassword;
  34584. }
  34585. }
  34586. return { proxyUrl: proxyUrl, proxyAuth: proxyAuth };
  34587. }
  34588. _isMatchInBypassProxyList(parsedUrl) {
  34589. if (!this._httpProxyBypassHosts) {
  34590. return false;
  34591. }
  34592. let bypass = false;
  34593. this._httpProxyBypassHosts.forEach(bypassHost => {
  34594. if (bypassHost.test(parsedUrl.href)) {
  34595. bypass = true;
  34596. }
  34597. });
  34598. return bypass;
  34599. }
  34600. _performExponentialBackoff(retryNumber) {
  34601. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  34602. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  34603. return new Promise(resolve => setTimeout(() => resolve(), ms));
  34604. }
  34605. }
  34606. exports.HttpClient = HttpClient;
  34607. /***/ }),
  34608. /***/ 9470:
  34609. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  34610. "use strict";
  34611. // Copyright (c) Microsoft. All rights reserved.
  34612. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  34613. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  34614. return new (P || (P = Promise))(function (resolve, reject) {
  34615. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  34616. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  34617. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  34618. step((generator = generator.apply(thisArg, _arguments || [])).next());
  34619. });
  34620. };
  34621. Object.defineProperty(exports, "__esModule", ({ value: true }));
  34622. const qs = __nccwpck_require__(2760);
  34623. const url = __nccwpck_require__(7310);
  34624. const path = __nccwpck_require__(1017);
  34625. const zlib = __nccwpck_require__(9796);
  34626. /**
  34627. * creates an url from a request url and optional base url (http://server:8080)
  34628. * @param {string} resource - a fully qualified url or relative path
  34629. * @param {string} baseUrl - an optional baseUrl (http://server:8080)
  34630. * @param {IRequestOptions} options - an optional options object, could include QueryParameters e.g.
  34631. * @return {string} - resultant url
  34632. */
  34633. function getUrl(resource, baseUrl, queryParams) {
  34634. const pathApi = path.posix || path;
  34635. let requestUrl = '';
  34636. if (!baseUrl) {
  34637. requestUrl = resource;
  34638. }
  34639. else if (!resource) {
  34640. requestUrl = baseUrl;
  34641. }
  34642. else {
  34643. const base = url.parse(baseUrl);
  34644. const resultantUrl = url.parse(resource);
  34645. // resource (specific per request) elements take priority
  34646. resultantUrl.protocol = resultantUrl.protocol || base.protocol;
  34647. resultantUrl.auth = resultantUrl.auth || base.auth;
  34648. resultantUrl.host = resultantUrl.host || base.host;
  34649. resultantUrl.pathname = pathApi.resolve(base.pathname, resultantUrl.pathname);
  34650. if (!resultantUrl.pathname.endsWith('/') && resource.endsWith('/')) {
  34651. resultantUrl.pathname += '/';
  34652. }
  34653. requestUrl = url.format(resultantUrl);
  34654. }
  34655. return queryParams ?
  34656. getUrlWithParsedQueryParams(requestUrl, queryParams) :
  34657. requestUrl;
  34658. }
  34659. exports.getUrl = getUrl;
  34660. /**
  34661. *
  34662. * @param {string} requestUrl
  34663. * @param {IRequestQueryParams} queryParams
  34664. * @return {string} - Request's URL with Query Parameters appended/parsed.
  34665. */
  34666. function getUrlWithParsedQueryParams(requestUrl, queryParams) {
  34667. const url = requestUrl.replace(/\?$/g, ''); // Clean any extra end-of-string "?" character
  34668. const parsedQueryParams = qs.stringify(queryParams.params, buildParamsStringifyOptions(queryParams));
  34669. return `${url}${parsedQueryParams}`;
  34670. }
  34671. /**
  34672. * Build options for QueryParams Stringifying.
  34673. *
  34674. * @param {IRequestQueryParams} queryParams
  34675. * @return {object}
  34676. */
  34677. function buildParamsStringifyOptions(queryParams) {
  34678. let options = {
  34679. addQueryPrefix: true,
  34680. delimiter: (queryParams.options || {}).separator || '&',
  34681. allowDots: (queryParams.options || {}).shouldAllowDots || false,
  34682. arrayFormat: (queryParams.options || {}).arrayFormat || 'repeat',
  34683. encodeValuesOnly: (queryParams.options || {}).shouldOnlyEncodeValues || true
  34684. };
  34685. return options;
  34686. }
  34687. /**
  34688. * Decompress/Decode gzip encoded JSON
  34689. * Using Node.js built-in zlib module
  34690. *
  34691. * @param {Buffer} buffer
  34692. * @param {string} charset? - optional; defaults to 'utf-8'
  34693. * @return {Promise<string>}
  34694. */
  34695. function decompressGzippedContent(buffer, charset) {
  34696. return __awaiter(this, void 0, void 0, function* () {
  34697. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  34698. zlib.gunzip(buffer, function (error, buffer) {
  34699. if (error) {
  34700. reject(error);
  34701. }
  34702. resolve(buffer.toString(charset || 'utf-8'));
  34703. });
  34704. }));
  34705. });
  34706. }
  34707. exports.decompressGzippedContent = decompressGzippedContent;
  34708. /**
  34709. * Builds a RegExp to test urls against for deciding
  34710. * wether to bypass proxy from an entry of the
  34711. * environment variable setting NO_PROXY
  34712. *
  34713. * @param {string} bypass
  34714. * @return {RegExp}
  34715. */
  34716. function buildProxyBypassRegexFromEnv(bypass) {
  34717. try {
  34718. // We need to keep this around for back-compat purposes
  34719. return new RegExp(bypass, 'i');
  34720. }
  34721. catch (err) {
  34722. if (err instanceof SyntaxError && (bypass || "").startsWith("*")) {
  34723. let wildcardEscaped = bypass.replace('*', '(.*)');
  34724. return new RegExp(wildcardEscaped, 'i');
  34725. }
  34726. throw err;
  34727. }
  34728. }
  34729. exports.buildProxyBypassRegexFromEnv = buildProxyBypassRegexFromEnv;
  34730. /**
  34731. * Obtain Response's Content Charset.
  34732. * Through inspecting `content-type` response header.
  34733. * It Returns 'utf-8' if NO charset specified/matched.
  34734. *
  34735. * @param {IHttpClientResponse} response
  34736. * @return {string} - Content Encoding Charset; Default=utf-8
  34737. */
  34738. function obtainContentCharset(response) {
  34739. // Find the charset, if specified.
  34740. // Search for the `charset=CHARSET` string, not including `;,\r\n`
  34741. // Example: content-type: 'application/json;charset=utf-8'
  34742. // |__ matches would be ['charset=utf-8', 'utf-8', index: 18, input: 'application/json; charset=utf-8']
  34743. // |_____ matches[1] would have the charset :tada: , in our example it's utf-8
  34744. // However, if the matches Array was empty or no charset found, 'utf-8' would be returned by default.
  34745. const nodeSupportedEncodings = ['ascii', 'utf8', 'utf16le', 'ucs2', 'base64', 'binary', 'hex'];
  34746. const contentType = response.message.headers['content-type'] || '';
  34747. const matches = contentType.match(/charset=([^;,\r\n]+)/i);
  34748. return (matches && matches[1] && nodeSupportedEncodings.indexOf(matches[1]) != -1) ? matches[1] : 'utf-8';
  34749. }
  34750. exports.obtainContentCharset = obtainContentCharset;
  34751. /***/ }),
  34752. /***/ 5030:
  34753. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  34754. "use strict";
  34755. Object.defineProperty(exports, "__esModule", ({ value: true }));
  34756. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  34757. var osName = _interopDefault(__nccwpck_require__(4824));
  34758. function getUserAgent() {
  34759. try {
  34760. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  34761. } catch (error) {
  34762. if (/wmic os get Caption/.test(error.message)) {
  34763. return "Windows <version undetectable>";
  34764. }
  34765. throw error;
  34766. }
  34767. }
  34768. exports.getUserAgent = getUserAgent;
  34769. //# sourceMappingURL=index.js.map
  34770. /***/ }),
  34771. /***/ 2707:
  34772. /***/ ((module) => {
  34773. /**
  34774. * Convert array of 16 byte values to UUID string format of the form:
  34775. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  34776. */
  34777. var byteToHex = [];
  34778. for (var i = 0; i < 256; ++i) {
  34779. byteToHex[i] = (i + 0x100).toString(16).substr(1);
  34780. }
  34781. function bytesToUuid(buf, offset) {
  34782. var i = offset || 0;
  34783. var bth = byteToHex;
  34784. // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
  34785. return ([bth[buf[i++]], bth[buf[i++]],
  34786. bth[buf[i++]], bth[buf[i++]], '-',
  34787. bth[buf[i++]], bth[buf[i++]], '-',
  34788. bth[buf[i++]], bth[buf[i++]], '-',
  34789. bth[buf[i++]], bth[buf[i++]], '-',
  34790. bth[buf[i++]], bth[buf[i++]],
  34791. bth[buf[i++]], bth[buf[i++]],
  34792. bth[buf[i++]], bth[buf[i++]]]).join('');
  34793. }
  34794. module.exports = bytesToUuid;
  34795. /***/ }),
  34796. /***/ 5859:
  34797. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34798. // Unique ID creation requires a high quality random # generator. In node.js
  34799. // this is pretty straight-forward - we use the crypto API.
  34800. var crypto = __nccwpck_require__(6113);
  34801. module.exports = function nodeRNG() {
  34802. return crypto.randomBytes(16);
  34803. };
  34804. /***/ }),
  34805. /***/ 824:
  34806. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34807. var rng = __nccwpck_require__(5859);
  34808. var bytesToUuid = __nccwpck_require__(2707);
  34809. function v4(options, buf, offset) {
  34810. var i = buf && offset || 0;
  34811. if (typeof(options) == 'string') {
  34812. buf = options === 'binary' ? new Array(16) : null;
  34813. options = null;
  34814. }
  34815. options = options || {};
  34816. var rnds = options.random || (options.rng || rng)();
  34817. // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  34818. rnds[6] = (rnds[6] & 0x0f) | 0x40;
  34819. rnds[8] = (rnds[8] & 0x3f) | 0x80;
  34820. // Copy bytes to buffer, if provided
  34821. if (buf) {
  34822. for (var ii = 0; ii < 16; ++ii) {
  34823. buf[i + ii] = rnds[ii];
  34824. }
  34825. }
  34826. return buf || bytesToUuid(rnds);
  34827. }
  34828. module.exports = v4;
  34829. /***/ }),
  34830. /***/ 4207:
  34831. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34832. module.exports = which
  34833. which.sync = whichSync
  34834. var isWindows = process.platform === 'win32' ||
  34835. process.env.OSTYPE === 'cygwin' ||
  34836. process.env.OSTYPE === 'msys'
  34837. var path = __nccwpck_require__(1017)
  34838. var COLON = isWindows ? ';' : ':'
  34839. var isexe = __nccwpck_require__(7126)
  34840. function getNotFoundError (cmd) {
  34841. var er = new Error('not found: ' + cmd)
  34842. er.code = 'ENOENT'
  34843. return er
  34844. }
  34845. function getPathInfo (cmd, opt) {
  34846. var colon = opt.colon || COLON
  34847. var pathEnv = opt.path || process.env.PATH || ''
  34848. var pathExt = ['']
  34849. pathEnv = pathEnv.split(colon)
  34850. var pathExtExe = ''
  34851. if (isWindows) {
  34852. pathEnv.unshift(process.cwd())
  34853. pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM')
  34854. pathExt = pathExtExe.split(colon)
  34855. // Always test the cmd itself first. isexe will check to make sure
  34856. // it's found in the pathExt set.
  34857. if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
  34858. pathExt.unshift('')
  34859. }
  34860. // If it has a slash, then we don't bother searching the pathenv.
  34861. // just check the file itself, and that's it.
  34862. if (cmd.match(/\//) || isWindows && cmd.match(/\\/))
  34863. pathEnv = ['']
  34864. return {
  34865. env: pathEnv,
  34866. ext: pathExt,
  34867. extExe: pathExtExe
  34868. }
  34869. }
  34870. function which (cmd, opt, cb) {
  34871. if (typeof opt === 'function') {
  34872. cb = opt
  34873. opt = {}
  34874. }
  34875. var info = getPathInfo(cmd, opt)
  34876. var pathEnv = info.env
  34877. var pathExt = info.ext
  34878. var pathExtExe = info.extExe
  34879. var found = []
  34880. ;(function F (i, l) {
  34881. if (i === l) {
  34882. if (opt.all && found.length)
  34883. return cb(null, found)
  34884. else
  34885. return cb(getNotFoundError(cmd))
  34886. }
  34887. var pathPart = pathEnv[i]
  34888. if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
  34889. pathPart = pathPart.slice(1, -1)
  34890. var p = path.join(pathPart, cmd)
  34891. if (!pathPart && (/^\.[\\\/]/).test(cmd)) {
  34892. p = cmd.slice(0, 2) + p
  34893. }
  34894. ;(function E (ii, ll) {
  34895. if (ii === ll) return F(i + 1, l)
  34896. var ext = pathExt[ii]
  34897. isexe(p + ext, { pathExt: pathExtExe }, function (er, is) {
  34898. if (!er && is) {
  34899. if (opt.all)
  34900. found.push(p + ext)
  34901. else
  34902. return cb(null, p + ext)
  34903. }
  34904. return E(ii + 1, ll)
  34905. })
  34906. })(0, pathExt.length)
  34907. })(0, pathEnv.length)
  34908. }
  34909. function whichSync (cmd, opt) {
  34910. opt = opt || {}
  34911. var info = getPathInfo(cmd, opt)
  34912. var pathEnv = info.env
  34913. var pathExt = info.ext
  34914. var pathExtExe = info.extExe
  34915. var found = []
  34916. for (var i = 0, l = pathEnv.length; i < l; i ++) {
  34917. var pathPart = pathEnv[i]
  34918. if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
  34919. pathPart = pathPart.slice(1, -1)
  34920. var p = path.join(pathPart, cmd)
  34921. if (!pathPart && /^\.[\\\/]/.test(cmd)) {
  34922. p = cmd.slice(0, 2) + p
  34923. }
  34924. for (var j = 0, ll = pathExt.length; j < ll; j ++) {
  34925. var cur = p + pathExt[j]
  34926. var is
  34927. try {
  34928. is = isexe.sync(cur, { pathExt: pathExtExe })
  34929. if (is) {
  34930. if (opt.all)
  34931. found.push(cur)
  34932. else
  34933. return cur
  34934. }
  34935. } catch (ex) {}
  34936. }
  34937. }
  34938. if (opt.all && found.length)
  34939. return found
  34940. if (opt.nothrow)
  34941. return null
  34942. throw getNotFoundError(cmd)
  34943. }
  34944. /***/ }),
  34945. /***/ 3515:
  34946. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34947. "use strict";
  34948. const os = __nccwpck_require__(2037);
  34949. const execa = __nccwpck_require__(5447);
  34950. // Reference: https://www.gaijin.at/en/lstwinver.php
  34951. const names = new Map([
  34952. ['10.0', '10'],
  34953. ['6.3', '8.1'],
  34954. ['6.2', '8'],
  34955. ['6.1', '7'],
  34956. ['6.0', 'Vista'],
  34957. ['5.2', 'Server 2003'],
  34958. ['5.1', 'XP'],
  34959. ['5.0', '2000'],
  34960. ['4.9', 'ME'],
  34961. ['4.1', '98'],
  34962. ['4.0', '95']
  34963. ]);
  34964. const windowsRelease = release => {
  34965. const version = /\d+\.\d/.exec(release || os.release());
  34966. if (release && !version) {
  34967. throw new Error('`release` argument doesn\'t match `n.n`');
  34968. }
  34969. const ver = (version || [])[0];
  34970. // Server 2008, 2012, 2016, and 2019 versions are ambiguous with desktop versions and must be detected at runtime.
  34971. // If `release` is omitted or we're on a Windows system, and the version number is an ambiguous version
  34972. // then use `wmic` to get the OS caption: https://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx
  34973. // If `wmic` is obsoloete (later versions of Windows 10), use PowerShell instead.
  34974. // If the resulting caption contains the year 2008, 2012, 2016 or 2019, it is a server version, so return a server OS name.
  34975. if ((!release || release === os.release()) && ['6.1', '6.2', '6.3', '10.0'].includes(ver)) {
  34976. let stdout;
  34977. try {
  34978. stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout || '';
  34979. } catch (_) {
  34980. stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || '';
  34981. }
  34982. const year = (stdout.match(/2008|2012|2016|2019/) || [])[0];
  34983. if (year) {
  34984. return `Server ${year}`;
  34985. }
  34986. }
  34987. return names.get(ver);
  34988. };
  34989. module.exports = windowsRelease;
  34990. /***/ }),
  34991. /***/ 2940:
  34992. /***/ ((module) => {
  34993. // Returns a wrapper function that returns a wrapped callback
  34994. // The wrapper function should do some stuff, and return a
  34995. // presumably different callback function.
  34996. // This makes sure that own properties are retained, so that
  34997. // decorations and such are not lost along the way.
  34998. module.exports = wrappy
  34999. function wrappy (fn, cb) {
  35000. if (fn && cb) return wrappy(fn)(cb)
  35001. if (typeof fn !== 'function')
  35002. throw new TypeError('need wrapper function')
  35003. Object.keys(fn).forEach(function (k) {
  35004. wrapper[k] = fn[k]
  35005. })
  35006. return wrapper
  35007. function wrapper() {
  35008. var args = new Array(arguments.length)
  35009. for (var i = 0; i < args.length; i++) {
  35010. args[i] = arguments[i]
  35011. }
  35012. var ret = fn.apply(this, args)
  35013. var cb = args[args.length-1]
  35014. if (typeof ret === 'function' && ret !== cb) {
  35015. Object.keys(cb).forEach(function (k) {
  35016. ret[k] = cb[k]
  35017. })
  35018. }
  35019. return ret
  35020. }
  35021. }
  35022. /***/ }),
  35023. /***/ 2877:
  35024. /***/ ((module) => {
  35025. module.exports = eval("require")("encoding");
  35026. /***/ }),
  35027. /***/ 9491:
  35028. /***/ ((module) => {
  35029. "use strict";
  35030. module.exports = require("assert");
  35031. /***/ }),
  35032. /***/ 2081:
  35033. /***/ ((module) => {
  35034. "use strict";
  35035. module.exports = require("child_process");
  35036. /***/ }),
  35037. /***/ 6113:
  35038. /***/ ((module) => {
  35039. "use strict";
  35040. module.exports = require("crypto");
  35041. /***/ }),
  35042. /***/ 2361:
  35043. /***/ ((module) => {
  35044. "use strict";
  35045. module.exports = require("events");
  35046. /***/ }),
  35047. /***/ 7147:
  35048. /***/ ((module) => {
  35049. "use strict";
  35050. module.exports = require("fs");
  35051. /***/ }),
  35052. /***/ 3685:
  35053. /***/ ((module) => {
  35054. "use strict";
  35055. module.exports = require("http");
  35056. /***/ }),
  35057. /***/ 5687:
  35058. /***/ ((module) => {
  35059. "use strict";
  35060. module.exports = require("https");
  35061. /***/ }),
  35062. /***/ 1808:
  35063. /***/ ((module) => {
  35064. "use strict";
  35065. module.exports = require("net");
  35066. /***/ }),
  35067. /***/ 2037:
  35068. /***/ ((module) => {
  35069. "use strict";
  35070. module.exports = require("os");
  35071. /***/ }),
  35072. /***/ 1017:
  35073. /***/ ((module) => {
  35074. "use strict";
  35075. module.exports = require("path");
  35076. /***/ }),
  35077. /***/ 5477:
  35078. /***/ ((module) => {
  35079. "use strict";
  35080. module.exports = require("punycode");
  35081. /***/ }),
  35082. /***/ 2781:
  35083. /***/ ((module) => {
  35084. "use strict";
  35085. module.exports = require("stream");
  35086. /***/ }),
  35087. /***/ 4404:
  35088. /***/ ((module) => {
  35089. "use strict";
  35090. module.exports = require("tls");
  35091. /***/ }),
  35092. /***/ 7310:
  35093. /***/ ((module) => {
  35094. "use strict";
  35095. module.exports = require("url");
  35096. /***/ }),
  35097. /***/ 3837:
  35098. /***/ ((module) => {
  35099. "use strict";
  35100. module.exports = require("util");
  35101. /***/ }),
  35102. /***/ 9796:
  35103. /***/ ((module) => {
  35104. "use strict";
  35105. module.exports = require("zlib");
  35106. /***/ }),
  35107. /***/ 1322:
  35108. /***/ ((module) => {
  35109. "use strict";
  35110. module.exports = JSON.parse('{"name":"@octokit/rest","version":"16.43.1","publishConfig":{"access":"public"},"description":"GitHub REST API client for Node.js","keywords":["octokit","github","rest","api-client"],"author":"Gregor Martynus (https://github.com/gr2m)","contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"name":"Gregor Martynus","url":"https://github.com/gr2m"}],"repository":"https://github.com/octokit/rest.js","dependencies":{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0","deprecation":"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0","once":"^1.4.0","universal-user-agent":"^4.0.0"},"devDependencies":{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0","bundlesize":"^0.18.0","chai":"^4.1.2","compression-webpack-plugin":"^3.1.0","cypress":"^3.0.0","glob":"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1","lolex":"^5.1.2","mkdirp":"^1.0.0","mocha":"^7.0.1","mustache":"^4.0.0","nock":"^11.3.3","npm-run-all":"^4.1.2","nyc":"^15.0.0","prettier":"^1.14.2","proxy":"^1.0.0","semantic-release":"^17.0.0","sinon":"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0","typescript":"^3.3.1","webpack":"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},"types":"index.d.ts","scripts":{"coverage":"nyc report --reporter=html && open coverage/index.html","lint":"prettier --check \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","lint:fix":"prettier --write \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","pretest":"npm run -s lint","test":"nyc mocha test/mocha-node-setup.js \\"test/*/**/*-test.js\\"","test:browser":"cypress run --browser chrome","build":"npm-run-all build:*","build:ts":"npm run -s update-endpoints:typescript","prebuild:browser":"mkdirp dist/","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","prevalidate:ts":"npm run -s build:ts","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","start-fixtures-server":"octokit-fixtures-server"},"license":"MIT","files":["index.js","index.d.ts","lib","plugins"],"nyc":{"ignore":["test"]},"release":{"publish":["@semantic-release/npm",{"path":"@semantic-release/github","assets":["dist/*","!dist/*.map.gz"]}]},"bundlesize":[{"path":"./dist/octokit-rest.min.js.gz","maxSize":"33 kB"}]}');
  35111. /***/ }),
  35112. /***/ 1907:
  35113. /***/ ((module) => {
  35114. "use strict";
  35115. 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"]]');
  35116. /***/ })
  35117. /******/ });
  35118. /************************************************************************/
  35119. /******/ // The module cache
  35120. /******/ var __webpack_module_cache__ = {};
  35121. /******/
  35122. /******/ // The require function
  35123. /******/ function __nccwpck_require__(moduleId) {
  35124. /******/ // Check if module is in cache
  35125. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  35126. /******/ if (cachedModule !== undefined) {
  35127. /******/ return cachedModule.exports;
  35128. /******/ }
  35129. /******/ // Create a new module (and put it into the cache)
  35130. /******/ var module = __webpack_module_cache__[moduleId] = {
  35131. /******/ // no module.id needed
  35132. /******/ // no module.loaded needed
  35133. /******/ exports: {}
  35134. /******/ };
  35135. /******/
  35136. /******/ // Execute the module function
  35137. /******/ var threw = true;
  35138. /******/ try {
  35139. /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__);
  35140. /******/ threw = false;
  35141. /******/ } finally {
  35142. /******/ if(threw) delete __webpack_module_cache__[moduleId];
  35143. /******/ }
  35144. /******/
  35145. /******/ // Return the exports of the module
  35146. /******/ return module.exports;
  35147. /******/ }
  35148. /******/
  35149. /************************************************************************/
  35150. /******/ /* webpack/runtime/compat */
  35151. /******/
  35152. /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
  35153. /******/
  35154. /************************************************************************/
  35155. /******/
  35156. /******/ // startup
  35157. /******/ // Load entry module and return exports
  35158. /******/ // This entry module is referenced by other modules so it can't be inlined
  35159. /******/ var __webpack_exports__ = __nccwpck_require__(3109);
  35160. /******/ module.exports = __webpack_exports__;
  35161. /******/
  35162. /******/ })()
  35163. ;