swagger-ui-bundle.js 2.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298
  1. /*! For license information please see swagger-ui-bundle.js.LICENSE.txt */
  2. !(function webpackUniversalModuleDefinition(s, o) {
  3. 'object' == typeof exports && 'object' == typeof module
  4. ? (module.exports = o())
  5. : 'function' == typeof define && define.amd
  6. ? define([], o)
  7. : 'object' == typeof exports
  8. ? (exports.SwaggerUIBundle = o())
  9. : (s.SwaggerUIBundle = o());
  10. })(this, () =>
  11. (() => {
  12. var s,
  13. o,
  14. i = {
  15. 69119: (s, o) => {
  16. 'use strict';
  17. Object.defineProperty(o, '__esModule', { value: !0 }),
  18. (o.BLANK_URL =
  19. o.relativeFirstCharacters =
  20. o.whitespaceEscapeCharsRegex =
  21. o.urlSchemeRegex =
  22. o.ctrlCharactersRegex =
  23. o.htmlCtrlEntityRegex =
  24. o.htmlEntitiesRegex =
  25. o.invalidProtocolRegex =
  26. void 0),
  27. (o.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im),
  28. (o.htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g),
  29. (o.htmlCtrlEntityRegex = /&(newline|tab);/gi),
  30. (o.ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim),
  31. (o.urlSchemeRegex = /^.+(:|:)/gim),
  32. (o.whitespaceEscapeCharsRegex = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g),
  33. (o.relativeFirstCharacters = ['.', '/']),
  34. (o.BLANK_URL = 'about:blank');
  35. },
  36. 16750: (s, o, i) => {
  37. 'use strict';
  38. o.J = void 0;
  39. var u = i(69119);
  40. function decodeURI(s) {
  41. try {
  42. return decodeURIComponent(s);
  43. } catch (o) {
  44. return s;
  45. }
  46. }
  47. o.J = function sanitizeUrl(s) {
  48. if (!s) return u.BLANK_URL;
  49. var o,
  50. i,
  51. _ = decodeURI(s);
  52. do {
  53. o =
  54. (_ = decodeURI(
  55. (_ = ((i = _),
  56. i
  57. .replace(u.ctrlCharactersRegex, '')
  58. .replace(u.htmlEntitiesRegex, function (s, o) {
  59. return String.fromCharCode(o);
  60. }))
  61. .replace(u.htmlCtrlEntityRegex, '')
  62. .replace(u.ctrlCharactersRegex, '')
  63. .replace(u.whitespaceEscapeCharsRegex, '')
  64. .trim())
  65. )).match(u.ctrlCharactersRegex) ||
  66. _.match(u.htmlEntitiesRegex) ||
  67. _.match(u.htmlCtrlEntityRegex) ||
  68. _.match(u.whitespaceEscapeCharsRegex);
  69. } while (o && o.length > 0);
  70. var w = _;
  71. if (!w) return u.BLANK_URL;
  72. if (
  73. (function isRelativeUrlWithoutProtocol(s) {
  74. return u.relativeFirstCharacters.indexOf(s[0]) > -1;
  75. })(w)
  76. )
  77. return w;
  78. var x = w.match(u.urlSchemeRegex);
  79. if (!x) return w;
  80. var C = x[0];
  81. return u.invalidProtocolRegex.test(C) ? u.BLANK_URL : w;
  82. };
  83. },
  84. 67526: (s, o) => {
  85. 'use strict';
  86. (o.byteLength = function byteLength(s) {
  87. var o = getLens(s),
  88. i = o[0],
  89. u = o[1];
  90. return (3 * (i + u)) / 4 - u;
  91. }),
  92. (o.toByteArray = function toByteArray(s) {
  93. var o,
  94. i,
  95. w = getLens(s),
  96. x = w[0],
  97. C = w[1],
  98. j = new _(
  99. (function _byteLength(s, o, i) {
  100. return (3 * (o + i)) / 4 - i;
  101. })(0, x, C)
  102. ),
  103. L = 0,
  104. B = C > 0 ? x - 4 : x;
  105. for (i = 0; i < B; i += 4)
  106. (o =
  107. (u[s.charCodeAt(i)] << 18) |
  108. (u[s.charCodeAt(i + 1)] << 12) |
  109. (u[s.charCodeAt(i + 2)] << 6) |
  110. u[s.charCodeAt(i + 3)]),
  111. (j[L++] = (o >> 16) & 255),
  112. (j[L++] = (o >> 8) & 255),
  113. (j[L++] = 255 & o);
  114. 2 === C &&
  115. ((o = (u[s.charCodeAt(i)] << 2) | (u[s.charCodeAt(i + 1)] >> 4)),
  116. (j[L++] = 255 & o));
  117. 1 === C &&
  118. ((o =
  119. (u[s.charCodeAt(i)] << 10) |
  120. (u[s.charCodeAt(i + 1)] << 4) |
  121. (u[s.charCodeAt(i + 2)] >> 2)),
  122. (j[L++] = (o >> 8) & 255),
  123. (j[L++] = 255 & o));
  124. return j;
  125. }),
  126. (o.fromByteArray = function fromByteArray(s) {
  127. for (
  128. var o, u = s.length, _ = u % 3, w = [], x = 16383, C = 0, j = u - _;
  129. C < j;
  130. C += x
  131. )
  132. w.push(encodeChunk(s, C, C + x > j ? j : C + x));
  133. 1 === _
  134. ? ((o = s[u - 1]), w.push(i[o >> 2] + i[(o << 4) & 63] + '=='))
  135. : 2 === _ &&
  136. ((o = (s[u - 2] << 8) + s[u - 1]),
  137. w.push(i[o >> 10] + i[(o >> 4) & 63] + i[(o << 2) & 63] + '='));
  138. return w.join('');
  139. });
  140. for (
  141. var i = [],
  142. u = [],
  143. _ = 'undefined' != typeof Uint8Array ? Uint8Array : Array,
  144. w = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
  145. x = 0;
  146. x < 64;
  147. ++x
  148. )
  149. (i[x] = w[x]), (u[w.charCodeAt(x)] = x);
  150. function getLens(s) {
  151. var o = s.length;
  152. if (o % 4 > 0) throw new Error('Invalid string. Length must be a multiple of 4');
  153. var i = s.indexOf('=');
  154. return -1 === i && (i = o), [i, i === o ? 0 : 4 - (i % 4)];
  155. }
  156. function encodeChunk(s, o, u) {
  157. for (var _, w, x = [], C = o; C < u; C += 3)
  158. (_ = ((s[C] << 16) & 16711680) + ((s[C + 1] << 8) & 65280) + (255 & s[C + 2])),
  159. x.push(i[((w = _) >> 18) & 63] + i[(w >> 12) & 63] + i[(w >> 6) & 63] + i[63 & w]);
  160. return x.join('');
  161. }
  162. (u['-'.charCodeAt(0)] = 62), (u['_'.charCodeAt(0)] = 63);
  163. },
  164. 48287: (s, o, i) => {
  165. 'use strict';
  166. const u = i(67526),
  167. _ = i(251),
  168. w =
  169. 'function' == typeof Symbol && 'function' == typeof Symbol.for
  170. ? Symbol.for('nodejs.util.inspect.custom')
  171. : null;
  172. (o.Buffer = Buffer),
  173. (o.SlowBuffer = function SlowBuffer(s) {
  174. +s != s && (s = 0);
  175. return Buffer.alloc(+s);
  176. }),
  177. (o.INSPECT_MAX_BYTES = 50);
  178. const x = 2147483647;
  179. function createBuffer(s) {
  180. if (s > x) throw new RangeError('The value "' + s + '" is invalid for option "size"');
  181. const o = new Uint8Array(s);
  182. return Object.setPrototypeOf(o, Buffer.prototype), o;
  183. }
  184. function Buffer(s, o, i) {
  185. if ('number' == typeof s) {
  186. if ('string' == typeof o)
  187. throw new TypeError(
  188. 'The "string" argument must be of type string. Received type number'
  189. );
  190. return allocUnsafe(s);
  191. }
  192. return from(s, o, i);
  193. }
  194. function from(s, o, i) {
  195. if ('string' == typeof s)
  196. return (function fromString(s, o) {
  197. ('string' == typeof o && '' !== o) || (o = 'utf8');
  198. if (!Buffer.isEncoding(o)) throw new TypeError('Unknown encoding: ' + o);
  199. const i = 0 | byteLength(s, o);
  200. let u = createBuffer(i);
  201. const _ = u.write(s, o);
  202. _ !== i && (u = u.slice(0, _));
  203. return u;
  204. })(s, o);
  205. if (ArrayBuffer.isView(s))
  206. return (function fromArrayView(s) {
  207. if (isInstance(s, Uint8Array)) {
  208. const o = new Uint8Array(s);
  209. return fromArrayBuffer(o.buffer, o.byteOffset, o.byteLength);
  210. }
  211. return fromArrayLike(s);
  212. })(s);
  213. if (null == s)
  214. throw new TypeError(
  215. 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' +
  216. typeof s
  217. );
  218. if (isInstance(s, ArrayBuffer) || (s && isInstance(s.buffer, ArrayBuffer)))
  219. return fromArrayBuffer(s, o, i);
  220. if (
  221. 'undefined' != typeof SharedArrayBuffer &&
  222. (isInstance(s, SharedArrayBuffer) || (s && isInstance(s.buffer, SharedArrayBuffer)))
  223. )
  224. return fromArrayBuffer(s, o, i);
  225. if ('number' == typeof s)
  226. throw new TypeError(
  227. 'The "value" argument must not be of type number. Received type number'
  228. );
  229. const u = s.valueOf && s.valueOf();
  230. if (null != u && u !== s) return Buffer.from(u, o, i);
  231. const _ = (function fromObject(s) {
  232. if (Buffer.isBuffer(s)) {
  233. const o = 0 | checked(s.length),
  234. i = createBuffer(o);
  235. return 0 === i.length || s.copy(i, 0, 0, o), i;
  236. }
  237. if (void 0 !== s.length)
  238. return 'number' != typeof s.length || numberIsNaN(s.length)
  239. ? createBuffer(0)
  240. : fromArrayLike(s);
  241. if ('Buffer' === s.type && Array.isArray(s.data)) return fromArrayLike(s.data);
  242. })(s);
  243. if (_) return _;
  244. if (
  245. 'undefined' != typeof Symbol &&
  246. null != Symbol.toPrimitive &&
  247. 'function' == typeof s[Symbol.toPrimitive]
  248. )
  249. return Buffer.from(s[Symbol.toPrimitive]('string'), o, i);
  250. throw new TypeError(
  251. 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' +
  252. typeof s
  253. );
  254. }
  255. function assertSize(s) {
  256. if ('number' != typeof s) throw new TypeError('"size" argument must be of type number');
  257. if (s < 0) throw new RangeError('The value "' + s + '" is invalid for option "size"');
  258. }
  259. function allocUnsafe(s) {
  260. return assertSize(s), createBuffer(s < 0 ? 0 : 0 | checked(s));
  261. }
  262. function fromArrayLike(s) {
  263. const o = s.length < 0 ? 0 : 0 | checked(s.length),
  264. i = createBuffer(o);
  265. for (let u = 0; u < o; u += 1) i[u] = 255 & s[u];
  266. return i;
  267. }
  268. function fromArrayBuffer(s, o, i) {
  269. if (o < 0 || s.byteLength < o)
  270. throw new RangeError('"offset" is outside of buffer bounds');
  271. if (s.byteLength < o + (i || 0))
  272. throw new RangeError('"length" is outside of buffer bounds');
  273. let u;
  274. return (
  275. (u =
  276. void 0 === o && void 0 === i
  277. ? new Uint8Array(s)
  278. : void 0 === i
  279. ? new Uint8Array(s, o)
  280. : new Uint8Array(s, o, i)),
  281. Object.setPrototypeOf(u, Buffer.prototype),
  282. u
  283. );
  284. }
  285. function checked(s) {
  286. if (s >= x)
  287. throw new RangeError(
  288. 'Attempt to allocate Buffer larger than maximum size: 0x' +
  289. x.toString(16) +
  290. ' bytes'
  291. );
  292. return 0 | s;
  293. }
  294. function byteLength(s, o) {
  295. if (Buffer.isBuffer(s)) return s.length;
  296. if (ArrayBuffer.isView(s) || isInstance(s, ArrayBuffer)) return s.byteLength;
  297. if ('string' != typeof s)
  298. throw new TypeError(
  299. 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' +
  300. typeof s
  301. );
  302. const i = s.length,
  303. u = arguments.length > 2 && !0 === arguments[2];
  304. if (!u && 0 === i) return 0;
  305. let _ = !1;
  306. for (;;)
  307. switch (o) {
  308. case 'ascii':
  309. case 'latin1':
  310. case 'binary':
  311. return i;
  312. case 'utf8':
  313. case 'utf-8':
  314. return utf8ToBytes(s).length;
  315. case 'ucs2':
  316. case 'ucs-2':
  317. case 'utf16le':
  318. case 'utf-16le':
  319. return 2 * i;
  320. case 'hex':
  321. return i >>> 1;
  322. case 'base64':
  323. return base64ToBytes(s).length;
  324. default:
  325. if (_) return u ? -1 : utf8ToBytes(s).length;
  326. (o = ('' + o).toLowerCase()), (_ = !0);
  327. }
  328. }
  329. function slowToString(s, o, i) {
  330. let u = !1;
  331. if (((void 0 === o || o < 0) && (o = 0), o > this.length)) return '';
  332. if (((void 0 === i || i > this.length) && (i = this.length), i <= 0)) return '';
  333. if ((i >>>= 0) <= (o >>>= 0)) return '';
  334. for (s || (s = 'utf8'); ; )
  335. switch (s) {
  336. case 'hex':
  337. return hexSlice(this, o, i);
  338. case 'utf8':
  339. case 'utf-8':
  340. return utf8Slice(this, o, i);
  341. case 'ascii':
  342. return asciiSlice(this, o, i);
  343. case 'latin1':
  344. case 'binary':
  345. return latin1Slice(this, o, i);
  346. case 'base64':
  347. return base64Slice(this, o, i);
  348. case 'ucs2':
  349. case 'ucs-2':
  350. case 'utf16le':
  351. case 'utf-16le':
  352. return utf16leSlice(this, o, i);
  353. default:
  354. if (u) throw new TypeError('Unknown encoding: ' + s);
  355. (s = (s + '').toLowerCase()), (u = !0);
  356. }
  357. }
  358. function swap(s, o, i) {
  359. const u = s[o];
  360. (s[o] = s[i]), (s[i] = u);
  361. }
  362. function bidirectionalIndexOf(s, o, i, u, _) {
  363. if (0 === s.length) return -1;
  364. if (
  365. ('string' == typeof i
  366. ? ((u = i), (i = 0))
  367. : i > 2147483647
  368. ? (i = 2147483647)
  369. : i < -2147483648 && (i = -2147483648),
  370. numberIsNaN((i = +i)) && (i = _ ? 0 : s.length - 1),
  371. i < 0 && (i = s.length + i),
  372. i >= s.length)
  373. ) {
  374. if (_) return -1;
  375. i = s.length - 1;
  376. } else if (i < 0) {
  377. if (!_) return -1;
  378. i = 0;
  379. }
  380. if (('string' == typeof o && (o = Buffer.from(o, u)), Buffer.isBuffer(o)))
  381. return 0 === o.length ? -1 : arrayIndexOf(s, o, i, u, _);
  382. if ('number' == typeof o)
  383. return (
  384. (o &= 255),
  385. 'function' == typeof Uint8Array.prototype.indexOf
  386. ? _
  387. ? Uint8Array.prototype.indexOf.call(s, o, i)
  388. : Uint8Array.prototype.lastIndexOf.call(s, o, i)
  389. : arrayIndexOf(s, [o], i, u, _)
  390. );
  391. throw new TypeError('val must be string, number or Buffer');
  392. }
  393. function arrayIndexOf(s, o, i, u, _) {
  394. let w,
  395. x = 1,
  396. C = s.length,
  397. j = o.length;
  398. if (
  399. void 0 !== u &&
  400. ('ucs2' === (u = String(u).toLowerCase()) ||
  401. 'ucs-2' === u ||
  402. 'utf16le' === u ||
  403. 'utf-16le' === u)
  404. ) {
  405. if (s.length < 2 || o.length < 2) return -1;
  406. (x = 2), (C /= 2), (j /= 2), (i /= 2);
  407. }
  408. function read(s, o) {
  409. return 1 === x ? s[o] : s.readUInt16BE(o * x);
  410. }
  411. if (_) {
  412. let u = -1;
  413. for (w = i; w < C; w++)
  414. if (read(s, w) === read(o, -1 === u ? 0 : w - u)) {
  415. if ((-1 === u && (u = w), w - u + 1 === j)) return u * x;
  416. } else -1 !== u && (w -= w - u), (u = -1);
  417. } else
  418. for (i + j > C && (i = C - j), w = i; w >= 0; w--) {
  419. let i = !0;
  420. for (let u = 0; u < j; u++)
  421. if (read(s, w + u) !== read(o, u)) {
  422. i = !1;
  423. break;
  424. }
  425. if (i) return w;
  426. }
  427. return -1;
  428. }
  429. function hexWrite(s, o, i, u) {
  430. i = Number(i) || 0;
  431. const _ = s.length - i;
  432. u ? (u = Number(u)) > _ && (u = _) : (u = _);
  433. const w = o.length;
  434. let x;
  435. for (u > w / 2 && (u = w / 2), x = 0; x < u; ++x) {
  436. const u = parseInt(o.substr(2 * x, 2), 16);
  437. if (numberIsNaN(u)) return x;
  438. s[i + x] = u;
  439. }
  440. return x;
  441. }
  442. function utf8Write(s, o, i, u) {
  443. return blitBuffer(utf8ToBytes(o, s.length - i), s, i, u);
  444. }
  445. function asciiWrite(s, o, i, u) {
  446. return blitBuffer(
  447. (function asciiToBytes(s) {
  448. const o = [];
  449. for (let i = 0; i < s.length; ++i) o.push(255 & s.charCodeAt(i));
  450. return o;
  451. })(o),
  452. s,
  453. i,
  454. u
  455. );
  456. }
  457. function base64Write(s, o, i, u) {
  458. return blitBuffer(base64ToBytes(o), s, i, u);
  459. }
  460. function ucs2Write(s, o, i, u) {
  461. return blitBuffer(
  462. (function utf16leToBytes(s, o) {
  463. let i, u, _;
  464. const w = [];
  465. for (let x = 0; x < s.length && !((o -= 2) < 0); ++x)
  466. (i = s.charCodeAt(x)), (u = i >> 8), (_ = i % 256), w.push(_), w.push(u);
  467. return w;
  468. })(o, s.length - i),
  469. s,
  470. i,
  471. u
  472. );
  473. }
  474. function base64Slice(s, o, i) {
  475. return 0 === o && i === s.length ? u.fromByteArray(s) : u.fromByteArray(s.slice(o, i));
  476. }
  477. function utf8Slice(s, o, i) {
  478. i = Math.min(s.length, i);
  479. const u = [];
  480. let _ = o;
  481. for (; _ < i; ) {
  482. const o = s[_];
  483. let w = null,
  484. x = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
  485. if (_ + x <= i) {
  486. let i, u, C, j;
  487. switch (x) {
  488. case 1:
  489. o < 128 && (w = o);
  490. break;
  491. case 2:
  492. (i = s[_ + 1]),
  493. 128 == (192 & i) && ((j = ((31 & o) << 6) | (63 & i)), j > 127 && (w = j));
  494. break;
  495. case 3:
  496. (i = s[_ + 1]),
  497. (u = s[_ + 2]),
  498. 128 == (192 & i) &&
  499. 128 == (192 & u) &&
  500. ((j = ((15 & o) << 12) | ((63 & i) << 6) | (63 & u)),
  501. j > 2047 && (j < 55296 || j > 57343) && (w = j));
  502. break;
  503. case 4:
  504. (i = s[_ + 1]),
  505. (u = s[_ + 2]),
  506. (C = s[_ + 3]),
  507. 128 == (192 & i) &&
  508. 128 == (192 & u) &&
  509. 128 == (192 & C) &&
  510. ((j = ((15 & o) << 18) | ((63 & i) << 12) | ((63 & u) << 6) | (63 & C)),
  511. j > 65535 && j < 1114112 && (w = j));
  512. }
  513. }
  514. null === w
  515. ? ((w = 65533), (x = 1))
  516. : w > 65535 &&
  517. ((w -= 65536), u.push(((w >>> 10) & 1023) | 55296), (w = 56320 | (1023 & w))),
  518. u.push(w),
  519. (_ += x);
  520. }
  521. return (function decodeCodePointsArray(s) {
  522. const o = s.length;
  523. if (o <= C) return String.fromCharCode.apply(String, s);
  524. let i = '',
  525. u = 0;
  526. for (; u < o; ) i += String.fromCharCode.apply(String, s.slice(u, (u += C)));
  527. return i;
  528. })(u);
  529. }
  530. (o.kMaxLength = x),
  531. (Buffer.TYPED_ARRAY_SUPPORT = (function typedArraySupport() {
  532. try {
  533. const s = new Uint8Array(1),
  534. o = {
  535. foo: function () {
  536. return 42;
  537. }
  538. };
  539. return (
  540. Object.setPrototypeOf(o, Uint8Array.prototype),
  541. Object.setPrototypeOf(s, o),
  542. 42 === s.foo()
  543. );
  544. } catch (s) {
  545. return !1;
  546. }
  547. })()),
  548. Buffer.TYPED_ARRAY_SUPPORT ||
  549. 'undefined' == typeof console ||
  550. 'function' != typeof console.error ||
  551. console.error(
  552. 'This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.'
  553. ),
  554. Object.defineProperty(Buffer.prototype, 'parent', {
  555. enumerable: !0,
  556. get: function () {
  557. if (Buffer.isBuffer(this)) return this.buffer;
  558. }
  559. }),
  560. Object.defineProperty(Buffer.prototype, 'offset', {
  561. enumerable: !0,
  562. get: function () {
  563. if (Buffer.isBuffer(this)) return this.byteOffset;
  564. }
  565. }),
  566. (Buffer.poolSize = 8192),
  567. (Buffer.from = function (s, o, i) {
  568. return from(s, o, i);
  569. }),
  570. Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype),
  571. Object.setPrototypeOf(Buffer, Uint8Array),
  572. (Buffer.alloc = function (s, o, i) {
  573. return (function alloc(s, o, i) {
  574. return (
  575. assertSize(s),
  576. s <= 0
  577. ? createBuffer(s)
  578. : void 0 !== o
  579. ? 'string' == typeof i
  580. ? createBuffer(s).fill(o, i)
  581. : createBuffer(s).fill(o)
  582. : createBuffer(s)
  583. );
  584. })(s, o, i);
  585. }),
  586. (Buffer.allocUnsafe = function (s) {
  587. return allocUnsafe(s);
  588. }),
  589. (Buffer.allocUnsafeSlow = function (s) {
  590. return allocUnsafe(s);
  591. }),
  592. (Buffer.isBuffer = function isBuffer(s) {
  593. return null != s && !0 === s._isBuffer && s !== Buffer.prototype;
  594. }),
  595. (Buffer.compare = function compare(s, o) {
  596. if (
  597. (isInstance(s, Uint8Array) && (s = Buffer.from(s, s.offset, s.byteLength)),
  598. isInstance(o, Uint8Array) && (o = Buffer.from(o, o.offset, o.byteLength)),
  599. !Buffer.isBuffer(s) || !Buffer.isBuffer(o))
  600. )
  601. throw new TypeError(
  602. 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
  603. );
  604. if (s === o) return 0;
  605. let i = s.length,
  606. u = o.length;
  607. for (let _ = 0, w = Math.min(i, u); _ < w; ++_)
  608. if (s[_] !== o[_]) {
  609. (i = s[_]), (u = o[_]);
  610. break;
  611. }
  612. return i < u ? -1 : u < i ? 1 : 0;
  613. }),
  614. (Buffer.isEncoding = function isEncoding(s) {
  615. switch (String(s).toLowerCase()) {
  616. case 'hex':
  617. case 'utf8':
  618. case 'utf-8':
  619. case 'ascii':
  620. case 'latin1':
  621. case 'binary':
  622. case 'base64':
  623. case 'ucs2':
  624. case 'ucs-2':
  625. case 'utf16le':
  626. case 'utf-16le':
  627. return !0;
  628. default:
  629. return !1;
  630. }
  631. }),
  632. (Buffer.concat = function concat(s, o) {
  633. if (!Array.isArray(s))
  634. throw new TypeError('"list" argument must be an Array of Buffers');
  635. if (0 === s.length) return Buffer.alloc(0);
  636. let i;
  637. if (void 0 === o) for (o = 0, i = 0; i < s.length; ++i) o += s[i].length;
  638. const u = Buffer.allocUnsafe(o);
  639. let _ = 0;
  640. for (i = 0; i < s.length; ++i) {
  641. let o = s[i];
  642. if (isInstance(o, Uint8Array))
  643. _ + o.length > u.length
  644. ? (Buffer.isBuffer(o) || (o = Buffer.from(o)), o.copy(u, _))
  645. : Uint8Array.prototype.set.call(u, o, _);
  646. else {
  647. if (!Buffer.isBuffer(o))
  648. throw new TypeError('"list" argument must be an Array of Buffers');
  649. o.copy(u, _);
  650. }
  651. _ += o.length;
  652. }
  653. return u;
  654. }),
  655. (Buffer.byteLength = byteLength),
  656. (Buffer.prototype._isBuffer = !0),
  657. (Buffer.prototype.swap16 = function swap16() {
  658. const s = this.length;
  659. if (s % 2 != 0) throw new RangeError('Buffer size must be a multiple of 16-bits');
  660. for (let o = 0; o < s; o += 2) swap(this, o, o + 1);
  661. return this;
  662. }),
  663. (Buffer.prototype.swap32 = function swap32() {
  664. const s = this.length;
  665. if (s % 4 != 0) throw new RangeError('Buffer size must be a multiple of 32-bits');
  666. for (let o = 0; o < s; o += 4) swap(this, o, o + 3), swap(this, o + 1, o + 2);
  667. return this;
  668. }),
  669. (Buffer.prototype.swap64 = function swap64() {
  670. const s = this.length;
  671. if (s % 8 != 0) throw new RangeError('Buffer size must be a multiple of 64-bits');
  672. for (let o = 0; o < s; o += 8)
  673. swap(this, o, o + 7),
  674. swap(this, o + 1, o + 6),
  675. swap(this, o + 2, o + 5),
  676. swap(this, o + 3, o + 4);
  677. return this;
  678. }),
  679. (Buffer.prototype.toString = function toString() {
  680. const s = this.length;
  681. return 0 === s
  682. ? ''
  683. : 0 === arguments.length
  684. ? utf8Slice(this, 0, s)
  685. : slowToString.apply(this, arguments);
  686. }),
  687. (Buffer.prototype.toLocaleString = Buffer.prototype.toString),
  688. (Buffer.prototype.equals = function equals(s) {
  689. if (!Buffer.isBuffer(s)) throw new TypeError('Argument must be a Buffer');
  690. return this === s || 0 === Buffer.compare(this, s);
  691. }),
  692. (Buffer.prototype.inspect = function inspect() {
  693. let s = '';
  694. const i = o.INSPECT_MAX_BYTES;
  695. return (
  696. (s = this.toString('hex', 0, i)
  697. .replace(/(.{2})/g, '$1 ')
  698. .trim()),
  699. this.length > i && (s += ' ... '),
  700. '<Buffer ' + s + '>'
  701. );
  702. }),
  703. w && (Buffer.prototype[w] = Buffer.prototype.inspect),
  704. (Buffer.prototype.compare = function compare(s, o, i, u, _) {
  705. if (
  706. (isInstance(s, Uint8Array) && (s = Buffer.from(s, s.offset, s.byteLength)),
  707. !Buffer.isBuffer(s))
  708. )
  709. throw new TypeError(
  710. 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' +
  711. typeof s
  712. );
  713. if (
  714. (void 0 === o && (o = 0),
  715. void 0 === i && (i = s ? s.length : 0),
  716. void 0 === u && (u = 0),
  717. void 0 === _ && (_ = this.length),
  718. o < 0 || i > s.length || u < 0 || _ > this.length)
  719. )
  720. throw new RangeError('out of range index');
  721. if (u >= _ && o >= i) return 0;
  722. if (u >= _) return -1;
  723. if (o >= i) return 1;
  724. if (this === s) return 0;
  725. let w = (_ >>>= 0) - (u >>>= 0),
  726. x = (i >>>= 0) - (o >>>= 0);
  727. const C = Math.min(w, x),
  728. j = this.slice(u, _),
  729. L = s.slice(o, i);
  730. for (let s = 0; s < C; ++s)
  731. if (j[s] !== L[s]) {
  732. (w = j[s]), (x = L[s]);
  733. break;
  734. }
  735. return w < x ? -1 : x < w ? 1 : 0;
  736. }),
  737. (Buffer.prototype.includes = function includes(s, o, i) {
  738. return -1 !== this.indexOf(s, o, i);
  739. }),
  740. (Buffer.prototype.indexOf = function indexOf(s, o, i) {
  741. return bidirectionalIndexOf(this, s, o, i, !0);
  742. }),
  743. (Buffer.prototype.lastIndexOf = function lastIndexOf(s, o, i) {
  744. return bidirectionalIndexOf(this, s, o, i, !1);
  745. }),
  746. (Buffer.prototype.write = function write(s, o, i, u) {
  747. if (void 0 === o) (u = 'utf8'), (i = this.length), (o = 0);
  748. else if (void 0 === i && 'string' == typeof o) (u = o), (i = this.length), (o = 0);
  749. else {
  750. if (!isFinite(o))
  751. throw new Error(
  752. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  753. );
  754. (o >>>= 0),
  755. isFinite(i)
  756. ? ((i >>>= 0), void 0 === u && (u = 'utf8'))
  757. : ((u = i), (i = void 0));
  758. }
  759. const _ = this.length - o;
  760. if (
  761. ((void 0 === i || i > _) && (i = _),
  762. (s.length > 0 && (i < 0 || o < 0)) || o > this.length)
  763. )
  764. throw new RangeError('Attempt to write outside buffer bounds');
  765. u || (u = 'utf8');
  766. let w = !1;
  767. for (;;)
  768. switch (u) {
  769. case 'hex':
  770. return hexWrite(this, s, o, i);
  771. case 'utf8':
  772. case 'utf-8':
  773. return utf8Write(this, s, o, i);
  774. case 'ascii':
  775. case 'latin1':
  776. case 'binary':
  777. return asciiWrite(this, s, o, i);
  778. case 'base64':
  779. return base64Write(this, s, o, i);
  780. case 'ucs2':
  781. case 'ucs-2':
  782. case 'utf16le':
  783. case 'utf-16le':
  784. return ucs2Write(this, s, o, i);
  785. default:
  786. if (w) throw new TypeError('Unknown encoding: ' + u);
  787. (u = ('' + u).toLowerCase()), (w = !0);
  788. }
  789. }),
  790. (Buffer.prototype.toJSON = function toJSON() {
  791. return { type: 'Buffer', data: Array.prototype.slice.call(this._arr || this, 0) };
  792. });
  793. const C = 4096;
  794. function asciiSlice(s, o, i) {
  795. let u = '';
  796. i = Math.min(s.length, i);
  797. for (let _ = o; _ < i; ++_) u += String.fromCharCode(127 & s[_]);
  798. return u;
  799. }
  800. function latin1Slice(s, o, i) {
  801. let u = '';
  802. i = Math.min(s.length, i);
  803. for (let _ = o; _ < i; ++_) u += String.fromCharCode(s[_]);
  804. return u;
  805. }
  806. function hexSlice(s, o, i) {
  807. const u = s.length;
  808. (!o || o < 0) && (o = 0), (!i || i < 0 || i > u) && (i = u);
  809. let _ = '';
  810. for (let u = o; u < i; ++u) _ += B[s[u]];
  811. return _;
  812. }
  813. function utf16leSlice(s, o, i) {
  814. const u = s.slice(o, i);
  815. let _ = '';
  816. for (let s = 0; s < u.length - 1; s += 2)
  817. _ += String.fromCharCode(u[s] + 256 * u[s + 1]);
  818. return _;
  819. }
  820. function checkOffset(s, o, i) {
  821. if (s % 1 != 0 || s < 0) throw new RangeError('offset is not uint');
  822. if (s + o > i) throw new RangeError('Trying to access beyond buffer length');
  823. }
  824. function checkInt(s, o, i, u, _, w) {
  825. if (!Buffer.isBuffer(s))
  826. throw new TypeError('"buffer" argument must be a Buffer instance');
  827. if (o > _ || o < w) throw new RangeError('"value" argument is out of bounds');
  828. if (i + u > s.length) throw new RangeError('Index out of range');
  829. }
  830. function wrtBigUInt64LE(s, o, i, u, _) {
  831. checkIntBI(o, u, _, s, i, 7);
  832. let w = Number(o & BigInt(4294967295));
  833. (s[i++] = w), (w >>= 8), (s[i++] = w), (w >>= 8), (s[i++] = w), (w >>= 8), (s[i++] = w);
  834. let x = Number((o >> BigInt(32)) & BigInt(4294967295));
  835. return (
  836. (s[i++] = x),
  837. (x >>= 8),
  838. (s[i++] = x),
  839. (x >>= 8),
  840. (s[i++] = x),
  841. (x >>= 8),
  842. (s[i++] = x),
  843. i
  844. );
  845. }
  846. function wrtBigUInt64BE(s, o, i, u, _) {
  847. checkIntBI(o, u, _, s, i, 7);
  848. let w = Number(o & BigInt(4294967295));
  849. (s[i + 7] = w),
  850. (w >>= 8),
  851. (s[i + 6] = w),
  852. (w >>= 8),
  853. (s[i + 5] = w),
  854. (w >>= 8),
  855. (s[i + 4] = w);
  856. let x = Number((o >> BigInt(32)) & BigInt(4294967295));
  857. return (
  858. (s[i + 3] = x),
  859. (x >>= 8),
  860. (s[i + 2] = x),
  861. (x >>= 8),
  862. (s[i + 1] = x),
  863. (x >>= 8),
  864. (s[i] = x),
  865. i + 8
  866. );
  867. }
  868. function checkIEEE754(s, o, i, u, _, w) {
  869. if (i + u > s.length) throw new RangeError('Index out of range');
  870. if (i < 0) throw new RangeError('Index out of range');
  871. }
  872. function writeFloat(s, o, i, u, w) {
  873. return (
  874. (o = +o), (i >>>= 0), w || checkIEEE754(s, 0, i, 4), _.write(s, o, i, u, 23, 4), i + 4
  875. );
  876. }
  877. function writeDouble(s, o, i, u, w) {
  878. return (
  879. (o = +o), (i >>>= 0), w || checkIEEE754(s, 0, i, 8), _.write(s, o, i, u, 52, 8), i + 8
  880. );
  881. }
  882. (Buffer.prototype.slice = function slice(s, o) {
  883. const i = this.length;
  884. (s = ~~s) < 0 ? (s += i) < 0 && (s = 0) : s > i && (s = i),
  885. (o = void 0 === o ? i : ~~o) < 0 ? (o += i) < 0 && (o = 0) : o > i && (o = i),
  886. o < s && (o = s);
  887. const u = this.subarray(s, o);
  888. return Object.setPrototypeOf(u, Buffer.prototype), u;
  889. }),
  890. (Buffer.prototype.readUintLE = Buffer.prototype.readUIntLE =
  891. function readUIntLE(s, o, i) {
  892. (s >>>= 0), (o >>>= 0), i || checkOffset(s, o, this.length);
  893. let u = this[s],
  894. _ = 1,
  895. w = 0;
  896. for (; ++w < o && (_ *= 256); ) u += this[s + w] * _;
  897. return u;
  898. }),
  899. (Buffer.prototype.readUintBE = Buffer.prototype.readUIntBE =
  900. function readUIntBE(s, o, i) {
  901. (s >>>= 0), (o >>>= 0), i || checkOffset(s, o, this.length);
  902. let u = this[s + --o],
  903. _ = 1;
  904. for (; o > 0 && (_ *= 256); ) u += this[s + --o] * _;
  905. return u;
  906. }),
  907. (Buffer.prototype.readUint8 = Buffer.prototype.readUInt8 =
  908. function readUInt8(s, o) {
  909. return (s >>>= 0), o || checkOffset(s, 1, this.length), this[s];
  910. }),
  911. (Buffer.prototype.readUint16LE = Buffer.prototype.readUInt16LE =
  912. function readUInt16LE(s, o) {
  913. return (
  914. (s >>>= 0), o || checkOffset(s, 2, this.length), this[s] | (this[s + 1] << 8)
  915. );
  916. }),
  917. (Buffer.prototype.readUint16BE = Buffer.prototype.readUInt16BE =
  918. function readUInt16BE(s, o) {
  919. return (
  920. (s >>>= 0), o || checkOffset(s, 2, this.length), (this[s] << 8) | this[s + 1]
  921. );
  922. }),
  923. (Buffer.prototype.readUint32LE = Buffer.prototype.readUInt32LE =
  924. function readUInt32LE(s, o) {
  925. return (
  926. (s >>>= 0),
  927. o || checkOffset(s, 4, this.length),
  928. (this[s] | (this[s + 1] << 8) | (this[s + 2] << 16)) + 16777216 * this[s + 3]
  929. );
  930. }),
  931. (Buffer.prototype.readUint32BE = Buffer.prototype.readUInt32BE =
  932. function readUInt32BE(s, o) {
  933. return (
  934. (s >>>= 0),
  935. o || checkOffset(s, 4, this.length),
  936. 16777216 * this[s] + ((this[s + 1] << 16) | (this[s + 2] << 8) | this[s + 3])
  937. );
  938. }),
  939. (Buffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(s) {
  940. validateNumber((s >>>= 0), 'offset');
  941. const o = this[s],
  942. i = this[s + 7];
  943. (void 0 !== o && void 0 !== i) || boundsError(s, this.length - 8);
  944. const u = o + 256 * this[++s] + 65536 * this[++s] + this[++s] * 2 ** 24,
  945. _ = this[++s] + 256 * this[++s] + 65536 * this[++s] + i * 2 ** 24;
  946. return BigInt(u) + (BigInt(_) << BigInt(32));
  947. })),
  948. (Buffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(s) {
  949. validateNumber((s >>>= 0), 'offset');
  950. const o = this[s],
  951. i = this[s + 7];
  952. (void 0 !== o && void 0 !== i) || boundsError(s, this.length - 8);
  953. const u = o * 2 ** 24 + 65536 * this[++s] + 256 * this[++s] + this[++s],
  954. _ = this[++s] * 2 ** 24 + 65536 * this[++s] + 256 * this[++s] + i;
  955. return (BigInt(u) << BigInt(32)) + BigInt(_);
  956. })),
  957. (Buffer.prototype.readIntLE = function readIntLE(s, o, i) {
  958. (s >>>= 0), (o >>>= 0), i || checkOffset(s, o, this.length);
  959. let u = this[s],
  960. _ = 1,
  961. w = 0;
  962. for (; ++w < o && (_ *= 256); ) u += this[s + w] * _;
  963. return (_ *= 128), u >= _ && (u -= Math.pow(2, 8 * o)), u;
  964. }),
  965. (Buffer.prototype.readIntBE = function readIntBE(s, o, i) {
  966. (s >>>= 0), (o >>>= 0), i || checkOffset(s, o, this.length);
  967. let u = o,
  968. _ = 1,
  969. w = this[s + --u];
  970. for (; u > 0 && (_ *= 256); ) w += this[s + --u] * _;
  971. return (_ *= 128), w >= _ && (w -= Math.pow(2, 8 * o)), w;
  972. }),
  973. (Buffer.prototype.readInt8 = function readInt8(s, o) {
  974. return (
  975. (s >>>= 0),
  976. o || checkOffset(s, 1, this.length),
  977. 128 & this[s] ? -1 * (255 - this[s] + 1) : this[s]
  978. );
  979. }),
  980. (Buffer.prototype.readInt16LE = function readInt16LE(s, o) {
  981. (s >>>= 0), o || checkOffset(s, 2, this.length);
  982. const i = this[s] | (this[s + 1] << 8);
  983. return 32768 & i ? 4294901760 | i : i;
  984. }),
  985. (Buffer.prototype.readInt16BE = function readInt16BE(s, o) {
  986. (s >>>= 0), o || checkOffset(s, 2, this.length);
  987. const i = this[s + 1] | (this[s] << 8);
  988. return 32768 & i ? 4294901760 | i : i;
  989. }),
  990. (Buffer.prototype.readInt32LE = function readInt32LE(s, o) {
  991. return (
  992. (s >>>= 0),
  993. o || checkOffset(s, 4, this.length),
  994. this[s] | (this[s + 1] << 8) | (this[s + 2] << 16) | (this[s + 3] << 24)
  995. );
  996. }),
  997. (Buffer.prototype.readInt32BE = function readInt32BE(s, o) {
  998. return (
  999. (s >>>= 0),
  1000. o || checkOffset(s, 4, this.length),
  1001. (this[s] << 24) | (this[s + 1] << 16) | (this[s + 2] << 8) | this[s + 3]
  1002. );
  1003. }),
  1004. (Buffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(s) {
  1005. validateNumber((s >>>= 0), 'offset');
  1006. const o = this[s],
  1007. i = this[s + 7];
  1008. (void 0 !== o && void 0 !== i) || boundsError(s, this.length - 8);
  1009. const u = this[s + 4] + 256 * this[s + 5] + 65536 * this[s + 6] + (i << 24);
  1010. return (
  1011. (BigInt(u) << BigInt(32)) +
  1012. BigInt(o + 256 * this[++s] + 65536 * this[++s] + this[++s] * 2 ** 24)
  1013. );
  1014. })),
  1015. (Buffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(s) {
  1016. validateNumber((s >>>= 0), 'offset');
  1017. const o = this[s],
  1018. i = this[s + 7];
  1019. (void 0 !== o && void 0 !== i) || boundsError(s, this.length - 8);
  1020. const u = (o << 24) + 65536 * this[++s] + 256 * this[++s] + this[++s];
  1021. return (
  1022. (BigInt(u) << BigInt(32)) +
  1023. BigInt(this[++s] * 2 ** 24 + 65536 * this[++s] + 256 * this[++s] + i)
  1024. );
  1025. })),
  1026. (Buffer.prototype.readFloatLE = function readFloatLE(s, o) {
  1027. return (s >>>= 0), o || checkOffset(s, 4, this.length), _.read(this, s, !0, 23, 4);
  1028. }),
  1029. (Buffer.prototype.readFloatBE = function readFloatBE(s, o) {
  1030. return (s >>>= 0), o || checkOffset(s, 4, this.length), _.read(this, s, !1, 23, 4);
  1031. }),
  1032. (Buffer.prototype.readDoubleLE = function readDoubleLE(s, o) {
  1033. return (s >>>= 0), o || checkOffset(s, 8, this.length), _.read(this, s, !0, 52, 8);
  1034. }),
  1035. (Buffer.prototype.readDoubleBE = function readDoubleBE(s, o) {
  1036. return (s >>>= 0), o || checkOffset(s, 8, this.length), _.read(this, s, !1, 52, 8);
  1037. }),
  1038. (Buffer.prototype.writeUintLE = Buffer.prototype.writeUIntLE =
  1039. function writeUIntLE(s, o, i, u) {
  1040. if (((s = +s), (o >>>= 0), (i >>>= 0), !u)) {
  1041. checkInt(this, s, o, i, Math.pow(2, 8 * i) - 1, 0);
  1042. }
  1043. let _ = 1,
  1044. w = 0;
  1045. for (this[o] = 255 & s; ++w < i && (_ *= 256); ) this[o + w] = (s / _) & 255;
  1046. return o + i;
  1047. }),
  1048. (Buffer.prototype.writeUintBE = Buffer.prototype.writeUIntBE =
  1049. function writeUIntBE(s, o, i, u) {
  1050. if (((s = +s), (o >>>= 0), (i >>>= 0), !u)) {
  1051. checkInt(this, s, o, i, Math.pow(2, 8 * i) - 1, 0);
  1052. }
  1053. let _ = i - 1,
  1054. w = 1;
  1055. for (this[o + _] = 255 & s; --_ >= 0 && (w *= 256); ) this[o + _] = (s / w) & 255;
  1056. return o + i;
  1057. }),
  1058. (Buffer.prototype.writeUint8 = Buffer.prototype.writeUInt8 =
  1059. function writeUInt8(s, o, i) {
  1060. return (
  1061. (s = +s),
  1062. (o >>>= 0),
  1063. i || checkInt(this, s, o, 1, 255, 0),
  1064. (this[o] = 255 & s),
  1065. o + 1
  1066. );
  1067. }),
  1068. (Buffer.prototype.writeUint16LE = Buffer.prototype.writeUInt16LE =
  1069. function writeUInt16LE(s, o, i) {
  1070. return (
  1071. (s = +s),
  1072. (o >>>= 0),
  1073. i || checkInt(this, s, o, 2, 65535, 0),
  1074. (this[o] = 255 & s),
  1075. (this[o + 1] = s >>> 8),
  1076. o + 2
  1077. );
  1078. }),
  1079. (Buffer.prototype.writeUint16BE = Buffer.prototype.writeUInt16BE =
  1080. function writeUInt16BE(s, o, i) {
  1081. return (
  1082. (s = +s),
  1083. (o >>>= 0),
  1084. i || checkInt(this, s, o, 2, 65535, 0),
  1085. (this[o] = s >>> 8),
  1086. (this[o + 1] = 255 & s),
  1087. o + 2
  1088. );
  1089. }),
  1090. (Buffer.prototype.writeUint32LE = Buffer.prototype.writeUInt32LE =
  1091. function writeUInt32LE(s, o, i) {
  1092. return (
  1093. (s = +s),
  1094. (o >>>= 0),
  1095. i || checkInt(this, s, o, 4, 4294967295, 0),
  1096. (this[o + 3] = s >>> 24),
  1097. (this[o + 2] = s >>> 16),
  1098. (this[o + 1] = s >>> 8),
  1099. (this[o] = 255 & s),
  1100. o + 4
  1101. );
  1102. }),
  1103. (Buffer.prototype.writeUint32BE = Buffer.prototype.writeUInt32BE =
  1104. function writeUInt32BE(s, o, i) {
  1105. return (
  1106. (s = +s),
  1107. (o >>>= 0),
  1108. i || checkInt(this, s, o, 4, 4294967295, 0),
  1109. (this[o] = s >>> 24),
  1110. (this[o + 1] = s >>> 16),
  1111. (this[o + 2] = s >>> 8),
  1112. (this[o + 3] = 255 & s),
  1113. o + 4
  1114. );
  1115. }),
  1116. (Buffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(
  1117. s,
  1118. o = 0
  1119. ) {
  1120. return wrtBigUInt64LE(this, s, o, BigInt(0), BigInt('0xffffffffffffffff'));
  1121. })),
  1122. (Buffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(
  1123. s,
  1124. o = 0
  1125. ) {
  1126. return wrtBigUInt64BE(this, s, o, BigInt(0), BigInt('0xffffffffffffffff'));
  1127. })),
  1128. (Buffer.prototype.writeIntLE = function writeIntLE(s, o, i, u) {
  1129. if (((s = +s), (o >>>= 0), !u)) {
  1130. const u = Math.pow(2, 8 * i - 1);
  1131. checkInt(this, s, o, i, u - 1, -u);
  1132. }
  1133. let _ = 0,
  1134. w = 1,
  1135. x = 0;
  1136. for (this[o] = 255 & s; ++_ < i && (w *= 256); )
  1137. s < 0 && 0 === x && 0 !== this[o + _ - 1] && (x = 1),
  1138. (this[o + _] = (((s / w) | 0) - x) & 255);
  1139. return o + i;
  1140. }),
  1141. (Buffer.prototype.writeIntBE = function writeIntBE(s, o, i, u) {
  1142. if (((s = +s), (o >>>= 0), !u)) {
  1143. const u = Math.pow(2, 8 * i - 1);
  1144. checkInt(this, s, o, i, u - 1, -u);
  1145. }
  1146. let _ = i - 1,
  1147. w = 1,
  1148. x = 0;
  1149. for (this[o + _] = 255 & s; --_ >= 0 && (w *= 256); )
  1150. s < 0 && 0 === x && 0 !== this[o + _ + 1] && (x = 1),
  1151. (this[o + _] = (((s / w) | 0) - x) & 255);
  1152. return o + i;
  1153. }),
  1154. (Buffer.prototype.writeInt8 = function writeInt8(s, o, i) {
  1155. return (
  1156. (s = +s),
  1157. (o >>>= 0),
  1158. i || checkInt(this, s, o, 1, 127, -128),
  1159. s < 0 && (s = 255 + s + 1),
  1160. (this[o] = 255 & s),
  1161. o + 1
  1162. );
  1163. }),
  1164. (Buffer.prototype.writeInt16LE = function writeInt16LE(s, o, i) {
  1165. return (
  1166. (s = +s),
  1167. (o >>>= 0),
  1168. i || checkInt(this, s, o, 2, 32767, -32768),
  1169. (this[o] = 255 & s),
  1170. (this[o + 1] = s >>> 8),
  1171. o + 2
  1172. );
  1173. }),
  1174. (Buffer.prototype.writeInt16BE = function writeInt16BE(s, o, i) {
  1175. return (
  1176. (s = +s),
  1177. (o >>>= 0),
  1178. i || checkInt(this, s, o, 2, 32767, -32768),
  1179. (this[o] = s >>> 8),
  1180. (this[o + 1] = 255 & s),
  1181. o + 2
  1182. );
  1183. }),
  1184. (Buffer.prototype.writeInt32LE = function writeInt32LE(s, o, i) {
  1185. return (
  1186. (s = +s),
  1187. (o >>>= 0),
  1188. i || checkInt(this, s, o, 4, 2147483647, -2147483648),
  1189. (this[o] = 255 & s),
  1190. (this[o + 1] = s >>> 8),
  1191. (this[o + 2] = s >>> 16),
  1192. (this[o + 3] = s >>> 24),
  1193. o + 4
  1194. );
  1195. }),
  1196. (Buffer.prototype.writeInt32BE = function writeInt32BE(s, o, i) {
  1197. return (
  1198. (s = +s),
  1199. (o >>>= 0),
  1200. i || checkInt(this, s, o, 4, 2147483647, -2147483648),
  1201. s < 0 && (s = 4294967295 + s + 1),
  1202. (this[o] = s >>> 24),
  1203. (this[o + 1] = s >>> 16),
  1204. (this[o + 2] = s >>> 8),
  1205. (this[o + 3] = 255 & s),
  1206. o + 4
  1207. );
  1208. }),
  1209. (Buffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(
  1210. s,
  1211. o = 0
  1212. ) {
  1213. return wrtBigUInt64LE(
  1214. this,
  1215. s,
  1216. o,
  1217. -BigInt('0x8000000000000000'),
  1218. BigInt('0x7fffffffffffffff')
  1219. );
  1220. })),
  1221. (Buffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(
  1222. s,
  1223. o = 0
  1224. ) {
  1225. return wrtBigUInt64BE(
  1226. this,
  1227. s,
  1228. o,
  1229. -BigInt('0x8000000000000000'),
  1230. BigInt('0x7fffffffffffffff')
  1231. );
  1232. })),
  1233. (Buffer.prototype.writeFloatLE = function writeFloatLE(s, o, i) {
  1234. return writeFloat(this, s, o, !0, i);
  1235. }),
  1236. (Buffer.prototype.writeFloatBE = function writeFloatBE(s, o, i) {
  1237. return writeFloat(this, s, o, !1, i);
  1238. }),
  1239. (Buffer.prototype.writeDoubleLE = function writeDoubleLE(s, o, i) {
  1240. return writeDouble(this, s, o, !0, i);
  1241. }),
  1242. (Buffer.prototype.writeDoubleBE = function writeDoubleBE(s, o, i) {
  1243. return writeDouble(this, s, o, !1, i);
  1244. }),
  1245. (Buffer.prototype.copy = function copy(s, o, i, u) {
  1246. if (!Buffer.isBuffer(s)) throw new TypeError('argument should be a Buffer');
  1247. if (
  1248. (i || (i = 0),
  1249. u || 0 === u || (u = this.length),
  1250. o >= s.length && (o = s.length),
  1251. o || (o = 0),
  1252. u > 0 && u < i && (u = i),
  1253. u === i)
  1254. )
  1255. return 0;
  1256. if (0 === s.length || 0 === this.length) return 0;
  1257. if (o < 0) throw new RangeError('targetStart out of bounds');
  1258. if (i < 0 || i >= this.length) throw new RangeError('Index out of range');
  1259. if (u < 0) throw new RangeError('sourceEnd out of bounds');
  1260. u > this.length && (u = this.length), s.length - o < u - i && (u = s.length - o + i);
  1261. const _ = u - i;
  1262. return (
  1263. this === s && 'function' == typeof Uint8Array.prototype.copyWithin
  1264. ? this.copyWithin(o, i, u)
  1265. : Uint8Array.prototype.set.call(s, this.subarray(i, u), o),
  1266. _
  1267. );
  1268. }),
  1269. (Buffer.prototype.fill = function fill(s, o, i, u) {
  1270. if ('string' == typeof s) {
  1271. if (
  1272. ('string' == typeof o
  1273. ? ((u = o), (o = 0), (i = this.length))
  1274. : 'string' == typeof i && ((u = i), (i = this.length)),
  1275. void 0 !== u && 'string' != typeof u)
  1276. )
  1277. throw new TypeError('encoding must be a string');
  1278. if ('string' == typeof u && !Buffer.isEncoding(u))
  1279. throw new TypeError('Unknown encoding: ' + u);
  1280. if (1 === s.length) {
  1281. const o = s.charCodeAt(0);
  1282. (('utf8' === u && o < 128) || 'latin1' === u) && (s = o);
  1283. }
  1284. } else 'number' == typeof s ? (s &= 255) : 'boolean' == typeof s && (s = Number(s));
  1285. if (o < 0 || this.length < o || this.length < i)
  1286. throw new RangeError('Out of range index');
  1287. if (i <= o) return this;
  1288. let _;
  1289. if (
  1290. ((o >>>= 0),
  1291. (i = void 0 === i ? this.length : i >>> 0),
  1292. s || (s = 0),
  1293. 'number' == typeof s)
  1294. )
  1295. for (_ = o; _ < i; ++_) this[_] = s;
  1296. else {
  1297. const w = Buffer.isBuffer(s) ? s : Buffer.from(s, u),
  1298. x = w.length;
  1299. if (0 === x)
  1300. throw new TypeError('The value "' + s + '" is invalid for argument "value"');
  1301. for (_ = 0; _ < i - o; ++_) this[_ + o] = w[_ % x];
  1302. }
  1303. return this;
  1304. });
  1305. const j = {};
  1306. function E(s, o, i) {
  1307. j[s] = class NodeError extends i {
  1308. constructor() {
  1309. super(),
  1310. Object.defineProperty(this, 'message', {
  1311. value: o.apply(this, arguments),
  1312. writable: !0,
  1313. configurable: !0
  1314. }),
  1315. (this.name = `${this.name} [${s}]`),
  1316. this.stack,
  1317. delete this.name;
  1318. }
  1319. get code() {
  1320. return s;
  1321. }
  1322. set code(s) {
  1323. Object.defineProperty(this, 'code', {
  1324. configurable: !0,
  1325. enumerable: !0,
  1326. value: s,
  1327. writable: !0
  1328. });
  1329. }
  1330. toString() {
  1331. return `${this.name} [${s}]: ${this.message}`;
  1332. }
  1333. };
  1334. }
  1335. function addNumericalSeparator(s) {
  1336. let o = '',
  1337. i = s.length;
  1338. const u = '-' === s[0] ? 1 : 0;
  1339. for (; i >= u + 4; i -= 3) o = `_${s.slice(i - 3, i)}${o}`;
  1340. return `${s.slice(0, i)}${o}`;
  1341. }
  1342. function checkIntBI(s, o, i, u, _, w) {
  1343. if (s > i || s < o) {
  1344. const u = 'bigint' == typeof o ? 'n' : '';
  1345. let _;
  1346. throw (
  1347. ((_ =
  1348. w > 3
  1349. ? 0 === o || o === BigInt(0)
  1350. ? `>= 0${u} and < 2${u} ** ${8 * (w + 1)}${u}`
  1351. : `>= -(2${u} ** ${8 * (w + 1) - 1}${u}) and < 2 ** ${8 * (w + 1) - 1}${u}`
  1352. : `>= ${o}${u} and <= ${i}${u}`),
  1353. new j.ERR_OUT_OF_RANGE('value', _, s))
  1354. );
  1355. }
  1356. !(function checkBounds(s, o, i) {
  1357. validateNumber(o, 'offset'),
  1358. (void 0 !== s[o] && void 0 !== s[o + i]) || boundsError(o, s.length - (i + 1));
  1359. })(u, _, w);
  1360. }
  1361. function validateNumber(s, o) {
  1362. if ('number' != typeof s) throw new j.ERR_INVALID_ARG_TYPE(o, 'number', s);
  1363. }
  1364. function boundsError(s, o, i) {
  1365. if (Math.floor(s) !== s)
  1366. throw (validateNumber(s, i), new j.ERR_OUT_OF_RANGE(i || 'offset', 'an integer', s));
  1367. if (o < 0) throw new j.ERR_BUFFER_OUT_OF_BOUNDS();
  1368. throw new j.ERR_OUT_OF_RANGE(i || 'offset', `>= ${i ? 1 : 0} and <= ${o}`, s);
  1369. }
  1370. E(
  1371. 'ERR_BUFFER_OUT_OF_BOUNDS',
  1372. function (s) {
  1373. return s
  1374. ? `${s} is outside of buffer bounds`
  1375. : 'Attempt to access memory outside buffer bounds';
  1376. },
  1377. RangeError
  1378. ),
  1379. E(
  1380. 'ERR_INVALID_ARG_TYPE',
  1381. function (s, o) {
  1382. return `The "${s}" argument must be of type number. Received type ${typeof o}`;
  1383. },
  1384. TypeError
  1385. ),
  1386. E(
  1387. 'ERR_OUT_OF_RANGE',
  1388. function (s, o, i) {
  1389. let u = `The value of "${s}" is out of range.`,
  1390. _ = i;
  1391. return (
  1392. Number.isInteger(i) && Math.abs(i) > 2 ** 32
  1393. ? (_ = addNumericalSeparator(String(i)))
  1394. : 'bigint' == typeof i &&
  1395. ((_ = String(i)),
  1396. (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) &&
  1397. (_ = addNumericalSeparator(_)),
  1398. (_ += 'n')),
  1399. (u += ` It must be ${o}. Received ${_}`),
  1400. u
  1401. );
  1402. },
  1403. RangeError
  1404. );
  1405. const L = /[^+/0-9A-Za-z-_]/g;
  1406. function utf8ToBytes(s, o) {
  1407. let i;
  1408. o = o || 1 / 0;
  1409. const u = s.length;
  1410. let _ = null;
  1411. const w = [];
  1412. for (let x = 0; x < u; ++x) {
  1413. if (((i = s.charCodeAt(x)), i > 55295 && i < 57344)) {
  1414. if (!_) {
  1415. if (i > 56319) {
  1416. (o -= 3) > -1 && w.push(239, 191, 189);
  1417. continue;
  1418. }
  1419. if (x + 1 === u) {
  1420. (o -= 3) > -1 && w.push(239, 191, 189);
  1421. continue;
  1422. }
  1423. _ = i;
  1424. continue;
  1425. }
  1426. if (i < 56320) {
  1427. (o -= 3) > -1 && w.push(239, 191, 189), (_ = i);
  1428. continue;
  1429. }
  1430. i = 65536 + (((_ - 55296) << 10) | (i - 56320));
  1431. } else _ && (o -= 3) > -1 && w.push(239, 191, 189);
  1432. if (((_ = null), i < 128)) {
  1433. if ((o -= 1) < 0) break;
  1434. w.push(i);
  1435. } else if (i < 2048) {
  1436. if ((o -= 2) < 0) break;
  1437. w.push((i >> 6) | 192, (63 & i) | 128);
  1438. } else if (i < 65536) {
  1439. if ((o -= 3) < 0) break;
  1440. w.push((i >> 12) | 224, ((i >> 6) & 63) | 128, (63 & i) | 128);
  1441. } else {
  1442. if (!(i < 1114112)) throw new Error('Invalid code point');
  1443. if ((o -= 4) < 0) break;
  1444. w.push(
  1445. (i >> 18) | 240,
  1446. ((i >> 12) & 63) | 128,
  1447. ((i >> 6) & 63) | 128,
  1448. (63 & i) | 128
  1449. );
  1450. }
  1451. }
  1452. return w;
  1453. }
  1454. function base64ToBytes(s) {
  1455. return u.toByteArray(
  1456. (function base64clean(s) {
  1457. if ((s = (s = s.split('=')[0]).trim().replace(L, '')).length < 2) return '';
  1458. for (; s.length % 4 != 0; ) s += '=';
  1459. return s;
  1460. })(s)
  1461. );
  1462. }
  1463. function blitBuffer(s, o, i, u) {
  1464. let _;
  1465. for (_ = 0; _ < u && !(_ + i >= o.length || _ >= s.length); ++_) o[_ + i] = s[_];
  1466. return _;
  1467. }
  1468. function isInstance(s, o) {
  1469. return (
  1470. s instanceof o ||
  1471. (null != s &&
  1472. null != s.constructor &&
  1473. null != s.constructor.name &&
  1474. s.constructor.name === o.name)
  1475. );
  1476. }
  1477. function numberIsNaN(s) {
  1478. return s != s;
  1479. }
  1480. const B = (function () {
  1481. const s = '0123456789abcdef',
  1482. o = new Array(256);
  1483. for (let i = 0; i < 16; ++i) {
  1484. const u = 16 * i;
  1485. for (let _ = 0; _ < 16; ++_) o[u + _] = s[i] + s[_];
  1486. }
  1487. return o;
  1488. })();
  1489. function defineBigIntMethod(s) {
  1490. return 'undefined' == typeof BigInt ? BufferBigIntNotDefined : s;
  1491. }
  1492. function BufferBigIntNotDefined() {
  1493. throw new Error('BigInt not supported');
  1494. }
  1495. },
  1496. 17965: (s, o, i) => {
  1497. 'use strict';
  1498. var u = i(16426),
  1499. _ = { 'text/plain': 'Text', 'text/html': 'Url', default: 'Text' };
  1500. s.exports = function copy(s, o) {
  1501. var i,
  1502. w,
  1503. x,
  1504. C,
  1505. j,
  1506. L,
  1507. B = !1;
  1508. o || (o = {}), (i = o.debug || !1);
  1509. try {
  1510. if (
  1511. ((x = u()),
  1512. (C = document.createRange()),
  1513. (j = document.getSelection()),
  1514. ((L = document.createElement('span')).textContent = s),
  1515. (L.ariaHidden = 'true'),
  1516. (L.style.all = 'unset'),
  1517. (L.style.position = 'fixed'),
  1518. (L.style.top = 0),
  1519. (L.style.clip = 'rect(0, 0, 0, 0)'),
  1520. (L.style.whiteSpace = 'pre'),
  1521. (L.style.webkitUserSelect = 'text'),
  1522. (L.style.MozUserSelect = 'text'),
  1523. (L.style.msUserSelect = 'text'),
  1524. (L.style.userSelect = 'text'),
  1525. L.addEventListener('copy', function (u) {
  1526. if ((u.stopPropagation(), o.format))
  1527. if ((u.preventDefault(), void 0 === u.clipboardData)) {
  1528. i && console.warn('unable to use e.clipboardData'),
  1529. i && console.warn('trying IE specific stuff'),
  1530. window.clipboardData.clearData();
  1531. var w = _[o.format] || _.default;
  1532. window.clipboardData.setData(w, s);
  1533. } else u.clipboardData.clearData(), u.clipboardData.setData(o.format, s);
  1534. o.onCopy && (u.preventDefault(), o.onCopy(u.clipboardData));
  1535. }),
  1536. document.body.appendChild(L),
  1537. C.selectNodeContents(L),
  1538. j.addRange(C),
  1539. !document.execCommand('copy'))
  1540. )
  1541. throw new Error('copy command was unsuccessful');
  1542. B = !0;
  1543. } catch (u) {
  1544. i && console.error('unable to copy using execCommand: ', u),
  1545. i && console.warn('trying IE specific stuff');
  1546. try {
  1547. window.clipboardData.setData(o.format || 'text', s),
  1548. o.onCopy && o.onCopy(window.clipboardData),
  1549. (B = !0);
  1550. } catch (u) {
  1551. i && console.error('unable to copy using clipboardData: ', u),
  1552. i && console.error('falling back to prompt'),
  1553. (w = (function format(s) {
  1554. var o = (/mac os x/i.test(navigator.userAgent) ? '⌘' : 'Ctrl') + '+C';
  1555. return s.replace(/#{\s*key\s*}/g, o);
  1556. })('message' in o ? o.message : 'Copy to clipboard: #{key}, Enter')),
  1557. window.prompt(w, s);
  1558. }
  1559. } finally {
  1560. j && ('function' == typeof j.removeRange ? j.removeRange(C) : j.removeAllRanges()),
  1561. L && document.body.removeChild(L),
  1562. x();
  1563. }
  1564. return B;
  1565. };
  1566. },
  1567. 2205: function (s, o, i) {
  1568. var u;
  1569. (u = void 0 !== i.g ? i.g : this),
  1570. (s.exports = (function (s) {
  1571. if (s.CSS && s.CSS.escape) return s.CSS.escape;
  1572. var cssEscape = function (s) {
  1573. if (0 == arguments.length)
  1574. throw new TypeError('`CSS.escape` requires an argument.');
  1575. for (
  1576. var o, i = String(s), u = i.length, _ = -1, w = '', x = i.charCodeAt(0);
  1577. ++_ < u;
  1578. )
  1579. 0 != (o = i.charCodeAt(_))
  1580. ? (w +=
  1581. (o >= 1 && o <= 31) ||
  1582. 127 == o ||
  1583. (0 == _ && o >= 48 && o <= 57) ||
  1584. (1 == _ && o >= 48 && o <= 57 && 45 == x)
  1585. ? '\\' + o.toString(16) + ' '
  1586. : (0 == _ && 1 == u && 45 == o) ||
  1587. !(
  1588. o >= 128 ||
  1589. 45 == o ||
  1590. 95 == o ||
  1591. (o >= 48 && o <= 57) ||
  1592. (o >= 65 && o <= 90) ||
  1593. (o >= 97 && o <= 122)
  1594. )
  1595. ? '\\' + i.charAt(_)
  1596. : i.charAt(_))
  1597. : (w += '�');
  1598. return w;
  1599. };
  1600. return s.CSS || (s.CSS = {}), (s.CSS.escape = cssEscape), cssEscape;
  1601. })(u));
  1602. },
  1603. 81919: (s, o, i) => {
  1604. 'use strict';
  1605. var u = i(48287).Buffer;
  1606. function isSpecificValue(s) {
  1607. return s instanceof u || s instanceof Date || s instanceof RegExp;
  1608. }
  1609. function cloneSpecificValue(s) {
  1610. if (s instanceof u) {
  1611. var o = u.alloc ? u.alloc(s.length) : new u(s.length);
  1612. return s.copy(o), o;
  1613. }
  1614. if (s instanceof Date) return new Date(s.getTime());
  1615. if (s instanceof RegExp) return new RegExp(s);
  1616. throw new Error('Unexpected situation');
  1617. }
  1618. function deepCloneArray(s) {
  1619. var o = [];
  1620. return (
  1621. s.forEach(function (s, i) {
  1622. 'object' == typeof s && null !== s
  1623. ? Array.isArray(s)
  1624. ? (o[i] = deepCloneArray(s))
  1625. : isSpecificValue(s)
  1626. ? (o[i] = cloneSpecificValue(s))
  1627. : (o[i] = _({}, s))
  1628. : (o[i] = s);
  1629. }),
  1630. o
  1631. );
  1632. }
  1633. function safeGetProperty(s, o) {
  1634. return '__proto__' === o ? void 0 : s[o];
  1635. }
  1636. var _ = (s.exports = function () {
  1637. if (arguments.length < 1 || 'object' != typeof arguments[0]) return !1;
  1638. if (arguments.length < 2) return arguments[0];
  1639. var s,
  1640. o,
  1641. i = arguments[0];
  1642. return (
  1643. Array.prototype.slice.call(arguments, 1).forEach(function (u) {
  1644. 'object' != typeof u ||
  1645. null === u ||
  1646. Array.isArray(u) ||
  1647. Object.keys(u).forEach(function (w) {
  1648. return (
  1649. (o = safeGetProperty(i, w)),
  1650. (s = safeGetProperty(u, w)) === i
  1651. ? void 0
  1652. : 'object' != typeof s || null === s
  1653. ? void (i[w] = s)
  1654. : Array.isArray(s)
  1655. ? void (i[w] = deepCloneArray(s))
  1656. : isSpecificValue(s)
  1657. ? void (i[w] = cloneSpecificValue(s))
  1658. : 'object' != typeof o || null === o || Array.isArray(o)
  1659. ? void (i[w] = _({}, s))
  1660. : void (i[w] = _(o, s))
  1661. );
  1662. });
  1663. }),
  1664. i
  1665. );
  1666. });
  1667. },
  1668. 14744: (s) => {
  1669. 'use strict';
  1670. var o = function isMergeableObject(s) {
  1671. return (
  1672. (function isNonNullObject(s) {
  1673. return !!s && 'object' == typeof s;
  1674. })(s) &&
  1675. !(function isSpecial(s) {
  1676. var o = Object.prototype.toString.call(s);
  1677. return (
  1678. '[object RegExp]' === o ||
  1679. '[object Date]' === o ||
  1680. (function isReactElement(s) {
  1681. return s.$$typeof === i;
  1682. })(s)
  1683. );
  1684. })(s)
  1685. );
  1686. };
  1687. var i = 'function' == typeof Symbol && Symbol.for ? Symbol.for('react.element') : 60103;
  1688. function cloneUnlessOtherwiseSpecified(s, o) {
  1689. return !1 !== o.clone && o.isMergeableObject(s)
  1690. ? deepmerge(
  1691. (function emptyTarget(s) {
  1692. return Array.isArray(s) ? [] : {};
  1693. })(s),
  1694. s,
  1695. o
  1696. )
  1697. : s;
  1698. }
  1699. function defaultArrayMerge(s, o, i) {
  1700. return s.concat(o).map(function (s) {
  1701. return cloneUnlessOtherwiseSpecified(s, i);
  1702. });
  1703. }
  1704. function getKeys(s) {
  1705. return Object.keys(s).concat(
  1706. (function getEnumerableOwnPropertySymbols(s) {
  1707. return Object.getOwnPropertySymbols
  1708. ? Object.getOwnPropertySymbols(s).filter(function (o) {
  1709. return Object.propertyIsEnumerable.call(s, o);
  1710. })
  1711. : [];
  1712. })(s)
  1713. );
  1714. }
  1715. function propertyIsOnObject(s, o) {
  1716. try {
  1717. return o in s;
  1718. } catch (s) {
  1719. return !1;
  1720. }
  1721. }
  1722. function mergeObject(s, o, i) {
  1723. var u = {};
  1724. return (
  1725. i.isMergeableObject(s) &&
  1726. getKeys(s).forEach(function (o) {
  1727. u[o] = cloneUnlessOtherwiseSpecified(s[o], i);
  1728. }),
  1729. getKeys(o).forEach(function (_) {
  1730. (function propertyIsUnsafe(s, o) {
  1731. return (
  1732. propertyIsOnObject(s, o) &&
  1733. !(Object.hasOwnProperty.call(s, o) && Object.propertyIsEnumerable.call(s, o))
  1734. );
  1735. })(s, _) ||
  1736. (propertyIsOnObject(s, _) && i.isMergeableObject(o[_])
  1737. ? (u[_] = (function getMergeFunction(s, o) {
  1738. if (!o.customMerge) return deepmerge;
  1739. var i = o.customMerge(s);
  1740. return 'function' == typeof i ? i : deepmerge;
  1741. })(_, i)(s[_], o[_], i))
  1742. : (u[_] = cloneUnlessOtherwiseSpecified(o[_], i)));
  1743. }),
  1744. u
  1745. );
  1746. }
  1747. function deepmerge(s, i, u) {
  1748. ((u = u || {}).arrayMerge = u.arrayMerge || defaultArrayMerge),
  1749. (u.isMergeableObject = u.isMergeableObject || o),
  1750. (u.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified);
  1751. var _ = Array.isArray(i);
  1752. return _ === Array.isArray(s)
  1753. ? _
  1754. ? u.arrayMerge(s, i, u)
  1755. : mergeObject(s, i, u)
  1756. : cloneUnlessOtherwiseSpecified(i, u);
  1757. }
  1758. deepmerge.all = function deepmergeAll(s, o) {
  1759. if (!Array.isArray(s)) throw new Error('first argument should be an array');
  1760. return s.reduce(function (s, i) {
  1761. return deepmerge(s, i, o);
  1762. }, {});
  1763. };
  1764. var u = deepmerge;
  1765. s.exports = u;
  1766. },
  1767. 42838: function (s) {
  1768. s.exports = (function () {
  1769. 'use strict';
  1770. const {
  1771. entries: s,
  1772. setPrototypeOf: o,
  1773. isFrozen: i,
  1774. getPrototypeOf: u,
  1775. getOwnPropertyDescriptor: _
  1776. } = Object;
  1777. let { freeze: w, seal: x, create: C } = Object,
  1778. { apply: j, construct: L } = 'undefined' != typeof Reflect && Reflect;
  1779. w ||
  1780. (w = function freeze(s) {
  1781. return s;
  1782. }),
  1783. x ||
  1784. (x = function seal(s) {
  1785. return s;
  1786. }),
  1787. j ||
  1788. (j = function apply(s, o, i) {
  1789. return s.apply(o, i);
  1790. }),
  1791. L ||
  1792. (L = function construct(s, o) {
  1793. return new s(...o);
  1794. });
  1795. const B = unapply(Array.prototype.forEach),
  1796. $ = unapply(Array.prototype.pop),
  1797. V = unapply(Array.prototype.push),
  1798. U = unapply(String.prototype.toLowerCase),
  1799. z = unapply(String.prototype.toString),
  1800. Y = unapply(String.prototype.match),
  1801. Z = unapply(String.prototype.replace),
  1802. ee = unapply(String.prototype.indexOf),
  1803. ie = unapply(String.prototype.trim),
  1804. ae = unapply(Object.prototype.hasOwnProperty),
  1805. le = unapply(RegExp.prototype.test),
  1806. ce = unconstruct(TypeError);
  1807. function unapply(s) {
  1808. return function (o) {
  1809. for (var i = arguments.length, u = new Array(i > 1 ? i - 1 : 0), _ = 1; _ < i; _++)
  1810. u[_ - 1] = arguments[_];
  1811. return j(s, o, u);
  1812. };
  1813. }
  1814. function unconstruct(s) {
  1815. return function () {
  1816. for (var o = arguments.length, i = new Array(o), u = 0; u < o; u++)
  1817. i[u] = arguments[u];
  1818. return L(s, i);
  1819. };
  1820. }
  1821. function addToSet(s, u) {
  1822. let _ = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : U;
  1823. o && o(s, null);
  1824. let w = u.length;
  1825. for (; w--; ) {
  1826. let o = u[w];
  1827. if ('string' == typeof o) {
  1828. const s = _(o);
  1829. s !== o && (i(u) || (u[w] = s), (o = s));
  1830. }
  1831. s[o] = !0;
  1832. }
  1833. return s;
  1834. }
  1835. function cleanArray(s) {
  1836. for (let o = 0; o < s.length; o++) ae(s, o) || (s[o] = null);
  1837. return s;
  1838. }
  1839. function clone(o) {
  1840. const i = C(null);
  1841. for (const [u, _] of s(o))
  1842. ae(o, u) &&
  1843. (Array.isArray(_)
  1844. ? (i[u] = cleanArray(_))
  1845. : _ && 'object' == typeof _ && _.constructor === Object
  1846. ? (i[u] = clone(_))
  1847. : (i[u] = _));
  1848. return i;
  1849. }
  1850. function lookupGetter(s, o) {
  1851. for (; null !== s; ) {
  1852. const i = _(s, o);
  1853. if (i) {
  1854. if (i.get) return unapply(i.get);
  1855. if ('function' == typeof i.value) return unapply(i.value);
  1856. }
  1857. s = u(s);
  1858. }
  1859. function fallbackValue() {
  1860. return null;
  1861. }
  1862. return fallbackValue;
  1863. }
  1864. const pe = w([
  1865. 'a',
  1866. 'abbr',
  1867. 'acronym',
  1868. 'address',
  1869. 'area',
  1870. 'article',
  1871. 'aside',
  1872. 'audio',
  1873. 'b',
  1874. 'bdi',
  1875. 'bdo',
  1876. 'big',
  1877. 'blink',
  1878. 'blockquote',
  1879. 'body',
  1880. 'br',
  1881. 'button',
  1882. 'canvas',
  1883. 'caption',
  1884. 'center',
  1885. 'cite',
  1886. 'code',
  1887. 'col',
  1888. 'colgroup',
  1889. 'content',
  1890. 'data',
  1891. 'datalist',
  1892. 'dd',
  1893. 'decorator',
  1894. 'del',
  1895. 'details',
  1896. 'dfn',
  1897. 'dialog',
  1898. 'dir',
  1899. 'div',
  1900. 'dl',
  1901. 'dt',
  1902. 'element',
  1903. 'em',
  1904. 'fieldset',
  1905. 'figcaption',
  1906. 'figure',
  1907. 'font',
  1908. 'footer',
  1909. 'form',
  1910. 'h1',
  1911. 'h2',
  1912. 'h3',
  1913. 'h4',
  1914. 'h5',
  1915. 'h6',
  1916. 'head',
  1917. 'header',
  1918. 'hgroup',
  1919. 'hr',
  1920. 'html',
  1921. 'i',
  1922. 'img',
  1923. 'input',
  1924. 'ins',
  1925. 'kbd',
  1926. 'label',
  1927. 'legend',
  1928. 'li',
  1929. 'main',
  1930. 'map',
  1931. 'mark',
  1932. 'marquee',
  1933. 'menu',
  1934. 'menuitem',
  1935. 'meter',
  1936. 'nav',
  1937. 'nobr',
  1938. 'ol',
  1939. 'optgroup',
  1940. 'option',
  1941. 'output',
  1942. 'p',
  1943. 'picture',
  1944. 'pre',
  1945. 'progress',
  1946. 'q',
  1947. 'rp',
  1948. 'rt',
  1949. 'ruby',
  1950. 's',
  1951. 'samp',
  1952. 'section',
  1953. 'select',
  1954. 'shadow',
  1955. 'small',
  1956. 'source',
  1957. 'spacer',
  1958. 'span',
  1959. 'strike',
  1960. 'strong',
  1961. 'style',
  1962. 'sub',
  1963. 'summary',
  1964. 'sup',
  1965. 'table',
  1966. 'tbody',
  1967. 'td',
  1968. 'template',
  1969. 'textarea',
  1970. 'tfoot',
  1971. 'th',
  1972. 'thead',
  1973. 'time',
  1974. 'tr',
  1975. 'track',
  1976. 'tt',
  1977. 'u',
  1978. 'ul',
  1979. 'var',
  1980. 'video',
  1981. 'wbr'
  1982. ]),
  1983. de = w([
  1984. 'svg',
  1985. 'a',
  1986. 'altglyph',
  1987. 'altglyphdef',
  1988. 'altglyphitem',
  1989. 'animatecolor',
  1990. 'animatemotion',
  1991. 'animatetransform',
  1992. 'circle',
  1993. 'clippath',
  1994. 'defs',
  1995. 'desc',
  1996. 'ellipse',
  1997. 'filter',
  1998. 'font',
  1999. 'g',
  2000. 'glyph',
  2001. 'glyphref',
  2002. 'hkern',
  2003. 'image',
  2004. 'line',
  2005. 'lineargradient',
  2006. 'marker',
  2007. 'mask',
  2008. 'metadata',
  2009. 'mpath',
  2010. 'path',
  2011. 'pattern',
  2012. 'polygon',
  2013. 'polyline',
  2014. 'radialgradient',
  2015. 'rect',
  2016. 'stop',
  2017. 'style',
  2018. 'switch',
  2019. 'symbol',
  2020. 'text',
  2021. 'textpath',
  2022. 'title',
  2023. 'tref',
  2024. 'tspan',
  2025. 'view',
  2026. 'vkern'
  2027. ]),
  2028. fe = w([
  2029. 'feBlend',
  2030. 'feColorMatrix',
  2031. 'feComponentTransfer',
  2032. 'feComposite',
  2033. 'feConvolveMatrix',
  2034. 'feDiffuseLighting',
  2035. 'feDisplacementMap',
  2036. 'feDistantLight',
  2037. 'feDropShadow',
  2038. 'feFlood',
  2039. 'feFuncA',
  2040. 'feFuncB',
  2041. 'feFuncG',
  2042. 'feFuncR',
  2043. 'feGaussianBlur',
  2044. 'feImage',
  2045. 'feMerge',
  2046. 'feMergeNode',
  2047. 'feMorphology',
  2048. 'feOffset',
  2049. 'fePointLight',
  2050. 'feSpecularLighting',
  2051. 'feSpotLight',
  2052. 'feTile',
  2053. 'feTurbulence'
  2054. ]),
  2055. ye = w([
  2056. 'animate',
  2057. 'color-profile',
  2058. 'cursor',
  2059. 'discard',
  2060. 'font-face',
  2061. 'font-face-format',
  2062. 'font-face-name',
  2063. 'font-face-src',
  2064. 'font-face-uri',
  2065. 'foreignobject',
  2066. 'hatch',
  2067. 'hatchpath',
  2068. 'mesh',
  2069. 'meshgradient',
  2070. 'meshpatch',
  2071. 'meshrow',
  2072. 'missing-glyph',
  2073. 'script',
  2074. 'set',
  2075. 'solidcolor',
  2076. 'unknown',
  2077. 'use'
  2078. ]),
  2079. be = w([
  2080. 'math',
  2081. 'menclose',
  2082. 'merror',
  2083. 'mfenced',
  2084. 'mfrac',
  2085. 'mglyph',
  2086. 'mi',
  2087. 'mlabeledtr',
  2088. 'mmultiscripts',
  2089. 'mn',
  2090. 'mo',
  2091. 'mover',
  2092. 'mpadded',
  2093. 'mphantom',
  2094. 'mroot',
  2095. 'mrow',
  2096. 'ms',
  2097. 'mspace',
  2098. 'msqrt',
  2099. 'mstyle',
  2100. 'msub',
  2101. 'msup',
  2102. 'msubsup',
  2103. 'mtable',
  2104. 'mtd',
  2105. 'mtext',
  2106. 'mtr',
  2107. 'munder',
  2108. 'munderover',
  2109. 'mprescripts'
  2110. ]),
  2111. _e = w([
  2112. 'maction',
  2113. 'maligngroup',
  2114. 'malignmark',
  2115. 'mlongdiv',
  2116. 'mscarries',
  2117. 'mscarry',
  2118. 'msgroup',
  2119. 'mstack',
  2120. 'msline',
  2121. 'msrow',
  2122. 'semantics',
  2123. 'annotation',
  2124. 'annotation-xml',
  2125. 'mprescripts',
  2126. 'none'
  2127. ]),
  2128. we = w(['#text']),
  2129. Se = w([
  2130. 'accept',
  2131. 'action',
  2132. 'align',
  2133. 'alt',
  2134. 'autocapitalize',
  2135. 'autocomplete',
  2136. 'autopictureinpicture',
  2137. 'autoplay',
  2138. 'background',
  2139. 'bgcolor',
  2140. 'border',
  2141. 'capture',
  2142. 'cellpadding',
  2143. 'cellspacing',
  2144. 'checked',
  2145. 'cite',
  2146. 'class',
  2147. 'clear',
  2148. 'color',
  2149. 'cols',
  2150. 'colspan',
  2151. 'controls',
  2152. 'controlslist',
  2153. 'coords',
  2154. 'crossorigin',
  2155. 'datetime',
  2156. 'decoding',
  2157. 'default',
  2158. 'dir',
  2159. 'disabled',
  2160. 'disablepictureinpicture',
  2161. 'disableremoteplayback',
  2162. 'download',
  2163. 'draggable',
  2164. 'enctype',
  2165. 'enterkeyhint',
  2166. 'face',
  2167. 'for',
  2168. 'headers',
  2169. 'height',
  2170. 'hidden',
  2171. 'high',
  2172. 'href',
  2173. 'hreflang',
  2174. 'id',
  2175. 'inputmode',
  2176. 'integrity',
  2177. 'ismap',
  2178. 'kind',
  2179. 'label',
  2180. 'lang',
  2181. 'list',
  2182. 'loading',
  2183. 'loop',
  2184. 'low',
  2185. 'max',
  2186. 'maxlength',
  2187. 'media',
  2188. 'method',
  2189. 'min',
  2190. 'minlength',
  2191. 'multiple',
  2192. 'muted',
  2193. 'name',
  2194. 'nonce',
  2195. 'noshade',
  2196. 'novalidate',
  2197. 'nowrap',
  2198. 'open',
  2199. 'optimum',
  2200. 'pattern',
  2201. 'placeholder',
  2202. 'playsinline',
  2203. 'popover',
  2204. 'popovertarget',
  2205. 'popovertargetaction',
  2206. 'poster',
  2207. 'preload',
  2208. 'pubdate',
  2209. 'radiogroup',
  2210. 'readonly',
  2211. 'rel',
  2212. 'required',
  2213. 'rev',
  2214. 'reversed',
  2215. 'role',
  2216. 'rows',
  2217. 'rowspan',
  2218. 'spellcheck',
  2219. 'scope',
  2220. 'selected',
  2221. 'shape',
  2222. 'size',
  2223. 'sizes',
  2224. 'span',
  2225. 'srclang',
  2226. 'start',
  2227. 'src',
  2228. 'srcset',
  2229. 'step',
  2230. 'style',
  2231. 'summary',
  2232. 'tabindex',
  2233. 'title',
  2234. 'translate',
  2235. 'type',
  2236. 'usemap',
  2237. 'valign',
  2238. 'value',
  2239. 'width',
  2240. 'wrap',
  2241. 'xmlns',
  2242. 'slot'
  2243. ]),
  2244. xe = w([
  2245. 'accent-height',
  2246. 'accumulate',
  2247. 'additive',
  2248. 'alignment-baseline',
  2249. 'ascent',
  2250. 'attributename',
  2251. 'attributetype',
  2252. 'azimuth',
  2253. 'basefrequency',
  2254. 'baseline-shift',
  2255. 'begin',
  2256. 'bias',
  2257. 'by',
  2258. 'class',
  2259. 'clip',
  2260. 'clippathunits',
  2261. 'clip-path',
  2262. 'clip-rule',
  2263. 'color',
  2264. 'color-interpolation',
  2265. 'color-interpolation-filters',
  2266. 'color-profile',
  2267. 'color-rendering',
  2268. 'cx',
  2269. 'cy',
  2270. 'd',
  2271. 'dx',
  2272. 'dy',
  2273. 'diffuseconstant',
  2274. 'direction',
  2275. 'display',
  2276. 'divisor',
  2277. 'dur',
  2278. 'edgemode',
  2279. 'elevation',
  2280. 'end',
  2281. 'fill',
  2282. 'fill-opacity',
  2283. 'fill-rule',
  2284. 'filter',
  2285. 'filterunits',
  2286. 'flood-color',
  2287. 'flood-opacity',
  2288. 'font-family',
  2289. 'font-size',
  2290. 'font-size-adjust',
  2291. 'font-stretch',
  2292. 'font-style',
  2293. 'font-variant',
  2294. 'font-weight',
  2295. 'fx',
  2296. 'fy',
  2297. 'g1',
  2298. 'g2',
  2299. 'glyph-name',
  2300. 'glyphref',
  2301. 'gradientunits',
  2302. 'gradienttransform',
  2303. 'height',
  2304. 'href',
  2305. 'id',
  2306. 'image-rendering',
  2307. 'in',
  2308. 'in2',
  2309. 'k',
  2310. 'k1',
  2311. 'k2',
  2312. 'k3',
  2313. 'k4',
  2314. 'kerning',
  2315. 'keypoints',
  2316. 'keysplines',
  2317. 'keytimes',
  2318. 'lang',
  2319. 'lengthadjust',
  2320. 'letter-spacing',
  2321. 'kernelmatrix',
  2322. 'kernelunitlength',
  2323. 'lighting-color',
  2324. 'local',
  2325. 'marker-end',
  2326. 'marker-mid',
  2327. 'marker-start',
  2328. 'markerheight',
  2329. 'markerunits',
  2330. 'markerwidth',
  2331. 'maskcontentunits',
  2332. 'maskunits',
  2333. 'max',
  2334. 'mask',
  2335. 'media',
  2336. 'method',
  2337. 'mode',
  2338. 'min',
  2339. 'name',
  2340. 'numoctaves',
  2341. 'offset',
  2342. 'operator',
  2343. 'opacity',
  2344. 'order',
  2345. 'orient',
  2346. 'orientation',
  2347. 'origin',
  2348. 'overflow',
  2349. 'paint-order',
  2350. 'path',
  2351. 'pathlength',
  2352. 'patterncontentunits',
  2353. 'patterntransform',
  2354. 'patternunits',
  2355. 'points',
  2356. 'preservealpha',
  2357. 'preserveaspectratio',
  2358. 'primitiveunits',
  2359. 'r',
  2360. 'rx',
  2361. 'ry',
  2362. 'radius',
  2363. 'refx',
  2364. 'refy',
  2365. 'repeatcount',
  2366. 'repeatdur',
  2367. 'restart',
  2368. 'result',
  2369. 'rotate',
  2370. 'scale',
  2371. 'seed',
  2372. 'shape-rendering',
  2373. 'specularconstant',
  2374. 'specularexponent',
  2375. 'spreadmethod',
  2376. 'startoffset',
  2377. 'stddeviation',
  2378. 'stitchtiles',
  2379. 'stop-color',
  2380. 'stop-opacity',
  2381. 'stroke-dasharray',
  2382. 'stroke-dashoffset',
  2383. 'stroke-linecap',
  2384. 'stroke-linejoin',
  2385. 'stroke-miterlimit',
  2386. 'stroke-opacity',
  2387. 'stroke',
  2388. 'stroke-width',
  2389. 'style',
  2390. 'surfacescale',
  2391. 'systemlanguage',
  2392. 'tabindex',
  2393. 'targetx',
  2394. 'targety',
  2395. 'transform',
  2396. 'transform-origin',
  2397. 'text-anchor',
  2398. 'text-decoration',
  2399. 'text-rendering',
  2400. 'textlength',
  2401. 'type',
  2402. 'u1',
  2403. 'u2',
  2404. 'unicode',
  2405. 'values',
  2406. 'viewbox',
  2407. 'visibility',
  2408. 'version',
  2409. 'vert-adv-y',
  2410. 'vert-origin-x',
  2411. 'vert-origin-y',
  2412. 'width',
  2413. 'word-spacing',
  2414. 'wrap',
  2415. 'writing-mode',
  2416. 'xchannelselector',
  2417. 'ychannelselector',
  2418. 'x',
  2419. 'x1',
  2420. 'x2',
  2421. 'xmlns',
  2422. 'y',
  2423. 'y1',
  2424. 'y2',
  2425. 'z',
  2426. 'zoomandpan'
  2427. ]),
  2428. Pe = w([
  2429. 'accent',
  2430. 'accentunder',
  2431. 'align',
  2432. 'bevelled',
  2433. 'close',
  2434. 'columnsalign',
  2435. 'columnlines',
  2436. 'columnspan',
  2437. 'denomalign',
  2438. 'depth',
  2439. 'dir',
  2440. 'display',
  2441. 'displaystyle',
  2442. 'encoding',
  2443. 'fence',
  2444. 'frame',
  2445. 'height',
  2446. 'href',
  2447. 'id',
  2448. 'largeop',
  2449. 'length',
  2450. 'linethickness',
  2451. 'lspace',
  2452. 'lquote',
  2453. 'mathbackground',
  2454. 'mathcolor',
  2455. 'mathsize',
  2456. 'mathvariant',
  2457. 'maxsize',
  2458. 'minsize',
  2459. 'movablelimits',
  2460. 'notation',
  2461. 'numalign',
  2462. 'open',
  2463. 'rowalign',
  2464. 'rowlines',
  2465. 'rowspacing',
  2466. 'rowspan',
  2467. 'rspace',
  2468. 'rquote',
  2469. 'scriptlevel',
  2470. 'scriptminsize',
  2471. 'scriptsizemultiplier',
  2472. 'selection',
  2473. 'separator',
  2474. 'separators',
  2475. 'stretchy',
  2476. 'subscriptshift',
  2477. 'supscriptshift',
  2478. 'symmetric',
  2479. 'voffset',
  2480. 'width',
  2481. 'xmlns'
  2482. ]),
  2483. Te = w(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']),
  2484. Re = x(/\{\{[\w\W]*|[\w\W]*\}\}/gm),
  2485. qe = x(/<%[\w\W]*|[\w\W]*%>/gm),
  2486. $e = x(/\${[\w\W]*}/gm),
  2487. ze = x(/^data-[\-\w.\u00B7-\uFFFF]/),
  2488. We = x(/^aria-[\-\w]+$/),
  2489. He = x(
  2490. /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
  2491. ),
  2492. Ye = x(/^(?:\w+script|data):/i),
  2493. Xe = x(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),
  2494. Qe = x(/^html$/i),
  2495. et = x(/^[a-z][.\w]*(-[.\w]+)+$/i);
  2496. var tt = Object.freeze({
  2497. __proto__: null,
  2498. MUSTACHE_EXPR: Re,
  2499. ERB_EXPR: qe,
  2500. TMPLIT_EXPR: $e,
  2501. DATA_ATTR: ze,
  2502. ARIA_ATTR: We,
  2503. IS_ALLOWED_URI: He,
  2504. IS_SCRIPT_OR_DATA: Ye,
  2505. ATTR_WHITESPACE: Xe,
  2506. DOCTYPE_NAME: Qe,
  2507. CUSTOM_ELEMENT: et
  2508. });
  2509. const rt = {
  2510. element: 1,
  2511. attribute: 2,
  2512. text: 3,
  2513. cdataSection: 4,
  2514. entityReference: 5,
  2515. entityNode: 6,
  2516. progressingInstruction: 7,
  2517. comment: 8,
  2518. document: 9,
  2519. documentType: 10,
  2520. documentFragment: 11,
  2521. notation: 12
  2522. },
  2523. nt = function getGlobal() {
  2524. return 'undefined' == typeof window ? null : window;
  2525. },
  2526. st = function _createTrustedTypesPolicy(s, o) {
  2527. if ('object' != typeof s || 'function' != typeof s.createPolicy) return null;
  2528. let i = null;
  2529. const u = 'data-tt-policy-suffix';
  2530. o && o.hasAttribute(u) && (i = o.getAttribute(u));
  2531. const _ = 'dompurify' + (i ? '#' + i : '');
  2532. try {
  2533. return s.createPolicy(_, { createHTML: (s) => s, createScriptURL: (s) => s });
  2534. } catch (s) {
  2535. return console.warn('TrustedTypes policy ' + _ + ' could not be created.'), null;
  2536. }
  2537. };
  2538. function createDOMPurify() {
  2539. let o = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : nt();
  2540. const DOMPurify = (s) => createDOMPurify(s);
  2541. if (
  2542. ((DOMPurify.version = '3.1.6'),
  2543. (DOMPurify.removed = []),
  2544. !o || !o.document || o.document.nodeType !== rt.document)
  2545. )
  2546. return (DOMPurify.isSupported = !1), DOMPurify;
  2547. let { document: i } = o;
  2548. const u = i,
  2549. _ = u.currentScript,
  2550. {
  2551. DocumentFragment: x,
  2552. HTMLTemplateElement: j,
  2553. Node: L,
  2554. Element: Re,
  2555. NodeFilter: qe,
  2556. NamedNodeMap: $e = o.NamedNodeMap || o.MozNamedAttrMap,
  2557. HTMLFormElement: ze,
  2558. DOMParser: We,
  2559. trustedTypes: Ye
  2560. } = o,
  2561. Xe = Re.prototype,
  2562. et = lookupGetter(Xe, 'cloneNode'),
  2563. ot = lookupGetter(Xe, 'remove'),
  2564. it = lookupGetter(Xe, 'nextSibling'),
  2565. at = lookupGetter(Xe, 'childNodes'),
  2566. lt = lookupGetter(Xe, 'parentNode');
  2567. if ('function' == typeof j) {
  2568. const s = i.createElement('template');
  2569. s.content && s.content.ownerDocument && (i = s.content.ownerDocument);
  2570. }
  2571. let ct,
  2572. ut = '';
  2573. const {
  2574. implementation: pt,
  2575. createNodeIterator: ht,
  2576. createDocumentFragment: dt,
  2577. getElementsByTagName: mt
  2578. } = i,
  2579. { importNode: gt } = u;
  2580. let yt = {};
  2581. DOMPurify.isSupported =
  2582. 'function' == typeof s &&
  2583. 'function' == typeof lt &&
  2584. pt &&
  2585. void 0 !== pt.createHTMLDocument;
  2586. const {
  2587. MUSTACHE_EXPR: vt,
  2588. ERB_EXPR: bt,
  2589. TMPLIT_EXPR: _t,
  2590. DATA_ATTR: Et,
  2591. ARIA_ATTR: wt,
  2592. IS_SCRIPT_OR_DATA: St,
  2593. ATTR_WHITESPACE: xt,
  2594. CUSTOM_ELEMENT: kt
  2595. } = tt;
  2596. let { IS_ALLOWED_URI: Ct } = tt,
  2597. Ot = null;
  2598. const At = addToSet({}, [...pe, ...de, ...fe, ...be, ...we]);
  2599. let jt = null;
  2600. const It = addToSet({}, [...Se, ...xe, ...Pe, ...Te]);
  2601. let Pt = Object.seal(
  2602. C(null, {
  2603. tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null },
  2604. attributeNameCheck: {
  2605. writable: !0,
  2606. configurable: !1,
  2607. enumerable: !0,
  2608. value: null
  2609. },
  2610. allowCustomizedBuiltInElements: {
  2611. writable: !0,
  2612. configurable: !1,
  2613. enumerable: !0,
  2614. value: !1
  2615. }
  2616. })
  2617. ),
  2618. Mt = null,
  2619. Tt = null,
  2620. Nt = !0,
  2621. Rt = !0,
  2622. Dt = !1,
  2623. Lt = !0,
  2624. Bt = !1,
  2625. Ft = !0,
  2626. qt = !1,
  2627. $t = !1,
  2628. Vt = !1,
  2629. Ut = !1,
  2630. zt = !1,
  2631. Wt = !1,
  2632. Kt = !0,
  2633. Ht = !1;
  2634. const Jt = 'user-content-';
  2635. let Gt = !0,
  2636. Yt = !1,
  2637. Xt = {},
  2638. Zt = null;
  2639. const Qt = addToSet({}, [
  2640. 'annotation-xml',
  2641. 'audio',
  2642. 'colgroup',
  2643. 'desc',
  2644. 'foreignobject',
  2645. 'head',
  2646. 'iframe',
  2647. 'math',
  2648. 'mi',
  2649. 'mn',
  2650. 'mo',
  2651. 'ms',
  2652. 'mtext',
  2653. 'noembed',
  2654. 'noframes',
  2655. 'noscript',
  2656. 'plaintext',
  2657. 'script',
  2658. 'style',
  2659. 'svg',
  2660. 'template',
  2661. 'thead',
  2662. 'title',
  2663. 'video',
  2664. 'xmp'
  2665. ]);
  2666. let er = null;
  2667. const tr = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
  2668. let rr = null;
  2669. const nr = addToSet({}, [
  2670. 'alt',
  2671. 'class',
  2672. 'for',
  2673. 'id',
  2674. 'label',
  2675. 'name',
  2676. 'pattern',
  2677. 'placeholder',
  2678. 'role',
  2679. 'summary',
  2680. 'title',
  2681. 'value',
  2682. 'style',
  2683. 'xmlns'
  2684. ]),
  2685. sr = 'http://www.w3.org/1998/Math/MathML',
  2686. ir = 'http://www.w3.org/2000/svg',
  2687. ar = 'http://www.w3.org/1999/xhtml';
  2688. let lr = ar,
  2689. cr = !1,
  2690. ur = null;
  2691. const pr = addToSet({}, [sr, ir, ar], z);
  2692. let dr = null;
  2693. const fr = ['application/xhtml+xml', 'text/html'],
  2694. mr = 'text/html';
  2695. let gr = null,
  2696. yr = null;
  2697. const vr = i.createElement('form'),
  2698. br = function isRegexOrFunction(s) {
  2699. return s instanceof RegExp || s instanceof Function;
  2700. },
  2701. _r = function _parseConfig() {
  2702. let s = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
  2703. if (!yr || yr !== s) {
  2704. if (
  2705. ((s && 'object' == typeof s) || (s = {}),
  2706. (s = clone(s)),
  2707. (dr = -1 === fr.indexOf(s.PARSER_MEDIA_TYPE) ? mr : s.PARSER_MEDIA_TYPE),
  2708. (gr = 'application/xhtml+xml' === dr ? z : U),
  2709. (Ot = ae(s, 'ALLOWED_TAGS') ? addToSet({}, s.ALLOWED_TAGS, gr) : At),
  2710. (jt = ae(s, 'ALLOWED_ATTR') ? addToSet({}, s.ALLOWED_ATTR, gr) : It),
  2711. (ur = ae(s, 'ALLOWED_NAMESPACES')
  2712. ? addToSet({}, s.ALLOWED_NAMESPACES, z)
  2713. : pr),
  2714. (rr = ae(s, 'ADD_URI_SAFE_ATTR')
  2715. ? addToSet(clone(nr), s.ADD_URI_SAFE_ATTR, gr)
  2716. : nr),
  2717. (er = ae(s, 'ADD_DATA_URI_TAGS')
  2718. ? addToSet(clone(tr), s.ADD_DATA_URI_TAGS, gr)
  2719. : tr),
  2720. (Zt = ae(s, 'FORBID_CONTENTS') ? addToSet({}, s.FORBID_CONTENTS, gr) : Qt),
  2721. (Mt = ae(s, 'FORBID_TAGS') ? addToSet({}, s.FORBID_TAGS, gr) : {}),
  2722. (Tt = ae(s, 'FORBID_ATTR') ? addToSet({}, s.FORBID_ATTR, gr) : {}),
  2723. (Xt = !!ae(s, 'USE_PROFILES') && s.USE_PROFILES),
  2724. (Nt = !1 !== s.ALLOW_ARIA_ATTR),
  2725. (Rt = !1 !== s.ALLOW_DATA_ATTR),
  2726. (Dt = s.ALLOW_UNKNOWN_PROTOCOLS || !1),
  2727. (Lt = !1 !== s.ALLOW_SELF_CLOSE_IN_ATTR),
  2728. (Bt = s.SAFE_FOR_TEMPLATES || !1),
  2729. (Ft = !1 !== s.SAFE_FOR_XML),
  2730. (qt = s.WHOLE_DOCUMENT || !1),
  2731. (Ut = s.RETURN_DOM || !1),
  2732. (zt = s.RETURN_DOM_FRAGMENT || !1),
  2733. (Wt = s.RETURN_TRUSTED_TYPE || !1),
  2734. (Vt = s.FORCE_BODY || !1),
  2735. (Kt = !1 !== s.SANITIZE_DOM),
  2736. (Ht = s.SANITIZE_NAMED_PROPS || !1),
  2737. (Gt = !1 !== s.KEEP_CONTENT),
  2738. (Yt = s.IN_PLACE || !1),
  2739. (Ct = s.ALLOWED_URI_REGEXP || He),
  2740. (lr = s.NAMESPACE || ar),
  2741. (Pt = s.CUSTOM_ELEMENT_HANDLING || {}),
  2742. s.CUSTOM_ELEMENT_HANDLING &&
  2743. br(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) &&
  2744. (Pt.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck),
  2745. s.CUSTOM_ELEMENT_HANDLING &&
  2746. br(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) &&
  2747. (Pt.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),
  2748. s.CUSTOM_ELEMENT_HANDLING &&
  2749. 'boolean' ==
  2750. typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements &&
  2751. (Pt.allowCustomizedBuiltInElements =
  2752. s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),
  2753. Bt && (Rt = !1),
  2754. zt && (Ut = !0),
  2755. Xt &&
  2756. ((Ot = addToSet({}, we)),
  2757. (jt = []),
  2758. !0 === Xt.html && (addToSet(Ot, pe), addToSet(jt, Se)),
  2759. !0 === Xt.svg && (addToSet(Ot, de), addToSet(jt, xe), addToSet(jt, Te)),
  2760. !0 === Xt.svgFilters &&
  2761. (addToSet(Ot, fe), addToSet(jt, xe), addToSet(jt, Te)),
  2762. !0 === Xt.mathMl && (addToSet(Ot, be), addToSet(jt, Pe), addToSet(jt, Te))),
  2763. s.ADD_TAGS && (Ot === At && (Ot = clone(Ot)), addToSet(Ot, s.ADD_TAGS, gr)),
  2764. s.ADD_ATTR && (jt === It && (jt = clone(jt)), addToSet(jt, s.ADD_ATTR, gr)),
  2765. s.ADD_URI_SAFE_ATTR && addToSet(rr, s.ADD_URI_SAFE_ATTR, gr),
  2766. s.FORBID_CONTENTS &&
  2767. (Zt === Qt && (Zt = clone(Zt)), addToSet(Zt, s.FORBID_CONTENTS, gr)),
  2768. Gt && (Ot['#text'] = !0),
  2769. qt && addToSet(Ot, ['html', 'head', 'body']),
  2770. Ot.table && (addToSet(Ot, ['tbody']), delete Mt.tbody),
  2771. s.TRUSTED_TYPES_POLICY)
  2772. ) {
  2773. if ('function' != typeof s.TRUSTED_TYPES_POLICY.createHTML)
  2774. throw ce(
  2775. 'TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'
  2776. );
  2777. if ('function' != typeof s.TRUSTED_TYPES_POLICY.createScriptURL)
  2778. throw ce(
  2779. 'TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'
  2780. );
  2781. (ct = s.TRUSTED_TYPES_POLICY), (ut = ct.createHTML(''));
  2782. } else
  2783. void 0 === ct && (ct = st(Ye, _)),
  2784. null !== ct && 'string' == typeof ut && (ut = ct.createHTML(''));
  2785. w && w(s), (yr = s);
  2786. }
  2787. },
  2788. Er = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']),
  2789. wr = addToSet({}, ['foreignobject', 'annotation-xml']),
  2790. Sr = addToSet({}, ['title', 'style', 'font', 'a', 'script']),
  2791. xr = addToSet({}, [...de, ...fe, ...ye]),
  2792. kr = addToSet({}, [...be, ..._e]),
  2793. Cr = function _checkValidNamespace(s) {
  2794. let o = lt(s);
  2795. (o && o.tagName) || (o = { namespaceURI: lr, tagName: 'template' });
  2796. const i = U(s.tagName),
  2797. u = U(o.tagName);
  2798. return (
  2799. !!ur[s.namespaceURI] &&
  2800. (s.namespaceURI === ir
  2801. ? o.namespaceURI === ar
  2802. ? 'svg' === i
  2803. : o.namespaceURI === sr
  2804. ? 'svg' === i && ('annotation-xml' === u || Er[u])
  2805. : Boolean(xr[i])
  2806. : s.namespaceURI === sr
  2807. ? o.namespaceURI === ar
  2808. ? 'math' === i
  2809. : o.namespaceURI === ir
  2810. ? 'math' === i && wr[u]
  2811. : Boolean(kr[i])
  2812. : s.namespaceURI === ar
  2813. ? !(o.namespaceURI === ir && !wr[u]) &&
  2814. !(o.namespaceURI === sr && !Er[u]) &&
  2815. !kr[i] &&
  2816. (Sr[i] || !xr[i])
  2817. : !('application/xhtml+xml' !== dr || !ur[s.namespaceURI]))
  2818. );
  2819. },
  2820. Or = function _forceRemove(s) {
  2821. V(DOMPurify.removed, { element: s });
  2822. try {
  2823. lt(s).removeChild(s);
  2824. } catch (o) {
  2825. ot(s);
  2826. }
  2827. },
  2828. Ar = function _removeAttribute(s, o) {
  2829. try {
  2830. V(DOMPurify.removed, { attribute: o.getAttributeNode(s), from: o });
  2831. } catch (s) {
  2832. V(DOMPurify.removed, { attribute: null, from: o });
  2833. }
  2834. if ((o.removeAttribute(s), 'is' === s && !jt[s]))
  2835. if (Ut || zt)
  2836. try {
  2837. Or(o);
  2838. } catch (s) {}
  2839. else
  2840. try {
  2841. o.setAttribute(s, '');
  2842. } catch (s) {}
  2843. },
  2844. jr = function _initDocument(s) {
  2845. let o = null,
  2846. u = null;
  2847. if (Vt) s = '<remove></remove>' + s;
  2848. else {
  2849. const o = Y(s, /^[\r\n\t ]+/);
  2850. u = o && o[0];
  2851. }
  2852. 'application/xhtml+xml' === dr &&
  2853. lr === ar &&
  2854. (s =
  2855. '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' +
  2856. s +
  2857. '</body></html>');
  2858. const _ = ct ? ct.createHTML(s) : s;
  2859. if (lr === ar)
  2860. try {
  2861. o = new We().parseFromString(_, dr);
  2862. } catch (s) {}
  2863. if (!o || !o.documentElement) {
  2864. o = pt.createDocument(lr, 'template', null);
  2865. try {
  2866. o.documentElement.innerHTML = cr ? ut : _;
  2867. } catch (s) {}
  2868. }
  2869. const w = o.body || o.documentElement;
  2870. return (
  2871. s && u && w.insertBefore(i.createTextNode(u), w.childNodes[0] || null),
  2872. lr === ar ? mt.call(o, qt ? 'html' : 'body')[0] : qt ? o.documentElement : w
  2873. );
  2874. },
  2875. Ir = function _createNodeIterator(s) {
  2876. return ht.call(
  2877. s.ownerDocument || s,
  2878. s,
  2879. qe.SHOW_ELEMENT |
  2880. qe.SHOW_COMMENT |
  2881. qe.SHOW_TEXT |
  2882. qe.SHOW_PROCESSING_INSTRUCTION |
  2883. qe.SHOW_CDATA_SECTION,
  2884. null
  2885. );
  2886. },
  2887. Pr = function _isClobbered(s) {
  2888. return (
  2889. s instanceof ze &&
  2890. ('string' != typeof s.nodeName ||
  2891. 'string' != typeof s.textContent ||
  2892. 'function' != typeof s.removeChild ||
  2893. !(s.attributes instanceof $e) ||
  2894. 'function' != typeof s.removeAttribute ||
  2895. 'function' != typeof s.setAttribute ||
  2896. 'string' != typeof s.namespaceURI ||
  2897. 'function' != typeof s.insertBefore ||
  2898. 'function' != typeof s.hasChildNodes)
  2899. );
  2900. },
  2901. Mr = function _isNode(s) {
  2902. return 'function' == typeof L && s instanceof L;
  2903. },
  2904. Tr = function _executeHook(s, o, i) {
  2905. yt[s] &&
  2906. B(yt[s], (s) => {
  2907. s.call(DOMPurify, o, i, yr);
  2908. });
  2909. },
  2910. Nr = function _sanitizeElements(s) {
  2911. let o = null;
  2912. if ((Tr('beforeSanitizeElements', s, null), Pr(s))) return Or(s), !0;
  2913. const i = gr(s.nodeName);
  2914. if (
  2915. (Tr('uponSanitizeElement', s, { tagName: i, allowedTags: Ot }),
  2916. s.hasChildNodes() &&
  2917. !Mr(s.firstElementChild) &&
  2918. le(/<[/\w]/g, s.innerHTML) &&
  2919. le(/<[/\w]/g, s.textContent))
  2920. )
  2921. return Or(s), !0;
  2922. if (s.nodeType === rt.progressingInstruction) return Or(s), !0;
  2923. if (Ft && s.nodeType === rt.comment && le(/<[/\w]/g, s.data)) return Or(s), !0;
  2924. if (!Ot[i] || Mt[i]) {
  2925. if (!Mt[i] && Dr(i)) {
  2926. if (Pt.tagNameCheck instanceof RegExp && le(Pt.tagNameCheck, i)) return !1;
  2927. if (Pt.tagNameCheck instanceof Function && Pt.tagNameCheck(i)) return !1;
  2928. }
  2929. if (Gt && !Zt[i]) {
  2930. const o = lt(s) || s.parentNode,
  2931. i = at(s) || s.childNodes;
  2932. if (i && o)
  2933. for (let u = i.length - 1; u >= 0; --u) {
  2934. const _ = et(i[u], !0);
  2935. (_.__removalCount = (s.__removalCount || 0) + 1),
  2936. o.insertBefore(_, it(s));
  2937. }
  2938. }
  2939. return Or(s), !0;
  2940. }
  2941. return s instanceof Re && !Cr(s)
  2942. ? (Or(s), !0)
  2943. : ('noscript' !== i && 'noembed' !== i && 'noframes' !== i) ||
  2944. !le(/<\/no(script|embed|frames)/i, s.innerHTML)
  2945. ? (Bt &&
  2946. s.nodeType === rt.text &&
  2947. ((o = s.textContent),
  2948. B([vt, bt, _t], (s) => {
  2949. o = Z(o, s, ' ');
  2950. }),
  2951. s.textContent !== o &&
  2952. (V(DOMPurify.removed, { element: s.cloneNode() }),
  2953. (s.textContent = o))),
  2954. Tr('afterSanitizeElements', s, null),
  2955. !1)
  2956. : (Or(s), !0);
  2957. },
  2958. Rr = function _isValidAttribute(s, o, u) {
  2959. if (Kt && ('id' === o || 'name' === o) && (u in i || u in vr)) return !1;
  2960. if (Rt && !Tt[o] && le(Et, o));
  2961. else if (Nt && le(wt, o));
  2962. else if (!jt[o] || Tt[o]) {
  2963. if (
  2964. !(
  2965. (Dr(s) &&
  2966. ((Pt.tagNameCheck instanceof RegExp && le(Pt.tagNameCheck, s)) ||
  2967. (Pt.tagNameCheck instanceof Function && Pt.tagNameCheck(s))) &&
  2968. ((Pt.attributeNameCheck instanceof RegExp &&
  2969. le(Pt.attributeNameCheck, o)) ||
  2970. (Pt.attributeNameCheck instanceof Function &&
  2971. Pt.attributeNameCheck(o)))) ||
  2972. ('is' === o &&
  2973. Pt.allowCustomizedBuiltInElements &&
  2974. ((Pt.tagNameCheck instanceof RegExp && le(Pt.tagNameCheck, u)) ||
  2975. (Pt.tagNameCheck instanceof Function && Pt.tagNameCheck(u))))
  2976. )
  2977. )
  2978. return !1;
  2979. } else if (rr[o]);
  2980. else if (le(Ct, Z(u, xt, '')));
  2981. else if (
  2982. ('src' !== o && 'xlink:href' !== o && 'href' !== o) ||
  2983. 'script' === s ||
  2984. 0 !== ee(u, 'data:') ||
  2985. !er[s]
  2986. )
  2987. if (Dt && !le(St, Z(u, xt, '')));
  2988. else if (u) return !1;
  2989. return !0;
  2990. },
  2991. Dr = function _isBasicCustomElement(s) {
  2992. return 'annotation-xml' !== s && Y(s, kt);
  2993. },
  2994. Lr = function _sanitizeAttributes(s) {
  2995. Tr('beforeSanitizeAttributes', s, null);
  2996. const { attributes: o } = s;
  2997. if (!o) return;
  2998. const i = { attrName: '', attrValue: '', keepAttr: !0, allowedAttributes: jt };
  2999. let u = o.length;
  3000. for (; u--; ) {
  3001. const _ = o[u],
  3002. { name: w, namespaceURI: x, value: C } = _,
  3003. j = gr(w);
  3004. let L = 'value' === w ? C : ie(C);
  3005. if (
  3006. ((i.attrName = j),
  3007. (i.attrValue = L),
  3008. (i.keepAttr = !0),
  3009. (i.forceKeepAttr = void 0),
  3010. Tr('uponSanitizeAttribute', s, i),
  3011. (L = i.attrValue),
  3012. Ft && le(/((--!?|])>)|<\/(style|title)/i, L))
  3013. ) {
  3014. Ar(w, s);
  3015. continue;
  3016. }
  3017. if (i.forceKeepAttr) continue;
  3018. if ((Ar(w, s), !i.keepAttr)) continue;
  3019. if (!Lt && le(/\/>/i, L)) {
  3020. Ar(w, s);
  3021. continue;
  3022. }
  3023. Bt &&
  3024. B([vt, bt, _t], (s) => {
  3025. L = Z(L, s, ' ');
  3026. });
  3027. const V = gr(s.nodeName);
  3028. if (Rr(V, j, L)) {
  3029. if (
  3030. (!Ht || ('id' !== j && 'name' !== j) || (Ar(w, s), (L = Jt + L)),
  3031. ct && 'object' == typeof Ye && 'function' == typeof Ye.getAttributeType)
  3032. )
  3033. if (x);
  3034. else
  3035. switch (Ye.getAttributeType(V, j)) {
  3036. case 'TrustedHTML':
  3037. L = ct.createHTML(L);
  3038. break;
  3039. case 'TrustedScriptURL':
  3040. L = ct.createScriptURL(L);
  3041. }
  3042. try {
  3043. x ? s.setAttributeNS(x, w, L) : s.setAttribute(w, L),
  3044. Pr(s) ? Or(s) : $(DOMPurify.removed);
  3045. } catch (s) {}
  3046. }
  3047. }
  3048. Tr('afterSanitizeAttributes', s, null);
  3049. },
  3050. Br = function _sanitizeShadowDOM(s) {
  3051. let o = null;
  3052. const i = Ir(s);
  3053. for (Tr('beforeSanitizeShadowDOM', s, null); (o = i.nextNode()); )
  3054. Tr('uponSanitizeShadowNode', o, null),
  3055. Nr(o) || (o.content instanceof x && _sanitizeShadowDOM(o.content), Lr(o));
  3056. Tr('afterSanitizeShadowDOM', s, null);
  3057. };
  3058. return (
  3059. (DOMPurify.sanitize = function (s) {
  3060. let o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  3061. i = null,
  3062. _ = null,
  3063. w = null,
  3064. C = null;
  3065. if (((cr = !s), cr && (s = '\x3c!--\x3e'), 'string' != typeof s && !Mr(s))) {
  3066. if ('function' != typeof s.toString) throw ce('toString is not a function');
  3067. if ('string' != typeof (s = s.toString()))
  3068. throw ce('dirty is not a string, aborting');
  3069. }
  3070. if (!DOMPurify.isSupported) return s;
  3071. if (
  3072. ($t || _r(o), (DOMPurify.removed = []), 'string' == typeof s && (Yt = !1), Yt)
  3073. ) {
  3074. if (s.nodeName) {
  3075. const o = gr(s.nodeName);
  3076. if (!Ot[o] || Mt[o])
  3077. throw ce('root node is forbidden and cannot be sanitized in-place');
  3078. }
  3079. } else if (s instanceof L)
  3080. (i = jr('\x3c!----\x3e')),
  3081. (_ = i.ownerDocument.importNode(s, !0)),
  3082. (_.nodeType === rt.element && 'BODY' === _.nodeName) || 'HTML' === _.nodeName
  3083. ? (i = _)
  3084. : i.appendChild(_);
  3085. else {
  3086. if (!Ut && !Bt && !qt && -1 === s.indexOf('<'))
  3087. return ct && Wt ? ct.createHTML(s) : s;
  3088. if (((i = jr(s)), !i)) return Ut ? null : Wt ? ut : '';
  3089. }
  3090. i && Vt && Or(i.firstChild);
  3091. const j = Ir(Yt ? s : i);
  3092. for (; (w = j.nextNode()); )
  3093. Nr(w) || (w.content instanceof x && Br(w.content), Lr(w));
  3094. if (Yt) return s;
  3095. if (Ut) {
  3096. if (zt)
  3097. for (C = dt.call(i.ownerDocument); i.firstChild; )
  3098. C.appendChild(i.firstChild);
  3099. else C = i;
  3100. return (jt.shadowroot || jt.shadowrootmode) && (C = gt.call(u, C, !0)), C;
  3101. }
  3102. let $ = qt ? i.outerHTML : i.innerHTML;
  3103. return (
  3104. qt &&
  3105. Ot['!doctype'] &&
  3106. i.ownerDocument &&
  3107. i.ownerDocument.doctype &&
  3108. i.ownerDocument.doctype.name &&
  3109. le(Qe, i.ownerDocument.doctype.name) &&
  3110. ($ = '<!DOCTYPE ' + i.ownerDocument.doctype.name + '>\n' + $),
  3111. Bt &&
  3112. B([vt, bt, _t], (s) => {
  3113. $ = Z($, s, ' ');
  3114. }),
  3115. ct && Wt ? ct.createHTML($) : $
  3116. );
  3117. }),
  3118. (DOMPurify.setConfig = function () {
  3119. _r(arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}),
  3120. ($t = !0);
  3121. }),
  3122. (DOMPurify.clearConfig = function () {
  3123. (yr = null), ($t = !1);
  3124. }),
  3125. (DOMPurify.isValidAttribute = function (s, o, i) {
  3126. yr || _r({});
  3127. const u = gr(s),
  3128. _ = gr(o);
  3129. return Rr(u, _, i);
  3130. }),
  3131. (DOMPurify.addHook = function (s, o) {
  3132. 'function' == typeof o && ((yt[s] = yt[s] || []), V(yt[s], o));
  3133. }),
  3134. (DOMPurify.removeHook = function (s) {
  3135. if (yt[s]) return $(yt[s]);
  3136. }),
  3137. (DOMPurify.removeHooks = function (s) {
  3138. yt[s] && (yt[s] = []);
  3139. }),
  3140. (DOMPurify.removeAllHooks = function () {
  3141. yt = {};
  3142. }),
  3143. DOMPurify
  3144. );
  3145. }
  3146. return createDOMPurify();
  3147. })();
  3148. },
  3149. 78004: (s) => {
  3150. 'use strict';
  3151. class SubRange {
  3152. constructor(s, o) {
  3153. (this.low = s), (this.high = o), (this.length = 1 + o - s);
  3154. }
  3155. overlaps(s) {
  3156. return !(this.high < s.low || this.low > s.high);
  3157. }
  3158. touches(s) {
  3159. return !(this.high + 1 < s.low || this.low - 1 > s.high);
  3160. }
  3161. add(s) {
  3162. return new SubRange(Math.min(this.low, s.low), Math.max(this.high, s.high));
  3163. }
  3164. subtract(s) {
  3165. return s.low <= this.low && s.high >= this.high
  3166. ? []
  3167. : s.low > this.low && s.high < this.high
  3168. ? [new SubRange(this.low, s.low - 1), new SubRange(s.high + 1, this.high)]
  3169. : s.low <= this.low
  3170. ? [new SubRange(s.high + 1, this.high)]
  3171. : [new SubRange(this.low, s.low - 1)];
  3172. }
  3173. toString() {
  3174. return this.low == this.high ? this.low.toString() : this.low + '-' + this.high;
  3175. }
  3176. }
  3177. class DRange {
  3178. constructor(s, o) {
  3179. (this.ranges = []), (this.length = 0), null != s && this.add(s, o);
  3180. }
  3181. _update_length() {
  3182. this.length = this.ranges.reduce((s, o) => s + o.length, 0);
  3183. }
  3184. add(s, o) {
  3185. var _add = (s) => {
  3186. for (var o = 0; o < this.ranges.length && !s.touches(this.ranges[o]); ) o++;
  3187. for (
  3188. var i = this.ranges.slice(0, o);
  3189. o < this.ranges.length && s.touches(this.ranges[o]);
  3190. )
  3191. (s = s.add(this.ranges[o])), o++;
  3192. i.push(s), (this.ranges = i.concat(this.ranges.slice(o))), this._update_length();
  3193. };
  3194. return (
  3195. s instanceof DRange
  3196. ? s.ranges.forEach(_add)
  3197. : (null == o && (o = s), _add(new SubRange(s, o))),
  3198. this
  3199. );
  3200. }
  3201. subtract(s, o) {
  3202. var _subtract = (s) => {
  3203. for (var o = 0; o < this.ranges.length && !s.overlaps(this.ranges[o]); ) o++;
  3204. for (
  3205. var i = this.ranges.slice(0, o);
  3206. o < this.ranges.length && s.overlaps(this.ranges[o]);
  3207. )
  3208. (i = i.concat(this.ranges[o].subtract(s))), o++;
  3209. (this.ranges = i.concat(this.ranges.slice(o))), this._update_length();
  3210. };
  3211. return (
  3212. s instanceof DRange
  3213. ? s.ranges.forEach(_subtract)
  3214. : (null == o && (o = s), _subtract(new SubRange(s, o))),
  3215. this
  3216. );
  3217. }
  3218. intersect(s, o) {
  3219. var i = [],
  3220. _intersect = (s) => {
  3221. for (var o = 0; o < this.ranges.length && !s.overlaps(this.ranges[o]); ) o++;
  3222. for (; o < this.ranges.length && s.overlaps(this.ranges[o]); ) {
  3223. var u = Math.max(this.ranges[o].low, s.low),
  3224. _ = Math.min(this.ranges[o].high, s.high);
  3225. i.push(new SubRange(u, _)), o++;
  3226. }
  3227. };
  3228. return (
  3229. s instanceof DRange
  3230. ? s.ranges.forEach(_intersect)
  3231. : (null == o && (o = s), _intersect(new SubRange(s, o))),
  3232. (this.ranges = i),
  3233. this._update_length(),
  3234. this
  3235. );
  3236. }
  3237. index(s) {
  3238. for (var o = 0; o < this.ranges.length && this.ranges[o].length <= s; )
  3239. (s -= this.ranges[o].length), o++;
  3240. return this.ranges[o].low + s;
  3241. }
  3242. toString() {
  3243. return '[ ' + this.ranges.join(', ') + ' ]';
  3244. }
  3245. clone() {
  3246. return new DRange(this);
  3247. }
  3248. numbers() {
  3249. return this.ranges.reduce((s, o) => {
  3250. for (var i = o.low; i <= o.high; ) s.push(i), i++;
  3251. return s;
  3252. }, []);
  3253. }
  3254. subranges() {
  3255. return this.ranges.map((s) => ({
  3256. low: s.low,
  3257. high: s.high,
  3258. length: 1 + s.high - s.low
  3259. }));
  3260. }
  3261. }
  3262. s.exports = DRange;
  3263. },
  3264. 37007: (s) => {
  3265. 'use strict';
  3266. var o,
  3267. i = 'object' == typeof Reflect ? Reflect : null,
  3268. u =
  3269. i && 'function' == typeof i.apply
  3270. ? i.apply
  3271. : function ReflectApply(s, o, i) {
  3272. return Function.prototype.apply.call(s, o, i);
  3273. };
  3274. o =
  3275. i && 'function' == typeof i.ownKeys
  3276. ? i.ownKeys
  3277. : Object.getOwnPropertySymbols
  3278. ? function ReflectOwnKeys(s) {
  3279. return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s));
  3280. }
  3281. : function ReflectOwnKeys(s) {
  3282. return Object.getOwnPropertyNames(s);
  3283. };
  3284. var _ =
  3285. Number.isNaN ||
  3286. function NumberIsNaN(s) {
  3287. return s != s;
  3288. };
  3289. function EventEmitter() {
  3290. EventEmitter.init.call(this);
  3291. }
  3292. (s.exports = EventEmitter),
  3293. (s.exports.once = function once(s, o) {
  3294. return new Promise(function (i, u) {
  3295. function errorListener(i) {
  3296. s.removeListener(o, resolver), u(i);
  3297. }
  3298. function resolver() {
  3299. 'function' == typeof s.removeListener && s.removeListener('error', errorListener),
  3300. i([].slice.call(arguments));
  3301. }
  3302. eventTargetAgnosticAddListener(s, o, resolver, { once: !0 }),
  3303. 'error' !== o &&
  3304. (function addErrorHandlerIfEventEmitter(s, o, i) {
  3305. 'function' == typeof s.on && eventTargetAgnosticAddListener(s, 'error', o, i);
  3306. })(s, errorListener, { once: !0 });
  3307. });
  3308. }),
  3309. (EventEmitter.EventEmitter = EventEmitter),
  3310. (EventEmitter.prototype._events = void 0),
  3311. (EventEmitter.prototype._eventsCount = 0),
  3312. (EventEmitter.prototype._maxListeners = void 0);
  3313. var w = 10;
  3314. function checkListener(s) {
  3315. if ('function' != typeof s)
  3316. throw new TypeError(
  3317. 'The "listener" argument must be of type Function. Received type ' + typeof s
  3318. );
  3319. }
  3320. function _getMaxListeners(s) {
  3321. return void 0 === s._maxListeners ? EventEmitter.defaultMaxListeners : s._maxListeners;
  3322. }
  3323. function _addListener(s, o, i, u) {
  3324. var _, w, x;
  3325. if (
  3326. (checkListener(i),
  3327. void 0 === (w = s._events)
  3328. ? ((w = s._events = Object.create(null)), (s._eventsCount = 0))
  3329. : (void 0 !== w.newListener &&
  3330. (s.emit('newListener', o, i.listener ? i.listener : i), (w = s._events)),
  3331. (x = w[o])),
  3332. void 0 === x)
  3333. )
  3334. (x = w[o] = i), ++s._eventsCount;
  3335. else if (
  3336. ('function' == typeof x
  3337. ? (x = w[o] = u ? [i, x] : [x, i])
  3338. : u
  3339. ? x.unshift(i)
  3340. : x.push(i),
  3341. (_ = _getMaxListeners(s)) > 0 && x.length > _ && !x.warned)
  3342. ) {
  3343. x.warned = !0;
  3344. var C = new Error(
  3345. 'Possible EventEmitter memory leak detected. ' +
  3346. x.length +
  3347. ' ' +
  3348. String(o) +
  3349. ' listeners added. Use emitter.setMaxListeners() to increase limit'
  3350. );
  3351. (C.name = 'MaxListenersExceededWarning'),
  3352. (C.emitter = s),
  3353. (C.type = o),
  3354. (C.count = x.length),
  3355. (function ProcessEmitWarning(s) {
  3356. console && console.warn && console.warn(s);
  3357. })(C);
  3358. }
  3359. return s;
  3360. }
  3361. function onceWrapper() {
  3362. if (!this.fired)
  3363. return (
  3364. this.target.removeListener(this.type, this.wrapFn),
  3365. (this.fired = !0),
  3366. 0 === arguments.length
  3367. ? this.listener.call(this.target)
  3368. : this.listener.apply(this.target, arguments)
  3369. );
  3370. }
  3371. function _onceWrap(s, o, i) {
  3372. var u = { fired: !1, wrapFn: void 0, target: s, type: o, listener: i },
  3373. _ = onceWrapper.bind(u);
  3374. return (_.listener = i), (u.wrapFn = _), _;
  3375. }
  3376. function _listeners(s, o, i) {
  3377. var u = s._events;
  3378. if (void 0 === u) return [];
  3379. var _ = u[o];
  3380. return void 0 === _
  3381. ? []
  3382. : 'function' == typeof _
  3383. ? i
  3384. ? [_.listener || _]
  3385. : [_]
  3386. : i
  3387. ? (function unwrapListeners(s) {
  3388. for (var o = new Array(s.length), i = 0; i < o.length; ++i)
  3389. o[i] = s[i].listener || s[i];
  3390. return o;
  3391. })(_)
  3392. : arrayClone(_, _.length);
  3393. }
  3394. function listenerCount(s) {
  3395. var o = this._events;
  3396. if (void 0 !== o) {
  3397. var i = o[s];
  3398. if ('function' == typeof i) return 1;
  3399. if (void 0 !== i) return i.length;
  3400. }
  3401. return 0;
  3402. }
  3403. function arrayClone(s, o) {
  3404. for (var i = new Array(o), u = 0; u < o; ++u) i[u] = s[u];
  3405. return i;
  3406. }
  3407. function eventTargetAgnosticAddListener(s, o, i, u) {
  3408. if ('function' == typeof s.on) u.once ? s.once(o, i) : s.on(o, i);
  3409. else {
  3410. if ('function' != typeof s.addEventListener)
  3411. throw new TypeError(
  3412. 'The "emitter" argument must be of type EventEmitter. Received type ' + typeof s
  3413. );
  3414. s.addEventListener(o, function wrapListener(_) {
  3415. u.once && s.removeEventListener(o, wrapListener), i(_);
  3416. });
  3417. }
  3418. }
  3419. Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
  3420. enumerable: !0,
  3421. get: function () {
  3422. return w;
  3423. },
  3424. set: function (s) {
  3425. if ('number' != typeof s || s < 0 || _(s))
  3426. throw new RangeError(
  3427. 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
  3428. s +
  3429. '.'
  3430. );
  3431. w = s;
  3432. }
  3433. }),
  3434. (EventEmitter.init = function () {
  3435. (void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events) ||
  3436. ((this._events = Object.create(null)), (this._eventsCount = 0)),
  3437. (this._maxListeners = this._maxListeners || void 0);
  3438. }),
  3439. (EventEmitter.prototype.setMaxListeners = function setMaxListeners(s) {
  3440. if ('number' != typeof s || s < 0 || _(s))
  3441. throw new RangeError(
  3442. 'The value of "n" is out of range. It must be a non-negative number. Received ' +
  3443. s +
  3444. '.'
  3445. );
  3446. return (this._maxListeners = s), this;
  3447. }),
  3448. (EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
  3449. return _getMaxListeners(this);
  3450. }),
  3451. (EventEmitter.prototype.emit = function emit(s) {
  3452. for (var o = [], i = 1; i < arguments.length; i++) o.push(arguments[i]);
  3453. var _ = 'error' === s,
  3454. w = this._events;
  3455. if (void 0 !== w) _ = _ && void 0 === w.error;
  3456. else if (!_) return !1;
  3457. if (_) {
  3458. var x;
  3459. if ((o.length > 0 && (x = o[0]), x instanceof Error)) throw x;
  3460. var C = new Error('Unhandled error.' + (x ? ' (' + x.message + ')' : ''));
  3461. throw ((C.context = x), C);
  3462. }
  3463. var j = w[s];
  3464. if (void 0 === j) return !1;
  3465. if ('function' == typeof j) u(j, this, o);
  3466. else {
  3467. var L = j.length,
  3468. B = arrayClone(j, L);
  3469. for (i = 0; i < L; ++i) u(B[i], this, o);
  3470. }
  3471. return !0;
  3472. }),
  3473. (EventEmitter.prototype.addListener = function addListener(s, o) {
  3474. return _addListener(this, s, o, !1);
  3475. }),
  3476. (EventEmitter.prototype.on = EventEmitter.prototype.addListener),
  3477. (EventEmitter.prototype.prependListener = function prependListener(s, o) {
  3478. return _addListener(this, s, o, !0);
  3479. }),
  3480. (EventEmitter.prototype.once = function once(s, o) {
  3481. return checkListener(o), this.on(s, _onceWrap(this, s, o)), this;
  3482. }),
  3483. (EventEmitter.prototype.prependOnceListener = function prependOnceListener(s, o) {
  3484. return checkListener(o), this.prependListener(s, _onceWrap(this, s, o)), this;
  3485. }),
  3486. (EventEmitter.prototype.removeListener = function removeListener(s, o) {
  3487. var i, u, _, w, x;
  3488. if ((checkListener(o), void 0 === (u = this._events))) return this;
  3489. if (void 0 === (i = u[s])) return this;
  3490. if (i === o || i.listener === o)
  3491. 0 == --this._eventsCount
  3492. ? (this._events = Object.create(null))
  3493. : (delete u[s],
  3494. u.removeListener && this.emit('removeListener', s, i.listener || o));
  3495. else if ('function' != typeof i) {
  3496. for (_ = -1, w = i.length - 1; w >= 0; w--)
  3497. if (i[w] === o || i[w].listener === o) {
  3498. (x = i[w].listener), (_ = w);
  3499. break;
  3500. }
  3501. if (_ < 0) return this;
  3502. 0 === _
  3503. ? i.shift()
  3504. : (function spliceOne(s, o) {
  3505. for (; o + 1 < s.length; o++) s[o] = s[o + 1];
  3506. s.pop();
  3507. })(i, _),
  3508. 1 === i.length && (u[s] = i[0]),
  3509. void 0 !== u.removeListener && this.emit('removeListener', s, x || o);
  3510. }
  3511. return this;
  3512. }),
  3513. (EventEmitter.prototype.off = EventEmitter.prototype.removeListener),
  3514. (EventEmitter.prototype.removeAllListeners = function removeAllListeners(s) {
  3515. var o, i, u;
  3516. if (void 0 === (i = this._events)) return this;
  3517. if (void 0 === i.removeListener)
  3518. return (
  3519. 0 === arguments.length
  3520. ? ((this._events = Object.create(null)), (this._eventsCount = 0))
  3521. : void 0 !== i[s] &&
  3522. (0 == --this._eventsCount
  3523. ? (this._events = Object.create(null))
  3524. : delete i[s]),
  3525. this
  3526. );
  3527. if (0 === arguments.length) {
  3528. var _,
  3529. w = Object.keys(i);
  3530. for (u = 0; u < w.length; ++u)
  3531. 'removeListener' !== (_ = w[u]) && this.removeAllListeners(_);
  3532. return (
  3533. this.removeAllListeners('removeListener'),
  3534. (this._events = Object.create(null)),
  3535. (this._eventsCount = 0),
  3536. this
  3537. );
  3538. }
  3539. if ('function' == typeof (o = i[s])) this.removeListener(s, o);
  3540. else if (void 0 !== o)
  3541. for (u = o.length - 1; u >= 0; u--) this.removeListener(s, o[u]);
  3542. return this;
  3543. }),
  3544. (EventEmitter.prototype.listeners = function listeners(s) {
  3545. return _listeners(this, s, !0);
  3546. }),
  3547. (EventEmitter.prototype.rawListeners = function rawListeners(s) {
  3548. return _listeners(this, s, !1);
  3549. }),
  3550. (EventEmitter.listenerCount = function (s, o) {
  3551. return 'function' == typeof s.listenerCount
  3552. ? s.listenerCount(o)
  3553. : listenerCount.call(s, o);
  3554. }),
  3555. (EventEmitter.prototype.listenerCount = listenerCount),
  3556. (EventEmitter.prototype.eventNames = function eventNames() {
  3557. return this._eventsCount > 0 ? o(this._events) : [];
  3558. });
  3559. },
  3560. 85587: (s, o, i) => {
  3561. 'use strict';
  3562. var u = i(26311),
  3563. _ = create(Error);
  3564. function create(s) {
  3565. return (FormattedError.displayName = s.displayName || s.name), FormattedError;
  3566. function FormattedError(o) {
  3567. return o && (o = u.apply(null, arguments)), new s(o);
  3568. }
  3569. }
  3570. (s.exports = _),
  3571. (_.eval = create(EvalError)),
  3572. (_.range = create(RangeError)),
  3573. (_.reference = create(ReferenceError)),
  3574. (_.syntax = create(SyntaxError)),
  3575. (_.type = create(TypeError)),
  3576. (_.uri = create(URIError)),
  3577. (_.create = create);
  3578. },
  3579. 26311: (s) => {
  3580. !(function () {
  3581. var o;
  3582. function format(s) {
  3583. for (
  3584. var o,
  3585. i,
  3586. u,
  3587. _,
  3588. w = 1,
  3589. x = [].slice.call(arguments),
  3590. C = 0,
  3591. j = s.length,
  3592. L = '',
  3593. B = !1,
  3594. $ = !1,
  3595. nextArg = function () {
  3596. return x[w++];
  3597. },
  3598. slurpNumber = function () {
  3599. for (var i = ''; /\d/.test(s[C]); ) (i += s[C++]), (o = s[C]);
  3600. return i.length > 0 ? parseInt(i) : null;
  3601. };
  3602. C < j;
  3603. ++C
  3604. )
  3605. if (((o = s[C]), B))
  3606. switch (
  3607. ((B = !1),
  3608. '.' == o
  3609. ? (($ = !1), (o = s[++C]))
  3610. : '0' == o && '.' == s[C + 1]
  3611. ? (($ = !0), (o = s[(C += 2)]))
  3612. : ($ = !0),
  3613. (_ = slurpNumber()),
  3614. o)
  3615. ) {
  3616. case 'b':
  3617. L += parseInt(nextArg(), 10).toString(2);
  3618. break;
  3619. case 'c':
  3620. L +=
  3621. 'string' == typeof (i = nextArg()) || i instanceof String
  3622. ? i
  3623. : String.fromCharCode(parseInt(i, 10));
  3624. break;
  3625. case 'd':
  3626. L += parseInt(nextArg(), 10);
  3627. break;
  3628. case 'f':
  3629. (u = String(parseFloat(nextArg()).toFixed(_ || 6))),
  3630. (L += $ ? u : u.replace(/^0/, ''));
  3631. break;
  3632. case 'j':
  3633. L += JSON.stringify(nextArg());
  3634. break;
  3635. case 'o':
  3636. L += '0' + parseInt(nextArg(), 10).toString(8);
  3637. break;
  3638. case 's':
  3639. L += nextArg();
  3640. break;
  3641. case 'x':
  3642. L += '0x' + parseInt(nextArg(), 10).toString(16);
  3643. break;
  3644. case 'X':
  3645. L += '0x' + parseInt(nextArg(), 10).toString(16).toUpperCase();
  3646. break;
  3647. default:
  3648. L += o;
  3649. }
  3650. else '%' === o ? (B = !0) : (L += o);
  3651. return L;
  3652. }
  3653. ((o = s.exports = format).format = format),
  3654. (o.vsprintf = function vsprintf(s, o) {
  3655. return format.apply(null, [s].concat(o));
  3656. }),
  3657. 'undefined' != typeof console &&
  3658. 'function' == typeof console.log &&
  3659. (o.printf = function printf() {
  3660. console.log(format.apply(null, arguments));
  3661. });
  3662. })();
  3663. },
  3664. 45981: (s) => {
  3665. function deepFreeze(s) {
  3666. return (
  3667. s instanceof Map
  3668. ? (s.clear =
  3669. s.delete =
  3670. s.set =
  3671. function () {
  3672. throw new Error('map is read-only');
  3673. })
  3674. : s instanceof Set &&
  3675. (s.add =
  3676. s.clear =
  3677. s.delete =
  3678. function () {
  3679. throw new Error('set is read-only');
  3680. }),
  3681. Object.freeze(s),
  3682. Object.getOwnPropertyNames(s).forEach(function (o) {
  3683. var i = s[o];
  3684. 'object' != typeof i || Object.isFrozen(i) || deepFreeze(i);
  3685. }),
  3686. s
  3687. );
  3688. }
  3689. var o = deepFreeze,
  3690. i = deepFreeze;
  3691. o.default = i;
  3692. class Response {
  3693. constructor(s) {
  3694. void 0 === s.data && (s.data = {}), (this.data = s.data), (this.isMatchIgnored = !1);
  3695. }
  3696. ignoreMatch() {
  3697. this.isMatchIgnored = !0;
  3698. }
  3699. }
  3700. function escapeHTML(s) {
  3701. return s
  3702. .replace(/&/g, '&amp;')
  3703. .replace(/</g, '&lt;')
  3704. .replace(/>/g, '&gt;')
  3705. .replace(/"/g, '&quot;')
  3706. .replace(/'/g, '&#x27;');
  3707. }
  3708. function inherit(s, ...o) {
  3709. const i = Object.create(null);
  3710. for (const o in s) i[o] = s[o];
  3711. return (
  3712. o.forEach(function (s) {
  3713. for (const o in s) i[o] = s[o];
  3714. }),
  3715. i
  3716. );
  3717. }
  3718. const emitsWrappingTags = (s) => !!s.kind;
  3719. class HTMLRenderer {
  3720. constructor(s, o) {
  3721. (this.buffer = ''), (this.classPrefix = o.classPrefix), s.walk(this);
  3722. }
  3723. addText(s) {
  3724. this.buffer += escapeHTML(s);
  3725. }
  3726. openNode(s) {
  3727. if (!emitsWrappingTags(s)) return;
  3728. let o = s.kind;
  3729. s.sublanguage || (o = `${this.classPrefix}${o}`), this.span(o);
  3730. }
  3731. closeNode(s) {
  3732. emitsWrappingTags(s) && (this.buffer += '</span>');
  3733. }
  3734. value() {
  3735. return this.buffer;
  3736. }
  3737. span(s) {
  3738. this.buffer += `<span class="${s}">`;
  3739. }
  3740. }
  3741. class TokenTree {
  3742. constructor() {
  3743. (this.rootNode = { children: [] }), (this.stack = [this.rootNode]);
  3744. }
  3745. get top() {
  3746. return this.stack[this.stack.length - 1];
  3747. }
  3748. get root() {
  3749. return this.rootNode;
  3750. }
  3751. add(s) {
  3752. this.top.children.push(s);
  3753. }
  3754. openNode(s) {
  3755. const o = { kind: s, children: [] };
  3756. this.add(o), this.stack.push(o);
  3757. }
  3758. closeNode() {
  3759. if (this.stack.length > 1) return this.stack.pop();
  3760. }
  3761. closeAllNodes() {
  3762. for (; this.closeNode(); );
  3763. }
  3764. toJSON() {
  3765. return JSON.stringify(this.rootNode, null, 4);
  3766. }
  3767. walk(s) {
  3768. return this.constructor._walk(s, this.rootNode);
  3769. }
  3770. static _walk(s, o) {
  3771. return (
  3772. 'string' == typeof o
  3773. ? s.addText(o)
  3774. : o.children &&
  3775. (s.openNode(o), o.children.forEach((o) => this._walk(s, o)), s.closeNode(o)),
  3776. s
  3777. );
  3778. }
  3779. static _collapse(s) {
  3780. 'string' != typeof s &&
  3781. s.children &&
  3782. (s.children.every((s) => 'string' == typeof s)
  3783. ? (s.children = [s.children.join('')])
  3784. : s.children.forEach((s) => {
  3785. TokenTree._collapse(s);
  3786. }));
  3787. }
  3788. }
  3789. class TokenTreeEmitter extends TokenTree {
  3790. constructor(s) {
  3791. super(), (this.options = s);
  3792. }
  3793. addKeyword(s, o) {
  3794. '' !== s && (this.openNode(o), this.addText(s), this.closeNode());
  3795. }
  3796. addText(s) {
  3797. '' !== s && this.add(s);
  3798. }
  3799. addSublanguage(s, o) {
  3800. const i = s.root;
  3801. (i.kind = o), (i.sublanguage = !0), this.add(i);
  3802. }
  3803. toHTML() {
  3804. return new HTMLRenderer(this, this.options).value();
  3805. }
  3806. finalize() {
  3807. return !0;
  3808. }
  3809. }
  3810. function source(s) {
  3811. return s ? ('string' == typeof s ? s : s.source) : null;
  3812. }
  3813. const u = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
  3814. const _ = '[a-zA-Z]\\w*',
  3815. w = '[a-zA-Z_]\\w*',
  3816. x = '\\b\\d+(\\.\\d+)?',
  3817. C = '(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)',
  3818. j = '\\b(0b[01]+)',
  3819. L = { begin: '\\\\[\\s\\S]', relevance: 0 },
  3820. B = { className: 'string', begin: "'", end: "'", illegal: '\\n', contains: [L] },
  3821. $ = { className: 'string', begin: '"', end: '"', illegal: '\\n', contains: [L] },
  3822. V = {
  3823. begin:
  3824. /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
  3825. },
  3826. COMMENT = function (s, o, i = {}) {
  3827. const u = inherit({ className: 'comment', begin: s, end: o, contains: [] }, i);
  3828. return (
  3829. u.contains.push(V),
  3830. u.contains.push({
  3831. className: 'doctag',
  3832. begin: '(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):',
  3833. relevance: 0
  3834. }),
  3835. u
  3836. );
  3837. },
  3838. U = COMMENT('//', '$'),
  3839. z = COMMENT('/\\*', '\\*/'),
  3840. Y = COMMENT('#', '$'),
  3841. Z = { className: 'number', begin: x, relevance: 0 },
  3842. ee = { className: 'number', begin: C, relevance: 0 },
  3843. ie = { className: 'number', begin: j, relevance: 0 },
  3844. ae = {
  3845. className: 'number',
  3846. begin:
  3847. x +
  3848. '(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?',
  3849. relevance: 0
  3850. },
  3851. le = {
  3852. begin: /(?=\/[^/\n]*\/)/,
  3853. contains: [
  3854. {
  3855. className: 'regexp',
  3856. begin: /\//,
  3857. end: /\/[gimuy]*/,
  3858. illegal: /\n/,
  3859. contains: [L, { begin: /\[/, end: /\]/, relevance: 0, contains: [L] }]
  3860. }
  3861. ]
  3862. },
  3863. ce = { className: 'title', begin: _, relevance: 0 },
  3864. pe = { className: 'title', begin: w, relevance: 0 },
  3865. de = { begin: '\\.\\s*' + w, relevance: 0 };
  3866. var fe = Object.freeze({
  3867. __proto__: null,
  3868. MATCH_NOTHING_RE: /\b\B/,
  3869. IDENT_RE: _,
  3870. UNDERSCORE_IDENT_RE: w,
  3871. NUMBER_RE: x,
  3872. C_NUMBER_RE: C,
  3873. BINARY_NUMBER_RE: j,
  3874. RE_STARTERS_RE:
  3875. '!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~',
  3876. SHEBANG: (s = {}) => {
  3877. const o = /^#![ ]*\//;
  3878. return (
  3879. s.binary &&
  3880. (s.begin = (function concat(...s) {
  3881. return s.map((s) => source(s)).join('');
  3882. })(o, /.*\b/, s.binary, /\b.*/)),
  3883. inherit(
  3884. {
  3885. className: 'meta',
  3886. begin: o,
  3887. end: /$/,
  3888. relevance: 0,
  3889. 'on:begin': (s, o) => {
  3890. 0 !== s.index && o.ignoreMatch();
  3891. }
  3892. },
  3893. s
  3894. )
  3895. );
  3896. },
  3897. BACKSLASH_ESCAPE: L,
  3898. APOS_STRING_MODE: B,
  3899. QUOTE_STRING_MODE: $,
  3900. PHRASAL_WORDS_MODE: V,
  3901. COMMENT,
  3902. C_LINE_COMMENT_MODE: U,
  3903. C_BLOCK_COMMENT_MODE: z,
  3904. HASH_COMMENT_MODE: Y,
  3905. NUMBER_MODE: Z,
  3906. C_NUMBER_MODE: ee,
  3907. BINARY_NUMBER_MODE: ie,
  3908. CSS_NUMBER_MODE: ae,
  3909. REGEXP_MODE: le,
  3910. TITLE_MODE: ce,
  3911. UNDERSCORE_TITLE_MODE: pe,
  3912. METHOD_GUARD: de,
  3913. END_SAME_AS_BEGIN: function (s) {
  3914. return Object.assign(s, {
  3915. 'on:begin': (s, o) => {
  3916. o.data._beginMatch = s[1];
  3917. },
  3918. 'on:end': (s, o) => {
  3919. o.data._beginMatch !== s[1] && o.ignoreMatch();
  3920. }
  3921. });
  3922. }
  3923. });
  3924. function skipIfhasPrecedingDot(s, o) {
  3925. '.' === s.input[s.index - 1] && o.ignoreMatch();
  3926. }
  3927. function beginKeywords(s, o) {
  3928. o &&
  3929. s.beginKeywords &&
  3930. ((s.begin = '\\b(' + s.beginKeywords.split(' ').join('|') + ')(?!\\.)(?=\\b|\\s)'),
  3931. (s.__beforeBegin = skipIfhasPrecedingDot),
  3932. (s.keywords = s.keywords || s.beginKeywords),
  3933. delete s.beginKeywords,
  3934. void 0 === s.relevance && (s.relevance = 0));
  3935. }
  3936. function compileIllegal(s, o) {
  3937. Array.isArray(s.illegal) &&
  3938. (s.illegal = (function either(...s) {
  3939. return '(' + s.map((s) => source(s)).join('|') + ')';
  3940. })(...s.illegal));
  3941. }
  3942. function compileMatch(s, o) {
  3943. if (s.match) {
  3944. if (s.begin || s.end) throw new Error('begin & end are not supported with match');
  3945. (s.begin = s.match), delete s.match;
  3946. }
  3947. }
  3948. function compileRelevance(s, o) {
  3949. void 0 === s.relevance && (s.relevance = 1);
  3950. }
  3951. const ye = [
  3952. 'of',
  3953. 'and',
  3954. 'for',
  3955. 'in',
  3956. 'not',
  3957. 'or',
  3958. 'if',
  3959. 'then',
  3960. 'parent',
  3961. 'list',
  3962. 'value'
  3963. ];
  3964. function compileKeywords(s, o, i = 'keyword') {
  3965. const u = {};
  3966. return (
  3967. 'string' == typeof s
  3968. ? compileList(i, s.split(' '))
  3969. : Array.isArray(s)
  3970. ? compileList(i, s)
  3971. : Object.keys(s).forEach(function (i) {
  3972. Object.assign(u, compileKeywords(s[i], o, i));
  3973. }),
  3974. u
  3975. );
  3976. function compileList(s, i) {
  3977. o && (i = i.map((s) => s.toLowerCase())),
  3978. i.forEach(function (o) {
  3979. const i = o.split('|');
  3980. u[i[0]] = [s, scoreForKeyword(i[0], i[1])];
  3981. });
  3982. }
  3983. }
  3984. function scoreForKeyword(s, o) {
  3985. return o
  3986. ? Number(o)
  3987. : (function commonKeyword(s) {
  3988. return ye.includes(s.toLowerCase());
  3989. })(s)
  3990. ? 0
  3991. : 1;
  3992. }
  3993. function compileLanguage(s, { plugins: o }) {
  3994. function langRe(o, i) {
  3995. return new RegExp(source(o), 'm' + (s.case_insensitive ? 'i' : '') + (i ? 'g' : ''));
  3996. }
  3997. class MultiRegex {
  3998. constructor() {
  3999. (this.matchIndexes = {}),
  4000. (this.regexes = []),
  4001. (this.matchAt = 1),
  4002. (this.position = 0);
  4003. }
  4004. addRule(s, o) {
  4005. (o.position = this.position++),
  4006. (this.matchIndexes[this.matchAt] = o),
  4007. this.regexes.push([o, s]),
  4008. (this.matchAt +=
  4009. (function countMatchGroups(s) {
  4010. return new RegExp(s.toString() + '|').exec('').length - 1;
  4011. })(s) + 1);
  4012. }
  4013. compile() {
  4014. 0 === this.regexes.length && (this.exec = () => null);
  4015. const s = this.regexes.map((s) => s[1]);
  4016. (this.matcherRe = langRe(
  4017. (function join(s, o = '|') {
  4018. let i = 0;
  4019. return s
  4020. .map((s) => {
  4021. i += 1;
  4022. const o = i;
  4023. let _ = source(s),
  4024. w = '';
  4025. for (; _.length > 0; ) {
  4026. const s = u.exec(_);
  4027. if (!s) {
  4028. w += _;
  4029. break;
  4030. }
  4031. (w += _.substring(0, s.index)),
  4032. (_ = _.substring(s.index + s[0].length)),
  4033. '\\' === s[0][0] && s[1]
  4034. ? (w += '\\' + String(Number(s[1]) + o))
  4035. : ((w += s[0]), '(' === s[0] && i++);
  4036. }
  4037. return w;
  4038. })
  4039. .map((s) => `(${s})`)
  4040. .join(o);
  4041. })(s),
  4042. !0
  4043. )),
  4044. (this.lastIndex = 0);
  4045. }
  4046. exec(s) {
  4047. this.matcherRe.lastIndex = this.lastIndex;
  4048. const o = this.matcherRe.exec(s);
  4049. if (!o) return null;
  4050. const i = o.findIndex((s, o) => o > 0 && void 0 !== s),
  4051. u = this.matchIndexes[i];
  4052. return o.splice(0, i), Object.assign(o, u);
  4053. }
  4054. }
  4055. class ResumableMultiRegex {
  4056. constructor() {
  4057. (this.rules = []),
  4058. (this.multiRegexes = []),
  4059. (this.count = 0),
  4060. (this.lastIndex = 0),
  4061. (this.regexIndex = 0);
  4062. }
  4063. getMatcher(s) {
  4064. if (this.multiRegexes[s]) return this.multiRegexes[s];
  4065. const o = new MultiRegex();
  4066. return (
  4067. this.rules.slice(s).forEach(([s, i]) => o.addRule(s, i)),
  4068. o.compile(),
  4069. (this.multiRegexes[s] = o),
  4070. o
  4071. );
  4072. }
  4073. resumingScanAtSamePosition() {
  4074. return 0 !== this.regexIndex;
  4075. }
  4076. considerAll() {
  4077. this.regexIndex = 0;
  4078. }
  4079. addRule(s, o) {
  4080. this.rules.push([s, o]), 'begin' === o.type && this.count++;
  4081. }
  4082. exec(s) {
  4083. const o = this.getMatcher(this.regexIndex);
  4084. o.lastIndex = this.lastIndex;
  4085. let i = o.exec(s);
  4086. if (this.resumingScanAtSamePosition())
  4087. if (i && i.index === this.lastIndex);
  4088. else {
  4089. const o = this.getMatcher(0);
  4090. (o.lastIndex = this.lastIndex + 1), (i = o.exec(s));
  4091. }
  4092. return (
  4093. i &&
  4094. ((this.regexIndex += i.position + 1),
  4095. this.regexIndex === this.count && this.considerAll()),
  4096. i
  4097. );
  4098. }
  4099. }
  4100. if (
  4101. (s.compilerExtensions || (s.compilerExtensions = []),
  4102. s.contains && s.contains.includes('self'))
  4103. )
  4104. throw new Error(
  4105. 'ERR: contains `self` is not supported at the top-level of a language. See documentation.'
  4106. );
  4107. return (
  4108. (s.classNameAliases = inherit(s.classNameAliases || {})),
  4109. (function compileMode(o, i) {
  4110. const u = o;
  4111. if (o.isCompiled) return u;
  4112. [compileMatch].forEach((s) => s(o, i)),
  4113. s.compilerExtensions.forEach((s) => s(o, i)),
  4114. (o.__beforeBegin = null),
  4115. [beginKeywords, compileIllegal, compileRelevance].forEach((s) => s(o, i)),
  4116. (o.isCompiled = !0);
  4117. let _ = null;
  4118. if (
  4119. ('object' == typeof o.keywords &&
  4120. ((_ = o.keywords.$pattern), delete o.keywords.$pattern),
  4121. o.keywords && (o.keywords = compileKeywords(o.keywords, s.case_insensitive)),
  4122. o.lexemes && _)
  4123. )
  4124. throw new Error(
  4125. 'ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) '
  4126. );
  4127. return (
  4128. (_ = _ || o.lexemes || /\w+/),
  4129. (u.keywordPatternRe = langRe(_, !0)),
  4130. i &&
  4131. (o.begin || (o.begin = /\B|\b/),
  4132. (u.beginRe = langRe(o.begin)),
  4133. o.endSameAsBegin && (o.end = o.begin),
  4134. o.end || o.endsWithParent || (o.end = /\B|\b/),
  4135. o.end && (u.endRe = langRe(o.end)),
  4136. (u.terminatorEnd = source(o.end) || ''),
  4137. o.endsWithParent &&
  4138. i.terminatorEnd &&
  4139. (u.terminatorEnd += (o.end ? '|' : '') + i.terminatorEnd)),
  4140. o.illegal && (u.illegalRe = langRe(o.illegal)),
  4141. o.contains || (o.contains = []),
  4142. (o.contains = [].concat(
  4143. ...o.contains.map(function (s) {
  4144. return (function expandOrCloneMode(s) {
  4145. s.variants &&
  4146. !s.cachedVariants &&
  4147. (s.cachedVariants = s.variants.map(function (o) {
  4148. return inherit(s, { variants: null }, o);
  4149. }));
  4150. if (s.cachedVariants) return s.cachedVariants;
  4151. if (dependencyOnParent(s))
  4152. return inherit(s, { starts: s.starts ? inherit(s.starts) : null });
  4153. if (Object.isFrozen(s)) return inherit(s);
  4154. return s;
  4155. })('self' === s ? o : s);
  4156. })
  4157. )),
  4158. o.contains.forEach(function (s) {
  4159. compileMode(s, u);
  4160. }),
  4161. o.starts && compileMode(o.starts, i),
  4162. (u.matcher = (function buildModeRegex(s) {
  4163. const o = new ResumableMultiRegex();
  4164. return (
  4165. s.contains.forEach((s) => o.addRule(s.begin, { rule: s, type: 'begin' })),
  4166. s.terminatorEnd && o.addRule(s.terminatorEnd, { type: 'end' }),
  4167. s.illegal && o.addRule(s.illegal, { type: 'illegal' }),
  4168. o
  4169. );
  4170. })(u)),
  4171. u
  4172. );
  4173. })(s)
  4174. );
  4175. }
  4176. function dependencyOnParent(s) {
  4177. return !!s && (s.endsWithParent || dependencyOnParent(s.starts));
  4178. }
  4179. function BuildVuePlugin(s) {
  4180. const o = {
  4181. props: ['language', 'code', 'autodetect'],
  4182. data: function () {
  4183. return { detectedLanguage: '', unknownLanguage: !1 };
  4184. },
  4185. computed: {
  4186. className() {
  4187. return this.unknownLanguage ? '' : 'hljs ' + this.detectedLanguage;
  4188. },
  4189. highlighted() {
  4190. if (!this.autoDetect && !s.getLanguage(this.language))
  4191. return (
  4192. console.warn(
  4193. `The language "${this.language}" you specified could not be found.`
  4194. ),
  4195. (this.unknownLanguage = !0),
  4196. escapeHTML(this.code)
  4197. );
  4198. let o = {};
  4199. return (
  4200. this.autoDetect
  4201. ? ((o = s.highlightAuto(this.code)), (this.detectedLanguage = o.language))
  4202. : ((o = s.highlight(this.language, this.code, this.ignoreIllegals)),
  4203. (this.detectedLanguage = this.language)),
  4204. o.value
  4205. );
  4206. },
  4207. autoDetect() {
  4208. return (
  4209. !this.language ||
  4210. (function hasValueOrEmptyAttribute(s) {
  4211. return Boolean(s || '' === s);
  4212. })(this.autodetect)
  4213. );
  4214. },
  4215. ignoreIllegals: () => !0
  4216. },
  4217. render(s) {
  4218. return s('pre', {}, [
  4219. s('code', { class: this.className, domProps: { innerHTML: this.highlighted } })
  4220. ]);
  4221. }
  4222. };
  4223. return {
  4224. Component: o,
  4225. VuePlugin: {
  4226. install(s) {
  4227. s.component('highlightjs', o);
  4228. }
  4229. }
  4230. };
  4231. }
  4232. const be = {
  4233. 'after:highlightElement': ({ el: s, result: o, text: i }) => {
  4234. const u = nodeStream(s);
  4235. if (!u.length) return;
  4236. const _ = document.createElement('div');
  4237. (_.innerHTML = o.value),
  4238. (o.value = (function mergeStreams(s, o, i) {
  4239. let u = 0,
  4240. _ = '';
  4241. const w = [];
  4242. function selectStream() {
  4243. return s.length && o.length
  4244. ? s[0].offset !== o[0].offset
  4245. ? s[0].offset < o[0].offset
  4246. ? s
  4247. : o
  4248. : 'start' === o[0].event
  4249. ? s
  4250. : o
  4251. : s.length
  4252. ? s
  4253. : o;
  4254. }
  4255. function open(s) {
  4256. function attributeString(s) {
  4257. return ' ' + s.nodeName + '="' + escapeHTML(s.value) + '"';
  4258. }
  4259. _ += '<' + tag(s) + [].map.call(s.attributes, attributeString).join('') + '>';
  4260. }
  4261. function close(s) {
  4262. _ += '</' + tag(s) + '>';
  4263. }
  4264. function render(s) {
  4265. ('start' === s.event ? open : close)(s.node);
  4266. }
  4267. for (; s.length || o.length; ) {
  4268. let o = selectStream();
  4269. if (
  4270. ((_ += escapeHTML(i.substring(u, o[0].offset))), (u = o[0].offset), o === s)
  4271. ) {
  4272. w.reverse().forEach(close);
  4273. do {
  4274. render(o.splice(0, 1)[0]), (o = selectStream());
  4275. } while (o === s && o.length && o[0].offset === u);
  4276. w.reverse().forEach(open);
  4277. } else
  4278. 'start' === o[0].event ? w.push(o[0].node) : w.pop(),
  4279. render(o.splice(0, 1)[0]);
  4280. }
  4281. return _ + escapeHTML(i.substr(u));
  4282. })(u, nodeStream(_), i));
  4283. }
  4284. };
  4285. function tag(s) {
  4286. return s.nodeName.toLowerCase();
  4287. }
  4288. function nodeStream(s) {
  4289. const o = [];
  4290. return (
  4291. (function _nodeStream(s, i) {
  4292. for (let u = s.firstChild; u; u = u.nextSibling)
  4293. 3 === u.nodeType
  4294. ? (i += u.nodeValue.length)
  4295. : 1 === u.nodeType &&
  4296. (o.push({ event: 'start', offset: i, node: u }),
  4297. (i = _nodeStream(u, i)),
  4298. tag(u).match(/br|hr|img|input/) ||
  4299. o.push({ event: 'stop', offset: i, node: u }));
  4300. return i;
  4301. })(s, 0),
  4302. o
  4303. );
  4304. }
  4305. const _e = {},
  4306. error = (s) => {
  4307. console.error(s);
  4308. },
  4309. warn = (s, ...o) => {
  4310. console.log(`WARN: ${s}`, ...o);
  4311. },
  4312. deprecated = (s, o) => {
  4313. _e[`${s}/${o}`] ||
  4314. (console.log(`Deprecated as of ${s}. ${o}`), (_e[`${s}/${o}`] = !0));
  4315. },
  4316. we = escapeHTML,
  4317. Se = inherit,
  4318. xe = Symbol('nomatch');
  4319. var Pe = (function (s) {
  4320. const i = Object.create(null),
  4321. u = Object.create(null),
  4322. _ = [];
  4323. let w = !0;
  4324. const x = /(^(<[^>]+>|\t|)+|\n)/gm,
  4325. C =
  4326. "Could not find the language '{}', did you forget to load/include a language module?",
  4327. j = { disableAutodetect: !0, name: 'Plain text', contains: [] };
  4328. let L = {
  4329. noHighlightRe: /^(no-?highlight)$/i,
  4330. languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
  4331. classPrefix: 'hljs-',
  4332. tabReplace: null,
  4333. useBR: !1,
  4334. languages: null,
  4335. __emitter: TokenTreeEmitter
  4336. };
  4337. function shouldNotHighlight(s) {
  4338. return L.noHighlightRe.test(s);
  4339. }
  4340. function highlight(s, o, i, u) {
  4341. let _ = '',
  4342. w = '';
  4343. 'object' == typeof o
  4344. ? ((_ = s), (i = o.ignoreIllegals), (w = o.language), (u = void 0))
  4345. : (deprecated('10.7.0', 'highlight(lang, code, ...args) has been deprecated.'),
  4346. deprecated(
  4347. '10.7.0',
  4348. 'Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277'
  4349. ),
  4350. (w = s),
  4351. (_ = o));
  4352. const x = { code: _, language: w };
  4353. fire('before:highlight', x);
  4354. const C = x.result ? x.result : _highlight(x.language, x.code, i, u);
  4355. return (C.code = x.code), fire('after:highlight', C), C;
  4356. }
  4357. function _highlight(s, o, u, x) {
  4358. function keywordData(s, o) {
  4359. const i = B.case_insensitive ? o[0].toLowerCase() : o[0];
  4360. return Object.prototype.hasOwnProperty.call(s.keywords, i) && s.keywords[i];
  4361. }
  4362. function processBuffer() {
  4363. null != U.subLanguage
  4364. ? (function processSubLanguage() {
  4365. if ('' === Z) return;
  4366. let s = null;
  4367. if ('string' == typeof U.subLanguage) {
  4368. if (!i[U.subLanguage]) return void Y.addText(Z);
  4369. (s = _highlight(U.subLanguage, Z, !0, z[U.subLanguage])),
  4370. (z[U.subLanguage] = s.top);
  4371. } else s = highlightAuto(Z, U.subLanguage.length ? U.subLanguage : null);
  4372. U.relevance > 0 && (ee += s.relevance),
  4373. Y.addSublanguage(s.emitter, s.language);
  4374. })()
  4375. : (function processKeywords() {
  4376. if (!U.keywords) return void Y.addText(Z);
  4377. let s = 0;
  4378. U.keywordPatternRe.lastIndex = 0;
  4379. let o = U.keywordPatternRe.exec(Z),
  4380. i = '';
  4381. for (; o; ) {
  4382. i += Z.substring(s, o.index);
  4383. const u = keywordData(U, o);
  4384. if (u) {
  4385. const [s, _] = u;
  4386. if ((Y.addText(i), (i = ''), (ee += _), s.startsWith('_'))) i += o[0];
  4387. else {
  4388. const i = B.classNameAliases[s] || s;
  4389. Y.addKeyword(o[0], i);
  4390. }
  4391. } else i += o[0];
  4392. (s = U.keywordPatternRe.lastIndex), (o = U.keywordPatternRe.exec(Z));
  4393. }
  4394. (i += Z.substr(s)), Y.addText(i);
  4395. })(),
  4396. (Z = '');
  4397. }
  4398. function startNewMode(s) {
  4399. return (
  4400. s.className && Y.openNode(B.classNameAliases[s.className] || s.className),
  4401. (U = Object.create(s, { parent: { value: U } })),
  4402. U
  4403. );
  4404. }
  4405. function endOfMode(s, o, i) {
  4406. let u = (function startsWith(s, o) {
  4407. const i = s && s.exec(o);
  4408. return i && 0 === i.index;
  4409. })(s.endRe, i);
  4410. if (u) {
  4411. if (s['on:end']) {
  4412. const i = new Response(s);
  4413. s['on:end'](o, i), i.isMatchIgnored && (u = !1);
  4414. }
  4415. if (u) {
  4416. for (; s.endsParent && s.parent; ) s = s.parent;
  4417. return s;
  4418. }
  4419. }
  4420. if (s.endsWithParent) return endOfMode(s.parent, o, i);
  4421. }
  4422. function doIgnore(s) {
  4423. return 0 === U.matcher.regexIndex ? ((Z += s[0]), 1) : ((le = !0), 0);
  4424. }
  4425. function doBeginMatch(s) {
  4426. const o = s[0],
  4427. i = s.rule,
  4428. u = new Response(i),
  4429. _ = [i.__beforeBegin, i['on:begin']];
  4430. for (const i of _) if (i && (i(s, u), u.isMatchIgnored)) return doIgnore(o);
  4431. return (
  4432. i &&
  4433. i.endSameAsBegin &&
  4434. (i.endRe = (function escape(s) {
  4435. return new RegExp(s.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'), 'm');
  4436. })(o)),
  4437. i.skip
  4438. ? (Z += o)
  4439. : (i.excludeBegin && (Z += o),
  4440. processBuffer(),
  4441. i.returnBegin || i.excludeBegin || (Z = o)),
  4442. startNewMode(i),
  4443. i.returnBegin ? 0 : o.length
  4444. );
  4445. }
  4446. function doEndMatch(s) {
  4447. const i = s[0],
  4448. u = o.substr(s.index),
  4449. _ = endOfMode(U, s, u);
  4450. if (!_) return xe;
  4451. const w = U;
  4452. w.skip
  4453. ? (Z += i)
  4454. : (w.returnEnd || w.excludeEnd || (Z += i),
  4455. processBuffer(),
  4456. w.excludeEnd && (Z = i));
  4457. do {
  4458. U.className && Y.closeNode(),
  4459. U.skip || U.subLanguage || (ee += U.relevance),
  4460. (U = U.parent);
  4461. } while (U !== _.parent);
  4462. return (
  4463. _.starts &&
  4464. (_.endSameAsBegin && (_.starts.endRe = _.endRe), startNewMode(_.starts)),
  4465. w.returnEnd ? 0 : i.length
  4466. );
  4467. }
  4468. let j = {};
  4469. function processLexeme(i, _) {
  4470. const x = _ && _[0];
  4471. if (((Z += i), null == x)) return processBuffer(), 0;
  4472. if ('begin' === j.type && 'end' === _.type && j.index === _.index && '' === x) {
  4473. if (((Z += o.slice(_.index, _.index + 1)), !w)) {
  4474. const o = new Error('0 width match regex');
  4475. throw ((o.languageName = s), (o.badRule = j.rule), o);
  4476. }
  4477. return 1;
  4478. }
  4479. if (((j = _), 'begin' === _.type)) return doBeginMatch(_);
  4480. if ('illegal' === _.type && !u) {
  4481. const s = new Error(
  4482. 'Illegal lexeme "' + x + '" for mode "' + (U.className || '<unnamed>') + '"'
  4483. );
  4484. throw ((s.mode = U), s);
  4485. }
  4486. if ('end' === _.type) {
  4487. const s = doEndMatch(_);
  4488. if (s !== xe) return s;
  4489. }
  4490. if ('illegal' === _.type && '' === x) return 1;
  4491. if (ae > 1e5 && ae > 3 * _.index) {
  4492. throw new Error('potential infinite loop, way more iterations than matches');
  4493. }
  4494. return (Z += x), x.length;
  4495. }
  4496. const B = getLanguage(s);
  4497. if (!B) throw (error(C.replace('{}', s)), new Error('Unknown language: "' + s + '"'));
  4498. const $ = compileLanguage(B, { plugins: _ });
  4499. let V = '',
  4500. U = x || $;
  4501. const z = {},
  4502. Y = new L.__emitter(L);
  4503. !(function processContinuations() {
  4504. const s = [];
  4505. for (let o = U; o !== B; o = o.parent) o.className && s.unshift(o.className);
  4506. s.forEach((s) => Y.openNode(s));
  4507. })();
  4508. let Z = '',
  4509. ee = 0,
  4510. ie = 0,
  4511. ae = 0,
  4512. le = !1;
  4513. try {
  4514. for (U.matcher.considerAll(); ; ) {
  4515. ae++, le ? (le = !1) : U.matcher.considerAll(), (U.matcher.lastIndex = ie);
  4516. const s = U.matcher.exec(o);
  4517. if (!s) break;
  4518. const i = processLexeme(o.substring(ie, s.index), s);
  4519. ie = s.index + i;
  4520. }
  4521. return (
  4522. processLexeme(o.substr(ie)),
  4523. Y.closeAllNodes(),
  4524. Y.finalize(),
  4525. (V = Y.toHTML()),
  4526. {
  4527. relevance: Math.floor(ee),
  4528. value: V,
  4529. language: s,
  4530. illegal: !1,
  4531. emitter: Y,
  4532. top: U
  4533. }
  4534. );
  4535. } catch (i) {
  4536. if (i.message && i.message.includes('Illegal'))
  4537. return {
  4538. illegal: !0,
  4539. illegalBy: {
  4540. msg: i.message,
  4541. context: o.slice(ie - 100, ie + 100),
  4542. mode: i.mode
  4543. },
  4544. sofar: V,
  4545. relevance: 0,
  4546. value: we(o),
  4547. emitter: Y
  4548. };
  4549. if (w)
  4550. return {
  4551. illegal: !1,
  4552. relevance: 0,
  4553. value: we(o),
  4554. emitter: Y,
  4555. language: s,
  4556. top: U,
  4557. errorRaised: i
  4558. };
  4559. throw i;
  4560. }
  4561. }
  4562. function highlightAuto(s, o) {
  4563. o = o || L.languages || Object.keys(i);
  4564. const u = (function justTextHighlightResult(s) {
  4565. const o = {
  4566. relevance: 0,
  4567. emitter: new L.__emitter(L),
  4568. value: we(s),
  4569. illegal: !1,
  4570. top: j
  4571. };
  4572. return o.emitter.addText(s), o;
  4573. })(s),
  4574. _ = o
  4575. .filter(getLanguage)
  4576. .filter(autoDetection)
  4577. .map((o) => _highlight(o, s, !1));
  4578. _.unshift(u);
  4579. const w = _.sort((s, o) => {
  4580. if (s.relevance !== o.relevance) return o.relevance - s.relevance;
  4581. if (s.language && o.language) {
  4582. if (getLanguage(s.language).supersetOf === o.language) return 1;
  4583. if (getLanguage(o.language).supersetOf === s.language) return -1;
  4584. }
  4585. return 0;
  4586. }),
  4587. [x, C] = w,
  4588. B = x;
  4589. return (B.second_best = C), B;
  4590. }
  4591. const B = {
  4592. 'before:highlightElement': ({ el: s }) => {
  4593. L.useBR &&
  4594. (s.innerHTML = s.innerHTML.replace(/\n/g, '').replace(/<br[ /]*>/g, '\n'));
  4595. },
  4596. 'after:highlightElement': ({ result: s }) => {
  4597. L.useBR && (s.value = s.value.replace(/\n/g, '<br>'));
  4598. }
  4599. },
  4600. $ = /^(<[^>]+>|\t)+/gm,
  4601. V = {
  4602. 'after:highlightElement': ({ result: s }) => {
  4603. L.tabReplace &&
  4604. (s.value = s.value.replace($, (s) => s.replace(/\t/g, L.tabReplace)));
  4605. }
  4606. };
  4607. function highlightElement(s) {
  4608. let o = null;
  4609. const i = (function blockLanguage(s) {
  4610. let o = s.className + ' ';
  4611. o += s.parentNode ? s.parentNode.className : '';
  4612. const i = L.languageDetectRe.exec(o);
  4613. if (i) {
  4614. const o = getLanguage(i[1]);
  4615. return (
  4616. o ||
  4617. (warn(C.replace('{}', i[1])),
  4618. warn('Falling back to no-highlight mode for this block.', s)),
  4619. o ? i[1] : 'no-highlight'
  4620. );
  4621. }
  4622. return o.split(/\s+/).find((s) => shouldNotHighlight(s) || getLanguage(s));
  4623. })(s);
  4624. if (shouldNotHighlight(i)) return;
  4625. fire('before:highlightElement', { el: s, language: i }), (o = s);
  4626. const _ = o.textContent,
  4627. w = i ? highlight(_, { language: i, ignoreIllegals: !0 }) : highlightAuto(_);
  4628. fire('after:highlightElement', { el: s, result: w, text: _ }),
  4629. (s.innerHTML = w.value),
  4630. (function updateClassName(s, o, i) {
  4631. const _ = o ? u[o] : i;
  4632. s.classList.add('hljs'), _ && s.classList.add(_);
  4633. })(s, i, w.language),
  4634. (s.result = { language: w.language, re: w.relevance, relavance: w.relevance }),
  4635. w.second_best &&
  4636. (s.second_best = {
  4637. language: w.second_best.language,
  4638. re: w.second_best.relevance,
  4639. relavance: w.second_best.relevance
  4640. });
  4641. }
  4642. const initHighlighting = () => {
  4643. if (initHighlighting.called) return;
  4644. (initHighlighting.called = !0),
  4645. deprecated(
  4646. '10.6.0',
  4647. 'initHighlighting() is deprecated. Use highlightAll() instead.'
  4648. );
  4649. document.querySelectorAll('pre code').forEach(highlightElement);
  4650. };
  4651. let U = !1;
  4652. function highlightAll() {
  4653. if ('loading' === document.readyState) return void (U = !0);
  4654. document.querySelectorAll('pre code').forEach(highlightElement);
  4655. }
  4656. function getLanguage(s) {
  4657. return (s = (s || '').toLowerCase()), i[s] || i[u[s]];
  4658. }
  4659. function registerAliases(s, { languageName: o }) {
  4660. 'string' == typeof s && (s = [s]),
  4661. s.forEach((s) => {
  4662. u[s.toLowerCase()] = o;
  4663. });
  4664. }
  4665. function autoDetection(s) {
  4666. const o = getLanguage(s);
  4667. return o && !o.disableAutodetect;
  4668. }
  4669. function fire(s, o) {
  4670. const i = s;
  4671. _.forEach(function (s) {
  4672. s[i] && s[i](o);
  4673. });
  4674. }
  4675. 'undefined' != typeof window &&
  4676. window.addEventListener &&
  4677. window.addEventListener(
  4678. 'DOMContentLoaded',
  4679. function boot() {
  4680. U && highlightAll();
  4681. },
  4682. !1
  4683. ),
  4684. Object.assign(s, {
  4685. highlight,
  4686. highlightAuto,
  4687. highlightAll,
  4688. fixMarkup: function deprecateFixMarkup(s) {
  4689. return (
  4690. deprecated('10.2.0', 'fixMarkup will be removed entirely in v11.0'),
  4691. deprecated(
  4692. '10.2.0',
  4693. 'Please see https://github.com/highlightjs/highlight.js/issues/2534'
  4694. ),
  4695. (function fixMarkup(s) {
  4696. return L.tabReplace || L.useBR
  4697. ? s.replace(x, (s) =>
  4698. '\n' === s
  4699. ? L.useBR
  4700. ? '<br>'
  4701. : s
  4702. : L.tabReplace
  4703. ? s.replace(/\t/g, L.tabReplace)
  4704. : s
  4705. )
  4706. : s;
  4707. })(s)
  4708. );
  4709. },
  4710. highlightElement,
  4711. highlightBlock: function deprecateHighlightBlock(s) {
  4712. return (
  4713. deprecated('10.7.0', 'highlightBlock will be removed entirely in v12.0'),
  4714. deprecated('10.7.0', 'Please use highlightElement now.'),
  4715. highlightElement(s)
  4716. );
  4717. },
  4718. configure: function configure(s) {
  4719. s.useBR &&
  4720. (deprecated('10.3.0', "'useBR' will be removed entirely in v11.0"),
  4721. deprecated(
  4722. '10.3.0',
  4723. 'Please see https://github.com/highlightjs/highlight.js/issues/2559'
  4724. )),
  4725. (L = Se(L, s));
  4726. },
  4727. initHighlighting,
  4728. initHighlightingOnLoad: function initHighlightingOnLoad() {
  4729. deprecated(
  4730. '10.6.0',
  4731. 'initHighlightingOnLoad() is deprecated. Use highlightAll() instead.'
  4732. ),
  4733. (U = !0);
  4734. },
  4735. registerLanguage: function registerLanguage(o, u) {
  4736. let _ = null;
  4737. try {
  4738. _ = u(s);
  4739. } catch (s) {
  4740. if (
  4741. (error(
  4742. "Language definition for '{}' could not be registered.".replace('{}', o)
  4743. ),
  4744. !w)
  4745. )
  4746. throw s;
  4747. error(s), (_ = j);
  4748. }
  4749. _.name || (_.name = o),
  4750. (i[o] = _),
  4751. (_.rawDefinition = u.bind(null, s)),
  4752. _.aliases && registerAliases(_.aliases, { languageName: o });
  4753. },
  4754. unregisterLanguage: function unregisterLanguage(s) {
  4755. delete i[s];
  4756. for (const o of Object.keys(u)) u[o] === s && delete u[o];
  4757. },
  4758. listLanguages: function listLanguages() {
  4759. return Object.keys(i);
  4760. },
  4761. getLanguage,
  4762. registerAliases,
  4763. requireLanguage: function requireLanguage(s) {
  4764. deprecated('10.4.0', 'requireLanguage will be removed entirely in v11.'),
  4765. deprecated(
  4766. '10.4.0',
  4767. 'Please see https://github.com/highlightjs/highlight.js/pull/2844'
  4768. );
  4769. const o = getLanguage(s);
  4770. if (o) return o;
  4771. throw new Error(
  4772. "The '{}' language is required, but not loaded.".replace('{}', s)
  4773. );
  4774. },
  4775. autoDetection,
  4776. inherit: Se,
  4777. addPlugin: function addPlugin(s) {
  4778. !(function upgradePluginAPI(s) {
  4779. s['before:highlightBlock'] &&
  4780. !s['before:highlightElement'] &&
  4781. (s['before:highlightElement'] = (o) => {
  4782. s['before:highlightBlock'](Object.assign({ block: o.el }, o));
  4783. }),
  4784. s['after:highlightBlock'] &&
  4785. !s['after:highlightElement'] &&
  4786. (s['after:highlightElement'] = (o) => {
  4787. s['after:highlightBlock'](Object.assign({ block: o.el }, o));
  4788. });
  4789. })(s),
  4790. _.push(s);
  4791. },
  4792. vuePlugin: BuildVuePlugin(s).VuePlugin
  4793. }),
  4794. (s.debugMode = function () {
  4795. w = !1;
  4796. }),
  4797. (s.safeMode = function () {
  4798. w = !0;
  4799. }),
  4800. (s.versionString = '10.7.3');
  4801. for (const s in fe) 'object' == typeof fe[s] && o(fe[s]);
  4802. return Object.assign(s, fe), s.addPlugin(B), s.addPlugin(be), s.addPlugin(V), s;
  4803. })({});
  4804. s.exports = Pe;
  4805. },
  4806. 35344: (s) => {
  4807. function concat(...s) {
  4808. return s
  4809. .map((s) =>
  4810. (function source(s) {
  4811. return s ? ('string' == typeof s ? s : s.source) : null;
  4812. })(s)
  4813. )
  4814. .join('');
  4815. }
  4816. s.exports = function bash(s) {
  4817. const o = {},
  4818. i = { begin: /\$\{/, end: /\}/, contains: ['self', { begin: /:-/, contains: [o] }] };
  4819. Object.assign(o, {
  4820. className: 'variable',
  4821. variants: [{ begin: concat(/\$[\w\d#@][\w\d_]*/, '(?![\\w\\d])(?![$])') }, i]
  4822. });
  4823. const u = {
  4824. className: 'subst',
  4825. begin: /\$\(/,
  4826. end: /\)/,
  4827. contains: [s.BACKSLASH_ESCAPE]
  4828. },
  4829. _ = {
  4830. begin: /<<-?\s*(?=\w+)/,
  4831. starts: {
  4832. contains: [
  4833. s.END_SAME_AS_BEGIN({ begin: /(\w+)/, end: /(\w+)/, className: 'string' })
  4834. ]
  4835. }
  4836. },
  4837. w = {
  4838. className: 'string',
  4839. begin: /"/,
  4840. end: /"/,
  4841. contains: [s.BACKSLASH_ESCAPE, o, u]
  4842. };
  4843. u.contains.push(w);
  4844. const x = {
  4845. begin: /\$\(\(/,
  4846. end: /\)\)/,
  4847. contains: [{ begin: /\d+#[0-9a-f]+/, className: 'number' }, s.NUMBER_MODE, o]
  4848. },
  4849. C = s.SHEBANG({
  4850. binary: `(${['fish', 'bash', 'zsh', 'sh', 'csh', 'ksh', 'tcsh', 'dash', 'scsh'].join('|')})`,
  4851. relevance: 10
  4852. }),
  4853. j = {
  4854. className: 'function',
  4855. begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
  4856. returnBegin: !0,
  4857. contains: [s.inherit(s.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
  4858. relevance: 0
  4859. };
  4860. return {
  4861. name: 'Bash',
  4862. aliases: ['sh', 'zsh'],
  4863. keywords: {
  4864. $pattern: /\b[a-z._-]+\b/,
  4865. keyword: 'if then else elif fi for while in do done case esac function',
  4866. literal: 'true false',
  4867. built_in:
  4868. 'break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp'
  4869. },
  4870. contains: [
  4871. C,
  4872. s.SHEBANG(),
  4873. j,
  4874. x,
  4875. s.HASH_COMMENT_MODE,
  4876. _,
  4877. w,
  4878. { className: '', begin: /\\"/ },
  4879. { className: 'string', begin: /'/, end: /'/ },
  4880. o
  4881. ]
  4882. };
  4883. };
  4884. },
  4885. 73402: (s) => {
  4886. function concat(...s) {
  4887. return s
  4888. .map((s) =>
  4889. (function source(s) {
  4890. return s ? ('string' == typeof s ? s : s.source) : null;
  4891. })(s)
  4892. )
  4893. .join('');
  4894. }
  4895. s.exports = function http(s) {
  4896. const o = 'HTTP/(2|1\\.[01])',
  4897. i = {
  4898. className: 'attribute',
  4899. begin: concat('^', /[A-Za-z][A-Za-z0-9-]*/, '(?=\\:\\s)'),
  4900. starts: {
  4901. contains: [
  4902. {
  4903. className: 'punctuation',
  4904. begin: /: /,
  4905. relevance: 0,
  4906. starts: { end: '$', relevance: 0 }
  4907. }
  4908. ]
  4909. }
  4910. },
  4911. u = [i, { begin: '\\n\\n', starts: { subLanguage: [], endsWithParent: !0 } }];
  4912. return {
  4913. name: 'HTTP',
  4914. aliases: ['https'],
  4915. illegal: /\S/,
  4916. contains: [
  4917. {
  4918. begin: '^(?=' + o + ' \\d{3})',
  4919. end: /$/,
  4920. contains: [
  4921. { className: 'meta', begin: o },
  4922. { className: 'number', begin: '\\b\\d{3}\\b' }
  4923. ],
  4924. starts: { end: /\b\B/, illegal: /\S/, contains: u }
  4925. },
  4926. {
  4927. begin: '(?=^[A-Z]+ (.*?) ' + o + '$)',
  4928. end: /$/,
  4929. contains: [
  4930. { className: 'string', begin: ' ', end: ' ', excludeBegin: !0, excludeEnd: !0 },
  4931. { className: 'meta', begin: o },
  4932. { className: 'keyword', begin: '[A-Z]+' }
  4933. ],
  4934. starts: { end: /\b\B/, illegal: /\S/, contains: u }
  4935. },
  4936. s.inherit(i, { relevance: 0 })
  4937. ]
  4938. };
  4939. };
  4940. },
  4941. 95089: (s) => {
  4942. const o = '[A-Za-z$_][0-9A-Za-z$_]*',
  4943. i = [
  4944. 'as',
  4945. 'in',
  4946. 'of',
  4947. 'if',
  4948. 'for',
  4949. 'while',
  4950. 'finally',
  4951. 'var',
  4952. 'new',
  4953. 'function',
  4954. 'do',
  4955. 'return',
  4956. 'void',
  4957. 'else',
  4958. 'break',
  4959. 'catch',
  4960. 'instanceof',
  4961. 'with',
  4962. 'throw',
  4963. 'case',
  4964. 'default',
  4965. 'try',
  4966. 'switch',
  4967. 'continue',
  4968. 'typeof',
  4969. 'delete',
  4970. 'let',
  4971. 'yield',
  4972. 'const',
  4973. 'class',
  4974. 'debugger',
  4975. 'async',
  4976. 'await',
  4977. 'static',
  4978. 'import',
  4979. 'from',
  4980. 'export',
  4981. 'extends'
  4982. ],
  4983. u = ['true', 'false', 'null', 'undefined', 'NaN', 'Infinity'],
  4984. _ = [].concat(
  4985. [
  4986. 'setInterval',
  4987. 'setTimeout',
  4988. 'clearInterval',
  4989. 'clearTimeout',
  4990. 'require',
  4991. 'exports',
  4992. 'eval',
  4993. 'isFinite',
  4994. 'isNaN',
  4995. 'parseFloat',
  4996. 'parseInt',
  4997. 'decodeURI',
  4998. 'decodeURIComponent',
  4999. 'encodeURI',
  5000. 'encodeURIComponent',
  5001. 'escape',
  5002. 'unescape'
  5003. ],
  5004. [
  5005. 'arguments',
  5006. 'this',
  5007. 'super',
  5008. 'console',
  5009. 'window',
  5010. 'document',
  5011. 'localStorage',
  5012. 'module',
  5013. 'global'
  5014. ],
  5015. [
  5016. 'Intl',
  5017. 'DataView',
  5018. 'Number',
  5019. 'Math',
  5020. 'Date',
  5021. 'String',
  5022. 'RegExp',
  5023. 'Object',
  5024. 'Function',
  5025. 'Boolean',
  5026. 'Error',
  5027. 'Symbol',
  5028. 'Set',
  5029. 'Map',
  5030. 'WeakSet',
  5031. 'WeakMap',
  5032. 'Proxy',
  5033. 'Reflect',
  5034. 'JSON',
  5035. 'Promise',
  5036. 'Float64Array',
  5037. 'Int16Array',
  5038. 'Int32Array',
  5039. 'Int8Array',
  5040. 'Uint16Array',
  5041. 'Uint32Array',
  5042. 'Float32Array',
  5043. 'Array',
  5044. 'Uint8Array',
  5045. 'Uint8ClampedArray',
  5046. 'ArrayBuffer',
  5047. 'BigInt64Array',
  5048. 'BigUint64Array',
  5049. 'BigInt'
  5050. ],
  5051. [
  5052. 'EvalError',
  5053. 'InternalError',
  5054. 'RangeError',
  5055. 'ReferenceError',
  5056. 'SyntaxError',
  5057. 'TypeError',
  5058. 'URIError'
  5059. ]
  5060. );
  5061. function lookahead(s) {
  5062. return concat('(?=', s, ')');
  5063. }
  5064. function concat(...s) {
  5065. return s
  5066. .map((s) =>
  5067. (function source(s) {
  5068. return s ? ('string' == typeof s ? s : s.source) : null;
  5069. })(s)
  5070. )
  5071. .join('');
  5072. }
  5073. s.exports = function javascript(s) {
  5074. const w = o,
  5075. x = '<>',
  5076. C = '</>',
  5077. j = {
  5078. begin: /<[A-Za-z0-9\\._:-]+/,
  5079. end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
  5080. isTrulyOpeningTag: (s, o) => {
  5081. const i = s[0].length + s.index,
  5082. u = s.input[i];
  5083. '<' !== u
  5084. ? '>' === u &&
  5085. (((s, { after: o }) => {
  5086. const i = '</' + s[0].slice(1);
  5087. return -1 !== s.input.indexOf(i, o);
  5088. })(s, { after: i }) ||
  5089. o.ignoreMatch())
  5090. : o.ignoreMatch();
  5091. }
  5092. },
  5093. L = { $pattern: o, keyword: i, literal: u, built_in: _ },
  5094. B = '[0-9](_?[0-9])*',
  5095. $ = `\\.(${B})`,
  5096. V = '0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*',
  5097. U = {
  5098. className: 'number',
  5099. variants: [
  5100. { begin: `(\\b(${V})((${$})|\\.)?|(${$}))[eE][+-]?(${B})\\b` },
  5101. { begin: `\\b(${V})\\b((${$})\\b|\\.)?|(${$})\\b` },
  5102. { begin: '\\b(0|[1-9](_?[0-9])*)n\\b' },
  5103. { begin: '\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b' },
  5104. { begin: '\\b0[bB][0-1](_?[0-1])*n?\\b' },
  5105. { begin: '\\b0[oO][0-7](_?[0-7])*n?\\b' },
  5106. { begin: '\\b0[0-7]+n?\\b' }
  5107. ],
  5108. relevance: 0
  5109. },
  5110. z = { className: 'subst', begin: '\\$\\{', end: '\\}', keywords: L, contains: [] },
  5111. Y = {
  5112. begin: 'html`',
  5113. end: '',
  5114. starts: {
  5115. end: '`',
  5116. returnEnd: !1,
  5117. contains: [s.BACKSLASH_ESCAPE, z],
  5118. subLanguage: 'xml'
  5119. }
  5120. },
  5121. Z = {
  5122. begin: 'css`',
  5123. end: '',
  5124. starts: {
  5125. end: '`',
  5126. returnEnd: !1,
  5127. contains: [s.BACKSLASH_ESCAPE, z],
  5128. subLanguage: 'css'
  5129. }
  5130. },
  5131. ee = { className: 'string', begin: '`', end: '`', contains: [s.BACKSLASH_ESCAPE, z] },
  5132. ie = {
  5133. className: 'comment',
  5134. variants: [
  5135. s.COMMENT(/\/\*\*(?!\/)/, '\\*/', {
  5136. relevance: 0,
  5137. contains: [
  5138. {
  5139. className: 'doctag',
  5140. begin: '@[A-Za-z]+',
  5141. contains: [
  5142. { className: 'type', begin: '\\{', end: '\\}', relevance: 0 },
  5143. {
  5144. className: 'variable',
  5145. begin: w + '(?=\\s*(-)|$)',
  5146. endsParent: !0,
  5147. relevance: 0
  5148. },
  5149. { begin: /(?=[^\n])\s/, relevance: 0 }
  5150. ]
  5151. }
  5152. ]
  5153. }),
  5154. s.C_BLOCK_COMMENT_MODE,
  5155. s.C_LINE_COMMENT_MODE
  5156. ]
  5157. },
  5158. ae = [s.APOS_STRING_MODE, s.QUOTE_STRING_MODE, Y, Z, ee, U, s.REGEXP_MODE];
  5159. z.contains = ae.concat({
  5160. begin: /\{/,
  5161. end: /\}/,
  5162. keywords: L,
  5163. contains: ['self'].concat(ae)
  5164. });
  5165. const le = [].concat(ie, z.contains),
  5166. ce = le.concat([
  5167. { begin: /\(/, end: /\)/, keywords: L, contains: ['self'].concat(le) }
  5168. ]),
  5169. pe = {
  5170. className: 'params',
  5171. begin: /\(/,
  5172. end: /\)/,
  5173. excludeBegin: !0,
  5174. excludeEnd: !0,
  5175. keywords: L,
  5176. contains: ce
  5177. };
  5178. return {
  5179. name: 'Javascript',
  5180. aliases: ['js', 'jsx', 'mjs', 'cjs'],
  5181. keywords: L,
  5182. exports: { PARAMS_CONTAINS: ce },
  5183. illegal: /#(?![$_A-z])/,
  5184. contains: [
  5185. s.SHEBANG({ label: 'shebang', binary: 'node', relevance: 5 }),
  5186. {
  5187. label: 'use_strict',
  5188. className: 'meta',
  5189. relevance: 10,
  5190. begin: /^\s*['"]use (strict|asm)['"]/
  5191. },
  5192. s.APOS_STRING_MODE,
  5193. s.QUOTE_STRING_MODE,
  5194. Y,
  5195. Z,
  5196. ee,
  5197. ie,
  5198. U,
  5199. {
  5200. begin: concat(
  5201. /[{,\n]\s*/,
  5202. lookahead(concat(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/, w + '\\s*:'))
  5203. ),
  5204. relevance: 0,
  5205. contains: [{ className: 'attr', begin: w + lookahead('\\s*:'), relevance: 0 }]
  5206. },
  5207. {
  5208. begin: '(' + s.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*',
  5209. keywords: 'return throw case',
  5210. contains: [
  5211. ie,
  5212. s.REGEXP_MODE,
  5213. {
  5214. className: 'function',
  5215. begin:
  5216. '(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|' +
  5217. s.UNDERSCORE_IDENT_RE +
  5218. ')\\s*=>',
  5219. returnBegin: !0,
  5220. end: '\\s*=>',
  5221. contains: [
  5222. {
  5223. className: 'params',
  5224. variants: [
  5225. { begin: s.UNDERSCORE_IDENT_RE, relevance: 0 },
  5226. { className: null, begin: /\(\s*\)/, skip: !0 },
  5227. {
  5228. begin: /\(/,
  5229. end: /\)/,
  5230. excludeBegin: !0,
  5231. excludeEnd: !0,
  5232. keywords: L,
  5233. contains: ce
  5234. }
  5235. ]
  5236. }
  5237. ]
  5238. },
  5239. { begin: /,/, relevance: 0 },
  5240. { className: '', begin: /\s/, end: /\s*/, skip: !0 },
  5241. {
  5242. variants: [
  5243. { begin: x, end: C },
  5244. { begin: j.begin, 'on:begin': j.isTrulyOpeningTag, end: j.end }
  5245. ],
  5246. subLanguage: 'xml',
  5247. contains: [{ begin: j.begin, end: j.end, skip: !0, contains: ['self'] }]
  5248. }
  5249. ],
  5250. relevance: 0
  5251. },
  5252. {
  5253. className: 'function',
  5254. beginKeywords: 'function',
  5255. end: /[{;]/,
  5256. excludeEnd: !0,
  5257. keywords: L,
  5258. contains: ['self', s.inherit(s.TITLE_MODE, { begin: w }), pe],
  5259. illegal: /%/
  5260. },
  5261. { beginKeywords: 'while if switch catch for' },
  5262. {
  5263. className: 'function',
  5264. begin:
  5265. s.UNDERSCORE_IDENT_RE +
  5266. '\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{',
  5267. returnBegin: !0,
  5268. contains: [pe, s.inherit(s.TITLE_MODE, { begin: w })]
  5269. },
  5270. { variants: [{ begin: '\\.' + w }, { begin: '\\$' + w }], relevance: 0 },
  5271. {
  5272. className: 'class',
  5273. beginKeywords: 'class',
  5274. end: /[{;=]/,
  5275. excludeEnd: !0,
  5276. illegal: /[:"[\]]/,
  5277. contains: [{ beginKeywords: 'extends' }, s.UNDERSCORE_TITLE_MODE]
  5278. },
  5279. {
  5280. begin: /\b(?=constructor)/,
  5281. end: /[{;]/,
  5282. excludeEnd: !0,
  5283. contains: [s.inherit(s.TITLE_MODE, { begin: w }), 'self', pe]
  5284. },
  5285. {
  5286. begin: '(get|set)\\s+(?=' + w + '\\()',
  5287. end: /\{/,
  5288. keywords: 'get set',
  5289. contains: [s.inherit(s.TITLE_MODE, { begin: w }), { begin: /\(\)/ }, pe]
  5290. },
  5291. { begin: /\$[(.]/ }
  5292. ]
  5293. };
  5294. };
  5295. },
  5296. 65772: (s) => {
  5297. s.exports = function json(s) {
  5298. const o = { literal: 'true false null' },
  5299. i = [s.C_LINE_COMMENT_MODE, s.C_BLOCK_COMMENT_MODE],
  5300. u = [s.QUOTE_STRING_MODE, s.C_NUMBER_MODE],
  5301. _ = { end: ',', endsWithParent: !0, excludeEnd: !0, contains: u, keywords: o },
  5302. w = {
  5303. begin: /\{/,
  5304. end: /\}/,
  5305. contains: [
  5306. {
  5307. className: 'attr',
  5308. begin: /"/,
  5309. end: /"/,
  5310. contains: [s.BACKSLASH_ESCAPE],
  5311. illegal: '\\n'
  5312. },
  5313. s.inherit(_, { begin: /:/ })
  5314. ].concat(i),
  5315. illegal: '\\S'
  5316. },
  5317. x = { begin: '\\[', end: '\\]', contains: [s.inherit(_)], illegal: '\\S' };
  5318. return (
  5319. u.push(w, x),
  5320. i.forEach(function (s) {
  5321. u.push(s);
  5322. }),
  5323. { name: 'JSON', contains: u, keywords: o, illegal: '\\S' }
  5324. );
  5325. };
  5326. },
  5327. 26571: (s) => {
  5328. s.exports = function powershell(s) {
  5329. const o = {
  5330. $pattern: /-?[A-z\.\-]+\b/,
  5331. keyword:
  5332. 'if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter',
  5333. built_in:
  5334. 'ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write'
  5335. },
  5336. i = { begin: '`[\\s\\S]', relevance: 0 },
  5337. u = {
  5338. className: 'variable',
  5339. variants: [
  5340. { begin: /\$\B/ },
  5341. { className: 'keyword', begin: /\$this/ },
  5342. { begin: /\$[\w\d][\w\d_:]*/ }
  5343. ]
  5344. },
  5345. _ = {
  5346. className: 'string',
  5347. variants: [
  5348. { begin: /"/, end: /"/ },
  5349. { begin: /@"/, end: /^"@/ }
  5350. ],
  5351. contains: [i, u, { className: 'variable', begin: /\$[A-z]/, end: /[^A-z]/ }]
  5352. },
  5353. w = {
  5354. className: 'string',
  5355. variants: [
  5356. { begin: /'/, end: /'/ },
  5357. { begin: /@'/, end: /^'@/ }
  5358. ]
  5359. },
  5360. x = s.inherit(s.COMMENT(null, null), {
  5361. variants: [
  5362. { begin: /#/, end: /$/ },
  5363. { begin: /<#/, end: /#>/ }
  5364. ],
  5365. contains: [
  5366. {
  5367. className: 'doctag',
  5368. variants: [
  5369. {
  5370. begin:
  5371. /\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/
  5372. },
  5373. {
  5374. begin:
  5375. /\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/
  5376. }
  5377. ]
  5378. }
  5379. ]
  5380. }),
  5381. C = {
  5382. className: 'built_in',
  5383. variants: [
  5384. {
  5385. begin: '('.concat(
  5386. 'Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where',
  5387. ')+(-)[\\w\\d]+'
  5388. )
  5389. }
  5390. ]
  5391. },
  5392. j = {
  5393. className: 'class',
  5394. beginKeywords: 'class enum',
  5395. end: /\s*[{]/,
  5396. excludeEnd: !0,
  5397. relevance: 0,
  5398. contains: [s.TITLE_MODE]
  5399. },
  5400. L = {
  5401. className: 'function',
  5402. begin: /function\s+/,
  5403. end: /\s*\{|$/,
  5404. excludeEnd: !0,
  5405. returnBegin: !0,
  5406. relevance: 0,
  5407. contains: [
  5408. { begin: 'function', relevance: 0, className: 'keyword' },
  5409. { className: 'title', begin: /\w[\w\d]*((-)[\w\d]+)*/, relevance: 0 },
  5410. { begin: /\(/, end: /\)/, className: 'params', relevance: 0, contains: [u] }
  5411. ]
  5412. },
  5413. B = {
  5414. begin: /using\s/,
  5415. end: /$/,
  5416. returnBegin: !0,
  5417. contains: [
  5418. _,
  5419. w,
  5420. { className: 'keyword', begin: /(using|assembly|command|module|namespace|type)/ }
  5421. ]
  5422. },
  5423. $ = {
  5424. variants: [
  5425. {
  5426. className: 'operator',
  5427. begin: '('.concat(
  5428. '-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor',
  5429. ')\\b'
  5430. )
  5431. },
  5432. { className: 'literal', begin: /(-)[\w\d]+/, relevance: 0 }
  5433. ]
  5434. },
  5435. V = {
  5436. className: 'function',
  5437. begin: /\[.*\]\s*[\w]+[ ]??\(/,
  5438. end: /$/,
  5439. returnBegin: !0,
  5440. relevance: 0,
  5441. contains: [
  5442. {
  5443. className: 'keyword',
  5444. begin: '('.concat(o.keyword.toString().replace(/\s/g, '|'), ')\\b'),
  5445. endsParent: !0,
  5446. relevance: 0
  5447. },
  5448. s.inherit(s.TITLE_MODE, { endsParent: !0 })
  5449. ]
  5450. },
  5451. U = [
  5452. V,
  5453. x,
  5454. i,
  5455. s.NUMBER_MODE,
  5456. _,
  5457. w,
  5458. C,
  5459. u,
  5460. { className: 'literal', begin: /\$(null|true|false)\b/ },
  5461. { className: 'selector-tag', begin: /@\B/, relevance: 0 }
  5462. ],
  5463. z = {
  5464. begin: /\[/,
  5465. end: /\]/,
  5466. excludeBegin: !0,
  5467. excludeEnd: !0,
  5468. relevance: 0,
  5469. contains: [].concat(
  5470. 'self',
  5471. U,
  5472. {
  5473. begin:
  5474. '(' +
  5475. [
  5476. 'string',
  5477. 'char',
  5478. 'byte',
  5479. 'int',
  5480. 'long',
  5481. 'bool',
  5482. 'decimal',
  5483. 'single',
  5484. 'double',
  5485. 'DateTime',
  5486. 'xml',
  5487. 'array',
  5488. 'hashtable',
  5489. 'void'
  5490. ].join('|') +
  5491. ')',
  5492. className: 'built_in',
  5493. relevance: 0
  5494. },
  5495. { className: 'type', begin: /[\.\w\d]+/, relevance: 0 }
  5496. )
  5497. };
  5498. return (
  5499. V.contains.unshift(z),
  5500. {
  5501. name: 'PowerShell',
  5502. aliases: ['ps', 'ps1'],
  5503. case_insensitive: !0,
  5504. keywords: o,
  5505. contains: U.concat(j, L, B, $, z)
  5506. }
  5507. );
  5508. };
  5509. },
  5510. 17285: (s) => {
  5511. function source(s) {
  5512. return s ? ('string' == typeof s ? s : s.source) : null;
  5513. }
  5514. function lookahead(s) {
  5515. return concat('(?=', s, ')');
  5516. }
  5517. function concat(...s) {
  5518. return s.map((s) => source(s)).join('');
  5519. }
  5520. function either(...s) {
  5521. return '(' + s.map((s) => source(s)).join('|') + ')';
  5522. }
  5523. s.exports = function xml(s) {
  5524. const o = concat(
  5525. /[A-Z_]/,
  5526. (function optional(s) {
  5527. return concat('(', s, ')?');
  5528. })(/[A-Z0-9_.-]*:/),
  5529. /[A-Z0-9_.-]*/
  5530. ),
  5531. i = { className: 'symbol', begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ },
  5532. u = {
  5533. begin: /\s/,
  5534. contains: [
  5535. { className: 'meta-keyword', begin: /#?[a-z_][a-z1-9_-]+/, illegal: /\n/ }
  5536. ]
  5537. },
  5538. _ = s.inherit(u, { begin: /\(/, end: /\)/ }),
  5539. w = s.inherit(s.APOS_STRING_MODE, { className: 'meta-string' }),
  5540. x = s.inherit(s.QUOTE_STRING_MODE, { className: 'meta-string' }),
  5541. C = {
  5542. endsWithParent: !0,
  5543. illegal: /</,
  5544. relevance: 0,
  5545. contains: [
  5546. { className: 'attr', begin: /[A-Za-z0-9._:-]+/, relevance: 0 },
  5547. {
  5548. begin: /=\s*/,
  5549. relevance: 0,
  5550. contains: [
  5551. {
  5552. className: 'string',
  5553. endsParent: !0,
  5554. variants: [
  5555. { begin: /"/, end: /"/, contains: [i] },
  5556. { begin: /'/, end: /'/, contains: [i] },
  5557. { begin: /[^\s"'=<>`]+/ }
  5558. ]
  5559. }
  5560. ]
  5561. }
  5562. ]
  5563. };
  5564. return {
  5565. name: 'HTML, XML',
  5566. aliases: ['html', 'xhtml', 'rss', 'atom', 'xjb', 'xsd', 'xsl', 'plist', 'wsf', 'svg'],
  5567. case_insensitive: !0,
  5568. contains: [
  5569. {
  5570. className: 'meta',
  5571. begin: /<![a-z]/,
  5572. end: />/,
  5573. relevance: 10,
  5574. contains: [
  5575. u,
  5576. x,
  5577. w,
  5578. _,
  5579. {
  5580. begin: /\[/,
  5581. end: /\]/,
  5582. contains: [
  5583. { className: 'meta', begin: /<![a-z]/, end: />/, contains: [u, _, x, w] }
  5584. ]
  5585. }
  5586. ]
  5587. },
  5588. s.COMMENT(/<!--/, /-->/, { relevance: 10 }),
  5589. { begin: /<!\[CDATA\[/, end: /\]\]>/, relevance: 10 },
  5590. i,
  5591. { className: 'meta', begin: /<\?xml/, end: /\?>/, relevance: 10 },
  5592. {
  5593. className: 'tag',
  5594. begin: /<style(?=\s|>)/,
  5595. end: />/,
  5596. keywords: { name: 'style' },
  5597. contains: [C],
  5598. starts: { end: /<\/style>/, returnEnd: !0, subLanguage: ['css', 'xml'] }
  5599. },
  5600. {
  5601. className: 'tag',
  5602. begin: /<script(?=\s|>)/,
  5603. end: />/,
  5604. keywords: { name: 'script' },
  5605. contains: [C],
  5606. starts: {
  5607. end: /<\/script>/,
  5608. returnEnd: !0,
  5609. subLanguage: ['javascript', 'handlebars', 'xml']
  5610. }
  5611. },
  5612. { className: 'tag', begin: /<>|<\/>/ },
  5613. {
  5614. className: 'tag',
  5615. begin: concat(/</, lookahead(concat(o, either(/\/>/, />/, /\s/)))),
  5616. end: /\/?>/,
  5617. contains: [{ className: 'name', begin: o, relevance: 0, starts: C }]
  5618. },
  5619. {
  5620. className: 'tag',
  5621. begin: concat(/<\//, lookahead(concat(o, />/))),
  5622. contains: [
  5623. { className: 'name', begin: o, relevance: 0 },
  5624. { begin: />/, relevance: 0, endsParent: !0 }
  5625. ]
  5626. }
  5627. ]
  5628. };
  5629. };
  5630. },
  5631. 17533: (s) => {
  5632. s.exports = function yaml(s) {
  5633. var o = 'true false yes no null',
  5634. i = "[\\w#;/?:@&=+$,.~*'()[\\]]+",
  5635. u = {
  5636. className: 'string',
  5637. relevance: 0,
  5638. variants: [{ begin: /'/, end: /'/ }, { begin: /"/, end: /"/ }, { begin: /\S+/ }],
  5639. contains: [
  5640. s.BACKSLASH_ESCAPE,
  5641. {
  5642. className: 'template-variable',
  5643. variants: [
  5644. { begin: /\{\{/, end: /\}\}/ },
  5645. { begin: /%\{/, end: /\}/ }
  5646. ]
  5647. }
  5648. ]
  5649. },
  5650. _ = s.inherit(u, {
  5651. variants: [
  5652. { begin: /'/, end: /'/ },
  5653. { begin: /"/, end: /"/ },
  5654. { begin: /[^\s,{}[\]]+/ }
  5655. ]
  5656. }),
  5657. w = {
  5658. className: 'number',
  5659. begin:
  5660. '\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b'
  5661. },
  5662. x = { end: ',', endsWithParent: !0, excludeEnd: !0, keywords: o, relevance: 0 },
  5663. C = { begin: /\{/, end: /\}/, contains: [x], illegal: '\\n', relevance: 0 },
  5664. j = { begin: '\\[', end: '\\]', contains: [x], illegal: '\\n', relevance: 0 },
  5665. L = [
  5666. {
  5667. className: 'attr',
  5668. variants: [
  5669. { begin: '\\w[\\w :\\/.-]*:(?=[ \t]|$)' },
  5670. { begin: '"\\w[\\w :\\/.-]*":(?=[ \t]|$)' },
  5671. { begin: "'\\w[\\w :\\/.-]*':(?=[ \t]|$)" }
  5672. ]
  5673. },
  5674. { className: 'meta', begin: '^---\\s*$', relevance: 10 },
  5675. {
  5676. className: 'string',
  5677. begin: '[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*'
  5678. },
  5679. {
  5680. begin: '<%[%=-]?',
  5681. end: '[%-]?%>',
  5682. subLanguage: 'ruby',
  5683. excludeBegin: !0,
  5684. excludeEnd: !0,
  5685. relevance: 0
  5686. },
  5687. { className: 'type', begin: '!\\w+!' + i },
  5688. { className: 'type', begin: '!<' + i + '>' },
  5689. { className: 'type', begin: '!' + i },
  5690. { className: 'type', begin: '!!' + i },
  5691. { className: 'meta', begin: '&' + s.UNDERSCORE_IDENT_RE + '$' },
  5692. { className: 'meta', begin: '\\*' + s.UNDERSCORE_IDENT_RE + '$' },
  5693. { className: 'bullet', begin: '-(?=[ ]|$)', relevance: 0 },
  5694. s.HASH_COMMENT_MODE,
  5695. { beginKeywords: o, keywords: { literal: o } },
  5696. w,
  5697. { className: 'number', begin: s.C_NUMBER_RE + '\\b', relevance: 0 },
  5698. C,
  5699. j,
  5700. u
  5701. ],
  5702. B = [...L];
  5703. return (
  5704. B.pop(),
  5705. B.push(_),
  5706. (x.contains = B),
  5707. { name: 'YAML', case_insensitive: !0, aliases: ['yml'], contains: L }
  5708. );
  5709. };
  5710. },
  5711. 251: (s, o) => {
  5712. (o.read = function (s, o, i, u, _) {
  5713. var w,
  5714. x,
  5715. C = 8 * _ - u - 1,
  5716. j = (1 << C) - 1,
  5717. L = j >> 1,
  5718. B = -7,
  5719. $ = i ? _ - 1 : 0,
  5720. V = i ? -1 : 1,
  5721. U = s[o + $];
  5722. for (
  5723. $ += V, w = U & ((1 << -B) - 1), U >>= -B, B += C;
  5724. B > 0;
  5725. w = 256 * w + s[o + $], $ += V, B -= 8
  5726. );
  5727. for (
  5728. x = w & ((1 << -B) - 1), w >>= -B, B += u;
  5729. B > 0;
  5730. x = 256 * x + s[o + $], $ += V, B -= 8
  5731. );
  5732. if (0 === w) w = 1 - L;
  5733. else {
  5734. if (w === j) return x ? NaN : (1 / 0) * (U ? -1 : 1);
  5735. (x += Math.pow(2, u)), (w -= L);
  5736. }
  5737. return (U ? -1 : 1) * x * Math.pow(2, w - u);
  5738. }),
  5739. (o.write = function (s, o, i, u, _, w) {
  5740. var x,
  5741. C,
  5742. j,
  5743. L = 8 * w - _ - 1,
  5744. B = (1 << L) - 1,
  5745. $ = B >> 1,
  5746. V = 23 === _ ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
  5747. U = u ? 0 : w - 1,
  5748. z = u ? 1 : -1,
  5749. Y = o < 0 || (0 === o && 1 / o < 0) ? 1 : 0;
  5750. for (
  5751. o = Math.abs(o),
  5752. isNaN(o) || o === 1 / 0
  5753. ? ((C = isNaN(o) ? 1 : 0), (x = B))
  5754. : ((x = Math.floor(Math.log(o) / Math.LN2)),
  5755. o * (j = Math.pow(2, -x)) < 1 && (x--, (j *= 2)),
  5756. (o += x + $ >= 1 ? V / j : V * Math.pow(2, 1 - $)) * j >= 2 &&
  5757. (x++, (j /= 2)),
  5758. x + $ >= B
  5759. ? ((C = 0), (x = B))
  5760. : x + $ >= 1
  5761. ? ((C = (o * j - 1) * Math.pow(2, _)), (x += $))
  5762. : ((C = o * Math.pow(2, $ - 1) * Math.pow(2, _)), (x = 0)));
  5763. _ >= 8;
  5764. s[i + U] = 255 & C, U += z, C /= 256, _ -= 8
  5765. );
  5766. for (x = (x << _) | C, L += _; L > 0; s[i + U] = 255 & x, U += z, x /= 256, L -= 8);
  5767. s[i + U - z] |= 128 * Y;
  5768. });
  5769. },
  5770. 9404: function (s) {
  5771. s.exports = (function () {
  5772. 'use strict';
  5773. var s = Array.prototype.slice;
  5774. function createClass(s, o) {
  5775. o && (s.prototype = Object.create(o.prototype)), (s.prototype.constructor = s);
  5776. }
  5777. function Iterable(s) {
  5778. return isIterable(s) ? s : Seq(s);
  5779. }
  5780. function KeyedIterable(s) {
  5781. return isKeyed(s) ? s : KeyedSeq(s);
  5782. }
  5783. function IndexedIterable(s) {
  5784. return isIndexed(s) ? s : IndexedSeq(s);
  5785. }
  5786. function SetIterable(s) {
  5787. return isIterable(s) && !isAssociative(s) ? s : SetSeq(s);
  5788. }
  5789. function isIterable(s) {
  5790. return !(!s || !s[o]);
  5791. }
  5792. function isKeyed(s) {
  5793. return !(!s || !s[i]);
  5794. }
  5795. function isIndexed(s) {
  5796. return !(!s || !s[u]);
  5797. }
  5798. function isAssociative(s) {
  5799. return isKeyed(s) || isIndexed(s);
  5800. }
  5801. function isOrdered(s) {
  5802. return !(!s || !s[_]);
  5803. }
  5804. createClass(KeyedIterable, Iterable),
  5805. createClass(IndexedIterable, Iterable),
  5806. createClass(SetIterable, Iterable),
  5807. (Iterable.isIterable = isIterable),
  5808. (Iterable.isKeyed = isKeyed),
  5809. (Iterable.isIndexed = isIndexed),
  5810. (Iterable.isAssociative = isAssociative),
  5811. (Iterable.isOrdered = isOrdered),
  5812. (Iterable.Keyed = KeyedIterable),
  5813. (Iterable.Indexed = IndexedIterable),
  5814. (Iterable.Set = SetIterable);
  5815. var o = '@@__IMMUTABLE_ITERABLE__@@',
  5816. i = '@@__IMMUTABLE_KEYED__@@',
  5817. u = '@@__IMMUTABLE_INDEXED__@@',
  5818. _ = '@@__IMMUTABLE_ORDERED__@@',
  5819. w = 'delete',
  5820. x = 5,
  5821. C = 1 << x,
  5822. j = C - 1,
  5823. L = {},
  5824. B = { value: !1 },
  5825. $ = { value: !1 };
  5826. function MakeRef(s) {
  5827. return (s.value = !1), s;
  5828. }
  5829. function SetRef(s) {
  5830. s && (s.value = !0);
  5831. }
  5832. function OwnerID() {}
  5833. function arrCopy(s, o) {
  5834. o = o || 0;
  5835. for (var i = Math.max(0, s.length - o), u = new Array(i), _ = 0; _ < i; _++)
  5836. u[_] = s[_ + o];
  5837. return u;
  5838. }
  5839. function ensureSize(s) {
  5840. return void 0 === s.size && (s.size = s.__iterate(returnTrue)), s.size;
  5841. }
  5842. function wrapIndex(s, o) {
  5843. if ('number' != typeof o) {
  5844. var i = o >>> 0;
  5845. if ('' + i !== o || 4294967295 === i) return NaN;
  5846. o = i;
  5847. }
  5848. return o < 0 ? ensureSize(s) + o : o;
  5849. }
  5850. function returnTrue() {
  5851. return !0;
  5852. }
  5853. function wholeSlice(s, o, i) {
  5854. return (
  5855. (0 === s || (void 0 !== i && s <= -i)) && (void 0 === o || (void 0 !== i && o >= i))
  5856. );
  5857. }
  5858. function resolveBegin(s, o) {
  5859. return resolveIndex(s, o, 0);
  5860. }
  5861. function resolveEnd(s, o) {
  5862. return resolveIndex(s, o, o);
  5863. }
  5864. function resolveIndex(s, o, i) {
  5865. return void 0 === s
  5866. ? i
  5867. : s < 0
  5868. ? Math.max(0, o + s)
  5869. : void 0 === o
  5870. ? s
  5871. : Math.min(o, s);
  5872. }
  5873. var V = 0,
  5874. U = 1,
  5875. z = 2,
  5876. Y = 'function' == typeof Symbol && Symbol.iterator,
  5877. Z = '@@iterator',
  5878. ee = Y || Z;
  5879. function Iterator(s) {
  5880. this.next = s;
  5881. }
  5882. function iteratorValue(s, o, i, u) {
  5883. var _ = 0 === s ? o : 1 === s ? i : [o, i];
  5884. return u ? (u.value = _) : (u = { value: _, done: !1 }), u;
  5885. }
  5886. function iteratorDone() {
  5887. return { value: void 0, done: !0 };
  5888. }
  5889. function hasIterator(s) {
  5890. return !!getIteratorFn(s);
  5891. }
  5892. function isIterator(s) {
  5893. return s && 'function' == typeof s.next;
  5894. }
  5895. function getIterator(s) {
  5896. var o = getIteratorFn(s);
  5897. return o && o.call(s);
  5898. }
  5899. function getIteratorFn(s) {
  5900. var o = s && ((Y && s[Y]) || s[Z]);
  5901. if ('function' == typeof o) return o;
  5902. }
  5903. function isArrayLike(s) {
  5904. return s && 'number' == typeof s.length;
  5905. }
  5906. function Seq(s) {
  5907. return null == s ? emptySequence() : isIterable(s) ? s.toSeq() : seqFromValue(s);
  5908. }
  5909. function KeyedSeq(s) {
  5910. return null == s
  5911. ? emptySequence().toKeyedSeq()
  5912. : isIterable(s)
  5913. ? isKeyed(s)
  5914. ? s.toSeq()
  5915. : s.fromEntrySeq()
  5916. : keyedSeqFromValue(s);
  5917. }
  5918. function IndexedSeq(s) {
  5919. return null == s
  5920. ? emptySequence()
  5921. : isIterable(s)
  5922. ? isKeyed(s)
  5923. ? s.entrySeq()
  5924. : s.toIndexedSeq()
  5925. : indexedSeqFromValue(s);
  5926. }
  5927. function SetSeq(s) {
  5928. return (
  5929. null == s
  5930. ? emptySequence()
  5931. : isIterable(s)
  5932. ? isKeyed(s)
  5933. ? s.entrySeq()
  5934. : s
  5935. : indexedSeqFromValue(s)
  5936. ).toSetSeq();
  5937. }
  5938. (Iterator.prototype.toString = function () {
  5939. return '[Iterator]';
  5940. }),
  5941. (Iterator.KEYS = V),
  5942. (Iterator.VALUES = U),
  5943. (Iterator.ENTRIES = z),
  5944. (Iterator.prototype.inspect = Iterator.prototype.toSource =
  5945. function () {
  5946. return this.toString();
  5947. }),
  5948. (Iterator.prototype[ee] = function () {
  5949. return this;
  5950. }),
  5951. createClass(Seq, Iterable),
  5952. (Seq.of = function () {
  5953. return Seq(arguments);
  5954. }),
  5955. (Seq.prototype.toSeq = function () {
  5956. return this;
  5957. }),
  5958. (Seq.prototype.toString = function () {
  5959. return this.__toString('Seq {', '}');
  5960. }),
  5961. (Seq.prototype.cacheResult = function () {
  5962. return (
  5963. !this._cache &&
  5964. this.__iterateUncached &&
  5965. ((this._cache = this.entrySeq().toArray()), (this.size = this._cache.length)),
  5966. this
  5967. );
  5968. }),
  5969. (Seq.prototype.__iterate = function (s, o) {
  5970. return seqIterate(this, s, o, !0);
  5971. }),
  5972. (Seq.prototype.__iterator = function (s, o) {
  5973. return seqIterator(this, s, o, !0);
  5974. }),
  5975. createClass(KeyedSeq, Seq),
  5976. (KeyedSeq.prototype.toKeyedSeq = function () {
  5977. return this;
  5978. }),
  5979. createClass(IndexedSeq, Seq),
  5980. (IndexedSeq.of = function () {
  5981. return IndexedSeq(arguments);
  5982. }),
  5983. (IndexedSeq.prototype.toIndexedSeq = function () {
  5984. return this;
  5985. }),
  5986. (IndexedSeq.prototype.toString = function () {
  5987. return this.__toString('Seq [', ']');
  5988. }),
  5989. (IndexedSeq.prototype.__iterate = function (s, o) {
  5990. return seqIterate(this, s, o, !1);
  5991. }),
  5992. (IndexedSeq.prototype.__iterator = function (s, o) {
  5993. return seqIterator(this, s, o, !1);
  5994. }),
  5995. createClass(SetSeq, Seq),
  5996. (SetSeq.of = function () {
  5997. return SetSeq(arguments);
  5998. }),
  5999. (SetSeq.prototype.toSetSeq = function () {
  6000. return this;
  6001. }),
  6002. (Seq.isSeq = isSeq),
  6003. (Seq.Keyed = KeyedSeq),
  6004. (Seq.Set = SetSeq),
  6005. (Seq.Indexed = IndexedSeq);
  6006. var ie,
  6007. ae,
  6008. le,
  6009. ce = '@@__IMMUTABLE_SEQ__@@';
  6010. function ArraySeq(s) {
  6011. (this._array = s), (this.size = s.length);
  6012. }
  6013. function ObjectSeq(s) {
  6014. var o = Object.keys(s);
  6015. (this._object = s), (this._keys = o), (this.size = o.length);
  6016. }
  6017. function IterableSeq(s) {
  6018. (this._iterable = s), (this.size = s.length || s.size);
  6019. }
  6020. function IteratorSeq(s) {
  6021. (this._iterator = s), (this._iteratorCache = []);
  6022. }
  6023. function isSeq(s) {
  6024. return !(!s || !s[ce]);
  6025. }
  6026. function emptySequence() {
  6027. return ie || (ie = new ArraySeq([]));
  6028. }
  6029. function keyedSeqFromValue(s) {
  6030. var o = Array.isArray(s)
  6031. ? new ArraySeq(s).fromEntrySeq()
  6032. : isIterator(s)
  6033. ? new IteratorSeq(s).fromEntrySeq()
  6034. : hasIterator(s)
  6035. ? new IterableSeq(s).fromEntrySeq()
  6036. : 'object' == typeof s
  6037. ? new ObjectSeq(s)
  6038. : void 0;
  6039. if (!o)
  6040. throw new TypeError(
  6041. 'Expected Array or iterable object of [k, v] entries, or keyed object: ' + s
  6042. );
  6043. return o;
  6044. }
  6045. function indexedSeqFromValue(s) {
  6046. var o = maybeIndexedSeqFromValue(s);
  6047. if (!o) throw new TypeError('Expected Array or iterable object of values: ' + s);
  6048. return o;
  6049. }
  6050. function seqFromValue(s) {
  6051. var o = maybeIndexedSeqFromValue(s) || ('object' == typeof s && new ObjectSeq(s));
  6052. if (!o)
  6053. throw new TypeError(
  6054. 'Expected Array or iterable object of values, or keyed object: ' + s
  6055. );
  6056. return o;
  6057. }
  6058. function maybeIndexedSeqFromValue(s) {
  6059. return isArrayLike(s)
  6060. ? new ArraySeq(s)
  6061. : isIterator(s)
  6062. ? new IteratorSeq(s)
  6063. : hasIterator(s)
  6064. ? new IterableSeq(s)
  6065. : void 0;
  6066. }
  6067. function seqIterate(s, o, i, u) {
  6068. var _ = s._cache;
  6069. if (_) {
  6070. for (var w = _.length - 1, x = 0; x <= w; x++) {
  6071. var C = _[i ? w - x : x];
  6072. if (!1 === o(C[1], u ? C[0] : x, s)) return x + 1;
  6073. }
  6074. return x;
  6075. }
  6076. return s.__iterateUncached(o, i);
  6077. }
  6078. function seqIterator(s, o, i, u) {
  6079. var _ = s._cache;
  6080. if (_) {
  6081. var w = _.length - 1,
  6082. x = 0;
  6083. return new Iterator(function () {
  6084. var s = _[i ? w - x : x];
  6085. return x++ > w ? iteratorDone() : iteratorValue(o, u ? s[0] : x - 1, s[1]);
  6086. });
  6087. }
  6088. return s.__iteratorUncached(o, i);
  6089. }
  6090. function fromJS(s, o) {
  6091. return o ? fromJSWith(o, s, '', { '': s }) : fromJSDefault(s);
  6092. }
  6093. function fromJSWith(s, o, i, u) {
  6094. return Array.isArray(o)
  6095. ? s.call(
  6096. u,
  6097. i,
  6098. IndexedSeq(o).map(function (i, u) {
  6099. return fromJSWith(s, i, u, o);
  6100. })
  6101. )
  6102. : isPlainObj(o)
  6103. ? s.call(
  6104. u,
  6105. i,
  6106. KeyedSeq(o).map(function (i, u) {
  6107. return fromJSWith(s, i, u, o);
  6108. })
  6109. )
  6110. : o;
  6111. }
  6112. function fromJSDefault(s) {
  6113. return Array.isArray(s)
  6114. ? IndexedSeq(s).map(fromJSDefault).toList()
  6115. : isPlainObj(s)
  6116. ? KeyedSeq(s).map(fromJSDefault).toMap()
  6117. : s;
  6118. }
  6119. function isPlainObj(s) {
  6120. return s && (s.constructor === Object || void 0 === s.constructor);
  6121. }
  6122. function is(s, o) {
  6123. if (s === o || (s != s && o != o)) return !0;
  6124. if (!s || !o) return !1;
  6125. if ('function' == typeof s.valueOf && 'function' == typeof o.valueOf) {
  6126. if ((s = s.valueOf()) === (o = o.valueOf()) || (s != s && o != o)) return !0;
  6127. if (!s || !o) return !1;
  6128. }
  6129. return !(
  6130. 'function' != typeof s.equals ||
  6131. 'function' != typeof o.equals ||
  6132. !s.equals(o)
  6133. );
  6134. }
  6135. function deepEqual(s, o) {
  6136. if (s === o) return !0;
  6137. if (
  6138. !isIterable(o) ||
  6139. (void 0 !== s.size && void 0 !== o.size && s.size !== o.size) ||
  6140. (void 0 !== s.__hash && void 0 !== o.__hash && s.__hash !== o.__hash) ||
  6141. isKeyed(s) !== isKeyed(o) ||
  6142. isIndexed(s) !== isIndexed(o) ||
  6143. isOrdered(s) !== isOrdered(o)
  6144. )
  6145. return !1;
  6146. if (0 === s.size && 0 === o.size) return !0;
  6147. var i = !isAssociative(s);
  6148. if (isOrdered(s)) {
  6149. var u = s.entries();
  6150. return (
  6151. o.every(function (s, o) {
  6152. var _ = u.next().value;
  6153. return _ && is(_[1], s) && (i || is(_[0], o));
  6154. }) && u.next().done
  6155. );
  6156. }
  6157. var _ = !1;
  6158. if (void 0 === s.size)
  6159. if (void 0 === o.size) 'function' == typeof s.cacheResult && s.cacheResult();
  6160. else {
  6161. _ = !0;
  6162. var w = s;
  6163. (s = o), (o = w);
  6164. }
  6165. var x = !0,
  6166. C = o.__iterate(function (o, u) {
  6167. if (i ? !s.has(o) : _ ? !is(o, s.get(u, L)) : !is(s.get(u, L), o))
  6168. return (x = !1), !1;
  6169. });
  6170. return x && s.size === C;
  6171. }
  6172. function Repeat(s, o) {
  6173. if (!(this instanceof Repeat)) return new Repeat(s, o);
  6174. if (
  6175. ((this._value = s),
  6176. (this.size = void 0 === o ? 1 / 0 : Math.max(0, o)),
  6177. 0 === this.size)
  6178. ) {
  6179. if (ae) return ae;
  6180. ae = this;
  6181. }
  6182. }
  6183. function invariant(s, o) {
  6184. if (!s) throw new Error(o);
  6185. }
  6186. function Range(s, o, i) {
  6187. if (!(this instanceof Range)) return new Range(s, o, i);
  6188. if (
  6189. (invariant(0 !== i, 'Cannot step a Range by 0'),
  6190. (s = s || 0),
  6191. void 0 === o && (o = 1 / 0),
  6192. (i = void 0 === i ? 1 : Math.abs(i)),
  6193. o < s && (i = -i),
  6194. (this._start = s),
  6195. (this._end = o),
  6196. (this._step = i),
  6197. (this.size = Math.max(0, Math.ceil((o - s) / i - 1) + 1)),
  6198. 0 === this.size)
  6199. ) {
  6200. if (le) return le;
  6201. le = this;
  6202. }
  6203. }
  6204. function Collection() {
  6205. throw TypeError('Abstract');
  6206. }
  6207. function KeyedCollection() {}
  6208. function IndexedCollection() {}
  6209. function SetCollection() {}
  6210. (Seq.prototype[ce] = !0),
  6211. createClass(ArraySeq, IndexedSeq),
  6212. (ArraySeq.prototype.get = function (s, o) {
  6213. return this.has(s) ? this._array[wrapIndex(this, s)] : o;
  6214. }),
  6215. (ArraySeq.prototype.__iterate = function (s, o) {
  6216. for (var i = this._array, u = i.length - 1, _ = 0; _ <= u; _++)
  6217. if (!1 === s(i[o ? u - _ : _], _, this)) return _ + 1;
  6218. return _;
  6219. }),
  6220. (ArraySeq.prototype.__iterator = function (s, o) {
  6221. var i = this._array,
  6222. u = i.length - 1,
  6223. _ = 0;
  6224. return new Iterator(function () {
  6225. return _ > u ? iteratorDone() : iteratorValue(s, _, i[o ? u - _++ : _++]);
  6226. });
  6227. }),
  6228. createClass(ObjectSeq, KeyedSeq),
  6229. (ObjectSeq.prototype.get = function (s, o) {
  6230. return void 0 === o || this.has(s) ? this._object[s] : o;
  6231. }),
  6232. (ObjectSeq.prototype.has = function (s) {
  6233. return this._object.hasOwnProperty(s);
  6234. }),
  6235. (ObjectSeq.prototype.__iterate = function (s, o) {
  6236. for (var i = this._object, u = this._keys, _ = u.length - 1, w = 0; w <= _; w++) {
  6237. var x = u[o ? _ - w : w];
  6238. if (!1 === s(i[x], x, this)) return w + 1;
  6239. }
  6240. return w;
  6241. }),
  6242. (ObjectSeq.prototype.__iterator = function (s, o) {
  6243. var i = this._object,
  6244. u = this._keys,
  6245. _ = u.length - 1,
  6246. w = 0;
  6247. return new Iterator(function () {
  6248. var x = u[o ? _ - w : w];
  6249. return w++ > _ ? iteratorDone() : iteratorValue(s, x, i[x]);
  6250. });
  6251. }),
  6252. (ObjectSeq.prototype[_] = !0),
  6253. createClass(IterableSeq, IndexedSeq),
  6254. (IterableSeq.prototype.__iterateUncached = function (s, o) {
  6255. if (o) return this.cacheResult().__iterate(s, o);
  6256. var i = getIterator(this._iterable),
  6257. u = 0;
  6258. if (isIterator(i))
  6259. for (var _; !(_ = i.next()).done && !1 !== s(_.value, u++, this); );
  6260. return u;
  6261. }),
  6262. (IterableSeq.prototype.__iteratorUncached = function (s, o) {
  6263. if (o) return this.cacheResult().__iterator(s, o);
  6264. var i = getIterator(this._iterable);
  6265. if (!isIterator(i)) return new Iterator(iteratorDone);
  6266. var u = 0;
  6267. return new Iterator(function () {
  6268. var o = i.next();
  6269. return o.done ? o : iteratorValue(s, u++, o.value);
  6270. });
  6271. }),
  6272. createClass(IteratorSeq, IndexedSeq),
  6273. (IteratorSeq.prototype.__iterateUncached = function (s, o) {
  6274. if (o) return this.cacheResult().__iterate(s, o);
  6275. for (var i, u = this._iterator, _ = this._iteratorCache, w = 0; w < _.length; )
  6276. if (!1 === s(_[w], w++, this)) return w;
  6277. for (; !(i = u.next()).done; ) {
  6278. var x = i.value;
  6279. if (((_[w] = x), !1 === s(x, w++, this))) break;
  6280. }
  6281. return w;
  6282. }),
  6283. (IteratorSeq.prototype.__iteratorUncached = function (s, o) {
  6284. if (o) return this.cacheResult().__iterator(s, o);
  6285. var i = this._iterator,
  6286. u = this._iteratorCache,
  6287. _ = 0;
  6288. return new Iterator(function () {
  6289. if (_ >= u.length) {
  6290. var o = i.next();
  6291. if (o.done) return o;
  6292. u[_] = o.value;
  6293. }
  6294. return iteratorValue(s, _, u[_++]);
  6295. });
  6296. }),
  6297. createClass(Repeat, IndexedSeq),
  6298. (Repeat.prototype.toString = function () {
  6299. return 0 === this.size
  6300. ? 'Repeat []'
  6301. : 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';
  6302. }),
  6303. (Repeat.prototype.get = function (s, o) {
  6304. return this.has(s) ? this._value : o;
  6305. }),
  6306. (Repeat.prototype.includes = function (s) {
  6307. return is(this._value, s);
  6308. }),
  6309. (Repeat.prototype.slice = function (s, o) {
  6310. var i = this.size;
  6311. return wholeSlice(s, o, i)
  6312. ? this
  6313. : new Repeat(this._value, resolveEnd(o, i) - resolveBegin(s, i));
  6314. }),
  6315. (Repeat.prototype.reverse = function () {
  6316. return this;
  6317. }),
  6318. (Repeat.prototype.indexOf = function (s) {
  6319. return is(this._value, s) ? 0 : -1;
  6320. }),
  6321. (Repeat.prototype.lastIndexOf = function (s) {
  6322. return is(this._value, s) ? this.size : -1;
  6323. }),
  6324. (Repeat.prototype.__iterate = function (s, o) {
  6325. for (var i = 0; i < this.size; i++)
  6326. if (!1 === s(this._value, i, this)) return i + 1;
  6327. return i;
  6328. }),
  6329. (Repeat.prototype.__iterator = function (s, o) {
  6330. var i = this,
  6331. u = 0;
  6332. return new Iterator(function () {
  6333. return u < i.size ? iteratorValue(s, u++, i._value) : iteratorDone();
  6334. });
  6335. }),
  6336. (Repeat.prototype.equals = function (s) {
  6337. return s instanceof Repeat ? is(this._value, s._value) : deepEqual(s);
  6338. }),
  6339. createClass(Range, IndexedSeq),
  6340. (Range.prototype.toString = function () {
  6341. return 0 === this.size
  6342. ? 'Range []'
  6343. : 'Range [ ' +
  6344. this._start +
  6345. '...' +
  6346. this._end +
  6347. (1 !== this._step ? ' by ' + this._step : '') +
  6348. ' ]';
  6349. }),
  6350. (Range.prototype.get = function (s, o) {
  6351. return this.has(s) ? this._start + wrapIndex(this, s) * this._step : o;
  6352. }),
  6353. (Range.prototype.includes = function (s) {
  6354. var o = (s - this._start) / this._step;
  6355. return o >= 0 && o < this.size && o === Math.floor(o);
  6356. }),
  6357. (Range.prototype.slice = function (s, o) {
  6358. return wholeSlice(s, o, this.size)
  6359. ? this
  6360. : ((s = resolveBegin(s, this.size)),
  6361. (o = resolveEnd(o, this.size)) <= s
  6362. ? new Range(0, 0)
  6363. : new Range(this.get(s, this._end), this.get(o, this._end), this._step));
  6364. }),
  6365. (Range.prototype.indexOf = function (s) {
  6366. var o = s - this._start;
  6367. if (o % this._step == 0) {
  6368. var i = o / this._step;
  6369. if (i >= 0 && i < this.size) return i;
  6370. }
  6371. return -1;
  6372. }),
  6373. (Range.prototype.lastIndexOf = function (s) {
  6374. return this.indexOf(s);
  6375. }),
  6376. (Range.prototype.__iterate = function (s, o) {
  6377. for (
  6378. var i = this.size - 1,
  6379. u = this._step,
  6380. _ = o ? this._start + i * u : this._start,
  6381. w = 0;
  6382. w <= i;
  6383. w++
  6384. ) {
  6385. if (!1 === s(_, w, this)) return w + 1;
  6386. _ += o ? -u : u;
  6387. }
  6388. return w;
  6389. }),
  6390. (Range.prototype.__iterator = function (s, o) {
  6391. var i = this.size - 1,
  6392. u = this._step,
  6393. _ = o ? this._start + i * u : this._start,
  6394. w = 0;
  6395. return new Iterator(function () {
  6396. var x = _;
  6397. return (_ += o ? -u : u), w > i ? iteratorDone() : iteratorValue(s, w++, x);
  6398. });
  6399. }),
  6400. (Range.prototype.equals = function (s) {
  6401. return s instanceof Range
  6402. ? this._start === s._start && this._end === s._end && this._step === s._step
  6403. : deepEqual(this, s);
  6404. }),
  6405. createClass(Collection, Iterable),
  6406. createClass(KeyedCollection, Collection),
  6407. createClass(IndexedCollection, Collection),
  6408. createClass(SetCollection, Collection),
  6409. (Collection.Keyed = KeyedCollection),
  6410. (Collection.Indexed = IndexedCollection),
  6411. (Collection.Set = SetCollection);
  6412. var pe =
  6413. 'function' == typeof Math.imul && -2 === Math.imul(4294967295, 2)
  6414. ? Math.imul
  6415. : function imul(s, o) {
  6416. var i = 65535 & (s |= 0),
  6417. u = 65535 & (o |= 0);
  6418. return (i * u + ((((s >>> 16) * u + i * (o >>> 16)) << 16) >>> 0)) | 0;
  6419. };
  6420. function smi(s) {
  6421. return ((s >>> 1) & 1073741824) | (3221225471 & s);
  6422. }
  6423. function hash(s) {
  6424. if (!1 === s || null == s) return 0;
  6425. if ('function' == typeof s.valueOf && (!1 === (s = s.valueOf()) || null == s))
  6426. return 0;
  6427. if (!0 === s) return 1;
  6428. var o = typeof s;
  6429. if ('number' === o) {
  6430. if (s != s || s === 1 / 0) return 0;
  6431. var i = 0 | s;
  6432. for (i !== s && (i ^= 4294967295 * s); s > 4294967295; ) i ^= s /= 4294967295;
  6433. return smi(i);
  6434. }
  6435. if ('string' === o) return s.length > Se ? cachedHashString(s) : hashString(s);
  6436. if ('function' == typeof s.hashCode) return s.hashCode();
  6437. if ('object' === o) return hashJSObj(s);
  6438. if ('function' == typeof s.toString) return hashString(s.toString());
  6439. throw new Error('Value type ' + o + ' cannot be hashed.');
  6440. }
  6441. function cachedHashString(s) {
  6442. var o = Te[s];
  6443. return (
  6444. void 0 === o &&
  6445. ((o = hashString(s)), Pe === xe && ((Pe = 0), (Te = {})), Pe++, (Te[s] = o)),
  6446. o
  6447. );
  6448. }
  6449. function hashString(s) {
  6450. for (var o = 0, i = 0; i < s.length; i++) o = (31 * o + s.charCodeAt(i)) | 0;
  6451. return smi(o);
  6452. }
  6453. function hashJSObj(s) {
  6454. var o;
  6455. if (be && void 0 !== (o = ye.get(s))) return o;
  6456. if (void 0 !== (o = s[we])) return o;
  6457. if (!fe) {
  6458. if (void 0 !== (o = s.propertyIsEnumerable && s.propertyIsEnumerable[we])) return o;
  6459. if (void 0 !== (o = getIENodeHash(s))) return o;
  6460. }
  6461. if (((o = ++_e), 1073741824 & _e && (_e = 0), be)) ye.set(s, o);
  6462. else {
  6463. if (void 0 !== de && !1 === de(s))
  6464. throw new Error('Non-extensible objects are not allowed as keys.');
  6465. if (fe)
  6466. Object.defineProperty(s, we, {
  6467. enumerable: !1,
  6468. configurable: !1,
  6469. writable: !1,
  6470. value: o
  6471. });
  6472. else if (
  6473. void 0 !== s.propertyIsEnumerable &&
  6474. s.propertyIsEnumerable === s.constructor.prototype.propertyIsEnumerable
  6475. )
  6476. (s.propertyIsEnumerable = function () {
  6477. return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments);
  6478. }),
  6479. (s.propertyIsEnumerable[we] = o);
  6480. else {
  6481. if (void 0 === s.nodeType)
  6482. throw new Error('Unable to set a non-enumerable property on object.');
  6483. s[we] = o;
  6484. }
  6485. }
  6486. return o;
  6487. }
  6488. var de = Object.isExtensible,
  6489. fe = (function () {
  6490. try {
  6491. return Object.defineProperty({}, '@', {}), !0;
  6492. } catch (s) {
  6493. return !1;
  6494. }
  6495. })();
  6496. function getIENodeHash(s) {
  6497. if (s && s.nodeType > 0)
  6498. switch (s.nodeType) {
  6499. case 1:
  6500. return s.uniqueID;
  6501. case 9:
  6502. return s.documentElement && s.documentElement.uniqueID;
  6503. }
  6504. }
  6505. var ye,
  6506. be = 'function' == typeof WeakMap;
  6507. be && (ye = new WeakMap());
  6508. var _e = 0,
  6509. we = '__immutablehash__';
  6510. 'function' == typeof Symbol && (we = Symbol(we));
  6511. var Se = 16,
  6512. xe = 255,
  6513. Pe = 0,
  6514. Te = {};
  6515. function assertNotInfinite(s) {
  6516. invariant(s !== 1 / 0, 'Cannot perform this action with an infinite size.');
  6517. }
  6518. function Map(s) {
  6519. return null == s
  6520. ? emptyMap()
  6521. : isMap(s) && !isOrdered(s)
  6522. ? s
  6523. : emptyMap().withMutations(function (o) {
  6524. var i = KeyedIterable(s);
  6525. assertNotInfinite(i.size),
  6526. i.forEach(function (s, i) {
  6527. return o.set(i, s);
  6528. });
  6529. });
  6530. }
  6531. function isMap(s) {
  6532. return !(!s || !s[qe]);
  6533. }
  6534. createClass(Map, KeyedCollection),
  6535. (Map.of = function () {
  6536. var o = s.call(arguments, 0);
  6537. return emptyMap().withMutations(function (s) {
  6538. for (var i = 0; i < o.length; i += 2) {
  6539. if (i + 1 >= o.length) throw new Error('Missing value for key: ' + o[i]);
  6540. s.set(o[i], o[i + 1]);
  6541. }
  6542. });
  6543. }),
  6544. (Map.prototype.toString = function () {
  6545. return this.__toString('Map {', '}');
  6546. }),
  6547. (Map.prototype.get = function (s, o) {
  6548. return this._root ? this._root.get(0, void 0, s, o) : o;
  6549. }),
  6550. (Map.prototype.set = function (s, o) {
  6551. return updateMap(this, s, o);
  6552. }),
  6553. (Map.prototype.setIn = function (s, o) {
  6554. return this.updateIn(s, L, function () {
  6555. return o;
  6556. });
  6557. }),
  6558. (Map.prototype.remove = function (s) {
  6559. return updateMap(this, s, L);
  6560. }),
  6561. (Map.prototype.deleteIn = function (s) {
  6562. return this.updateIn(s, function () {
  6563. return L;
  6564. });
  6565. }),
  6566. (Map.prototype.update = function (s, o, i) {
  6567. return 1 === arguments.length ? s(this) : this.updateIn([s], o, i);
  6568. }),
  6569. (Map.prototype.updateIn = function (s, o, i) {
  6570. i || ((i = o), (o = void 0));
  6571. var u = updateInDeepMap(this, forceIterator(s), o, i);
  6572. return u === L ? void 0 : u;
  6573. }),
  6574. (Map.prototype.clear = function () {
  6575. return 0 === this.size
  6576. ? this
  6577. : this.__ownerID
  6578. ? ((this.size = 0),
  6579. (this._root = null),
  6580. (this.__hash = void 0),
  6581. (this.__altered = !0),
  6582. this)
  6583. : emptyMap();
  6584. }),
  6585. (Map.prototype.merge = function () {
  6586. return mergeIntoMapWith(this, void 0, arguments);
  6587. }),
  6588. (Map.prototype.mergeWith = function (o) {
  6589. return mergeIntoMapWith(this, o, s.call(arguments, 1));
  6590. }),
  6591. (Map.prototype.mergeIn = function (o) {
  6592. var i = s.call(arguments, 1);
  6593. return this.updateIn(o, emptyMap(), function (s) {
  6594. return 'function' == typeof s.merge ? s.merge.apply(s, i) : i[i.length - 1];
  6595. });
  6596. }),
  6597. (Map.prototype.mergeDeep = function () {
  6598. return mergeIntoMapWith(this, deepMerger, arguments);
  6599. }),
  6600. (Map.prototype.mergeDeepWith = function (o) {
  6601. var i = s.call(arguments, 1);
  6602. return mergeIntoMapWith(this, deepMergerWith(o), i);
  6603. }),
  6604. (Map.prototype.mergeDeepIn = function (o) {
  6605. var i = s.call(arguments, 1);
  6606. return this.updateIn(o, emptyMap(), function (s) {
  6607. return 'function' == typeof s.mergeDeep
  6608. ? s.mergeDeep.apply(s, i)
  6609. : i[i.length - 1];
  6610. });
  6611. }),
  6612. (Map.prototype.sort = function (s) {
  6613. return OrderedMap(sortFactory(this, s));
  6614. }),
  6615. (Map.prototype.sortBy = function (s, o) {
  6616. return OrderedMap(sortFactory(this, o, s));
  6617. }),
  6618. (Map.prototype.withMutations = function (s) {
  6619. var o = this.asMutable();
  6620. return s(o), o.wasAltered() ? o.__ensureOwner(this.__ownerID) : this;
  6621. }),
  6622. (Map.prototype.asMutable = function () {
  6623. return this.__ownerID ? this : this.__ensureOwner(new OwnerID());
  6624. }),
  6625. (Map.prototype.asImmutable = function () {
  6626. return this.__ensureOwner();
  6627. }),
  6628. (Map.prototype.wasAltered = function () {
  6629. return this.__altered;
  6630. }),
  6631. (Map.prototype.__iterator = function (s, o) {
  6632. return new MapIterator(this, s, o);
  6633. }),
  6634. (Map.prototype.__iterate = function (s, o) {
  6635. var i = this,
  6636. u = 0;
  6637. return (
  6638. this._root &&
  6639. this._root.iterate(function (o) {
  6640. return u++, s(o[1], o[0], i);
  6641. }, o),
  6642. u
  6643. );
  6644. }),
  6645. (Map.prototype.__ensureOwner = function (s) {
  6646. return s === this.__ownerID
  6647. ? this
  6648. : s
  6649. ? makeMap(this.size, this._root, s, this.__hash)
  6650. : ((this.__ownerID = s), (this.__altered = !1), this);
  6651. }),
  6652. (Map.isMap = isMap);
  6653. var Re,
  6654. qe = '@@__IMMUTABLE_MAP__@@',
  6655. $e = Map.prototype;
  6656. function ArrayMapNode(s, o) {
  6657. (this.ownerID = s), (this.entries = o);
  6658. }
  6659. function BitmapIndexedNode(s, o, i) {
  6660. (this.ownerID = s), (this.bitmap = o), (this.nodes = i);
  6661. }
  6662. function HashArrayMapNode(s, o, i) {
  6663. (this.ownerID = s), (this.count = o), (this.nodes = i);
  6664. }
  6665. function HashCollisionNode(s, o, i) {
  6666. (this.ownerID = s), (this.keyHash = o), (this.entries = i);
  6667. }
  6668. function ValueNode(s, o, i) {
  6669. (this.ownerID = s), (this.keyHash = o), (this.entry = i);
  6670. }
  6671. function MapIterator(s, o, i) {
  6672. (this._type = o),
  6673. (this._reverse = i),
  6674. (this._stack = s._root && mapIteratorFrame(s._root));
  6675. }
  6676. function mapIteratorValue(s, o) {
  6677. return iteratorValue(s, o[0], o[1]);
  6678. }
  6679. function mapIteratorFrame(s, o) {
  6680. return { node: s, index: 0, __prev: o };
  6681. }
  6682. function makeMap(s, o, i, u) {
  6683. var _ = Object.create($e);
  6684. return (
  6685. (_.size = s),
  6686. (_._root = o),
  6687. (_.__ownerID = i),
  6688. (_.__hash = u),
  6689. (_.__altered = !1),
  6690. _
  6691. );
  6692. }
  6693. function emptyMap() {
  6694. return Re || (Re = makeMap(0));
  6695. }
  6696. function updateMap(s, o, i) {
  6697. var u, _;
  6698. if (s._root) {
  6699. var w = MakeRef(B),
  6700. x = MakeRef($);
  6701. if (((u = updateNode(s._root, s.__ownerID, 0, void 0, o, i, w, x)), !x.value))
  6702. return s;
  6703. _ = s.size + (w.value ? (i === L ? -1 : 1) : 0);
  6704. } else {
  6705. if (i === L) return s;
  6706. (_ = 1), (u = new ArrayMapNode(s.__ownerID, [[o, i]]));
  6707. }
  6708. return s.__ownerID
  6709. ? ((s.size = _), (s._root = u), (s.__hash = void 0), (s.__altered = !0), s)
  6710. : u
  6711. ? makeMap(_, u)
  6712. : emptyMap();
  6713. }
  6714. function updateNode(s, o, i, u, _, w, x, C) {
  6715. return s
  6716. ? s.update(o, i, u, _, w, x, C)
  6717. : w === L
  6718. ? s
  6719. : (SetRef(C), SetRef(x), new ValueNode(o, u, [_, w]));
  6720. }
  6721. function isLeafNode(s) {
  6722. return s.constructor === ValueNode || s.constructor === HashCollisionNode;
  6723. }
  6724. function mergeIntoNode(s, o, i, u, _) {
  6725. if (s.keyHash === u) return new HashCollisionNode(o, u, [s.entry, _]);
  6726. var w,
  6727. C = (0 === i ? s.keyHash : s.keyHash >>> i) & j,
  6728. L = (0 === i ? u : u >>> i) & j;
  6729. return new BitmapIndexedNode(
  6730. o,
  6731. (1 << C) | (1 << L),
  6732. C === L
  6733. ? [mergeIntoNode(s, o, i + x, u, _)]
  6734. : ((w = new ValueNode(o, u, _)), C < L ? [s, w] : [w, s])
  6735. );
  6736. }
  6737. function createNodes(s, o, i, u) {
  6738. s || (s = new OwnerID());
  6739. for (var _ = new ValueNode(s, hash(i), [i, u]), w = 0; w < o.length; w++) {
  6740. var x = o[w];
  6741. _ = _.update(s, 0, void 0, x[0], x[1]);
  6742. }
  6743. return _;
  6744. }
  6745. function packNodes(s, o, i, u) {
  6746. for (
  6747. var _ = 0, w = 0, x = new Array(i), C = 0, j = 1, L = o.length;
  6748. C < L;
  6749. C++, j <<= 1
  6750. ) {
  6751. var B = o[C];
  6752. void 0 !== B && C !== u && ((_ |= j), (x[w++] = B));
  6753. }
  6754. return new BitmapIndexedNode(s, _, x);
  6755. }
  6756. function expandNodes(s, o, i, u, _) {
  6757. for (var w = 0, x = new Array(C), j = 0; 0 !== i; j++, i >>>= 1)
  6758. x[j] = 1 & i ? o[w++] : void 0;
  6759. return (x[u] = _), new HashArrayMapNode(s, w + 1, x);
  6760. }
  6761. function mergeIntoMapWith(s, o, i) {
  6762. for (var u = [], _ = 0; _ < i.length; _++) {
  6763. var w = i[_],
  6764. x = KeyedIterable(w);
  6765. isIterable(w) ||
  6766. (x = x.map(function (s) {
  6767. return fromJS(s);
  6768. })),
  6769. u.push(x);
  6770. }
  6771. return mergeIntoCollectionWith(s, o, u);
  6772. }
  6773. function deepMerger(s, o, i) {
  6774. return s && s.mergeDeep && isIterable(o) ? s.mergeDeep(o) : is(s, o) ? s : o;
  6775. }
  6776. function deepMergerWith(s) {
  6777. return function (o, i, u) {
  6778. if (o && o.mergeDeepWith && isIterable(i)) return o.mergeDeepWith(s, i);
  6779. var _ = s(o, i, u);
  6780. return is(o, _) ? o : _;
  6781. };
  6782. }
  6783. function mergeIntoCollectionWith(s, o, i) {
  6784. return 0 ===
  6785. (i = i.filter(function (s) {
  6786. return 0 !== s.size;
  6787. })).length
  6788. ? s
  6789. : 0 !== s.size || s.__ownerID || 1 !== i.length
  6790. ? s.withMutations(function (s) {
  6791. for (
  6792. var u = o
  6793. ? function (i, u) {
  6794. s.update(u, L, function (s) {
  6795. return s === L ? i : o(s, i, u);
  6796. });
  6797. }
  6798. : function (o, i) {
  6799. s.set(i, o);
  6800. },
  6801. _ = 0;
  6802. _ < i.length;
  6803. _++
  6804. )
  6805. i[_].forEach(u);
  6806. })
  6807. : s.constructor(i[0]);
  6808. }
  6809. function updateInDeepMap(s, o, i, u) {
  6810. var _ = s === L,
  6811. w = o.next();
  6812. if (w.done) {
  6813. var x = _ ? i : s,
  6814. C = u(x);
  6815. return C === x ? s : C;
  6816. }
  6817. invariant(_ || (s && s.set), 'invalid keyPath');
  6818. var j = w.value,
  6819. B = _ ? L : s.get(j, L),
  6820. $ = updateInDeepMap(B, o, i, u);
  6821. return $ === B ? s : $ === L ? s.remove(j) : (_ ? emptyMap() : s).set(j, $);
  6822. }
  6823. function popCount(s) {
  6824. return (
  6825. (s =
  6826. ((s = (858993459 & (s -= (s >> 1) & 1431655765)) + ((s >> 2) & 858993459)) +
  6827. (s >> 4)) &
  6828. 252645135),
  6829. (s += s >> 8),
  6830. 127 & (s += s >> 16)
  6831. );
  6832. }
  6833. function setIn(s, o, i, u) {
  6834. var _ = u ? s : arrCopy(s);
  6835. return (_[o] = i), _;
  6836. }
  6837. function spliceIn(s, o, i, u) {
  6838. var _ = s.length + 1;
  6839. if (u && o + 1 === _) return (s[o] = i), s;
  6840. for (var w = new Array(_), x = 0, C = 0; C < _; C++)
  6841. C === o ? ((w[C] = i), (x = -1)) : (w[C] = s[C + x]);
  6842. return w;
  6843. }
  6844. function spliceOut(s, o, i) {
  6845. var u = s.length - 1;
  6846. if (i && o === u) return s.pop(), s;
  6847. for (var _ = new Array(u), w = 0, x = 0; x < u; x++)
  6848. x === o && (w = 1), (_[x] = s[x + w]);
  6849. return _;
  6850. }
  6851. ($e[qe] = !0),
  6852. ($e[w] = $e.remove),
  6853. ($e.removeIn = $e.deleteIn),
  6854. (ArrayMapNode.prototype.get = function (s, o, i, u) {
  6855. for (var _ = this.entries, w = 0, x = _.length; w < x; w++)
  6856. if (is(i, _[w][0])) return _[w][1];
  6857. return u;
  6858. }),
  6859. (ArrayMapNode.prototype.update = function (s, o, i, u, _, w, x) {
  6860. for (
  6861. var C = _ === L, j = this.entries, B = 0, $ = j.length;
  6862. B < $ && !is(u, j[B][0]);
  6863. B++
  6864. );
  6865. var V = B < $;
  6866. if (V ? j[B][1] === _ : C) return this;
  6867. if ((SetRef(x), (C || !V) && SetRef(w), !C || 1 !== j.length)) {
  6868. if (!V && !C && j.length >= ze) return createNodes(s, j, u, _);
  6869. var U = s && s === this.ownerID,
  6870. z = U ? j : arrCopy(j);
  6871. return (
  6872. V
  6873. ? C
  6874. ? B === $ - 1
  6875. ? z.pop()
  6876. : (z[B] = z.pop())
  6877. : (z[B] = [u, _])
  6878. : z.push([u, _]),
  6879. U ? ((this.entries = z), this) : new ArrayMapNode(s, z)
  6880. );
  6881. }
  6882. }),
  6883. (BitmapIndexedNode.prototype.get = function (s, o, i, u) {
  6884. void 0 === o && (o = hash(i));
  6885. var _ = 1 << ((0 === s ? o : o >>> s) & j),
  6886. w = this.bitmap;
  6887. return w & _ ? this.nodes[popCount(w & (_ - 1))].get(s + x, o, i, u) : u;
  6888. }),
  6889. (BitmapIndexedNode.prototype.update = function (s, o, i, u, _, w, C) {
  6890. void 0 === i && (i = hash(u));
  6891. var B = (0 === o ? i : i >>> o) & j,
  6892. $ = 1 << B,
  6893. V = this.bitmap,
  6894. U = !!(V & $);
  6895. if (!U && _ === L) return this;
  6896. var z = popCount(V & ($ - 1)),
  6897. Y = this.nodes,
  6898. Z = U ? Y[z] : void 0,
  6899. ee = updateNode(Z, s, o + x, i, u, _, w, C);
  6900. if (ee === Z) return this;
  6901. if (!U && ee && Y.length >= We) return expandNodes(s, Y, V, B, ee);
  6902. if (U && !ee && 2 === Y.length && isLeafNode(Y[1 ^ z])) return Y[1 ^ z];
  6903. if (U && ee && 1 === Y.length && isLeafNode(ee)) return ee;
  6904. var ie = s && s === this.ownerID,
  6905. ae = U ? (ee ? V : V ^ $) : V | $,
  6906. le = U
  6907. ? ee
  6908. ? setIn(Y, z, ee, ie)
  6909. : spliceOut(Y, z, ie)
  6910. : spliceIn(Y, z, ee, ie);
  6911. return ie
  6912. ? ((this.bitmap = ae), (this.nodes = le), this)
  6913. : new BitmapIndexedNode(s, ae, le);
  6914. }),
  6915. (HashArrayMapNode.prototype.get = function (s, o, i, u) {
  6916. void 0 === o && (o = hash(i));
  6917. var _ = (0 === s ? o : o >>> s) & j,
  6918. w = this.nodes[_];
  6919. return w ? w.get(s + x, o, i, u) : u;
  6920. }),
  6921. (HashArrayMapNode.prototype.update = function (s, o, i, u, _, w, C) {
  6922. void 0 === i && (i = hash(u));
  6923. var B = (0 === o ? i : i >>> o) & j,
  6924. $ = _ === L,
  6925. V = this.nodes,
  6926. U = V[B];
  6927. if ($ && !U) return this;
  6928. var z = updateNode(U, s, o + x, i, u, _, w, C);
  6929. if (z === U) return this;
  6930. var Y = this.count;
  6931. if (U) {
  6932. if (!z && --Y < He) return packNodes(s, V, Y, B);
  6933. } else Y++;
  6934. var Z = s && s === this.ownerID,
  6935. ee = setIn(V, B, z, Z);
  6936. return Z
  6937. ? ((this.count = Y), (this.nodes = ee), this)
  6938. : new HashArrayMapNode(s, Y, ee);
  6939. }),
  6940. (HashCollisionNode.prototype.get = function (s, o, i, u) {
  6941. for (var _ = this.entries, w = 0, x = _.length; w < x; w++)
  6942. if (is(i, _[w][0])) return _[w][1];
  6943. return u;
  6944. }),
  6945. (HashCollisionNode.prototype.update = function (s, o, i, u, _, w, x) {
  6946. void 0 === i && (i = hash(u));
  6947. var C = _ === L;
  6948. if (i !== this.keyHash)
  6949. return C ? this : (SetRef(x), SetRef(w), mergeIntoNode(this, s, o, i, [u, _]));
  6950. for (var j = this.entries, B = 0, $ = j.length; B < $ && !is(u, j[B][0]); B++);
  6951. var V = B < $;
  6952. if (V ? j[B][1] === _ : C) return this;
  6953. if ((SetRef(x), (C || !V) && SetRef(w), C && 2 === $))
  6954. return new ValueNode(s, this.keyHash, j[1 ^ B]);
  6955. var U = s && s === this.ownerID,
  6956. z = U ? j : arrCopy(j);
  6957. return (
  6958. V
  6959. ? C
  6960. ? B === $ - 1
  6961. ? z.pop()
  6962. : (z[B] = z.pop())
  6963. : (z[B] = [u, _])
  6964. : z.push([u, _]),
  6965. U ? ((this.entries = z), this) : new HashCollisionNode(s, this.keyHash, z)
  6966. );
  6967. }),
  6968. (ValueNode.prototype.get = function (s, o, i, u) {
  6969. return is(i, this.entry[0]) ? this.entry[1] : u;
  6970. }),
  6971. (ValueNode.prototype.update = function (s, o, i, u, _, w, x) {
  6972. var C = _ === L,
  6973. j = is(u, this.entry[0]);
  6974. return (j ? _ === this.entry[1] : C)
  6975. ? this
  6976. : (SetRef(x),
  6977. C
  6978. ? void SetRef(w)
  6979. : j
  6980. ? s && s === this.ownerID
  6981. ? ((this.entry[1] = _), this)
  6982. : new ValueNode(s, this.keyHash, [u, _])
  6983. : (SetRef(w), mergeIntoNode(this, s, o, hash(u), [u, _])));
  6984. }),
  6985. (ArrayMapNode.prototype.iterate = HashCollisionNode.prototype.iterate =
  6986. function (s, o) {
  6987. for (var i = this.entries, u = 0, _ = i.length - 1; u <= _; u++)
  6988. if (!1 === s(i[o ? _ - u : u])) return !1;
  6989. }),
  6990. (BitmapIndexedNode.prototype.iterate = HashArrayMapNode.prototype.iterate =
  6991. function (s, o) {
  6992. for (var i = this.nodes, u = 0, _ = i.length - 1; u <= _; u++) {
  6993. var w = i[o ? _ - u : u];
  6994. if (w && !1 === w.iterate(s, o)) return !1;
  6995. }
  6996. }),
  6997. (ValueNode.prototype.iterate = function (s, o) {
  6998. return s(this.entry);
  6999. }),
  7000. createClass(MapIterator, Iterator),
  7001. (MapIterator.prototype.next = function () {
  7002. for (var s = this._type, o = this._stack; o; ) {
  7003. var i,
  7004. u = o.node,
  7005. _ = o.index++;
  7006. if (u.entry) {
  7007. if (0 === _) return mapIteratorValue(s, u.entry);
  7008. } else if (u.entries) {
  7009. if (_ <= (i = u.entries.length - 1))
  7010. return mapIteratorValue(s, u.entries[this._reverse ? i - _ : _]);
  7011. } else if (_ <= (i = u.nodes.length - 1)) {
  7012. var w = u.nodes[this._reverse ? i - _ : _];
  7013. if (w) {
  7014. if (w.entry) return mapIteratorValue(s, w.entry);
  7015. o = this._stack = mapIteratorFrame(w, o);
  7016. }
  7017. continue;
  7018. }
  7019. o = this._stack = this._stack.__prev;
  7020. }
  7021. return iteratorDone();
  7022. });
  7023. var ze = C / 4,
  7024. We = C / 2,
  7025. He = C / 4;
  7026. function List(s) {
  7027. var o = emptyList();
  7028. if (null == s) return o;
  7029. if (isList(s)) return s;
  7030. var i = IndexedIterable(s),
  7031. u = i.size;
  7032. return 0 === u
  7033. ? o
  7034. : (assertNotInfinite(u),
  7035. u > 0 && u < C
  7036. ? makeList(0, u, x, null, new VNode(i.toArray()))
  7037. : o.withMutations(function (s) {
  7038. s.setSize(u),
  7039. i.forEach(function (o, i) {
  7040. return s.set(i, o);
  7041. });
  7042. }));
  7043. }
  7044. function isList(s) {
  7045. return !(!s || !s[Ye]);
  7046. }
  7047. createClass(List, IndexedCollection),
  7048. (List.of = function () {
  7049. return this(arguments);
  7050. }),
  7051. (List.prototype.toString = function () {
  7052. return this.__toString('List [', ']');
  7053. }),
  7054. (List.prototype.get = function (s, o) {
  7055. if ((s = wrapIndex(this, s)) >= 0 && s < this.size) {
  7056. var i = listNodeFor(this, (s += this._origin));
  7057. return i && i.array[s & j];
  7058. }
  7059. return o;
  7060. }),
  7061. (List.prototype.set = function (s, o) {
  7062. return updateList(this, s, o);
  7063. }),
  7064. (List.prototype.remove = function (s) {
  7065. return this.has(s)
  7066. ? 0 === s
  7067. ? this.shift()
  7068. : s === this.size - 1
  7069. ? this.pop()
  7070. : this.splice(s, 1)
  7071. : this;
  7072. }),
  7073. (List.prototype.insert = function (s, o) {
  7074. return this.splice(s, 0, o);
  7075. }),
  7076. (List.prototype.clear = function () {
  7077. return 0 === this.size
  7078. ? this
  7079. : this.__ownerID
  7080. ? ((this.size = this._origin = this._capacity = 0),
  7081. (this._level = x),
  7082. (this._root = this._tail = null),
  7083. (this.__hash = void 0),
  7084. (this.__altered = !0),
  7085. this)
  7086. : emptyList();
  7087. }),
  7088. (List.prototype.push = function () {
  7089. var s = arguments,
  7090. o = this.size;
  7091. return this.withMutations(function (i) {
  7092. setListBounds(i, 0, o + s.length);
  7093. for (var u = 0; u < s.length; u++) i.set(o + u, s[u]);
  7094. });
  7095. }),
  7096. (List.prototype.pop = function () {
  7097. return setListBounds(this, 0, -1);
  7098. }),
  7099. (List.prototype.unshift = function () {
  7100. var s = arguments;
  7101. return this.withMutations(function (o) {
  7102. setListBounds(o, -s.length);
  7103. for (var i = 0; i < s.length; i++) o.set(i, s[i]);
  7104. });
  7105. }),
  7106. (List.prototype.shift = function () {
  7107. return setListBounds(this, 1);
  7108. }),
  7109. (List.prototype.merge = function () {
  7110. return mergeIntoListWith(this, void 0, arguments);
  7111. }),
  7112. (List.prototype.mergeWith = function (o) {
  7113. return mergeIntoListWith(this, o, s.call(arguments, 1));
  7114. }),
  7115. (List.prototype.mergeDeep = function () {
  7116. return mergeIntoListWith(this, deepMerger, arguments);
  7117. }),
  7118. (List.prototype.mergeDeepWith = function (o) {
  7119. var i = s.call(arguments, 1);
  7120. return mergeIntoListWith(this, deepMergerWith(o), i);
  7121. }),
  7122. (List.prototype.setSize = function (s) {
  7123. return setListBounds(this, 0, s);
  7124. }),
  7125. (List.prototype.slice = function (s, o) {
  7126. var i = this.size;
  7127. return wholeSlice(s, o, i)
  7128. ? this
  7129. : setListBounds(this, resolveBegin(s, i), resolveEnd(o, i));
  7130. }),
  7131. (List.prototype.__iterator = function (s, o) {
  7132. var i = 0,
  7133. u = iterateList(this, o);
  7134. return new Iterator(function () {
  7135. var o = u();
  7136. return o === tt ? iteratorDone() : iteratorValue(s, i++, o);
  7137. });
  7138. }),
  7139. (List.prototype.__iterate = function (s, o) {
  7140. for (
  7141. var i, u = 0, _ = iterateList(this, o);
  7142. (i = _()) !== tt && !1 !== s(i, u++, this);
  7143. );
  7144. return u;
  7145. }),
  7146. (List.prototype.__ensureOwner = function (s) {
  7147. return s === this.__ownerID
  7148. ? this
  7149. : s
  7150. ? makeList(
  7151. this._origin,
  7152. this._capacity,
  7153. this._level,
  7154. this._root,
  7155. this._tail,
  7156. s,
  7157. this.__hash
  7158. )
  7159. : ((this.__ownerID = s), this);
  7160. }),
  7161. (List.isList = isList);
  7162. var Ye = '@@__IMMUTABLE_LIST__@@',
  7163. Xe = List.prototype;
  7164. function VNode(s, o) {
  7165. (this.array = s), (this.ownerID = o);
  7166. }
  7167. (Xe[Ye] = !0),
  7168. (Xe[w] = Xe.remove),
  7169. (Xe.setIn = $e.setIn),
  7170. (Xe.deleteIn = Xe.removeIn = $e.removeIn),
  7171. (Xe.update = $e.update),
  7172. (Xe.updateIn = $e.updateIn),
  7173. (Xe.mergeIn = $e.mergeIn),
  7174. (Xe.mergeDeepIn = $e.mergeDeepIn),
  7175. (Xe.withMutations = $e.withMutations),
  7176. (Xe.asMutable = $e.asMutable),
  7177. (Xe.asImmutable = $e.asImmutable),
  7178. (Xe.wasAltered = $e.wasAltered),
  7179. (VNode.prototype.removeBefore = function (s, o, i) {
  7180. if (i === o ? 1 << o : 0 === this.array.length) return this;
  7181. var u = (i >>> o) & j;
  7182. if (u >= this.array.length) return new VNode([], s);
  7183. var _,
  7184. w = 0 === u;
  7185. if (o > 0) {
  7186. var C = this.array[u];
  7187. if ((_ = C && C.removeBefore(s, o - x, i)) === C && w) return this;
  7188. }
  7189. if (w && !_) return this;
  7190. var L = editableVNode(this, s);
  7191. if (!w) for (var B = 0; B < u; B++) L.array[B] = void 0;
  7192. return _ && (L.array[u] = _), L;
  7193. }),
  7194. (VNode.prototype.removeAfter = function (s, o, i) {
  7195. if (i === (o ? 1 << o : 0) || 0 === this.array.length) return this;
  7196. var u,
  7197. _ = ((i - 1) >>> o) & j;
  7198. if (_ >= this.array.length) return this;
  7199. if (o > 0) {
  7200. var w = this.array[_];
  7201. if ((u = w && w.removeAfter(s, o - x, i)) === w && _ === this.array.length - 1)
  7202. return this;
  7203. }
  7204. var C = editableVNode(this, s);
  7205. return C.array.splice(_ + 1), u && (C.array[_] = u), C;
  7206. });
  7207. var Qe,
  7208. et,
  7209. tt = {};
  7210. function iterateList(s, o) {
  7211. var i = s._origin,
  7212. u = s._capacity,
  7213. _ = getTailOffset(u),
  7214. w = s._tail;
  7215. return iterateNodeOrLeaf(s._root, s._level, 0);
  7216. function iterateNodeOrLeaf(s, o, i) {
  7217. return 0 === o ? iterateLeaf(s, i) : iterateNode(s, o, i);
  7218. }
  7219. function iterateLeaf(s, x) {
  7220. var j = x === _ ? w && w.array : s && s.array,
  7221. L = x > i ? 0 : i - x,
  7222. B = u - x;
  7223. return (
  7224. B > C && (B = C),
  7225. function () {
  7226. if (L === B) return tt;
  7227. var s = o ? --B : L++;
  7228. return j && j[s];
  7229. }
  7230. );
  7231. }
  7232. function iterateNode(s, _, w) {
  7233. var j,
  7234. L = s && s.array,
  7235. B = w > i ? 0 : (i - w) >> _,
  7236. $ = 1 + ((u - w) >> _);
  7237. return (
  7238. $ > C && ($ = C),
  7239. function () {
  7240. for (;;) {
  7241. if (j) {
  7242. var s = j();
  7243. if (s !== tt) return s;
  7244. j = null;
  7245. }
  7246. if (B === $) return tt;
  7247. var i = o ? --$ : B++;
  7248. j = iterateNodeOrLeaf(L && L[i], _ - x, w + (i << _));
  7249. }
  7250. }
  7251. );
  7252. }
  7253. }
  7254. function makeList(s, o, i, u, _, w, x) {
  7255. var C = Object.create(Xe);
  7256. return (
  7257. (C.size = o - s),
  7258. (C._origin = s),
  7259. (C._capacity = o),
  7260. (C._level = i),
  7261. (C._root = u),
  7262. (C._tail = _),
  7263. (C.__ownerID = w),
  7264. (C.__hash = x),
  7265. (C.__altered = !1),
  7266. C
  7267. );
  7268. }
  7269. function emptyList() {
  7270. return Qe || (Qe = makeList(0, 0, x));
  7271. }
  7272. function updateList(s, o, i) {
  7273. if ((o = wrapIndex(s, o)) != o) return s;
  7274. if (o >= s.size || o < 0)
  7275. return s.withMutations(function (s) {
  7276. o < 0 ? setListBounds(s, o).set(0, i) : setListBounds(s, 0, o + 1).set(o, i);
  7277. });
  7278. o += s._origin;
  7279. var u = s._tail,
  7280. _ = s._root,
  7281. w = MakeRef($);
  7282. return (
  7283. o >= getTailOffset(s._capacity)
  7284. ? (u = updateVNode(u, s.__ownerID, 0, o, i, w))
  7285. : (_ = updateVNode(_, s.__ownerID, s._level, o, i, w)),
  7286. w.value
  7287. ? s.__ownerID
  7288. ? ((s._root = _), (s._tail = u), (s.__hash = void 0), (s.__altered = !0), s)
  7289. : makeList(s._origin, s._capacity, s._level, _, u)
  7290. : s
  7291. );
  7292. }
  7293. function updateVNode(s, o, i, u, _, w) {
  7294. var C,
  7295. L = (u >>> i) & j,
  7296. B = s && L < s.array.length;
  7297. if (!B && void 0 === _) return s;
  7298. if (i > 0) {
  7299. var $ = s && s.array[L],
  7300. V = updateVNode($, o, i - x, u, _, w);
  7301. return V === $ ? s : (((C = editableVNode(s, o)).array[L] = V), C);
  7302. }
  7303. return B && s.array[L] === _
  7304. ? s
  7305. : (SetRef(w),
  7306. (C = editableVNode(s, o)),
  7307. void 0 === _ && L === C.array.length - 1 ? C.array.pop() : (C.array[L] = _),
  7308. C);
  7309. }
  7310. function editableVNode(s, o) {
  7311. return o && s && o === s.ownerID ? s : new VNode(s ? s.array.slice() : [], o);
  7312. }
  7313. function listNodeFor(s, o) {
  7314. if (o >= getTailOffset(s._capacity)) return s._tail;
  7315. if (o < 1 << (s._level + x)) {
  7316. for (var i = s._root, u = s._level; i && u > 0; )
  7317. (i = i.array[(o >>> u) & j]), (u -= x);
  7318. return i;
  7319. }
  7320. }
  7321. function setListBounds(s, o, i) {
  7322. void 0 !== o && (o |= 0), void 0 !== i && (i |= 0);
  7323. var u = s.__ownerID || new OwnerID(),
  7324. _ = s._origin,
  7325. w = s._capacity,
  7326. C = _ + o,
  7327. L = void 0 === i ? w : i < 0 ? w + i : _ + i;
  7328. if (C === _ && L === w) return s;
  7329. if (C >= L) return s.clear();
  7330. for (var B = s._level, $ = s._root, V = 0; C + V < 0; )
  7331. ($ = new VNode($ && $.array.length ? [void 0, $] : [], u)), (V += 1 << (B += x));
  7332. V && ((C += V), (_ += V), (L += V), (w += V));
  7333. for (var U = getTailOffset(w), z = getTailOffset(L); z >= 1 << (B + x); )
  7334. ($ = new VNode($ && $.array.length ? [$] : [], u)), (B += x);
  7335. var Y = s._tail,
  7336. Z = z < U ? listNodeFor(s, L - 1) : z > U ? new VNode([], u) : Y;
  7337. if (Y && z > U && C < w && Y.array.length) {
  7338. for (var ee = ($ = editableVNode($, u)), ie = B; ie > x; ie -= x) {
  7339. var ae = (U >>> ie) & j;
  7340. ee = ee.array[ae] = editableVNode(ee.array[ae], u);
  7341. }
  7342. ee.array[(U >>> x) & j] = Y;
  7343. }
  7344. if ((L < w && (Z = Z && Z.removeAfter(u, 0, L)), C >= z))
  7345. (C -= z), (L -= z), (B = x), ($ = null), (Z = Z && Z.removeBefore(u, 0, C));
  7346. else if (C > _ || z < U) {
  7347. for (V = 0; $; ) {
  7348. var le = (C >>> B) & j;
  7349. if ((le !== z >>> B) & j) break;
  7350. le && (V += (1 << B) * le), (B -= x), ($ = $.array[le]);
  7351. }
  7352. $ && C > _ && ($ = $.removeBefore(u, B, C - V)),
  7353. $ && z < U && ($ = $.removeAfter(u, B, z - V)),
  7354. V && ((C -= V), (L -= V));
  7355. }
  7356. return s.__ownerID
  7357. ? ((s.size = L - C),
  7358. (s._origin = C),
  7359. (s._capacity = L),
  7360. (s._level = B),
  7361. (s._root = $),
  7362. (s._tail = Z),
  7363. (s.__hash = void 0),
  7364. (s.__altered = !0),
  7365. s)
  7366. : makeList(C, L, B, $, Z);
  7367. }
  7368. function mergeIntoListWith(s, o, i) {
  7369. for (var u = [], _ = 0, w = 0; w < i.length; w++) {
  7370. var x = i[w],
  7371. C = IndexedIterable(x);
  7372. C.size > _ && (_ = C.size),
  7373. isIterable(x) ||
  7374. (C = C.map(function (s) {
  7375. return fromJS(s);
  7376. })),
  7377. u.push(C);
  7378. }
  7379. return _ > s.size && (s = s.setSize(_)), mergeIntoCollectionWith(s, o, u);
  7380. }
  7381. function getTailOffset(s) {
  7382. return s < C ? 0 : ((s - 1) >>> x) << x;
  7383. }
  7384. function OrderedMap(s) {
  7385. return null == s
  7386. ? emptyOrderedMap()
  7387. : isOrderedMap(s)
  7388. ? s
  7389. : emptyOrderedMap().withMutations(function (o) {
  7390. var i = KeyedIterable(s);
  7391. assertNotInfinite(i.size),
  7392. i.forEach(function (s, i) {
  7393. return o.set(i, s);
  7394. });
  7395. });
  7396. }
  7397. function isOrderedMap(s) {
  7398. return isMap(s) && isOrdered(s);
  7399. }
  7400. function makeOrderedMap(s, o, i, u) {
  7401. var _ = Object.create(OrderedMap.prototype);
  7402. return (
  7403. (_.size = s ? s.size : 0),
  7404. (_._map = s),
  7405. (_._list = o),
  7406. (_.__ownerID = i),
  7407. (_.__hash = u),
  7408. _
  7409. );
  7410. }
  7411. function emptyOrderedMap() {
  7412. return et || (et = makeOrderedMap(emptyMap(), emptyList()));
  7413. }
  7414. function updateOrderedMap(s, o, i) {
  7415. var u,
  7416. _,
  7417. w = s._map,
  7418. x = s._list,
  7419. j = w.get(o),
  7420. B = void 0 !== j;
  7421. if (i === L) {
  7422. if (!B) return s;
  7423. x.size >= C && x.size >= 2 * w.size
  7424. ? ((u = (_ = x.filter(function (s, o) {
  7425. return void 0 !== s && j !== o;
  7426. }))
  7427. .toKeyedSeq()
  7428. .map(function (s) {
  7429. return s[0];
  7430. })
  7431. .flip()
  7432. .toMap()),
  7433. s.__ownerID && (u.__ownerID = _.__ownerID = s.__ownerID))
  7434. : ((u = w.remove(o)), (_ = j === x.size - 1 ? x.pop() : x.set(j, void 0)));
  7435. } else if (B) {
  7436. if (i === x.get(j)[1]) return s;
  7437. (u = w), (_ = x.set(j, [o, i]));
  7438. } else (u = w.set(o, x.size)), (_ = x.set(x.size, [o, i]));
  7439. return s.__ownerID
  7440. ? ((s.size = u.size), (s._map = u), (s._list = _), (s.__hash = void 0), s)
  7441. : makeOrderedMap(u, _);
  7442. }
  7443. function ToKeyedSequence(s, o) {
  7444. (this._iter = s), (this._useKeys = o), (this.size = s.size);
  7445. }
  7446. function ToIndexedSequence(s) {
  7447. (this._iter = s), (this.size = s.size);
  7448. }
  7449. function ToSetSequence(s) {
  7450. (this._iter = s), (this.size = s.size);
  7451. }
  7452. function FromEntriesSequence(s) {
  7453. (this._iter = s), (this.size = s.size);
  7454. }
  7455. function flipFactory(s) {
  7456. var o = makeSequence(s);
  7457. return (
  7458. (o._iter = s),
  7459. (o.size = s.size),
  7460. (o.flip = function () {
  7461. return s;
  7462. }),
  7463. (o.reverse = function () {
  7464. var o = s.reverse.apply(this);
  7465. return (
  7466. (o.flip = function () {
  7467. return s.reverse();
  7468. }),
  7469. o
  7470. );
  7471. }),
  7472. (o.has = function (o) {
  7473. return s.includes(o);
  7474. }),
  7475. (o.includes = function (o) {
  7476. return s.has(o);
  7477. }),
  7478. (o.cacheResult = cacheResultThrough),
  7479. (o.__iterateUncached = function (o, i) {
  7480. var u = this;
  7481. return s.__iterate(function (s, i) {
  7482. return !1 !== o(i, s, u);
  7483. }, i);
  7484. }),
  7485. (o.__iteratorUncached = function (o, i) {
  7486. if (o === z) {
  7487. var u = s.__iterator(o, i);
  7488. return new Iterator(function () {
  7489. var s = u.next();
  7490. if (!s.done) {
  7491. var o = s.value[0];
  7492. (s.value[0] = s.value[1]), (s.value[1] = o);
  7493. }
  7494. return s;
  7495. });
  7496. }
  7497. return s.__iterator(o === U ? V : U, i);
  7498. }),
  7499. o
  7500. );
  7501. }
  7502. function mapFactory(s, o, i) {
  7503. var u = makeSequence(s);
  7504. return (
  7505. (u.size = s.size),
  7506. (u.has = function (o) {
  7507. return s.has(o);
  7508. }),
  7509. (u.get = function (u, _) {
  7510. var w = s.get(u, L);
  7511. return w === L ? _ : o.call(i, w, u, s);
  7512. }),
  7513. (u.__iterateUncached = function (u, _) {
  7514. var w = this;
  7515. return s.__iterate(function (s, _, x) {
  7516. return !1 !== u(o.call(i, s, _, x), _, w);
  7517. }, _);
  7518. }),
  7519. (u.__iteratorUncached = function (u, _) {
  7520. var w = s.__iterator(z, _);
  7521. return new Iterator(function () {
  7522. var _ = w.next();
  7523. if (_.done) return _;
  7524. var x = _.value,
  7525. C = x[0];
  7526. return iteratorValue(u, C, o.call(i, x[1], C, s), _);
  7527. });
  7528. }),
  7529. u
  7530. );
  7531. }
  7532. function reverseFactory(s, o) {
  7533. var i = makeSequence(s);
  7534. return (
  7535. (i._iter = s),
  7536. (i.size = s.size),
  7537. (i.reverse = function () {
  7538. return s;
  7539. }),
  7540. s.flip &&
  7541. (i.flip = function () {
  7542. var o = flipFactory(s);
  7543. return (
  7544. (o.reverse = function () {
  7545. return s.flip();
  7546. }),
  7547. o
  7548. );
  7549. }),
  7550. (i.get = function (i, u) {
  7551. return s.get(o ? i : -1 - i, u);
  7552. }),
  7553. (i.has = function (i) {
  7554. return s.has(o ? i : -1 - i);
  7555. }),
  7556. (i.includes = function (o) {
  7557. return s.includes(o);
  7558. }),
  7559. (i.cacheResult = cacheResultThrough),
  7560. (i.__iterate = function (o, i) {
  7561. var u = this;
  7562. return s.__iterate(function (s, i) {
  7563. return o(s, i, u);
  7564. }, !i);
  7565. }),
  7566. (i.__iterator = function (o, i) {
  7567. return s.__iterator(o, !i);
  7568. }),
  7569. i
  7570. );
  7571. }
  7572. function filterFactory(s, o, i, u) {
  7573. var _ = makeSequence(s);
  7574. return (
  7575. u &&
  7576. ((_.has = function (u) {
  7577. var _ = s.get(u, L);
  7578. return _ !== L && !!o.call(i, _, u, s);
  7579. }),
  7580. (_.get = function (u, _) {
  7581. var w = s.get(u, L);
  7582. return w !== L && o.call(i, w, u, s) ? w : _;
  7583. })),
  7584. (_.__iterateUncached = function (_, w) {
  7585. var x = this,
  7586. C = 0;
  7587. return (
  7588. s.__iterate(function (s, w, j) {
  7589. if (o.call(i, s, w, j)) return C++, _(s, u ? w : C - 1, x);
  7590. }, w),
  7591. C
  7592. );
  7593. }),
  7594. (_.__iteratorUncached = function (_, w) {
  7595. var x = s.__iterator(z, w),
  7596. C = 0;
  7597. return new Iterator(function () {
  7598. for (;;) {
  7599. var w = x.next();
  7600. if (w.done) return w;
  7601. var j = w.value,
  7602. L = j[0],
  7603. B = j[1];
  7604. if (o.call(i, B, L, s)) return iteratorValue(_, u ? L : C++, B, w);
  7605. }
  7606. });
  7607. }),
  7608. _
  7609. );
  7610. }
  7611. function countByFactory(s, o, i) {
  7612. var u = Map().asMutable();
  7613. return (
  7614. s.__iterate(function (_, w) {
  7615. u.update(o.call(i, _, w, s), 0, function (s) {
  7616. return s + 1;
  7617. });
  7618. }),
  7619. u.asImmutable()
  7620. );
  7621. }
  7622. function groupByFactory(s, o, i) {
  7623. var u = isKeyed(s),
  7624. _ = (isOrdered(s) ? OrderedMap() : Map()).asMutable();
  7625. s.__iterate(function (w, x) {
  7626. _.update(o.call(i, w, x, s), function (s) {
  7627. return (s = s || []).push(u ? [x, w] : w), s;
  7628. });
  7629. });
  7630. var w = iterableClass(s);
  7631. return _.map(function (o) {
  7632. return reify(s, w(o));
  7633. });
  7634. }
  7635. function sliceFactory(s, o, i, u) {
  7636. var _ = s.size;
  7637. if (
  7638. (void 0 !== o && (o |= 0),
  7639. void 0 !== i && (i === 1 / 0 ? (i = _) : (i |= 0)),
  7640. wholeSlice(o, i, _))
  7641. )
  7642. return s;
  7643. var w = resolveBegin(o, _),
  7644. x = resolveEnd(i, _);
  7645. if (w != w || x != x) return sliceFactory(s.toSeq().cacheResult(), o, i, u);
  7646. var C,
  7647. j = x - w;
  7648. j == j && (C = j < 0 ? 0 : j);
  7649. var L = makeSequence(s);
  7650. return (
  7651. (L.size = 0 === C ? C : (s.size && C) || void 0),
  7652. !u &&
  7653. isSeq(s) &&
  7654. C >= 0 &&
  7655. (L.get = function (o, i) {
  7656. return (o = wrapIndex(this, o)) >= 0 && o < C ? s.get(o + w, i) : i;
  7657. }),
  7658. (L.__iterateUncached = function (o, i) {
  7659. var _ = this;
  7660. if (0 === C) return 0;
  7661. if (i) return this.cacheResult().__iterate(o, i);
  7662. var x = 0,
  7663. j = !0,
  7664. L = 0;
  7665. return (
  7666. s.__iterate(function (s, i) {
  7667. if (!j || !(j = x++ < w))
  7668. return L++, !1 !== o(s, u ? i : L - 1, _) && L !== C;
  7669. }),
  7670. L
  7671. );
  7672. }),
  7673. (L.__iteratorUncached = function (o, i) {
  7674. if (0 !== C && i) return this.cacheResult().__iterator(o, i);
  7675. var _ = 0 !== C && s.__iterator(o, i),
  7676. x = 0,
  7677. j = 0;
  7678. return new Iterator(function () {
  7679. for (; x++ < w; ) _.next();
  7680. if (++j > C) return iteratorDone();
  7681. var s = _.next();
  7682. return u || o === U
  7683. ? s
  7684. : iteratorValue(o, j - 1, o === V ? void 0 : s.value[1], s);
  7685. });
  7686. }),
  7687. L
  7688. );
  7689. }
  7690. function takeWhileFactory(s, o, i) {
  7691. var u = makeSequence(s);
  7692. return (
  7693. (u.__iterateUncached = function (u, _) {
  7694. var w = this;
  7695. if (_) return this.cacheResult().__iterate(u, _);
  7696. var x = 0;
  7697. return (
  7698. s.__iterate(function (s, _, C) {
  7699. return o.call(i, s, _, C) && ++x && u(s, _, w);
  7700. }),
  7701. x
  7702. );
  7703. }),
  7704. (u.__iteratorUncached = function (u, _) {
  7705. var w = this;
  7706. if (_) return this.cacheResult().__iterator(u, _);
  7707. var x = s.__iterator(z, _),
  7708. C = !0;
  7709. return new Iterator(function () {
  7710. if (!C) return iteratorDone();
  7711. var s = x.next();
  7712. if (s.done) return s;
  7713. var _ = s.value,
  7714. j = _[0],
  7715. L = _[1];
  7716. return o.call(i, L, j, w)
  7717. ? u === z
  7718. ? s
  7719. : iteratorValue(u, j, L, s)
  7720. : ((C = !1), iteratorDone());
  7721. });
  7722. }),
  7723. u
  7724. );
  7725. }
  7726. function skipWhileFactory(s, o, i, u) {
  7727. var _ = makeSequence(s);
  7728. return (
  7729. (_.__iterateUncached = function (_, w) {
  7730. var x = this;
  7731. if (w) return this.cacheResult().__iterate(_, w);
  7732. var C = !0,
  7733. j = 0;
  7734. return (
  7735. s.__iterate(function (s, w, L) {
  7736. if (!C || !(C = o.call(i, s, w, L))) return j++, _(s, u ? w : j - 1, x);
  7737. }),
  7738. j
  7739. );
  7740. }),
  7741. (_.__iteratorUncached = function (_, w) {
  7742. var x = this;
  7743. if (w) return this.cacheResult().__iterator(_, w);
  7744. var C = s.__iterator(z, w),
  7745. j = !0,
  7746. L = 0;
  7747. return new Iterator(function () {
  7748. var s, w, B;
  7749. do {
  7750. if ((s = C.next()).done)
  7751. return u || _ === U
  7752. ? s
  7753. : iteratorValue(_, L++, _ === V ? void 0 : s.value[1], s);
  7754. var $ = s.value;
  7755. (w = $[0]), (B = $[1]), j && (j = o.call(i, B, w, x));
  7756. } while (j);
  7757. return _ === z ? s : iteratorValue(_, w, B, s);
  7758. });
  7759. }),
  7760. _
  7761. );
  7762. }
  7763. function concatFactory(s, o) {
  7764. var i = isKeyed(s),
  7765. u = [s]
  7766. .concat(o)
  7767. .map(function (s) {
  7768. return (
  7769. isIterable(s)
  7770. ? i && (s = KeyedIterable(s))
  7771. : (s = i
  7772. ? keyedSeqFromValue(s)
  7773. : indexedSeqFromValue(Array.isArray(s) ? s : [s])),
  7774. s
  7775. );
  7776. })
  7777. .filter(function (s) {
  7778. return 0 !== s.size;
  7779. });
  7780. if (0 === u.length) return s;
  7781. if (1 === u.length) {
  7782. var _ = u[0];
  7783. if (_ === s || (i && isKeyed(_)) || (isIndexed(s) && isIndexed(_))) return _;
  7784. }
  7785. var w = new ArraySeq(u);
  7786. return (
  7787. i ? (w = w.toKeyedSeq()) : isIndexed(s) || (w = w.toSetSeq()),
  7788. ((w = w.flatten(!0)).size = u.reduce(function (s, o) {
  7789. if (void 0 !== s) {
  7790. var i = o.size;
  7791. if (void 0 !== i) return s + i;
  7792. }
  7793. }, 0)),
  7794. w
  7795. );
  7796. }
  7797. function flattenFactory(s, o, i) {
  7798. var u = makeSequence(s);
  7799. return (
  7800. (u.__iterateUncached = function (u, _) {
  7801. var w = 0,
  7802. x = !1;
  7803. function flatDeep(s, C) {
  7804. var j = this;
  7805. s.__iterate(function (s, _) {
  7806. return (
  7807. (!o || C < o) && isIterable(s)
  7808. ? flatDeep(s, C + 1)
  7809. : !1 === u(s, i ? _ : w++, j) && (x = !0),
  7810. !x
  7811. );
  7812. }, _);
  7813. }
  7814. return flatDeep(s, 0), w;
  7815. }),
  7816. (u.__iteratorUncached = function (u, _) {
  7817. var w = s.__iterator(u, _),
  7818. x = [],
  7819. C = 0;
  7820. return new Iterator(function () {
  7821. for (; w; ) {
  7822. var s = w.next();
  7823. if (!1 === s.done) {
  7824. var j = s.value;
  7825. if ((u === z && (j = j[1]), (o && !(x.length < o)) || !isIterable(j)))
  7826. return i ? s : iteratorValue(u, C++, j, s);
  7827. x.push(w), (w = j.__iterator(u, _));
  7828. } else w = x.pop();
  7829. }
  7830. return iteratorDone();
  7831. });
  7832. }),
  7833. u
  7834. );
  7835. }
  7836. function flatMapFactory(s, o, i) {
  7837. var u = iterableClass(s);
  7838. return s
  7839. .toSeq()
  7840. .map(function (_, w) {
  7841. return u(o.call(i, _, w, s));
  7842. })
  7843. .flatten(!0);
  7844. }
  7845. function interposeFactory(s, o) {
  7846. var i = makeSequence(s);
  7847. return (
  7848. (i.size = s.size && 2 * s.size - 1),
  7849. (i.__iterateUncached = function (i, u) {
  7850. var _ = this,
  7851. w = 0;
  7852. return (
  7853. s.__iterate(function (s, u) {
  7854. return (!w || !1 !== i(o, w++, _)) && !1 !== i(s, w++, _);
  7855. }, u),
  7856. w
  7857. );
  7858. }),
  7859. (i.__iteratorUncached = function (i, u) {
  7860. var _,
  7861. w = s.__iterator(U, u),
  7862. x = 0;
  7863. return new Iterator(function () {
  7864. return (!_ || x % 2) && (_ = w.next()).done
  7865. ? _
  7866. : x % 2
  7867. ? iteratorValue(i, x++, o)
  7868. : iteratorValue(i, x++, _.value, _);
  7869. });
  7870. }),
  7871. i
  7872. );
  7873. }
  7874. function sortFactory(s, o, i) {
  7875. o || (o = defaultComparator);
  7876. var u = isKeyed(s),
  7877. _ = 0,
  7878. w = s
  7879. .toSeq()
  7880. .map(function (o, u) {
  7881. return [u, o, _++, i ? i(o, u, s) : o];
  7882. })
  7883. .toArray();
  7884. return (
  7885. w
  7886. .sort(function (s, i) {
  7887. return o(s[3], i[3]) || s[2] - i[2];
  7888. })
  7889. .forEach(
  7890. u
  7891. ? function (s, o) {
  7892. w[o].length = 2;
  7893. }
  7894. : function (s, o) {
  7895. w[o] = s[1];
  7896. }
  7897. ),
  7898. u ? KeyedSeq(w) : isIndexed(s) ? IndexedSeq(w) : SetSeq(w)
  7899. );
  7900. }
  7901. function maxFactory(s, o, i) {
  7902. if ((o || (o = defaultComparator), i)) {
  7903. var u = s
  7904. .toSeq()
  7905. .map(function (o, u) {
  7906. return [o, i(o, u, s)];
  7907. })
  7908. .reduce(function (s, i) {
  7909. return maxCompare(o, s[1], i[1]) ? i : s;
  7910. });
  7911. return u && u[0];
  7912. }
  7913. return s.reduce(function (s, i) {
  7914. return maxCompare(o, s, i) ? i : s;
  7915. });
  7916. }
  7917. function maxCompare(s, o, i) {
  7918. var u = s(i, o);
  7919. return (0 === u && i !== o && (null == i || i != i)) || u > 0;
  7920. }
  7921. function zipWithFactory(s, o, i) {
  7922. var u = makeSequence(s);
  7923. return (
  7924. (u.size = new ArraySeq(i)
  7925. .map(function (s) {
  7926. return s.size;
  7927. })
  7928. .min()),
  7929. (u.__iterate = function (s, o) {
  7930. for (
  7931. var i, u = this.__iterator(U, o), _ = 0;
  7932. !(i = u.next()).done && !1 !== s(i.value, _++, this);
  7933. );
  7934. return _;
  7935. }),
  7936. (u.__iteratorUncached = function (s, u) {
  7937. var _ = i.map(function (s) {
  7938. return (s = Iterable(s)), getIterator(u ? s.reverse() : s);
  7939. }),
  7940. w = 0,
  7941. x = !1;
  7942. return new Iterator(function () {
  7943. var i;
  7944. return (
  7945. x ||
  7946. ((i = _.map(function (s) {
  7947. return s.next();
  7948. })),
  7949. (x = i.some(function (s) {
  7950. return s.done;
  7951. }))),
  7952. x
  7953. ? iteratorDone()
  7954. : iteratorValue(
  7955. s,
  7956. w++,
  7957. o.apply(
  7958. null,
  7959. i.map(function (s) {
  7960. return s.value;
  7961. })
  7962. )
  7963. )
  7964. );
  7965. });
  7966. }),
  7967. u
  7968. );
  7969. }
  7970. function reify(s, o) {
  7971. return isSeq(s) ? o : s.constructor(o);
  7972. }
  7973. function validateEntry(s) {
  7974. if (s !== Object(s)) throw new TypeError('Expected [K, V] tuple: ' + s);
  7975. }
  7976. function resolveSize(s) {
  7977. return assertNotInfinite(s.size), ensureSize(s);
  7978. }
  7979. function iterableClass(s) {
  7980. return isKeyed(s) ? KeyedIterable : isIndexed(s) ? IndexedIterable : SetIterable;
  7981. }
  7982. function makeSequence(s) {
  7983. return Object.create(
  7984. (isKeyed(s) ? KeyedSeq : isIndexed(s) ? IndexedSeq : SetSeq).prototype
  7985. );
  7986. }
  7987. function cacheResultThrough() {
  7988. return this._iter.cacheResult
  7989. ? (this._iter.cacheResult(), (this.size = this._iter.size), this)
  7990. : Seq.prototype.cacheResult.call(this);
  7991. }
  7992. function defaultComparator(s, o) {
  7993. return s > o ? 1 : s < o ? -1 : 0;
  7994. }
  7995. function forceIterator(s) {
  7996. var o = getIterator(s);
  7997. if (!o) {
  7998. if (!isArrayLike(s)) throw new TypeError('Expected iterable or array-like: ' + s);
  7999. o = getIterator(Iterable(s));
  8000. }
  8001. return o;
  8002. }
  8003. function Record(s, o) {
  8004. var i,
  8005. u = function Record(w) {
  8006. if (w instanceof u) return w;
  8007. if (!(this instanceof u)) return new u(w);
  8008. if (!i) {
  8009. i = !0;
  8010. var x = Object.keys(s);
  8011. setProps(_, x),
  8012. (_.size = x.length),
  8013. (_._name = o),
  8014. (_._keys = x),
  8015. (_._defaultValues = s);
  8016. }
  8017. this._map = Map(w);
  8018. },
  8019. _ = (u.prototype = Object.create(rt));
  8020. return (_.constructor = u), u;
  8021. }
  8022. createClass(OrderedMap, Map),
  8023. (OrderedMap.of = function () {
  8024. return this(arguments);
  8025. }),
  8026. (OrderedMap.prototype.toString = function () {
  8027. return this.__toString('OrderedMap {', '}');
  8028. }),
  8029. (OrderedMap.prototype.get = function (s, o) {
  8030. var i = this._map.get(s);
  8031. return void 0 !== i ? this._list.get(i)[1] : o;
  8032. }),
  8033. (OrderedMap.prototype.clear = function () {
  8034. return 0 === this.size
  8035. ? this
  8036. : this.__ownerID
  8037. ? ((this.size = 0), this._map.clear(), this._list.clear(), this)
  8038. : emptyOrderedMap();
  8039. }),
  8040. (OrderedMap.prototype.set = function (s, o) {
  8041. return updateOrderedMap(this, s, o);
  8042. }),
  8043. (OrderedMap.prototype.remove = function (s) {
  8044. return updateOrderedMap(this, s, L);
  8045. }),
  8046. (OrderedMap.prototype.wasAltered = function () {
  8047. return this._map.wasAltered() || this._list.wasAltered();
  8048. }),
  8049. (OrderedMap.prototype.__iterate = function (s, o) {
  8050. var i = this;
  8051. return this._list.__iterate(function (o) {
  8052. return o && s(o[1], o[0], i);
  8053. }, o);
  8054. }),
  8055. (OrderedMap.prototype.__iterator = function (s, o) {
  8056. return this._list.fromEntrySeq().__iterator(s, o);
  8057. }),
  8058. (OrderedMap.prototype.__ensureOwner = function (s) {
  8059. if (s === this.__ownerID) return this;
  8060. var o = this._map.__ensureOwner(s),
  8061. i = this._list.__ensureOwner(s);
  8062. return s
  8063. ? makeOrderedMap(o, i, s, this.__hash)
  8064. : ((this.__ownerID = s), (this._map = o), (this._list = i), this);
  8065. }),
  8066. (OrderedMap.isOrderedMap = isOrderedMap),
  8067. (OrderedMap.prototype[_] = !0),
  8068. (OrderedMap.prototype[w] = OrderedMap.prototype.remove),
  8069. createClass(ToKeyedSequence, KeyedSeq),
  8070. (ToKeyedSequence.prototype.get = function (s, o) {
  8071. return this._iter.get(s, o);
  8072. }),
  8073. (ToKeyedSequence.prototype.has = function (s) {
  8074. return this._iter.has(s);
  8075. }),
  8076. (ToKeyedSequence.prototype.valueSeq = function () {
  8077. return this._iter.valueSeq();
  8078. }),
  8079. (ToKeyedSequence.prototype.reverse = function () {
  8080. var s = this,
  8081. o = reverseFactory(this, !0);
  8082. return (
  8083. this._useKeys ||
  8084. (o.valueSeq = function () {
  8085. return s._iter.toSeq().reverse();
  8086. }),
  8087. o
  8088. );
  8089. }),
  8090. (ToKeyedSequence.prototype.map = function (s, o) {
  8091. var i = this,
  8092. u = mapFactory(this, s, o);
  8093. return (
  8094. this._useKeys ||
  8095. (u.valueSeq = function () {
  8096. return i._iter.toSeq().map(s, o);
  8097. }),
  8098. u
  8099. );
  8100. }),
  8101. (ToKeyedSequence.prototype.__iterate = function (s, o) {
  8102. var i,
  8103. u = this;
  8104. return this._iter.__iterate(
  8105. this._useKeys
  8106. ? function (o, i) {
  8107. return s(o, i, u);
  8108. }
  8109. : ((i = o ? resolveSize(this) : 0),
  8110. function (_) {
  8111. return s(_, o ? --i : i++, u);
  8112. }),
  8113. o
  8114. );
  8115. }),
  8116. (ToKeyedSequence.prototype.__iterator = function (s, o) {
  8117. if (this._useKeys) return this._iter.__iterator(s, o);
  8118. var i = this._iter.__iterator(U, o),
  8119. u = o ? resolveSize(this) : 0;
  8120. return new Iterator(function () {
  8121. var _ = i.next();
  8122. return _.done ? _ : iteratorValue(s, o ? --u : u++, _.value, _);
  8123. });
  8124. }),
  8125. (ToKeyedSequence.prototype[_] = !0),
  8126. createClass(ToIndexedSequence, IndexedSeq),
  8127. (ToIndexedSequence.prototype.includes = function (s) {
  8128. return this._iter.includes(s);
  8129. }),
  8130. (ToIndexedSequence.prototype.__iterate = function (s, o) {
  8131. var i = this,
  8132. u = 0;
  8133. return this._iter.__iterate(function (o) {
  8134. return s(o, u++, i);
  8135. }, o);
  8136. }),
  8137. (ToIndexedSequence.prototype.__iterator = function (s, o) {
  8138. var i = this._iter.__iterator(U, o),
  8139. u = 0;
  8140. return new Iterator(function () {
  8141. var o = i.next();
  8142. return o.done ? o : iteratorValue(s, u++, o.value, o);
  8143. });
  8144. }),
  8145. createClass(ToSetSequence, SetSeq),
  8146. (ToSetSequence.prototype.has = function (s) {
  8147. return this._iter.includes(s);
  8148. }),
  8149. (ToSetSequence.prototype.__iterate = function (s, o) {
  8150. var i = this;
  8151. return this._iter.__iterate(function (o) {
  8152. return s(o, o, i);
  8153. }, o);
  8154. }),
  8155. (ToSetSequence.prototype.__iterator = function (s, o) {
  8156. var i = this._iter.__iterator(U, o);
  8157. return new Iterator(function () {
  8158. var o = i.next();
  8159. return o.done ? o : iteratorValue(s, o.value, o.value, o);
  8160. });
  8161. }),
  8162. createClass(FromEntriesSequence, KeyedSeq),
  8163. (FromEntriesSequence.prototype.entrySeq = function () {
  8164. return this._iter.toSeq();
  8165. }),
  8166. (FromEntriesSequence.prototype.__iterate = function (s, o) {
  8167. var i = this;
  8168. return this._iter.__iterate(function (o) {
  8169. if (o) {
  8170. validateEntry(o);
  8171. var u = isIterable(o);
  8172. return s(u ? o.get(1) : o[1], u ? o.get(0) : o[0], i);
  8173. }
  8174. }, o);
  8175. }),
  8176. (FromEntriesSequence.prototype.__iterator = function (s, o) {
  8177. var i = this._iter.__iterator(U, o);
  8178. return new Iterator(function () {
  8179. for (;;) {
  8180. var o = i.next();
  8181. if (o.done) return o;
  8182. var u = o.value;
  8183. if (u) {
  8184. validateEntry(u);
  8185. var _ = isIterable(u);
  8186. return iteratorValue(s, _ ? u.get(0) : u[0], _ ? u.get(1) : u[1], o);
  8187. }
  8188. }
  8189. });
  8190. }),
  8191. (ToIndexedSequence.prototype.cacheResult =
  8192. ToKeyedSequence.prototype.cacheResult =
  8193. ToSetSequence.prototype.cacheResult =
  8194. FromEntriesSequence.prototype.cacheResult =
  8195. cacheResultThrough),
  8196. createClass(Record, KeyedCollection),
  8197. (Record.prototype.toString = function () {
  8198. return this.__toString(recordName(this) + ' {', '}');
  8199. }),
  8200. (Record.prototype.has = function (s) {
  8201. return this._defaultValues.hasOwnProperty(s);
  8202. }),
  8203. (Record.prototype.get = function (s, o) {
  8204. if (!this.has(s)) return o;
  8205. var i = this._defaultValues[s];
  8206. return this._map ? this._map.get(s, i) : i;
  8207. }),
  8208. (Record.prototype.clear = function () {
  8209. if (this.__ownerID) return this._map && this._map.clear(), this;
  8210. var s = this.constructor;
  8211. return s._empty || (s._empty = makeRecord(this, emptyMap()));
  8212. }),
  8213. (Record.prototype.set = function (s, o) {
  8214. if (!this.has(s))
  8215. throw new Error('Cannot set unknown key "' + s + '" on ' + recordName(this));
  8216. if (this._map && !this._map.has(s) && o === this._defaultValues[s]) return this;
  8217. var i = this._map && this._map.set(s, o);
  8218. return this.__ownerID || i === this._map ? this : makeRecord(this, i);
  8219. }),
  8220. (Record.prototype.remove = function (s) {
  8221. if (!this.has(s)) return this;
  8222. var o = this._map && this._map.remove(s);
  8223. return this.__ownerID || o === this._map ? this : makeRecord(this, o);
  8224. }),
  8225. (Record.prototype.wasAltered = function () {
  8226. return this._map.wasAltered();
  8227. }),
  8228. (Record.prototype.__iterator = function (s, o) {
  8229. var i = this;
  8230. return KeyedIterable(this._defaultValues)
  8231. .map(function (s, o) {
  8232. return i.get(o);
  8233. })
  8234. .__iterator(s, o);
  8235. }),
  8236. (Record.prototype.__iterate = function (s, o) {
  8237. var i = this;
  8238. return KeyedIterable(this._defaultValues)
  8239. .map(function (s, o) {
  8240. return i.get(o);
  8241. })
  8242. .__iterate(s, o);
  8243. }),
  8244. (Record.prototype.__ensureOwner = function (s) {
  8245. if (s === this.__ownerID) return this;
  8246. var o = this._map && this._map.__ensureOwner(s);
  8247. return s ? makeRecord(this, o, s) : ((this.__ownerID = s), (this._map = o), this);
  8248. });
  8249. var rt = Record.prototype;
  8250. function makeRecord(s, o, i) {
  8251. var u = Object.create(Object.getPrototypeOf(s));
  8252. return (u._map = o), (u.__ownerID = i), u;
  8253. }
  8254. function recordName(s) {
  8255. return s._name || s.constructor.name || 'Record';
  8256. }
  8257. function setProps(s, o) {
  8258. try {
  8259. o.forEach(setProp.bind(void 0, s));
  8260. } catch (s) {}
  8261. }
  8262. function setProp(s, o) {
  8263. Object.defineProperty(s, o, {
  8264. get: function () {
  8265. return this.get(o);
  8266. },
  8267. set: function (s) {
  8268. invariant(this.__ownerID, 'Cannot set on an immutable record.'), this.set(o, s);
  8269. }
  8270. });
  8271. }
  8272. function Set(s) {
  8273. return null == s
  8274. ? emptySet()
  8275. : isSet(s) && !isOrdered(s)
  8276. ? s
  8277. : emptySet().withMutations(function (o) {
  8278. var i = SetIterable(s);
  8279. assertNotInfinite(i.size),
  8280. i.forEach(function (s) {
  8281. return o.add(s);
  8282. });
  8283. });
  8284. }
  8285. function isSet(s) {
  8286. return !(!s || !s[st]);
  8287. }
  8288. (rt[w] = rt.remove),
  8289. (rt.deleteIn = rt.removeIn = $e.removeIn),
  8290. (rt.merge = $e.merge),
  8291. (rt.mergeWith = $e.mergeWith),
  8292. (rt.mergeIn = $e.mergeIn),
  8293. (rt.mergeDeep = $e.mergeDeep),
  8294. (rt.mergeDeepWith = $e.mergeDeepWith),
  8295. (rt.mergeDeepIn = $e.mergeDeepIn),
  8296. (rt.setIn = $e.setIn),
  8297. (rt.update = $e.update),
  8298. (rt.updateIn = $e.updateIn),
  8299. (rt.withMutations = $e.withMutations),
  8300. (rt.asMutable = $e.asMutable),
  8301. (rt.asImmutable = $e.asImmutable),
  8302. createClass(Set, SetCollection),
  8303. (Set.of = function () {
  8304. return this(arguments);
  8305. }),
  8306. (Set.fromKeys = function (s) {
  8307. return this(KeyedIterable(s).keySeq());
  8308. }),
  8309. (Set.prototype.toString = function () {
  8310. return this.__toString('Set {', '}');
  8311. }),
  8312. (Set.prototype.has = function (s) {
  8313. return this._map.has(s);
  8314. }),
  8315. (Set.prototype.add = function (s) {
  8316. return updateSet(this, this._map.set(s, !0));
  8317. }),
  8318. (Set.prototype.remove = function (s) {
  8319. return updateSet(this, this._map.remove(s));
  8320. }),
  8321. (Set.prototype.clear = function () {
  8322. return updateSet(this, this._map.clear());
  8323. }),
  8324. (Set.prototype.union = function () {
  8325. var o = s.call(arguments, 0);
  8326. return 0 ===
  8327. (o = o.filter(function (s) {
  8328. return 0 !== s.size;
  8329. })).length
  8330. ? this
  8331. : 0 !== this.size || this.__ownerID || 1 !== o.length
  8332. ? this.withMutations(function (s) {
  8333. for (var i = 0; i < o.length; i++)
  8334. SetIterable(o[i]).forEach(function (o) {
  8335. return s.add(o);
  8336. });
  8337. })
  8338. : this.constructor(o[0]);
  8339. }),
  8340. (Set.prototype.intersect = function () {
  8341. var o = s.call(arguments, 0);
  8342. if (0 === o.length) return this;
  8343. o = o.map(function (s) {
  8344. return SetIterable(s);
  8345. });
  8346. var i = this;
  8347. return this.withMutations(function (s) {
  8348. i.forEach(function (i) {
  8349. o.every(function (s) {
  8350. return s.includes(i);
  8351. }) || s.remove(i);
  8352. });
  8353. });
  8354. }),
  8355. (Set.prototype.subtract = function () {
  8356. var o = s.call(arguments, 0);
  8357. if (0 === o.length) return this;
  8358. o = o.map(function (s) {
  8359. return SetIterable(s);
  8360. });
  8361. var i = this;
  8362. return this.withMutations(function (s) {
  8363. i.forEach(function (i) {
  8364. o.some(function (s) {
  8365. return s.includes(i);
  8366. }) && s.remove(i);
  8367. });
  8368. });
  8369. }),
  8370. (Set.prototype.merge = function () {
  8371. return this.union.apply(this, arguments);
  8372. }),
  8373. (Set.prototype.mergeWith = function (o) {
  8374. var i = s.call(arguments, 1);
  8375. return this.union.apply(this, i);
  8376. }),
  8377. (Set.prototype.sort = function (s) {
  8378. return OrderedSet(sortFactory(this, s));
  8379. }),
  8380. (Set.prototype.sortBy = function (s, o) {
  8381. return OrderedSet(sortFactory(this, o, s));
  8382. }),
  8383. (Set.prototype.wasAltered = function () {
  8384. return this._map.wasAltered();
  8385. }),
  8386. (Set.prototype.__iterate = function (s, o) {
  8387. var i = this;
  8388. return this._map.__iterate(function (o, u) {
  8389. return s(u, u, i);
  8390. }, o);
  8391. }),
  8392. (Set.prototype.__iterator = function (s, o) {
  8393. return this._map
  8394. .map(function (s, o) {
  8395. return o;
  8396. })
  8397. .__iterator(s, o);
  8398. }),
  8399. (Set.prototype.__ensureOwner = function (s) {
  8400. if (s === this.__ownerID) return this;
  8401. var o = this._map.__ensureOwner(s);
  8402. return s ? this.__make(o, s) : ((this.__ownerID = s), (this._map = o), this);
  8403. }),
  8404. (Set.isSet = isSet);
  8405. var nt,
  8406. st = '@@__IMMUTABLE_SET__@@',
  8407. ot = Set.prototype;
  8408. function updateSet(s, o) {
  8409. return s.__ownerID
  8410. ? ((s.size = o.size), (s._map = o), s)
  8411. : o === s._map
  8412. ? s
  8413. : 0 === o.size
  8414. ? s.__empty()
  8415. : s.__make(o);
  8416. }
  8417. function makeSet(s, o) {
  8418. var i = Object.create(ot);
  8419. return (i.size = s ? s.size : 0), (i._map = s), (i.__ownerID = o), i;
  8420. }
  8421. function emptySet() {
  8422. return nt || (nt = makeSet(emptyMap()));
  8423. }
  8424. function OrderedSet(s) {
  8425. return null == s
  8426. ? emptyOrderedSet()
  8427. : isOrderedSet(s)
  8428. ? s
  8429. : emptyOrderedSet().withMutations(function (o) {
  8430. var i = SetIterable(s);
  8431. assertNotInfinite(i.size),
  8432. i.forEach(function (s) {
  8433. return o.add(s);
  8434. });
  8435. });
  8436. }
  8437. function isOrderedSet(s) {
  8438. return isSet(s) && isOrdered(s);
  8439. }
  8440. (ot[st] = !0),
  8441. (ot[w] = ot.remove),
  8442. (ot.mergeDeep = ot.merge),
  8443. (ot.mergeDeepWith = ot.mergeWith),
  8444. (ot.withMutations = $e.withMutations),
  8445. (ot.asMutable = $e.asMutable),
  8446. (ot.asImmutable = $e.asImmutable),
  8447. (ot.__empty = emptySet),
  8448. (ot.__make = makeSet),
  8449. createClass(OrderedSet, Set),
  8450. (OrderedSet.of = function () {
  8451. return this(arguments);
  8452. }),
  8453. (OrderedSet.fromKeys = function (s) {
  8454. return this(KeyedIterable(s).keySeq());
  8455. }),
  8456. (OrderedSet.prototype.toString = function () {
  8457. return this.__toString('OrderedSet {', '}');
  8458. }),
  8459. (OrderedSet.isOrderedSet = isOrderedSet);
  8460. var it,
  8461. at = OrderedSet.prototype;
  8462. function makeOrderedSet(s, o) {
  8463. var i = Object.create(at);
  8464. return (i.size = s ? s.size : 0), (i._map = s), (i.__ownerID = o), i;
  8465. }
  8466. function emptyOrderedSet() {
  8467. return it || (it = makeOrderedSet(emptyOrderedMap()));
  8468. }
  8469. function Stack(s) {
  8470. return null == s ? emptyStack() : isStack(s) ? s : emptyStack().unshiftAll(s);
  8471. }
  8472. function isStack(s) {
  8473. return !(!s || !s[ct]);
  8474. }
  8475. (at[_] = !0),
  8476. (at.__empty = emptyOrderedSet),
  8477. (at.__make = makeOrderedSet),
  8478. createClass(Stack, IndexedCollection),
  8479. (Stack.of = function () {
  8480. return this(arguments);
  8481. }),
  8482. (Stack.prototype.toString = function () {
  8483. return this.__toString('Stack [', ']');
  8484. }),
  8485. (Stack.prototype.get = function (s, o) {
  8486. var i = this._head;
  8487. for (s = wrapIndex(this, s); i && s--; ) i = i.next;
  8488. return i ? i.value : o;
  8489. }),
  8490. (Stack.prototype.peek = function () {
  8491. return this._head && this._head.value;
  8492. }),
  8493. (Stack.prototype.push = function () {
  8494. if (0 === arguments.length) return this;
  8495. for (
  8496. var s = this.size + arguments.length, o = this._head, i = arguments.length - 1;
  8497. i >= 0;
  8498. i--
  8499. )
  8500. o = { value: arguments[i], next: o };
  8501. return this.__ownerID
  8502. ? ((this.size = s),
  8503. (this._head = o),
  8504. (this.__hash = void 0),
  8505. (this.__altered = !0),
  8506. this)
  8507. : makeStack(s, o);
  8508. }),
  8509. (Stack.prototype.pushAll = function (s) {
  8510. if (0 === (s = IndexedIterable(s)).size) return this;
  8511. assertNotInfinite(s.size);
  8512. var o = this.size,
  8513. i = this._head;
  8514. return (
  8515. s.reverse().forEach(function (s) {
  8516. o++, (i = { value: s, next: i });
  8517. }),
  8518. this.__ownerID
  8519. ? ((this.size = o),
  8520. (this._head = i),
  8521. (this.__hash = void 0),
  8522. (this.__altered = !0),
  8523. this)
  8524. : makeStack(o, i)
  8525. );
  8526. }),
  8527. (Stack.prototype.pop = function () {
  8528. return this.slice(1);
  8529. }),
  8530. (Stack.prototype.unshift = function () {
  8531. return this.push.apply(this, arguments);
  8532. }),
  8533. (Stack.prototype.unshiftAll = function (s) {
  8534. return this.pushAll(s);
  8535. }),
  8536. (Stack.prototype.shift = function () {
  8537. return this.pop.apply(this, arguments);
  8538. }),
  8539. (Stack.prototype.clear = function () {
  8540. return 0 === this.size
  8541. ? this
  8542. : this.__ownerID
  8543. ? ((this.size = 0),
  8544. (this._head = void 0),
  8545. (this.__hash = void 0),
  8546. (this.__altered = !0),
  8547. this)
  8548. : emptyStack();
  8549. }),
  8550. (Stack.prototype.slice = function (s, o) {
  8551. if (wholeSlice(s, o, this.size)) return this;
  8552. var i = resolveBegin(s, this.size);
  8553. if (resolveEnd(o, this.size) !== this.size)
  8554. return IndexedCollection.prototype.slice.call(this, s, o);
  8555. for (var u = this.size - i, _ = this._head; i--; ) _ = _.next;
  8556. return this.__ownerID
  8557. ? ((this.size = u),
  8558. (this._head = _),
  8559. (this.__hash = void 0),
  8560. (this.__altered = !0),
  8561. this)
  8562. : makeStack(u, _);
  8563. }),
  8564. (Stack.prototype.__ensureOwner = function (s) {
  8565. return s === this.__ownerID
  8566. ? this
  8567. : s
  8568. ? makeStack(this.size, this._head, s, this.__hash)
  8569. : ((this.__ownerID = s), (this.__altered = !1), this);
  8570. }),
  8571. (Stack.prototype.__iterate = function (s, o) {
  8572. if (o) return this.reverse().__iterate(s);
  8573. for (var i = 0, u = this._head; u && !1 !== s(u.value, i++, this); ) u = u.next;
  8574. return i;
  8575. }),
  8576. (Stack.prototype.__iterator = function (s, o) {
  8577. if (o) return this.reverse().__iterator(s);
  8578. var i = 0,
  8579. u = this._head;
  8580. return new Iterator(function () {
  8581. if (u) {
  8582. var o = u.value;
  8583. return (u = u.next), iteratorValue(s, i++, o);
  8584. }
  8585. return iteratorDone();
  8586. });
  8587. }),
  8588. (Stack.isStack = isStack);
  8589. var lt,
  8590. ct = '@@__IMMUTABLE_STACK__@@',
  8591. ut = Stack.prototype;
  8592. function makeStack(s, o, i, u) {
  8593. var _ = Object.create(ut);
  8594. return (
  8595. (_.size = s),
  8596. (_._head = o),
  8597. (_.__ownerID = i),
  8598. (_.__hash = u),
  8599. (_.__altered = !1),
  8600. _
  8601. );
  8602. }
  8603. function emptyStack() {
  8604. return lt || (lt = makeStack(0));
  8605. }
  8606. function mixin(s, o) {
  8607. var keyCopier = function (i) {
  8608. s.prototype[i] = o[i];
  8609. };
  8610. return (
  8611. Object.keys(o).forEach(keyCopier),
  8612. Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(o).forEach(keyCopier),
  8613. s
  8614. );
  8615. }
  8616. (ut[ct] = !0),
  8617. (ut.withMutations = $e.withMutations),
  8618. (ut.asMutable = $e.asMutable),
  8619. (ut.asImmutable = $e.asImmutable),
  8620. (ut.wasAltered = $e.wasAltered),
  8621. (Iterable.Iterator = Iterator),
  8622. mixin(Iterable, {
  8623. toArray: function () {
  8624. assertNotInfinite(this.size);
  8625. var s = new Array(this.size || 0);
  8626. return (
  8627. this.valueSeq().__iterate(function (o, i) {
  8628. s[i] = o;
  8629. }),
  8630. s
  8631. );
  8632. },
  8633. toIndexedSeq: function () {
  8634. return new ToIndexedSequence(this);
  8635. },
  8636. toJS: function () {
  8637. return this.toSeq()
  8638. .map(function (s) {
  8639. return s && 'function' == typeof s.toJS ? s.toJS() : s;
  8640. })
  8641. .__toJS();
  8642. },
  8643. toJSON: function () {
  8644. return this.toSeq()
  8645. .map(function (s) {
  8646. return s && 'function' == typeof s.toJSON ? s.toJSON() : s;
  8647. })
  8648. .__toJS();
  8649. },
  8650. toKeyedSeq: function () {
  8651. return new ToKeyedSequence(this, !0);
  8652. },
  8653. toMap: function () {
  8654. return Map(this.toKeyedSeq());
  8655. },
  8656. toObject: function () {
  8657. assertNotInfinite(this.size);
  8658. var s = {};
  8659. return (
  8660. this.__iterate(function (o, i) {
  8661. s[i] = o;
  8662. }),
  8663. s
  8664. );
  8665. },
  8666. toOrderedMap: function () {
  8667. return OrderedMap(this.toKeyedSeq());
  8668. },
  8669. toOrderedSet: function () {
  8670. return OrderedSet(isKeyed(this) ? this.valueSeq() : this);
  8671. },
  8672. toSet: function () {
  8673. return Set(isKeyed(this) ? this.valueSeq() : this);
  8674. },
  8675. toSetSeq: function () {
  8676. return new ToSetSequence(this);
  8677. },
  8678. toSeq: function () {
  8679. return isIndexed(this)
  8680. ? this.toIndexedSeq()
  8681. : isKeyed(this)
  8682. ? this.toKeyedSeq()
  8683. : this.toSetSeq();
  8684. },
  8685. toStack: function () {
  8686. return Stack(isKeyed(this) ? this.valueSeq() : this);
  8687. },
  8688. toList: function () {
  8689. return List(isKeyed(this) ? this.valueSeq() : this);
  8690. },
  8691. toString: function () {
  8692. return '[Iterable]';
  8693. },
  8694. __toString: function (s, o) {
  8695. return 0 === this.size
  8696. ? s + o
  8697. : s + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + o;
  8698. },
  8699. concat: function () {
  8700. return reify(this, concatFactory(this, s.call(arguments, 0)));
  8701. },
  8702. includes: function (s) {
  8703. return this.some(function (o) {
  8704. return is(o, s);
  8705. });
  8706. },
  8707. entries: function () {
  8708. return this.__iterator(z);
  8709. },
  8710. every: function (s, o) {
  8711. assertNotInfinite(this.size);
  8712. var i = !0;
  8713. return (
  8714. this.__iterate(function (u, _, w) {
  8715. if (!s.call(o, u, _, w)) return (i = !1), !1;
  8716. }),
  8717. i
  8718. );
  8719. },
  8720. filter: function (s, o) {
  8721. return reify(this, filterFactory(this, s, o, !0));
  8722. },
  8723. find: function (s, o, i) {
  8724. var u = this.findEntry(s, o);
  8725. return u ? u[1] : i;
  8726. },
  8727. forEach: function (s, o) {
  8728. return assertNotInfinite(this.size), this.__iterate(o ? s.bind(o) : s);
  8729. },
  8730. join: function (s) {
  8731. assertNotInfinite(this.size), (s = void 0 !== s ? '' + s : ',');
  8732. var o = '',
  8733. i = !0;
  8734. return (
  8735. this.__iterate(function (u) {
  8736. i ? (i = !1) : (o += s), (o += null != u ? u.toString() : '');
  8737. }),
  8738. o
  8739. );
  8740. },
  8741. keys: function () {
  8742. return this.__iterator(V);
  8743. },
  8744. map: function (s, o) {
  8745. return reify(this, mapFactory(this, s, o));
  8746. },
  8747. reduce: function (s, o, i) {
  8748. var u, _;
  8749. return (
  8750. assertNotInfinite(this.size),
  8751. arguments.length < 2 ? (_ = !0) : (u = o),
  8752. this.__iterate(function (o, w, x) {
  8753. _ ? ((_ = !1), (u = o)) : (u = s.call(i, u, o, w, x));
  8754. }),
  8755. u
  8756. );
  8757. },
  8758. reduceRight: function (s, o, i) {
  8759. var u = this.toKeyedSeq().reverse();
  8760. return u.reduce.apply(u, arguments);
  8761. },
  8762. reverse: function () {
  8763. return reify(this, reverseFactory(this, !0));
  8764. },
  8765. slice: function (s, o) {
  8766. return reify(this, sliceFactory(this, s, o, !0));
  8767. },
  8768. some: function (s, o) {
  8769. return !this.every(not(s), o);
  8770. },
  8771. sort: function (s) {
  8772. return reify(this, sortFactory(this, s));
  8773. },
  8774. values: function () {
  8775. return this.__iterator(U);
  8776. },
  8777. butLast: function () {
  8778. return this.slice(0, -1);
  8779. },
  8780. isEmpty: function () {
  8781. return void 0 !== this.size
  8782. ? 0 === this.size
  8783. : !this.some(function () {
  8784. return !0;
  8785. });
  8786. },
  8787. count: function (s, o) {
  8788. return ensureSize(s ? this.toSeq().filter(s, o) : this);
  8789. },
  8790. countBy: function (s, o) {
  8791. return countByFactory(this, s, o);
  8792. },
  8793. equals: function (s) {
  8794. return deepEqual(this, s);
  8795. },
  8796. entrySeq: function () {
  8797. var s = this;
  8798. if (s._cache) return new ArraySeq(s._cache);
  8799. var o = s.toSeq().map(entryMapper).toIndexedSeq();
  8800. return (
  8801. (o.fromEntrySeq = function () {
  8802. return s.toSeq();
  8803. }),
  8804. o
  8805. );
  8806. },
  8807. filterNot: function (s, o) {
  8808. return this.filter(not(s), o);
  8809. },
  8810. findEntry: function (s, o, i) {
  8811. var u = i;
  8812. return (
  8813. this.__iterate(function (i, _, w) {
  8814. if (s.call(o, i, _, w)) return (u = [_, i]), !1;
  8815. }),
  8816. u
  8817. );
  8818. },
  8819. findKey: function (s, o) {
  8820. var i = this.findEntry(s, o);
  8821. return i && i[0];
  8822. },
  8823. findLast: function (s, o, i) {
  8824. return this.toKeyedSeq().reverse().find(s, o, i);
  8825. },
  8826. findLastEntry: function (s, o, i) {
  8827. return this.toKeyedSeq().reverse().findEntry(s, o, i);
  8828. },
  8829. findLastKey: function (s, o) {
  8830. return this.toKeyedSeq().reverse().findKey(s, o);
  8831. },
  8832. first: function () {
  8833. return this.find(returnTrue);
  8834. },
  8835. flatMap: function (s, o) {
  8836. return reify(this, flatMapFactory(this, s, o));
  8837. },
  8838. flatten: function (s) {
  8839. return reify(this, flattenFactory(this, s, !0));
  8840. },
  8841. fromEntrySeq: function () {
  8842. return new FromEntriesSequence(this);
  8843. },
  8844. get: function (s, o) {
  8845. return this.find(
  8846. function (o, i) {
  8847. return is(i, s);
  8848. },
  8849. void 0,
  8850. o
  8851. );
  8852. },
  8853. getIn: function (s, o) {
  8854. for (var i, u = this, _ = forceIterator(s); !(i = _.next()).done; ) {
  8855. var w = i.value;
  8856. if ((u = u && u.get ? u.get(w, L) : L) === L) return o;
  8857. }
  8858. return u;
  8859. },
  8860. groupBy: function (s, o) {
  8861. return groupByFactory(this, s, o);
  8862. },
  8863. has: function (s) {
  8864. return this.get(s, L) !== L;
  8865. },
  8866. hasIn: function (s) {
  8867. return this.getIn(s, L) !== L;
  8868. },
  8869. isSubset: function (s) {
  8870. return (
  8871. (s = 'function' == typeof s.includes ? s : Iterable(s)),
  8872. this.every(function (o) {
  8873. return s.includes(o);
  8874. })
  8875. );
  8876. },
  8877. isSuperset: function (s) {
  8878. return (s = 'function' == typeof s.isSubset ? s : Iterable(s)).isSubset(this);
  8879. },
  8880. keyOf: function (s) {
  8881. return this.findKey(function (o) {
  8882. return is(o, s);
  8883. });
  8884. },
  8885. keySeq: function () {
  8886. return this.toSeq().map(keyMapper).toIndexedSeq();
  8887. },
  8888. last: function () {
  8889. return this.toSeq().reverse().first();
  8890. },
  8891. lastKeyOf: function (s) {
  8892. return this.toKeyedSeq().reverse().keyOf(s);
  8893. },
  8894. max: function (s) {
  8895. return maxFactory(this, s);
  8896. },
  8897. maxBy: function (s, o) {
  8898. return maxFactory(this, o, s);
  8899. },
  8900. min: function (s) {
  8901. return maxFactory(this, s ? neg(s) : defaultNegComparator);
  8902. },
  8903. minBy: function (s, o) {
  8904. return maxFactory(this, o ? neg(o) : defaultNegComparator, s);
  8905. },
  8906. rest: function () {
  8907. return this.slice(1);
  8908. },
  8909. skip: function (s) {
  8910. return this.slice(Math.max(0, s));
  8911. },
  8912. skipLast: function (s) {
  8913. return reify(this, this.toSeq().reverse().skip(s).reverse());
  8914. },
  8915. skipWhile: function (s, o) {
  8916. return reify(this, skipWhileFactory(this, s, o, !0));
  8917. },
  8918. skipUntil: function (s, o) {
  8919. return this.skipWhile(not(s), o);
  8920. },
  8921. sortBy: function (s, o) {
  8922. return reify(this, sortFactory(this, o, s));
  8923. },
  8924. take: function (s) {
  8925. return this.slice(0, Math.max(0, s));
  8926. },
  8927. takeLast: function (s) {
  8928. return reify(this, this.toSeq().reverse().take(s).reverse());
  8929. },
  8930. takeWhile: function (s, o) {
  8931. return reify(this, takeWhileFactory(this, s, o));
  8932. },
  8933. takeUntil: function (s, o) {
  8934. return this.takeWhile(not(s), o);
  8935. },
  8936. valueSeq: function () {
  8937. return this.toIndexedSeq();
  8938. },
  8939. hashCode: function () {
  8940. return this.__hash || (this.__hash = hashIterable(this));
  8941. }
  8942. });
  8943. var pt = Iterable.prototype;
  8944. (pt[o] = !0),
  8945. (pt[ee] = pt.values),
  8946. (pt.__toJS = pt.toArray),
  8947. (pt.__toStringMapper = quoteString),
  8948. (pt.inspect = pt.toSource =
  8949. function () {
  8950. return this.toString();
  8951. }),
  8952. (pt.chain = pt.flatMap),
  8953. (pt.contains = pt.includes),
  8954. mixin(KeyedIterable, {
  8955. flip: function () {
  8956. return reify(this, flipFactory(this));
  8957. },
  8958. mapEntries: function (s, o) {
  8959. var i = this,
  8960. u = 0;
  8961. return reify(
  8962. this,
  8963. this.toSeq()
  8964. .map(function (_, w) {
  8965. return s.call(o, [w, _], u++, i);
  8966. })
  8967. .fromEntrySeq()
  8968. );
  8969. },
  8970. mapKeys: function (s, o) {
  8971. var i = this;
  8972. return reify(
  8973. this,
  8974. this.toSeq()
  8975. .flip()
  8976. .map(function (u, _) {
  8977. return s.call(o, u, _, i);
  8978. })
  8979. .flip()
  8980. );
  8981. }
  8982. });
  8983. var ht = KeyedIterable.prototype;
  8984. function keyMapper(s, o) {
  8985. return o;
  8986. }
  8987. function entryMapper(s, o) {
  8988. return [o, s];
  8989. }
  8990. function not(s) {
  8991. return function () {
  8992. return !s.apply(this, arguments);
  8993. };
  8994. }
  8995. function neg(s) {
  8996. return function () {
  8997. return -s.apply(this, arguments);
  8998. };
  8999. }
  9000. function quoteString(s) {
  9001. return 'string' == typeof s ? JSON.stringify(s) : String(s);
  9002. }
  9003. function defaultZipper() {
  9004. return arrCopy(arguments);
  9005. }
  9006. function defaultNegComparator(s, o) {
  9007. return s < o ? 1 : s > o ? -1 : 0;
  9008. }
  9009. function hashIterable(s) {
  9010. if (s.size === 1 / 0) return 0;
  9011. var o = isOrdered(s),
  9012. i = isKeyed(s),
  9013. u = o ? 1 : 0;
  9014. return murmurHashOfSize(
  9015. s.__iterate(
  9016. i
  9017. ? o
  9018. ? function (s, o) {
  9019. u = (31 * u + hashMerge(hash(s), hash(o))) | 0;
  9020. }
  9021. : function (s, o) {
  9022. u = (u + hashMerge(hash(s), hash(o))) | 0;
  9023. }
  9024. : o
  9025. ? function (s) {
  9026. u = (31 * u + hash(s)) | 0;
  9027. }
  9028. : function (s) {
  9029. u = (u + hash(s)) | 0;
  9030. }
  9031. ),
  9032. u
  9033. );
  9034. }
  9035. function murmurHashOfSize(s, o) {
  9036. return (
  9037. (o = pe(o, 3432918353)),
  9038. (o = pe((o << 15) | (o >>> -15), 461845907)),
  9039. (o = pe((o << 13) | (o >>> -13), 5)),
  9040. (o = pe((o = (o + 3864292196) ^ s) ^ (o >>> 16), 2246822507)),
  9041. (o = smi((o = pe(o ^ (o >>> 13), 3266489909)) ^ (o >>> 16)))
  9042. );
  9043. }
  9044. function hashMerge(s, o) {
  9045. return s ^ (o + 2654435769 + (s << 6) + (s >> 2));
  9046. }
  9047. return (
  9048. (ht[i] = !0),
  9049. (ht[ee] = pt.entries),
  9050. (ht.__toJS = pt.toObject),
  9051. (ht.__toStringMapper = function (s, o) {
  9052. return JSON.stringify(o) + ': ' + quoteString(s);
  9053. }),
  9054. mixin(IndexedIterable, {
  9055. toKeyedSeq: function () {
  9056. return new ToKeyedSequence(this, !1);
  9057. },
  9058. filter: function (s, o) {
  9059. return reify(this, filterFactory(this, s, o, !1));
  9060. },
  9061. findIndex: function (s, o) {
  9062. var i = this.findEntry(s, o);
  9063. return i ? i[0] : -1;
  9064. },
  9065. indexOf: function (s) {
  9066. var o = this.keyOf(s);
  9067. return void 0 === o ? -1 : o;
  9068. },
  9069. lastIndexOf: function (s) {
  9070. var o = this.lastKeyOf(s);
  9071. return void 0 === o ? -1 : o;
  9072. },
  9073. reverse: function () {
  9074. return reify(this, reverseFactory(this, !1));
  9075. },
  9076. slice: function (s, o) {
  9077. return reify(this, sliceFactory(this, s, o, !1));
  9078. },
  9079. splice: function (s, o) {
  9080. var i = arguments.length;
  9081. if (((o = Math.max(0 | o, 0)), 0 === i || (2 === i && !o))) return this;
  9082. s = resolveBegin(s, s < 0 ? this.count() : this.size);
  9083. var u = this.slice(0, s);
  9084. return reify(
  9085. this,
  9086. 1 === i ? u : u.concat(arrCopy(arguments, 2), this.slice(s + o))
  9087. );
  9088. },
  9089. findLastIndex: function (s, o) {
  9090. var i = this.findLastEntry(s, o);
  9091. return i ? i[0] : -1;
  9092. },
  9093. first: function () {
  9094. return this.get(0);
  9095. },
  9096. flatten: function (s) {
  9097. return reify(this, flattenFactory(this, s, !1));
  9098. },
  9099. get: function (s, o) {
  9100. return (s = wrapIndex(this, s)) < 0 ||
  9101. this.size === 1 / 0 ||
  9102. (void 0 !== this.size && s > this.size)
  9103. ? o
  9104. : this.find(
  9105. function (o, i) {
  9106. return i === s;
  9107. },
  9108. void 0,
  9109. o
  9110. );
  9111. },
  9112. has: function (s) {
  9113. return (
  9114. (s = wrapIndex(this, s)) >= 0 &&
  9115. (void 0 !== this.size
  9116. ? this.size === 1 / 0 || s < this.size
  9117. : -1 !== this.indexOf(s))
  9118. );
  9119. },
  9120. interpose: function (s) {
  9121. return reify(this, interposeFactory(this, s));
  9122. },
  9123. interleave: function () {
  9124. var s = [this].concat(arrCopy(arguments)),
  9125. o = zipWithFactory(this.toSeq(), IndexedSeq.of, s),
  9126. i = o.flatten(!0);
  9127. return o.size && (i.size = o.size * s.length), reify(this, i);
  9128. },
  9129. keySeq: function () {
  9130. return Range(0, this.size);
  9131. },
  9132. last: function () {
  9133. return this.get(-1);
  9134. },
  9135. skipWhile: function (s, o) {
  9136. return reify(this, skipWhileFactory(this, s, o, !1));
  9137. },
  9138. zip: function () {
  9139. return reify(
  9140. this,
  9141. zipWithFactory(this, defaultZipper, [this].concat(arrCopy(arguments)))
  9142. );
  9143. },
  9144. zipWith: function (s) {
  9145. var o = arrCopy(arguments);
  9146. return (o[0] = this), reify(this, zipWithFactory(this, s, o));
  9147. }
  9148. }),
  9149. (IndexedIterable.prototype[u] = !0),
  9150. (IndexedIterable.prototype[_] = !0),
  9151. mixin(SetIterable, {
  9152. get: function (s, o) {
  9153. return this.has(s) ? s : o;
  9154. },
  9155. includes: function (s) {
  9156. return this.has(s);
  9157. },
  9158. keySeq: function () {
  9159. return this.valueSeq();
  9160. }
  9161. }),
  9162. (SetIterable.prototype.has = pt.includes),
  9163. (SetIterable.prototype.contains = SetIterable.prototype.includes),
  9164. mixin(KeyedSeq, KeyedIterable.prototype),
  9165. mixin(IndexedSeq, IndexedIterable.prototype),
  9166. mixin(SetSeq, SetIterable.prototype),
  9167. mixin(KeyedCollection, KeyedIterable.prototype),
  9168. mixin(IndexedCollection, IndexedIterable.prototype),
  9169. mixin(SetCollection, SetIterable.prototype),
  9170. {
  9171. Iterable,
  9172. Seq,
  9173. Collection,
  9174. Map,
  9175. OrderedMap,
  9176. List,
  9177. Stack,
  9178. Set,
  9179. OrderedSet,
  9180. Record,
  9181. Range,
  9182. Repeat,
  9183. is,
  9184. fromJS
  9185. }
  9186. );
  9187. })();
  9188. },
  9189. 56698: (s) => {
  9190. 'function' == typeof Object.create
  9191. ? (s.exports = function inherits(s, o) {
  9192. o &&
  9193. ((s.super_ = o),
  9194. (s.prototype = Object.create(o.prototype, {
  9195. constructor: { value: s, enumerable: !1, writable: !0, configurable: !0 }
  9196. })));
  9197. })
  9198. : (s.exports = function inherits(s, o) {
  9199. if (o) {
  9200. s.super_ = o;
  9201. var TempCtor = function () {};
  9202. (TempCtor.prototype = o.prototype),
  9203. (s.prototype = new TempCtor()),
  9204. (s.prototype.constructor = s);
  9205. }
  9206. });
  9207. },
  9208. 5419: (s) => {
  9209. s.exports = function (s, o, i, u) {
  9210. var _ = new Blob(void 0 !== u ? [u, s] : [s], {
  9211. type: i || 'application/octet-stream'
  9212. });
  9213. if (void 0 !== window.navigator.msSaveBlob) window.navigator.msSaveBlob(_, o);
  9214. else {
  9215. var w =
  9216. window.URL && window.URL.createObjectURL
  9217. ? window.URL.createObjectURL(_)
  9218. : window.webkitURL.createObjectURL(_),
  9219. x = document.createElement('a');
  9220. (x.style.display = 'none'),
  9221. (x.href = w),
  9222. x.setAttribute('download', o),
  9223. void 0 === x.download && x.setAttribute('target', '_blank'),
  9224. document.body.appendChild(x),
  9225. x.click(),
  9226. setTimeout(function () {
  9227. document.body.removeChild(x), window.URL.revokeObjectURL(w);
  9228. }, 200);
  9229. }
  9230. };
  9231. },
  9232. 20181: (s, o, i) => {
  9233. var u = /^\s+|\s+$/g,
  9234. _ = /^[-+]0x[0-9a-f]+$/i,
  9235. w = /^0b[01]+$/i,
  9236. x = /^0o[0-7]+$/i,
  9237. C = parseInt,
  9238. j = 'object' == typeof i.g && i.g && i.g.Object === Object && i.g,
  9239. L = 'object' == typeof self && self && self.Object === Object && self,
  9240. B = j || L || Function('return this')(),
  9241. $ = Object.prototype.toString,
  9242. V = Math.max,
  9243. U = Math.min,
  9244. now = function () {
  9245. return B.Date.now();
  9246. };
  9247. function isObject(s) {
  9248. var o = typeof s;
  9249. return !!s && ('object' == o || 'function' == o);
  9250. }
  9251. function toNumber(s) {
  9252. if ('number' == typeof s) return s;
  9253. if (
  9254. (function isSymbol(s) {
  9255. return (
  9256. 'symbol' == typeof s ||
  9257. ((function isObjectLike(s) {
  9258. return !!s && 'object' == typeof s;
  9259. })(s) &&
  9260. '[object Symbol]' == $.call(s))
  9261. );
  9262. })(s)
  9263. )
  9264. return NaN;
  9265. if (isObject(s)) {
  9266. var o = 'function' == typeof s.valueOf ? s.valueOf() : s;
  9267. s = isObject(o) ? o + '' : o;
  9268. }
  9269. if ('string' != typeof s) return 0 === s ? s : +s;
  9270. s = s.replace(u, '');
  9271. var i = w.test(s);
  9272. return i || x.test(s) ? C(s.slice(2), i ? 2 : 8) : _.test(s) ? NaN : +s;
  9273. }
  9274. s.exports = function debounce(s, o, i) {
  9275. var u,
  9276. _,
  9277. w,
  9278. x,
  9279. C,
  9280. j,
  9281. L = 0,
  9282. B = !1,
  9283. $ = !1,
  9284. z = !0;
  9285. if ('function' != typeof s) throw new TypeError('Expected a function');
  9286. function invokeFunc(o) {
  9287. var i = u,
  9288. w = _;
  9289. return (u = _ = void 0), (L = o), (x = s.apply(w, i));
  9290. }
  9291. function shouldInvoke(s) {
  9292. var i = s - j;
  9293. return void 0 === j || i >= o || i < 0 || ($ && s - L >= w);
  9294. }
  9295. function timerExpired() {
  9296. var s = now();
  9297. if (shouldInvoke(s)) return trailingEdge(s);
  9298. C = setTimeout(
  9299. timerExpired,
  9300. (function remainingWait(s) {
  9301. var i = o - (s - j);
  9302. return $ ? U(i, w - (s - L)) : i;
  9303. })(s)
  9304. );
  9305. }
  9306. function trailingEdge(s) {
  9307. return (C = void 0), z && u ? invokeFunc(s) : ((u = _ = void 0), x);
  9308. }
  9309. function debounced() {
  9310. var s = now(),
  9311. i = shouldInvoke(s);
  9312. if (((u = arguments), (_ = this), (j = s), i)) {
  9313. if (void 0 === C)
  9314. return (function leadingEdge(s) {
  9315. return (L = s), (C = setTimeout(timerExpired, o)), B ? invokeFunc(s) : x;
  9316. })(j);
  9317. if ($) return (C = setTimeout(timerExpired, o)), invokeFunc(j);
  9318. }
  9319. return void 0 === C && (C = setTimeout(timerExpired, o)), x;
  9320. }
  9321. return (
  9322. (o = toNumber(o) || 0),
  9323. isObject(i) &&
  9324. ((B = !!i.leading),
  9325. (w = ($ = 'maxWait' in i) ? V(toNumber(i.maxWait) || 0, o) : w),
  9326. (z = 'trailing' in i ? !!i.trailing : z)),
  9327. (debounced.cancel = function cancel() {
  9328. void 0 !== C && clearTimeout(C), (L = 0), (u = j = _ = C = void 0);
  9329. }),
  9330. (debounced.flush = function flush() {
  9331. return void 0 === C ? x : trailingEdge(now());
  9332. }),
  9333. debounced
  9334. );
  9335. };
  9336. },
  9337. 55580: (s, o, i) => {
  9338. var u = i(56110)(i(9325), 'DataView');
  9339. s.exports = u;
  9340. },
  9341. 21549: (s, o, i) => {
  9342. var u = i(22032),
  9343. _ = i(63862),
  9344. w = i(66721),
  9345. x = i(12749),
  9346. C = i(35749);
  9347. function Hash(s) {
  9348. var o = -1,
  9349. i = null == s ? 0 : s.length;
  9350. for (this.clear(); ++o < i; ) {
  9351. var u = s[o];
  9352. this.set(u[0], u[1]);
  9353. }
  9354. }
  9355. (Hash.prototype.clear = u),
  9356. (Hash.prototype.delete = _),
  9357. (Hash.prototype.get = w),
  9358. (Hash.prototype.has = x),
  9359. (Hash.prototype.set = C),
  9360. (s.exports = Hash);
  9361. },
  9362. 30980: (s, o, i) => {
  9363. var u = i(39344),
  9364. _ = i(94033);
  9365. function LazyWrapper(s) {
  9366. (this.__wrapped__ = s),
  9367. (this.__actions__ = []),
  9368. (this.__dir__ = 1),
  9369. (this.__filtered__ = !1),
  9370. (this.__iteratees__ = []),
  9371. (this.__takeCount__ = 4294967295),
  9372. (this.__views__ = []);
  9373. }
  9374. (LazyWrapper.prototype = u(_.prototype)),
  9375. (LazyWrapper.prototype.constructor = LazyWrapper),
  9376. (s.exports = LazyWrapper);
  9377. },
  9378. 80079: (s, o, i) => {
  9379. var u = i(63702),
  9380. _ = i(70080),
  9381. w = i(24739),
  9382. x = i(48655),
  9383. C = i(31175);
  9384. function ListCache(s) {
  9385. var o = -1,
  9386. i = null == s ? 0 : s.length;
  9387. for (this.clear(); ++o < i; ) {
  9388. var u = s[o];
  9389. this.set(u[0], u[1]);
  9390. }
  9391. }
  9392. (ListCache.prototype.clear = u),
  9393. (ListCache.prototype.delete = _),
  9394. (ListCache.prototype.get = w),
  9395. (ListCache.prototype.has = x),
  9396. (ListCache.prototype.set = C),
  9397. (s.exports = ListCache);
  9398. },
  9399. 56017: (s, o, i) => {
  9400. var u = i(39344),
  9401. _ = i(94033);
  9402. function LodashWrapper(s, o) {
  9403. (this.__wrapped__ = s),
  9404. (this.__actions__ = []),
  9405. (this.__chain__ = !!o),
  9406. (this.__index__ = 0),
  9407. (this.__values__ = void 0);
  9408. }
  9409. (LodashWrapper.prototype = u(_.prototype)),
  9410. (LodashWrapper.prototype.constructor = LodashWrapper),
  9411. (s.exports = LodashWrapper);
  9412. },
  9413. 68223: (s, o, i) => {
  9414. var u = i(56110)(i(9325), 'Map');
  9415. s.exports = u;
  9416. },
  9417. 53661: (s, o, i) => {
  9418. var u = i(63040),
  9419. _ = i(17670),
  9420. w = i(90289),
  9421. x = i(4509),
  9422. C = i(72949);
  9423. function MapCache(s) {
  9424. var o = -1,
  9425. i = null == s ? 0 : s.length;
  9426. for (this.clear(); ++o < i; ) {
  9427. var u = s[o];
  9428. this.set(u[0], u[1]);
  9429. }
  9430. }
  9431. (MapCache.prototype.clear = u),
  9432. (MapCache.prototype.delete = _),
  9433. (MapCache.prototype.get = w),
  9434. (MapCache.prototype.has = x),
  9435. (MapCache.prototype.set = C),
  9436. (s.exports = MapCache);
  9437. },
  9438. 32804: (s, o, i) => {
  9439. var u = i(56110)(i(9325), 'Promise');
  9440. s.exports = u;
  9441. },
  9442. 76545: (s, o, i) => {
  9443. var u = i(56110)(i(9325), 'Set');
  9444. s.exports = u;
  9445. },
  9446. 38859: (s, o, i) => {
  9447. var u = i(53661),
  9448. _ = i(31380),
  9449. w = i(51459);
  9450. function SetCache(s) {
  9451. var o = -1,
  9452. i = null == s ? 0 : s.length;
  9453. for (this.__data__ = new u(); ++o < i; ) this.add(s[o]);
  9454. }
  9455. (SetCache.prototype.add = SetCache.prototype.push = _),
  9456. (SetCache.prototype.has = w),
  9457. (s.exports = SetCache);
  9458. },
  9459. 37217: (s, o, i) => {
  9460. var u = i(80079),
  9461. _ = i(51420),
  9462. w = i(90938),
  9463. x = i(63605),
  9464. C = i(29817),
  9465. j = i(80945);
  9466. function Stack(s) {
  9467. var o = (this.__data__ = new u(s));
  9468. this.size = o.size;
  9469. }
  9470. (Stack.prototype.clear = _),
  9471. (Stack.prototype.delete = w),
  9472. (Stack.prototype.get = x),
  9473. (Stack.prototype.has = C),
  9474. (Stack.prototype.set = j),
  9475. (s.exports = Stack);
  9476. },
  9477. 51873: (s, o, i) => {
  9478. var u = i(9325).Symbol;
  9479. s.exports = u;
  9480. },
  9481. 37828: (s, o, i) => {
  9482. var u = i(9325).Uint8Array;
  9483. s.exports = u;
  9484. },
  9485. 28303: (s, o, i) => {
  9486. var u = i(56110)(i(9325), 'WeakMap');
  9487. s.exports = u;
  9488. },
  9489. 91033: (s) => {
  9490. s.exports = function apply(s, o, i) {
  9491. switch (i.length) {
  9492. case 0:
  9493. return s.call(o);
  9494. case 1:
  9495. return s.call(o, i[0]);
  9496. case 2:
  9497. return s.call(o, i[0], i[1]);
  9498. case 3:
  9499. return s.call(o, i[0], i[1], i[2]);
  9500. }
  9501. return s.apply(o, i);
  9502. };
  9503. },
  9504. 83729: (s) => {
  9505. s.exports = function arrayEach(s, o) {
  9506. for (var i = -1, u = null == s ? 0 : s.length; ++i < u && !1 !== o(s[i], i, s); );
  9507. return s;
  9508. };
  9509. },
  9510. 79770: (s) => {
  9511. s.exports = function arrayFilter(s, o) {
  9512. for (var i = -1, u = null == s ? 0 : s.length, _ = 0, w = []; ++i < u; ) {
  9513. var x = s[i];
  9514. o(x, i, s) && (w[_++] = x);
  9515. }
  9516. return w;
  9517. };
  9518. },
  9519. 15325: (s, o, i) => {
  9520. var u = i(96131);
  9521. s.exports = function arrayIncludes(s, o) {
  9522. return !!(null == s ? 0 : s.length) && u(s, o, 0) > -1;
  9523. };
  9524. },
  9525. 70695: (s, o, i) => {
  9526. var u = i(78096),
  9527. _ = i(72428),
  9528. w = i(56449),
  9529. x = i(3656),
  9530. C = i(30361),
  9531. j = i(37167),
  9532. L = Object.prototype.hasOwnProperty;
  9533. s.exports = function arrayLikeKeys(s, o) {
  9534. var i = w(s),
  9535. B = !i && _(s),
  9536. $ = !i && !B && x(s),
  9537. V = !i && !B && !$ && j(s),
  9538. U = i || B || $ || V,
  9539. z = U ? u(s.length, String) : [],
  9540. Y = z.length;
  9541. for (var Z in s)
  9542. (!o && !L.call(s, Z)) ||
  9543. (U &&
  9544. ('length' == Z ||
  9545. ($ && ('offset' == Z || 'parent' == Z)) ||
  9546. (V && ('buffer' == Z || 'byteLength' == Z || 'byteOffset' == Z)) ||
  9547. C(Z, Y))) ||
  9548. z.push(Z);
  9549. return z;
  9550. };
  9551. },
  9552. 34932: (s) => {
  9553. s.exports = function arrayMap(s, o) {
  9554. for (var i = -1, u = null == s ? 0 : s.length, _ = Array(u); ++i < u; )
  9555. _[i] = o(s[i], i, s);
  9556. return _;
  9557. };
  9558. },
  9559. 14528: (s) => {
  9560. s.exports = function arrayPush(s, o) {
  9561. for (var i = -1, u = o.length, _ = s.length; ++i < u; ) s[_ + i] = o[i];
  9562. return s;
  9563. };
  9564. },
  9565. 40882: (s) => {
  9566. s.exports = function arrayReduce(s, o, i, u) {
  9567. var _ = -1,
  9568. w = null == s ? 0 : s.length;
  9569. for (u && w && (i = s[++_]); ++_ < w; ) i = o(i, s[_], _, s);
  9570. return i;
  9571. };
  9572. },
  9573. 14248: (s) => {
  9574. s.exports = function arraySome(s, o) {
  9575. for (var i = -1, u = null == s ? 0 : s.length; ++i < u; ) if (o(s[i], i, s)) return !0;
  9576. return !1;
  9577. };
  9578. },
  9579. 61074: (s) => {
  9580. s.exports = function asciiToArray(s) {
  9581. return s.split('');
  9582. };
  9583. },
  9584. 1733: (s) => {
  9585. var o = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
  9586. s.exports = function asciiWords(s) {
  9587. return s.match(o) || [];
  9588. };
  9589. },
  9590. 87805: (s, o, i) => {
  9591. var u = i(43360),
  9592. _ = i(75288);
  9593. s.exports = function assignMergeValue(s, o, i) {
  9594. ((void 0 !== i && !_(s[o], i)) || (void 0 === i && !(o in s))) && u(s, o, i);
  9595. };
  9596. },
  9597. 16547: (s, o, i) => {
  9598. var u = i(43360),
  9599. _ = i(75288),
  9600. w = Object.prototype.hasOwnProperty;
  9601. s.exports = function assignValue(s, o, i) {
  9602. var x = s[o];
  9603. (w.call(s, o) && _(x, i) && (void 0 !== i || o in s)) || u(s, o, i);
  9604. };
  9605. },
  9606. 26025: (s, o, i) => {
  9607. var u = i(75288);
  9608. s.exports = function assocIndexOf(s, o) {
  9609. for (var i = s.length; i--; ) if (u(s[i][0], o)) return i;
  9610. return -1;
  9611. };
  9612. },
  9613. 74733: (s, o, i) => {
  9614. var u = i(21791),
  9615. _ = i(95950);
  9616. s.exports = function baseAssign(s, o) {
  9617. return s && u(o, _(o), s);
  9618. };
  9619. },
  9620. 43838: (s, o, i) => {
  9621. var u = i(21791),
  9622. _ = i(37241);
  9623. s.exports = function baseAssignIn(s, o) {
  9624. return s && u(o, _(o), s);
  9625. };
  9626. },
  9627. 43360: (s, o, i) => {
  9628. var u = i(93243);
  9629. s.exports = function baseAssignValue(s, o, i) {
  9630. '__proto__' == o && u
  9631. ? u(s, o, { configurable: !0, enumerable: !0, value: i, writable: !0 })
  9632. : (s[o] = i);
  9633. };
  9634. },
  9635. 9999: (s, o, i) => {
  9636. var u = i(37217),
  9637. _ = i(83729),
  9638. w = i(16547),
  9639. x = i(74733),
  9640. C = i(43838),
  9641. j = i(93290),
  9642. L = i(23007),
  9643. B = i(92271),
  9644. $ = i(48948),
  9645. V = i(50002),
  9646. U = i(83349),
  9647. z = i(5861),
  9648. Y = i(76189),
  9649. Z = i(77199),
  9650. ee = i(35529),
  9651. ie = i(56449),
  9652. ae = i(3656),
  9653. le = i(87730),
  9654. ce = i(23805),
  9655. pe = i(38440),
  9656. de = i(95950),
  9657. fe = i(37241),
  9658. ye = '[object Arguments]',
  9659. be = '[object Function]',
  9660. _e = '[object Object]',
  9661. we = {};
  9662. (we[ye] =
  9663. we['[object Array]'] =
  9664. we['[object ArrayBuffer]'] =
  9665. we['[object DataView]'] =
  9666. we['[object Boolean]'] =
  9667. we['[object Date]'] =
  9668. we['[object Float32Array]'] =
  9669. we['[object Float64Array]'] =
  9670. we['[object Int8Array]'] =
  9671. we['[object Int16Array]'] =
  9672. we['[object Int32Array]'] =
  9673. we['[object Map]'] =
  9674. we['[object Number]'] =
  9675. we[_e] =
  9676. we['[object RegExp]'] =
  9677. we['[object Set]'] =
  9678. we['[object String]'] =
  9679. we['[object Symbol]'] =
  9680. we['[object Uint8Array]'] =
  9681. we['[object Uint8ClampedArray]'] =
  9682. we['[object Uint16Array]'] =
  9683. we['[object Uint32Array]'] =
  9684. !0),
  9685. (we['[object Error]'] = we[be] = we['[object WeakMap]'] = !1),
  9686. (s.exports = function baseClone(s, o, i, Se, xe, Pe) {
  9687. var Te,
  9688. Re = 1 & o,
  9689. qe = 2 & o,
  9690. $e = 4 & o;
  9691. if ((i && (Te = xe ? i(s, Se, xe, Pe) : i(s)), void 0 !== Te)) return Te;
  9692. if (!ce(s)) return s;
  9693. var ze = ie(s);
  9694. if (ze) {
  9695. if (((Te = Y(s)), !Re)) return L(s, Te);
  9696. } else {
  9697. var We = z(s),
  9698. He = We == be || '[object GeneratorFunction]' == We;
  9699. if (ae(s)) return j(s, Re);
  9700. if (We == _e || We == ye || (He && !xe)) {
  9701. if (((Te = qe || He ? {} : ee(s)), !Re))
  9702. return qe ? $(s, C(Te, s)) : B(s, x(Te, s));
  9703. } else {
  9704. if (!we[We]) return xe ? s : {};
  9705. Te = Z(s, We, Re);
  9706. }
  9707. }
  9708. Pe || (Pe = new u());
  9709. var Ye = Pe.get(s);
  9710. if (Ye) return Ye;
  9711. Pe.set(s, Te),
  9712. pe(s)
  9713. ? s.forEach(function (u) {
  9714. Te.add(baseClone(u, o, i, u, s, Pe));
  9715. })
  9716. : le(s) &&
  9717. s.forEach(function (u, _) {
  9718. Te.set(_, baseClone(u, o, i, _, s, Pe));
  9719. });
  9720. var Xe = ze ? void 0 : ($e ? (qe ? U : V) : qe ? fe : de)(s);
  9721. return (
  9722. _(Xe || s, function (u, _) {
  9723. Xe && (u = s[(_ = u)]), w(Te, _, baseClone(u, o, i, _, s, Pe));
  9724. }),
  9725. Te
  9726. );
  9727. });
  9728. },
  9729. 39344: (s, o, i) => {
  9730. var u = i(23805),
  9731. _ = Object.create,
  9732. w = (function () {
  9733. function object() {}
  9734. return function (s) {
  9735. if (!u(s)) return {};
  9736. if (_) return _(s);
  9737. object.prototype = s;
  9738. var o = new object();
  9739. return (object.prototype = void 0), o;
  9740. };
  9741. })();
  9742. s.exports = w;
  9743. },
  9744. 80909: (s, o, i) => {
  9745. var u = i(30641),
  9746. _ = i(38329)(u);
  9747. s.exports = _;
  9748. },
  9749. 2523: (s) => {
  9750. s.exports = function baseFindIndex(s, o, i, u) {
  9751. for (var _ = s.length, w = i + (u ? 1 : -1); u ? w-- : ++w < _; )
  9752. if (o(s[w], w, s)) return w;
  9753. return -1;
  9754. };
  9755. },
  9756. 83120: (s, o, i) => {
  9757. var u = i(14528),
  9758. _ = i(45891);
  9759. s.exports = function baseFlatten(s, o, i, w, x) {
  9760. var C = -1,
  9761. j = s.length;
  9762. for (i || (i = _), x || (x = []); ++C < j; ) {
  9763. var L = s[C];
  9764. o > 0 && i(L)
  9765. ? o > 1
  9766. ? baseFlatten(L, o - 1, i, w, x)
  9767. : u(x, L)
  9768. : w || (x[x.length] = L);
  9769. }
  9770. return x;
  9771. };
  9772. },
  9773. 86649: (s, o, i) => {
  9774. var u = i(83221)();
  9775. s.exports = u;
  9776. },
  9777. 30641: (s, o, i) => {
  9778. var u = i(86649),
  9779. _ = i(95950);
  9780. s.exports = function baseForOwn(s, o) {
  9781. return s && u(s, o, _);
  9782. };
  9783. },
  9784. 47422: (s, o, i) => {
  9785. var u = i(31769),
  9786. _ = i(77797);
  9787. s.exports = function baseGet(s, o) {
  9788. for (var i = 0, w = (o = u(o, s)).length; null != s && i < w; ) s = s[_(o[i++])];
  9789. return i && i == w ? s : void 0;
  9790. };
  9791. },
  9792. 82199: (s, o, i) => {
  9793. var u = i(14528),
  9794. _ = i(56449);
  9795. s.exports = function baseGetAllKeys(s, o, i) {
  9796. var w = o(s);
  9797. return _(s) ? w : u(w, i(s));
  9798. };
  9799. },
  9800. 72552: (s, o, i) => {
  9801. var u = i(51873),
  9802. _ = i(659),
  9803. w = i(59350),
  9804. x = u ? u.toStringTag : void 0;
  9805. s.exports = function baseGetTag(s) {
  9806. return null == s
  9807. ? void 0 === s
  9808. ? '[object Undefined]'
  9809. : '[object Null]'
  9810. : x && x in Object(s)
  9811. ? _(s)
  9812. : w(s);
  9813. };
  9814. },
  9815. 20426: (s) => {
  9816. var o = Object.prototype.hasOwnProperty;
  9817. s.exports = function baseHas(s, i) {
  9818. return null != s && o.call(s, i);
  9819. };
  9820. },
  9821. 28077: (s) => {
  9822. s.exports = function baseHasIn(s, o) {
  9823. return null != s && o in Object(s);
  9824. };
  9825. },
  9826. 96131: (s, o, i) => {
  9827. var u = i(2523),
  9828. _ = i(85463),
  9829. w = i(76959);
  9830. s.exports = function baseIndexOf(s, o, i) {
  9831. return o == o ? w(s, o, i) : u(s, _, i);
  9832. };
  9833. },
  9834. 27534: (s, o, i) => {
  9835. var u = i(72552),
  9836. _ = i(40346);
  9837. s.exports = function baseIsArguments(s) {
  9838. return _(s) && '[object Arguments]' == u(s);
  9839. };
  9840. },
  9841. 60270: (s, o, i) => {
  9842. var u = i(87068),
  9843. _ = i(40346);
  9844. s.exports = function baseIsEqual(s, o, i, w, x) {
  9845. return (
  9846. s === o ||
  9847. (null == s || null == o || (!_(s) && !_(o))
  9848. ? s != s && o != o
  9849. : u(s, o, i, w, baseIsEqual, x))
  9850. );
  9851. };
  9852. },
  9853. 87068: (s, o, i) => {
  9854. var u = i(37217),
  9855. _ = i(25911),
  9856. w = i(21986),
  9857. x = i(50689),
  9858. C = i(5861),
  9859. j = i(56449),
  9860. L = i(3656),
  9861. B = i(37167),
  9862. $ = '[object Arguments]',
  9863. V = '[object Array]',
  9864. U = '[object Object]',
  9865. z = Object.prototype.hasOwnProperty;
  9866. s.exports = function baseIsEqualDeep(s, o, i, Y, Z, ee) {
  9867. var ie = j(s),
  9868. ae = j(o),
  9869. le = ie ? V : C(s),
  9870. ce = ae ? V : C(o),
  9871. pe = (le = le == $ ? U : le) == U,
  9872. de = (ce = ce == $ ? U : ce) == U,
  9873. fe = le == ce;
  9874. if (fe && L(s)) {
  9875. if (!L(o)) return !1;
  9876. (ie = !0), (pe = !1);
  9877. }
  9878. if (fe && !pe)
  9879. return (
  9880. ee || (ee = new u()), ie || B(s) ? _(s, o, i, Y, Z, ee) : w(s, o, le, i, Y, Z, ee)
  9881. );
  9882. if (!(1 & i)) {
  9883. var ye = pe && z.call(s, '__wrapped__'),
  9884. be = de && z.call(o, '__wrapped__');
  9885. if (ye || be) {
  9886. var _e = ye ? s.value() : s,
  9887. we = be ? o.value() : o;
  9888. return ee || (ee = new u()), Z(_e, we, i, Y, ee);
  9889. }
  9890. }
  9891. return !!fe && (ee || (ee = new u()), x(s, o, i, Y, Z, ee));
  9892. };
  9893. },
  9894. 29172: (s, o, i) => {
  9895. var u = i(5861),
  9896. _ = i(40346);
  9897. s.exports = function baseIsMap(s) {
  9898. return _(s) && '[object Map]' == u(s);
  9899. };
  9900. },
  9901. 41799: (s, o, i) => {
  9902. var u = i(37217),
  9903. _ = i(60270);
  9904. s.exports = function baseIsMatch(s, o, i, w) {
  9905. var x = i.length,
  9906. C = x,
  9907. j = !w;
  9908. if (null == s) return !C;
  9909. for (s = Object(s); x--; ) {
  9910. var L = i[x];
  9911. if (j && L[2] ? L[1] !== s[L[0]] : !(L[0] in s)) return !1;
  9912. }
  9913. for (; ++x < C; ) {
  9914. var B = (L = i[x])[0],
  9915. $ = s[B],
  9916. V = L[1];
  9917. if (j && L[2]) {
  9918. if (void 0 === $ && !(B in s)) return !1;
  9919. } else {
  9920. var U = new u();
  9921. if (w) var z = w($, V, B, s, o, U);
  9922. if (!(void 0 === z ? _(V, $, 3, w, U) : z)) return !1;
  9923. }
  9924. }
  9925. return !0;
  9926. };
  9927. },
  9928. 85463: (s) => {
  9929. s.exports = function baseIsNaN(s) {
  9930. return s != s;
  9931. };
  9932. },
  9933. 45083: (s, o, i) => {
  9934. var u = i(1882),
  9935. _ = i(87296),
  9936. w = i(23805),
  9937. x = i(47473),
  9938. C = /^\[object .+?Constructor\]$/,
  9939. j = Function.prototype,
  9940. L = Object.prototype,
  9941. B = j.toString,
  9942. $ = L.hasOwnProperty,
  9943. V = RegExp(
  9944. '^' +
  9945. B.call($)
  9946. .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
  9947. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') +
  9948. '$'
  9949. );
  9950. s.exports = function baseIsNative(s) {
  9951. return !(!w(s) || _(s)) && (u(s) ? V : C).test(x(s));
  9952. };
  9953. },
  9954. 16038: (s, o, i) => {
  9955. var u = i(5861),
  9956. _ = i(40346);
  9957. s.exports = function baseIsSet(s) {
  9958. return _(s) && '[object Set]' == u(s);
  9959. };
  9960. },
  9961. 4901: (s, o, i) => {
  9962. var u = i(72552),
  9963. _ = i(30294),
  9964. w = i(40346),
  9965. x = {};
  9966. (x['[object Float32Array]'] =
  9967. x['[object Float64Array]'] =
  9968. x['[object Int8Array]'] =
  9969. x['[object Int16Array]'] =
  9970. x['[object Int32Array]'] =
  9971. x['[object Uint8Array]'] =
  9972. x['[object Uint8ClampedArray]'] =
  9973. x['[object Uint16Array]'] =
  9974. x['[object Uint32Array]'] =
  9975. !0),
  9976. (x['[object Arguments]'] =
  9977. x['[object Array]'] =
  9978. x['[object ArrayBuffer]'] =
  9979. x['[object Boolean]'] =
  9980. x['[object DataView]'] =
  9981. x['[object Date]'] =
  9982. x['[object Error]'] =
  9983. x['[object Function]'] =
  9984. x['[object Map]'] =
  9985. x['[object Number]'] =
  9986. x['[object Object]'] =
  9987. x['[object RegExp]'] =
  9988. x['[object Set]'] =
  9989. x['[object String]'] =
  9990. x['[object WeakMap]'] =
  9991. !1),
  9992. (s.exports = function baseIsTypedArray(s) {
  9993. return w(s) && _(s.length) && !!x[u(s)];
  9994. });
  9995. },
  9996. 15389: (s, o, i) => {
  9997. var u = i(93663),
  9998. _ = i(87978),
  9999. w = i(83488),
  10000. x = i(56449),
  10001. C = i(50583);
  10002. s.exports = function baseIteratee(s) {
  10003. return 'function' == typeof s
  10004. ? s
  10005. : null == s
  10006. ? w
  10007. : 'object' == typeof s
  10008. ? x(s)
  10009. ? _(s[0], s[1])
  10010. : u(s)
  10011. : C(s);
  10012. };
  10013. },
  10014. 88984: (s, o, i) => {
  10015. var u = i(55527),
  10016. _ = i(3650),
  10017. w = Object.prototype.hasOwnProperty;
  10018. s.exports = function baseKeys(s) {
  10019. if (!u(s)) return _(s);
  10020. var o = [];
  10021. for (var i in Object(s)) w.call(s, i) && 'constructor' != i && o.push(i);
  10022. return o;
  10023. };
  10024. },
  10025. 72903: (s, o, i) => {
  10026. var u = i(23805),
  10027. _ = i(55527),
  10028. w = i(90181),
  10029. x = Object.prototype.hasOwnProperty;
  10030. s.exports = function baseKeysIn(s) {
  10031. if (!u(s)) return w(s);
  10032. var o = _(s),
  10033. i = [];
  10034. for (var C in s) ('constructor' != C || (!o && x.call(s, C))) && i.push(C);
  10035. return i;
  10036. };
  10037. },
  10038. 94033: (s) => {
  10039. s.exports = function baseLodash() {};
  10040. },
  10041. 93663: (s, o, i) => {
  10042. var u = i(41799),
  10043. _ = i(10776),
  10044. w = i(67197);
  10045. s.exports = function baseMatches(s) {
  10046. var o = _(s);
  10047. return 1 == o.length && o[0][2]
  10048. ? w(o[0][0], o[0][1])
  10049. : function (i) {
  10050. return i === s || u(i, s, o);
  10051. };
  10052. };
  10053. },
  10054. 87978: (s, o, i) => {
  10055. var u = i(60270),
  10056. _ = i(58156),
  10057. w = i(80631),
  10058. x = i(28586),
  10059. C = i(30756),
  10060. j = i(67197),
  10061. L = i(77797);
  10062. s.exports = function baseMatchesProperty(s, o) {
  10063. return x(s) && C(o)
  10064. ? j(L(s), o)
  10065. : function (i) {
  10066. var x = _(i, s);
  10067. return void 0 === x && x === o ? w(i, s) : u(o, x, 3);
  10068. };
  10069. };
  10070. },
  10071. 85250: (s, o, i) => {
  10072. var u = i(37217),
  10073. _ = i(87805),
  10074. w = i(86649),
  10075. x = i(42824),
  10076. C = i(23805),
  10077. j = i(37241),
  10078. L = i(14974);
  10079. s.exports = function baseMerge(s, o, i, B, $) {
  10080. s !== o &&
  10081. w(
  10082. o,
  10083. function (w, j) {
  10084. if (($ || ($ = new u()), C(w))) x(s, o, j, i, baseMerge, B, $);
  10085. else {
  10086. var V = B ? B(L(s, j), w, j + '', s, o, $) : void 0;
  10087. void 0 === V && (V = w), _(s, j, V);
  10088. }
  10089. },
  10090. j
  10091. );
  10092. };
  10093. },
  10094. 42824: (s, o, i) => {
  10095. var u = i(87805),
  10096. _ = i(93290),
  10097. w = i(71961),
  10098. x = i(23007),
  10099. C = i(35529),
  10100. j = i(72428),
  10101. L = i(56449),
  10102. B = i(83693),
  10103. $ = i(3656),
  10104. V = i(1882),
  10105. U = i(23805),
  10106. z = i(11331),
  10107. Y = i(37167),
  10108. Z = i(14974),
  10109. ee = i(69884);
  10110. s.exports = function baseMergeDeep(s, o, i, ie, ae, le, ce) {
  10111. var pe = Z(s, i),
  10112. de = Z(o, i),
  10113. fe = ce.get(de);
  10114. if (fe) u(s, i, fe);
  10115. else {
  10116. var ye = le ? le(pe, de, i + '', s, o, ce) : void 0,
  10117. be = void 0 === ye;
  10118. if (be) {
  10119. var _e = L(de),
  10120. we = !_e && $(de),
  10121. Se = !_e && !we && Y(de);
  10122. (ye = de),
  10123. _e || we || Se
  10124. ? L(pe)
  10125. ? (ye = pe)
  10126. : B(pe)
  10127. ? (ye = x(pe))
  10128. : we
  10129. ? ((be = !1), (ye = _(de, !0)))
  10130. : Se
  10131. ? ((be = !1), (ye = w(de, !0)))
  10132. : (ye = [])
  10133. : z(de) || j(de)
  10134. ? ((ye = pe), j(pe) ? (ye = ee(pe)) : (U(pe) && !V(pe)) || (ye = C(de)))
  10135. : (be = !1);
  10136. }
  10137. be && (ce.set(de, ye), ae(ye, de, ie, le, ce), ce.delete(de)), u(s, i, ye);
  10138. }
  10139. };
  10140. },
  10141. 47237: (s) => {
  10142. s.exports = function baseProperty(s) {
  10143. return function (o) {
  10144. return null == o ? void 0 : o[s];
  10145. };
  10146. };
  10147. },
  10148. 17255: (s, o, i) => {
  10149. var u = i(47422);
  10150. s.exports = function basePropertyDeep(s) {
  10151. return function (o) {
  10152. return u(o, s);
  10153. };
  10154. };
  10155. },
  10156. 54552: (s) => {
  10157. s.exports = function basePropertyOf(s) {
  10158. return function (o) {
  10159. return null == s ? void 0 : s[o];
  10160. };
  10161. };
  10162. },
  10163. 85558: (s) => {
  10164. s.exports = function baseReduce(s, o, i, u, _) {
  10165. return (
  10166. _(s, function (s, _, w) {
  10167. i = u ? ((u = !1), s) : o(i, s, _, w);
  10168. }),
  10169. i
  10170. );
  10171. };
  10172. },
  10173. 69302: (s, o, i) => {
  10174. var u = i(83488),
  10175. _ = i(56757),
  10176. w = i(32865);
  10177. s.exports = function baseRest(s, o) {
  10178. return w(_(s, o, u), s + '');
  10179. };
  10180. },
  10181. 73170: (s, o, i) => {
  10182. var u = i(16547),
  10183. _ = i(31769),
  10184. w = i(30361),
  10185. x = i(23805),
  10186. C = i(77797);
  10187. s.exports = function baseSet(s, o, i, j) {
  10188. if (!x(s)) return s;
  10189. for (var L = -1, B = (o = _(o, s)).length, $ = B - 1, V = s; null != V && ++L < B; ) {
  10190. var U = C(o[L]),
  10191. z = i;
  10192. if ('__proto__' === U || 'constructor' === U || 'prototype' === U) return s;
  10193. if (L != $) {
  10194. var Y = V[U];
  10195. void 0 === (z = j ? j(Y, U, V) : void 0) && (z = x(Y) ? Y : w(o[L + 1]) ? [] : {});
  10196. }
  10197. u(V, U, z), (V = V[U]);
  10198. }
  10199. return s;
  10200. };
  10201. },
  10202. 68882: (s, o, i) => {
  10203. var u = i(83488),
  10204. _ = i(48152),
  10205. w = _
  10206. ? function (s, o) {
  10207. return _.set(s, o), s;
  10208. }
  10209. : u;
  10210. s.exports = w;
  10211. },
  10212. 19570: (s, o, i) => {
  10213. var u = i(37334),
  10214. _ = i(93243),
  10215. w = i(83488),
  10216. x = _
  10217. ? function (s, o) {
  10218. return _(s, 'toString', {
  10219. configurable: !0,
  10220. enumerable: !1,
  10221. value: u(o),
  10222. writable: !0
  10223. });
  10224. }
  10225. : w;
  10226. s.exports = x;
  10227. },
  10228. 25160: (s) => {
  10229. s.exports = function baseSlice(s, o, i) {
  10230. var u = -1,
  10231. _ = s.length;
  10232. o < 0 && (o = -o > _ ? 0 : _ + o),
  10233. (i = i > _ ? _ : i) < 0 && (i += _),
  10234. (_ = o > i ? 0 : (i - o) >>> 0),
  10235. (o >>>= 0);
  10236. for (var w = Array(_); ++u < _; ) w[u] = s[u + o];
  10237. return w;
  10238. };
  10239. },
  10240. 90916: (s, o, i) => {
  10241. var u = i(80909);
  10242. s.exports = function baseSome(s, o) {
  10243. var i;
  10244. return (
  10245. u(s, function (s, u, _) {
  10246. return !(i = o(s, u, _));
  10247. }),
  10248. !!i
  10249. );
  10250. };
  10251. },
  10252. 78096: (s) => {
  10253. s.exports = function baseTimes(s, o) {
  10254. for (var i = -1, u = Array(s); ++i < s; ) u[i] = o(i);
  10255. return u;
  10256. };
  10257. },
  10258. 77556: (s, o, i) => {
  10259. var u = i(51873),
  10260. _ = i(34932),
  10261. w = i(56449),
  10262. x = i(44394),
  10263. C = u ? u.prototype : void 0,
  10264. j = C ? C.toString : void 0;
  10265. s.exports = function baseToString(s) {
  10266. if ('string' == typeof s) return s;
  10267. if (w(s)) return _(s, baseToString) + '';
  10268. if (x(s)) return j ? j.call(s) : '';
  10269. var o = s + '';
  10270. return '0' == o && 1 / s == -1 / 0 ? '-0' : o;
  10271. };
  10272. },
  10273. 54128: (s, o, i) => {
  10274. var u = i(31800),
  10275. _ = /^\s+/;
  10276. s.exports = function baseTrim(s) {
  10277. return s ? s.slice(0, u(s) + 1).replace(_, '') : s;
  10278. };
  10279. },
  10280. 27301: (s) => {
  10281. s.exports = function baseUnary(s) {
  10282. return function (o) {
  10283. return s(o);
  10284. };
  10285. };
  10286. },
  10287. 19931: (s, o, i) => {
  10288. var u = i(31769),
  10289. _ = i(68090),
  10290. w = i(68969),
  10291. x = i(77797);
  10292. s.exports = function baseUnset(s, o) {
  10293. return (o = u(o, s)), null == (s = w(s, o)) || delete s[x(_(o))];
  10294. };
  10295. },
  10296. 51234: (s) => {
  10297. s.exports = function baseZipObject(s, o, i) {
  10298. for (var u = -1, _ = s.length, w = o.length, x = {}; ++u < _; ) {
  10299. var C = u < w ? o[u] : void 0;
  10300. i(x, s[u], C);
  10301. }
  10302. return x;
  10303. };
  10304. },
  10305. 19219: (s) => {
  10306. s.exports = function cacheHas(s, o) {
  10307. return s.has(o);
  10308. };
  10309. },
  10310. 31769: (s, o, i) => {
  10311. var u = i(56449),
  10312. _ = i(28586),
  10313. w = i(61802),
  10314. x = i(13222);
  10315. s.exports = function castPath(s, o) {
  10316. return u(s) ? s : _(s, o) ? [s] : w(x(s));
  10317. };
  10318. },
  10319. 28754: (s, o, i) => {
  10320. var u = i(25160);
  10321. s.exports = function castSlice(s, o, i) {
  10322. var _ = s.length;
  10323. return (i = void 0 === i ? _ : i), !o && i >= _ ? s : u(s, o, i);
  10324. };
  10325. },
  10326. 49653: (s, o, i) => {
  10327. var u = i(37828);
  10328. s.exports = function cloneArrayBuffer(s) {
  10329. var o = new s.constructor(s.byteLength);
  10330. return new u(o).set(new u(s)), o;
  10331. };
  10332. },
  10333. 93290: (s, o, i) => {
  10334. s = i.nmd(s);
  10335. var u = i(9325),
  10336. _ = o && !o.nodeType && o,
  10337. w = _ && s && !s.nodeType && s,
  10338. x = w && w.exports === _ ? u.Buffer : void 0,
  10339. C = x ? x.allocUnsafe : void 0;
  10340. s.exports = function cloneBuffer(s, o) {
  10341. if (o) return s.slice();
  10342. var i = s.length,
  10343. u = C ? C(i) : new s.constructor(i);
  10344. return s.copy(u), u;
  10345. };
  10346. },
  10347. 76169: (s, o, i) => {
  10348. var u = i(49653);
  10349. s.exports = function cloneDataView(s, o) {
  10350. var i = o ? u(s.buffer) : s.buffer;
  10351. return new s.constructor(i, s.byteOffset, s.byteLength);
  10352. };
  10353. },
  10354. 73201: (s) => {
  10355. var o = /\w*$/;
  10356. s.exports = function cloneRegExp(s) {
  10357. var i = new s.constructor(s.source, o.exec(s));
  10358. return (i.lastIndex = s.lastIndex), i;
  10359. };
  10360. },
  10361. 93736: (s, o, i) => {
  10362. var u = i(51873),
  10363. _ = u ? u.prototype : void 0,
  10364. w = _ ? _.valueOf : void 0;
  10365. s.exports = function cloneSymbol(s) {
  10366. return w ? Object(w.call(s)) : {};
  10367. };
  10368. },
  10369. 71961: (s, o, i) => {
  10370. var u = i(49653);
  10371. s.exports = function cloneTypedArray(s, o) {
  10372. var i = o ? u(s.buffer) : s.buffer;
  10373. return new s.constructor(i, s.byteOffset, s.length);
  10374. };
  10375. },
  10376. 91596: (s) => {
  10377. var o = Math.max;
  10378. s.exports = function composeArgs(s, i, u, _) {
  10379. for (
  10380. var w = -1,
  10381. x = s.length,
  10382. C = u.length,
  10383. j = -1,
  10384. L = i.length,
  10385. B = o(x - C, 0),
  10386. $ = Array(L + B),
  10387. V = !_;
  10388. ++j < L;
  10389. )
  10390. $[j] = i[j];
  10391. for (; ++w < C; ) (V || w < x) && ($[u[w]] = s[w]);
  10392. for (; B--; ) $[j++] = s[w++];
  10393. return $;
  10394. };
  10395. },
  10396. 53320: (s) => {
  10397. var o = Math.max;
  10398. s.exports = function composeArgsRight(s, i, u, _) {
  10399. for (
  10400. var w = -1,
  10401. x = s.length,
  10402. C = -1,
  10403. j = u.length,
  10404. L = -1,
  10405. B = i.length,
  10406. $ = o(x - j, 0),
  10407. V = Array($ + B),
  10408. U = !_;
  10409. ++w < $;
  10410. )
  10411. V[w] = s[w];
  10412. for (var z = w; ++L < B; ) V[z + L] = i[L];
  10413. for (; ++C < j; ) (U || w < x) && (V[z + u[C]] = s[w++]);
  10414. return V;
  10415. };
  10416. },
  10417. 23007: (s) => {
  10418. s.exports = function copyArray(s, o) {
  10419. var i = -1,
  10420. u = s.length;
  10421. for (o || (o = Array(u)); ++i < u; ) o[i] = s[i];
  10422. return o;
  10423. };
  10424. },
  10425. 21791: (s, o, i) => {
  10426. var u = i(16547),
  10427. _ = i(43360);
  10428. s.exports = function copyObject(s, o, i, w) {
  10429. var x = !i;
  10430. i || (i = {});
  10431. for (var C = -1, j = o.length; ++C < j; ) {
  10432. var L = o[C],
  10433. B = w ? w(i[L], s[L], L, i, s) : void 0;
  10434. void 0 === B && (B = s[L]), x ? _(i, L, B) : u(i, L, B);
  10435. }
  10436. return i;
  10437. };
  10438. },
  10439. 92271: (s, o, i) => {
  10440. var u = i(21791),
  10441. _ = i(4664);
  10442. s.exports = function copySymbols(s, o) {
  10443. return u(s, _(s), o);
  10444. };
  10445. },
  10446. 48948: (s, o, i) => {
  10447. var u = i(21791),
  10448. _ = i(86375);
  10449. s.exports = function copySymbolsIn(s, o) {
  10450. return u(s, _(s), o);
  10451. };
  10452. },
  10453. 55481: (s, o, i) => {
  10454. var u = i(9325)['__core-js_shared__'];
  10455. s.exports = u;
  10456. },
  10457. 58523: (s) => {
  10458. s.exports = function countHolders(s, o) {
  10459. for (var i = s.length, u = 0; i--; ) s[i] === o && ++u;
  10460. return u;
  10461. };
  10462. },
  10463. 20999: (s, o, i) => {
  10464. var u = i(69302),
  10465. _ = i(36800);
  10466. s.exports = function createAssigner(s) {
  10467. return u(function (o, i) {
  10468. var u = -1,
  10469. w = i.length,
  10470. x = w > 1 ? i[w - 1] : void 0,
  10471. C = w > 2 ? i[2] : void 0;
  10472. for (
  10473. x = s.length > 3 && 'function' == typeof x ? (w--, x) : void 0,
  10474. C && _(i[0], i[1], C) && ((x = w < 3 ? void 0 : x), (w = 1)),
  10475. o = Object(o);
  10476. ++u < w;
  10477. ) {
  10478. var j = i[u];
  10479. j && s(o, j, u, x);
  10480. }
  10481. return o;
  10482. });
  10483. };
  10484. },
  10485. 38329: (s, o, i) => {
  10486. var u = i(64894);
  10487. s.exports = function createBaseEach(s, o) {
  10488. return function (i, _) {
  10489. if (null == i) return i;
  10490. if (!u(i)) return s(i, _);
  10491. for (
  10492. var w = i.length, x = o ? w : -1, C = Object(i);
  10493. (o ? x-- : ++x < w) && !1 !== _(C[x], x, C);
  10494. );
  10495. return i;
  10496. };
  10497. };
  10498. },
  10499. 83221: (s) => {
  10500. s.exports = function createBaseFor(s) {
  10501. return function (o, i, u) {
  10502. for (var _ = -1, w = Object(o), x = u(o), C = x.length; C--; ) {
  10503. var j = x[s ? C : ++_];
  10504. if (!1 === i(w[j], j, w)) break;
  10505. }
  10506. return o;
  10507. };
  10508. };
  10509. },
  10510. 11842: (s, o, i) => {
  10511. var u = i(82819),
  10512. _ = i(9325);
  10513. s.exports = function createBind(s, o, i) {
  10514. var w = 1 & o,
  10515. x = u(s);
  10516. return function wrapper() {
  10517. return (this && this !== _ && this instanceof wrapper ? x : s).apply(
  10518. w ? i : this,
  10519. arguments
  10520. );
  10521. };
  10522. };
  10523. },
  10524. 12507: (s, o, i) => {
  10525. var u = i(28754),
  10526. _ = i(49698),
  10527. w = i(63912),
  10528. x = i(13222);
  10529. s.exports = function createCaseFirst(s) {
  10530. return function (o) {
  10531. o = x(o);
  10532. var i = _(o) ? w(o) : void 0,
  10533. C = i ? i[0] : o.charAt(0),
  10534. j = i ? u(i, 1).join('') : o.slice(1);
  10535. return C[s]() + j;
  10536. };
  10537. };
  10538. },
  10539. 45539: (s, o, i) => {
  10540. var u = i(40882),
  10541. _ = i(50828),
  10542. w = i(66645),
  10543. x = RegExp("['’]", 'g');
  10544. s.exports = function createCompounder(s) {
  10545. return function (o) {
  10546. return u(w(_(o).replace(x, '')), s, '');
  10547. };
  10548. };
  10549. },
  10550. 82819: (s, o, i) => {
  10551. var u = i(39344),
  10552. _ = i(23805);
  10553. s.exports = function createCtor(s) {
  10554. return function () {
  10555. var o = arguments;
  10556. switch (o.length) {
  10557. case 0:
  10558. return new s();
  10559. case 1:
  10560. return new s(o[0]);
  10561. case 2:
  10562. return new s(o[0], o[1]);
  10563. case 3:
  10564. return new s(o[0], o[1], o[2]);
  10565. case 4:
  10566. return new s(o[0], o[1], o[2], o[3]);
  10567. case 5:
  10568. return new s(o[0], o[1], o[2], o[3], o[4]);
  10569. case 6:
  10570. return new s(o[0], o[1], o[2], o[3], o[4], o[5]);
  10571. case 7:
  10572. return new s(o[0], o[1], o[2], o[3], o[4], o[5], o[6]);
  10573. }
  10574. var i = u(s.prototype),
  10575. w = s.apply(i, o);
  10576. return _(w) ? w : i;
  10577. };
  10578. };
  10579. },
  10580. 77078: (s, o, i) => {
  10581. var u = i(91033),
  10582. _ = i(82819),
  10583. w = i(37471),
  10584. x = i(18073),
  10585. C = i(11287),
  10586. j = i(36306),
  10587. L = i(9325);
  10588. s.exports = function createCurry(s, o, i) {
  10589. var B = _(s);
  10590. return function wrapper() {
  10591. for (var _ = arguments.length, $ = Array(_), V = _, U = C(wrapper); V--; )
  10592. $[V] = arguments[V];
  10593. var z = _ < 3 && $[0] !== U && $[_ - 1] !== U ? [] : j($, U);
  10594. return (_ -= z.length) < i
  10595. ? x(s, o, w, wrapper.placeholder, void 0, $, z, void 0, void 0, i - _)
  10596. : u(this && this !== L && this instanceof wrapper ? B : s, this, $);
  10597. };
  10598. };
  10599. },
  10600. 62006: (s, o, i) => {
  10601. var u = i(15389),
  10602. _ = i(64894),
  10603. w = i(95950);
  10604. s.exports = function createFind(s) {
  10605. return function (o, i, x) {
  10606. var C = Object(o);
  10607. if (!_(o)) {
  10608. var j = u(i, 3);
  10609. (o = w(o)),
  10610. (i = function (s) {
  10611. return j(C[s], s, C);
  10612. });
  10613. }
  10614. var L = s(o, i, x);
  10615. return L > -1 ? C[j ? o[L] : L] : void 0;
  10616. };
  10617. };
  10618. },
  10619. 37471: (s, o, i) => {
  10620. var u = i(91596),
  10621. _ = i(53320),
  10622. w = i(58523),
  10623. x = i(82819),
  10624. C = i(18073),
  10625. j = i(11287),
  10626. L = i(68294),
  10627. B = i(36306),
  10628. $ = i(9325);
  10629. s.exports = function createHybrid(s, o, i, V, U, z, Y, Z, ee, ie) {
  10630. var ae = 128 & o,
  10631. le = 1 & o,
  10632. ce = 2 & o,
  10633. pe = 24 & o,
  10634. de = 512 & o,
  10635. fe = ce ? void 0 : x(s);
  10636. return function wrapper() {
  10637. for (var ye = arguments.length, be = Array(ye), _e = ye; _e--; )
  10638. be[_e] = arguments[_e];
  10639. if (pe)
  10640. var we = j(wrapper),
  10641. Se = w(be, we);
  10642. if (
  10643. (V && (be = u(be, V, U, pe)),
  10644. z && (be = _(be, z, Y, pe)),
  10645. (ye -= Se),
  10646. pe && ye < ie)
  10647. ) {
  10648. var xe = B(be, we);
  10649. return C(s, o, createHybrid, wrapper.placeholder, i, be, xe, Z, ee, ie - ye);
  10650. }
  10651. var Pe = le ? i : this,
  10652. Te = ce ? Pe[s] : s;
  10653. return (
  10654. (ye = be.length),
  10655. Z ? (be = L(be, Z)) : de && ye > 1 && be.reverse(),
  10656. ae && ee < ye && (be.length = ee),
  10657. this && this !== $ && this instanceof wrapper && (Te = fe || x(Te)),
  10658. Te.apply(Pe, be)
  10659. );
  10660. };
  10661. };
  10662. },
  10663. 24168: (s, o, i) => {
  10664. var u = i(91033),
  10665. _ = i(82819),
  10666. w = i(9325);
  10667. s.exports = function createPartial(s, o, i, x) {
  10668. var C = 1 & o,
  10669. j = _(s);
  10670. return function wrapper() {
  10671. for (
  10672. var o = -1,
  10673. _ = arguments.length,
  10674. L = -1,
  10675. B = x.length,
  10676. $ = Array(B + _),
  10677. V = this && this !== w && this instanceof wrapper ? j : s;
  10678. ++L < B;
  10679. )
  10680. $[L] = x[L];
  10681. for (; _--; ) $[L++] = arguments[++o];
  10682. return u(V, C ? i : this, $);
  10683. };
  10684. };
  10685. },
  10686. 18073: (s, o, i) => {
  10687. var u = i(85087),
  10688. _ = i(54641),
  10689. w = i(70981);
  10690. s.exports = function createRecurry(s, o, i, x, C, j, L, B, $, V) {
  10691. var U = 8 & o;
  10692. (o |= U ? 32 : 64), 4 & (o &= ~(U ? 64 : 32)) || (o &= -4);
  10693. var z = [
  10694. s,
  10695. o,
  10696. C,
  10697. U ? j : void 0,
  10698. U ? L : void 0,
  10699. U ? void 0 : j,
  10700. U ? void 0 : L,
  10701. B,
  10702. $,
  10703. V
  10704. ],
  10705. Y = i.apply(void 0, z);
  10706. return u(s) && _(Y, z), (Y.placeholder = x), w(Y, s, o);
  10707. };
  10708. },
  10709. 66977: (s, o, i) => {
  10710. var u = i(68882),
  10711. _ = i(11842),
  10712. w = i(77078),
  10713. x = i(37471),
  10714. C = i(24168),
  10715. j = i(37381),
  10716. L = i(3209),
  10717. B = i(54641),
  10718. $ = i(70981),
  10719. V = i(61489),
  10720. U = Math.max;
  10721. s.exports = function createWrap(s, o, i, z, Y, Z, ee, ie) {
  10722. var ae = 2 & o;
  10723. if (!ae && 'function' != typeof s) throw new TypeError('Expected a function');
  10724. var le = z ? z.length : 0;
  10725. if (
  10726. (le || ((o &= -97), (z = Y = void 0)),
  10727. (ee = void 0 === ee ? ee : U(V(ee), 0)),
  10728. (ie = void 0 === ie ? ie : V(ie)),
  10729. (le -= Y ? Y.length : 0),
  10730. 64 & o)
  10731. ) {
  10732. var ce = z,
  10733. pe = Y;
  10734. z = Y = void 0;
  10735. }
  10736. var de = ae ? void 0 : j(s),
  10737. fe = [s, o, i, z, Y, ce, pe, Z, ee, ie];
  10738. if (
  10739. (de && L(fe, de),
  10740. (s = fe[0]),
  10741. (o = fe[1]),
  10742. (i = fe[2]),
  10743. (z = fe[3]),
  10744. (Y = fe[4]),
  10745. !(ie = fe[9] = void 0 === fe[9] ? (ae ? 0 : s.length) : U(fe[9] - le, 0)) &&
  10746. 24 & o &&
  10747. (o &= -25),
  10748. o && 1 != o)
  10749. )
  10750. ye =
  10751. 8 == o || 16 == o
  10752. ? w(s, o, ie)
  10753. : (32 != o && 33 != o) || Y.length
  10754. ? x.apply(void 0, fe)
  10755. : C(s, o, i, z);
  10756. else var ye = _(s, o, i);
  10757. return $((de ? u : B)(ye, fe), s, o);
  10758. };
  10759. },
  10760. 53138: (s, o, i) => {
  10761. var u = i(11331);
  10762. s.exports = function customOmitClone(s) {
  10763. return u(s) ? void 0 : s;
  10764. };
  10765. },
  10766. 24647: (s, o, i) => {
  10767. var u = i(54552)({
  10768. À: 'A',
  10769. Á: 'A',
  10770. Â: 'A',
  10771. Ã: 'A',
  10772. Ä: 'A',
  10773. Å: 'A',
  10774. à: 'a',
  10775. á: 'a',
  10776. â: 'a',
  10777. ã: 'a',
  10778. ä: 'a',
  10779. å: 'a',
  10780. Ç: 'C',
  10781. ç: 'c',
  10782. Ð: 'D',
  10783. ð: 'd',
  10784. È: 'E',
  10785. É: 'E',
  10786. Ê: 'E',
  10787. Ë: 'E',
  10788. è: 'e',
  10789. é: 'e',
  10790. ê: 'e',
  10791. ë: 'e',
  10792. Ì: 'I',
  10793. Í: 'I',
  10794. Î: 'I',
  10795. Ï: 'I',
  10796. ì: 'i',
  10797. í: 'i',
  10798. î: 'i',
  10799. ï: 'i',
  10800. Ñ: 'N',
  10801. ñ: 'n',
  10802. Ò: 'O',
  10803. Ó: 'O',
  10804. Ô: 'O',
  10805. Õ: 'O',
  10806. Ö: 'O',
  10807. Ø: 'O',
  10808. ò: 'o',
  10809. ó: 'o',
  10810. ô: 'o',
  10811. õ: 'o',
  10812. ö: 'o',
  10813. ø: 'o',
  10814. Ù: 'U',
  10815. Ú: 'U',
  10816. Û: 'U',
  10817. Ü: 'U',
  10818. ù: 'u',
  10819. ú: 'u',
  10820. û: 'u',
  10821. ü: 'u',
  10822. Ý: 'Y',
  10823. ý: 'y',
  10824. ÿ: 'y',
  10825. Æ: 'Ae',
  10826. æ: 'ae',
  10827. Þ: 'Th',
  10828. þ: 'th',
  10829. ß: 'ss',
  10830. Ā: 'A',
  10831. Ă: 'A',
  10832. Ą: 'A',
  10833. ā: 'a',
  10834. ă: 'a',
  10835. ą: 'a',
  10836. Ć: 'C',
  10837. Ĉ: 'C',
  10838. Ċ: 'C',
  10839. Č: 'C',
  10840. ć: 'c',
  10841. ĉ: 'c',
  10842. ċ: 'c',
  10843. č: 'c',
  10844. Ď: 'D',
  10845. Đ: 'D',
  10846. ď: 'd',
  10847. đ: 'd',
  10848. Ē: 'E',
  10849. Ĕ: 'E',
  10850. Ė: 'E',
  10851. Ę: 'E',
  10852. Ě: 'E',
  10853. ē: 'e',
  10854. ĕ: 'e',
  10855. ė: 'e',
  10856. ę: 'e',
  10857. ě: 'e',
  10858. Ĝ: 'G',
  10859. Ğ: 'G',
  10860. Ġ: 'G',
  10861. Ģ: 'G',
  10862. ĝ: 'g',
  10863. ğ: 'g',
  10864. ġ: 'g',
  10865. ģ: 'g',
  10866. Ĥ: 'H',
  10867. Ħ: 'H',
  10868. ĥ: 'h',
  10869. ħ: 'h',
  10870. Ĩ: 'I',
  10871. Ī: 'I',
  10872. Ĭ: 'I',
  10873. Į: 'I',
  10874. İ: 'I',
  10875. ĩ: 'i',
  10876. ī: 'i',
  10877. ĭ: 'i',
  10878. į: 'i',
  10879. ı: 'i',
  10880. Ĵ: 'J',
  10881. ĵ: 'j',
  10882. Ķ: 'K',
  10883. ķ: 'k',
  10884. ĸ: 'k',
  10885. Ĺ: 'L',
  10886. Ļ: 'L',
  10887. Ľ: 'L',
  10888. Ŀ: 'L',
  10889. Ł: 'L',
  10890. ĺ: 'l',
  10891. ļ: 'l',
  10892. ľ: 'l',
  10893. ŀ: 'l',
  10894. ł: 'l',
  10895. Ń: 'N',
  10896. Ņ: 'N',
  10897. Ň: 'N',
  10898. Ŋ: 'N',
  10899. ń: 'n',
  10900. ņ: 'n',
  10901. ň: 'n',
  10902. ŋ: 'n',
  10903. Ō: 'O',
  10904. Ŏ: 'O',
  10905. Ő: 'O',
  10906. ō: 'o',
  10907. ŏ: 'o',
  10908. ő: 'o',
  10909. Ŕ: 'R',
  10910. Ŗ: 'R',
  10911. Ř: 'R',
  10912. ŕ: 'r',
  10913. ŗ: 'r',
  10914. ř: 'r',
  10915. Ś: 'S',
  10916. Ŝ: 'S',
  10917. Ş: 'S',
  10918. Š: 'S',
  10919. ś: 's',
  10920. ŝ: 's',
  10921. ş: 's',
  10922. š: 's',
  10923. Ţ: 'T',
  10924. Ť: 'T',
  10925. Ŧ: 'T',
  10926. ţ: 't',
  10927. ť: 't',
  10928. ŧ: 't',
  10929. Ũ: 'U',
  10930. Ū: 'U',
  10931. Ŭ: 'U',
  10932. Ů: 'U',
  10933. Ű: 'U',
  10934. Ų: 'U',
  10935. ũ: 'u',
  10936. ū: 'u',
  10937. ŭ: 'u',
  10938. ů: 'u',
  10939. ű: 'u',
  10940. ų: 'u',
  10941. Ŵ: 'W',
  10942. ŵ: 'w',
  10943. Ŷ: 'Y',
  10944. ŷ: 'y',
  10945. Ÿ: 'Y',
  10946. Ź: 'Z',
  10947. Ż: 'Z',
  10948. Ž: 'Z',
  10949. ź: 'z',
  10950. ż: 'z',
  10951. ž: 'z',
  10952. IJ: 'IJ',
  10953. ij: 'ij',
  10954. Œ: 'Oe',
  10955. œ: 'oe',
  10956. ʼn: "'n",
  10957. ſ: 's'
  10958. });
  10959. s.exports = u;
  10960. },
  10961. 93243: (s, o, i) => {
  10962. var u = i(56110),
  10963. _ = (function () {
  10964. try {
  10965. var s = u(Object, 'defineProperty');
  10966. return s({}, '', {}), s;
  10967. } catch (s) {}
  10968. })();
  10969. s.exports = _;
  10970. },
  10971. 25911: (s, o, i) => {
  10972. var u = i(38859),
  10973. _ = i(14248),
  10974. w = i(19219);
  10975. s.exports = function equalArrays(s, o, i, x, C, j) {
  10976. var L = 1 & i,
  10977. B = s.length,
  10978. $ = o.length;
  10979. if (B != $ && !(L && $ > B)) return !1;
  10980. var V = j.get(s),
  10981. U = j.get(o);
  10982. if (V && U) return V == o && U == s;
  10983. var z = -1,
  10984. Y = !0,
  10985. Z = 2 & i ? new u() : void 0;
  10986. for (j.set(s, o), j.set(o, s); ++z < B; ) {
  10987. var ee = s[z],
  10988. ie = o[z];
  10989. if (x) var ae = L ? x(ie, ee, z, o, s, j) : x(ee, ie, z, s, o, j);
  10990. if (void 0 !== ae) {
  10991. if (ae) continue;
  10992. Y = !1;
  10993. break;
  10994. }
  10995. if (Z) {
  10996. if (
  10997. !_(o, function (s, o) {
  10998. if (!w(Z, o) && (ee === s || C(ee, s, i, x, j))) return Z.push(o);
  10999. })
  11000. ) {
  11001. Y = !1;
  11002. break;
  11003. }
  11004. } else if (ee !== ie && !C(ee, ie, i, x, j)) {
  11005. Y = !1;
  11006. break;
  11007. }
  11008. }
  11009. return j.delete(s), j.delete(o), Y;
  11010. };
  11011. },
  11012. 21986: (s, o, i) => {
  11013. var u = i(51873),
  11014. _ = i(37828),
  11015. w = i(75288),
  11016. x = i(25911),
  11017. C = i(20317),
  11018. j = i(84247),
  11019. L = u ? u.prototype : void 0,
  11020. B = L ? L.valueOf : void 0;
  11021. s.exports = function equalByTag(s, o, i, u, L, $, V) {
  11022. switch (i) {
  11023. case '[object DataView]':
  11024. if (s.byteLength != o.byteLength || s.byteOffset != o.byteOffset) return !1;
  11025. (s = s.buffer), (o = o.buffer);
  11026. case '[object ArrayBuffer]':
  11027. return !(s.byteLength != o.byteLength || !$(new _(s), new _(o)));
  11028. case '[object Boolean]':
  11029. case '[object Date]':
  11030. case '[object Number]':
  11031. return w(+s, +o);
  11032. case '[object Error]':
  11033. return s.name == o.name && s.message == o.message;
  11034. case '[object RegExp]':
  11035. case '[object String]':
  11036. return s == o + '';
  11037. case '[object Map]':
  11038. var U = C;
  11039. case '[object Set]':
  11040. var z = 1 & u;
  11041. if ((U || (U = j), s.size != o.size && !z)) return !1;
  11042. var Y = V.get(s);
  11043. if (Y) return Y == o;
  11044. (u |= 2), V.set(s, o);
  11045. var Z = x(U(s), U(o), u, L, $, V);
  11046. return V.delete(s), Z;
  11047. case '[object Symbol]':
  11048. if (B) return B.call(s) == B.call(o);
  11049. }
  11050. return !1;
  11051. };
  11052. },
  11053. 50689: (s, o, i) => {
  11054. var u = i(50002),
  11055. _ = Object.prototype.hasOwnProperty;
  11056. s.exports = function equalObjects(s, o, i, w, x, C) {
  11057. var j = 1 & i,
  11058. L = u(s),
  11059. B = L.length;
  11060. if (B != u(o).length && !j) return !1;
  11061. for (var $ = B; $--; ) {
  11062. var V = L[$];
  11063. if (!(j ? V in o : _.call(o, V))) return !1;
  11064. }
  11065. var U = C.get(s),
  11066. z = C.get(o);
  11067. if (U && z) return U == o && z == s;
  11068. var Y = !0;
  11069. C.set(s, o), C.set(o, s);
  11070. for (var Z = j; ++$ < B; ) {
  11071. var ee = s[(V = L[$])],
  11072. ie = o[V];
  11073. if (w) var ae = j ? w(ie, ee, V, o, s, C) : w(ee, ie, V, s, o, C);
  11074. if (!(void 0 === ae ? ee === ie || x(ee, ie, i, w, C) : ae)) {
  11075. Y = !1;
  11076. break;
  11077. }
  11078. Z || (Z = 'constructor' == V);
  11079. }
  11080. if (Y && !Z) {
  11081. var le = s.constructor,
  11082. ce = o.constructor;
  11083. le == ce ||
  11084. !('constructor' in s) ||
  11085. !('constructor' in o) ||
  11086. ('function' == typeof le &&
  11087. le instanceof le &&
  11088. 'function' == typeof ce &&
  11089. ce instanceof ce) ||
  11090. (Y = !1);
  11091. }
  11092. return C.delete(s), C.delete(o), Y;
  11093. };
  11094. },
  11095. 38816: (s, o, i) => {
  11096. var u = i(35970),
  11097. _ = i(56757),
  11098. w = i(32865);
  11099. s.exports = function flatRest(s) {
  11100. return w(_(s, void 0, u), s + '');
  11101. };
  11102. },
  11103. 34840: (s, o, i) => {
  11104. var u = 'object' == typeof i.g && i.g && i.g.Object === Object && i.g;
  11105. s.exports = u;
  11106. },
  11107. 50002: (s, o, i) => {
  11108. var u = i(82199),
  11109. _ = i(4664),
  11110. w = i(95950);
  11111. s.exports = function getAllKeys(s) {
  11112. return u(s, w, _);
  11113. };
  11114. },
  11115. 83349: (s, o, i) => {
  11116. var u = i(82199),
  11117. _ = i(86375),
  11118. w = i(37241);
  11119. s.exports = function getAllKeysIn(s) {
  11120. return u(s, w, _);
  11121. };
  11122. },
  11123. 37381: (s, o, i) => {
  11124. var u = i(48152),
  11125. _ = i(63950),
  11126. w = u
  11127. ? function (s) {
  11128. return u.get(s);
  11129. }
  11130. : _;
  11131. s.exports = w;
  11132. },
  11133. 62284: (s, o, i) => {
  11134. var u = i(84629),
  11135. _ = Object.prototype.hasOwnProperty;
  11136. s.exports = function getFuncName(s) {
  11137. for (var o = s.name + '', i = u[o], w = _.call(u, o) ? i.length : 0; w--; ) {
  11138. var x = i[w],
  11139. C = x.func;
  11140. if (null == C || C == s) return x.name;
  11141. }
  11142. return o;
  11143. };
  11144. },
  11145. 11287: (s) => {
  11146. s.exports = function getHolder(s) {
  11147. return s.placeholder;
  11148. };
  11149. },
  11150. 12651: (s, o, i) => {
  11151. var u = i(74218);
  11152. s.exports = function getMapData(s, o) {
  11153. var i = s.__data__;
  11154. return u(o) ? i['string' == typeof o ? 'string' : 'hash'] : i.map;
  11155. };
  11156. },
  11157. 10776: (s, o, i) => {
  11158. var u = i(30756),
  11159. _ = i(95950);
  11160. s.exports = function getMatchData(s) {
  11161. for (var o = _(s), i = o.length; i--; ) {
  11162. var w = o[i],
  11163. x = s[w];
  11164. o[i] = [w, x, u(x)];
  11165. }
  11166. return o;
  11167. };
  11168. },
  11169. 56110: (s, o, i) => {
  11170. var u = i(45083),
  11171. _ = i(10392);
  11172. s.exports = function getNative(s, o) {
  11173. var i = _(s, o);
  11174. return u(i) ? i : void 0;
  11175. };
  11176. },
  11177. 28879: (s, o, i) => {
  11178. var u = i(74335)(Object.getPrototypeOf, Object);
  11179. s.exports = u;
  11180. },
  11181. 659: (s, o, i) => {
  11182. var u = i(51873),
  11183. _ = Object.prototype,
  11184. w = _.hasOwnProperty,
  11185. x = _.toString,
  11186. C = u ? u.toStringTag : void 0;
  11187. s.exports = function getRawTag(s) {
  11188. var o = w.call(s, C),
  11189. i = s[C];
  11190. try {
  11191. s[C] = void 0;
  11192. var u = !0;
  11193. } catch (s) {}
  11194. var _ = x.call(s);
  11195. return u && (o ? (s[C] = i) : delete s[C]), _;
  11196. };
  11197. },
  11198. 4664: (s, o, i) => {
  11199. var u = i(79770),
  11200. _ = i(63345),
  11201. w = Object.prototype.propertyIsEnumerable,
  11202. x = Object.getOwnPropertySymbols,
  11203. C = x
  11204. ? function (s) {
  11205. return null == s
  11206. ? []
  11207. : ((s = Object(s)),
  11208. u(x(s), function (o) {
  11209. return w.call(s, o);
  11210. }));
  11211. }
  11212. : _;
  11213. s.exports = C;
  11214. },
  11215. 86375: (s, o, i) => {
  11216. var u = i(14528),
  11217. _ = i(28879),
  11218. w = i(4664),
  11219. x = i(63345),
  11220. C = Object.getOwnPropertySymbols
  11221. ? function (s) {
  11222. for (var o = []; s; ) u(o, w(s)), (s = _(s));
  11223. return o;
  11224. }
  11225. : x;
  11226. s.exports = C;
  11227. },
  11228. 5861: (s, o, i) => {
  11229. var u = i(55580),
  11230. _ = i(68223),
  11231. w = i(32804),
  11232. x = i(76545),
  11233. C = i(28303),
  11234. j = i(72552),
  11235. L = i(47473),
  11236. B = '[object Map]',
  11237. $ = '[object Promise]',
  11238. V = '[object Set]',
  11239. U = '[object WeakMap]',
  11240. z = '[object DataView]',
  11241. Y = L(u),
  11242. Z = L(_),
  11243. ee = L(w),
  11244. ie = L(x),
  11245. ae = L(C),
  11246. le = j;
  11247. ((u && le(new u(new ArrayBuffer(1))) != z) ||
  11248. (_ && le(new _()) != B) ||
  11249. (w && le(w.resolve()) != $) ||
  11250. (x && le(new x()) != V) ||
  11251. (C && le(new C()) != U)) &&
  11252. (le = function (s) {
  11253. var o = j(s),
  11254. i = '[object Object]' == o ? s.constructor : void 0,
  11255. u = i ? L(i) : '';
  11256. if (u)
  11257. switch (u) {
  11258. case Y:
  11259. return z;
  11260. case Z:
  11261. return B;
  11262. case ee:
  11263. return $;
  11264. case ie:
  11265. return V;
  11266. case ae:
  11267. return U;
  11268. }
  11269. return o;
  11270. }),
  11271. (s.exports = le);
  11272. },
  11273. 10392: (s) => {
  11274. s.exports = function getValue(s, o) {
  11275. return null == s ? void 0 : s[o];
  11276. };
  11277. },
  11278. 75251: (s) => {
  11279. var o = /\{\n\/\* \[wrapped with (.+)\] \*/,
  11280. i = /,? & /;
  11281. s.exports = function getWrapDetails(s) {
  11282. var u = s.match(o);
  11283. return u ? u[1].split(i) : [];
  11284. };
  11285. },
  11286. 49326: (s, o, i) => {
  11287. var u = i(31769),
  11288. _ = i(72428),
  11289. w = i(56449),
  11290. x = i(30361),
  11291. C = i(30294),
  11292. j = i(77797);
  11293. s.exports = function hasPath(s, o, i) {
  11294. for (var L = -1, B = (o = u(o, s)).length, $ = !1; ++L < B; ) {
  11295. var V = j(o[L]);
  11296. if (!($ = null != s && i(s, V))) break;
  11297. s = s[V];
  11298. }
  11299. return $ || ++L != B
  11300. ? $
  11301. : !!(B = null == s ? 0 : s.length) && C(B) && x(V, B) && (w(s) || _(s));
  11302. };
  11303. },
  11304. 49698: (s) => {
  11305. var o = RegExp(
  11306. '[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]'
  11307. );
  11308. s.exports = function hasUnicode(s) {
  11309. return o.test(s);
  11310. };
  11311. },
  11312. 45434: (s) => {
  11313. var o = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
  11314. s.exports = function hasUnicodeWord(s) {
  11315. return o.test(s);
  11316. };
  11317. },
  11318. 22032: (s, o, i) => {
  11319. var u = i(81042);
  11320. s.exports = function hashClear() {
  11321. (this.__data__ = u ? u(null) : {}), (this.size = 0);
  11322. };
  11323. },
  11324. 63862: (s) => {
  11325. s.exports = function hashDelete(s) {
  11326. var o = this.has(s) && delete this.__data__[s];
  11327. return (this.size -= o ? 1 : 0), o;
  11328. };
  11329. },
  11330. 66721: (s, o, i) => {
  11331. var u = i(81042),
  11332. _ = Object.prototype.hasOwnProperty;
  11333. s.exports = function hashGet(s) {
  11334. var o = this.__data__;
  11335. if (u) {
  11336. var i = o[s];
  11337. return '__lodash_hash_undefined__' === i ? void 0 : i;
  11338. }
  11339. return _.call(o, s) ? o[s] : void 0;
  11340. };
  11341. },
  11342. 12749: (s, o, i) => {
  11343. var u = i(81042),
  11344. _ = Object.prototype.hasOwnProperty;
  11345. s.exports = function hashHas(s) {
  11346. var o = this.__data__;
  11347. return u ? void 0 !== o[s] : _.call(o, s);
  11348. };
  11349. },
  11350. 35749: (s, o, i) => {
  11351. var u = i(81042);
  11352. s.exports = function hashSet(s, o) {
  11353. var i = this.__data__;
  11354. return (
  11355. (this.size += this.has(s) ? 0 : 1),
  11356. (i[s] = u && void 0 === o ? '__lodash_hash_undefined__' : o),
  11357. this
  11358. );
  11359. };
  11360. },
  11361. 76189: (s) => {
  11362. var o = Object.prototype.hasOwnProperty;
  11363. s.exports = function initCloneArray(s) {
  11364. var i = s.length,
  11365. u = new s.constructor(i);
  11366. return (
  11367. i &&
  11368. 'string' == typeof s[0] &&
  11369. o.call(s, 'index') &&
  11370. ((u.index = s.index), (u.input = s.input)),
  11371. u
  11372. );
  11373. };
  11374. },
  11375. 77199: (s, o, i) => {
  11376. var u = i(49653),
  11377. _ = i(76169),
  11378. w = i(73201),
  11379. x = i(93736),
  11380. C = i(71961);
  11381. s.exports = function initCloneByTag(s, o, i) {
  11382. var j = s.constructor;
  11383. switch (o) {
  11384. case '[object ArrayBuffer]':
  11385. return u(s);
  11386. case '[object Boolean]':
  11387. case '[object Date]':
  11388. return new j(+s);
  11389. case '[object DataView]':
  11390. return _(s, i);
  11391. case '[object Float32Array]':
  11392. case '[object Float64Array]':
  11393. case '[object Int8Array]':
  11394. case '[object Int16Array]':
  11395. case '[object Int32Array]':
  11396. case '[object Uint8Array]':
  11397. case '[object Uint8ClampedArray]':
  11398. case '[object Uint16Array]':
  11399. case '[object Uint32Array]':
  11400. return C(s, i);
  11401. case '[object Map]':
  11402. case '[object Set]':
  11403. return new j();
  11404. case '[object Number]':
  11405. case '[object String]':
  11406. return new j(s);
  11407. case '[object RegExp]':
  11408. return w(s);
  11409. case '[object Symbol]':
  11410. return x(s);
  11411. }
  11412. };
  11413. },
  11414. 35529: (s, o, i) => {
  11415. var u = i(39344),
  11416. _ = i(28879),
  11417. w = i(55527);
  11418. s.exports = function initCloneObject(s) {
  11419. return 'function' != typeof s.constructor || w(s) ? {} : u(_(s));
  11420. };
  11421. },
  11422. 62060: (s) => {
  11423. var o = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;
  11424. s.exports = function insertWrapDetails(s, i) {
  11425. var u = i.length;
  11426. if (!u) return s;
  11427. var _ = u - 1;
  11428. return (
  11429. (i[_] = (u > 1 ? '& ' : '') + i[_]),
  11430. (i = i.join(u > 2 ? ', ' : ' ')),
  11431. s.replace(o, '{\n/* [wrapped with ' + i + '] */\n')
  11432. );
  11433. };
  11434. },
  11435. 45891: (s, o, i) => {
  11436. var u = i(51873),
  11437. _ = i(72428),
  11438. w = i(56449),
  11439. x = u ? u.isConcatSpreadable : void 0;
  11440. s.exports = function isFlattenable(s) {
  11441. return w(s) || _(s) || !!(x && s && s[x]);
  11442. };
  11443. },
  11444. 30361: (s) => {
  11445. var o = /^(?:0|[1-9]\d*)$/;
  11446. s.exports = function isIndex(s, i) {
  11447. var u = typeof s;
  11448. return (
  11449. !!(i = null == i ? 9007199254740991 : i) &&
  11450. ('number' == u || ('symbol' != u && o.test(s))) &&
  11451. s > -1 &&
  11452. s % 1 == 0 &&
  11453. s < i
  11454. );
  11455. };
  11456. },
  11457. 36800: (s, o, i) => {
  11458. var u = i(75288),
  11459. _ = i(64894),
  11460. w = i(30361),
  11461. x = i(23805);
  11462. s.exports = function isIterateeCall(s, o, i) {
  11463. if (!x(i)) return !1;
  11464. var C = typeof o;
  11465. return (
  11466. !!('number' == C ? _(i) && w(o, i.length) : 'string' == C && o in i) && u(i[o], s)
  11467. );
  11468. };
  11469. },
  11470. 28586: (s, o, i) => {
  11471. var u = i(56449),
  11472. _ = i(44394),
  11473. w = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  11474. x = /^\w*$/;
  11475. s.exports = function isKey(s, o) {
  11476. if (u(s)) return !1;
  11477. var i = typeof s;
  11478. return (
  11479. !('number' != i && 'symbol' != i && 'boolean' != i && null != s && !_(s)) ||
  11480. x.test(s) ||
  11481. !w.test(s) ||
  11482. (null != o && s in Object(o))
  11483. );
  11484. };
  11485. },
  11486. 74218: (s) => {
  11487. s.exports = function isKeyable(s) {
  11488. var o = typeof s;
  11489. return 'string' == o || 'number' == o || 'symbol' == o || 'boolean' == o
  11490. ? '__proto__' !== s
  11491. : null === s;
  11492. };
  11493. },
  11494. 85087: (s, o, i) => {
  11495. var u = i(30980),
  11496. _ = i(37381),
  11497. w = i(62284),
  11498. x = i(53758);
  11499. s.exports = function isLaziable(s) {
  11500. var o = w(s),
  11501. i = x[o];
  11502. if ('function' != typeof i || !(o in u.prototype)) return !1;
  11503. if (s === i) return !0;
  11504. var C = _(i);
  11505. return !!C && s === C[0];
  11506. };
  11507. },
  11508. 87296: (s, o, i) => {
  11509. var u,
  11510. _ = i(55481),
  11511. w = (u = /[^.]+$/.exec((_ && _.keys && _.keys.IE_PROTO) || ''))
  11512. ? 'Symbol(src)_1.' + u
  11513. : '';
  11514. s.exports = function isMasked(s) {
  11515. return !!w && w in s;
  11516. };
  11517. },
  11518. 55527: (s) => {
  11519. var o = Object.prototype;
  11520. s.exports = function isPrototype(s) {
  11521. var i = s && s.constructor;
  11522. return s === (('function' == typeof i && i.prototype) || o);
  11523. };
  11524. },
  11525. 30756: (s, o, i) => {
  11526. var u = i(23805);
  11527. s.exports = function isStrictComparable(s) {
  11528. return s == s && !u(s);
  11529. };
  11530. },
  11531. 63702: (s) => {
  11532. s.exports = function listCacheClear() {
  11533. (this.__data__ = []), (this.size = 0);
  11534. };
  11535. },
  11536. 70080: (s, o, i) => {
  11537. var u = i(26025),
  11538. _ = Array.prototype.splice;
  11539. s.exports = function listCacheDelete(s) {
  11540. var o = this.__data__,
  11541. i = u(o, s);
  11542. return !(i < 0) && (i == o.length - 1 ? o.pop() : _.call(o, i, 1), --this.size, !0);
  11543. };
  11544. },
  11545. 24739: (s, o, i) => {
  11546. var u = i(26025);
  11547. s.exports = function listCacheGet(s) {
  11548. var o = this.__data__,
  11549. i = u(o, s);
  11550. return i < 0 ? void 0 : o[i][1];
  11551. };
  11552. },
  11553. 48655: (s, o, i) => {
  11554. var u = i(26025);
  11555. s.exports = function listCacheHas(s) {
  11556. return u(this.__data__, s) > -1;
  11557. };
  11558. },
  11559. 31175: (s, o, i) => {
  11560. var u = i(26025);
  11561. s.exports = function listCacheSet(s, o) {
  11562. var i = this.__data__,
  11563. _ = u(i, s);
  11564. return _ < 0 ? (++this.size, i.push([s, o])) : (i[_][1] = o), this;
  11565. };
  11566. },
  11567. 63040: (s, o, i) => {
  11568. var u = i(21549),
  11569. _ = i(80079),
  11570. w = i(68223);
  11571. s.exports = function mapCacheClear() {
  11572. (this.size = 0),
  11573. (this.__data__ = { hash: new u(), map: new (w || _)(), string: new u() });
  11574. };
  11575. },
  11576. 17670: (s, o, i) => {
  11577. var u = i(12651);
  11578. s.exports = function mapCacheDelete(s) {
  11579. var o = u(this, s).delete(s);
  11580. return (this.size -= o ? 1 : 0), o;
  11581. };
  11582. },
  11583. 90289: (s, o, i) => {
  11584. var u = i(12651);
  11585. s.exports = function mapCacheGet(s) {
  11586. return u(this, s).get(s);
  11587. };
  11588. },
  11589. 4509: (s, o, i) => {
  11590. var u = i(12651);
  11591. s.exports = function mapCacheHas(s) {
  11592. return u(this, s).has(s);
  11593. };
  11594. },
  11595. 72949: (s, o, i) => {
  11596. var u = i(12651);
  11597. s.exports = function mapCacheSet(s, o) {
  11598. var i = u(this, s),
  11599. _ = i.size;
  11600. return i.set(s, o), (this.size += i.size == _ ? 0 : 1), this;
  11601. };
  11602. },
  11603. 20317: (s) => {
  11604. s.exports = function mapToArray(s) {
  11605. var o = -1,
  11606. i = Array(s.size);
  11607. return (
  11608. s.forEach(function (s, u) {
  11609. i[++o] = [u, s];
  11610. }),
  11611. i
  11612. );
  11613. };
  11614. },
  11615. 67197: (s) => {
  11616. s.exports = function matchesStrictComparable(s, o) {
  11617. return function (i) {
  11618. return null != i && i[s] === o && (void 0 !== o || s in Object(i));
  11619. };
  11620. };
  11621. },
  11622. 62224: (s, o, i) => {
  11623. var u = i(50104);
  11624. s.exports = function memoizeCapped(s) {
  11625. var o = u(s, function (s) {
  11626. return 500 === i.size && i.clear(), s;
  11627. }),
  11628. i = o.cache;
  11629. return o;
  11630. };
  11631. },
  11632. 3209: (s, o, i) => {
  11633. var u = i(91596),
  11634. _ = i(53320),
  11635. w = i(36306),
  11636. x = '__lodash_placeholder__',
  11637. C = 128,
  11638. j = Math.min;
  11639. s.exports = function mergeData(s, o) {
  11640. var i = s[1],
  11641. L = o[1],
  11642. B = i | L,
  11643. $ = B < 131,
  11644. V =
  11645. (L == C && 8 == i) ||
  11646. (L == C && 256 == i && s[7].length <= o[8]) ||
  11647. (384 == L && o[7].length <= o[8] && 8 == i);
  11648. if (!$ && !V) return s;
  11649. 1 & L && ((s[2] = o[2]), (B |= 1 & i ? 0 : 4));
  11650. var U = o[3];
  11651. if (U) {
  11652. var z = s[3];
  11653. (s[3] = z ? u(z, U, o[4]) : U), (s[4] = z ? w(s[3], x) : o[4]);
  11654. }
  11655. return (
  11656. (U = o[5]) &&
  11657. ((z = s[5]), (s[5] = z ? _(z, U, o[6]) : U), (s[6] = z ? w(s[5], x) : o[6])),
  11658. (U = o[7]) && (s[7] = U),
  11659. L & C && (s[8] = null == s[8] ? o[8] : j(s[8], o[8])),
  11660. null == s[9] && (s[9] = o[9]),
  11661. (s[0] = o[0]),
  11662. (s[1] = B),
  11663. s
  11664. );
  11665. };
  11666. },
  11667. 48152: (s, o, i) => {
  11668. var u = i(28303),
  11669. _ = u && new u();
  11670. s.exports = _;
  11671. },
  11672. 81042: (s, o, i) => {
  11673. var u = i(56110)(Object, 'create');
  11674. s.exports = u;
  11675. },
  11676. 3650: (s, o, i) => {
  11677. var u = i(74335)(Object.keys, Object);
  11678. s.exports = u;
  11679. },
  11680. 90181: (s) => {
  11681. s.exports = function nativeKeysIn(s) {
  11682. var o = [];
  11683. if (null != s) for (var i in Object(s)) o.push(i);
  11684. return o;
  11685. };
  11686. },
  11687. 86009: (s, o, i) => {
  11688. s = i.nmd(s);
  11689. var u = i(34840),
  11690. _ = o && !o.nodeType && o,
  11691. w = _ && s && !s.nodeType && s,
  11692. x = w && w.exports === _ && u.process,
  11693. C = (function () {
  11694. try {
  11695. var s = w && w.require && w.require('util').types;
  11696. return s || (x && x.binding && x.binding('util'));
  11697. } catch (s) {}
  11698. })();
  11699. s.exports = C;
  11700. },
  11701. 59350: (s) => {
  11702. var o = Object.prototype.toString;
  11703. s.exports = function objectToString(s) {
  11704. return o.call(s);
  11705. };
  11706. },
  11707. 74335: (s) => {
  11708. s.exports = function overArg(s, o) {
  11709. return function (i) {
  11710. return s(o(i));
  11711. };
  11712. };
  11713. },
  11714. 56757: (s, o, i) => {
  11715. var u = i(91033),
  11716. _ = Math.max;
  11717. s.exports = function overRest(s, o, i) {
  11718. return (
  11719. (o = _(void 0 === o ? s.length - 1 : o, 0)),
  11720. function () {
  11721. for (var w = arguments, x = -1, C = _(w.length - o, 0), j = Array(C); ++x < C; )
  11722. j[x] = w[o + x];
  11723. x = -1;
  11724. for (var L = Array(o + 1); ++x < o; ) L[x] = w[x];
  11725. return (L[o] = i(j)), u(s, this, L);
  11726. }
  11727. );
  11728. };
  11729. },
  11730. 68969: (s, o, i) => {
  11731. var u = i(47422),
  11732. _ = i(25160);
  11733. s.exports = function parent(s, o) {
  11734. return o.length < 2 ? s : u(s, _(o, 0, -1));
  11735. };
  11736. },
  11737. 84629: (s) => {
  11738. s.exports = {};
  11739. },
  11740. 68294: (s, o, i) => {
  11741. var u = i(23007),
  11742. _ = i(30361),
  11743. w = Math.min;
  11744. s.exports = function reorder(s, o) {
  11745. for (var i = s.length, x = w(o.length, i), C = u(s); x--; ) {
  11746. var j = o[x];
  11747. s[x] = _(j, i) ? C[j] : void 0;
  11748. }
  11749. return s;
  11750. };
  11751. },
  11752. 36306: (s) => {
  11753. var o = '__lodash_placeholder__';
  11754. s.exports = function replaceHolders(s, i) {
  11755. for (var u = -1, _ = s.length, w = 0, x = []; ++u < _; ) {
  11756. var C = s[u];
  11757. (C !== i && C !== o) || ((s[u] = o), (x[w++] = u));
  11758. }
  11759. return x;
  11760. };
  11761. },
  11762. 9325: (s, o, i) => {
  11763. var u = i(34840),
  11764. _ = 'object' == typeof self && self && self.Object === Object && self,
  11765. w = u || _ || Function('return this')();
  11766. s.exports = w;
  11767. },
  11768. 14974: (s) => {
  11769. s.exports = function safeGet(s, o) {
  11770. if (('constructor' !== o || 'function' != typeof s[o]) && '__proto__' != o) return s[o];
  11771. };
  11772. },
  11773. 31380: (s) => {
  11774. s.exports = function setCacheAdd(s) {
  11775. return this.__data__.set(s, '__lodash_hash_undefined__'), this;
  11776. };
  11777. },
  11778. 51459: (s) => {
  11779. s.exports = function setCacheHas(s) {
  11780. return this.__data__.has(s);
  11781. };
  11782. },
  11783. 54641: (s, o, i) => {
  11784. var u = i(68882),
  11785. _ = i(51811)(u);
  11786. s.exports = _;
  11787. },
  11788. 84247: (s) => {
  11789. s.exports = function setToArray(s) {
  11790. var o = -1,
  11791. i = Array(s.size);
  11792. return (
  11793. s.forEach(function (s) {
  11794. i[++o] = s;
  11795. }),
  11796. i
  11797. );
  11798. };
  11799. },
  11800. 32865: (s, o, i) => {
  11801. var u = i(19570),
  11802. _ = i(51811)(u);
  11803. s.exports = _;
  11804. },
  11805. 70981: (s, o, i) => {
  11806. var u = i(75251),
  11807. _ = i(62060),
  11808. w = i(32865),
  11809. x = i(75948);
  11810. s.exports = function setWrapToString(s, o, i) {
  11811. var C = o + '';
  11812. return w(s, _(C, x(u(C), i)));
  11813. };
  11814. },
  11815. 51811: (s) => {
  11816. var o = Date.now;
  11817. s.exports = function shortOut(s) {
  11818. var i = 0,
  11819. u = 0;
  11820. return function () {
  11821. var _ = o(),
  11822. w = 16 - (_ - u);
  11823. if (((u = _), w > 0)) {
  11824. if (++i >= 800) return arguments[0];
  11825. } else i = 0;
  11826. return s.apply(void 0, arguments);
  11827. };
  11828. };
  11829. },
  11830. 51420: (s, o, i) => {
  11831. var u = i(80079);
  11832. s.exports = function stackClear() {
  11833. (this.__data__ = new u()), (this.size = 0);
  11834. };
  11835. },
  11836. 90938: (s) => {
  11837. s.exports = function stackDelete(s) {
  11838. var o = this.__data__,
  11839. i = o.delete(s);
  11840. return (this.size = o.size), i;
  11841. };
  11842. },
  11843. 63605: (s) => {
  11844. s.exports = function stackGet(s) {
  11845. return this.__data__.get(s);
  11846. };
  11847. },
  11848. 29817: (s) => {
  11849. s.exports = function stackHas(s) {
  11850. return this.__data__.has(s);
  11851. };
  11852. },
  11853. 80945: (s, o, i) => {
  11854. var u = i(80079),
  11855. _ = i(68223),
  11856. w = i(53661);
  11857. s.exports = function stackSet(s, o) {
  11858. var i = this.__data__;
  11859. if (i instanceof u) {
  11860. var x = i.__data__;
  11861. if (!_ || x.length < 199) return x.push([s, o]), (this.size = ++i.size), this;
  11862. i = this.__data__ = new w(x);
  11863. }
  11864. return i.set(s, o), (this.size = i.size), this;
  11865. };
  11866. },
  11867. 76959: (s) => {
  11868. s.exports = function strictIndexOf(s, o, i) {
  11869. for (var u = i - 1, _ = s.length; ++u < _; ) if (s[u] === o) return u;
  11870. return -1;
  11871. };
  11872. },
  11873. 63912: (s, o, i) => {
  11874. var u = i(61074),
  11875. _ = i(49698),
  11876. w = i(42054);
  11877. s.exports = function stringToArray(s) {
  11878. return _(s) ? w(s) : u(s);
  11879. };
  11880. },
  11881. 61802: (s, o, i) => {
  11882. var u = i(62224),
  11883. _ =
  11884. /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
  11885. w = /\\(\\)?/g,
  11886. x = u(function (s) {
  11887. var o = [];
  11888. return (
  11889. 46 === s.charCodeAt(0) && o.push(''),
  11890. s.replace(_, function (s, i, u, _) {
  11891. o.push(u ? _.replace(w, '$1') : i || s);
  11892. }),
  11893. o
  11894. );
  11895. });
  11896. s.exports = x;
  11897. },
  11898. 77797: (s, o, i) => {
  11899. var u = i(44394);
  11900. s.exports = function toKey(s) {
  11901. if ('string' == typeof s || u(s)) return s;
  11902. var o = s + '';
  11903. return '0' == o && 1 / s == -1 / 0 ? '-0' : o;
  11904. };
  11905. },
  11906. 47473: (s) => {
  11907. var o = Function.prototype.toString;
  11908. s.exports = function toSource(s) {
  11909. if (null != s) {
  11910. try {
  11911. return o.call(s);
  11912. } catch (s) {}
  11913. try {
  11914. return s + '';
  11915. } catch (s) {}
  11916. }
  11917. return '';
  11918. };
  11919. },
  11920. 31800: (s) => {
  11921. var o = /\s/;
  11922. s.exports = function trimmedEndIndex(s) {
  11923. for (var i = s.length; i-- && o.test(s.charAt(i)); );
  11924. return i;
  11925. };
  11926. },
  11927. 42054: (s) => {
  11928. var o = '\\ud800-\\udfff',
  11929. i = '[' + o + ']',
  11930. u = '[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]',
  11931. _ = '\\ud83c[\\udffb-\\udfff]',
  11932. w = '[^' + o + ']',
  11933. x = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  11934. C = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  11935. j = '(?:' + u + '|' + _ + ')' + '?',
  11936. L = '[\\ufe0e\\ufe0f]?',
  11937. B = L + j + ('(?:\\u200d(?:' + [w, x, C].join('|') + ')' + L + j + ')*'),
  11938. $ = '(?:' + [w + u + '?', u, x, C, i].join('|') + ')',
  11939. V = RegExp(_ + '(?=' + _ + ')|' + $ + B, 'g');
  11940. s.exports = function unicodeToArray(s) {
  11941. return s.match(V) || [];
  11942. };
  11943. },
  11944. 22225: (s) => {
  11945. var o = '\\ud800-\\udfff',
  11946. i = '\\u2700-\\u27bf',
  11947. u = 'a-z\\xdf-\\xf6\\xf8-\\xff',
  11948. _ = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
  11949. w =
  11950. '\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
  11951. x = '[' + w + ']',
  11952. C = '\\d+',
  11953. j = '[' + i + ']',
  11954. L = '[' + u + ']',
  11955. B = '[^' + o + w + C + i + u + _ + ']',
  11956. $ = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  11957. V = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  11958. U = '[' + _ + ']',
  11959. z = '(?:' + L + '|' + B + ')',
  11960. Y = '(?:' + U + '|' + B + ')',
  11961. Z = "(?:['’](?:d|ll|m|re|s|t|ve))?",
  11962. ee = "(?:['’](?:D|LL|M|RE|S|T|VE))?",
  11963. ie = '(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?',
  11964. ae = '[\\ufe0e\\ufe0f]?',
  11965. le =
  11966. ae + ie + ('(?:\\u200d(?:' + ['[^' + o + ']', $, V].join('|') + ')' + ae + ie + ')*'),
  11967. ce = '(?:' + [j, $, V].join('|') + ')' + le,
  11968. pe = RegExp(
  11969. [
  11970. U + '?' + L + '+' + Z + '(?=' + [x, U, '$'].join('|') + ')',
  11971. Y + '+' + ee + '(?=' + [x, U + z, '$'].join('|') + ')',
  11972. U + '?' + z + '+' + Z,
  11973. U + '+' + ee,
  11974. '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
  11975. '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
  11976. C,
  11977. ce
  11978. ].join('|'),
  11979. 'g'
  11980. );
  11981. s.exports = function unicodeWords(s) {
  11982. return s.match(pe) || [];
  11983. };
  11984. },
  11985. 75948: (s, o, i) => {
  11986. var u = i(83729),
  11987. _ = i(15325),
  11988. w = [
  11989. ['ary', 128],
  11990. ['bind', 1],
  11991. ['bindKey', 2],
  11992. ['curry', 8],
  11993. ['curryRight', 16],
  11994. ['flip', 512],
  11995. ['partial', 32],
  11996. ['partialRight', 64],
  11997. ['rearg', 256]
  11998. ];
  11999. s.exports = function updateWrapDetails(s, o) {
  12000. return (
  12001. u(w, function (i) {
  12002. var u = '_.' + i[0];
  12003. o & i[1] && !_(s, u) && s.push(u);
  12004. }),
  12005. s.sort()
  12006. );
  12007. };
  12008. },
  12009. 80257: (s, o, i) => {
  12010. var u = i(30980),
  12011. _ = i(56017),
  12012. w = i(23007);
  12013. s.exports = function wrapperClone(s) {
  12014. if (s instanceof u) return s.clone();
  12015. var o = new _(s.__wrapped__, s.__chain__);
  12016. return (
  12017. (o.__actions__ = w(s.__actions__)),
  12018. (o.__index__ = s.__index__),
  12019. (o.__values__ = s.__values__),
  12020. o
  12021. );
  12022. };
  12023. },
  12024. 64626: (s, o, i) => {
  12025. var u = i(66977);
  12026. s.exports = function ary(s, o, i) {
  12027. return (
  12028. (o = i ? void 0 : o),
  12029. (o = s && null == o ? s.length : o),
  12030. u(s, 128, void 0, void 0, void 0, void 0, o)
  12031. );
  12032. };
  12033. },
  12034. 84058: (s, o, i) => {
  12035. var u = i(14792),
  12036. _ = i(45539)(function (s, o, i) {
  12037. return (o = o.toLowerCase()), s + (i ? u(o) : o);
  12038. });
  12039. s.exports = _;
  12040. },
  12041. 14792: (s, o, i) => {
  12042. var u = i(13222),
  12043. _ = i(55808);
  12044. s.exports = function capitalize(s) {
  12045. return _(u(s).toLowerCase());
  12046. };
  12047. },
  12048. 32629: (s, o, i) => {
  12049. var u = i(9999);
  12050. s.exports = function clone(s) {
  12051. return u(s, 4);
  12052. };
  12053. },
  12054. 37334: (s) => {
  12055. s.exports = function constant(s) {
  12056. return function () {
  12057. return s;
  12058. };
  12059. };
  12060. },
  12061. 49747: (s, o, i) => {
  12062. var u = i(66977);
  12063. function curry(s, o, i) {
  12064. var _ = u(s, 8, void 0, void 0, void 0, void 0, void 0, (o = i ? void 0 : o));
  12065. return (_.placeholder = curry.placeholder), _;
  12066. }
  12067. (curry.placeholder = {}), (s.exports = curry);
  12068. },
  12069. 38221: (s, o, i) => {
  12070. var u = i(23805),
  12071. _ = i(10124),
  12072. w = i(99374),
  12073. x = Math.max,
  12074. C = Math.min;
  12075. s.exports = function debounce(s, o, i) {
  12076. var j,
  12077. L,
  12078. B,
  12079. $,
  12080. V,
  12081. U,
  12082. z = 0,
  12083. Y = !1,
  12084. Z = !1,
  12085. ee = !0;
  12086. if ('function' != typeof s) throw new TypeError('Expected a function');
  12087. function invokeFunc(o) {
  12088. var i = j,
  12089. u = L;
  12090. return (j = L = void 0), (z = o), ($ = s.apply(u, i));
  12091. }
  12092. function shouldInvoke(s) {
  12093. var i = s - U;
  12094. return void 0 === U || i >= o || i < 0 || (Z && s - z >= B);
  12095. }
  12096. function timerExpired() {
  12097. var s = _();
  12098. if (shouldInvoke(s)) return trailingEdge(s);
  12099. V = setTimeout(
  12100. timerExpired,
  12101. (function remainingWait(s) {
  12102. var i = o - (s - U);
  12103. return Z ? C(i, B - (s - z)) : i;
  12104. })(s)
  12105. );
  12106. }
  12107. function trailingEdge(s) {
  12108. return (V = void 0), ee && j ? invokeFunc(s) : ((j = L = void 0), $);
  12109. }
  12110. function debounced() {
  12111. var s = _(),
  12112. i = shouldInvoke(s);
  12113. if (((j = arguments), (L = this), (U = s), i)) {
  12114. if (void 0 === V)
  12115. return (function leadingEdge(s) {
  12116. return (z = s), (V = setTimeout(timerExpired, o)), Y ? invokeFunc(s) : $;
  12117. })(U);
  12118. if (Z) return clearTimeout(V), (V = setTimeout(timerExpired, o)), invokeFunc(U);
  12119. }
  12120. return void 0 === V && (V = setTimeout(timerExpired, o)), $;
  12121. }
  12122. return (
  12123. (o = w(o) || 0),
  12124. u(i) &&
  12125. ((Y = !!i.leading),
  12126. (B = (Z = 'maxWait' in i) ? x(w(i.maxWait) || 0, o) : B),
  12127. (ee = 'trailing' in i ? !!i.trailing : ee)),
  12128. (debounced.cancel = function cancel() {
  12129. void 0 !== V && clearTimeout(V), (z = 0), (j = U = L = V = void 0);
  12130. }),
  12131. (debounced.flush = function flush() {
  12132. return void 0 === V ? $ : trailingEdge(_());
  12133. }),
  12134. debounced
  12135. );
  12136. };
  12137. },
  12138. 50828: (s, o, i) => {
  12139. var u = i(24647),
  12140. _ = i(13222),
  12141. w = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,
  12142. x = RegExp('[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]', 'g');
  12143. s.exports = function deburr(s) {
  12144. return (s = _(s)) && s.replace(w, u).replace(x, '');
  12145. };
  12146. },
  12147. 75288: (s) => {
  12148. s.exports = function eq(s, o) {
  12149. return s === o || (s != s && o != o);
  12150. };
  12151. },
  12152. 60680: (s, o, i) => {
  12153. var u = i(13222),
  12154. _ = /[\\^$.*+?()[\]{}|]/g,
  12155. w = RegExp(_.source);
  12156. s.exports = function escapeRegExp(s) {
  12157. return (s = u(s)) && w.test(s) ? s.replace(_, '\\$&') : s;
  12158. };
  12159. },
  12160. 7309: (s, o, i) => {
  12161. var u = i(62006)(i(24713));
  12162. s.exports = u;
  12163. },
  12164. 24713: (s, o, i) => {
  12165. var u = i(2523),
  12166. _ = i(15389),
  12167. w = i(61489),
  12168. x = Math.max;
  12169. s.exports = function findIndex(s, o, i) {
  12170. var C = null == s ? 0 : s.length;
  12171. if (!C) return -1;
  12172. var j = null == i ? 0 : w(i);
  12173. return j < 0 && (j = x(C + j, 0)), u(s, _(o, 3), j);
  12174. };
  12175. },
  12176. 35970: (s, o, i) => {
  12177. var u = i(83120);
  12178. s.exports = function flatten(s) {
  12179. return (null == s ? 0 : s.length) ? u(s, 1) : [];
  12180. };
  12181. },
  12182. 73424: (s, o, i) => {
  12183. var u = i(16962),
  12184. _ = i(2874),
  12185. w = Array.prototype.push;
  12186. function baseAry(s, o) {
  12187. return 2 == o
  12188. ? function (o, i) {
  12189. return s(o, i);
  12190. }
  12191. : function (o) {
  12192. return s(o);
  12193. };
  12194. }
  12195. function cloneArray(s) {
  12196. for (var o = s ? s.length : 0, i = Array(o); o--; ) i[o] = s[o];
  12197. return i;
  12198. }
  12199. function wrapImmutable(s, o) {
  12200. return function () {
  12201. var i = arguments.length;
  12202. if (i) {
  12203. for (var u = Array(i); i--; ) u[i] = arguments[i];
  12204. var _ = (u[0] = o.apply(void 0, u));
  12205. return s.apply(void 0, u), _;
  12206. }
  12207. };
  12208. }
  12209. s.exports = function baseConvert(s, o, i, x) {
  12210. var C = 'function' == typeof o,
  12211. j = o === Object(o);
  12212. if ((j && ((x = i), (i = o), (o = void 0)), null == i)) throw new TypeError();
  12213. x || (x = {});
  12214. var L = !('cap' in x) || x.cap,
  12215. B = !('curry' in x) || x.curry,
  12216. $ = !('fixed' in x) || x.fixed,
  12217. V = !('immutable' in x) || x.immutable,
  12218. U = !('rearg' in x) || x.rearg,
  12219. z = C ? i : _,
  12220. Y = 'curry' in x && x.curry,
  12221. Z = 'fixed' in x && x.fixed,
  12222. ee = 'rearg' in x && x.rearg,
  12223. ie = C ? i.runInContext() : void 0,
  12224. ae = C
  12225. ? i
  12226. : {
  12227. ary: s.ary,
  12228. assign: s.assign,
  12229. clone: s.clone,
  12230. curry: s.curry,
  12231. forEach: s.forEach,
  12232. isArray: s.isArray,
  12233. isError: s.isError,
  12234. isFunction: s.isFunction,
  12235. isWeakMap: s.isWeakMap,
  12236. iteratee: s.iteratee,
  12237. keys: s.keys,
  12238. rearg: s.rearg,
  12239. toInteger: s.toInteger,
  12240. toPath: s.toPath
  12241. },
  12242. le = ae.ary,
  12243. ce = ae.assign,
  12244. pe = ae.clone,
  12245. de = ae.curry,
  12246. fe = ae.forEach,
  12247. ye = ae.isArray,
  12248. be = ae.isError,
  12249. _e = ae.isFunction,
  12250. we = ae.isWeakMap,
  12251. Se = ae.keys,
  12252. xe = ae.rearg,
  12253. Pe = ae.toInteger,
  12254. Te = ae.toPath,
  12255. Re = Se(u.aryMethod),
  12256. qe = {
  12257. castArray: function (s) {
  12258. return function () {
  12259. var o = arguments[0];
  12260. return ye(o) ? s(cloneArray(o)) : s.apply(void 0, arguments);
  12261. };
  12262. },
  12263. iteratee: function (s) {
  12264. return function () {
  12265. var o = arguments[1],
  12266. i = s(arguments[0], o),
  12267. u = i.length;
  12268. return L && 'number' == typeof o
  12269. ? ((o = o > 2 ? o - 2 : 1), u && u <= o ? i : baseAry(i, o))
  12270. : i;
  12271. };
  12272. },
  12273. mixin: function (s) {
  12274. return function (o) {
  12275. var i = this;
  12276. if (!_e(i)) return s(i, Object(o));
  12277. var u = [];
  12278. return (
  12279. fe(Se(o), function (s) {
  12280. _e(o[s]) && u.push([s, i.prototype[s]]);
  12281. }),
  12282. s(i, Object(o)),
  12283. fe(u, function (s) {
  12284. var o = s[1];
  12285. _e(o) ? (i.prototype[s[0]] = o) : delete i.prototype[s[0]];
  12286. }),
  12287. i
  12288. );
  12289. };
  12290. },
  12291. nthArg: function (s) {
  12292. return function (o) {
  12293. var i = o < 0 ? 1 : Pe(o) + 1;
  12294. return de(s(o), i);
  12295. };
  12296. },
  12297. rearg: function (s) {
  12298. return function (o, i) {
  12299. var u = i ? i.length : 0;
  12300. return de(s(o, i), u);
  12301. };
  12302. },
  12303. runInContext: function (o) {
  12304. return function (i) {
  12305. return baseConvert(s, o(i), x);
  12306. };
  12307. }
  12308. };
  12309. function castCap(s, o) {
  12310. if (L) {
  12311. var i = u.iterateeRearg[s];
  12312. if (i)
  12313. return (function iterateeRearg(s, o) {
  12314. return overArg(s, function (s) {
  12315. var i = o.length;
  12316. return (function baseArity(s, o) {
  12317. return 2 == o
  12318. ? function (o, i) {
  12319. return s.apply(void 0, arguments);
  12320. }
  12321. : function (o) {
  12322. return s.apply(void 0, arguments);
  12323. };
  12324. })(xe(baseAry(s, i), o), i);
  12325. });
  12326. })(o, i);
  12327. var _ = !C && u.iterateeAry[s];
  12328. if (_)
  12329. return (function iterateeAry(s, o) {
  12330. return overArg(s, function (s) {
  12331. return 'function' == typeof s ? baseAry(s, o) : s;
  12332. });
  12333. })(o, _);
  12334. }
  12335. return o;
  12336. }
  12337. function castFixed(s, o, i) {
  12338. if ($ && (Z || !u.skipFixed[s])) {
  12339. var _ = u.methodSpread[s],
  12340. x = _ && _.start;
  12341. return void 0 === x
  12342. ? le(o, i)
  12343. : (function flatSpread(s, o) {
  12344. return function () {
  12345. for (var i = arguments.length, u = i - 1, _ = Array(i); i--; )
  12346. _[i] = arguments[i];
  12347. var x = _[o],
  12348. C = _.slice(0, o);
  12349. return (
  12350. x && w.apply(C, x), o != u && w.apply(C, _.slice(o + 1)), s.apply(this, C)
  12351. );
  12352. };
  12353. })(o, x);
  12354. }
  12355. return o;
  12356. }
  12357. function castRearg(s, o, i) {
  12358. return U && i > 1 && (ee || !u.skipRearg[s])
  12359. ? xe(o, u.methodRearg[s] || u.aryRearg[i])
  12360. : o;
  12361. }
  12362. function cloneByPath(s, o) {
  12363. for (
  12364. var i = -1, u = (o = Te(o)).length, _ = u - 1, w = pe(Object(s)), x = w;
  12365. null != x && ++i < u;
  12366. ) {
  12367. var C = o[i],
  12368. j = x[C];
  12369. null == j || _e(j) || be(j) || we(j) || (x[C] = pe(i == _ ? j : Object(j))),
  12370. (x = x[C]);
  12371. }
  12372. return w;
  12373. }
  12374. function createConverter(s, o) {
  12375. var i = u.aliasToReal[s] || s,
  12376. _ = u.remap[i] || i,
  12377. w = x;
  12378. return function (s) {
  12379. var u = C ? ie : ae,
  12380. x = C ? ie[_] : o,
  12381. j = ce(ce({}, w), s);
  12382. return baseConvert(u, i, x, j);
  12383. };
  12384. }
  12385. function overArg(s, o) {
  12386. return function () {
  12387. var i = arguments.length;
  12388. if (!i) return s();
  12389. for (var u = Array(i); i--; ) u[i] = arguments[i];
  12390. var _ = U ? 0 : i - 1;
  12391. return (u[_] = o(u[_])), s.apply(void 0, u);
  12392. };
  12393. }
  12394. function wrap(s, o, i) {
  12395. var _,
  12396. w = u.aliasToReal[s] || s,
  12397. x = o,
  12398. C = qe[w];
  12399. return (
  12400. C
  12401. ? (x = C(o))
  12402. : V &&
  12403. (u.mutate.array[w]
  12404. ? (x = wrapImmutable(o, cloneArray))
  12405. : u.mutate.object[w]
  12406. ? (x = wrapImmutable(
  12407. o,
  12408. (function createCloner(s) {
  12409. return function (o) {
  12410. return s({}, o);
  12411. };
  12412. })(o)
  12413. ))
  12414. : u.mutate.set[w] && (x = wrapImmutable(o, cloneByPath))),
  12415. fe(Re, function (s) {
  12416. return (
  12417. fe(u.aryMethod[s], function (o) {
  12418. if (w == o) {
  12419. var i = u.methodSpread[w],
  12420. C = i && i.afterRearg;
  12421. return (
  12422. (_ = C
  12423. ? castFixed(w, castRearg(w, x, s), s)
  12424. : castRearg(w, castFixed(w, x, s), s)),
  12425. (_ = (function castCurry(s, o, i) {
  12426. return Y || (B && i > 1) ? de(o, i) : o;
  12427. })(0, (_ = castCap(w, _)), s)),
  12428. !1
  12429. );
  12430. }
  12431. }),
  12432. !_
  12433. );
  12434. }),
  12435. _ || (_ = x),
  12436. _ == o &&
  12437. (_ = Y
  12438. ? de(_, 1)
  12439. : function () {
  12440. return o.apply(this, arguments);
  12441. }),
  12442. (_.convert = createConverter(w, o)),
  12443. (_.placeholder = o.placeholder = i),
  12444. _
  12445. );
  12446. }
  12447. if (!j) return wrap(o, i, z);
  12448. var $e = i,
  12449. ze = [];
  12450. return (
  12451. fe(Re, function (s) {
  12452. fe(u.aryMethod[s], function (s) {
  12453. var o = $e[u.remap[s] || s];
  12454. o && ze.push([s, wrap(s, o, $e)]);
  12455. });
  12456. }),
  12457. fe(Se($e), function (s) {
  12458. var o = $e[s];
  12459. if ('function' == typeof o) {
  12460. for (var i = ze.length; i--; ) if (ze[i][0] == s) return;
  12461. (o.convert = createConverter(s, o)), ze.push([s, o]);
  12462. }
  12463. }),
  12464. fe(ze, function (s) {
  12465. $e[s[0]] = s[1];
  12466. }),
  12467. ($e.convert = function convertLib(s) {
  12468. return $e.runInContext.convert(s)(void 0);
  12469. }),
  12470. ($e.placeholder = $e),
  12471. fe(Se($e), function (s) {
  12472. fe(u.realToAlias[s] || [], function (o) {
  12473. $e[o] = $e[s];
  12474. });
  12475. }),
  12476. $e
  12477. );
  12478. };
  12479. },
  12480. 16962: (s, o) => {
  12481. (o.aliasToReal = {
  12482. each: 'forEach',
  12483. eachRight: 'forEachRight',
  12484. entries: 'toPairs',
  12485. entriesIn: 'toPairsIn',
  12486. extend: 'assignIn',
  12487. extendAll: 'assignInAll',
  12488. extendAllWith: 'assignInAllWith',
  12489. extendWith: 'assignInWith',
  12490. first: 'head',
  12491. conforms: 'conformsTo',
  12492. matches: 'isMatch',
  12493. property: 'get',
  12494. __: 'placeholder',
  12495. F: 'stubFalse',
  12496. T: 'stubTrue',
  12497. all: 'every',
  12498. allPass: 'overEvery',
  12499. always: 'constant',
  12500. any: 'some',
  12501. anyPass: 'overSome',
  12502. apply: 'spread',
  12503. assoc: 'set',
  12504. assocPath: 'set',
  12505. complement: 'negate',
  12506. compose: 'flowRight',
  12507. contains: 'includes',
  12508. dissoc: 'unset',
  12509. dissocPath: 'unset',
  12510. dropLast: 'dropRight',
  12511. dropLastWhile: 'dropRightWhile',
  12512. equals: 'isEqual',
  12513. identical: 'eq',
  12514. indexBy: 'keyBy',
  12515. init: 'initial',
  12516. invertObj: 'invert',
  12517. juxt: 'over',
  12518. omitAll: 'omit',
  12519. nAry: 'ary',
  12520. path: 'get',
  12521. pathEq: 'matchesProperty',
  12522. pathOr: 'getOr',
  12523. paths: 'at',
  12524. pickAll: 'pick',
  12525. pipe: 'flow',
  12526. pluck: 'map',
  12527. prop: 'get',
  12528. propEq: 'matchesProperty',
  12529. propOr: 'getOr',
  12530. props: 'at',
  12531. symmetricDifference: 'xor',
  12532. symmetricDifferenceBy: 'xorBy',
  12533. symmetricDifferenceWith: 'xorWith',
  12534. takeLast: 'takeRight',
  12535. takeLastWhile: 'takeRightWhile',
  12536. unapply: 'rest',
  12537. unnest: 'flatten',
  12538. useWith: 'overArgs',
  12539. where: 'conformsTo',
  12540. whereEq: 'isMatch',
  12541. zipObj: 'zipObject'
  12542. }),
  12543. (o.aryMethod = {
  12544. 1: [
  12545. 'assignAll',
  12546. 'assignInAll',
  12547. 'attempt',
  12548. 'castArray',
  12549. 'ceil',
  12550. 'create',
  12551. 'curry',
  12552. 'curryRight',
  12553. 'defaultsAll',
  12554. 'defaultsDeepAll',
  12555. 'floor',
  12556. 'flow',
  12557. 'flowRight',
  12558. 'fromPairs',
  12559. 'invert',
  12560. 'iteratee',
  12561. 'memoize',
  12562. 'method',
  12563. 'mergeAll',
  12564. 'methodOf',
  12565. 'mixin',
  12566. 'nthArg',
  12567. 'over',
  12568. 'overEvery',
  12569. 'overSome',
  12570. 'rest',
  12571. 'reverse',
  12572. 'round',
  12573. 'runInContext',
  12574. 'spread',
  12575. 'template',
  12576. 'trim',
  12577. 'trimEnd',
  12578. 'trimStart',
  12579. 'uniqueId',
  12580. 'words',
  12581. 'zipAll'
  12582. ],
  12583. 2: [
  12584. 'add',
  12585. 'after',
  12586. 'ary',
  12587. 'assign',
  12588. 'assignAllWith',
  12589. 'assignIn',
  12590. 'assignInAllWith',
  12591. 'at',
  12592. 'before',
  12593. 'bind',
  12594. 'bindAll',
  12595. 'bindKey',
  12596. 'chunk',
  12597. 'cloneDeepWith',
  12598. 'cloneWith',
  12599. 'concat',
  12600. 'conformsTo',
  12601. 'countBy',
  12602. 'curryN',
  12603. 'curryRightN',
  12604. 'debounce',
  12605. 'defaults',
  12606. 'defaultsDeep',
  12607. 'defaultTo',
  12608. 'delay',
  12609. 'difference',
  12610. 'divide',
  12611. 'drop',
  12612. 'dropRight',
  12613. 'dropRightWhile',
  12614. 'dropWhile',
  12615. 'endsWith',
  12616. 'eq',
  12617. 'every',
  12618. 'filter',
  12619. 'find',
  12620. 'findIndex',
  12621. 'findKey',
  12622. 'findLast',
  12623. 'findLastIndex',
  12624. 'findLastKey',
  12625. 'flatMap',
  12626. 'flatMapDeep',
  12627. 'flattenDepth',
  12628. 'forEach',
  12629. 'forEachRight',
  12630. 'forIn',
  12631. 'forInRight',
  12632. 'forOwn',
  12633. 'forOwnRight',
  12634. 'get',
  12635. 'groupBy',
  12636. 'gt',
  12637. 'gte',
  12638. 'has',
  12639. 'hasIn',
  12640. 'includes',
  12641. 'indexOf',
  12642. 'intersection',
  12643. 'invertBy',
  12644. 'invoke',
  12645. 'invokeMap',
  12646. 'isEqual',
  12647. 'isMatch',
  12648. 'join',
  12649. 'keyBy',
  12650. 'lastIndexOf',
  12651. 'lt',
  12652. 'lte',
  12653. 'map',
  12654. 'mapKeys',
  12655. 'mapValues',
  12656. 'matchesProperty',
  12657. 'maxBy',
  12658. 'meanBy',
  12659. 'merge',
  12660. 'mergeAllWith',
  12661. 'minBy',
  12662. 'multiply',
  12663. 'nth',
  12664. 'omit',
  12665. 'omitBy',
  12666. 'overArgs',
  12667. 'pad',
  12668. 'padEnd',
  12669. 'padStart',
  12670. 'parseInt',
  12671. 'partial',
  12672. 'partialRight',
  12673. 'partition',
  12674. 'pick',
  12675. 'pickBy',
  12676. 'propertyOf',
  12677. 'pull',
  12678. 'pullAll',
  12679. 'pullAt',
  12680. 'random',
  12681. 'range',
  12682. 'rangeRight',
  12683. 'rearg',
  12684. 'reject',
  12685. 'remove',
  12686. 'repeat',
  12687. 'restFrom',
  12688. 'result',
  12689. 'sampleSize',
  12690. 'some',
  12691. 'sortBy',
  12692. 'sortedIndex',
  12693. 'sortedIndexOf',
  12694. 'sortedLastIndex',
  12695. 'sortedLastIndexOf',
  12696. 'sortedUniqBy',
  12697. 'split',
  12698. 'spreadFrom',
  12699. 'startsWith',
  12700. 'subtract',
  12701. 'sumBy',
  12702. 'take',
  12703. 'takeRight',
  12704. 'takeRightWhile',
  12705. 'takeWhile',
  12706. 'tap',
  12707. 'throttle',
  12708. 'thru',
  12709. 'times',
  12710. 'trimChars',
  12711. 'trimCharsEnd',
  12712. 'trimCharsStart',
  12713. 'truncate',
  12714. 'union',
  12715. 'uniqBy',
  12716. 'uniqWith',
  12717. 'unset',
  12718. 'unzipWith',
  12719. 'without',
  12720. 'wrap',
  12721. 'xor',
  12722. 'zip',
  12723. 'zipObject',
  12724. 'zipObjectDeep'
  12725. ],
  12726. 3: [
  12727. 'assignInWith',
  12728. 'assignWith',
  12729. 'clamp',
  12730. 'differenceBy',
  12731. 'differenceWith',
  12732. 'findFrom',
  12733. 'findIndexFrom',
  12734. 'findLastFrom',
  12735. 'findLastIndexFrom',
  12736. 'getOr',
  12737. 'includesFrom',
  12738. 'indexOfFrom',
  12739. 'inRange',
  12740. 'intersectionBy',
  12741. 'intersectionWith',
  12742. 'invokeArgs',
  12743. 'invokeArgsMap',
  12744. 'isEqualWith',
  12745. 'isMatchWith',
  12746. 'flatMapDepth',
  12747. 'lastIndexOfFrom',
  12748. 'mergeWith',
  12749. 'orderBy',
  12750. 'padChars',
  12751. 'padCharsEnd',
  12752. 'padCharsStart',
  12753. 'pullAllBy',
  12754. 'pullAllWith',
  12755. 'rangeStep',
  12756. 'rangeStepRight',
  12757. 'reduce',
  12758. 'reduceRight',
  12759. 'replace',
  12760. 'set',
  12761. 'slice',
  12762. 'sortedIndexBy',
  12763. 'sortedLastIndexBy',
  12764. 'transform',
  12765. 'unionBy',
  12766. 'unionWith',
  12767. 'update',
  12768. 'xorBy',
  12769. 'xorWith',
  12770. 'zipWith'
  12771. ],
  12772. 4: ['fill', 'setWith', 'updateWith']
  12773. }),
  12774. (o.aryRearg = { 2: [1, 0], 3: [2, 0, 1], 4: [3, 2, 0, 1] }),
  12775. (o.iterateeAry = {
  12776. dropRightWhile: 1,
  12777. dropWhile: 1,
  12778. every: 1,
  12779. filter: 1,
  12780. find: 1,
  12781. findFrom: 1,
  12782. findIndex: 1,
  12783. findIndexFrom: 1,
  12784. findKey: 1,
  12785. findLast: 1,
  12786. findLastFrom: 1,
  12787. findLastIndex: 1,
  12788. findLastIndexFrom: 1,
  12789. findLastKey: 1,
  12790. flatMap: 1,
  12791. flatMapDeep: 1,
  12792. flatMapDepth: 1,
  12793. forEach: 1,
  12794. forEachRight: 1,
  12795. forIn: 1,
  12796. forInRight: 1,
  12797. forOwn: 1,
  12798. forOwnRight: 1,
  12799. map: 1,
  12800. mapKeys: 1,
  12801. mapValues: 1,
  12802. partition: 1,
  12803. reduce: 2,
  12804. reduceRight: 2,
  12805. reject: 1,
  12806. remove: 1,
  12807. some: 1,
  12808. takeRightWhile: 1,
  12809. takeWhile: 1,
  12810. times: 1,
  12811. transform: 2
  12812. }),
  12813. (o.iterateeRearg = { mapKeys: [1], reduceRight: [1, 0] }),
  12814. (o.methodRearg = {
  12815. assignInAllWith: [1, 0],
  12816. assignInWith: [1, 2, 0],
  12817. assignAllWith: [1, 0],
  12818. assignWith: [1, 2, 0],
  12819. differenceBy: [1, 2, 0],
  12820. differenceWith: [1, 2, 0],
  12821. getOr: [2, 1, 0],
  12822. intersectionBy: [1, 2, 0],
  12823. intersectionWith: [1, 2, 0],
  12824. isEqualWith: [1, 2, 0],
  12825. isMatchWith: [2, 1, 0],
  12826. mergeAllWith: [1, 0],
  12827. mergeWith: [1, 2, 0],
  12828. padChars: [2, 1, 0],
  12829. padCharsEnd: [2, 1, 0],
  12830. padCharsStart: [2, 1, 0],
  12831. pullAllBy: [2, 1, 0],
  12832. pullAllWith: [2, 1, 0],
  12833. rangeStep: [1, 2, 0],
  12834. rangeStepRight: [1, 2, 0],
  12835. setWith: [3, 1, 2, 0],
  12836. sortedIndexBy: [2, 1, 0],
  12837. sortedLastIndexBy: [2, 1, 0],
  12838. unionBy: [1, 2, 0],
  12839. unionWith: [1, 2, 0],
  12840. updateWith: [3, 1, 2, 0],
  12841. xorBy: [1, 2, 0],
  12842. xorWith: [1, 2, 0],
  12843. zipWith: [1, 2, 0]
  12844. }),
  12845. (o.methodSpread = {
  12846. assignAll: { start: 0 },
  12847. assignAllWith: { start: 0 },
  12848. assignInAll: { start: 0 },
  12849. assignInAllWith: { start: 0 },
  12850. defaultsAll: { start: 0 },
  12851. defaultsDeepAll: { start: 0 },
  12852. invokeArgs: { start: 2 },
  12853. invokeArgsMap: { start: 2 },
  12854. mergeAll: { start: 0 },
  12855. mergeAllWith: { start: 0 },
  12856. partial: { start: 1 },
  12857. partialRight: { start: 1 },
  12858. without: { start: 1 },
  12859. zipAll: { start: 0 }
  12860. }),
  12861. (o.mutate = {
  12862. array: {
  12863. fill: !0,
  12864. pull: !0,
  12865. pullAll: !0,
  12866. pullAllBy: !0,
  12867. pullAllWith: !0,
  12868. pullAt: !0,
  12869. remove: !0,
  12870. reverse: !0
  12871. },
  12872. object: {
  12873. assign: !0,
  12874. assignAll: !0,
  12875. assignAllWith: !0,
  12876. assignIn: !0,
  12877. assignInAll: !0,
  12878. assignInAllWith: !0,
  12879. assignInWith: !0,
  12880. assignWith: !0,
  12881. defaults: !0,
  12882. defaultsAll: !0,
  12883. defaultsDeep: !0,
  12884. defaultsDeepAll: !0,
  12885. merge: !0,
  12886. mergeAll: !0,
  12887. mergeAllWith: !0,
  12888. mergeWith: !0
  12889. },
  12890. set: { set: !0, setWith: !0, unset: !0, update: !0, updateWith: !0 }
  12891. }),
  12892. (o.realToAlias = (function () {
  12893. var s = Object.prototype.hasOwnProperty,
  12894. i = o.aliasToReal,
  12895. u = {};
  12896. for (var _ in i) {
  12897. var w = i[_];
  12898. s.call(u, w) ? u[w].push(_) : (u[w] = [_]);
  12899. }
  12900. return u;
  12901. })()),
  12902. (o.remap = {
  12903. assignAll: 'assign',
  12904. assignAllWith: 'assignWith',
  12905. assignInAll: 'assignIn',
  12906. assignInAllWith: 'assignInWith',
  12907. curryN: 'curry',
  12908. curryRightN: 'curryRight',
  12909. defaultsAll: 'defaults',
  12910. defaultsDeepAll: 'defaultsDeep',
  12911. findFrom: 'find',
  12912. findIndexFrom: 'findIndex',
  12913. findLastFrom: 'findLast',
  12914. findLastIndexFrom: 'findLastIndex',
  12915. getOr: 'get',
  12916. includesFrom: 'includes',
  12917. indexOfFrom: 'indexOf',
  12918. invokeArgs: 'invoke',
  12919. invokeArgsMap: 'invokeMap',
  12920. lastIndexOfFrom: 'lastIndexOf',
  12921. mergeAll: 'merge',
  12922. mergeAllWith: 'mergeWith',
  12923. padChars: 'pad',
  12924. padCharsEnd: 'padEnd',
  12925. padCharsStart: 'padStart',
  12926. propertyOf: 'get',
  12927. rangeStep: 'range',
  12928. rangeStepRight: 'rangeRight',
  12929. restFrom: 'rest',
  12930. spreadFrom: 'spread',
  12931. trimChars: 'trim',
  12932. trimCharsEnd: 'trimEnd',
  12933. trimCharsStart: 'trimStart',
  12934. zipAll: 'zip'
  12935. }),
  12936. (o.skipFixed = {
  12937. castArray: !0,
  12938. flow: !0,
  12939. flowRight: !0,
  12940. iteratee: !0,
  12941. mixin: !0,
  12942. rearg: !0,
  12943. runInContext: !0
  12944. }),
  12945. (o.skipRearg = {
  12946. add: !0,
  12947. assign: !0,
  12948. assignIn: !0,
  12949. bind: !0,
  12950. bindKey: !0,
  12951. concat: !0,
  12952. difference: !0,
  12953. divide: !0,
  12954. eq: !0,
  12955. gt: !0,
  12956. gte: !0,
  12957. isEqual: !0,
  12958. lt: !0,
  12959. lte: !0,
  12960. matchesProperty: !0,
  12961. merge: !0,
  12962. multiply: !0,
  12963. overArgs: !0,
  12964. partial: !0,
  12965. partialRight: !0,
  12966. propertyOf: !0,
  12967. random: !0,
  12968. range: !0,
  12969. rangeRight: !0,
  12970. subtract: !0,
  12971. zip: !0,
  12972. zipObject: !0,
  12973. zipObjectDeep: !0
  12974. });
  12975. },
  12976. 47934: (s, o, i) => {
  12977. s.exports = {
  12978. ary: i(64626),
  12979. assign: i(74733),
  12980. clone: i(32629),
  12981. curry: i(49747),
  12982. forEach: i(83729),
  12983. isArray: i(56449),
  12984. isError: i(23546),
  12985. isFunction: i(1882),
  12986. isWeakMap: i(47886),
  12987. iteratee: i(33855),
  12988. keys: i(88984),
  12989. rearg: i(84195),
  12990. toInteger: i(61489),
  12991. toPath: i(42072)
  12992. };
  12993. },
  12994. 56367: (s, o, i) => {
  12995. s.exports = i(77731);
  12996. },
  12997. 79920: (s, o, i) => {
  12998. var u = i(73424),
  12999. _ = i(47934);
  13000. s.exports = function convert(s, o, i) {
  13001. return u(_, s, o, i);
  13002. };
  13003. },
  13004. 2874: (s) => {
  13005. s.exports = {};
  13006. },
  13007. 77731: (s, o, i) => {
  13008. var u = i(79920)('set', i(63560));
  13009. (u.placeholder = i(2874)), (s.exports = u);
  13010. },
  13011. 58156: (s, o, i) => {
  13012. var u = i(47422);
  13013. s.exports = function get(s, o, i) {
  13014. var _ = null == s ? void 0 : u(s, o);
  13015. return void 0 === _ ? i : _;
  13016. };
  13017. },
  13018. 61448: (s, o, i) => {
  13019. var u = i(20426),
  13020. _ = i(49326);
  13021. s.exports = function has(s, o) {
  13022. return null != s && _(s, o, u);
  13023. };
  13024. },
  13025. 80631: (s, o, i) => {
  13026. var u = i(28077),
  13027. _ = i(49326);
  13028. s.exports = function hasIn(s, o) {
  13029. return null != s && _(s, o, u);
  13030. };
  13031. },
  13032. 83488: (s) => {
  13033. s.exports = function identity(s) {
  13034. return s;
  13035. };
  13036. },
  13037. 72428: (s, o, i) => {
  13038. var u = i(27534),
  13039. _ = i(40346),
  13040. w = Object.prototype,
  13041. x = w.hasOwnProperty,
  13042. C = w.propertyIsEnumerable,
  13043. j = u(
  13044. (function () {
  13045. return arguments;
  13046. })()
  13047. )
  13048. ? u
  13049. : function (s) {
  13050. return _(s) && x.call(s, 'callee') && !C.call(s, 'callee');
  13051. };
  13052. s.exports = j;
  13053. },
  13054. 56449: (s) => {
  13055. var o = Array.isArray;
  13056. s.exports = o;
  13057. },
  13058. 64894: (s, o, i) => {
  13059. var u = i(1882),
  13060. _ = i(30294);
  13061. s.exports = function isArrayLike(s) {
  13062. return null != s && _(s.length) && !u(s);
  13063. };
  13064. },
  13065. 83693: (s, o, i) => {
  13066. var u = i(64894),
  13067. _ = i(40346);
  13068. s.exports = function isArrayLikeObject(s) {
  13069. return _(s) && u(s);
  13070. };
  13071. },
  13072. 53812: (s, o, i) => {
  13073. var u = i(72552),
  13074. _ = i(40346);
  13075. s.exports = function isBoolean(s) {
  13076. return !0 === s || !1 === s || (_(s) && '[object Boolean]' == u(s));
  13077. };
  13078. },
  13079. 3656: (s, o, i) => {
  13080. s = i.nmd(s);
  13081. var u = i(9325),
  13082. _ = i(89935),
  13083. w = o && !o.nodeType && o,
  13084. x = w && s && !s.nodeType && s,
  13085. C = x && x.exports === w ? u.Buffer : void 0,
  13086. j = (C ? C.isBuffer : void 0) || _;
  13087. s.exports = j;
  13088. },
  13089. 62193: (s, o, i) => {
  13090. var u = i(88984),
  13091. _ = i(5861),
  13092. w = i(72428),
  13093. x = i(56449),
  13094. C = i(64894),
  13095. j = i(3656),
  13096. L = i(55527),
  13097. B = i(37167),
  13098. $ = Object.prototype.hasOwnProperty;
  13099. s.exports = function isEmpty(s) {
  13100. if (null == s) return !0;
  13101. if (
  13102. C(s) &&
  13103. (x(s) ||
  13104. 'string' == typeof s ||
  13105. 'function' == typeof s.splice ||
  13106. j(s) ||
  13107. B(s) ||
  13108. w(s))
  13109. )
  13110. return !s.length;
  13111. var o = _(s);
  13112. if ('[object Map]' == o || '[object Set]' == o) return !s.size;
  13113. if (L(s)) return !u(s).length;
  13114. for (var i in s) if ($.call(s, i)) return !1;
  13115. return !0;
  13116. };
  13117. },
  13118. 2404: (s, o, i) => {
  13119. var u = i(60270);
  13120. s.exports = function isEqual(s, o) {
  13121. return u(s, o);
  13122. };
  13123. },
  13124. 23546: (s, o, i) => {
  13125. var u = i(72552),
  13126. _ = i(40346),
  13127. w = i(11331);
  13128. s.exports = function isError(s) {
  13129. if (!_(s)) return !1;
  13130. var o = u(s);
  13131. return (
  13132. '[object Error]' == o ||
  13133. '[object DOMException]' == o ||
  13134. ('string' == typeof s.message && 'string' == typeof s.name && !w(s))
  13135. );
  13136. };
  13137. },
  13138. 1882: (s, o, i) => {
  13139. var u = i(72552),
  13140. _ = i(23805);
  13141. s.exports = function isFunction(s) {
  13142. if (!_(s)) return !1;
  13143. var o = u(s);
  13144. return (
  13145. '[object Function]' == o ||
  13146. '[object GeneratorFunction]' == o ||
  13147. '[object AsyncFunction]' == o ||
  13148. '[object Proxy]' == o
  13149. );
  13150. };
  13151. },
  13152. 30294: (s) => {
  13153. s.exports = function isLength(s) {
  13154. return 'number' == typeof s && s > -1 && s % 1 == 0 && s <= 9007199254740991;
  13155. };
  13156. },
  13157. 87730: (s, o, i) => {
  13158. var u = i(29172),
  13159. _ = i(27301),
  13160. w = i(86009),
  13161. x = w && w.isMap,
  13162. C = x ? _(x) : u;
  13163. s.exports = C;
  13164. },
  13165. 5187: (s) => {
  13166. s.exports = function isNull(s) {
  13167. return null === s;
  13168. };
  13169. },
  13170. 98023: (s, o, i) => {
  13171. var u = i(72552),
  13172. _ = i(40346);
  13173. s.exports = function isNumber(s) {
  13174. return 'number' == typeof s || (_(s) && '[object Number]' == u(s));
  13175. };
  13176. },
  13177. 23805: (s) => {
  13178. s.exports = function isObject(s) {
  13179. var o = typeof s;
  13180. return null != s && ('object' == o || 'function' == o);
  13181. };
  13182. },
  13183. 40346: (s) => {
  13184. s.exports = function isObjectLike(s) {
  13185. return null != s && 'object' == typeof s;
  13186. };
  13187. },
  13188. 11331: (s, o, i) => {
  13189. var u = i(72552),
  13190. _ = i(28879),
  13191. w = i(40346),
  13192. x = Function.prototype,
  13193. C = Object.prototype,
  13194. j = x.toString,
  13195. L = C.hasOwnProperty,
  13196. B = j.call(Object);
  13197. s.exports = function isPlainObject(s) {
  13198. if (!w(s) || '[object Object]' != u(s)) return !1;
  13199. var o = _(s);
  13200. if (null === o) return !0;
  13201. var i = L.call(o, 'constructor') && o.constructor;
  13202. return 'function' == typeof i && i instanceof i && j.call(i) == B;
  13203. };
  13204. },
  13205. 38440: (s, o, i) => {
  13206. var u = i(16038),
  13207. _ = i(27301),
  13208. w = i(86009),
  13209. x = w && w.isSet,
  13210. C = x ? _(x) : u;
  13211. s.exports = C;
  13212. },
  13213. 85015: (s, o, i) => {
  13214. var u = i(72552),
  13215. _ = i(56449),
  13216. w = i(40346);
  13217. s.exports = function isString(s) {
  13218. return 'string' == typeof s || (!_(s) && w(s) && '[object String]' == u(s));
  13219. };
  13220. },
  13221. 44394: (s, o, i) => {
  13222. var u = i(72552),
  13223. _ = i(40346);
  13224. s.exports = function isSymbol(s) {
  13225. return 'symbol' == typeof s || (_(s) && '[object Symbol]' == u(s));
  13226. };
  13227. },
  13228. 37167: (s, o, i) => {
  13229. var u = i(4901),
  13230. _ = i(27301),
  13231. w = i(86009),
  13232. x = w && w.isTypedArray,
  13233. C = x ? _(x) : u;
  13234. s.exports = C;
  13235. },
  13236. 47886: (s, o, i) => {
  13237. var u = i(5861),
  13238. _ = i(40346);
  13239. s.exports = function isWeakMap(s) {
  13240. return _(s) && '[object WeakMap]' == u(s);
  13241. };
  13242. },
  13243. 33855: (s, o, i) => {
  13244. var u = i(9999),
  13245. _ = i(15389);
  13246. s.exports = function iteratee(s) {
  13247. return _('function' == typeof s ? s : u(s, 1));
  13248. };
  13249. },
  13250. 95950: (s, o, i) => {
  13251. var u = i(70695),
  13252. _ = i(88984),
  13253. w = i(64894);
  13254. s.exports = function keys(s) {
  13255. return w(s) ? u(s) : _(s);
  13256. };
  13257. },
  13258. 37241: (s, o, i) => {
  13259. var u = i(70695),
  13260. _ = i(72903),
  13261. w = i(64894);
  13262. s.exports = function keysIn(s) {
  13263. return w(s) ? u(s, !0) : _(s);
  13264. };
  13265. },
  13266. 68090: (s) => {
  13267. s.exports = function last(s) {
  13268. var o = null == s ? 0 : s.length;
  13269. return o ? s[o - 1] : void 0;
  13270. };
  13271. },
  13272. 50104: (s, o, i) => {
  13273. var u = i(53661);
  13274. function memoize(s, o) {
  13275. if ('function' != typeof s || (null != o && 'function' != typeof o))
  13276. throw new TypeError('Expected a function');
  13277. var memoized = function () {
  13278. var i = arguments,
  13279. u = o ? o.apply(this, i) : i[0],
  13280. _ = memoized.cache;
  13281. if (_.has(u)) return _.get(u);
  13282. var w = s.apply(this, i);
  13283. return (memoized.cache = _.set(u, w) || _), w;
  13284. };
  13285. return (memoized.cache = new (memoize.Cache || u)()), memoized;
  13286. }
  13287. (memoize.Cache = u), (s.exports = memoize);
  13288. },
  13289. 55364: (s, o, i) => {
  13290. var u = i(85250),
  13291. _ = i(20999)(function (s, o, i) {
  13292. u(s, o, i);
  13293. });
  13294. s.exports = _;
  13295. },
  13296. 6048: (s) => {
  13297. s.exports = function negate(s) {
  13298. if ('function' != typeof s) throw new TypeError('Expected a function');
  13299. return function () {
  13300. var o = arguments;
  13301. switch (o.length) {
  13302. case 0:
  13303. return !s.call(this);
  13304. case 1:
  13305. return !s.call(this, o[0]);
  13306. case 2:
  13307. return !s.call(this, o[0], o[1]);
  13308. case 3:
  13309. return !s.call(this, o[0], o[1], o[2]);
  13310. }
  13311. return !s.apply(this, o);
  13312. };
  13313. };
  13314. },
  13315. 63950: (s) => {
  13316. s.exports = function noop() {};
  13317. },
  13318. 10124: (s, o, i) => {
  13319. var u = i(9325);
  13320. s.exports = function () {
  13321. return u.Date.now();
  13322. };
  13323. },
  13324. 90179: (s, o, i) => {
  13325. var u = i(34932),
  13326. _ = i(9999),
  13327. w = i(19931),
  13328. x = i(31769),
  13329. C = i(21791),
  13330. j = i(53138),
  13331. L = i(38816),
  13332. B = i(83349),
  13333. $ = L(function (s, o) {
  13334. var i = {};
  13335. if (null == s) return i;
  13336. var L = !1;
  13337. (o = u(o, function (o) {
  13338. return (o = x(o, s)), L || (L = o.length > 1), o;
  13339. })),
  13340. C(s, B(s), i),
  13341. L && (i = _(i, 7, j));
  13342. for (var $ = o.length; $--; ) w(i, o[$]);
  13343. return i;
  13344. });
  13345. s.exports = $;
  13346. },
  13347. 50583: (s, o, i) => {
  13348. var u = i(47237),
  13349. _ = i(17255),
  13350. w = i(28586),
  13351. x = i(77797);
  13352. s.exports = function property(s) {
  13353. return w(s) ? u(x(s)) : _(s);
  13354. };
  13355. },
  13356. 84195: (s, o, i) => {
  13357. var u = i(66977),
  13358. _ = i(38816),
  13359. w = _(function (s, o) {
  13360. return u(s, 256, void 0, void 0, void 0, o);
  13361. });
  13362. s.exports = w;
  13363. },
  13364. 40860: (s, o, i) => {
  13365. var u = i(40882),
  13366. _ = i(80909),
  13367. w = i(15389),
  13368. x = i(85558),
  13369. C = i(56449);
  13370. s.exports = function reduce(s, o, i) {
  13371. var j = C(s) ? u : x,
  13372. L = arguments.length < 3;
  13373. return j(s, w(o, 4), i, L, _);
  13374. };
  13375. },
  13376. 63560: (s, o, i) => {
  13377. var u = i(73170);
  13378. s.exports = function set(s, o, i) {
  13379. return null == s ? s : u(s, o, i);
  13380. };
  13381. },
  13382. 42426: (s, o, i) => {
  13383. var u = i(14248),
  13384. _ = i(15389),
  13385. w = i(90916),
  13386. x = i(56449),
  13387. C = i(36800);
  13388. s.exports = function some(s, o, i) {
  13389. var j = x(s) ? u : w;
  13390. return i && C(s, o, i) && (o = void 0), j(s, _(o, 3));
  13391. };
  13392. },
  13393. 63345: (s) => {
  13394. s.exports = function stubArray() {
  13395. return [];
  13396. };
  13397. },
  13398. 89935: (s) => {
  13399. s.exports = function stubFalse() {
  13400. return !1;
  13401. };
  13402. },
  13403. 17400: (s, o, i) => {
  13404. var u = i(99374),
  13405. _ = 1 / 0;
  13406. s.exports = function toFinite(s) {
  13407. return s
  13408. ? (s = u(s)) === _ || s === -1 / 0
  13409. ? 17976931348623157e292 * (s < 0 ? -1 : 1)
  13410. : s == s
  13411. ? s
  13412. : 0
  13413. : 0 === s
  13414. ? s
  13415. : 0;
  13416. };
  13417. },
  13418. 61489: (s, o, i) => {
  13419. var u = i(17400);
  13420. s.exports = function toInteger(s) {
  13421. var o = u(s),
  13422. i = o % 1;
  13423. return o == o ? (i ? o - i : o) : 0;
  13424. };
  13425. },
  13426. 80218: (s, o, i) => {
  13427. var u = i(13222);
  13428. s.exports = function toLower(s) {
  13429. return u(s).toLowerCase();
  13430. };
  13431. },
  13432. 99374: (s, o, i) => {
  13433. var u = i(54128),
  13434. _ = i(23805),
  13435. w = i(44394),
  13436. x = /^[-+]0x[0-9a-f]+$/i,
  13437. C = /^0b[01]+$/i,
  13438. j = /^0o[0-7]+$/i,
  13439. L = parseInt;
  13440. s.exports = function toNumber(s) {
  13441. if ('number' == typeof s) return s;
  13442. if (w(s)) return NaN;
  13443. if (_(s)) {
  13444. var o = 'function' == typeof s.valueOf ? s.valueOf() : s;
  13445. s = _(o) ? o + '' : o;
  13446. }
  13447. if ('string' != typeof s) return 0 === s ? s : +s;
  13448. s = u(s);
  13449. var i = C.test(s);
  13450. return i || j.test(s) ? L(s.slice(2), i ? 2 : 8) : x.test(s) ? NaN : +s;
  13451. };
  13452. },
  13453. 42072: (s, o, i) => {
  13454. var u = i(34932),
  13455. _ = i(23007),
  13456. w = i(56449),
  13457. x = i(44394),
  13458. C = i(61802),
  13459. j = i(77797),
  13460. L = i(13222);
  13461. s.exports = function toPath(s) {
  13462. return w(s) ? u(s, j) : x(s) ? [s] : _(C(L(s)));
  13463. };
  13464. },
  13465. 69884: (s, o, i) => {
  13466. var u = i(21791),
  13467. _ = i(37241);
  13468. s.exports = function toPlainObject(s) {
  13469. return u(s, _(s));
  13470. };
  13471. },
  13472. 13222: (s, o, i) => {
  13473. var u = i(77556);
  13474. s.exports = function toString(s) {
  13475. return null == s ? '' : u(s);
  13476. };
  13477. },
  13478. 55808: (s, o, i) => {
  13479. var u = i(12507)('toUpperCase');
  13480. s.exports = u;
  13481. },
  13482. 66645: (s, o, i) => {
  13483. var u = i(1733),
  13484. _ = i(45434),
  13485. w = i(13222),
  13486. x = i(22225);
  13487. s.exports = function words(s, o, i) {
  13488. return (
  13489. (s = w(s)), void 0 === (o = i ? void 0 : o) ? (_(s) ? x(s) : u(s)) : s.match(o) || []
  13490. );
  13491. };
  13492. },
  13493. 53758: (s, o, i) => {
  13494. var u = i(30980),
  13495. _ = i(56017),
  13496. w = i(94033),
  13497. x = i(56449),
  13498. C = i(40346),
  13499. j = i(80257),
  13500. L = Object.prototype.hasOwnProperty;
  13501. function lodash(s) {
  13502. if (C(s) && !x(s) && !(s instanceof u)) {
  13503. if (s instanceof _) return s;
  13504. if (L.call(s, '__wrapped__')) return j(s);
  13505. }
  13506. return new _(s);
  13507. }
  13508. (lodash.prototype = w.prototype),
  13509. (lodash.prototype.constructor = lodash),
  13510. (s.exports = lodash);
  13511. },
  13512. 47248: (s, o, i) => {
  13513. var u = i(16547),
  13514. _ = i(51234);
  13515. s.exports = function zipObject(s, o) {
  13516. return _(s || [], o || [], u);
  13517. };
  13518. },
  13519. 43768: (s, o, i) => {
  13520. 'use strict';
  13521. var u = i(45981),
  13522. _ = i(85587);
  13523. (o.highlight = highlight),
  13524. (o.highlightAuto = function highlightAuto(s, o) {
  13525. var i,
  13526. x,
  13527. C,
  13528. j,
  13529. L = o || {},
  13530. B = L.subset || u.listLanguages(),
  13531. $ = L.prefix,
  13532. V = B.length,
  13533. U = -1;
  13534. null == $ && ($ = w);
  13535. if ('string' != typeof s) throw _('Expected `string` for value, got `%s`', s);
  13536. (x = { relevance: 0, language: null, value: [] }),
  13537. (i = { relevance: 0, language: null, value: [] });
  13538. for (; ++U < V; )
  13539. (j = B[U]),
  13540. u.getLanguage(j) &&
  13541. (((C = highlight(j, s, o)).language = j),
  13542. C.relevance > x.relevance && (x = C),
  13543. C.relevance > i.relevance && ((x = i), (i = C)));
  13544. x.language && (i.secondBest = x);
  13545. return i;
  13546. }),
  13547. (o.registerLanguage = function registerLanguage(s, o) {
  13548. u.registerLanguage(s, o);
  13549. }),
  13550. (o.listLanguages = function listLanguages() {
  13551. return u.listLanguages();
  13552. }),
  13553. (o.registerAlias = function registerAlias(s, o) {
  13554. var i,
  13555. _ = s;
  13556. o && ((_ = {})[s] = o);
  13557. for (i in _) u.registerAliases(_[i], { languageName: i });
  13558. }),
  13559. (Emitter.prototype.addText = function text(s) {
  13560. var o,
  13561. i,
  13562. u = this.stack;
  13563. if ('' === s) return;
  13564. (o = u[u.length - 1]),
  13565. (i = o.children[o.children.length - 1]) && 'text' === i.type
  13566. ? (i.value += s)
  13567. : o.children.push({ type: 'text', value: s });
  13568. }),
  13569. (Emitter.prototype.addKeyword = function addKeyword(s, o) {
  13570. this.openNode(o), this.addText(s), this.closeNode();
  13571. }),
  13572. (Emitter.prototype.addSublanguage = function addSublanguage(s, o) {
  13573. var i = this.stack,
  13574. u = i[i.length - 1],
  13575. _ = s.rootNode.children,
  13576. w = o
  13577. ? {
  13578. type: 'element',
  13579. tagName: 'span',
  13580. properties: { className: [o] },
  13581. children: _
  13582. }
  13583. : _;
  13584. u.children = u.children.concat(w);
  13585. }),
  13586. (Emitter.prototype.openNode = function open(s) {
  13587. var o = this.stack,
  13588. i = this.options.classPrefix + s,
  13589. u = o[o.length - 1],
  13590. _ = {
  13591. type: 'element',
  13592. tagName: 'span',
  13593. properties: { className: [i] },
  13594. children: []
  13595. };
  13596. u.children.push(_), o.push(_);
  13597. }),
  13598. (Emitter.prototype.closeNode = function close() {
  13599. this.stack.pop();
  13600. }),
  13601. (Emitter.prototype.closeAllNodes = noop),
  13602. (Emitter.prototype.finalize = noop),
  13603. (Emitter.prototype.toHTML = function toHtmlNoop() {
  13604. return '';
  13605. });
  13606. var w = 'hljs-';
  13607. function highlight(s, o, i) {
  13608. var x,
  13609. C = u.configure({}),
  13610. j = (i || {}).prefix;
  13611. if ('string' != typeof s) throw _('Expected `string` for name, got `%s`', s);
  13612. if (!u.getLanguage(s)) throw _('Unknown language: `%s` is not registered', s);
  13613. if ('string' != typeof o) throw _('Expected `string` for value, got `%s`', o);
  13614. if (
  13615. (null == j && (j = w),
  13616. u.configure({ __emitter: Emitter, classPrefix: j }),
  13617. (x = u.highlight(o, { language: s, ignoreIllegals: !0 })),
  13618. u.configure(C || {}),
  13619. x.errorRaised)
  13620. )
  13621. throw x.errorRaised;
  13622. return {
  13623. relevance: x.relevance,
  13624. language: x.language,
  13625. value: x.emitter.rootNode.children
  13626. };
  13627. }
  13628. function Emitter(s) {
  13629. (this.options = s), (this.rootNode = { children: [] }), (this.stack = [this.rootNode]);
  13630. }
  13631. function noop() {}
  13632. },
  13633. 92340: (s, o, i) => {
  13634. const u = i(6048);
  13635. function coerceElementMatchingCallback(s) {
  13636. return 'string' == typeof s
  13637. ? (o) => o.element === s
  13638. : s.constructor && s.extend
  13639. ? (o) => o instanceof s
  13640. : s;
  13641. }
  13642. class ArraySlice {
  13643. constructor(s) {
  13644. this.elements = s || [];
  13645. }
  13646. toValue() {
  13647. return this.elements.map((s) => s.toValue());
  13648. }
  13649. map(s, o) {
  13650. return this.elements.map(s, o);
  13651. }
  13652. flatMap(s, o) {
  13653. return this.map(s, o).reduce((s, o) => s.concat(o), []);
  13654. }
  13655. compactMap(s, o) {
  13656. const i = [];
  13657. return (
  13658. this.forEach((u) => {
  13659. const _ = s.bind(o)(u);
  13660. _ && i.push(_);
  13661. }),
  13662. i
  13663. );
  13664. }
  13665. filter(s, o) {
  13666. return (
  13667. (s = coerceElementMatchingCallback(s)), new ArraySlice(this.elements.filter(s, o))
  13668. );
  13669. }
  13670. reject(s, o) {
  13671. return (
  13672. (s = coerceElementMatchingCallback(s)),
  13673. new ArraySlice(this.elements.filter(u(s), o))
  13674. );
  13675. }
  13676. find(s, o) {
  13677. return (s = coerceElementMatchingCallback(s)), this.elements.find(s, o);
  13678. }
  13679. forEach(s, o) {
  13680. this.elements.forEach(s, o);
  13681. }
  13682. reduce(s, o) {
  13683. return this.elements.reduce(s, o);
  13684. }
  13685. includes(s) {
  13686. return this.elements.some((o) => o.equals(s));
  13687. }
  13688. shift() {
  13689. return this.elements.shift();
  13690. }
  13691. unshift(s) {
  13692. this.elements.unshift(this.refract(s));
  13693. }
  13694. push(s) {
  13695. return this.elements.push(this.refract(s)), this;
  13696. }
  13697. add(s) {
  13698. this.push(s);
  13699. }
  13700. get(s) {
  13701. return this.elements[s];
  13702. }
  13703. getValue(s) {
  13704. const o = this.elements[s];
  13705. if (o) return o.toValue();
  13706. }
  13707. get length() {
  13708. return this.elements.length;
  13709. }
  13710. get isEmpty() {
  13711. return 0 === this.elements.length;
  13712. }
  13713. get first() {
  13714. return this.elements[0];
  13715. }
  13716. }
  13717. 'undefined' != typeof Symbol &&
  13718. (ArraySlice.prototype[Symbol.iterator] = function symbol() {
  13719. return this.elements[Symbol.iterator]();
  13720. }),
  13721. (s.exports = ArraySlice);
  13722. },
  13723. 55973: (s) => {
  13724. class KeyValuePair {
  13725. constructor(s, o) {
  13726. (this.key = s), (this.value = o);
  13727. }
  13728. clone() {
  13729. const s = new KeyValuePair();
  13730. return (
  13731. this.key && (s.key = this.key.clone()),
  13732. this.value && (s.value = this.value.clone()),
  13733. s
  13734. );
  13735. }
  13736. }
  13737. s.exports = KeyValuePair;
  13738. },
  13739. 3110: (s, o, i) => {
  13740. const u = i(5187),
  13741. _ = i(85015),
  13742. w = i(98023),
  13743. x = i(53812),
  13744. C = i(23805),
  13745. j = i(85105),
  13746. L = i(86804);
  13747. class Namespace {
  13748. constructor(s) {
  13749. (this.elementMap = {}),
  13750. (this.elementDetection = []),
  13751. (this.Element = L.Element),
  13752. (this.KeyValuePair = L.KeyValuePair),
  13753. (s && s.noDefault) || this.useDefault(),
  13754. (this._attributeElementKeys = []),
  13755. (this._attributeElementArrayKeys = []);
  13756. }
  13757. use(s) {
  13758. return (
  13759. s.namespace && s.namespace({ base: this }), s.load && s.load({ base: this }), this
  13760. );
  13761. }
  13762. useDefault() {
  13763. return (
  13764. this.register('null', L.NullElement)
  13765. .register('string', L.StringElement)
  13766. .register('number', L.NumberElement)
  13767. .register('boolean', L.BooleanElement)
  13768. .register('array', L.ArrayElement)
  13769. .register('object', L.ObjectElement)
  13770. .register('member', L.MemberElement)
  13771. .register('ref', L.RefElement)
  13772. .register('link', L.LinkElement),
  13773. this.detect(u, L.NullElement, !1)
  13774. .detect(_, L.StringElement, !1)
  13775. .detect(w, L.NumberElement, !1)
  13776. .detect(x, L.BooleanElement, !1)
  13777. .detect(Array.isArray, L.ArrayElement, !1)
  13778. .detect(C, L.ObjectElement, !1),
  13779. this
  13780. );
  13781. }
  13782. register(s, o) {
  13783. return (this._elements = void 0), (this.elementMap[s] = o), this;
  13784. }
  13785. unregister(s) {
  13786. return (this._elements = void 0), delete this.elementMap[s], this;
  13787. }
  13788. detect(s, o, i) {
  13789. return (
  13790. void 0 === i || i
  13791. ? this.elementDetection.unshift([s, o])
  13792. : this.elementDetection.push([s, o]),
  13793. this
  13794. );
  13795. }
  13796. toElement(s) {
  13797. if (s instanceof this.Element) return s;
  13798. let o;
  13799. for (let i = 0; i < this.elementDetection.length; i += 1) {
  13800. const u = this.elementDetection[i][0],
  13801. _ = this.elementDetection[i][1];
  13802. if (u(s)) {
  13803. o = new _(s);
  13804. break;
  13805. }
  13806. }
  13807. return o;
  13808. }
  13809. getElementClass(s) {
  13810. const o = this.elementMap[s];
  13811. return void 0 === o ? this.Element : o;
  13812. }
  13813. fromRefract(s) {
  13814. return this.serialiser.deserialise(s);
  13815. }
  13816. toRefract(s) {
  13817. return this.serialiser.serialise(s);
  13818. }
  13819. get elements() {
  13820. return (
  13821. void 0 === this._elements &&
  13822. ((this._elements = { Element: this.Element }),
  13823. Object.keys(this.elementMap).forEach((s) => {
  13824. const o = s[0].toUpperCase() + s.substr(1);
  13825. this._elements[o] = this.elementMap[s];
  13826. })),
  13827. this._elements
  13828. );
  13829. }
  13830. get serialiser() {
  13831. return new j(this);
  13832. }
  13833. }
  13834. (j.prototype.Namespace = Namespace), (s.exports = Namespace);
  13835. },
  13836. 10866: (s, o, i) => {
  13837. const u = i(6048),
  13838. _ = i(92340);
  13839. class ObjectSlice extends _ {
  13840. map(s, o) {
  13841. return this.elements.map((i) => s.bind(o)(i.value, i.key, i));
  13842. }
  13843. filter(s, o) {
  13844. return new ObjectSlice(this.elements.filter((i) => s.bind(o)(i.value, i.key, i)));
  13845. }
  13846. reject(s, o) {
  13847. return this.filter(u(s.bind(o)));
  13848. }
  13849. forEach(s, o) {
  13850. return this.elements.forEach((i, u) => {
  13851. s.bind(o)(i.value, i.key, i, u);
  13852. });
  13853. }
  13854. keys() {
  13855. return this.map((s, o) => o.toValue());
  13856. }
  13857. values() {
  13858. return this.map((s) => s.toValue());
  13859. }
  13860. }
  13861. s.exports = ObjectSlice;
  13862. },
  13863. 86804: (s, o, i) => {
  13864. const u = i(10316),
  13865. _ = i(41067),
  13866. w = i(71167),
  13867. x = i(40239),
  13868. C = i(12242),
  13869. j = i(6233),
  13870. L = i(87726),
  13871. B = i(61045),
  13872. $ = i(86303),
  13873. V = i(14540),
  13874. U = i(92340),
  13875. z = i(10866),
  13876. Y = i(55973);
  13877. function refract(s) {
  13878. if (s instanceof u) return s;
  13879. if ('string' == typeof s) return new w(s);
  13880. if ('number' == typeof s) return new x(s);
  13881. if ('boolean' == typeof s) return new C(s);
  13882. if (null === s) return new _();
  13883. if (Array.isArray(s)) return new j(s.map(refract));
  13884. if ('object' == typeof s) {
  13885. return new B(s);
  13886. }
  13887. return s;
  13888. }
  13889. (u.prototype.ObjectElement = B),
  13890. (u.prototype.RefElement = V),
  13891. (u.prototype.MemberElement = L),
  13892. (u.prototype.refract = refract),
  13893. (U.prototype.refract = refract),
  13894. (s.exports = {
  13895. Element: u,
  13896. NullElement: _,
  13897. StringElement: w,
  13898. NumberElement: x,
  13899. BooleanElement: C,
  13900. ArrayElement: j,
  13901. MemberElement: L,
  13902. ObjectElement: B,
  13903. LinkElement: $,
  13904. RefElement: V,
  13905. refract,
  13906. ArraySlice: U,
  13907. ObjectSlice: z,
  13908. KeyValuePair: Y
  13909. });
  13910. },
  13911. 86303: (s, o, i) => {
  13912. const u = i(10316);
  13913. s.exports = class LinkElement extends u {
  13914. constructor(s, o, i) {
  13915. super(s || [], o, i), (this.element = 'link');
  13916. }
  13917. get relation() {
  13918. return this.attributes.get('relation');
  13919. }
  13920. set relation(s) {
  13921. this.attributes.set('relation', s);
  13922. }
  13923. get href() {
  13924. return this.attributes.get('href');
  13925. }
  13926. set href(s) {
  13927. this.attributes.set('href', s);
  13928. }
  13929. };
  13930. },
  13931. 14540: (s, o, i) => {
  13932. const u = i(10316);
  13933. s.exports = class RefElement extends u {
  13934. constructor(s, o, i) {
  13935. super(s || [], o, i), (this.element = 'ref'), this.path || (this.path = 'element');
  13936. }
  13937. get path() {
  13938. return this.attributes.get('path');
  13939. }
  13940. set path(s) {
  13941. this.attributes.set('path', s);
  13942. }
  13943. };
  13944. },
  13945. 34035: (s, o, i) => {
  13946. const u = i(3110),
  13947. _ = i(86804);
  13948. (o.g$ = u),
  13949. (o.KeyValuePair = i(55973)),
  13950. (o.G6 = _.ArraySlice),
  13951. (o.ot = _.ObjectSlice),
  13952. (o.Hg = _.Element),
  13953. (o.Om = _.StringElement),
  13954. (o.kT = _.NumberElement),
  13955. (o.bd = _.BooleanElement),
  13956. (o.Os = _.NullElement),
  13957. (o.wE = _.ArrayElement),
  13958. (o.Sh = _.ObjectElement),
  13959. (o.Pr = _.MemberElement),
  13960. (o.sI = _.RefElement),
  13961. (o.Ft = _.LinkElement),
  13962. (o.e = _.refract),
  13963. i(85105),
  13964. i(75147);
  13965. },
  13966. 6233: (s, o, i) => {
  13967. const u = i(6048),
  13968. _ = i(10316),
  13969. w = i(92340);
  13970. class ArrayElement extends _ {
  13971. constructor(s, o, i) {
  13972. super(s || [], o, i), (this.element = 'array');
  13973. }
  13974. primitive() {
  13975. return 'array';
  13976. }
  13977. get(s) {
  13978. return this.content[s];
  13979. }
  13980. getValue(s) {
  13981. const o = this.get(s);
  13982. if (o) return o.toValue();
  13983. }
  13984. getIndex(s) {
  13985. return this.content[s];
  13986. }
  13987. set(s, o) {
  13988. return (this.content[s] = this.refract(o)), this;
  13989. }
  13990. remove(s) {
  13991. const o = this.content.splice(s, 1);
  13992. return o.length ? o[0] : null;
  13993. }
  13994. map(s, o) {
  13995. return this.content.map(s, o);
  13996. }
  13997. flatMap(s, o) {
  13998. return this.map(s, o).reduce((s, o) => s.concat(o), []);
  13999. }
  14000. compactMap(s, o) {
  14001. const i = [];
  14002. return (
  14003. this.forEach((u) => {
  14004. const _ = s.bind(o)(u);
  14005. _ && i.push(_);
  14006. }),
  14007. i
  14008. );
  14009. }
  14010. filter(s, o) {
  14011. return new w(this.content.filter(s, o));
  14012. }
  14013. reject(s, o) {
  14014. return this.filter(u(s), o);
  14015. }
  14016. reduce(s, o) {
  14017. let i, u;
  14018. void 0 !== o
  14019. ? ((i = 0), (u = this.refract(o)))
  14020. : ((i = 1), (u = 'object' === this.primitive() ? this.first.value : this.first));
  14021. for (let o = i; o < this.length; o += 1) {
  14022. const i = this.content[o];
  14023. u =
  14024. 'object' === this.primitive()
  14025. ? this.refract(s(u, i.value, i.key, i, this))
  14026. : this.refract(s(u, i, o, this));
  14027. }
  14028. return u;
  14029. }
  14030. forEach(s, o) {
  14031. this.content.forEach((i, u) => {
  14032. s.bind(o)(i, this.refract(u));
  14033. });
  14034. }
  14035. shift() {
  14036. return this.content.shift();
  14037. }
  14038. unshift(s) {
  14039. this.content.unshift(this.refract(s));
  14040. }
  14041. push(s) {
  14042. return this.content.push(this.refract(s)), this;
  14043. }
  14044. add(s) {
  14045. this.push(s);
  14046. }
  14047. findElements(s, o) {
  14048. const i = o || {},
  14049. u = !!i.recursive,
  14050. _ = void 0 === i.results ? [] : i.results;
  14051. return (
  14052. this.forEach((o, i, w) => {
  14053. u && void 0 !== o.findElements && o.findElements(s, { results: _, recursive: u }),
  14054. s(o, i, w) && _.push(o);
  14055. }),
  14056. _
  14057. );
  14058. }
  14059. find(s) {
  14060. return new w(this.findElements(s, { recursive: !0 }));
  14061. }
  14062. findByElement(s) {
  14063. return this.find((o) => o.element === s);
  14064. }
  14065. findByClass(s) {
  14066. return this.find((o) => o.classes.includes(s));
  14067. }
  14068. getById(s) {
  14069. return this.find((o) => o.id.toValue() === s).first;
  14070. }
  14071. includes(s) {
  14072. return this.content.some((o) => o.equals(s));
  14073. }
  14074. contains(s) {
  14075. return this.includes(s);
  14076. }
  14077. empty() {
  14078. return new this.constructor([]);
  14079. }
  14080. 'fantasy-land/empty'() {
  14081. return this.empty();
  14082. }
  14083. concat(s) {
  14084. return new this.constructor(this.content.concat(s.content));
  14085. }
  14086. 'fantasy-land/concat'(s) {
  14087. return this.concat(s);
  14088. }
  14089. 'fantasy-land/map'(s) {
  14090. return new this.constructor(this.map(s));
  14091. }
  14092. 'fantasy-land/chain'(s) {
  14093. return this.map((o) => s(o), this).reduce((s, o) => s.concat(o), this.empty());
  14094. }
  14095. 'fantasy-land/filter'(s) {
  14096. return new this.constructor(this.content.filter(s));
  14097. }
  14098. 'fantasy-land/reduce'(s, o) {
  14099. return this.content.reduce(s, o);
  14100. }
  14101. get length() {
  14102. return this.content.length;
  14103. }
  14104. get isEmpty() {
  14105. return 0 === this.content.length;
  14106. }
  14107. get first() {
  14108. return this.getIndex(0);
  14109. }
  14110. get second() {
  14111. return this.getIndex(1);
  14112. }
  14113. get last() {
  14114. return this.getIndex(this.length - 1);
  14115. }
  14116. }
  14117. (ArrayElement.empty = function empty() {
  14118. return new this();
  14119. }),
  14120. (ArrayElement['fantasy-land/empty'] = ArrayElement.empty),
  14121. 'undefined' != typeof Symbol &&
  14122. (ArrayElement.prototype[Symbol.iterator] = function symbol() {
  14123. return this.content[Symbol.iterator]();
  14124. }),
  14125. (s.exports = ArrayElement);
  14126. },
  14127. 12242: (s, o, i) => {
  14128. const u = i(10316);
  14129. s.exports = class BooleanElement extends u {
  14130. constructor(s, o, i) {
  14131. super(s, o, i), (this.element = 'boolean');
  14132. }
  14133. primitive() {
  14134. return 'boolean';
  14135. }
  14136. };
  14137. },
  14138. 10316: (s, o, i) => {
  14139. const u = i(2404),
  14140. _ = i(55973),
  14141. w = i(92340);
  14142. class Element {
  14143. constructor(s, o, i) {
  14144. o && (this.meta = o), i && (this.attributes = i), (this.content = s);
  14145. }
  14146. freeze() {
  14147. Object.isFrozen(this) ||
  14148. (this._meta && ((this.meta.parent = this), this.meta.freeze()),
  14149. this._attributes && ((this.attributes.parent = this), this.attributes.freeze()),
  14150. this.children.forEach((s) => {
  14151. (s.parent = this), s.freeze();
  14152. }, this),
  14153. this.content && Array.isArray(this.content) && Object.freeze(this.content),
  14154. Object.freeze(this));
  14155. }
  14156. primitive() {}
  14157. clone() {
  14158. const s = new this.constructor();
  14159. return (
  14160. (s.element = this.element),
  14161. this.meta.length && (s._meta = this.meta.clone()),
  14162. this.attributes.length && (s._attributes = this.attributes.clone()),
  14163. this.content
  14164. ? this.content.clone
  14165. ? (s.content = this.content.clone())
  14166. : Array.isArray(this.content)
  14167. ? (s.content = this.content.map((s) => s.clone()))
  14168. : (s.content = this.content)
  14169. : (s.content = this.content),
  14170. s
  14171. );
  14172. }
  14173. toValue() {
  14174. return this.content instanceof Element
  14175. ? this.content.toValue()
  14176. : this.content instanceof _
  14177. ? {
  14178. key: this.content.key.toValue(),
  14179. value: this.content.value ? this.content.value.toValue() : void 0
  14180. }
  14181. : this.content && this.content.map
  14182. ? this.content.map((s) => s.toValue(), this)
  14183. : this.content;
  14184. }
  14185. toRef(s) {
  14186. if ('' === this.id.toValue())
  14187. throw Error('Cannot create reference to an element that does not contain an ID');
  14188. const o = new this.RefElement(this.id.toValue());
  14189. return s && (o.path = s), o;
  14190. }
  14191. findRecursive(...s) {
  14192. if (arguments.length > 1 && !this.isFrozen)
  14193. throw new Error(
  14194. 'Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`'
  14195. );
  14196. const o = s.pop();
  14197. let i = new w();
  14198. const append = (s, o) => (s.push(o), s),
  14199. checkElement = (s, i) => {
  14200. i.element === o && s.push(i);
  14201. const u = i.findRecursive(o);
  14202. return (
  14203. u && u.reduce(append, s),
  14204. i.content instanceof _ &&
  14205. (i.content.key && checkElement(s, i.content.key),
  14206. i.content.value && checkElement(s, i.content.value)),
  14207. s
  14208. );
  14209. };
  14210. return (
  14211. this.content &&
  14212. (this.content.element && checkElement(i, this.content),
  14213. Array.isArray(this.content) && this.content.reduce(checkElement, i)),
  14214. s.isEmpty ||
  14215. (i = i.filter((o) => {
  14216. let i = o.parents.map((s) => s.element);
  14217. for (const o in s) {
  14218. const u = s[o],
  14219. _ = i.indexOf(u);
  14220. if (-1 === _) return !1;
  14221. i = i.splice(0, _);
  14222. }
  14223. return !0;
  14224. })),
  14225. i
  14226. );
  14227. }
  14228. set(s) {
  14229. return (this.content = s), this;
  14230. }
  14231. equals(s) {
  14232. return u(this.toValue(), s);
  14233. }
  14234. getMetaProperty(s, o) {
  14235. if (!this.meta.hasKey(s)) {
  14236. if (this.isFrozen) {
  14237. const s = this.refract(o);
  14238. return s.freeze(), s;
  14239. }
  14240. this.meta.set(s, o);
  14241. }
  14242. return this.meta.get(s);
  14243. }
  14244. setMetaProperty(s, o) {
  14245. this.meta.set(s, o);
  14246. }
  14247. get element() {
  14248. return this._storedElement || 'element';
  14249. }
  14250. set element(s) {
  14251. this._storedElement = s;
  14252. }
  14253. get content() {
  14254. return this._content;
  14255. }
  14256. set content(s) {
  14257. if (s instanceof Element) this._content = s;
  14258. else if (s instanceof w) this.content = s.elements;
  14259. else if (
  14260. 'string' == typeof s ||
  14261. 'number' == typeof s ||
  14262. 'boolean' == typeof s ||
  14263. 'null' === s ||
  14264. null == s
  14265. )
  14266. this._content = s;
  14267. else if (s instanceof _) this._content = s;
  14268. else if (Array.isArray(s)) this._content = s.map(this.refract);
  14269. else {
  14270. if ('object' != typeof s) throw new Error('Cannot set content to given value');
  14271. this._content = Object.keys(s).map((o) => new this.MemberElement(o, s[o]));
  14272. }
  14273. }
  14274. get meta() {
  14275. if (!this._meta) {
  14276. if (this.isFrozen) {
  14277. const s = new this.ObjectElement();
  14278. return s.freeze(), s;
  14279. }
  14280. this._meta = new this.ObjectElement();
  14281. }
  14282. return this._meta;
  14283. }
  14284. set meta(s) {
  14285. s instanceof this.ObjectElement ? (this._meta = s) : this.meta.set(s || {});
  14286. }
  14287. get attributes() {
  14288. if (!this._attributes) {
  14289. if (this.isFrozen) {
  14290. const s = new this.ObjectElement();
  14291. return s.freeze(), s;
  14292. }
  14293. this._attributes = new this.ObjectElement();
  14294. }
  14295. return this._attributes;
  14296. }
  14297. set attributes(s) {
  14298. s instanceof this.ObjectElement
  14299. ? (this._attributes = s)
  14300. : this.attributes.set(s || {});
  14301. }
  14302. get id() {
  14303. return this.getMetaProperty('id', '');
  14304. }
  14305. set id(s) {
  14306. this.setMetaProperty('id', s);
  14307. }
  14308. get classes() {
  14309. return this.getMetaProperty('classes', []);
  14310. }
  14311. set classes(s) {
  14312. this.setMetaProperty('classes', s);
  14313. }
  14314. get title() {
  14315. return this.getMetaProperty('title', '');
  14316. }
  14317. set title(s) {
  14318. this.setMetaProperty('title', s);
  14319. }
  14320. get description() {
  14321. return this.getMetaProperty('description', '');
  14322. }
  14323. set description(s) {
  14324. this.setMetaProperty('description', s);
  14325. }
  14326. get links() {
  14327. return this.getMetaProperty('links', []);
  14328. }
  14329. set links(s) {
  14330. this.setMetaProperty('links', s);
  14331. }
  14332. get isFrozen() {
  14333. return Object.isFrozen(this);
  14334. }
  14335. get parents() {
  14336. let { parent: s } = this;
  14337. const o = new w();
  14338. for (; s; ) o.push(s), (s = s.parent);
  14339. return o;
  14340. }
  14341. get children() {
  14342. if (Array.isArray(this.content)) return new w(this.content);
  14343. if (this.content instanceof _) {
  14344. const s = new w([this.content.key]);
  14345. return this.content.value && s.push(this.content.value), s;
  14346. }
  14347. return this.content instanceof Element ? new w([this.content]) : new w();
  14348. }
  14349. get recursiveChildren() {
  14350. const s = new w();
  14351. return (
  14352. this.children.forEach((o) => {
  14353. s.push(o),
  14354. o.recursiveChildren.forEach((o) => {
  14355. s.push(o);
  14356. });
  14357. }),
  14358. s
  14359. );
  14360. }
  14361. }
  14362. s.exports = Element;
  14363. },
  14364. 87726: (s, o, i) => {
  14365. const u = i(55973),
  14366. _ = i(10316);
  14367. s.exports = class MemberElement extends _ {
  14368. constructor(s, o, i, _) {
  14369. super(new u(), i, _), (this.element = 'member'), (this.key = s), (this.value = o);
  14370. }
  14371. get key() {
  14372. return this.content.key;
  14373. }
  14374. set key(s) {
  14375. this.content.key = this.refract(s);
  14376. }
  14377. get value() {
  14378. return this.content.value;
  14379. }
  14380. set value(s) {
  14381. this.content.value = this.refract(s);
  14382. }
  14383. };
  14384. },
  14385. 41067: (s, o, i) => {
  14386. const u = i(10316);
  14387. s.exports = class NullElement extends u {
  14388. constructor(s, o, i) {
  14389. super(s || null, o, i), (this.element = 'null');
  14390. }
  14391. primitive() {
  14392. return 'null';
  14393. }
  14394. set() {
  14395. return new Error('Cannot set the value of null');
  14396. }
  14397. };
  14398. },
  14399. 40239: (s, o, i) => {
  14400. const u = i(10316);
  14401. s.exports = class NumberElement extends u {
  14402. constructor(s, o, i) {
  14403. super(s, o, i), (this.element = 'number');
  14404. }
  14405. primitive() {
  14406. return 'number';
  14407. }
  14408. };
  14409. },
  14410. 61045: (s, o, i) => {
  14411. const u = i(6048),
  14412. _ = i(23805),
  14413. w = i(6233),
  14414. x = i(87726),
  14415. C = i(10866);
  14416. s.exports = class ObjectElement extends w {
  14417. constructor(s, o, i) {
  14418. super(s || [], o, i), (this.element = 'object');
  14419. }
  14420. primitive() {
  14421. return 'object';
  14422. }
  14423. toValue() {
  14424. return this.content.reduce(
  14425. (s, o) => ((s[o.key.toValue()] = o.value ? o.value.toValue() : void 0), s),
  14426. {}
  14427. );
  14428. }
  14429. get(s) {
  14430. const o = this.getMember(s);
  14431. if (o) return o.value;
  14432. }
  14433. getMember(s) {
  14434. if (void 0 !== s) return this.content.find((o) => o.key.toValue() === s);
  14435. }
  14436. remove(s) {
  14437. let o = null;
  14438. return (
  14439. (this.content = this.content.filter((i) => i.key.toValue() !== s || ((o = i), !1))),
  14440. o
  14441. );
  14442. }
  14443. getKey(s) {
  14444. const o = this.getMember(s);
  14445. if (o) return o.key;
  14446. }
  14447. set(s, o) {
  14448. if (_(s))
  14449. return (
  14450. Object.keys(s).forEach((o) => {
  14451. this.set(o, s[o]);
  14452. }),
  14453. this
  14454. );
  14455. const i = s,
  14456. u = this.getMember(i);
  14457. return u ? (u.value = o) : this.content.push(new x(i, o)), this;
  14458. }
  14459. keys() {
  14460. return this.content.map((s) => s.key.toValue());
  14461. }
  14462. values() {
  14463. return this.content.map((s) => s.value.toValue());
  14464. }
  14465. hasKey(s) {
  14466. return this.content.some((o) => o.key.equals(s));
  14467. }
  14468. items() {
  14469. return this.content.map((s) => [s.key.toValue(), s.value.toValue()]);
  14470. }
  14471. map(s, o) {
  14472. return this.content.map((i) => s.bind(o)(i.value, i.key, i));
  14473. }
  14474. compactMap(s, o) {
  14475. const i = [];
  14476. return (
  14477. this.forEach((u, _, w) => {
  14478. const x = s.bind(o)(u, _, w);
  14479. x && i.push(x);
  14480. }),
  14481. i
  14482. );
  14483. }
  14484. filter(s, o) {
  14485. return new C(this.content).filter(s, o);
  14486. }
  14487. reject(s, o) {
  14488. return this.filter(u(s), o);
  14489. }
  14490. forEach(s, o) {
  14491. return this.content.forEach((i) => s.bind(o)(i.value, i.key, i));
  14492. }
  14493. };
  14494. },
  14495. 71167: (s, o, i) => {
  14496. const u = i(10316);
  14497. s.exports = class StringElement extends u {
  14498. constructor(s, o, i) {
  14499. super(s, o, i), (this.element = 'string');
  14500. }
  14501. primitive() {
  14502. return 'string';
  14503. }
  14504. get length() {
  14505. return this.content.length;
  14506. }
  14507. };
  14508. },
  14509. 75147: (s, o, i) => {
  14510. const u = i(85105);
  14511. s.exports = class JSON06Serialiser extends u {
  14512. serialise(s) {
  14513. if (!(s instanceof this.namespace.elements.Element))
  14514. throw new TypeError(`Given element \`${s}\` is not an Element instance`);
  14515. let o;
  14516. s._attributes && s.attributes.get('variable') && (o = s.attributes.get('variable'));
  14517. const i = { element: s.element };
  14518. s._meta && s._meta.length > 0 && (i.meta = this.serialiseObject(s.meta));
  14519. const u = 'enum' === s.element || -1 !== s.attributes.keys().indexOf('enumerations');
  14520. if (u) {
  14521. const o = this.enumSerialiseAttributes(s);
  14522. o && (i.attributes = o);
  14523. } else if (s._attributes && s._attributes.length > 0) {
  14524. let { attributes: u } = s;
  14525. u.get('metadata') &&
  14526. ((u = u.clone()), u.set('meta', u.get('metadata')), u.remove('metadata')),
  14527. 'member' === s.element && o && ((u = u.clone()), u.remove('variable')),
  14528. u.length > 0 && (i.attributes = this.serialiseObject(u));
  14529. }
  14530. if (u) i.content = this.enumSerialiseContent(s, i);
  14531. else if (this[`${s.element}SerialiseContent`])
  14532. i.content = this[`${s.element}SerialiseContent`](s, i);
  14533. else if (void 0 !== s.content) {
  14534. let u;
  14535. o && s.content.key
  14536. ? ((u = s.content.clone()),
  14537. u.key.attributes.set('variable', o),
  14538. (u = this.serialiseContent(u)))
  14539. : (u = this.serialiseContent(s.content)),
  14540. this.shouldSerialiseContent(s, u) && (i.content = u);
  14541. } else
  14542. this.shouldSerialiseContent(s, s.content) &&
  14543. s instanceof this.namespace.elements.Array &&
  14544. (i.content = []);
  14545. return i;
  14546. }
  14547. shouldSerialiseContent(s, o) {
  14548. return (
  14549. 'parseResult' === s.element ||
  14550. 'httpRequest' === s.element ||
  14551. 'httpResponse' === s.element ||
  14552. 'category' === s.element ||
  14553. 'link' === s.element ||
  14554. (void 0 !== o && (!Array.isArray(o) || 0 !== o.length))
  14555. );
  14556. }
  14557. refSerialiseContent(s, o) {
  14558. return delete o.attributes, { href: s.toValue(), path: s.path.toValue() };
  14559. }
  14560. sourceMapSerialiseContent(s) {
  14561. return s.toValue();
  14562. }
  14563. dataStructureSerialiseContent(s) {
  14564. return [this.serialiseContent(s.content)];
  14565. }
  14566. enumSerialiseAttributes(s) {
  14567. const o = s.attributes.clone(),
  14568. i = o.remove('enumerations') || new this.namespace.elements.Array([]),
  14569. u = o.get('default');
  14570. let _ = o.get('samples') || new this.namespace.elements.Array([]);
  14571. if (
  14572. (u &&
  14573. u.content &&
  14574. (u.content.attributes && u.content.attributes.remove('typeAttributes'),
  14575. o.set('default', new this.namespace.elements.Array([u.content]))),
  14576. _.forEach((s) => {
  14577. s.content && s.content.element && s.content.attributes.remove('typeAttributes');
  14578. }),
  14579. s.content && 0 !== i.length && _.unshift(s.content),
  14580. (_ = _.map((s) =>
  14581. s instanceof this.namespace.elements.Array
  14582. ? [s]
  14583. : new this.namespace.elements.Array([s.content])
  14584. )),
  14585. _.length && o.set('samples', _),
  14586. o.length > 0)
  14587. )
  14588. return this.serialiseObject(o);
  14589. }
  14590. enumSerialiseContent(s) {
  14591. if (s._attributes) {
  14592. const o = s.attributes.get('enumerations');
  14593. if (o && o.length > 0)
  14594. return o.content.map((s) => {
  14595. const o = s.clone();
  14596. return o.attributes.remove('typeAttributes'), this.serialise(o);
  14597. });
  14598. }
  14599. if (s.content) {
  14600. const o = s.content.clone();
  14601. return o.attributes.remove('typeAttributes'), [this.serialise(o)];
  14602. }
  14603. return [];
  14604. }
  14605. deserialise(s) {
  14606. if ('string' == typeof s) return new this.namespace.elements.String(s);
  14607. if ('number' == typeof s) return new this.namespace.elements.Number(s);
  14608. if ('boolean' == typeof s) return new this.namespace.elements.Boolean(s);
  14609. if (null === s) return new this.namespace.elements.Null();
  14610. if (Array.isArray(s))
  14611. return new this.namespace.elements.Array(s.map(this.deserialise, this));
  14612. const o = this.namespace.getElementClass(s.element),
  14613. i = new o();
  14614. i.element !== s.element && (i.element = s.element),
  14615. s.meta && this.deserialiseObject(s.meta, i.meta),
  14616. s.attributes && this.deserialiseObject(s.attributes, i.attributes);
  14617. const u = this.deserialiseContent(s.content);
  14618. if (((void 0 === u && null !== i.content) || (i.content = u), 'enum' === i.element)) {
  14619. i.content && i.attributes.set('enumerations', i.content);
  14620. let s = i.attributes.get('samples');
  14621. if ((i.attributes.remove('samples'), s)) {
  14622. const u = s;
  14623. (s = new this.namespace.elements.Array()),
  14624. u.forEach((u) => {
  14625. u.forEach((u) => {
  14626. const _ = new o(u);
  14627. (_.element = i.element), s.push(_);
  14628. });
  14629. });
  14630. const _ = s.shift();
  14631. (i.content = _ ? _.content : void 0), i.attributes.set('samples', s);
  14632. } else i.content = void 0;
  14633. let u = i.attributes.get('default');
  14634. if (u && u.length > 0) {
  14635. u = u.get(0);
  14636. const s = new o(u);
  14637. (s.element = i.element), i.attributes.set('default', s);
  14638. }
  14639. } else if ('dataStructure' === i.element && Array.isArray(i.content))
  14640. [i.content] = i.content;
  14641. else if ('category' === i.element) {
  14642. const s = i.attributes.get('meta');
  14643. s && (i.attributes.set('metadata', s), i.attributes.remove('meta'));
  14644. } else
  14645. 'member' === i.element &&
  14646. i.key &&
  14647. i.key._attributes &&
  14648. i.key._attributes.getValue('variable') &&
  14649. (i.attributes.set('variable', i.key.attributes.get('variable')),
  14650. i.key.attributes.remove('variable'));
  14651. return i;
  14652. }
  14653. serialiseContent(s) {
  14654. if (s instanceof this.namespace.elements.Element) return this.serialise(s);
  14655. if (s instanceof this.namespace.KeyValuePair) {
  14656. const o = { key: this.serialise(s.key) };
  14657. return s.value && (o.value = this.serialise(s.value)), o;
  14658. }
  14659. return s && s.map ? s.map(this.serialise, this) : s;
  14660. }
  14661. deserialiseContent(s) {
  14662. if (s) {
  14663. if (s.element) return this.deserialise(s);
  14664. if (s.key) {
  14665. const o = new this.namespace.KeyValuePair(this.deserialise(s.key));
  14666. return s.value && (o.value = this.deserialise(s.value)), o;
  14667. }
  14668. if (s.map) return s.map(this.deserialise, this);
  14669. }
  14670. return s;
  14671. }
  14672. shouldRefract(s) {
  14673. return (
  14674. !!(
  14675. (s._attributes && s.attributes.keys().length) ||
  14676. (s._meta && s.meta.keys().length)
  14677. ) ||
  14678. ('enum' !== s.element && (s.element !== s.primitive() || 'member' === s.element))
  14679. );
  14680. }
  14681. convertKeyToRefract(s, o) {
  14682. return this.shouldRefract(o)
  14683. ? this.serialise(o)
  14684. : 'enum' === o.element
  14685. ? this.serialiseEnum(o)
  14686. : 'array' === o.element
  14687. ? o.map((o) =>
  14688. this.shouldRefract(o) || 'default' === s
  14689. ? this.serialise(o)
  14690. : 'array' === o.element || 'object' === o.element || 'enum' === o.element
  14691. ? o.children.map((s) => this.serialise(s))
  14692. : o.toValue()
  14693. )
  14694. : 'object' === o.element
  14695. ? (o.content || []).map(this.serialise, this)
  14696. : o.toValue();
  14697. }
  14698. serialiseEnum(s) {
  14699. return s.children.map((s) => this.serialise(s));
  14700. }
  14701. serialiseObject(s) {
  14702. const o = {};
  14703. return (
  14704. s.forEach((s, i) => {
  14705. if (s) {
  14706. const u = i.toValue();
  14707. o[u] = this.convertKeyToRefract(u, s);
  14708. }
  14709. }),
  14710. o
  14711. );
  14712. }
  14713. deserialiseObject(s, o) {
  14714. Object.keys(s).forEach((i) => {
  14715. o.set(i, this.deserialise(s[i]));
  14716. });
  14717. }
  14718. };
  14719. },
  14720. 85105: (s) => {
  14721. s.exports = class JSONSerialiser {
  14722. constructor(s) {
  14723. this.namespace = s || new this.Namespace();
  14724. }
  14725. serialise(s) {
  14726. if (!(s instanceof this.namespace.elements.Element))
  14727. throw new TypeError(`Given element \`${s}\` is not an Element instance`);
  14728. const o = { element: s.element };
  14729. s._meta && s._meta.length > 0 && (o.meta = this.serialiseObject(s.meta)),
  14730. s._attributes &&
  14731. s._attributes.length > 0 &&
  14732. (o.attributes = this.serialiseObject(s.attributes));
  14733. const i = this.serialiseContent(s.content);
  14734. return void 0 !== i && (o.content = i), o;
  14735. }
  14736. deserialise(s) {
  14737. if (!s.element)
  14738. throw new Error('Given value is not an object containing an element name');
  14739. const o = new (this.namespace.getElementClass(s.element))();
  14740. o.element !== s.element && (o.element = s.element),
  14741. s.meta && this.deserialiseObject(s.meta, o.meta),
  14742. s.attributes && this.deserialiseObject(s.attributes, o.attributes);
  14743. const i = this.deserialiseContent(s.content);
  14744. return (void 0 === i && null !== o.content) || (o.content = i), o;
  14745. }
  14746. serialiseContent(s) {
  14747. if (s instanceof this.namespace.elements.Element) return this.serialise(s);
  14748. if (s instanceof this.namespace.KeyValuePair) {
  14749. const o = { key: this.serialise(s.key) };
  14750. return s.value && (o.value = this.serialise(s.value)), o;
  14751. }
  14752. if (s && s.map) {
  14753. if (0 === s.length) return;
  14754. return s.map(this.serialise, this);
  14755. }
  14756. return s;
  14757. }
  14758. deserialiseContent(s) {
  14759. if (s) {
  14760. if (s.element) return this.deserialise(s);
  14761. if (s.key) {
  14762. const o = new this.namespace.KeyValuePair(this.deserialise(s.key));
  14763. return s.value && (o.value = this.deserialise(s.value)), o;
  14764. }
  14765. if (s.map) return s.map(this.deserialise, this);
  14766. }
  14767. return s;
  14768. }
  14769. serialiseObject(s) {
  14770. const o = {};
  14771. if (
  14772. (s.forEach((s, i) => {
  14773. s && (o[i.toValue()] = this.serialise(s));
  14774. }),
  14775. 0 !== Object.keys(o).length)
  14776. )
  14777. return o;
  14778. }
  14779. deserialiseObject(s, o) {
  14780. Object.keys(s).forEach((i) => {
  14781. o.set(i, this.deserialise(s[i]));
  14782. });
  14783. }
  14784. };
  14785. },
  14786. 65606: (s) => {
  14787. var o,
  14788. i,
  14789. u = (s.exports = {});
  14790. function defaultSetTimout() {
  14791. throw new Error('setTimeout has not been defined');
  14792. }
  14793. function defaultClearTimeout() {
  14794. throw new Error('clearTimeout has not been defined');
  14795. }
  14796. function runTimeout(s) {
  14797. if (o === setTimeout) return setTimeout(s, 0);
  14798. if ((o === defaultSetTimout || !o) && setTimeout)
  14799. return (o = setTimeout), setTimeout(s, 0);
  14800. try {
  14801. return o(s, 0);
  14802. } catch (i) {
  14803. try {
  14804. return o.call(null, s, 0);
  14805. } catch (i) {
  14806. return o.call(this, s, 0);
  14807. }
  14808. }
  14809. }
  14810. !(function () {
  14811. try {
  14812. o = 'function' == typeof setTimeout ? setTimeout : defaultSetTimout;
  14813. } catch (s) {
  14814. o = defaultSetTimout;
  14815. }
  14816. try {
  14817. i = 'function' == typeof clearTimeout ? clearTimeout : defaultClearTimeout;
  14818. } catch (s) {
  14819. i = defaultClearTimeout;
  14820. }
  14821. })();
  14822. var _,
  14823. w = [],
  14824. x = !1,
  14825. C = -1;
  14826. function cleanUpNextTick() {
  14827. x && _ && ((x = !1), _.length ? (w = _.concat(w)) : (C = -1), w.length && drainQueue());
  14828. }
  14829. function drainQueue() {
  14830. if (!x) {
  14831. var s = runTimeout(cleanUpNextTick);
  14832. x = !0;
  14833. for (var o = w.length; o; ) {
  14834. for (_ = w, w = []; ++C < o; ) _ && _[C].run();
  14835. (C = -1), (o = w.length);
  14836. }
  14837. (_ = null),
  14838. (x = !1),
  14839. (function runClearTimeout(s) {
  14840. if (i === clearTimeout) return clearTimeout(s);
  14841. if ((i === defaultClearTimeout || !i) && clearTimeout)
  14842. return (i = clearTimeout), clearTimeout(s);
  14843. try {
  14844. return i(s);
  14845. } catch (o) {
  14846. try {
  14847. return i.call(null, s);
  14848. } catch (o) {
  14849. return i.call(this, s);
  14850. }
  14851. }
  14852. })(s);
  14853. }
  14854. }
  14855. function Item(s, o) {
  14856. (this.fun = s), (this.array = o);
  14857. }
  14858. function noop() {}
  14859. (u.nextTick = function (s) {
  14860. var o = new Array(arguments.length - 1);
  14861. if (arguments.length > 1)
  14862. for (var i = 1; i < arguments.length; i++) o[i - 1] = arguments[i];
  14863. w.push(new Item(s, o)), 1 !== w.length || x || runTimeout(drainQueue);
  14864. }),
  14865. (Item.prototype.run = function () {
  14866. this.fun.apply(null, this.array);
  14867. }),
  14868. (u.title = 'browser'),
  14869. (u.browser = !0),
  14870. (u.env = {}),
  14871. (u.argv = []),
  14872. (u.version = ''),
  14873. (u.versions = {}),
  14874. (u.on = noop),
  14875. (u.addListener = noop),
  14876. (u.once = noop),
  14877. (u.off = noop),
  14878. (u.removeListener = noop),
  14879. (u.removeAllListeners = noop),
  14880. (u.emit = noop),
  14881. (u.prependListener = noop),
  14882. (u.prependOnceListener = noop),
  14883. (u.listeners = function (s) {
  14884. return [];
  14885. }),
  14886. (u.binding = function (s) {
  14887. throw new Error('process.binding is not supported');
  14888. }),
  14889. (u.cwd = function () {
  14890. return '/';
  14891. }),
  14892. (u.chdir = function (s) {
  14893. throw new Error('process.chdir is not supported');
  14894. }),
  14895. (u.umask = function () {
  14896. return 0;
  14897. });
  14898. },
  14899. 2694: (s, o, i) => {
  14900. 'use strict';
  14901. var u = i(6925);
  14902. function emptyFunction() {}
  14903. function emptyFunctionWithReset() {}
  14904. (emptyFunctionWithReset.resetWarningCache = emptyFunction),
  14905. (s.exports = function () {
  14906. function shim(s, o, i, _, w, x) {
  14907. if (x !== u) {
  14908. var C = new Error(
  14909. 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types'
  14910. );
  14911. throw ((C.name = 'Invariant Violation'), C);
  14912. }
  14913. }
  14914. function getShim() {
  14915. return shim;
  14916. }
  14917. shim.isRequired = shim;
  14918. var s = {
  14919. array: shim,
  14920. bigint: shim,
  14921. bool: shim,
  14922. func: shim,
  14923. number: shim,
  14924. object: shim,
  14925. string: shim,
  14926. symbol: shim,
  14927. any: shim,
  14928. arrayOf: getShim,
  14929. element: shim,
  14930. elementType: shim,
  14931. instanceOf: getShim,
  14932. node: shim,
  14933. objectOf: getShim,
  14934. oneOf: getShim,
  14935. oneOfType: getShim,
  14936. shape: getShim,
  14937. exact: getShim,
  14938. checkPropTypes: emptyFunctionWithReset,
  14939. resetWarningCache: emptyFunction
  14940. };
  14941. return (s.PropTypes = s), s;
  14942. });
  14943. },
  14944. 5556: (s, o, i) => {
  14945. s.exports = i(2694)();
  14946. },
  14947. 6925: (s) => {
  14948. 'use strict';
  14949. s.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  14950. },
  14951. 73992: (s, o) => {
  14952. 'use strict';
  14953. var i = Object.prototype.hasOwnProperty;
  14954. function decode(s) {
  14955. try {
  14956. return decodeURIComponent(s.replace(/\+/g, ' '));
  14957. } catch (s) {
  14958. return null;
  14959. }
  14960. }
  14961. function encode(s) {
  14962. try {
  14963. return encodeURIComponent(s);
  14964. } catch (s) {
  14965. return null;
  14966. }
  14967. }
  14968. (o.stringify = function querystringify(s, o) {
  14969. o = o || '';
  14970. var u,
  14971. _,
  14972. w = [];
  14973. for (_ in ('string' != typeof o && (o = '?'), s))
  14974. if (i.call(s, _)) {
  14975. if (
  14976. ((u = s[_]) || (null != u && !isNaN(u)) || (u = ''),
  14977. (_ = encode(_)),
  14978. (u = encode(u)),
  14979. null === _ || null === u)
  14980. )
  14981. continue;
  14982. w.push(_ + '=' + u);
  14983. }
  14984. return w.length ? o + w.join('&') : '';
  14985. }),
  14986. (o.parse = function querystring(s) {
  14987. for (var o, i = /([^=?#&]+)=?([^&]*)/g, u = {}; (o = i.exec(s)); ) {
  14988. var _ = decode(o[1]),
  14989. w = decode(o[2]);
  14990. null === _ || null === w || _ in u || (u[_] = w);
  14991. }
  14992. return u;
  14993. });
  14994. },
  14995. 41859: (s, o, i) => {
  14996. const u = i(27096),
  14997. _ = i(78004),
  14998. w = u.types;
  14999. s.exports = class RandExp {
  15000. constructor(s, o) {
  15001. if ((this._setDefaults(s), s instanceof RegExp))
  15002. (this.ignoreCase = s.ignoreCase), (this.multiline = s.multiline), (s = s.source);
  15003. else {
  15004. if ('string' != typeof s) throw new Error('Expected a regexp or string');
  15005. (this.ignoreCase = o && -1 !== o.indexOf('i')),
  15006. (this.multiline = o && -1 !== o.indexOf('m'));
  15007. }
  15008. this.tokens = u(s);
  15009. }
  15010. _setDefaults(s) {
  15011. (this.max =
  15012. null != s.max
  15013. ? s.max
  15014. : null != RandExp.prototype.max
  15015. ? RandExp.prototype.max
  15016. : 100),
  15017. (this.defaultRange = s.defaultRange ? s.defaultRange : this.defaultRange.clone()),
  15018. s.randInt && (this.randInt = s.randInt);
  15019. }
  15020. gen() {
  15021. return this._gen(this.tokens, []);
  15022. }
  15023. _gen(s, o) {
  15024. var i, u, _, x, C;
  15025. switch (s.type) {
  15026. case w.ROOT:
  15027. case w.GROUP:
  15028. if (s.followedBy || s.notFollowedBy) return '';
  15029. for (
  15030. s.remember && void 0 === s.groupNumber && (s.groupNumber = o.push(null) - 1),
  15031. u = '',
  15032. x = 0,
  15033. C = (i = s.options ? this._randSelect(s.options) : s.stack).length;
  15034. x < C;
  15035. x++
  15036. )
  15037. u += this._gen(i[x], o);
  15038. return s.remember && (o[s.groupNumber] = u), u;
  15039. case w.POSITION:
  15040. return '';
  15041. case w.SET:
  15042. var j = this._expand(s);
  15043. return j.length ? String.fromCharCode(this._randSelect(j)) : '';
  15044. case w.REPETITION:
  15045. for (
  15046. _ = this.randInt(s.min, s.max === 1 / 0 ? s.min + this.max : s.max),
  15047. u = '',
  15048. x = 0;
  15049. x < _;
  15050. x++
  15051. )
  15052. u += this._gen(s.value, o);
  15053. return u;
  15054. case w.REFERENCE:
  15055. return o[s.value - 1] || '';
  15056. case w.CHAR:
  15057. var L =
  15058. this.ignoreCase && this._randBool() ? this._toOtherCase(s.value) : s.value;
  15059. return String.fromCharCode(L);
  15060. }
  15061. }
  15062. _toOtherCase(s) {
  15063. return s + (97 <= s && s <= 122 ? -32 : 65 <= s && s <= 90 ? 32 : 0);
  15064. }
  15065. _randBool() {
  15066. return !this.randInt(0, 1);
  15067. }
  15068. _randSelect(s) {
  15069. return s instanceof _
  15070. ? s.index(this.randInt(0, s.length - 1))
  15071. : s[this.randInt(0, s.length - 1)];
  15072. }
  15073. _expand(s) {
  15074. if (s.type === u.types.CHAR) return new _(s.value);
  15075. if (s.type === u.types.RANGE) return new _(s.from, s.to);
  15076. {
  15077. let o = new _();
  15078. for (let i = 0; i < s.set.length; i++) {
  15079. let u = this._expand(s.set[i]);
  15080. if ((o.add(u), this.ignoreCase))
  15081. for (let s = 0; s < u.length; s++) {
  15082. let i = u.index(s),
  15083. _ = this._toOtherCase(i);
  15084. i !== _ && o.add(_);
  15085. }
  15086. }
  15087. return s.not
  15088. ? this.defaultRange.clone().subtract(o)
  15089. : this.defaultRange.clone().intersect(o);
  15090. }
  15091. }
  15092. randInt(s, o) {
  15093. return s + Math.floor(Math.random() * (1 + o - s));
  15094. }
  15095. get defaultRange() {
  15096. return (this._range = this._range || new _(32, 126));
  15097. }
  15098. set defaultRange(s) {
  15099. this._range = s;
  15100. }
  15101. static randexp(s, o) {
  15102. var i;
  15103. return (
  15104. 'string' == typeof s && (s = new RegExp(s, o)),
  15105. void 0 === s._randexp
  15106. ? ((i = new RandExp(s, o)), (s._randexp = i))
  15107. : (i = s._randexp)._setDefaults(s),
  15108. i.gen()
  15109. );
  15110. }
  15111. static sugar() {
  15112. RegExp.prototype.gen = function () {
  15113. return RandExp.randexp(this);
  15114. };
  15115. }
  15116. };
  15117. },
  15118. 53209: (s, o, i) => {
  15119. 'use strict';
  15120. var u = i(65606),
  15121. _ = 65536,
  15122. w = 4294967295;
  15123. var x = i(92861).Buffer,
  15124. C = i.g.crypto || i.g.msCrypto;
  15125. C && C.getRandomValues
  15126. ? (s.exports = function randomBytes(s, o) {
  15127. if (s > w) throw new RangeError('requested too many random bytes');
  15128. var i = x.allocUnsafe(s);
  15129. if (s > 0)
  15130. if (s > _) for (var j = 0; j < s; j += _) C.getRandomValues(i.slice(j, j + _));
  15131. else C.getRandomValues(i);
  15132. if ('function' == typeof o)
  15133. return u.nextTick(function () {
  15134. o(null, i);
  15135. });
  15136. return i;
  15137. })
  15138. : (s.exports = function oldBrowser() {
  15139. throw new Error(
  15140. 'Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11'
  15141. );
  15142. });
  15143. },
  15144. 25264: (s, o, i) => {
  15145. 'use strict';
  15146. function _typeof(s) {
  15147. return (
  15148. (_typeof =
  15149. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  15150. ? function (s) {
  15151. return typeof s;
  15152. }
  15153. : function (s) {
  15154. return s &&
  15155. 'function' == typeof Symbol &&
  15156. s.constructor === Symbol &&
  15157. s !== Symbol.prototype
  15158. ? 'symbol'
  15159. : typeof s;
  15160. }),
  15161. _typeof(s)
  15162. );
  15163. }
  15164. Object.defineProperty(o, '__esModule', { value: !0 }), (o.CopyToClipboard = void 0);
  15165. var u = _interopRequireDefault(i(96540)),
  15166. _ = _interopRequireDefault(i(17965)),
  15167. w = ['text', 'onCopy', 'options', 'children'];
  15168. function _interopRequireDefault(s) {
  15169. return s && s.__esModule ? s : { default: s };
  15170. }
  15171. function ownKeys(s, o) {
  15172. var i = Object.keys(s);
  15173. if (Object.getOwnPropertySymbols) {
  15174. var u = Object.getOwnPropertySymbols(s);
  15175. o &&
  15176. (u = u.filter(function (o) {
  15177. return Object.getOwnPropertyDescriptor(s, o).enumerable;
  15178. })),
  15179. i.push.apply(i, u);
  15180. }
  15181. return i;
  15182. }
  15183. function _objectSpread(s) {
  15184. for (var o = 1; o < arguments.length; o++) {
  15185. var i = null != arguments[o] ? arguments[o] : {};
  15186. o % 2
  15187. ? ownKeys(Object(i), !0).forEach(function (o) {
  15188. _defineProperty(s, o, i[o]);
  15189. })
  15190. : Object.getOwnPropertyDescriptors
  15191. ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(i))
  15192. : ownKeys(Object(i)).forEach(function (o) {
  15193. Object.defineProperty(s, o, Object.getOwnPropertyDescriptor(i, o));
  15194. });
  15195. }
  15196. return s;
  15197. }
  15198. function _objectWithoutProperties(s, o) {
  15199. if (null == s) return {};
  15200. var i,
  15201. u,
  15202. _ = (function _objectWithoutPropertiesLoose(s, o) {
  15203. if (null == s) return {};
  15204. var i,
  15205. u,
  15206. _ = {},
  15207. w = Object.keys(s);
  15208. for (u = 0; u < w.length; u++) (i = w[u]), o.indexOf(i) >= 0 || (_[i] = s[i]);
  15209. return _;
  15210. })(s, o);
  15211. if (Object.getOwnPropertySymbols) {
  15212. var w = Object.getOwnPropertySymbols(s);
  15213. for (u = 0; u < w.length; u++)
  15214. (i = w[u]),
  15215. o.indexOf(i) >= 0 ||
  15216. (Object.prototype.propertyIsEnumerable.call(s, i) && (_[i] = s[i]));
  15217. }
  15218. return _;
  15219. }
  15220. function _defineProperties(s, o) {
  15221. for (var i = 0; i < o.length; i++) {
  15222. var u = o[i];
  15223. (u.enumerable = u.enumerable || !1),
  15224. (u.configurable = !0),
  15225. 'value' in u && (u.writable = !0),
  15226. Object.defineProperty(s, u.key, u);
  15227. }
  15228. }
  15229. function _setPrototypeOf(s, o) {
  15230. return (
  15231. (_setPrototypeOf =
  15232. Object.setPrototypeOf ||
  15233. function _setPrototypeOf(s, o) {
  15234. return (s.__proto__ = o), s;
  15235. }),
  15236. _setPrototypeOf(s, o)
  15237. );
  15238. }
  15239. function _createSuper(s) {
  15240. var o = (function _isNativeReflectConstruct() {
  15241. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  15242. if (Reflect.construct.sham) return !1;
  15243. if ('function' == typeof Proxy) return !0;
  15244. try {
  15245. return (
  15246. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0
  15247. );
  15248. } catch (s) {
  15249. return !1;
  15250. }
  15251. })();
  15252. return function _createSuperInternal() {
  15253. var i,
  15254. u = _getPrototypeOf(s);
  15255. if (o) {
  15256. var _ = _getPrototypeOf(this).constructor;
  15257. i = Reflect.construct(u, arguments, _);
  15258. } else i = u.apply(this, arguments);
  15259. return (function _possibleConstructorReturn(s, o) {
  15260. if (o && ('object' === _typeof(o) || 'function' == typeof o)) return o;
  15261. if (void 0 !== o)
  15262. throw new TypeError('Derived constructors may only return object or undefined');
  15263. return _assertThisInitialized(s);
  15264. })(this, i);
  15265. };
  15266. }
  15267. function _assertThisInitialized(s) {
  15268. if (void 0 === s)
  15269. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  15270. return s;
  15271. }
  15272. function _getPrototypeOf(s) {
  15273. return (
  15274. (_getPrototypeOf = Object.setPrototypeOf
  15275. ? Object.getPrototypeOf
  15276. : function _getPrototypeOf(s) {
  15277. return s.__proto__ || Object.getPrototypeOf(s);
  15278. }),
  15279. _getPrototypeOf(s)
  15280. );
  15281. }
  15282. function _defineProperty(s, o, i) {
  15283. return (
  15284. o in s
  15285. ? Object.defineProperty(s, o, {
  15286. value: i,
  15287. enumerable: !0,
  15288. configurable: !0,
  15289. writable: !0
  15290. })
  15291. : (s[o] = i),
  15292. s
  15293. );
  15294. }
  15295. var x = (function (s) {
  15296. !(function _inherits(s, o) {
  15297. if ('function' != typeof o && null !== o)
  15298. throw new TypeError('Super expression must either be null or a function');
  15299. (s.prototype = Object.create(o && o.prototype, {
  15300. constructor: { value: s, writable: !0, configurable: !0 }
  15301. })),
  15302. Object.defineProperty(s, 'prototype', { writable: !1 }),
  15303. o && _setPrototypeOf(s, o);
  15304. })(CopyToClipboard, s);
  15305. var o = _createSuper(CopyToClipboard);
  15306. function CopyToClipboard() {
  15307. var s;
  15308. !(function _classCallCheck(s, o) {
  15309. if (!(s instanceof o)) throw new TypeError('Cannot call a class as a function');
  15310. })(this, CopyToClipboard);
  15311. for (var i = arguments.length, w = new Array(i), x = 0; x < i; x++)
  15312. w[x] = arguments[x];
  15313. return (
  15314. _defineProperty(
  15315. _assertThisInitialized((s = o.call.apply(o, [this].concat(w)))),
  15316. 'onClick',
  15317. function (o) {
  15318. var i = s.props,
  15319. w = i.text,
  15320. x = i.onCopy,
  15321. C = i.children,
  15322. j = i.options,
  15323. L = u.default.Children.only(C),
  15324. B = (0, _.default)(w, j);
  15325. x && x(w, B),
  15326. L && L.props && 'function' == typeof L.props.onClick && L.props.onClick(o);
  15327. }
  15328. ),
  15329. s
  15330. );
  15331. }
  15332. return (
  15333. (function _createClass(s, o, i) {
  15334. return (
  15335. o && _defineProperties(s.prototype, o),
  15336. i && _defineProperties(s, i),
  15337. Object.defineProperty(s, 'prototype', { writable: !1 }),
  15338. s
  15339. );
  15340. })(CopyToClipboard, [
  15341. {
  15342. key: 'render',
  15343. value: function render() {
  15344. var s = this.props,
  15345. o = (s.text, s.onCopy, s.options, s.children),
  15346. i = _objectWithoutProperties(s, w),
  15347. _ = u.default.Children.only(o);
  15348. return u.default.cloneElement(
  15349. _,
  15350. _objectSpread(_objectSpread({}, i), {}, { onClick: this.onClick })
  15351. );
  15352. }
  15353. }
  15354. ]),
  15355. CopyToClipboard
  15356. );
  15357. })(u.default.PureComponent);
  15358. (o.CopyToClipboard = x),
  15359. _defineProperty(x, 'defaultProps', { onCopy: void 0, options: void 0 });
  15360. },
  15361. 59399: (s, o, i) => {
  15362. 'use strict';
  15363. var u = i(25264).CopyToClipboard;
  15364. (u.CopyToClipboard = u), (s.exports = u);
  15365. },
  15366. 81214: (s, o, i) => {
  15367. 'use strict';
  15368. function _typeof(s) {
  15369. return (
  15370. (_typeof =
  15371. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  15372. ? function (s) {
  15373. return typeof s;
  15374. }
  15375. : function (s) {
  15376. return s &&
  15377. 'function' == typeof Symbol &&
  15378. s.constructor === Symbol &&
  15379. s !== Symbol.prototype
  15380. ? 'symbol'
  15381. : typeof s;
  15382. }),
  15383. _typeof(s)
  15384. );
  15385. }
  15386. Object.defineProperty(o, '__esModule', { value: !0 }), (o.DebounceInput = void 0);
  15387. var u = _interopRequireDefault(i(96540)),
  15388. _ = _interopRequireDefault(i(20181)),
  15389. w = [
  15390. 'element',
  15391. 'onChange',
  15392. 'value',
  15393. 'minLength',
  15394. 'debounceTimeout',
  15395. 'forceNotifyByEnter',
  15396. 'forceNotifyOnBlur',
  15397. 'onKeyDown',
  15398. 'onBlur',
  15399. 'inputRef'
  15400. ];
  15401. function _interopRequireDefault(s) {
  15402. return s && s.__esModule ? s : { default: s };
  15403. }
  15404. function _objectWithoutProperties(s, o) {
  15405. if (null == s) return {};
  15406. var i,
  15407. u,
  15408. _ = (function _objectWithoutPropertiesLoose(s, o) {
  15409. if (null == s) return {};
  15410. var i,
  15411. u,
  15412. _ = {},
  15413. w = Object.keys(s);
  15414. for (u = 0; u < w.length; u++) (i = w[u]), o.indexOf(i) >= 0 || (_[i] = s[i]);
  15415. return _;
  15416. })(s, o);
  15417. if (Object.getOwnPropertySymbols) {
  15418. var w = Object.getOwnPropertySymbols(s);
  15419. for (u = 0; u < w.length; u++)
  15420. (i = w[u]),
  15421. o.indexOf(i) >= 0 ||
  15422. (Object.prototype.propertyIsEnumerable.call(s, i) && (_[i] = s[i]));
  15423. }
  15424. return _;
  15425. }
  15426. function ownKeys(s, o) {
  15427. var i = Object.keys(s);
  15428. if (Object.getOwnPropertySymbols) {
  15429. var u = Object.getOwnPropertySymbols(s);
  15430. o &&
  15431. (u = u.filter(function (o) {
  15432. return Object.getOwnPropertyDescriptor(s, o).enumerable;
  15433. })),
  15434. i.push.apply(i, u);
  15435. }
  15436. return i;
  15437. }
  15438. function _objectSpread(s) {
  15439. for (var o = 1; o < arguments.length; o++) {
  15440. var i = null != arguments[o] ? arguments[o] : {};
  15441. o % 2
  15442. ? ownKeys(Object(i), !0).forEach(function (o) {
  15443. _defineProperty(s, o, i[o]);
  15444. })
  15445. : Object.getOwnPropertyDescriptors
  15446. ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(i))
  15447. : ownKeys(Object(i)).forEach(function (o) {
  15448. Object.defineProperty(s, o, Object.getOwnPropertyDescriptor(i, o));
  15449. });
  15450. }
  15451. return s;
  15452. }
  15453. function _defineProperties(s, o) {
  15454. for (var i = 0; i < o.length; i++) {
  15455. var u = o[i];
  15456. (u.enumerable = u.enumerable || !1),
  15457. (u.configurable = !0),
  15458. 'value' in u && (u.writable = !0),
  15459. Object.defineProperty(s, u.key, u);
  15460. }
  15461. }
  15462. function _setPrototypeOf(s, o) {
  15463. return (
  15464. (_setPrototypeOf =
  15465. Object.setPrototypeOf ||
  15466. function _setPrototypeOf(s, o) {
  15467. return (s.__proto__ = o), s;
  15468. }),
  15469. _setPrototypeOf(s, o)
  15470. );
  15471. }
  15472. function _createSuper(s) {
  15473. var o = (function _isNativeReflectConstruct() {
  15474. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  15475. if (Reflect.construct.sham) return !1;
  15476. if ('function' == typeof Proxy) return !0;
  15477. try {
  15478. return (
  15479. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0
  15480. );
  15481. } catch (s) {
  15482. return !1;
  15483. }
  15484. })();
  15485. return function _createSuperInternal() {
  15486. var i,
  15487. u = _getPrototypeOf(s);
  15488. if (o) {
  15489. var _ = _getPrototypeOf(this).constructor;
  15490. i = Reflect.construct(u, arguments, _);
  15491. } else i = u.apply(this, arguments);
  15492. return (function _possibleConstructorReturn(s, o) {
  15493. if (o && ('object' === _typeof(o) || 'function' == typeof o)) return o;
  15494. if (void 0 !== o)
  15495. throw new TypeError('Derived constructors may only return object or undefined');
  15496. return _assertThisInitialized(s);
  15497. })(this, i);
  15498. };
  15499. }
  15500. function _assertThisInitialized(s) {
  15501. if (void 0 === s)
  15502. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  15503. return s;
  15504. }
  15505. function _getPrototypeOf(s) {
  15506. return (
  15507. (_getPrototypeOf = Object.setPrototypeOf
  15508. ? Object.getPrototypeOf
  15509. : function _getPrototypeOf(s) {
  15510. return s.__proto__ || Object.getPrototypeOf(s);
  15511. }),
  15512. _getPrototypeOf(s)
  15513. );
  15514. }
  15515. function _defineProperty(s, o, i) {
  15516. return (
  15517. o in s
  15518. ? Object.defineProperty(s, o, {
  15519. value: i,
  15520. enumerable: !0,
  15521. configurable: !0,
  15522. writable: !0
  15523. })
  15524. : (s[o] = i),
  15525. s
  15526. );
  15527. }
  15528. var x = (function (s) {
  15529. !(function _inherits(s, o) {
  15530. if ('function' != typeof o && null !== o)
  15531. throw new TypeError('Super expression must either be null or a function');
  15532. (s.prototype = Object.create(o && o.prototype, {
  15533. constructor: { value: s, writable: !0, configurable: !0 }
  15534. })),
  15535. Object.defineProperty(s, 'prototype', { writable: !1 }),
  15536. o && _setPrototypeOf(s, o);
  15537. })(DebounceInput, s);
  15538. var o = _createSuper(DebounceInput);
  15539. function DebounceInput(s) {
  15540. var i;
  15541. !(function _classCallCheck(s, o) {
  15542. if (!(s instanceof o)) throw new TypeError('Cannot call a class as a function');
  15543. })(this, DebounceInput),
  15544. _defineProperty(
  15545. _assertThisInitialized((i = o.call(this, s))),
  15546. 'onChange',
  15547. function (s) {
  15548. s.persist();
  15549. var o = i.state.value,
  15550. u = i.props.minLength;
  15551. i.setState({ value: s.target.value }, function () {
  15552. var _ = i.state.value;
  15553. _.length >= u
  15554. ? i.notify(s)
  15555. : o.length > _.length &&
  15556. i.notify(
  15557. _objectSpread(
  15558. _objectSpread({}, s),
  15559. {},
  15560. {
  15561. target: _objectSpread(
  15562. _objectSpread({}, s.target),
  15563. {},
  15564. { value: '' }
  15565. )
  15566. }
  15567. )
  15568. );
  15569. });
  15570. }
  15571. ),
  15572. _defineProperty(_assertThisInitialized(i), 'onKeyDown', function (s) {
  15573. 'Enter' === s.key && i.forceNotify(s);
  15574. var o = i.props.onKeyDown;
  15575. o && (s.persist(), o(s));
  15576. }),
  15577. _defineProperty(_assertThisInitialized(i), 'onBlur', function (s) {
  15578. i.forceNotify(s);
  15579. var o = i.props.onBlur;
  15580. o && (s.persist(), o(s));
  15581. }),
  15582. _defineProperty(_assertThisInitialized(i), 'createNotifier', function (s) {
  15583. if (s < 0)
  15584. i.notify = function () {
  15585. return null;
  15586. };
  15587. else if (0 === s) i.notify = i.doNotify;
  15588. else {
  15589. var o = (0, _.default)(function (s) {
  15590. (i.isDebouncing = !1), i.doNotify(s);
  15591. }, s);
  15592. (i.notify = function (s) {
  15593. (i.isDebouncing = !0), o(s);
  15594. }),
  15595. (i.flush = function () {
  15596. return o.flush();
  15597. }),
  15598. (i.cancel = function () {
  15599. (i.isDebouncing = !1), o.cancel();
  15600. });
  15601. }
  15602. }),
  15603. _defineProperty(_assertThisInitialized(i), 'doNotify', function () {
  15604. i.props.onChange.apply(void 0, arguments);
  15605. }),
  15606. _defineProperty(_assertThisInitialized(i), 'forceNotify', function (s) {
  15607. var o = i.props.debounceTimeout;
  15608. if (i.isDebouncing || !(o > 0)) {
  15609. i.cancel && i.cancel();
  15610. var u = i.state.value,
  15611. _ = i.props.minLength;
  15612. u.length >= _
  15613. ? i.doNotify(s)
  15614. : i.doNotify(
  15615. _objectSpread(
  15616. _objectSpread({}, s),
  15617. {},
  15618. { target: _objectSpread(_objectSpread({}, s.target), {}, { value: u }) }
  15619. )
  15620. );
  15621. }
  15622. }),
  15623. (i.isDebouncing = !1),
  15624. (i.state = { value: void 0 === s.value || null === s.value ? '' : s.value });
  15625. var u = i.props.debounceTimeout;
  15626. return i.createNotifier(u), i;
  15627. }
  15628. return (
  15629. (function _createClass(s, o, i) {
  15630. return (
  15631. o && _defineProperties(s.prototype, o),
  15632. i && _defineProperties(s, i),
  15633. Object.defineProperty(s, 'prototype', { writable: !1 }),
  15634. s
  15635. );
  15636. })(DebounceInput, [
  15637. {
  15638. key: 'componentDidUpdate',
  15639. value: function componentDidUpdate(s) {
  15640. if (!this.isDebouncing) {
  15641. var o = this.props,
  15642. i = o.value,
  15643. u = o.debounceTimeout,
  15644. _ = s.debounceTimeout,
  15645. w = s.value,
  15646. x = this.state.value;
  15647. void 0 !== i && w !== i && x !== i && this.setState({ value: i }),
  15648. u !== _ && this.createNotifier(u);
  15649. }
  15650. }
  15651. },
  15652. {
  15653. key: 'componentWillUnmount',
  15654. value: function componentWillUnmount() {
  15655. this.flush && this.flush();
  15656. }
  15657. },
  15658. {
  15659. key: 'render',
  15660. value: function render() {
  15661. var s,
  15662. o,
  15663. i = this.props,
  15664. _ = i.element,
  15665. x =
  15666. (i.onChange, i.value, i.minLength, i.debounceTimeout, i.forceNotifyByEnter),
  15667. C = i.forceNotifyOnBlur,
  15668. j = i.onKeyDown,
  15669. L = i.onBlur,
  15670. B = i.inputRef,
  15671. $ = _objectWithoutProperties(i, w),
  15672. V = this.state.value;
  15673. (s = x ? { onKeyDown: this.onKeyDown } : j ? { onKeyDown: j } : {}),
  15674. (o = C ? { onBlur: this.onBlur } : L ? { onBlur: L } : {});
  15675. var U = B ? { ref: B } : {};
  15676. return u.default.createElement(
  15677. _,
  15678. _objectSpread(
  15679. _objectSpread(
  15680. _objectSpread(
  15681. _objectSpread({}, $),
  15682. {},
  15683. { onChange: this.onChange, value: V },
  15684. s
  15685. ),
  15686. o
  15687. ),
  15688. U
  15689. )
  15690. );
  15691. }
  15692. }
  15693. ]),
  15694. DebounceInput
  15695. );
  15696. })(u.default.PureComponent);
  15697. (o.DebounceInput = x),
  15698. _defineProperty(x, 'defaultProps', {
  15699. element: 'input',
  15700. type: 'text',
  15701. onKeyDown: void 0,
  15702. onBlur: void 0,
  15703. value: void 0,
  15704. minLength: 0,
  15705. debounceTimeout: 100,
  15706. forceNotifyByEnter: !0,
  15707. forceNotifyOnBlur: !0,
  15708. inputRef: void 0
  15709. });
  15710. },
  15711. 24677: (s, o, i) => {
  15712. 'use strict';
  15713. var u = i(81214).DebounceInput;
  15714. (u.DebounceInput = u), (s.exports = u);
  15715. },
  15716. 22551: (s, o, i) => {
  15717. 'use strict';
  15718. var u = i(96540),
  15719. _ = i(69982);
  15720. function p(s) {
  15721. for (
  15722. var o = 'https://reactjs.org/docs/error-decoder.html?invariant=' + s, i = 1;
  15723. i < arguments.length;
  15724. i++
  15725. )
  15726. o += '&args[]=' + encodeURIComponent(arguments[i]);
  15727. return (
  15728. 'Minified React error #' +
  15729. s +
  15730. '; visit ' +
  15731. o +
  15732. ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.'
  15733. );
  15734. }
  15735. var w = new Set(),
  15736. x = {};
  15737. function fa(s, o) {
  15738. ha(s, o), ha(s + 'Capture', o);
  15739. }
  15740. function ha(s, o) {
  15741. for (x[s] = o, s = 0; s < o.length; s++) w.add(o[s]);
  15742. }
  15743. var C = !(
  15744. 'undefined' == typeof window ||
  15745. void 0 === window.document ||
  15746. void 0 === window.document.createElement
  15747. ),
  15748. j = Object.prototype.hasOwnProperty,
  15749. L =
  15750. /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,
  15751. B = {},
  15752. $ = {};
  15753. function v(s, o, i, u, _, w, x) {
  15754. (this.acceptsBooleans = 2 === o || 3 === o || 4 === o),
  15755. (this.attributeName = u),
  15756. (this.attributeNamespace = _),
  15757. (this.mustUseProperty = i),
  15758. (this.propertyName = s),
  15759. (this.type = o),
  15760. (this.sanitizeURL = w),
  15761. (this.removeEmptyString = x);
  15762. }
  15763. var V = {};
  15764. 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style'
  15765. .split(' ')
  15766. .forEach(function (s) {
  15767. V[s] = new v(s, 0, !1, s, null, !1, !1);
  15768. }),
  15769. [
  15770. ['acceptCharset', 'accept-charset'],
  15771. ['className', 'class'],
  15772. ['htmlFor', 'for'],
  15773. ['httpEquiv', 'http-equiv']
  15774. ].forEach(function (s) {
  15775. var o = s[0];
  15776. V[o] = new v(o, 1, !1, s[1], null, !1, !1);
  15777. }),
  15778. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (s) {
  15779. V[s] = new v(s, 2, !1, s.toLowerCase(), null, !1, !1);
  15780. }),
  15781. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(
  15782. function (s) {
  15783. V[s] = new v(s, 2, !1, s, null, !1, !1);
  15784. }
  15785. ),
  15786. 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope'
  15787. .split(' ')
  15788. .forEach(function (s) {
  15789. V[s] = new v(s, 3, !1, s.toLowerCase(), null, !1, !1);
  15790. }),
  15791. ['checked', 'multiple', 'muted', 'selected'].forEach(function (s) {
  15792. V[s] = new v(s, 3, !0, s, null, !1, !1);
  15793. }),
  15794. ['capture', 'download'].forEach(function (s) {
  15795. V[s] = new v(s, 4, !1, s, null, !1, !1);
  15796. }),
  15797. ['cols', 'rows', 'size', 'span'].forEach(function (s) {
  15798. V[s] = new v(s, 6, !1, s, null, !1, !1);
  15799. }),
  15800. ['rowSpan', 'start'].forEach(function (s) {
  15801. V[s] = new v(s, 5, !1, s.toLowerCase(), null, !1, !1);
  15802. });
  15803. var U = /[\-:]([a-z])/g;
  15804. function sa(s) {
  15805. return s[1].toUpperCase();
  15806. }
  15807. function ta(s, o, i, u) {
  15808. var _ = V.hasOwnProperty(o) ? V[o] : null;
  15809. (null !== _
  15810. ? 0 !== _.type
  15811. : u ||
  15812. !(2 < o.length) ||
  15813. ('o' !== o[0] && 'O' !== o[0]) ||
  15814. ('n' !== o[1] && 'N' !== o[1])) &&
  15815. ((function qa(s, o, i, u) {
  15816. if (
  15817. null == o ||
  15818. (function pa(s, o, i, u) {
  15819. if (null !== i && 0 === i.type) return !1;
  15820. switch (typeof o) {
  15821. case 'function':
  15822. case 'symbol':
  15823. return !0;
  15824. case 'boolean':
  15825. return (
  15826. !u &&
  15827. (null !== i
  15828. ? !i.acceptsBooleans
  15829. : 'data-' !== (s = s.toLowerCase().slice(0, 5)) && 'aria-' !== s)
  15830. );
  15831. default:
  15832. return !1;
  15833. }
  15834. })(s, o, i, u)
  15835. )
  15836. return !0;
  15837. if (u) return !1;
  15838. if (null !== i)
  15839. switch (i.type) {
  15840. case 3:
  15841. return !o;
  15842. case 4:
  15843. return !1 === o;
  15844. case 5:
  15845. return isNaN(o);
  15846. case 6:
  15847. return isNaN(o) || 1 > o;
  15848. }
  15849. return !1;
  15850. })(o, i, _, u) && (i = null),
  15851. u || null === _
  15852. ? (function oa(s) {
  15853. return (
  15854. !!j.call($, s) ||
  15855. (!j.call(B, s) && (L.test(s) ? ($[s] = !0) : ((B[s] = !0), !1)))
  15856. );
  15857. })(o) && (null === i ? s.removeAttribute(o) : s.setAttribute(o, '' + i))
  15858. : _.mustUseProperty
  15859. ? (s[_.propertyName] = null === i ? 3 !== _.type && '' : i)
  15860. : ((o = _.attributeName),
  15861. (u = _.attributeNamespace),
  15862. null === i
  15863. ? s.removeAttribute(o)
  15864. : ((i = 3 === (_ = _.type) || (4 === _ && !0 === i) ? '' : '' + i),
  15865. u ? s.setAttributeNS(u, o, i) : s.setAttribute(o, i))));
  15866. }
  15867. 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height'
  15868. .split(' ')
  15869. .forEach(function (s) {
  15870. var o = s.replace(U, sa);
  15871. V[o] = new v(o, 1, !1, s, null, !1, !1);
  15872. }),
  15873. 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type'
  15874. .split(' ')
  15875. .forEach(function (s) {
  15876. var o = s.replace(U, sa);
  15877. V[o] = new v(o, 1, !1, s, 'http://www.w3.org/1999/xlink', !1, !1);
  15878. }),
  15879. ['xml:base', 'xml:lang', 'xml:space'].forEach(function (s) {
  15880. var o = s.replace(U, sa);
  15881. V[o] = new v(o, 1, !1, s, 'http://www.w3.org/XML/1998/namespace', !1, !1);
  15882. }),
  15883. ['tabIndex', 'crossOrigin'].forEach(function (s) {
  15884. V[s] = new v(s, 1, !1, s.toLowerCase(), null, !1, !1);
  15885. }),
  15886. (V.xlinkHref = new v(
  15887. 'xlinkHref',
  15888. 1,
  15889. !1,
  15890. 'xlink:href',
  15891. 'http://www.w3.org/1999/xlink',
  15892. !0,
  15893. !1
  15894. )),
  15895. ['src', 'href', 'action', 'formAction'].forEach(function (s) {
  15896. V[s] = new v(s, 1, !1, s.toLowerCase(), null, !0, !0);
  15897. });
  15898. var z = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
  15899. Y = Symbol.for('react.element'),
  15900. Z = Symbol.for('react.portal'),
  15901. ee = Symbol.for('react.fragment'),
  15902. ie = Symbol.for('react.strict_mode'),
  15903. ae = Symbol.for('react.profiler'),
  15904. le = Symbol.for('react.provider'),
  15905. ce = Symbol.for('react.context'),
  15906. pe = Symbol.for('react.forward_ref'),
  15907. de = Symbol.for('react.suspense'),
  15908. fe = Symbol.for('react.suspense_list'),
  15909. ye = Symbol.for('react.memo'),
  15910. be = Symbol.for('react.lazy');
  15911. Symbol.for('react.scope'), Symbol.for('react.debug_trace_mode');
  15912. var _e = Symbol.for('react.offscreen');
  15913. Symbol.for('react.legacy_hidden'),
  15914. Symbol.for('react.cache'),
  15915. Symbol.for('react.tracing_marker');
  15916. var we = Symbol.iterator;
  15917. function Ka(s) {
  15918. return null === s || 'object' != typeof s
  15919. ? null
  15920. : 'function' == typeof (s = (we && s[we]) || s['@@iterator'])
  15921. ? s
  15922. : null;
  15923. }
  15924. var Se,
  15925. xe = Object.assign;
  15926. function Ma(s) {
  15927. if (void 0 === Se)
  15928. try {
  15929. throw Error();
  15930. } catch (s) {
  15931. var o = s.stack.trim().match(/\n( *(at )?)/);
  15932. Se = (o && o[1]) || '';
  15933. }
  15934. return '\n' + Se + s;
  15935. }
  15936. var Pe = !1;
  15937. function Oa(s, o) {
  15938. if (!s || Pe) return '';
  15939. Pe = !0;
  15940. var i = Error.prepareStackTrace;
  15941. Error.prepareStackTrace = void 0;
  15942. try {
  15943. if (o)
  15944. if (
  15945. ((o = function () {
  15946. throw Error();
  15947. }),
  15948. Object.defineProperty(o.prototype, 'props', {
  15949. set: function () {
  15950. throw Error();
  15951. }
  15952. }),
  15953. 'object' == typeof Reflect && Reflect.construct)
  15954. ) {
  15955. try {
  15956. Reflect.construct(o, []);
  15957. } catch (s) {
  15958. var u = s;
  15959. }
  15960. Reflect.construct(s, [], o);
  15961. } else {
  15962. try {
  15963. o.call();
  15964. } catch (s) {
  15965. u = s;
  15966. }
  15967. s.call(o.prototype);
  15968. }
  15969. else {
  15970. try {
  15971. throw Error();
  15972. } catch (s) {
  15973. u = s;
  15974. }
  15975. s();
  15976. }
  15977. } catch (o) {
  15978. if (o && u && 'string' == typeof o.stack) {
  15979. for (
  15980. var _ = o.stack.split('\n'),
  15981. w = u.stack.split('\n'),
  15982. x = _.length - 1,
  15983. C = w.length - 1;
  15984. 1 <= x && 0 <= C && _[x] !== w[C];
  15985. )
  15986. C--;
  15987. for (; 1 <= x && 0 <= C; x--, C--)
  15988. if (_[x] !== w[C]) {
  15989. if (1 !== x || 1 !== C)
  15990. do {
  15991. if ((x--, 0 > --C || _[x] !== w[C])) {
  15992. var j = '\n' + _[x].replace(' at new ', ' at ');
  15993. return (
  15994. s.displayName &&
  15995. j.includes('<anonymous>') &&
  15996. (j = j.replace('<anonymous>', s.displayName)),
  15997. j
  15998. );
  15999. }
  16000. } while (1 <= x && 0 <= C);
  16001. break;
  16002. }
  16003. }
  16004. } finally {
  16005. (Pe = !1), (Error.prepareStackTrace = i);
  16006. }
  16007. return (s = s ? s.displayName || s.name : '') ? Ma(s) : '';
  16008. }
  16009. function Pa(s) {
  16010. switch (s.tag) {
  16011. case 5:
  16012. return Ma(s.type);
  16013. case 16:
  16014. return Ma('Lazy');
  16015. case 13:
  16016. return Ma('Suspense');
  16017. case 19:
  16018. return Ma('SuspenseList');
  16019. case 0:
  16020. case 2:
  16021. case 15:
  16022. return (s = Oa(s.type, !1));
  16023. case 11:
  16024. return (s = Oa(s.type.render, !1));
  16025. case 1:
  16026. return (s = Oa(s.type, !0));
  16027. default:
  16028. return '';
  16029. }
  16030. }
  16031. function Qa(s) {
  16032. if (null == s) return null;
  16033. if ('function' == typeof s) return s.displayName || s.name || null;
  16034. if ('string' == typeof s) return s;
  16035. switch (s) {
  16036. case ee:
  16037. return 'Fragment';
  16038. case Z:
  16039. return 'Portal';
  16040. case ae:
  16041. return 'Profiler';
  16042. case ie:
  16043. return 'StrictMode';
  16044. case de:
  16045. return 'Suspense';
  16046. case fe:
  16047. return 'SuspenseList';
  16048. }
  16049. if ('object' == typeof s)
  16050. switch (s.$$typeof) {
  16051. case ce:
  16052. return (s.displayName || 'Context') + '.Consumer';
  16053. case le:
  16054. return (s._context.displayName || 'Context') + '.Provider';
  16055. case pe:
  16056. var o = s.render;
  16057. return (
  16058. (s = s.displayName) ||
  16059. (s =
  16060. '' !== (s = o.displayName || o.name || '')
  16061. ? 'ForwardRef(' + s + ')'
  16062. : 'ForwardRef'),
  16063. s
  16064. );
  16065. case ye:
  16066. return null !== (o = s.displayName || null) ? o : Qa(s.type) || 'Memo';
  16067. case be:
  16068. (o = s._payload), (s = s._init);
  16069. try {
  16070. return Qa(s(o));
  16071. } catch (s) {}
  16072. }
  16073. return null;
  16074. }
  16075. function Ra(s) {
  16076. var o = s.type;
  16077. switch (s.tag) {
  16078. case 24:
  16079. return 'Cache';
  16080. case 9:
  16081. return (o.displayName || 'Context') + '.Consumer';
  16082. case 10:
  16083. return (o._context.displayName || 'Context') + '.Provider';
  16084. case 18:
  16085. return 'DehydratedFragment';
  16086. case 11:
  16087. return (
  16088. (s = (s = o.render).displayName || s.name || ''),
  16089. o.displayName || ('' !== s ? 'ForwardRef(' + s + ')' : 'ForwardRef')
  16090. );
  16091. case 7:
  16092. return 'Fragment';
  16093. case 5:
  16094. return o;
  16095. case 4:
  16096. return 'Portal';
  16097. case 3:
  16098. return 'Root';
  16099. case 6:
  16100. return 'Text';
  16101. case 16:
  16102. return Qa(o);
  16103. case 8:
  16104. return o === ie ? 'StrictMode' : 'Mode';
  16105. case 22:
  16106. return 'Offscreen';
  16107. case 12:
  16108. return 'Profiler';
  16109. case 21:
  16110. return 'Scope';
  16111. case 13:
  16112. return 'Suspense';
  16113. case 19:
  16114. return 'SuspenseList';
  16115. case 25:
  16116. return 'TracingMarker';
  16117. case 1:
  16118. case 0:
  16119. case 17:
  16120. case 2:
  16121. case 14:
  16122. case 15:
  16123. if ('function' == typeof o) return o.displayName || o.name || null;
  16124. if ('string' == typeof o) return o;
  16125. }
  16126. return null;
  16127. }
  16128. function Sa(s) {
  16129. switch (typeof s) {
  16130. case 'boolean':
  16131. case 'number':
  16132. case 'string':
  16133. case 'undefined':
  16134. case 'object':
  16135. return s;
  16136. default:
  16137. return '';
  16138. }
  16139. }
  16140. function Ta(s) {
  16141. var o = s.type;
  16142. return (
  16143. (s = s.nodeName) && 'input' === s.toLowerCase() && ('checkbox' === o || 'radio' === o)
  16144. );
  16145. }
  16146. function Va(s) {
  16147. s._valueTracker ||
  16148. (s._valueTracker = (function Ua(s) {
  16149. var o = Ta(s) ? 'checked' : 'value',
  16150. i = Object.getOwnPropertyDescriptor(s.constructor.prototype, o),
  16151. u = '' + s[o];
  16152. if (
  16153. !s.hasOwnProperty(o) &&
  16154. void 0 !== i &&
  16155. 'function' == typeof i.get &&
  16156. 'function' == typeof i.set
  16157. ) {
  16158. var _ = i.get,
  16159. w = i.set;
  16160. return (
  16161. Object.defineProperty(s, o, {
  16162. configurable: !0,
  16163. get: function () {
  16164. return _.call(this);
  16165. },
  16166. set: function (s) {
  16167. (u = '' + s), w.call(this, s);
  16168. }
  16169. }),
  16170. Object.defineProperty(s, o, { enumerable: i.enumerable }),
  16171. {
  16172. getValue: function () {
  16173. return u;
  16174. },
  16175. setValue: function (s) {
  16176. u = '' + s;
  16177. },
  16178. stopTracking: function () {
  16179. (s._valueTracker = null), delete s[o];
  16180. }
  16181. }
  16182. );
  16183. }
  16184. })(s));
  16185. }
  16186. function Wa(s) {
  16187. if (!s) return !1;
  16188. var o = s._valueTracker;
  16189. if (!o) return !0;
  16190. var i = o.getValue(),
  16191. u = '';
  16192. return (
  16193. s && (u = Ta(s) ? (s.checked ? 'true' : 'false') : s.value),
  16194. (s = u) !== i && (o.setValue(s), !0)
  16195. );
  16196. }
  16197. function Xa(s) {
  16198. if (void 0 === (s = s || ('undefined' != typeof document ? document : void 0)))
  16199. return null;
  16200. try {
  16201. return s.activeElement || s.body;
  16202. } catch (o) {
  16203. return s.body;
  16204. }
  16205. }
  16206. function Ya(s, o) {
  16207. var i = o.checked;
  16208. return xe({}, o, {
  16209. defaultChecked: void 0,
  16210. defaultValue: void 0,
  16211. value: void 0,
  16212. checked: null != i ? i : s._wrapperState.initialChecked
  16213. });
  16214. }
  16215. function Za(s, o) {
  16216. var i = null == o.defaultValue ? '' : o.defaultValue,
  16217. u = null != o.checked ? o.checked : o.defaultChecked;
  16218. (i = Sa(null != o.value ? o.value : i)),
  16219. (s._wrapperState = {
  16220. initialChecked: u,
  16221. initialValue: i,
  16222. controlled:
  16223. 'checkbox' === o.type || 'radio' === o.type ? null != o.checked : null != o.value
  16224. });
  16225. }
  16226. function ab(s, o) {
  16227. null != (o = o.checked) && ta(s, 'checked', o, !1);
  16228. }
  16229. function bb(s, o) {
  16230. ab(s, o);
  16231. var i = Sa(o.value),
  16232. u = o.type;
  16233. if (null != i)
  16234. 'number' === u
  16235. ? ((0 === i && '' === s.value) || s.value != i) && (s.value = '' + i)
  16236. : s.value !== '' + i && (s.value = '' + i);
  16237. else if ('submit' === u || 'reset' === u) return void s.removeAttribute('value');
  16238. o.hasOwnProperty('value')
  16239. ? cb(s, o.type, i)
  16240. : o.hasOwnProperty('defaultValue') && cb(s, o.type, Sa(o.defaultValue)),
  16241. null == o.checked &&
  16242. null != o.defaultChecked &&
  16243. (s.defaultChecked = !!o.defaultChecked);
  16244. }
  16245. function db(s, o, i) {
  16246. if (o.hasOwnProperty('value') || o.hasOwnProperty('defaultValue')) {
  16247. var u = o.type;
  16248. if (!(('submit' !== u && 'reset' !== u) || (void 0 !== o.value && null !== o.value)))
  16249. return;
  16250. (o = '' + s._wrapperState.initialValue),
  16251. i || o === s.value || (s.value = o),
  16252. (s.defaultValue = o);
  16253. }
  16254. '' !== (i = s.name) && (s.name = ''),
  16255. (s.defaultChecked = !!s._wrapperState.initialChecked),
  16256. '' !== i && (s.name = i);
  16257. }
  16258. function cb(s, o, i) {
  16259. ('number' === o && Xa(s.ownerDocument) === s) ||
  16260. (null == i
  16261. ? (s.defaultValue = '' + s._wrapperState.initialValue)
  16262. : s.defaultValue !== '' + i && (s.defaultValue = '' + i));
  16263. }
  16264. var Te = Array.isArray;
  16265. function fb(s, o, i, u) {
  16266. if (((s = s.options), o)) {
  16267. o = {};
  16268. for (var _ = 0; _ < i.length; _++) o['$' + i[_]] = !0;
  16269. for (i = 0; i < s.length; i++)
  16270. (_ = o.hasOwnProperty('$' + s[i].value)),
  16271. s[i].selected !== _ && (s[i].selected = _),
  16272. _ && u && (s[i].defaultSelected = !0);
  16273. } else {
  16274. for (i = '' + Sa(i), o = null, _ = 0; _ < s.length; _++) {
  16275. if (s[_].value === i)
  16276. return (s[_].selected = !0), void (u && (s[_].defaultSelected = !0));
  16277. null !== o || s[_].disabled || (o = s[_]);
  16278. }
  16279. null !== o && (o.selected = !0);
  16280. }
  16281. }
  16282. function gb(s, o) {
  16283. if (null != o.dangerouslySetInnerHTML) throw Error(p(91));
  16284. return xe({}, o, {
  16285. value: void 0,
  16286. defaultValue: void 0,
  16287. children: '' + s._wrapperState.initialValue
  16288. });
  16289. }
  16290. function hb(s, o) {
  16291. var i = o.value;
  16292. if (null == i) {
  16293. if (((i = o.children), (o = o.defaultValue), null != i)) {
  16294. if (null != o) throw Error(p(92));
  16295. if (Te(i)) {
  16296. if (1 < i.length) throw Error(p(93));
  16297. i = i[0];
  16298. }
  16299. o = i;
  16300. }
  16301. null == o && (o = ''), (i = o);
  16302. }
  16303. s._wrapperState = { initialValue: Sa(i) };
  16304. }
  16305. function ib(s, o) {
  16306. var i = Sa(o.value),
  16307. u = Sa(o.defaultValue);
  16308. null != i &&
  16309. ((i = '' + i) !== s.value && (s.value = i),
  16310. null == o.defaultValue && s.defaultValue !== i && (s.defaultValue = i)),
  16311. null != u && (s.defaultValue = '' + u);
  16312. }
  16313. function jb(s) {
  16314. var o = s.textContent;
  16315. o === s._wrapperState.initialValue && '' !== o && null !== o && (s.value = o);
  16316. }
  16317. function kb(s) {
  16318. switch (s) {
  16319. case 'svg':
  16320. return 'http://www.w3.org/2000/svg';
  16321. case 'math':
  16322. return 'http://www.w3.org/1998/Math/MathML';
  16323. default:
  16324. return 'http://www.w3.org/1999/xhtml';
  16325. }
  16326. }
  16327. function lb(s, o) {
  16328. return null == s || 'http://www.w3.org/1999/xhtml' === s
  16329. ? kb(o)
  16330. : 'http://www.w3.org/2000/svg' === s && 'foreignObject' === o
  16331. ? 'http://www.w3.org/1999/xhtml'
  16332. : s;
  16333. }
  16334. var Re,
  16335. qe,
  16336. $e =
  16337. ((qe = function (s, o) {
  16338. if ('http://www.w3.org/2000/svg' !== s.namespaceURI || 'innerHTML' in s)
  16339. s.innerHTML = o;
  16340. else {
  16341. for (
  16342. (Re = Re || document.createElement('div')).innerHTML =
  16343. '<svg>' + o.valueOf().toString() + '</svg>',
  16344. o = Re.firstChild;
  16345. s.firstChild;
  16346. )
  16347. s.removeChild(s.firstChild);
  16348. for (; o.firstChild; ) s.appendChild(o.firstChild);
  16349. }
  16350. }),
  16351. 'undefined' != typeof MSApp && MSApp.execUnsafeLocalFunction
  16352. ? function (s, o, i, u) {
  16353. MSApp.execUnsafeLocalFunction(function () {
  16354. return qe(s, o);
  16355. });
  16356. }
  16357. : qe);
  16358. function ob(s, o) {
  16359. if (o) {
  16360. var i = s.firstChild;
  16361. if (i && i === s.lastChild && 3 === i.nodeType) return void (i.nodeValue = o);
  16362. }
  16363. s.textContent = o;
  16364. }
  16365. var ze = {
  16366. animationIterationCount: !0,
  16367. aspectRatio: !0,
  16368. borderImageOutset: !0,
  16369. borderImageSlice: !0,
  16370. borderImageWidth: !0,
  16371. boxFlex: !0,
  16372. boxFlexGroup: !0,
  16373. boxOrdinalGroup: !0,
  16374. columnCount: !0,
  16375. columns: !0,
  16376. flex: !0,
  16377. flexGrow: !0,
  16378. flexPositive: !0,
  16379. flexShrink: !0,
  16380. flexNegative: !0,
  16381. flexOrder: !0,
  16382. gridArea: !0,
  16383. gridRow: !0,
  16384. gridRowEnd: !0,
  16385. gridRowSpan: !0,
  16386. gridRowStart: !0,
  16387. gridColumn: !0,
  16388. gridColumnEnd: !0,
  16389. gridColumnSpan: !0,
  16390. gridColumnStart: !0,
  16391. fontWeight: !0,
  16392. lineClamp: !0,
  16393. lineHeight: !0,
  16394. opacity: !0,
  16395. order: !0,
  16396. orphans: !0,
  16397. tabSize: !0,
  16398. widows: !0,
  16399. zIndex: !0,
  16400. zoom: !0,
  16401. fillOpacity: !0,
  16402. floodOpacity: !0,
  16403. stopOpacity: !0,
  16404. strokeDasharray: !0,
  16405. strokeDashoffset: !0,
  16406. strokeMiterlimit: !0,
  16407. strokeOpacity: !0,
  16408. strokeWidth: !0
  16409. },
  16410. We = ['Webkit', 'ms', 'Moz', 'O'];
  16411. function rb(s, o, i) {
  16412. return null == o || 'boolean' == typeof o || '' === o
  16413. ? ''
  16414. : i || 'number' != typeof o || 0 === o || (ze.hasOwnProperty(s) && ze[s])
  16415. ? ('' + o).trim()
  16416. : o + 'px';
  16417. }
  16418. function sb(s, o) {
  16419. for (var i in ((s = s.style), o))
  16420. if (o.hasOwnProperty(i)) {
  16421. var u = 0 === i.indexOf('--'),
  16422. _ = rb(i, o[i], u);
  16423. 'float' === i && (i = 'cssFloat'), u ? s.setProperty(i, _) : (s[i] = _);
  16424. }
  16425. }
  16426. Object.keys(ze).forEach(function (s) {
  16427. We.forEach(function (o) {
  16428. (o = o + s.charAt(0).toUpperCase() + s.substring(1)), (ze[o] = ze[s]);
  16429. });
  16430. });
  16431. var He = xe(
  16432. { menuitem: !0 },
  16433. {
  16434. area: !0,
  16435. base: !0,
  16436. br: !0,
  16437. col: !0,
  16438. embed: !0,
  16439. hr: !0,
  16440. img: !0,
  16441. input: !0,
  16442. keygen: !0,
  16443. link: !0,
  16444. meta: !0,
  16445. param: !0,
  16446. source: !0,
  16447. track: !0,
  16448. wbr: !0
  16449. }
  16450. );
  16451. function ub(s, o) {
  16452. if (o) {
  16453. if (He[s] && (null != o.children || null != o.dangerouslySetInnerHTML))
  16454. throw Error(p(137, s));
  16455. if (null != o.dangerouslySetInnerHTML) {
  16456. if (null != o.children) throw Error(p(60));
  16457. if (
  16458. 'object' != typeof o.dangerouslySetInnerHTML ||
  16459. !('__html' in o.dangerouslySetInnerHTML)
  16460. )
  16461. throw Error(p(61));
  16462. }
  16463. if (null != o.style && 'object' != typeof o.style) throw Error(p(62));
  16464. }
  16465. }
  16466. function vb(s, o) {
  16467. if (-1 === s.indexOf('-')) return 'string' == typeof o.is;
  16468. switch (s) {
  16469. case 'annotation-xml':
  16470. case 'color-profile':
  16471. case 'font-face':
  16472. case 'font-face-src':
  16473. case 'font-face-uri':
  16474. case 'font-face-format':
  16475. case 'font-face-name':
  16476. case 'missing-glyph':
  16477. return !1;
  16478. default:
  16479. return !0;
  16480. }
  16481. }
  16482. var Ye = null;
  16483. function xb(s) {
  16484. return (
  16485. (s = s.target || s.srcElement || window).correspondingUseElement &&
  16486. (s = s.correspondingUseElement),
  16487. 3 === s.nodeType ? s.parentNode : s
  16488. );
  16489. }
  16490. var Xe = null,
  16491. Qe = null,
  16492. et = null;
  16493. function Bb(s) {
  16494. if ((s = Cb(s))) {
  16495. if ('function' != typeof Xe) throw Error(p(280));
  16496. var o = s.stateNode;
  16497. o && ((o = Db(o)), Xe(s.stateNode, s.type, o));
  16498. }
  16499. }
  16500. function Eb(s) {
  16501. Qe ? (et ? et.push(s) : (et = [s])) : (Qe = s);
  16502. }
  16503. function Fb() {
  16504. if (Qe) {
  16505. var s = Qe,
  16506. o = et;
  16507. if (((et = Qe = null), Bb(s), o)) for (s = 0; s < o.length; s++) Bb(o[s]);
  16508. }
  16509. }
  16510. function Gb(s, o) {
  16511. return s(o);
  16512. }
  16513. function Hb() {}
  16514. var tt = !1;
  16515. function Jb(s, o, i) {
  16516. if (tt) return s(o, i);
  16517. tt = !0;
  16518. try {
  16519. return Gb(s, o, i);
  16520. } finally {
  16521. (tt = !1), (null !== Qe || null !== et) && (Hb(), Fb());
  16522. }
  16523. }
  16524. function Kb(s, o) {
  16525. var i = s.stateNode;
  16526. if (null === i) return null;
  16527. var u = Db(i);
  16528. if (null === u) return null;
  16529. i = u[o];
  16530. e: switch (o) {
  16531. case 'onClick':
  16532. case 'onClickCapture':
  16533. case 'onDoubleClick':
  16534. case 'onDoubleClickCapture':
  16535. case 'onMouseDown':
  16536. case 'onMouseDownCapture':
  16537. case 'onMouseMove':
  16538. case 'onMouseMoveCapture':
  16539. case 'onMouseUp':
  16540. case 'onMouseUpCapture':
  16541. case 'onMouseEnter':
  16542. (u = !u.disabled) ||
  16543. (u = !(
  16544. 'button' === (s = s.type) ||
  16545. 'input' === s ||
  16546. 'select' === s ||
  16547. 'textarea' === s
  16548. )),
  16549. (s = !u);
  16550. break e;
  16551. default:
  16552. s = !1;
  16553. }
  16554. if (s) return null;
  16555. if (i && 'function' != typeof i) throw Error(p(231, o, typeof i));
  16556. return i;
  16557. }
  16558. var rt = !1;
  16559. if (C)
  16560. try {
  16561. var nt = {};
  16562. Object.defineProperty(nt, 'passive', {
  16563. get: function () {
  16564. rt = !0;
  16565. }
  16566. }),
  16567. window.addEventListener('test', nt, nt),
  16568. window.removeEventListener('test', nt, nt);
  16569. } catch (qe) {
  16570. rt = !1;
  16571. }
  16572. function Nb(s, o, i, u, _, w, x, C, j) {
  16573. var L = Array.prototype.slice.call(arguments, 3);
  16574. try {
  16575. o.apply(i, L);
  16576. } catch (s) {
  16577. this.onError(s);
  16578. }
  16579. }
  16580. var st = !1,
  16581. ot = null,
  16582. it = !1,
  16583. at = null,
  16584. lt = {
  16585. onError: function (s) {
  16586. (st = !0), (ot = s);
  16587. }
  16588. };
  16589. function Tb(s, o, i, u, _, w, x, C, j) {
  16590. (st = !1), (ot = null), Nb.apply(lt, arguments);
  16591. }
  16592. function Vb(s) {
  16593. var o = s,
  16594. i = s;
  16595. if (s.alternate) for (; o.return; ) o = o.return;
  16596. else {
  16597. s = o;
  16598. do {
  16599. !!(4098 & (o = s).flags) && (i = o.return), (s = o.return);
  16600. } while (s);
  16601. }
  16602. return 3 === o.tag ? i : null;
  16603. }
  16604. function Wb(s) {
  16605. if (13 === s.tag) {
  16606. var o = s.memoizedState;
  16607. if ((null === o && null !== (s = s.alternate) && (o = s.memoizedState), null !== o))
  16608. return o.dehydrated;
  16609. }
  16610. return null;
  16611. }
  16612. function Xb(s) {
  16613. if (Vb(s) !== s) throw Error(p(188));
  16614. }
  16615. function Zb(s) {
  16616. return null !==
  16617. (s = (function Yb(s) {
  16618. var o = s.alternate;
  16619. if (!o) {
  16620. if (null === (o = Vb(s))) throw Error(p(188));
  16621. return o !== s ? null : s;
  16622. }
  16623. for (var i = s, u = o; ; ) {
  16624. var _ = i.return;
  16625. if (null === _) break;
  16626. var w = _.alternate;
  16627. if (null === w) {
  16628. if (null !== (u = _.return)) {
  16629. i = u;
  16630. continue;
  16631. }
  16632. break;
  16633. }
  16634. if (_.child === w.child) {
  16635. for (w = _.child; w; ) {
  16636. if (w === i) return Xb(_), s;
  16637. if (w === u) return Xb(_), o;
  16638. w = w.sibling;
  16639. }
  16640. throw Error(p(188));
  16641. }
  16642. if (i.return !== u.return) (i = _), (u = w);
  16643. else {
  16644. for (var x = !1, C = _.child; C; ) {
  16645. if (C === i) {
  16646. (x = !0), (i = _), (u = w);
  16647. break;
  16648. }
  16649. if (C === u) {
  16650. (x = !0), (u = _), (i = w);
  16651. break;
  16652. }
  16653. C = C.sibling;
  16654. }
  16655. if (!x) {
  16656. for (C = w.child; C; ) {
  16657. if (C === i) {
  16658. (x = !0), (i = w), (u = _);
  16659. break;
  16660. }
  16661. if (C === u) {
  16662. (x = !0), (u = w), (i = _);
  16663. break;
  16664. }
  16665. C = C.sibling;
  16666. }
  16667. if (!x) throw Error(p(189));
  16668. }
  16669. }
  16670. if (i.alternate !== u) throw Error(p(190));
  16671. }
  16672. if (3 !== i.tag) throw Error(p(188));
  16673. return i.stateNode.current === i ? s : o;
  16674. })(s))
  16675. ? $b(s)
  16676. : null;
  16677. }
  16678. function $b(s) {
  16679. if (5 === s.tag || 6 === s.tag) return s;
  16680. for (s = s.child; null !== s; ) {
  16681. var o = $b(s);
  16682. if (null !== o) return o;
  16683. s = s.sibling;
  16684. }
  16685. return null;
  16686. }
  16687. var ct = _.unstable_scheduleCallback,
  16688. ut = _.unstable_cancelCallback,
  16689. pt = _.unstable_shouldYield,
  16690. ht = _.unstable_requestPaint,
  16691. dt = _.unstable_now,
  16692. mt = _.unstable_getCurrentPriorityLevel,
  16693. gt = _.unstable_ImmediatePriority,
  16694. yt = _.unstable_UserBlockingPriority,
  16695. vt = _.unstable_NormalPriority,
  16696. bt = _.unstable_LowPriority,
  16697. _t = _.unstable_IdlePriority,
  16698. Et = null,
  16699. wt = null;
  16700. var St = Math.clz32
  16701. ? Math.clz32
  16702. : function nc(s) {
  16703. return (s >>>= 0), 0 === s ? 32 : (31 - ((xt(s) / kt) | 0)) | 0;
  16704. },
  16705. xt = Math.log,
  16706. kt = Math.LN2;
  16707. var Ct = 64,
  16708. Ot = 4194304;
  16709. function tc(s) {
  16710. switch (s & -s) {
  16711. case 1:
  16712. return 1;
  16713. case 2:
  16714. return 2;
  16715. case 4:
  16716. return 4;
  16717. case 8:
  16718. return 8;
  16719. case 16:
  16720. return 16;
  16721. case 32:
  16722. return 32;
  16723. case 64:
  16724. case 128:
  16725. case 256:
  16726. case 512:
  16727. case 1024:
  16728. case 2048:
  16729. case 4096:
  16730. case 8192:
  16731. case 16384:
  16732. case 32768:
  16733. case 65536:
  16734. case 131072:
  16735. case 262144:
  16736. case 524288:
  16737. case 1048576:
  16738. case 2097152:
  16739. return 4194240 & s;
  16740. case 4194304:
  16741. case 8388608:
  16742. case 16777216:
  16743. case 33554432:
  16744. case 67108864:
  16745. return 130023424 & s;
  16746. case 134217728:
  16747. return 134217728;
  16748. case 268435456:
  16749. return 268435456;
  16750. case 536870912:
  16751. return 536870912;
  16752. case 1073741824:
  16753. return 1073741824;
  16754. default:
  16755. return s;
  16756. }
  16757. }
  16758. function uc(s, o) {
  16759. var i = s.pendingLanes;
  16760. if (0 === i) return 0;
  16761. var u = 0,
  16762. _ = s.suspendedLanes,
  16763. w = s.pingedLanes,
  16764. x = 268435455 & i;
  16765. if (0 !== x) {
  16766. var C = x & ~_;
  16767. 0 !== C ? (u = tc(C)) : 0 !== (w &= x) && (u = tc(w));
  16768. } else 0 !== (x = i & ~_) ? (u = tc(x)) : 0 !== w && (u = tc(w));
  16769. if (0 === u) return 0;
  16770. if (
  16771. 0 !== o &&
  16772. o !== u &&
  16773. !(o & _) &&
  16774. ((_ = u & -u) >= (w = o & -o) || (16 === _ && 4194240 & w))
  16775. )
  16776. return o;
  16777. if ((4 & u && (u |= 16 & i), 0 !== (o = s.entangledLanes)))
  16778. for (s = s.entanglements, o &= u; 0 < o; )
  16779. (_ = 1 << (i = 31 - St(o))), (u |= s[i]), (o &= ~_);
  16780. return u;
  16781. }
  16782. function vc(s, o) {
  16783. switch (s) {
  16784. case 1:
  16785. case 2:
  16786. case 4:
  16787. return o + 250;
  16788. case 8:
  16789. case 16:
  16790. case 32:
  16791. case 64:
  16792. case 128:
  16793. case 256:
  16794. case 512:
  16795. case 1024:
  16796. case 2048:
  16797. case 4096:
  16798. case 8192:
  16799. case 16384:
  16800. case 32768:
  16801. case 65536:
  16802. case 131072:
  16803. case 262144:
  16804. case 524288:
  16805. case 1048576:
  16806. case 2097152:
  16807. return o + 5e3;
  16808. default:
  16809. return -1;
  16810. }
  16811. }
  16812. function xc(s) {
  16813. return 0 !== (s = -1073741825 & s.pendingLanes) ? s : 1073741824 & s ? 1073741824 : 0;
  16814. }
  16815. function yc() {
  16816. var s = Ct;
  16817. return !(4194240 & (Ct <<= 1)) && (Ct = 64), s;
  16818. }
  16819. function zc(s) {
  16820. for (var o = [], i = 0; 31 > i; i++) o.push(s);
  16821. return o;
  16822. }
  16823. function Ac(s, o, i) {
  16824. (s.pendingLanes |= o),
  16825. 536870912 !== o && ((s.suspendedLanes = 0), (s.pingedLanes = 0)),
  16826. ((s = s.eventTimes)[(o = 31 - St(o))] = i);
  16827. }
  16828. function Cc(s, o) {
  16829. var i = (s.entangledLanes |= o);
  16830. for (s = s.entanglements; i; ) {
  16831. var u = 31 - St(i),
  16832. _ = 1 << u;
  16833. (_ & o) | (s[u] & o) && (s[u] |= o), (i &= ~_);
  16834. }
  16835. }
  16836. var At = 0;
  16837. function Dc(s) {
  16838. return 1 < (s &= -s) ? (4 < s ? (268435455 & s ? 16 : 536870912) : 4) : 1;
  16839. }
  16840. var jt,
  16841. It,
  16842. Pt,
  16843. Mt,
  16844. Tt,
  16845. Nt = !1,
  16846. Rt = [],
  16847. Dt = null,
  16848. Lt = null,
  16849. Bt = null,
  16850. Ft = new Map(),
  16851. qt = new Map(),
  16852. $t = [],
  16853. Vt =
  16854. 'mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit'.split(
  16855. ' '
  16856. );
  16857. function Sc(s, o) {
  16858. switch (s) {
  16859. case 'focusin':
  16860. case 'focusout':
  16861. Dt = null;
  16862. break;
  16863. case 'dragenter':
  16864. case 'dragleave':
  16865. Lt = null;
  16866. break;
  16867. case 'mouseover':
  16868. case 'mouseout':
  16869. Bt = null;
  16870. break;
  16871. case 'pointerover':
  16872. case 'pointerout':
  16873. Ft.delete(o.pointerId);
  16874. break;
  16875. case 'gotpointercapture':
  16876. case 'lostpointercapture':
  16877. qt.delete(o.pointerId);
  16878. }
  16879. }
  16880. function Tc(s, o, i, u, _, w) {
  16881. return null === s || s.nativeEvent !== w
  16882. ? ((s = {
  16883. blockedOn: o,
  16884. domEventName: i,
  16885. eventSystemFlags: u,
  16886. nativeEvent: w,
  16887. targetContainers: [_]
  16888. }),
  16889. null !== o && null !== (o = Cb(o)) && It(o),
  16890. s)
  16891. : ((s.eventSystemFlags |= u),
  16892. (o = s.targetContainers),
  16893. null !== _ && -1 === o.indexOf(_) && o.push(_),
  16894. s);
  16895. }
  16896. function Vc(s) {
  16897. var o = Wc(s.target);
  16898. if (null !== o) {
  16899. var i = Vb(o);
  16900. if (null !== i)
  16901. if (13 === (o = i.tag)) {
  16902. if (null !== (o = Wb(i)))
  16903. return (
  16904. (s.blockedOn = o),
  16905. void Tt(s.priority, function () {
  16906. Pt(i);
  16907. })
  16908. );
  16909. } else if (3 === o && i.stateNode.current.memoizedState.isDehydrated)
  16910. return void (s.blockedOn = 3 === i.tag ? i.stateNode.containerInfo : null);
  16911. }
  16912. s.blockedOn = null;
  16913. }
  16914. function Xc(s) {
  16915. if (null !== s.blockedOn) return !1;
  16916. for (var o = s.targetContainers; 0 < o.length; ) {
  16917. var i = Yc(s.domEventName, s.eventSystemFlags, o[0], s.nativeEvent);
  16918. if (null !== i) return null !== (o = Cb(i)) && It(o), (s.blockedOn = i), !1;
  16919. var u = new (i = s.nativeEvent).constructor(i.type, i);
  16920. (Ye = u), i.target.dispatchEvent(u), (Ye = null), o.shift();
  16921. }
  16922. return !0;
  16923. }
  16924. function Zc(s, o, i) {
  16925. Xc(s) && i.delete(o);
  16926. }
  16927. function $c() {
  16928. (Nt = !1),
  16929. null !== Dt && Xc(Dt) && (Dt = null),
  16930. null !== Lt && Xc(Lt) && (Lt = null),
  16931. null !== Bt && Xc(Bt) && (Bt = null),
  16932. Ft.forEach(Zc),
  16933. qt.forEach(Zc);
  16934. }
  16935. function ad(s, o) {
  16936. s.blockedOn === o &&
  16937. ((s.blockedOn = null),
  16938. Nt || ((Nt = !0), _.unstable_scheduleCallback(_.unstable_NormalPriority, $c)));
  16939. }
  16940. function bd(s) {
  16941. function b(o) {
  16942. return ad(o, s);
  16943. }
  16944. if (0 < Rt.length) {
  16945. ad(Rt[0], s);
  16946. for (var o = 1; o < Rt.length; o++) {
  16947. var i = Rt[o];
  16948. i.blockedOn === s && (i.blockedOn = null);
  16949. }
  16950. }
  16951. for (
  16952. null !== Dt && ad(Dt, s),
  16953. null !== Lt && ad(Lt, s),
  16954. null !== Bt && ad(Bt, s),
  16955. Ft.forEach(b),
  16956. qt.forEach(b),
  16957. o = 0;
  16958. o < $t.length;
  16959. o++
  16960. )
  16961. (i = $t[o]).blockedOn === s && (i.blockedOn = null);
  16962. for (; 0 < $t.length && null === (o = $t[0]).blockedOn; )
  16963. Vc(o), null === o.blockedOn && $t.shift();
  16964. }
  16965. var Ut = z.ReactCurrentBatchConfig,
  16966. zt = !0;
  16967. function ed(s, o, i, u) {
  16968. var _ = At,
  16969. w = Ut.transition;
  16970. Ut.transition = null;
  16971. try {
  16972. (At = 1), fd(s, o, i, u);
  16973. } finally {
  16974. (At = _), (Ut.transition = w);
  16975. }
  16976. }
  16977. function gd(s, o, i, u) {
  16978. var _ = At,
  16979. w = Ut.transition;
  16980. Ut.transition = null;
  16981. try {
  16982. (At = 4), fd(s, o, i, u);
  16983. } finally {
  16984. (At = _), (Ut.transition = w);
  16985. }
  16986. }
  16987. function fd(s, o, i, u) {
  16988. if (zt) {
  16989. var _ = Yc(s, o, i, u);
  16990. if (null === _) hd(s, o, u, Wt, i), Sc(s, u);
  16991. else if (
  16992. (function Uc(s, o, i, u, _) {
  16993. switch (o) {
  16994. case 'focusin':
  16995. return (Dt = Tc(Dt, s, o, i, u, _)), !0;
  16996. case 'dragenter':
  16997. return (Lt = Tc(Lt, s, o, i, u, _)), !0;
  16998. case 'mouseover':
  16999. return (Bt = Tc(Bt, s, o, i, u, _)), !0;
  17000. case 'pointerover':
  17001. var w = _.pointerId;
  17002. return Ft.set(w, Tc(Ft.get(w) || null, s, o, i, u, _)), !0;
  17003. case 'gotpointercapture':
  17004. return (w = _.pointerId), qt.set(w, Tc(qt.get(w) || null, s, o, i, u, _)), !0;
  17005. }
  17006. return !1;
  17007. })(_, s, o, i, u)
  17008. )
  17009. u.stopPropagation();
  17010. else if ((Sc(s, u), 4 & o && -1 < Vt.indexOf(s))) {
  17011. for (; null !== _; ) {
  17012. var w = Cb(_);
  17013. if (
  17014. (null !== w && jt(w),
  17015. null === (w = Yc(s, o, i, u)) && hd(s, o, u, Wt, i),
  17016. w === _)
  17017. )
  17018. break;
  17019. _ = w;
  17020. }
  17021. null !== _ && u.stopPropagation();
  17022. } else hd(s, o, u, null, i);
  17023. }
  17024. }
  17025. var Wt = null;
  17026. function Yc(s, o, i, u) {
  17027. if (((Wt = null), null !== (s = Wc((s = xb(u))))))
  17028. if (null === (o = Vb(s))) s = null;
  17029. else if (13 === (i = o.tag)) {
  17030. if (null !== (s = Wb(o))) return s;
  17031. s = null;
  17032. } else if (3 === i) {
  17033. if (o.stateNode.current.memoizedState.isDehydrated)
  17034. return 3 === o.tag ? o.stateNode.containerInfo : null;
  17035. s = null;
  17036. } else o !== s && (s = null);
  17037. return (Wt = s), null;
  17038. }
  17039. function jd(s) {
  17040. switch (s) {
  17041. case 'cancel':
  17042. case 'click':
  17043. case 'close':
  17044. case 'contextmenu':
  17045. case 'copy':
  17046. case 'cut':
  17047. case 'auxclick':
  17048. case 'dblclick':
  17049. case 'dragend':
  17050. case 'dragstart':
  17051. case 'drop':
  17052. case 'focusin':
  17053. case 'focusout':
  17054. case 'input':
  17055. case 'invalid':
  17056. case 'keydown':
  17057. case 'keypress':
  17058. case 'keyup':
  17059. case 'mousedown':
  17060. case 'mouseup':
  17061. case 'paste':
  17062. case 'pause':
  17063. case 'play':
  17064. case 'pointercancel':
  17065. case 'pointerdown':
  17066. case 'pointerup':
  17067. case 'ratechange':
  17068. case 'reset':
  17069. case 'resize':
  17070. case 'seeked':
  17071. case 'submit':
  17072. case 'touchcancel':
  17073. case 'touchend':
  17074. case 'touchstart':
  17075. case 'volumechange':
  17076. case 'change':
  17077. case 'selectionchange':
  17078. case 'textInput':
  17079. case 'compositionstart':
  17080. case 'compositionend':
  17081. case 'compositionupdate':
  17082. case 'beforeblur':
  17083. case 'afterblur':
  17084. case 'beforeinput':
  17085. case 'blur':
  17086. case 'fullscreenchange':
  17087. case 'focus':
  17088. case 'hashchange':
  17089. case 'popstate':
  17090. case 'select':
  17091. case 'selectstart':
  17092. return 1;
  17093. case 'drag':
  17094. case 'dragenter':
  17095. case 'dragexit':
  17096. case 'dragleave':
  17097. case 'dragover':
  17098. case 'mousemove':
  17099. case 'mouseout':
  17100. case 'mouseover':
  17101. case 'pointermove':
  17102. case 'pointerout':
  17103. case 'pointerover':
  17104. case 'scroll':
  17105. case 'toggle':
  17106. case 'touchmove':
  17107. case 'wheel':
  17108. case 'mouseenter':
  17109. case 'mouseleave':
  17110. case 'pointerenter':
  17111. case 'pointerleave':
  17112. return 4;
  17113. case 'message':
  17114. switch (mt()) {
  17115. case gt:
  17116. return 1;
  17117. case yt:
  17118. return 4;
  17119. case vt:
  17120. case bt:
  17121. return 16;
  17122. case _t:
  17123. return 536870912;
  17124. default:
  17125. return 16;
  17126. }
  17127. default:
  17128. return 16;
  17129. }
  17130. }
  17131. var Kt = null,
  17132. Ht = null,
  17133. Jt = null;
  17134. function nd() {
  17135. if (Jt) return Jt;
  17136. var s,
  17137. o,
  17138. i = Ht,
  17139. u = i.length,
  17140. _ = 'value' in Kt ? Kt.value : Kt.textContent,
  17141. w = _.length;
  17142. for (s = 0; s < u && i[s] === _[s]; s++);
  17143. var x = u - s;
  17144. for (o = 1; o <= x && i[u - o] === _[w - o]; o++);
  17145. return (Jt = _.slice(s, 1 < o ? 1 - o : void 0));
  17146. }
  17147. function od(s) {
  17148. var o = s.keyCode;
  17149. return (
  17150. 'charCode' in s ? 0 === (s = s.charCode) && 13 === o && (s = 13) : (s = o),
  17151. 10 === s && (s = 13),
  17152. 32 <= s || 13 === s ? s : 0
  17153. );
  17154. }
  17155. function pd() {
  17156. return !0;
  17157. }
  17158. function qd() {
  17159. return !1;
  17160. }
  17161. function rd(s) {
  17162. function b(o, i, u, _, w) {
  17163. for (var x in ((this._reactName = o),
  17164. (this._targetInst = u),
  17165. (this.type = i),
  17166. (this.nativeEvent = _),
  17167. (this.target = w),
  17168. (this.currentTarget = null),
  17169. s))
  17170. s.hasOwnProperty(x) && ((o = s[x]), (this[x] = o ? o(_) : _[x]));
  17171. return (
  17172. (this.isDefaultPrevented = (
  17173. null != _.defaultPrevented ? _.defaultPrevented : !1 === _.returnValue
  17174. )
  17175. ? pd
  17176. : qd),
  17177. (this.isPropagationStopped = qd),
  17178. this
  17179. );
  17180. }
  17181. return (
  17182. xe(b.prototype, {
  17183. preventDefault: function () {
  17184. this.defaultPrevented = !0;
  17185. var s = this.nativeEvent;
  17186. s &&
  17187. (s.preventDefault
  17188. ? s.preventDefault()
  17189. : 'unknown' != typeof s.returnValue && (s.returnValue = !1),
  17190. (this.isDefaultPrevented = pd));
  17191. },
  17192. stopPropagation: function () {
  17193. var s = this.nativeEvent;
  17194. s &&
  17195. (s.stopPropagation
  17196. ? s.stopPropagation()
  17197. : 'unknown' != typeof s.cancelBubble && (s.cancelBubble = !0),
  17198. (this.isPropagationStopped = pd));
  17199. },
  17200. persist: function () {},
  17201. isPersistent: pd
  17202. }),
  17203. b
  17204. );
  17205. }
  17206. var Gt,
  17207. Yt,
  17208. Xt,
  17209. Zt = {
  17210. eventPhase: 0,
  17211. bubbles: 0,
  17212. cancelable: 0,
  17213. timeStamp: function (s) {
  17214. return s.timeStamp || Date.now();
  17215. },
  17216. defaultPrevented: 0,
  17217. isTrusted: 0
  17218. },
  17219. Qt = rd(Zt),
  17220. er = xe({}, Zt, { view: 0, detail: 0 }),
  17221. tr = rd(er),
  17222. rr = xe({}, er, {
  17223. screenX: 0,
  17224. screenY: 0,
  17225. clientX: 0,
  17226. clientY: 0,
  17227. pageX: 0,
  17228. pageY: 0,
  17229. ctrlKey: 0,
  17230. shiftKey: 0,
  17231. altKey: 0,
  17232. metaKey: 0,
  17233. getModifierState: zd,
  17234. button: 0,
  17235. buttons: 0,
  17236. relatedTarget: function (s) {
  17237. return void 0 === s.relatedTarget
  17238. ? s.fromElement === s.srcElement
  17239. ? s.toElement
  17240. : s.fromElement
  17241. : s.relatedTarget;
  17242. },
  17243. movementX: function (s) {
  17244. return 'movementX' in s
  17245. ? s.movementX
  17246. : (s !== Xt &&
  17247. (Xt && 'mousemove' === s.type
  17248. ? ((Gt = s.screenX - Xt.screenX), (Yt = s.screenY - Xt.screenY))
  17249. : (Yt = Gt = 0),
  17250. (Xt = s)),
  17251. Gt);
  17252. },
  17253. movementY: function (s) {
  17254. return 'movementY' in s ? s.movementY : Yt;
  17255. }
  17256. }),
  17257. nr = rd(rr),
  17258. sr = rd(xe({}, rr, { dataTransfer: 0 })),
  17259. ir = rd(xe({}, er, { relatedTarget: 0 })),
  17260. ar = rd(xe({}, Zt, { animationName: 0, elapsedTime: 0, pseudoElement: 0 })),
  17261. lr = xe({}, Zt, {
  17262. clipboardData: function (s) {
  17263. return 'clipboardData' in s ? s.clipboardData : window.clipboardData;
  17264. }
  17265. }),
  17266. cr = rd(lr),
  17267. ur = rd(xe({}, Zt, { data: 0 })),
  17268. pr = {
  17269. Esc: 'Escape',
  17270. Spacebar: ' ',
  17271. Left: 'ArrowLeft',
  17272. Up: 'ArrowUp',
  17273. Right: 'ArrowRight',
  17274. Down: 'ArrowDown',
  17275. Del: 'Delete',
  17276. Win: 'OS',
  17277. Menu: 'ContextMenu',
  17278. Apps: 'ContextMenu',
  17279. Scroll: 'ScrollLock',
  17280. MozPrintableKey: 'Unidentified'
  17281. },
  17282. dr = {
  17283. 8: 'Backspace',
  17284. 9: 'Tab',
  17285. 12: 'Clear',
  17286. 13: 'Enter',
  17287. 16: 'Shift',
  17288. 17: 'Control',
  17289. 18: 'Alt',
  17290. 19: 'Pause',
  17291. 20: 'CapsLock',
  17292. 27: 'Escape',
  17293. 32: ' ',
  17294. 33: 'PageUp',
  17295. 34: 'PageDown',
  17296. 35: 'End',
  17297. 36: 'Home',
  17298. 37: 'ArrowLeft',
  17299. 38: 'ArrowUp',
  17300. 39: 'ArrowRight',
  17301. 40: 'ArrowDown',
  17302. 45: 'Insert',
  17303. 46: 'Delete',
  17304. 112: 'F1',
  17305. 113: 'F2',
  17306. 114: 'F3',
  17307. 115: 'F4',
  17308. 116: 'F5',
  17309. 117: 'F6',
  17310. 118: 'F7',
  17311. 119: 'F8',
  17312. 120: 'F9',
  17313. 121: 'F10',
  17314. 122: 'F11',
  17315. 123: 'F12',
  17316. 144: 'NumLock',
  17317. 145: 'ScrollLock',
  17318. 224: 'Meta'
  17319. },
  17320. fr = { Alt: 'altKey', Control: 'ctrlKey', Meta: 'metaKey', Shift: 'shiftKey' };
  17321. function Pd(s) {
  17322. var o = this.nativeEvent;
  17323. return o.getModifierState ? o.getModifierState(s) : !!(s = fr[s]) && !!o[s];
  17324. }
  17325. function zd() {
  17326. return Pd;
  17327. }
  17328. var mr = xe({}, er, {
  17329. key: function (s) {
  17330. if (s.key) {
  17331. var o = pr[s.key] || s.key;
  17332. if ('Unidentified' !== o) return o;
  17333. }
  17334. return 'keypress' === s.type
  17335. ? 13 === (s = od(s))
  17336. ? 'Enter'
  17337. : String.fromCharCode(s)
  17338. : 'keydown' === s.type || 'keyup' === s.type
  17339. ? dr[s.keyCode] || 'Unidentified'
  17340. : '';
  17341. },
  17342. code: 0,
  17343. location: 0,
  17344. ctrlKey: 0,
  17345. shiftKey: 0,
  17346. altKey: 0,
  17347. metaKey: 0,
  17348. repeat: 0,
  17349. locale: 0,
  17350. getModifierState: zd,
  17351. charCode: function (s) {
  17352. return 'keypress' === s.type ? od(s) : 0;
  17353. },
  17354. keyCode: function (s) {
  17355. return 'keydown' === s.type || 'keyup' === s.type ? s.keyCode : 0;
  17356. },
  17357. which: function (s) {
  17358. return 'keypress' === s.type
  17359. ? od(s)
  17360. : 'keydown' === s.type || 'keyup' === s.type
  17361. ? s.keyCode
  17362. : 0;
  17363. }
  17364. }),
  17365. gr = rd(mr),
  17366. yr = rd(
  17367. xe({}, rr, {
  17368. pointerId: 0,
  17369. width: 0,
  17370. height: 0,
  17371. pressure: 0,
  17372. tangentialPressure: 0,
  17373. tiltX: 0,
  17374. tiltY: 0,
  17375. twist: 0,
  17376. pointerType: 0,
  17377. isPrimary: 0
  17378. })
  17379. ),
  17380. vr = rd(
  17381. xe({}, er, {
  17382. touches: 0,
  17383. targetTouches: 0,
  17384. changedTouches: 0,
  17385. altKey: 0,
  17386. metaKey: 0,
  17387. ctrlKey: 0,
  17388. shiftKey: 0,
  17389. getModifierState: zd
  17390. })
  17391. ),
  17392. br = rd(xe({}, Zt, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 })),
  17393. _r = xe({}, rr, {
  17394. deltaX: function (s) {
  17395. return 'deltaX' in s ? s.deltaX : 'wheelDeltaX' in s ? -s.wheelDeltaX : 0;
  17396. },
  17397. deltaY: function (s) {
  17398. return 'deltaY' in s
  17399. ? s.deltaY
  17400. : 'wheelDeltaY' in s
  17401. ? -s.wheelDeltaY
  17402. : 'wheelDelta' in s
  17403. ? -s.wheelDelta
  17404. : 0;
  17405. },
  17406. deltaZ: 0,
  17407. deltaMode: 0
  17408. }),
  17409. Er = rd(_r),
  17410. wr = [9, 13, 27, 32],
  17411. Sr = C && 'CompositionEvent' in window,
  17412. xr = null;
  17413. C && 'documentMode' in document && (xr = document.documentMode);
  17414. var kr = C && 'TextEvent' in window && !xr,
  17415. Cr = C && (!Sr || (xr && 8 < xr && 11 >= xr)),
  17416. Or = String.fromCharCode(32),
  17417. Ar = !1;
  17418. function ge(s, o) {
  17419. switch (s) {
  17420. case 'keyup':
  17421. return -1 !== wr.indexOf(o.keyCode);
  17422. case 'keydown':
  17423. return 229 !== o.keyCode;
  17424. case 'keypress':
  17425. case 'mousedown':
  17426. case 'focusout':
  17427. return !0;
  17428. default:
  17429. return !1;
  17430. }
  17431. }
  17432. function he(s) {
  17433. return 'object' == typeof (s = s.detail) && 'data' in s ? s.data : null;
  17434. }
  17435. var jr = !1;
  17436. var Ir = {
  17437. color: !0,
  17438. date: !0,
  17439. datetime: !0,
  17440. 'datetime-local': !0,
  17441. email: !0,
  17442. month: !0,
  17443. number: !0,
  17444. password: !0,
  17445. range: !0,
  17446. search: !0,
  17447. tel: !0,
  17448. text: !0,
  17449. time: !0,
  17450. url: !0,
  17451. week: !0
  17452. };
  17453. function me(s) {
  17454. var o = s && s.nodeName && s.nodeName.toLowerCase();
  17455. return 'input' === o ? !!Ir[s.type] : 'textarea' === o;
  17456. }
  17457. function ne(s, o, i, u) {
  17458. Eb(u),
  17459. 0 < (o = oe(o, 'onChange')).length &&
  17460. ((i = new Qt('onChange', 'change', null, i, u)),
  17461. s.push({ event: i, listeners: o }));
  17462. }
  17463. var Pr = null,
  17464. Mr = null;
  17465. function re(s) {
  17466. se(s, 0);
  17467. }
  17468. function te(s) {
  17469. if (Wa(ue(s))) return s;
  17470. }
  17471. function ve(s, o) {
  17472. if ('change' === s) return o;
  17473. }
  17474. var Tr = !1;
  17475. if (C) {
  17476. var Nr;
  17477. if (C) {
  17478. var Rr = 'oninput' in document;
  17479. if (!Rr) {
  17480. var Dr = document.createElement('div');
  17481. Dr.setAttribute('oninput', 'return;'), (Rr = 'function' == typeof Dr.oninput);
  17482. }
  17483. Nr = Rr;
  17484. } else Nr = !1;
  17485. Tr = Nr && (!document.documentMode || 9 < document.documentMode);
  17486. }
  17487. function Ae() {
  17488. Pr && (Pr.detachEvent('onpropertychange', Be), (Mr = Pr = null));
  17489. }
  17490. function Be(s) {
  17491. if ('value' === s.propertyName && te(Mr)) {
  17492. var o = [];
  17493. ne(o, Mr, s, xb(s)), Jb(re, o);
  17494. }
  17495. }
  17496. function Ce(s, o, i) {
  17497. 'focusin' === s
  17498. ? (Ae(), (Mr = i), (Pr = o).attachEvent('onpropertychange', Be))
  17499. : 'focusout' === s && Ae();
  17500. }
  17501. function De(s) {
  17502. if ('selectionchange' === s || 'keyup' === s || 'keydown' === s) return te(Mr);
  17503. }
  17504. function Ee(s, o) {
  17505. if ('click' === s) return te(o);
  17506. }
  17507. function Fe(s, o) {
  17508. if ('input' === s || 'change' === s) return te(o);
  17509. }
  17510. var Lr =
  17511. 'function' == typeof Object.is
  17512. ? Object.is
  17513. : function Ge(s, o) {
  17514. return (s === o && (0 !== s || 1 / s == 1 / o)) || (s != s && o != o);
  17515. };
  17516. function Ie(s, o) {
  17517. if (Lr(s, o)) return !0;
  17518. if ('object' != typeof s || null === s || 'object' != typeof o || null === o) return !1;
  17519. var i = Object.keys(s),
  17520. u = Object.keys(o);
  17521. if (i.length !== u.length) return !1;
  17522. for (u = 0; u < i.length; u++) {
  17523. var _ = i[u];
  17524. if (!j.call(o, _) || !Lr(s[_], o[_])) return !1;
  17525. }
  17526. return !0;
  17527. }
  17528. function Je(s) {
  17529. for (; s && s.firstChild; ) s = s.firstChild;
  17530. return s;
  17531. }
  17532. function Ke(s, o) {
  17533. var i,
  17534. u = Je(s);
  17535. for (s = 0; u; ) {
  17536. if (3 === u.nodeType) {
  17537. if (((i = s + u.textContent.length), s <= o && i >= o))
  17538. return { node: u, offset: o - s };
  17539. s = i;
  17540. }
  17541. e: {
  17542. for (; u; ) {
  17543. if (u.nextSibling) {
  17544. u = u.nextSibling;
  17545. break e;
  17546. }
  17547. u = u.parentNode;
  17548. }
  17549. u = void 0;
  17550. }
  17551. u = Je(u);
  17552. }
  17553. }
  17554. function Le(s, o) {
  17555. return (
  17556. !(!s || !o) &&
  17557. (s === o ||
  17558. ((!s || 3 !== s.nodeType) &&
  17559. (o && 3 === o.nodeType
  17560. ? Le(s, o.parentNode)
  17561. : 'contains' in s
  17562. ? s.contains(o)
  17563. : !!s.compareDocumentPosition && !!(16 & s.compareDocumentPosition(o)))))
  17564. );
  17565. }
  17566. function Me() {
  17567. for (var s = window, o = Xa(); o instanceof s.HTMLIFrameElement; ) {
  17568. try {
  17569. var i = 'string' == typeof o.contentWindow.location.href;
  17570. } catch (s) {
  17571. i = !1;
  17572. }
  17573. if (!i) break;
  17574. o = Xa((s = o.contentWindow).document);
  17575. }
  17576. return o;
  17577. }
  17578. function Ne(s) {
  17579. var o = s && s.nodeName && s.nodeName.toLowerCase();
  17580. return (
  17581. o &&
  17582. (('input' === o &&
  17583. ('text' === s.type ||
  17584. 'search' === s.type ||
  17585. 'tel' === s.type ||
  17586. 'url' === s.type ||
  17587. 'password' === s.type)) ||
  17588. 'textarea' === o ||
  17589. 'true' === s.contentEditable)
  17590. );
  17591. }
  17592. function Oe(s) {
  17593. var o = Me(),
  17594. i = s.focusedElem,
  17595. u = s.selectionRange;
  17596. if (o !== i && i && i.ownerDocument && Le(i.ownerDocument.documentElement, i)) {
  17597. if (null !== u && Ne(i))
  17598. if (((o = u.start), void 0 === (s = u.end) && (s = o), 'selectionStart' in i))
  17599. (i.selectionStart = o), (i.selectionEnd = Math.min(s, i.value.length));
  17600. else if (
  17601. (s = ((o = i.ownerDocument || document) && o.defaultView) || window).getSelection
  17602. ) {
  17603. s = s.getSelection();
  17604. var _ = i.textContent.length,
  17605. w = Math.min(u.start, _);
  17606. (u = void 0 === u.end ? w : Math.min(u.end, _)),
  17607. !s.extend && w > u && ((_ = u), (u = w), (w = _)),
  17608. (_ = Ke(i, w));
  17609. var x = Ke(i, u);
  17610. _ &&
  17611. x &&
  17612. (1 !== s.rangeCount ||
  17613. s.anchorNode !== _.node ||
  17614. s.anchorOffset !== _.offset ||
  17615. s.focusNode !== x.node ||
  17616. s.focusOffset !== x.offset) &&
  17617. ((o = o.createRange()).setStart(_.node, _.offset),
  17618. s.removeAllRanges(),
  17619. w > u
  17620. ? (s.addRange(o), s.extend(x.node, x.offset))
  17621. : (o.setEnd(x.node, x.offset), s.addRange(o)));
  17622. }
  17623. for (o = [], s = i; (s = s.parentNode); )
  17624. 1 === s.nodeType && o.push({ element: s, left: s.scrollLeft, top: s.scrollTop });
  17625. for ('function' == typeof i.focus && i.focus(), i = 0; i < o.length; i++)
  17626. ((s = o[i]).element.scrollLeft = s.left), (s.element.scrollTop = s.top);
  17627. }
  17628. }
  17629. var Br = C && 'documentMode' in document && 11 >= document.documentMode,
  17630. Fr = null,
  17631. qr = null,
  17632. $r = null,
  17633. Vr = !1;
  17634. function Ue(s, o, i) {
  17635. var u = i.window === i ? i.document : 9 === i.nodeType ? i : i.ownerDocument;
  17636. Vr ||
  17637. null == Fr ||
  17638. Fr !== Xa(u) ||
  17639. ('selectionStart' in (u = Fr) && Ne(u)
  17640. ? (u = { start: u.selectionStart, end: u.selectionEnd })
  17641. : (u = {
  17642. anchorNode: (u = (
  17643. (u.ownerDocument && u.ownerDocument.defaultView) ||
  17644. window
  17645. ).getSelection()).anchorNode,
  17646. anchorOffset: u.anchorOffset,
  17647. focusNode: u.focusNode,
  17648. focusOffset: u.focusOffset
  17649. }),
  17650. ($r && Ie($r, u)) ||
  17651. (($r = u),
  17652. 0 < (u = oe(qr, 'onSelect')).length &&
  17653. ((o = new Qt('onSelect', 'select', null, o, i)),
  17654. s.push({ event: o, listeners: u }),
  17655. (o.target = Fr))));
  17656. }
  17657. function Ve(s, o) {
  17658. var i = {};
  17659. return (
  17660. (i[s.toLowerCase()] = o.toLowerCase()),
  17661. (i['Webkit' + s] = 'webkit' + o),
  17662. (i['Moz' + s] = 'moz' + o),
  17663. i
  17664. );
  17665. }
  17666. var Ur = {
  17667. animationend: Ve('Animation', 'AnimationEnd'),
  17668. animationiteration: Ve('Animation', 'AnimationIteration'),
  17669. animationstart: Ve('Animation', 'AnimationStart'),
  17670. transitionend: Ve('Transition', 'TransitionEnd')
  17671. },
  17672. zr = {},
  17673. Wr = {};
  17674. function Ze(s) {
  17675. if (zr[s]) return zr[s];
  17676. if (!Ur[s]) return s;
  17677. var o,
  17678. i = Ur[s];
  17679. for (o in i) if (i.hasOwnProperty(o) && o in Wr) return (zr[s] = i[o]);
  17680. return s;
  17681. }
  17682. C &&
  17683. ((Wr = document.createElement('div').style),
  17684. 'AnimationEvent' in window ||
  17685. (delete Ur.animationend.animation,
  17686. delete Ur.animationiteration.animation,
  17687. delete Ur.animationstart.animation),
  17688. 'TransitionEvent' in window || delete Ur.transitionend.transition);
  17689. var Kr = Ze('animationend'),
  17690. Hr = Ze('animationiteration'),
  17691. Jr = Ze('animationstart'),
  17692. Gr = Ze('transitionend'),
  17693. Yr = new Map(),
  17694. Xr =
  17695. 'abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel'.split(
  17696. ' '
  17697. );
  17698. function ff(s, o) {
  17699. Yr.set(s, o), fa(o, [s]);
  17700. }
  17701. for (var Zr = 0; Zr < Xr.length; Zr++) {
  17702. var Qr = Xr[Zr];
  17703. ff(Qr.toLowerCase(), 'on' + (Qr[0].toUpperCase() + Qr.slice(1)));
  17704. }
  17705. ff(Kr, 'onAnimationEnd'),
  17706. ff(Hr, 'onAnimationIteration'),
  17707. ff(Jr, 'onAnimationStart'),
  17708. ff('dblclick', 'onDoubleClick'),
  17709. ff('focusin', 'onFocus'),
  17710. ff('focusout', 'onBlur'),
  17711. ff(Gr, 'onTransitionEnd'),
  17712. ha('onMouseEnter', ['mouseout', 'mouseover']),
  17713. ha('onMouseLeave', ['mouseout', 'mouseover']),
  17714. ha('onPointerEnter', ['pointerout', 'pointerover']),
  17715. ha('onPointerLeave', ['pointerout', 'pointerover']),
  17716. fa(
  17717. 'onChange',
  17718. 'change click focusin focusout input keydown keyup selectionchange'.split(' ')
  17719. ),
  17720. fa(
  17721. 'onSelect',
  17722. 'focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange'.split(
  17723. ' '
  17724. )
  17725. ),
  17726. fa('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']),
  17727. fa(
  17728. 'onCompositionEnd',
  17729. 'compositionend focusout keydown keypress keyup mousedown'.split(' ')
  17730. ),
  17731. fa(
  17732. 'onCompositionStart',
  17733. 'compositionstart focusout keydown keypress keyup mousedown'.split(' ')
  17734. ),
  17735. fa(
  17736. 'onCompositionUpdate',
  17737. 'compositionupdate focusout keydown keypress keyup mousedown'.split(' ')
  17738. );
  17739. var en =
  17740. 'abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting'.split(
  17741. ' '
  17742. ),
  17743. tn = new Set('cancel close invalid load scroll toggle'.split(' ').concat(en));
  17744. function nf(s, o, i) {
  17745. var u = s.type || 'unknown-event';
  17746. (s.currentTarget = i),
  17747. (function Ub(s, o, i, u, _, w, x, C, j) {
  17748. if ((Tb.apply(this, arguments), st)) {
  17749. if (!st) throw Error(p(198));
  17750. var L = ot;
  17751. (st = !1), (ot = null), it || ((it = !0), (at = L));
  17752. }
  17753. })(u, o, void 0, s),
  17754. (s.currentTarget = null);
  17755. }
  17756. function se(s, o) {
  17757. o = !!(4 & o);
  17758. for (var i = 0; i < s.length; i++) {
  17759. var u = s[i],
  17760. _ = u.event;
  17761. u = u.listeners;
  17762. e: {
  17763. var w = void 0;
  17764. if (o)
  17765. for (var x = u.length - 1; 0 <= x; x--) {
  17766. var C = u[x],
  17767. j = C.instance,
  17768. L = C.currentTarget;
  17769. if (((C = C.listener), j !== w && _.isPropagationStopped())) break e;
  17770. nf(_, C, L), (w = j);
  17771. }
  17772. else
  17773. for (x = 0; x < u.length; x++) {
  17774. if (
  17775. ((j = (C = u[x]).instance),
  17776. (L = C.currentTarget),
  17777. (C = C.listener),
  17778. j !== w && _.isPropagationStopped())
  17779. )
  17780. break e;
  17781. nf(_, C, L), (w = j);
  17782. }
  17783. }
  17784. }
  17785. if (it) throw ((s = at), (it = !1), (at = null), s);
  17786. }
  17787. function D(s, o) {
  17788. var i = o[gn];
  17789. void 0 === i && (i = o[gn] = new Set());
  17790. var u = s + '__bubble';
  17791. i.has(u) || (pf(o, s, 2, !1), i.add(u));
  17792. }
  17793. function qf(s, o, i) {
  17794. var u = 0;
  17795. o && (u |= 4), pf(i, s, u, o);
  17796. }
  17797. var rn = '_reactListening' + Math.random().toString(36).slice(2);
  17798. function sf(s) {
  17799. if (!s[rn]) {
  17800. (s[rn] = !0),
  17801. w.forEach(function (o) {
  17802. 'selectionchange' !== o && (tn.has(o) || qf(o, !1, s), qf(o, !0, s));
  17803. });
  17804. var o = 9 === s.nodeType ? s : s.ownerDocument;
  17805. null === o || o[rn] || ((o[rn] = !0), qf('selectionchange', !1, o));
  17806. }
  17807. }
  17808. function pf(s, o, i, u) {
  17809. switch (jd(o)) {
  17810. case 1:
  17811. var _ = ed;
  17812. break;
  17813. case 4:
  17814. _ = gd;
  17815. break;
  17816. default:
  17817. _ = fd;
  17818. }
  17819. (i = _.bind(null, o, i, s)),
  17820. (_ = void 0),
  17821. !rt || ('touchstart' !== o && 'touchmove' !== o && 'wheel' !== o) || (_ = !0),
  17822. u
  17823. ? void 0 !== _
  17824. ? s.addEventListener(o, i, { capture: !0, passive: _ })
  17825. : s.addEventListener(o, i, !0)
  17826. : void 0 !== _
  17827. ? s.addEventListener(o, i, { passive: _ })
  17828. : s.addEventListener(o, i, !1);
  17829. }
  17830. function hd(s, o, i, u, _) {
  17831. var w = u;
  17832. if (!(1 & o || 2 & o || null === u))
  17833. e: for (;;) {
  17834. if (null === u) return;
  17835. var x = u.tag;
  17836. if (3 === x || 4 === x) {
  17837. var C = u.stateNode.containerInfo;
  17838. if (C === _ || (8 === C.nodeType && C.parentNode === _)) break;
  17839. if (4 === x)
  17840. for (x = u.return; null !== x; ) {
  17841. var j = x.tag;
  17842. if (
  17843. (3 === j || 4 === j) &&
  17844. ((j = x.stateNode.containerInfo) === _ ||
  17845. (8 === j.nodeType && j.parentNode === _))
  17846. )
  17847. return;
  17848. x = x.return;
  17849. }
  17850. for (; null !== C; ) {
  17851. if (null === (x = Wc(C))) return;
  17852. if (5 === (j = x.tag) || 6 === j) {
  17853. u = w = x;
  17854. continue e;
  17855. }
  17856. C = C.parentNode;
  17857. }
  17858. }
  17859. u = u.return;
  17860. }
  17861. Jb(function () {
  17862. var u = w,
  17863. _ = xb(i),
  17864. x = [];
  17865. e: {
  17866. var C = Yr.get(s);
  17867. if (void 0 !== C) {
  17868. var j = Qt,
  17869. L = s;
  17870. switch (s) {
  17871. case 'keypress':
  17872. if (0 === od(i)) break e;
  17873. case 'keydown':
  17874. case 'keyup':
  17875. j = gr;
  17876. break;
  17877. case 'focusin':
  17878. (L = 'focus'), (j = ir);
  17879. break;
  17880. case 'focusout':
  17881. (L = 'blur'), (j = ir);
  17882. break;
  17883. case 'beforeblur':
  17884. case 'afterblur':
  17885. j = ir;
  17886. break;
  17887. case 'click':
  17888. if (2 === i.button) break e;
  17889. case 'auxclick':
  17890. case 'dblclick':
  17891. case 'mousedown':
  17892. case 'mousemove':
  17893. case 'mouseup':
  17894. case 'mouseout':
  17895. case 'mouseover':
  17896. case 'contextmenu':
  17897. j = nr;
  17898. break;
  17899. case 'drag':
  17900. case 'dragend':
  17901. case 'dragenter':
  17902. case 'dragexit':
  17903. case 'dragleave':
  17904. case 'dragover':
  17905. case 'dragstart':
  17906. case 'drop':
  17907. j = sr;
  17908. break;
  17909. case 'touchcancel':
  17910. case 'touchend':
  17911. case 'touchmove':
  17912. case 'touchstart':
  17913. j = vr;
  17914. break;
  17915. case Kr:
  17916. case Hr:
  17917. case Jr:
  17918. j = ar;
  17919. break;
  17920. case Gr:
  17921. j = br;
  17922. break;
  17923. case 'scroll':
  17924. j = tr;
  17925. break;
  17926. case 'wheel':
  17927. j = Er;
  17928. break;
  17929. case 'copy':
  17930. case 'cut':
  17931. case 'paste':
  17932. j = cr;
  17933. break;
  17934. case 'gotpointercapture':
  17935. case 'lostpointercapture':
  17936. case 'pointercancel':
  17937. case 'pointerdown':
  17938. case 'pointermove':
  17939. case 'pointerout':
  17940. case 'pointerover':
  17941. case 'pointerup':
  17942. j = yr;
  17943. }
  17944. var B = !!(4 & o),
  17945. $ = !B && 'scroll' === s,
  17946. V = B ? (null !== C ? C + 'Capture' : null) : C;
  17947. B = [];
  17948. for (var U, z = u; null !== z; ) {
  17949. var Y = (U = z).stateNode;
  17950. if (
  17951. (5 === U.tag &&
  17952. null !== Y &&
  17953. ((U = Y), null !== V && null != (Y = Kb(z, V)) && B.push(tf(z, Y, U))),
  17954. $)
  17955. )
  17956. break;
  17957. z = z.return;
  17958. }
  17959. 0 < B.length &&
  17960. ((C = new j(C, L, null, i, _)), x.push({ event: C, listeners: B }));
  17961. }
  17962. }
  17963. if (!(7 & o)) {
  17964. if (
  17965. ((j = 'mouseout' === s || 'pointerout' === s),
  17966. (!(C = 'mouseover' === s || 'pointerover' === s) ||
  17967. i === Ye ||
  17968. !(L = i.relatedTarget || i.fromElement) ||
  17969. (!Wc(L) && !L[mn])) &&
  17970. (j || C) &&
  17971. ((C =
  17972. _.window === _
  17973. ? _
  17974. : (C = _.ownerDocument)
  17975. ? C.defaultView || C.parentWindow
  17976. : window),
  17977. j
  17978. ? ((j = u),
  17979. null !== (L = (L = i.relatedTarget || i.toElement) ? Wc(L) : null) &&
  17980. (L !== ($ = Vb(L)) || (5 !== L.tag && 6 !== L.tag)) &&
  17981. (L = null))
  17982. : ((j = null), (L = u)),
  17983. j !== L))
  17984. ) {
  17985. if (
  17986. ((B = nr),
  17987. (Y = 'onMouseLeave'),
  17988. (V = 'onMouseEnter'),
  17989. (z = 'mouse'),
  17990. ('pointerout' !== s && 'pointerover' !== s) ||
  17991. ((B = yr), (Y = 'onPointerLeave'), (V = 'onPointerEnter'), (z = 'pointer')),
  17992. ($ = null == j ? C : ue(j)),
  17993. (U = null == L ? C : ue(L)),
  17994. ((C = new B(Y, z + 'leave', j, i, _)).target = $),
  17995. (C.relatedTarget = U),
  17996. (Y = null),
  17997. Wc(_) === u &&
  17998. (((B = new B(V, z + 'enter', L, i, _)).target = U),
  17999. (B.relatedTarget = $),
  18000. (Y = B)),
  18001. ($ = Y),
  18002. j && L)
  18003. )
  18004. e: {
  18005. for (V = L, z = 0, U = B = j; U; U = vf(U)) z++;
  18006. for (U = 0, Y = V; Y; Y = vf(Y)) U++;
  18007. for (; 0 < z - U; ) (B = vf(B)), z--;
  18008. for (; 0 < U - z; ) (V = vf(V)), U--;
  18009. for (; z--; ) {
  18010. if (B === V || (null !== V && B === V.alternate)) break e;
  18011. (B = vf(B)), (V = vf(V));
  18012. }
  18013. B = null;
  18014. }
  18015. else B = null;
  18016. null !== j && wf(x, C, j, B, !1), null !== L && null !== $ && wf(x, $, L, B, !0);
  18017. }
  18018. if (
  18019. 'select' ===
  18020. (j = (C = u ? ue(u) : window).nodeName && C.nodeName.toLowerCase()) ||
  18021. ('input' === j && 'file' === C.type)
  18022. )
  18023. var Z = ve;
  18024. else if (me(C))
  18025. if (Tr) Z = Fe;
  18026. else {
  18027. Z = De;
  18028. var ee = Ce;
  18029. }
  18030. else
  18031. (j = C.nodeName) &&
  18032. 'input' === j.toLowerCase() &&
  18033. ('checkbox' === C.type || 'radio' === C.type) &&
  18034. (Z = Ee);
  18035. switch (
  18036. (Z && (Z = Z(s, u))
  18037. ? ne(x, Z, i, _)
  18038. : (ee && ee(s, C, u),
  18039. 'focusout' === s &&
  18040. (ee = C._wrapperState) &&
  18041. ee.controlled &&
  18042. 'number' === C.type &&
  18043. cb(C, 'number', C.value)),
  18044. (ee = u ? ue(u) : window),
  18045. s)
  18046. ) {
  18047. case 'focusin':
  18048. (me(ee) || 'true' === ee.contentEditable) && ((Fr = ee), (qr = u), ($r = null));
  18049. break;
  18050. case 'focusout':
  18051. $r = qr = Fr = null;
  18052. break;
  18053. case 'mousedown':
  18054. Vr = !0;
  18055. break;
  18056. case 'contextmenu':
  18057. case 'mouseup':
  18058. case 'dragend':
  18059. (Vr = !1), Ue(x, i, _);
  18060. break;
  18061. case 'selectionchange':
  18062. if (Br) break;
  18063. case 'keydown':
  18064. case 'keyup':
  18065. Ue(x, i, _);
  18066. }
  18067. var ie;
  18068. if (Sr)
  18069. e: {
  18070. switch (s) {
  18071. case 'compositionstart':
  18072. var ae = 'onCompositionStart';
  18073. break e;
  18074. case 'compositionend':
  18075. ae = 'onCompositionEnd';
  18076. break e;
  18077. case 'compositionupdate':
  18078. ae = 'onCompositionUpdate';
  18079. break e;
  18080. }
  18081. ae = void 0;
  18082. }
  18083. else
  18084. jr
  18085. ? ge(s, i) && (ae = 'onCompositionEnd')
  18086. : 'keydown' === s && 229 === i.keyCode && (ae = 'onCompositionStart');
  18087. ae &&
  18088. (Cr &&
  18089. 'ko' !== i.locale &&
  18090. (jr || 'onCompositionStart' !== ae
  18091. ? 'onCompositionEnd' === ae && jr && (ie = nd())
  18092. : ((Ht = 'value' in (Kt = _) ? Kt.value : Kt.textContent), (jr = !0))),
  18093. 0 < (ee = oe(u, ae)).length &&
  18094. ((ae = new ur(ae, s, null, i, _)),
  18095. x.push({ event: ae, listeners: ee }),
  18096. ie ? (ae.data = ie) : null !== (ie = he(i)) && (ae.data = ie))),
  18097. (ie = kr
  18098. ? (function je(s, o) {
  18099. switch (s) {
  18100. case 'compositionend':
  18101. return he(o);
  18102. case 'keypress':
  18103. return 32 !== o.which ? null : ((Ar = !0), Or);
  18104. case 'textInput':
  18105. return (s = o.data) === Or && Ar ? null : s;
  18106. default:
  18107. return null;
  18108. }
  18109. })(s, i)
  18110. : (function ke(s, o) {
  18111. if (jr)
  18112. return 'compositionend' === s || (!Sr && ge(s, o))
  18113. ? ((s = nd()), (Jt = Ht = Kt = null), (jr = !1), s)
  18114. : null;
  18115. switch (s) {
  18116. case 'paste':
  18117. default:
  18118. return null;
  18119. case 'keypress':
  18120. if (!(o.ctrlKey || o.altKey || o.metaKey) || (o.ctrlKey && o.altKey)) {
  18121. if (o.char && 1 < o.char.length) return o.char;
  18122. if (o.which) return String.fromCharCode(o.which);
  18123. }
  18124. return null;
  18125. case 'compositionend':
  18126. return Cr && 'ko' !== o.locale ? null : o.data;
  18127. }
  18128. })(s, i)) &&
  18129. 0 < (u = oe(u, 'onBeforeInput')).length &&
  18130. ((_ = new ur('onBeforeInput', 'beforeinput', null, i, _)),
  18131. x.push({ event: _, listeners: u }),
  18132. (_.data = ie));
  18133. }
  18134. se(x, o);
  18135. });
  18136. }
  18137. function tf(s, o, i) {
  18138. return { instance: s, listener: o, currentTarget: i };
  18139. }
  18140. function oe(s, o) {
  18141. for (var i = o + 'Capture', u = []; null !== s; ) {
  18142. var _ = s,
  18143. w = _.stateNode;
  18144. 5 === _.tag &&
  18145. null !== w &&
  18146. ((_ = w),
  18147. null != (w = Kb(s, i)) && u.unshift(tf(s, w, _)),
  18148. null != (w = Kb(s, o)) && u.push(tf(s, w, _))),
  18149. (s = s.return);
  18150. }
  18151. return u;
  18152. }
  18153. function vf(s) {
  18154. if (null === s) return null;
  18155. do {
  18156. s = s.return;
  18157. } while (s && 5 !== s.tag);
  18158. return s || null;
  18159. }
  18160. function wf(s, o, i, u, _) {
  18161. for (var w = o._reactName, x = []; null !== i && i !== u; ) {
  18162. var C = i,
  18163. j = C.alternate,
  18164. L = C.stateNode;
  18165. if (null !== j && j === u) break;
  18166. 5 === C.tag &&
  18167. null !== L &&
  18168. ((C = L),
  18169. _
  18170. ? null != (j = Kb(i, w)) && x.unshift(tf(i, j, C))
  18171. : _ || (null != (j = Kb(i, w)) && x.push(tf(i, j, C)))),
  18172. (i = i.return);
  18173. }
  18174. 0 !== x.length && s.push({ event: o, listeners: x });
  18175. }
  18176. var nn = /\r\n?/g,
  18177. sn = /\u0000|\uFFFD/g;
  18178. function zf(s) {
  18179. return ('string' == typeof s ? s : '' + s).replace(nn, '\n').replace(sn, '');
  18180. }
  18181. function Af(s, o, i) {
  18182. if (((o = zf(o)), zf(s) !== o && i)) throw Error(p(425));
  18183. }
  18184. function Bf() {}
  18185. var on = null,
  18186. an = null;
  18187. function Ef(s, o) {
  18188. return (
  18189. 'textarea' === s ||
  18190. 'noscript' === s ||
  18191. 'string' == typeof o.children ||
  18192. 'number' == typeof o.children ||
  18193. ('object' == typeof o.dangerouslySetInnerHTML &&
  18194. null !== o.dangerouslySetInnerHTML &&
  18195. null != o.dangerouslySetInnerHTML.__html)
  18196. );
  18197. }
  18198. var ln = 'function' == typeof setTimeout ? setTimeout : void 0,
  18199. cn = 'function' == typeof clearTimeout ? clearTimeout : void 0,
  18200. un = 'function' == typeof Promise ? Promise : void 0,
  18201. pn =
  18202. 'function' == typeof queueMicrotask
  18203. ? queueMicrotask
  18204. : void 0 !== un
  18205. ? function (s) {
  18206. return un.resolve(null).then(s).catch(If);
  18207. }
  18208. : ln;
  18209. function If(s) {
  18210. setTimeout(function () {
  18211. throw s;
  18212. });
  18213. }
  18214. function Kf(s, o) {
  18215. var i = o,
  18216. u = 0;
  18217. do {
  18218. var _ = i.nextSibling;
  18219. if ((s.removeChild(i), _ && 8 === _.nodeType))
  18220. if ('/$' === (i = _.data)) {
  18221. if (0 === u) return s.removeChild(_), void bd(o);
  18222. u--;
  18223. } else ('$' !== i && '$?' !== i && '$!' !== i) || u++;
  18224. i = _;
  18225. } while (i);
  18226. bd(o);
  18227. }
  18228. function Lf(s) {
  18229. for (; null != s; s = s.nextSibling) {
  18230. var o = s.nodeType;
  18231. if (1 === o || 3 === o) break;
  18232. if (8 === o) {
  18233. if ('$' === (o = s.data) || '$!' === o || '$?' === o) break;
  18234. if ('/$' === o) return null;
  18235. }
  18236. }
  18237. return s;
  18238. }
  18239. function Mf(s) {
  18240. s = s.previousSibling;
  18241. for (var o = 0; s; ) {
  18242. if (8 === s.nodeType) {
  18243. var i = s.data;
  18244. if ('$' === i || '$!' === i || '$?' === i) {
  18245. if (0 === o) return s;
  18246. o--;
  18247. } else '/$' === i && o++;
  18248. }
  18249. s = s.previousSibling;
  18250. }
  18251. return null;
  18252. }
  18253. var hn = Math.random().toString(36).slice(2),
  18254. dn = '__reactFiber$' + hn,
  18255. fn = '__reactProps$' + hn,
  18256. mn = '__reactContainer$' + hn,
  18257. gn = '__reactEvents$' + hn,
  18258. yn = '__reactListeners$' + hn,
  18259. vn = '__reactHandles$' + hn;
  18260. function Wc(s) {
  18261. var o = s[dn];
  18262. if (o) return o;
  18263. for (var i = s.parentNode; i; ) {
  18264. if ((o = i[mn] || i[dn])) {
  18265. if (((i = o.alternate), null !== o.child || (null !== i && null !== i.child)))
  18266. for (s = Mf(s); null !== s; ) {
  18267. if ((i = s[dn])) return i;
  18268. s = Mf(s);
  18269. }
  18270. return o;
  18271. }
  18272. i = (s = i).parentNode;
  18273. }
  18274. return null;
  18275. }
  18276. function Cb(s) {
  18277. return !(s = s[dn] || s[mn]) ||
  18278. (5 !== s.tag && 6 !== s.tag && 13 !== s.tag && 3 !== s.tag)
  18279. ? null
  18280. : s;
  18281. }
  18282. function ue(s) {
  18283. if (5 === s.tag || 6 === s.tag) return s.stateNode;
  18284. throw Error(p(33));
  18285. }
  18286. function Db(s) {
  18287. return s[fn] || null;
  18288. }
  18289. var bn = [],
  18290. _n = -1;
  18291. function Uf(s) {
  18292. return { current: s };
  18293. }
  18294. function E(s) {
  18295. 0 > _n || ((s.current = bn[_n]), (bn[_n] = null), _n--);
  18296. }
  18297. function G(s, o) {
  18298. _n++, (bn[_n] = s.current), (s.current = o);
  18299. }
  18300. var En = {},
  18301. wn = Uf(En),
  18302. Sn = Uf(!1),
  18303. xn = En;
  18304. function Yf(s, o) {
  18305. var i = s.type.contextTypes;
  18306. if (!i) return En;
  18307. var u = s.stateNode;
  18308. if (u && u.__reactInternalMemoizedUnmaskedChildContext === o)
  18309. return u.__reactInternalMemoizedMaskedChildContext;
  18310. var _,
  18311. w = {};
  18312. for (_ in i) w[_] = o[_];
  18313. return (
  18314. u &&
  18315. (((s = s.stateNode).__reactInternalMemoizedUnmaskedChildContext = o),
  18316. (s.__reactInternalMemoizedMaskedChildContext = w)),
  18317. w
  18318. );
  18319. }
  18320. function Zf(s) {
  18321. return null != (s = s.childContextTypes);
  18322. }
  18323. function $f() {
  18324. E(Sn), E(wn);
  18325. }
  18326. function ag(s, o, i) {
  18327. if (wn.current !== En) throw Error(p(168));
  18328. G(wn, o), G(Sn, i);
  18329. }
  18330. function bg(s, o, i) {
  18331. var u = s.stateNode;
  18332. if (((o = o.childContextTypes), 'function' != typeof u.getChildContext)) return i;
  18333. for (var _ in (u = u.getChildContext()))
  18334. if (!(_ in o)) throw Error(p(108, Ra(s) || 'Unknown', _));
  18335. return xe({}, i, u);
  18336. }
  18337. function cg(s) {
  18338. return (
  18339. (s = ((s = s.stateNode) && s.__reactInternalMemoizedMergedChildContext) || En),
  18340. (xn = wn.current),
  18341. G(wn, s),
  18342. G(Sn, Sn.current),
  18343. !0
  18344. );
  18345. }
  18346. function dg(s, o, i) {
  18347. var u = s.stateNode;
  18348. if (!u) throw Error(p(169));
  18349. i
  18350. ? ((s = bg(s, o, xn)),
  18351. (u.__reactInternalMemoizedMergedChildContext = s),
  18352. E(Sn),
  18353. E(wn),
  18354. G(wn, s))
  18355. : E(Sn),
  18356. G(Sn, i);
  18357. }
  18358. var kn = null,
  18359. Cn = !1,
  18360. On = !1;
  18361. function hg(s) {
  18362. null === kn ? (kn = [s]) : kn.push(s);
  18363. }
  18364. function jg() {
  18365. if (!On && null !== kn) {
  18366. On = !0;
  18367. var s = 0,
  18368. o = At;
  18369. try {
  18370. var i = kn;
  18371. for (At = 1; s < i.length; s++) {
  18372. var u = i[s];
  18373. do {
  18374. u = u(!0);
  18375. } while (null !== u);
  18376. }
  18377. (kn = null), (Cn = !1);
  18378. } catch (o) {
  18379. throw (null !== kn && (kn = kn.slice(s + 1)), ct(gt, jg), o);
  18380. } finally {
  18381. (At = o), (On = !1);
  18382. }
  18383. }
  18384. return null;
  18385. }
  18386. var An = [],
  18387. jn = 0,
  18388. In = null,
  18389. Pn = 0,
  18390. Mn = [],
  18391. Tn = 0,
  18392. Nn = null,
  18393. Rn = 1,
  18394. Dn = '';
  18395. function tg(s, o) {
  18396. (An[jn++] = Pn), (An[jn++] = In), (In = s), (Pn = o);
  18397. }
  18398. function ug(s, o, i) {
  18399. (Mn[Tn++] = Rn), (Mn[Tn++] = Dn), (Mn[Tn++] = Nn), (Nn = s);
  18400. var u = Rn;
  18401. s = Dn;
  18402. var _ = 32 - St(u) - 1;
  18403. (u &= ~(1 << _)), (i += 1);
  18404. var w = 32 - St(o) + _;
  18405. if (30 < w) {
  18406. var x = _ - (_ % 5);
  18407. (w = (u & ((1 << x) - 1)).toString(32)),
  18408. (u >>= x),
  18409. (_ -= x),
  18410. (Rn = (1 << (32 - St(o) + _)) | (i << _) | u),
  18411. (Dn = w + s);
  18412. } else (Rn = (1 << w) | (i << _) | u), (Dn = s);
  18413. }
  18414. function vg(s) {
  18415. null !== s.return && (tg(s, 1), ug(s, 1, 0));
  18416. }
  18417. function wg(s) {
  18418. for (; s === In; ) (In = An[--jn]), (An[jn] = null), (Pn = An[--jn]), (An[jn] = null);
  18419. for (; s === Nn; )
  18420. (Nn = Mn[--Tn]),
  18421. (Mn[Tn] = null),
  18422. (Dn = Mn[--Tn]),
  18423. (Mn[Tn] = null),
  18424. (Rn = Mn[--Tn]),
  18425. (Mn[Tn] = null);
  18426. }
  18427. var Ln = null,
  18428. Bn = null,
  18429. Fn = !1,
  18430. qn = null;
  18431. function Ag(s, o) {
  18432. var i = Bg(5, null, null, 0);
  18433. (i.elementType = 'DELETED'),
  18434. (i.stateNode = o),
  18435. (i.return = s),
  18436. null === (o = s.deletions) ? ((s.deletions = [i]), (s.flags |= 16)) : o.push(i);
  18437. }
  18438. function Cg(s, o) {
  18439. switch (s.tag) {
  18440. case 5:
  18441. var i = s.type;
  18442. return (
  18443. null !==
  18444. (o =
  18445. 1 !== o.nodeType || i.toLowerCase() !== o.nodeName.toLowerCase()
  18446. ? null
  18447. : o) && ((s.stateNode = o), (Ln = s), (Bn = Lf(o.firstChild)), !0)
  18448. );
  18449. case 6:
  18450. return (
  18451. null !== (o = '' === s.pendingProps || 3 !== o.nodeType ? null : o) &&
  18452. ((s.stateNode = o), (Ln = s), (Bn = null), !0)
  18453. );
  18454. case 13:
  18455. return (
  18456. null !== (o = 8 !== o.nodeType ? null : o) &&
  18457. ((i = null !== Nn ? { id: Rn, overflow: Dn } : null),
  18458. (s.memoizedState = { dehydrated: o, treeContext: i, retryLane: 1073741824 }),
  18459. ((i = Bg(18, null, null, 0)).stateNode = o),
  18460. (i.return = s),
  18461. (s.child = i),
  18462. (Ln = s),
  18463. (Bn = null),
  18464. !0)
  18465. );
  18466. default:
  18467. return !1;
  18468. }
  18469. }
  18470. function Dg(s) {
  18471. return !(!(1 & s.mode) || 128 & s.flags);
  18472. }
  18473. function Eg(s) {
  18474. if (Fn) {
  18475. var o = Bn;
  18476. if (o) {
  18477. var i = o;
  18478. if (!Cg(s, o)) {
  18479. if (Dg(s)) throw Error(p(418));
  18480. o = Lf(i.nextSibling);
  18481. var u = Ln;
  18482. o && Cg(s, o)
  18483. ? Ag(u, i)
  18484. : ((s.flags = (-4097 & s.flags) | 2), (Fn = !1), (Ln = s));
  18485. }
  18486. } else {
  18487. if (Dg(s)) throw Error(p(418));
  18488. (s.flags = (-4097 & s.flags) | 2), (Fn = !1), (Ln = s);
  18489. }
  18490. }
  18491. }
  18492. function Fg(s) {
  18493. for (s = s.return; null !== s && 5 !== s.tag && 3 !== s.tag && 13 !== s.tag; )
  18494. s = s.return;
  18495. Ln = s;
  18496. }
  18497. function Gg(s) {
  18498. if (s !== Ln) return !1;
  18499. if (!Fn) return Fg(s), (Fn = !0), !1;
  18500. var o;
  18501. if (
  18502. ((o = 3 !== s.tag) &&
  18503. !(o = 5 !== s.tag) &&
  18504. (o = 'head' !== (o = s.type) && 'body' !== o && !Ef(s.type, s.memoizedProps)),
  18505. o && (o = Bn))
  18506. ) {
  18507. if (Dg(s)) throw (Hg(), Error(p(418)));
  18508. for (; o; ) Ag(s, o), (o = Lf(o.nextSibling));
  18509. }
  18510. if ((Fg(s), 13 === s.tag)) {
  18511. if (!(s = null !== (s = s.memoizedState) ? s.dehydrated : null)) throw Error(p(317));
  18512. e: {
  18513. for (s = s.nextSibling, o = 0; s; ) {
  18514. if (8 === s.nodeType) {
  18515. var i = s.data;
  18516. if ('/$' === i) {
  18517. if (0 === o) {
  18518. Bn = Lf(s.nextSibling);
  18519. break e;
  18520. }
  18521. o--;
  18522. } else ('$' !== i && '$!' !== i && '$?' !== i) || o++;
  18523. }
  18524. s = s.nextSibling;
  18525. }
  18526. Bn = null;
  18527. }
  18528. } else Bn = Ln ? Lf(s.stateNode.nextSibling) : null;
  18529. return !0;
  18530. }
  18531. function Hg() {
  18532. for (var s = Bn; s; ) s = Lf(s.nextSibling);
  18533. }
  18534. function Ig() {
  18535. (Bn = Ln = null), (Fn = !1);
  18536. }
  18537. function Jg(s) {
  18538. null === qn ? (qn = [s]) : qn.push(s);
  18539. }
  18540. var $n = z.ReactCurrentBatchConfig;
  18541. function Lg(s, o, i) {
  18542. if (null !== (s = i.ref) && 'function' != typeof s && 'object' != typeof s) {
  18543. if (i._owner) {
  18544. if ((i = i._owner)) {
  18545. if (1 !== i.tag) throw Error(p(309));
  18546. var u = i.stateNode;
  18547. }
  18548. if (!u) throw Error(p(147, s));
  18549. var _ = u,
  18550. w = '' + s;
  18551. return null !== o &&
  18552. null !== o.ref &&
  18553. 'function' == typeof o.ref &&
  18554. o.ref._stringRef === w
  18555. ? o.ref
  18556. : ((o = function (s) {
  18557. var o = _.refs;
  18558. null === s ? delete o[w] : (o[w] = s);
  18559. }),
  18560. (o._stringRef = w),
  18561. o);
  18562. }
  18563. if ('string' != typeof s) throw Error(p(284));
  18564. if (!i._owner) throw Error(p(290, s));
  18565. }
  18566. return s;
  18567. }
  18568. function Mg(s, o) {
  18569. throw (
  18570. ((s = Object.prototype.toString.call(o)),
  18571. Error(
  18572. p(
  18573. 31,
  18574. '[object Object]' === s
  18575. ? 'object with keys {' + Object.keys(o).join(', ') + '}'
  18576. : s
  18577. )
  18578. ))
  18579. );
  18580. }
  18581. function Ng(s) {
  18582. return (0, s._init)(s._payload);
  18583. }
  18584. function Og(s) {
  18585. function b(o, i) {
  18586. if (s) {
  18587. var u = o.deletions;
  18588. null === u ? ((o.deletions = [i]), (o.flags |= 16)) : u.push(i);
  18589. }
  18590. }
  18591. function c(o, i) {
  18592. if (!s) return null;
  18593. for (; null !== i; ) b(o, i), (i = i.sibling);
  18594. return null;
  18595. }
  18596. function d(s, o) {
  18597. for (s = new Map(); null !== o; )
  18598. null !== o.key ? s.set(o.key, o) : s.set(o.index, o), (o = o.sibling);
  18599. return s;
  18600. }
  18601. function e(s, o) {
  18602. return ((s = Pg(s, o)).index = 0), (s.sibling = null), s;
  18603. }
  18604. function f(o, i, u) {
  18605. return (
  18606. (o.index = u),
  18607. s
  18608. ? null !== (u = o.alternate)
  18609. ? (u = u.index) < i
  18610. ? ((o.flags |= 2), i)
  18611. : u
  18612. : ((o.flags |= 2), i)
  18613. : ((o.flags |= 1048576), i)
  18614. );
  18615. }
  18616. function g(o) {
  18617. return s && null === o.alternate && (o.flags |= 2), o;
  18618. }
  18619. function h(s, o, i, u) {
  18620. return null === o || 6 !== o.tag
  18621. ? (((o = Qg(i, s.mode, u)).return = s), o)
  18622. : (((o = e(o, i)).return = s), o);
  18623. }
  18624. function k(s, o, i, u) {
  18625. var _ = i.type;
  18626. return _ === ee
  18627. ? m(s, o, i.props.children, u, i.key)
  18628. : null !== o &&
  18629. (o.elementType === _ ||
  18630. ('object' == typeof _ && null !== _ && _.$$typeof === be && Ng(_) === o.type))
  18631. ? (((u = e(o, i.props)).ref = Lg(s, o, i)), (u.return = s), u)
  18632. : (((u = Rg(i.type, i.key, i.props, null, s.mode, u)).ref = Lg(s, o, i)),
  18633. (u.return = s),
  18634. u);
  18635. }
  18636. function l(s, o, i, u) {
  18637. return null === o ||
  18638. 4 !== o.tag ||
  18639. o.stateNode.containerInfo !== i.containerInfo ||
  18640. o.stateNode.implementation !== i.implementation
  18641. ? (((o = Sg(i, s.mode, u)).return = s), o)
  18642. : (((o = e(o, i.children || [])).return = s), o);
  18643. }
  18644. function m(s, o, i, u, _) {
  18645. return null === o || 7 !== o.tag
  18646. ? (((o = Tg(i, s.mode, u, _)).return = s), o)
  18647. : (((o = e(o, i)).return = s), o);
  18648. }
  18649. function q(s, o, i) {
  18650. if (('string' == typeof o && '' !== o) || 'number' == typeof o)
  18651. return ((o = Qg('' + o, s.mode, i)).return = s), o;
  18652. if ('object' == typeof o && null !== o) {
  18653. switch (o.$$typeof) {
  18654. case Y:
  18655. return (
  18656. ((i = Rg(o.type, o.key, o.props, null, s.mode, i)).ref = Lg(s, null, o)),
  18657. (i.return = s),
  18658. i
  18659. );
  18660. case Z:
  18661. return ((o = Sg(o, s.mode, i)).return = s), o;
  18662. case be:
  18663. return q(s, (0, o._init)(o._payload), i);
  18664. }
  18665. if (Te(o) || Ka(o)) return ((o = Tg(o, s.mode, i, null)).return = s), o;
  18666. Mg(s, o);
  18667. }
  18668. return null;
  18669. }
  18670. function r(s, o, i, u) {
  18671. var _ = null !== o ? o.key : null;
  18672. if (('string' == typeof i && '' !== i) || 'number' == typeof i)
  18673. return null !== _ ? null : h(s, o, '' + i, u);
  18674. if ('object' == typeof i && null !== i) {
  18675. switch (i.$$typeof) {
  18676. case Y:
  18677. return i.key === _ ? k(s, o, i, u) : null;
  18678. case Z:
  18679. return i.key === _ ? l(s, o, i, u) : null;
  18680. case be:
  18681. return r(s, o, (_ = i._init)(i._payload), u);
  18682. }
  18683. if (Te(i) || Ka(i)) return null !== _ ? null : m(s, o, i, u, null);
  18684. Mg(s, i);
  18685. }
  18686. return null;
  18687. }
  18688. function y(s, o, i, u, _) {
  18689. if (('string' == typeof u && '' !== u) || 'number' == typeof u)
  18690. return h(o, (s = s.get(i) || null), '' + u, _);
  18691. if ('object' == typeof u && null !== u) {
  18692. switch (u.$$typeof) {
  18693. case Y:
  18694. return k(o, (s = s.get(null === u.key ? i : u.key) || null), u, _);
  18695. case Z:
  18696. return l(o, (s = s.get(null === u.key ? i : u.key) || null), u, _);
  18697. case be:
  18698. return y(s, o, i, (0, u._init)(u._payload), _);
  18699. }
  18700. if (Te(u) || Ka(u)) return m(o, (s = s.get(i) || null), u, _, null);
  18701. Mg(o, u);
  18702. }
  18703. return null;
  18704. }
  18705. function n(o, i, u, _) {
  18706. for (
  18707. var w = null, x = null, C = i, j = (i = 0), L = null;
  18708. null !== C && j < u.length;
  18709. j++
  18710. ) {
  18711. C.index > j ? ((L = C), (C = null)) : (L = C.sibling);
  18712. var B = r(o, C, u[j], _);
  18713. if (null === B) {
  18714. null === C && (C = L);
  18715. break;
  18716. }
  18717. s && C && null === B.alternate && b(o, C),
  18718. (i = f(B, i, j)),
  18719. null === x ? (w = B) : (x.sibling = B),
  18720. (x = B),
  18721. (C = L);
  18722. }
  18723. if (j === u.length) return c(o, C), Fn && tg(o, j), w;
  18724. if (null === C) {
  18725. for (; j < u.length; j++)
  18726. null !== (C = q(o, u[j], _)) &&
  18727. ((i = f(C, i, j)), null === x ? (w = C) : (x.sibling = C), (x = C));
  18728. return Fn && tg(o, j), w;
  18729. }
  18730. for (C = d(o, C); j < u.length; j++)
  18731. null !== (L = y(C, o, j, u[j], _)) &&
  18732. (s && null !== L.alternate && C.delete(null === L.key ? j : L.key),
  18733. (i = f(L, i, j)),
  18734. null === x ? (w = L) : (x.sibling = L),
  18735. (x = L));
  18736. return (
  18737. s &&
  18738. C.forEach(function (s) {
  18739. return b(o, s);
  18740. }),
  18741. Fn && tg(o, j),
  18742. w
  18743. );
  18744. }
  18745. function t(o, i, u, _) {
  18746. var w = Ka(u);
  18747. if ('function' != typeof w) throw Error(p(150));
  18748. if (null == (u = w.call(u))) throw Error(p(151));
  18749. for (
  18750. var x = (w = null), C = i, j = (i = 0), L = null, B = u.next();
  18751. null !== C && !B.done;
  18752. j++, B = u.next()
  18753. ) {
  18754. C.index > j ? ((L = C), (C = null)) : (L = C.sibling);
  18755. var $ = r(o, C, B.value, _);
  18756. if (null === $) {
  18757. null === C && (C = L);
  18758. break;
  18759. }
  18760. s && C && null === $.alternate && b(o, C),
  18761. (i = f($, i, j)),
  18762. null === x ? (w = $) : (x.sibling = $),
  18763. (x = $),
  18764. (C = L);
  18765. }
  18766. if (B.done) return c(o, C), Fn && tg(o, j), w;
  18767. if (null === C) {
  18768. for (; !B.done; j++, B = u.next())
  18769. null !== (B = q(o, B.value, _)) &&
  18770. ((i = f(B, i, j)), null === x ? (w = B) : (x.sibling = B), (x = B));
  18771. return Fn && tg(o, j), w;
  18772. }
  18773. for (C = d(o, C); !B.done; j++, B = u.next())
  18774. null !== (B = y(C, o, j, B.value, _)) &&
  18775. (s && null !== B.alternate && C.delete(null === B.key ? j : B.key),
  18776. (i = f(B, i, j)),
  18777. null === x ? (w = B) : (x.sibling = B),
  18778. (x = B));
  18779. return (
  18780. s &&
  18781. C.forEach(function (s) {
  18782. return b(o, s);
  18783. }),
  18784. Fn && tg(o, j),
  18785. w
  18786. );
  18787. }
  18788. return function J(s, o, i, u) {
  18789. if (
  18790. ('object' == typeof i &&
  18791. null !== i &&
  18792. i.type === ee &&
  18793. null === i.key &&
  18794. (i = i.props.children),
  18795. 'object' == typeof i && null !== i)
  18796. ) {
  18797. switch (i.$$typeof) {
  18798. case Y:
  18799. e: {
  18800. for (var _ = i.key, w = o; null !== w; ) {
  18801. if (w.key === _) {
  18802. if ((_ = i.type) === ee) {
  18803. if (7 === w.tag) {
  18804. c(s, w.sibling), ((o = e(w, i.props.children)).return = s), (s = o);
  18805. break e;
  18806. }
  18807. } else if (
  18808. w.elementType === _ ||
  18809. ('object' == typeof _ &&
  18810. null !== _ &&
  18811. _.$$typeof === be &&
  18812. Ng(_) === w.type)
  18813. ) {
  18814. c(s, w.sibling),
  18815. ((o = e(w, i.props)).ref = Lg(s, w, i)),
  18816. (o.return = s),
  18817. (s = o);
  18818. break e;
  18819. }
  18820. c(s, w);
  18821. break;
  18822. }
  18823. b(s, w), (w = w.sibling);
  18824. }
  18825. i.type === ee
  18826. ? (((o = Tg(i.props.children, s.mode, u, i.key)).return = s), (s = o))
  18827. : (((u = Rg(i.type, i.key, i.props, null, s.mode, u)).ref = Lg(s, o, i)),
  18828. (u.return = s),
  18829. (s = u));
  18830. }
  18831. return g(s);
  18832. case Z:
  18833. e: {
  18834. for (w = i.key; null !== o; ) {
  18835. if (o.key === w) {
  18836. if (
  18837. 4 === o.tag &&
  18838. o.stateNode.containerInfo === i.containerInfo &&
  18839. o.stateNode.implementation === i.implementation
  18840. ) {
  18841. c(s, o.sibling), ((o = e(o, i.children || [])).return = s), (s = o);
  18842. break e;
  18843. }
  18844. c(s, o);
  18845. break;
  18846. }
  18847. b(s, o), (o = o.sibling);
  18848. }
  18849. ((o = Sg(i, s.mode, u)).return = s), (s = o);
  18850. }
  18851. return g(s);
  18852. case be:
  18853. return J(s, o, (w = i._init)(i._payload), u);
  18854. }
  18855. if (Te(i)) return n(s, o, i, u);
  18856. if (Ka(i)) return t(s, o, i, u);
  18857. Mg(s, i);
  18858. }
  18859. return ('string' == typeof i && '' !== i) || 'number' == typeof i
  18860. ? ((i = '' + i),
  18861. null !== o && 6 === o.tag
  18862. ? (c(s, o.sibling), ((o = e(o, i)).return = s), (s = o))
  18863. : (c(s, o), ((o = Qg(i, s.mode, u)).return = s), (s = o)),
  18864. g(s))
  18865. : c(s, o);
  18866. };
  18867. }
  18868. var Vn = Og(!0),
  18869. Un = Og(!1),
  18870. zn = Uf(null),
  18871. Wn = null,
  18872. Kn = null,
  18873. Hn = null;
  18874. function $g() {
  18875. Hn = Kn = Wn = null;
  18876. }
  18877. function ah(s) {
  18878. var o = zn.current;
  18879. E(zn), (s._currentValue = o);
  18880. }
  18881. function bh(s, o, i) {
  18882. for (; null !== s; ) {
  18883. var u = s.alternate;
  18884. if (
  18885. ((s.childLanes & o) !== o
  18886. ? ((s.childLanes |= o), null !== u && (u.childLanes |= o))
  18887. : null !== u && (u.childLanes & o) !== o && (u.childLanes |= o),
  18888. s === i)
  18889. )
  18890. break;
  18891. s = s.return;
  18892. }
  18893. }
  18894. function ch(s, o) {
  18895. (Wn = s),
  18896. (Hn = Kn = null),
  18897. null !== (s = s.dependencies) &&
  18898. null !== s.firstContext &&
  18899. (!!(s.lanes & o) && (_s = !0), (s.firstContext = null));
  18900. }
  18901. function eh(s) {
  18902. var o = s._currentValue;
  18903. if (Hn !== s)
  18904. if (((s = { context: s, memoizedValue: o, next: null }), null === Kn)) {
  18905. if (null === Wn) throw Error(p(308));
  18906. (Kn = s), (Wn.dependencies = { lanes: 0, firstContext: s });
  18907. } else Kn = Kn.next = s;
  18908. return o;
  18909. }
  18910. var Jn = null;
  18911. function gh(s) {
  18912. null === Jn ? (Jn = [s]) : Jn.push(s);
  18913. }
  18914. function hh(s, o, i, u) {
  18915. var _ = o.interleaved;
  18916. return (
  18917. null === _ ? ((i.next = i), gh(o)) : ((i.next = _.next), (_.next = i)),
  18918. (o.interleaved = i),
  18919. ih(s, u)
  18920. );
  18921. }
  18922. function ih(s, o) {
  18923. s.lanes |= o;
  18924. var i = s.alternate;
  18925. for (null !== i && (i.lanes |= o), i = s, s = s.return; null !== s; )
  18926. (s.childLanes |= o),
  18927. null !== (i = s.alternate) && (i.childLanes |= o),
  18928. (i = s),
  18929. (s = s.return);
  18930. return 3 === i.tag ? i.stateNode : null;
  18931. }
  18932. var Gn = !1;
  18933. function kh(s) {
  18934. s.updateQueue = {
  18935. baseState: s.memoizedState,
  18936. firstBaseUpdate: null,
  18937. lastBaseUpdate: null,
  18938. shared: { pending: null, interleaved: null, lanes: 0 },
  18939. effects: null
  18940. };
  18941. }
  18942. function lh(s, o) {
  18943. (s = s.updateQueue),
  18944. o.updateQueue === s &&
  18945. (o.updateQueue = {
  18946. baseState: s.baseState,
  18947. firstBaseUpdate: s.firstBaseUpdate,
  18948. lastBaseUpdate: s.lastBaseUpdate,
  18949. shared: s.shared,
  18950. effects: s.effects
  18951. });
  18952. }
  18953. function mh(s, o) {
  18954. return { eventTime: s, lane: o, tag: 0, payload: null, callback: null, next: null };
  18955. }
  18956. function nh(s, o, i) {
  18957. var u = s.updateQueue;
  18958. if (null === u) return null;
  18959. if (((u = u.shared), 2 & Bs)) {
  18960. var _ = u.pending;
  18961. return (
  18962. null === _ ? (o.next = o) : ((o.next = _.next), (_.next = o)),
  18963. (u.pending = o),
  18964. ih(s, i)
  18965. );
  18966. }
  18967. return (
  18968. null === (_ = u.interleaved)
  18969. ? ((o.next = o), gh(u))
  18970. : ((o.next = _.next), (_.next = o)),
  18971. (u.interleaved = o),
  18972. ih(s, i)
  18973. );
  18974. }
  18975. function oh(s, o, i) {
  18976. if (null !== (o = o.updateQueue) && ((o = o.shared), 4194240 & i)) {
  18977. var u = o.lanes;
  18978. (i |= u &= s.pendingLanes), (o.lanes = i), Cc(s, i);
  18979. }
  18980. }
  18981. function ph(s, o) {
  18982. var i = s.updateQueue,
  18983. u = s.alternate;
  18984. if (null !== u && i === (u = u.updateQueue)) {
  18985. var _ = null,
  18986. w = null;
  18987. if (null !== (i = i.firstBaseUpdate)) {
  18988. do {
  18989. var x = {
  18990. eventTime: i.eventTime,
  18991. lane: i.lane,
  18992. tag: i.tag,
  18993. payload: i.payload,
  18994. callback: i.callback,
  18995. next: null
  18996. };
  18997. null === w ? (_ = w = x) : (w = w.next = x), (i = i.next);
  18998. } while (null !== i);
  18999. null === w ? (_ = w = o) : (w = w.next = o);
  19000. } else _ = w = o;
  19001. return (
  19002. (i = {
  19003. baseState: u.baseState,
  19004. firstBaseUpdate: _,
  19005. lastBaseUpdate: w,
  19006. shared: u.shared,
  19007. effects: u.effects
  19008. }),
  19009. void (s.updateQueue = i)
  19010. );
  19011. }
  19012. null === (s = i.lastBaseUpdate) ? (i.firstBaseUpdate = o) : (s.next = o),
  19013. (i.lastBaseUpdate = o);
  19014. }
  19015. function qh(s, o, i, u) {
  19016. var _ = s.updateQueue;
  19017. Gn = !1;
  19018. var w = _.firstBaseUpdate,
  19019. x = _.lastBaseUpdate,
  19020. C = _.shared.pending;
  19021. if (null !== C) {
  19022. _.shared.pending = null;
  19023. var j = C,
  19024. L = j.next;
  19025. (j.next = null), null === x ? (w = L) : (x.next = L), (x = j);
  19026. var B = s.alternate;
  19027. null !== B &&
  19028. (C = (B = B.updateQueue).lastBaseUpdate) !== x &&
  19029. (null === C ? (B.firstBaseUpdate = L) : (C.next = L), (B.lastBaseUpdate = j));
  19030. }
  19031. if (null !== w) {
  19032. var $ = _.baseState;
  19033. for (x = 0, B = L = j = null, C = w; ; ) {
  19034. var V = C.lane,
  19035. U = C.eventTime;
  19036. if ((u & V) === V) {
  19037. null !== B &&
  19038. (B = B.next =
  19039. {
  19040. eventTime: U,
  19041. lane: 0,
  19042. tag: C.tag,
  19043. payload: C.payload,
  19044. callback: C.callback,
  19045. next: null
  19046. });
  19047. e: {
  19048. var z = s,
  19049. Y = C;
  19050. switch (((V = o), (U = i), Y.tag)) {
  19051. case 1:
  19052. if ('function' == typeof (z = Y.payload)) {
  19053. $ = z.call(U, $, V);
  19054. break e;
  19055. }
  19056. $ = z;
  19057. break e;
  19058. case 3:
  19059. z.flags = (-65537 & z.flags) | 128;
  19060. case 0:
  19061. if (
  19062. null == (V = 'function' == typeof (z = Y.payload) ? z.call(U, $, V) : z)
  19063. )
  19064. break e;
  19065. $ = xe({}, $, V);
  19066. break e;
  19067. case 2:
  19068. Gn = !0;
  19069. }
  19070. }
  19071. null !== C.callback &&
  19072. 0 !== C.lane &&
  19073. ((s.flags |= 64), null === (V = _.effects) ? (_.effects = [C]) : V.push(C));
  19074. } else
  19075. (U = {
  19076. eventTime: U,
  19077. lane: V,
  19078. tag: C.tag,
  19079. payload: C.payload,
  19080. callback: C.callback,
  19081. next: null
  19082. }),
  19083. null === B ? ((L = B = U), (j = $)) : (B = B.next = U),
  19084. (x |= V);
  19085. if (null === (C = C.next)) {
  19086. if (null === (C = _.shared.pending)) break;
  19087. (C = (V = C).next),
  19088. (V.next = null),
  19089. (_.lastBaseUpdate = V),
  19090. (_.shared.pending = null);
  19091. }
  19092. }
  19093. if (
  19094. (null === B && (j = $),
  19095. (_.baseState = j),
  19096. (_.firstBaseUpdate = L),
  19097. (_.lastBaseUpdate = B),
  19098. null !== (o = _.shared.interleaved))
  19099. ) {
  19100. _ = o;
  19101. do {
  19102. (x |= _.lane), (_ = _.next);
  19103. } while (_ !== o);
  19104. } else null === w && (_.shared.lanes = 0);
  19105. (Ks |= x), (s.lanes = x), (s.memoizedState = $);
  19106. }
  19107. }
  19108. function sh(s, o, i) {
  19109. if (((s = o.effects), (o.effects = null), null !== s))
  19110. for (o = 0; o < s.length; o++) {
  19111. var u = s[o],
  19112. _ = u.callback;
  19113. if (null !== _) {
  19114. if (((u.callback = null), (u = i), 'function' != typeof _))
  19115. throw Error(p(191, _));
  19116. _.call(u);
  19117. }
  19118. }
  19119. }
  19120. var Yn = {},
  19121. Xn = Uf(Yn),
  19122. Zn = Uf(Yn),
  19123. Qn = Uf(Yn);
  19124. function xh(s) {
  19125. if (s === Yn) throw Error(p(174));
  19126. return s;
  19127. }
  19128. function yh(s, o) {
  19129. switch ((G(Qn, o), G(Zn, s), G(Xn, Yn), (s = o.nodeType))) {
  19130. case 9:
  19131. case 11:
  19132. o = (o = o.documentElement) ? o.namespaceURI : lb(null, '');
  19133. break;
  19134. default:
  19135. o = lb(
  19136. (o = (s = 8 === s ? o.parentNode : o).namespaceURI || null),
  19137. (s = s.tagName)
  19138. );
  19139. }
  19140. E(Xn), G(Xn, o);
  19141. }
  19142. function zh() {
  19143. E(Xn), E(Zn), E(Qn);
  19144. }
  19145. function Ah(s) {
  19146. xh(Qn.current);
  19147. var o = xh(Xn.current),
  19148. i = lb(o, s.type);
  19149. o !== i && (G(Zn, s), G(Xn, i));
  19150. }
  19151. function Bh(s) {
  19152. Zn.current === s && (E(Xn), E(Zn));
  19153. }
  19154. var es = Uf(0);
  19155. function Ch(s) {
  19156. for (var o = s; null !== o; ) {
  19157. if (13 === o.tag) {
  19158. var i = o.memoizedState;
  19159. if (
  19160. null !== i &&
  19161. (null === (i = i.dehydrated) || '$?' === i.data || '$!' === i.data)
  19162. )
  19163. return o;
  19164. } else if (19 === o.tag && void 0 !== o.memoizedProps.revealOrder) {
  19165. if (128 & o.flags) return o;
  19166. } else if (null !== o.child) {
  19167. (o.child.return = o), (o = o.child);
  19168. continue;
  19169. }
  19170. if (o === s) break;
  19171. for (; null === o.sibling; ) {
  19172. if (null === o.return || o.return === s) return null;
  19173. o = o.return;
  19174. }
  19175. (o.sibling.return = o.return), (o = o.sibling);
  19176. }
  19177. return null;
  19178. }
  19179. var ts = [];
  19180. function Eh() {
  19181. for (var s = 0; s < ts.length; s++) ts[s]._workInProgressVersionPrimary = null;
  19182. ts.length = 0;
  19183. }
  19184. var rs = z.ReactCurrentDispatcher,
  19185. ns = z.ReactCurrentBatchConfig,
  19186. ss = 0,
  19187. os = null,
  19188. as = null,
  19189. ls = null,
  19190. cs = !1,
  19191. us = !1,
  19192. ps = 0,
  19193. hs = 0;
  19194. function P() {
  19195. throw Error(p(321));
  19196. }
  19197. function Mh(s, o) {
  19198. if (null === o) return !1;
  19199. for (var i = 0; i < o.length && i < s.length; i++) if (!Lr(s[i], o[i])) return !1;
  19200. return !0;
  19201. }
  19202. function Nh(s, o, i, u, _, w) {
  19203. if (
  19204. ((ss = w),
  19205. (os = o),
  19206. (o.memoizedState = null),
  19207. (o.updateQueue = null),
  19208. (o.lanes = 0),
  19209. (rs.current = null === s || null === s.memoizedState ? fs : ms),
  19210. (s = i(u, _)),
  19211. us)
  19212. ) {
  19213. w = 0;
  19214. do {
  19215. if (((us = !1), (ps = 0), 25 <= w)) throw Error(p(301));
  19216. (w += 1),
  19217. (ls = as = null),
  19218. (o.updateQueue = null),
  19219. (rs.current = gs),
  19220. (s = i(u, _));
  19221. } while (us);
  19222. }
  19223. if (
  19224. ((rs.current = ds),
  19225. (o = null !== as && null !== as.next),
  19226. (ss = 0),
  19227. (ls = as = os = null),
  19228. (cs = !1),
  19229. o)
  19230. )
  19231. throw Error(p(300));
  19232. return s;
  19233. }
  19234. function Sh() {
  19235. var s = 0 !== ps;
  19236. return (ps = 0), s;
  19237. }
  19238. function Th() {
  19239. var s = {
  19240. memoizedState: null,
  19241. baseState: null,
  19242. baseQueue: null,
  19243. queue: null,
  19244. next: null
  19245. };
  19246. return null === ls ? (os.memoizedState = ls = s) : (ls = ls.next = s), ls;
  19247. }
  19248. function Uh() {
  19249. if (null === as) {
  19250. var s = os.alternate;
  19251. s = null !== s ? s.memoizedState : null;
  19252. } else s = as.next;
  19253. var o = null === ls ? os.memoizedState : ls.next;
  19254. if (null !== o) (ls = o), (as = s);
  19255. else {
  19256. if (null === s) throw Error(p(310));
  19257. (s = {
  19258. memoizedState: (as = s).memoizedState,
  19259. baseState: as.baseState,
  19260. baseQueue: as.baseQueue,
  19261. queue: as.queue,
  19262. next: null
  19263. }),
  19264. null === ls ? (os.memoizedState = ls = s) : (ls = ls.next = s);
  19265. }
  19266. return ls;
  19267. }
  19268. function Vh(s, o) {
  19269. return 'function' == typeof o ? o(s) : o;
  19270. }
  19271. function Wh(s) {
  19272. var o = Uh(),
  19273. i = o.queue;
  19274. if (null === i) throw Error(p(311));
  19275. i.lastRenderedReducer = s;
  19276. var u = as,
  19277. _ = u.baseQueue,
  19278. w = i.pending;
  19279. if (null !== w) {
  19280. if (null !== _) {
  19281. var x = _.next;
  19282. (_.next = w.next), (w.next = x);
  19283. }
  19284. (u.baseQueue = _ = w), (i.pending = null);
  19285. }
  19286. if (null !== _) {
  19287. (w = _.next), (u = u.baseState);
  19288. var C = (x = null),
  19289. j = null,
  19290. L = w;
  19291. do {
  19292. var B = L.lane;
  19293. if ((ss & B) === B)
  19294. null !== j &&
  19295. (j = j.next =
  19296. {
  19297. lane: 0,
  19298. action: L.action,
  19299. hasEagerState: L.hasEagerState,
  19300. eagerState: L.eagerState,
  19301. next: null
  19302. }),
  19303. (u = L.hasEagerState ? L.eagerState : s(u, L.action));
  19304. else {
  19305. var $ = {
  19306. lane: B,
  19307. action: L.action,
  19308. hasEagerState: L.hasEagerState,
  19309. eagerState: L.eagerState,
  19310. next: null
  19311. };
  19312. null === j ? ((C = j = $), (x = u)) : (j = j.next = $),
  19313. (os.lanes |= B),
  19314. (Ks |= B);
  19315. }
  19316. L = L.next;
  19317. } while (null !== L && L !== w);
  19318. null === j ? (x = u) : (j.next = C),
  19319. Lr(u, o.memoizedState) || (_s = !0),
  19320. (o.memoizedState = u),
  19321. (o.baseState = x),
  19322. (o.baseQueue = j),
  19323. (i.lastRenderedState = u);
  19324. }
  19325. if (null !== (s = i.interleaved)) {
  19326. _ = s;
  19327. do {
  19328. (w = _.lane), (os.lanes |= w), (Ks |= w), (_ = _.next);
  19329. } while (_ !== s);
  19330. } else null === _ && (i.lanes = 0);
  19331. return [o.memoizedState, i.dispatch];
  19332. }
  19333. function Xh(s) {
  19334. var o = Uh(),
  19335. i = o.queue;
  19336. if (null === i) throw Error(p(311));
  19337. i.lastRenderedReducer = s;
  19338. var u = i.dispatch,
  19339. _ = i.pending,
  19340. w = o.memoizedState;
  19341. if (null !== _) {
  19342. i.pending = null;
  19343. var x = (_ = _.next);
  19344. do {
  19345. (w = s(w, x.action)), (x = x.next);
  19346. } while (x !== _);
  19347. Lr(w, o.memoizedState) || (_s = !0),
  19348. (o.memoizedState = w),
  19349. null === o.baseQueue && (o.baseState = w),
  19350. (i.lastRenderedState = w);
  19351. }
  19352. return [w, u];
  19353. }
  19354. function Yh() {}
  19355. function Zh(s, o) {
  19356. var i = os,
  19357. u = Uh(),
  19358. _ = o(),
  19359. w = !Lr(u.memoizedState, _);
  19360. if (
  19361. (w && ((u.memoizedState = _), (_s = !0)),
  19362. (u = u.queue),
  19363. $h(ai.bind(null, i, u, s), [s]),
  19364. u.getSnapshot !== o || w || (null !== ls && 1 & ls.memoizedState.tag))
  19365. ) {
  19366. if (((i.flags |= 2048), bi(9, ci.bind(null, i, u, _, o), void 0, null), null === Fs))
  19367. throw Error(p(349));
  19368. 30 & ss || di(i, o, _);
  19369. }
  19370. return _;
  19371. }
  19372. function di(s, o, i) {
  19373. (s.flags |= 16384),
  19374. (s = { getSnapshot: o, value: i }),
  19375. null === (o = os.updateQueue)
  19376. ? ((o = { lastEffect: null, stores: null }), (os.updateQueue = o), (o.stores = [s]))
  19377. : null === (i = o.stores)
  19378. ? (o.stores = [s])
  19379. : i.push(s);
  19380. }
  19381. function ci(s, o, i, u) {
  19382. (o.value = i), (o.getSnapshot = u), ei(o) && fi(s);
  19383. }
  19384. function ai(s, o, i) {
  19385. return i(function () {
  19386. ei(o) && fi(s);
  19387. });
  19388. }
  19389. function ei(s) {
  19390. var o = s.getSnapshot;
  19391. s = s.value;
  19392. try {
  19393. var i = o();
  19394. return !Lr(s, i);
  19395. } catch (s) {
  19396. return !0;
  19397. }
  19398. }
  19399. function fi(s) {
  19400. var o = ih(s, 1);
  19401. null !== o && gi(o, s, 1, -1);
  19402. }
  19403. function hi(s) {
  19404. var o = Th();
  19405. return (
  19406. 'function' == typeof s && (s = s()),
  19407. (o.memoizedState = o.baseState = s),
  19408. (s = {
  19409. pending: null,
  19410. interleaved: null,
  19411. lanes: 0,
  19412. dispatch: null,
  19413. lastRenderedReducer: Vh,
  19414. lastRenderedState: s
  19415. }),
  19416. (o.queue = s),
  19417. (s = s.dispatch = ii.bind(null, os, s)),
  19418. [o.memoizedState, s]
  19419. );
  19420. }
  19421. function bi(s, o, i, u) {
  19422. return (
  19423. (s = { tag: s, create: o, destroy: i, deps: u, next: null }),
  19424. null === (o = os.updateQueue)
  19425. ? ((o = { lastEffect: null, stores: null }),
  19426. (os.updateQueue = o),
  19427. (o.lastEffect = s.next = s))
  19428. : null === (i = o.lastEffect)
  19429. ? (o.lastEffect = s.next = s)
  19430. : ((u = i.next), (i.next = s), (s.next = u), (o.lastEffect = s)),
  19431. s
  19432. );
  19433. }
  19434. function ji() {
  19435. return Uh().memoizedState;
  19436. }
  19437. function ki(s, o, i, u) {
  19438. var _ = Th();
  19439. (os.flags |= s), (_.memoizedState = bi(1 | o, i, void 0, void 0 === u ? null : u));
  19440. }
  19441. function li(s, o, i, u) {
  19442. var _ = Uh();
  19443. u = void 0 === u ? null : u;
  19444. var w = void 0;
  19445. if (null !== as) {
  19446. var x = as.memoizedState;
  19447. if (((w = x.destroy), null !== u && Mh(u, x.deps)))
  19448. return void (_.memoizedState = bi(o, i, w, u));
  19449. }
  19450. (os.flags |= s), (_.memoizedState = bi(1 | o, i, w, u));
  19451. }
  19452. function mi(s, o) {
  19453. return ki(8390656, 8, s, o);
  19454. }
  19455. function $h(s, o) {
  19456. return li(2048, 8, s, o);
  19457. }
  19458. function ni(s, o) {
  19459. return li(4, 2, s, o);
  19460. }
  19461. function oi(s, o) {
  19462. return li(4, 4, s, o);
  19463. }
  19464. function pi(s, o) {
  19465. return 'function' == typeof o
  19466. ? ((s = s()),
  19467. o(s),
  19468. function () {
  19469. o(null);
  19470. })
  19471. : null != o
  19472. ? ((s = s()),
  19473. (o.current = s),
  19474. function () {
  19475. o.current = null;
  19476. })
  19477. : void 0;
  19478. }
  19479. function qi(s, o, i) {
  19480. return (i = null != i ? i.concat([s]) : null), li(4, 4, pi.bind(null, o, s), i);
  19481. }
  19482. function ri() {}
  19483. function si(s, o) {
  19484. var i = Uh();
  19485. o = void 0 === o ? null : o;
  19486. var u = i.memoizedState;
  19487. return null !== u && null !== o && Mh(o, u[1]) ? u[0] : ((i.memoizedState = [s, o]), s);
  19488. }
  19489. function ti(s, o) {
  19490. var i = Uh();
  19491. o = void 0 === o ? null : o;
  19492. var u = i.memoizedState;
  19493. return null !== u && null !== o && Mh(o, u[1])
  19494. ? u[0]
  19495. : ((s = s()), (i.memoizedState = [s, o]), s);
  19496. }
  19497. function ui(s, o, i) {
  19498. return 21 & ss
  19499. ? (Lr(i, o) || ((i = yc()), (os.lanes |= i), (Ks |= i), (s.baseState = !0)), o)
  19500. : (s.baseState && ((s.baseState = !1), (_s = !0)), (s.memoizedState = i));
  19501. }
  19502. function vi(s, o) {
  19503. var i = At;
  19504. (At = 0 !== i && 4 > i ? i : 4), s(!0);
  19505. var u = ns.transition;
  19506. ns.transition = {};
  19507. try {
  19508. s(!1), o();
  19509. } finally {
  19510. (At = i), (ns.transition = u);
  19511. }
  19512. }
  19513. function wi() {
  19514. return Uh().memoizedState;
  19515. }
  19516. function xi(s, o, i) {
  19517. var u = yi(s);
  19518. if (
  19519. ((i = { lane: u, action: i, hasEagerState: !1, eagerState: null, next: null }), zi(s))
  19520. )
  19521. Ai(o, i);
  19522. else if (null !== (i = hh(s, o, i, u))) {
  19523. gi(i, s, u, R()), Bi(i, o, u);
  19524. }
  19525. }
  19526. function ii(s, o, i) {
  19527. var u = yi(s),
  19528. _ = { lane: u, action: i, hasEagerState: !1, eagerState: null, next: null };
  19529. if (zi(s)) Ai(o, _);
  19530. else {
  19531. var w = s.alternate;
  19532. if (
  19533. 0 === s.lanes &&
  19534. (null === w || 0 === w.lanes) &&
  19535. null !== (w = o.lastRenderedReducer)
  19536. )
  19537. try {
  19538. var x = o.lastRenderedState,
  19539. C = w(x, i);
  19540. if (((_.hasEagerState = !0), (_.eagerState = C), Lr(C, x))) {
  19541. var j = o.interleaved;
  19542. return (
  19543. null === j ? ((_.next = _), gh(o)) : ((_.next = j.next), (j.next = _)),
  19544. void (o.interleaved = _)
  19545. );
  19546. }
  19547. } catch (s) {}
  19548. null !== (i = hh(s, o, _, u)) && (gi(i, s, u, (_ = R())), Bi(i, o, u));
  19549. }
  19550. }
  19551. function zi(s) {
  19552. var o = s.alternate;
  19553. return s === os || (null !== o && o === os);
  19554. }
  19555. function Ai(s, o) {
  19556. us = cs = !0;
  19557. var i = s.pending;
  19558. null === i ? (o.next = o) : ((o.next = i.next), (i.next = o)), (s.pending = o);
  19559. }
  19560. function Bi(s, o, i) {
  19561. if (4194240 & i) {
  19562. var u = o.lanes;
  19563. (i |= u &= s.pendingLanes), (o.lanes = i), Cc(s, i);
  19564. }
  19565. }
  19566. var ds = {
  19567. readContext: eh,
  19568. useCallback: P,
  19569. useContext: P,
  19570. useEffect: P,
  19571. useImperativeHandle: P,
  19572. useInsertionEffect: P,
  19573. useLayoutEffect: P,
  19574. useMemo: P,
  19575. useReducer: P,
  19576. useRef: P,
  19577. useState: P,
  19578. useDebugValue: P,
  19579. useDeferredValue: P,
  19580. useTransition: P,
  19581. useMutableSource: P,
  19582. useSyncExternalStore: P,
  19583. useId: P,
  19584. unstable_isNewReconciler: !1
  19585. },
  19586. fs = {
  19587. readContext: eh,
  19588. useCallback: function (s, o) {
  19589. return (Th().memoizedState = [s, void 0 === o ? null : o]), s;
  19590. },
  19591. useContext: eh,
  19592. useEffect: mi,
  19593. useImperativeHandle: function (s, o, i) {
  19594. return (
  19595. (i = null != i ? i.concat([s]) : null), ki(4194308, 4, pi.bind(null, o, s), i)
  19596. );
  19597. },
  19598. useLayoutEffect: function (s, o) {
  19599. return ki(4194308, 4, s, o);
  19600. },
  19601. useInsertionEffect: function (s, o) {
  19602. return ki(4, 2, s, o);
  19603. },
  19604. useMemo: function (s, o) {
  19605. var i = Th();
  19606. return (o = void 0 === o ? null : o), (s = s()), (i.memoizedState = [s, o]), s;
  19607. },
  19608. useReducer: function (s, o, i) {
  19609. var u = Th();
  19610. return (
  19611. (o = void 0 !== i ? i(o) : o),
  19612. (u.memoizedState = u.baseState = o),
  19613. (s = {
  19614. pending: null,
  19615. interleaved: null,
  19616. lanes: 0,
  19617. dispatch: null,
  19618. lastRenderedReducer: s,
  19619. lastRenderedState: o
  19620. }),
  19621. (u.queue = s),
  19622. (s = s.dispatch = xi.bind(null, os, s)),
  19623. [u.memoizedState, s]
  19624. );
  19625. },
  19626. useRef: function (s) {
  19627. return (s = { current: s }), (Th().memoizedState = s);
  19628. },
  19629. useState: hi,
  19630. useDebugValue: ri,
  19631. useDeferredValue: function (s) {
  19632. return (Th().memoizedState = s);
  19633. },
  19634. useTransition: function () {
  19635. var s = hi(!1),
  19636. o = s[0];
  19637. return (s = vi.bind(null, s[1])), (Th().memoizedState = s), [o, s];
  19638. },
  19639. useMutableSource: function () {},
  19640. useSyncExternalStore: function (s, o, i) {
  19641. var u = os,
  19642. _ = Th();
  19643. if (Fn) {
  19644. if (void 0 === i) throw Error(p(407));
  19645. i = i();
  19646. } else {
  19647. if (((i = o()), null === Fs)) throw Error(p(349));
  19648. 30 & ss || di(u, o, i);
  19649. }
  19650. _.memoizedState = i;
  19651. var w = { value: i, getSnapshot: o };
  19652. return (
  19653. (_.queue = w),
  19654. mi(ai.bind(null, u, w, s), [s]),
  19655. (u.flags |= 2048),
  19656. bi(9, ci.bind(null, u, w, i, o), void 0, null),
  19657. i
  19658. );
  19659. },
  19660. useId: function () {
  19661. var s = Th(),
  19662. o = Fs.identifierPrefix;
  19663. if (Fn) {
  19664. var i = Dn;
  19665. (o = ':' + o + 'R' + (i = (Rn & ~(1 << (32 - St(Rn) - 1))).toString(32) + i)),
  19666. 0 < (i = ps++) && (o += 'H' + i.toString(32)),
  19667. (o += ':');
  19668. } else o = ':' + o + 'r' + (i = hs++).toString(32) + ':';
  19669. return (s.memoizedState = o);
  19670. },
  19671. unstable_isNewReconciler: !1
  19672. },
  19673. ms = {
  19674. readContext: eh,
  19675. useCallback: si,
  19676. useContext: eh,
  19677. useEffect: $h,
  19678. useImperativeHandle: qi,
  19679. useInsertionEffect: ni,
  19680. useLayoutEffect: oi,
  19681. useMemo: ti,
  19682. useReducer: Wh,
  19683. useRef: ji,
  19684. useState: function () {
  19685. return Wh(Vh);
  19686. },
  19687. useDebugValue: ri,
  19688. useDeferredValue: function (s) {
  19689. return ui(Uh(), as.memoizedState, s);
  19690. },
  19691. useTransition: function () {
  19692. return [Wh(Vh)[0], Uh().memoizedState];
  19693. },
  19694. useMutableSource: Yh,
  19695. useSyncExternalStore: Zh,
  19696. useId: wi,
  19697. unstable_isNewReconciler: !1
  19698. },
  19699. gs = {
  19700. readContext: eh,
  19701. useCallback: si,
  19702. useContext: eh,
  19703. useEffect: $h,
  19704. useImperativeHandle: qi,
  19705. useInsertionEffect: ni,
  19706. useLayoutEffect: oi,
  19707. useMemo: ti,
  19708. useReducer: Xh,
  19709. useRef: ji,
  19710. useState: function () {
  19711. return Xh(Vh);
  19712. },
  19713. useDebugValue: ri,
  19714. useDeferredValue: function (s) {
  19715. var o = Uh();
  19716. return null === as ? (o.memoizedState = s) : ui(o, as.memoizedState, s);
  19717. },
  19718. useTransition: function () {
  19719. return [Xh(Vh)[0], Uh().memoizedState];
  19720. },
  19721. useMutableSource: Yh,
  19722. useSyncExternalStore: Zh,
  19723. useId: wi,
  19724. unstable_isNewReconciler: !1
  19725. };
  19726. function Ci(s, o) {
  19727. if (s && s.defaultProps) {
  19728. for (var i in ((o = xe({}, o)), (s = s.defaultProps)))
  19729. void 0 === o[i] && (o[i] = s[i]);
  19730. return o;
  19731. }
  19732. return o;
  19733. }
  19734. function Di(s, o, i, u) {
  19735. (i = null == (i = i(u, (o = s.memoizedState))) ? o : xe({}, o, i)),
  19736. (s.memoizedState = i),
  19737. 0 === s.lanes && (s.updateQueue.baseState = i);
  19738. }
  19739. var ys = {
  19740. isMounted: function (s) {
  19741. return !!(s = s._reactInternals) && Vb(s) === s;
  19742. },
  19743. enqueueSetState: function (s, o, i) {
  19744. s = s._reactInternals;
  19745. var u = R(),
  19746. _ = yi(s),
  19747. w = mh(u, _);
  19748. (w.payload = o),
  19749. null != i && (w.callback = i),
  19750. null !== (o = nh(s, w, _)) && (gi(o, s, _, u), oh(o, s, _));
  19751. },
  19752. enqueueReplaceState: function (s, o, i) {
  19753. s = s._reactInternals;
  19754. var u = R(),
  19755. _ = yi(s),
  19756. w = mh(u, _);
  19757. (w.tag = 1),
  19758. (w.payload = o),
  19759. null != i && (w.callback = i),
  19760. null !== (o = nh(s, w, _)) && (gi(o, s, _, u), oh(o, s, _));
  19761. },
  19762. enqueueForceUpdate: function (s, o) {
  19763. s = s._reactInternals;
  19764. var i = R(),
  19765. u = yi(s),
  19766. _ = mh(i, u);
  19767. (_.tag = 2),
  19768. null != o && (_.callback = o),
  19769. null !== (o = nh(s, _, u)) && (gi(o, s, u, i), oh(o, s, u));
  19770. }
  19771. };
  19772. function Fi(s, o, i, u, _, w, x) {
  19773. return 'function' == typeof (s = s.stateNode).shouldComponentUpdate
  19774. ? s.shouldComponentUpdate(u, w, x)
  19775. : !o.prototype || !o.prototype.isPureReactComponent || !Ie(i, u) || !Ie(_, w);
  19776. }
  19777. function Gi(s, o, i) {
  19778. var u = !1,
  19779. _ = En,
  19780. w = o.contextType;
  19781. return (
  19782. 'object' == typeof w && null !== w
  19783. ? (w = eh(w))
  19784. : ((_ = Zf(o) ? xn : wn.current),
  19785. (w = (u = null != (u = o.contextTypes)) ? Yf(s, _) : En)),
  19786. (o = new o(i, w)),
  19787. (s.memoizedState = null !== o.state && void 0 !== o.state ? o.state : null),
  19788. (o.updater = ys),
  19789. (s.stateNode = o),
  19790. (o._reactInternals = s),
  19791. u &&
  19792. (((s = s.stateNode).__reactInternalMemoizedUnmaskedChildContext = _),
  19793. (s.__reactInternalMemoizedMaskedChildContext = w)),
  19794. o
  19795. );
  19796. }
  19797. function Hi(s, o, i, u) {
  19798. (s = o.state),
  19799. 'function' == typeof o.componentWillReceiveProps && o.componentWillReceiveProps(i, u),
  19800. 'function' == typeof o.UNSAFE_componentWillReceiveProps &&
  19801. o.UNSAFE_componentWillReceiveProps(i, u),
  19802. o.state !== s && ys.enqueueReplaceState(o, o.state, null);
  19803. }
  19804. function Ii(s, o, i, u) {
  19805. var _ = s.stateNode;
  19806. (_.props = i), (_.state = s.memoizedState), (_.refs = {}), kh(s);
  19807. var w = o.contextType;
  19808. 'object' == typeof w && null !== w
  19809. ? (_.context = eh(w))
  19810. : ((w = Zf(o) ? xn : wn.current), (_.context = Yf(s, w))),
  19811. (_.state = s.memoizedState),
  19812. 'function' == typeof (w = o.getDerivedStateFromProps) &&
  19813. (Di(s, o, w, i), (_.state = s.memoizedState)),
  19814. 'function' == typeof o.getDerivedStateFromProps ||
  19815. 'function' == typeof _.getSnapshotBeforeUpdate ||
  19816. ('function' != typeof _.UNSAFE_componentWillMount &&
  19817. 'function' != typeof _.componentWillMount) ||
  19818. ((o = _.state),
  19819. 'function' == typeof _.componentWillMount && _.componentWillMount(),
  19820. 'function' == typeof _.UNSAFE_componentWillMount && _.UNSAFE_componentWillMount(),
  19821. o !== _.state && ys.enqueueReplaceState(_, _.state, null),
  19822. qh(s, i, _, u),
  19823. (_.state = s.memoizedState)),
  19824. 'function' == typeof _.componentDidMount && (s.flags |= 4194308);
  19825. }
  19826. function Ji(s, o) {
  19827. try {
  19828. var i = '',
  19829. u = o;
  19830. do {
  19831. (i += Pa(u)), (u = u.return);
  19832. } while (u);
  19833. var _ = i;
  19834. } catch (s) {
  19835. _ = '\nError generating stack: ' + s.message + '\n' + s.stack;
  19836. }
  19837. return { value: s, source: o, stack: _, digest: null };
  19838. }
  19839. function Ki(s, o, i) {
  19840. return {
  19841. value: s,
  19842. source: null,
  19843. stack: null != i ? i : null,
  19844. digest: null != o ? o : null
  19845. };
  19846. }
  19847. function Li(s, o) {
  19848. try {
  19849. console.error(o.value);
  19850. } catch (s) {
  19851. setTimeout(function () {
  19852. throw s;
  19853. });
  19854. }
  19855. }
  19856. var vs = 'function' == typeof WeakMap ? WeakMap : Map;
  19857. function Ni(s, o, i) {
  19858. ((i = mh(-1, i)).tag = 3), (i.payload = { element: null });
  19859. var u = o.value;
  19860. return (
  19861. (i.callback = function () {
  19862. eo || ((eo = !0), (to = u)), Li(0, o);
  19863. }),
  19864. i
  19865. );
  19866. }
  19867. function Qi(s, o, i) {
  19868. (i = mh(-1, i)).tag = 3;
  19869. var u = s.type.getDerivedStateFromError;
  19870. if ('function' == typeof u) {
  19871. var _ = o.value;
  19872. (i.payload = function () {
  19873. return u(_);
  19874. }),
  19875. (i.callback = function () {
  19876. Li(0, o);
  19877. });
  19878. }
  19879. var w = s.stateNode;
  19880. return (
  19881. null !== w &&
  19882. 'function' == typeof w.componentDidCatch &&
  19883. (i.callback = function () {
  19884. Li(0, o),
  19885. 'function' != typeof u && (null === ro ? (ro = new Set([this])) : ro.add(this));
  19886. var s = o.stack;
  19887. this.componentDidCatch(o.value, { componentStack: null !== s ? s : '' });
  19888. }),
  19889. i
  19890. );
  19891. }
  19892. function Si(s, o, i) {
  19893. var u = s.pingCache;
  19894. if (null === u) {
  19895. u = s.pingCache = new vs();
  19896. var _ = new Set();
  19897. u.set(o, _);
  19898. } else void 0 === (_ = u.get(o)) && ((_ = new Set()), u.set(o, _));
  19899. _.has(i) || (_.add(i), (s = Ti.bind(null, s, o, i)), o.then(s, s));
  19900. }
  19901. function Ui(s) {
  19902. do {
  19903. var o;
  19904. if (
  19905. ((o = 13 === s.tag) &&
  19906. (o = null === (o = s.memoizedState) || null !== o.dehydrated),
  19907. o)
  19908. )
  19909. return s;
  19910. s = s.return;
  19911. } while (null !== s);
  19912. return null;
  19913. }
  19914. function Vi(s, o, i, u, _) {
  19915. return 1 & s.mode
  19916. ? ((s.flags |= 65536), (s.lanes = _), s)
  19917. : (s === o
  19918. ? (s.flags |= 65536)
  19919. : ((s.flags |= 128),
  19920. (i.flags |= 131072),
  19921. (i.flags &= -52805),
  19922. 1 === i.tag &&
  19923. (null === i.alternate
  19924. ? (i.tag = 17)
  19925. : (((o = mh(-1, 1)).tag = 2), nh(i, o, 1))),
  19926. (i.lanes |= 1)),
  19927. s);
  19928. }
  19929. var bs = z.ReactCurrentOwner,
  19930. _s = !1;
  19931. function Xi(s, o, i, u) {
  19932. o.child = null === s ? Un(o, null, i, u) : Vn(o, s.child, i, u);
  19933. }
  19934. function Yi(s, o, i, u, _) {
  19935. i = i.render;
  19936. var w = o.ref;
  19937. return (
  19938. ch(o, _),
  19939. (u = Nh(s, o, i, u, w, _)),
  19940. (i = Sh()),
  19941. null === s || _s
  19942. ? (Fn && i && vg(o), (o.flags |= 1), Xi(s, o, u, _), o.child)
  19943. : ((o.updateQueue = s.updateQueue),
  19944. (o.flags &= -2053),
  19945. (s.lanes &= ~_),
  19946. Zi(s, o, _))
  19947. );
  19948. }
  19949. function $i(s, o, i, u, _) {
  19950. if (null === s) {
  19951. var w = i.type;
  19952. return 'function' != typeof w ||
  19953. aj(w) ||
  19954. void 0 !== w.defaultProps ||
  19955. null !== i.compare ||
  19956. void 0 !== i.defaultProps
  19957. ? (((s = Rg(i.type, null, u, o, o.mode, _)).ref = o.ref),
  19958. (s.return = o),
  19959. (o.child = s))
  19960. : ((o.tag = 15), (o.type = w), bj(s, o, w, u, _));
  19961. }
  19962. if (((w = s.child), !(s.lanes & _))) {
  19963. var x = w.memoizedProps;
  19964. if ((i = null !== (i = i.compare) ? i : Ie)(x, u) && s.ref === o.ref)
  19965. return Zi(s, o, _);
  19966. }
  19967. return (o.flags |= 1), ((s = Pg(w, u)).ref = o.ref), (s.return = o), (o.child = s);
  19968. }
  19969. function bj(s, o, i, u, _) {
  19970. if (null !== s) {
  19971. var w = s.memoizedProps;
  19972. if (Ie(w, u) && s.ref === o.ref) {
  19973. if (((_s = !1), (o.pendingProps = u = w), !(s.lanes & _)))
  19974. return (o.lanes = s.lanes), Zi(s, o, _);
  19975. 131072 & s.flags && (_s = !0);
  19976. }
  19977. }
  19978. return cj(s, o, i, u, _);
  19979. }
  19980. function dj(s, o, i) {
  19981. var u = o.pendingProps,
  19982. _ = u.children,
  19983. w = null !== s ? s.memoizedState : null;
  19984. if ('hidden' === u.mode)
  19985. if (1 & o.mode) {
  19986. if (!(1073741824 & i))
  19987. return (
  19988. (s = null !== w ? w.baseLanes | i : i),
  19989. (o.lanes = o.childLanes = 1073741824),
  19990. (o.memoizedState = { baseLanes: s, cachePool: null, transitions: null }),
  19991. (o.updateQueue = null),
  19992. G(Us, Vs),
  19993. (Vs |= s),
  19994. null
  19995. );
  19996. (o.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }),
  19997. (u = null !== w ? w.baseLanes : i),
  19998. G(Us, Vs),
  19999. (Vs |= u);
  20000. } else
  20001. (o.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }),
  20002. G(Us, Vs),
  20003. (Vs |= i);
  20004. else
  20005. null !== w ? ((u = w.baseLanes | i), (o.memoizedState = null)) : (u = i),
  20006. G(Us, Vs),
  20007. (Vs |= u);
  20008. return Xi(s, o, _, i), o.child;
  20009. }
  20010. function gj(s, o) {
  20011. var i = o.ref;
  20012. ((null === s && null !== i) || (null !== s && s.ref !== i)) &&
  20013. ((o.flags |= 512), (o.flags |= 2097152));
  20014. }
  20015. function cj(s, o, i, u, _) {
  20016. var w = Zf(i) ? xn : wn.current;
  20017. return (
  20018. (w = Yf(o, w)),
  20019. ch(o, _),
  20020. (i = Nh(s, o, i, u, w, _)),
  20021. (u = Sh()),
  20022. null === s || _s
  20023. ? (Fn && u && vg(o), (o.flags |= 1), Xi(s, o, i, _), o.child)
  20024. : ((o.updateQueue = s.updateQueue),
  20025. (o.flags &= -2053),
  20026. (s.lanes &= ~_),
  20027. Zi(s, o, _))
  20028. );
  20029. }
  20030. function hj(s, o, i, u, _) {
  20031. if (Zf(i)) {
  20032. var w = !0;
  20033. cg(o);
  20034. } else w = !1;
  20035. if ((ch(o, _), null === o.stateNode)) ij(s, o), Gi(o, i, u), Ii(o, i, u, _), (u = !0);
  20036. else if (null === s) {
  20037. var x = o.stateNode,
  20038. C = o.memoizedProps;
  20039. x.props = C;
  20040. var j = x.context,
  20041. L = i.contextType;
  20042. 'object' == typeof L && null !== L
  20043. ? (L = eh(L))
  20044. : (L = Yf(o, (L = Zf(i) ? xn : wn.current)));
  20045. var B = i.getDerivedStateFromProps,
  20046. $ = 'function' == typeof B || 'function' == typeof x.getSnapshotBeforeUpdate;
  20047. $ ||
  20048. ('function' != typeof x.UNSAFE_componentWillReceiveProps &&
  20049. 'function' != typeof x.componentWillReceiveProps) ||
  20050. ((C !== u || j !== L) && Hi(o, x, u, L)),
  20051. (Gn = !1);
  20052. var V = o.memoizedState;
  20053. (x.state = V),
  20054. qh(o, u, x, _),
  20055. (j = o.memoizedState),
  20056. C !== u || V !== j || Sn.current || Gn
  20057. ? ('function' == typeof B && (Di(o, i, B, u), (j = o.memoizedState)),
  20058. (C = Gn || Fi(o, i, C, u, V, j, L))
  20059. ? ($ ||
  20060. ('function' != typeof x.UNSAFE_componentWillMount &&
  20061. 'function' != typeof x.componentWillMount) ||
  20062. ('function' == typeof x.componentWillMount && x.componentWillMount(),
  20063. 'function' == typeof x.UNSAFE_componentWillMount &&
  20064. x.UNSAFE_componentWillMount()),
  20065. 'function' == typeof x.componentDidMount && (o.flags |= 4194308))
  20066. : ('function' == typeof x.componentDidMount && (o.flags |= 4194308),
  20067. (o.memoizedProps = u),
  20068. (o.memoizedState = j)),
  20069. (x.props = u),
  20070. (x.state = j),
  20071. (x.context = L),
  20072. (u = C))
  20073. : ('function' == typeof x.componentDidMount && (o.flags |= 4194308), (u = !1));
  20074. } else {
  20075. (x = o.stateNode),
  20076. lh(s, o),
  20077. (C = o.memoizedProps),
  20078. (L = o.type === o.elementType ? C : Ci(o.type, C)),
  20079. (x.props = L),
  20080. ($ = o.pendingProps),
  20081. (V = x.context),
  20082. 'object' == typeof (j = i.contextType) && null !== j
  20083. ? (j = eh(j))
  20084. : (j = Yf(o, (j = Zf(i) ? xn : wn.current)));
  20085. var U = i.getDerivedStateFromProps;
  20086. (B = 'function' == typeof U || 'function' == typeof x.getSnapshotBeforeUpdate) ||
  20087. ('function' != typeof x.UNSAFE_componentWillReceiveProps &&
  20088. 'function' != typeof x.componentWillReceiveProps) ||
  20089. ((C !== $ || V !== j) && Hi(o, x, u, j)),
  20090. (Gn = !1),
  20091. (V = o.memoizedState),
  20092. (x.state = V),
  20093. qh(o, u, x, _);
  20094. var z = o.memoizedState;
  20095. C !== $ || V !== z || Sn.current || Gn
  20096. ? ('function' == typeof U && (Di(o, i, U, u), (z = o.memoizedState)),
  20097. (L = Gn || Fi(o, i, L, u, V, z, j) || !1)
  20098. ? (B ||
  20099. ('function' != typeof x.UNSAFE_componentWillUpdate &&
  20100. 'function' != typeof x.componentWillUpdate) ||
  20101. ('function' == typeof x.componentWillUpdate &&
  20102. x.componentWillUpdate(u, z, j),
  20103. 'function' == typeof x.UNSAFE_componentWillUpdate &&
  20104. x.UNSAFE_componentWillUpdate(u, z, j)),
  20105. 'function' == typeof x.componentDidUpdate && (o.flags |= 4),
  20106. 'function' == typeof x.getSnapshotBeforeUpdate && (o.flags |= 1024))
  20107. : ('function' != typeof x.componentDidUpdate ||
  20108. (C === s.memoizedProps && V === s.memoizedState) ||
  20109. (o.flags |= 4),
  20110. 'function' != typeof x.getSnapshotBeforeUpdate ||
  20111. (C === s.memoizedProps && V === s.memoizedState) ||
  20112. (o.flags |= 1024),
  20113. (o.memoizedProps = u),
  20114. (o.memoizedState = z)),
  20115. (x.props = u),
  20116. (x.state = z),
  20117. (x.context = j),
  20118. (u = L))
  20119. : ('function' != typeof x.componentDidUpdate ||
  20120. (C === s.memoizedProps && V === s.memoizedState) ||
  20121. (o.flags |= 4),
  20122. 'function' != typeof x.getSnapshotBeforeUpdate ||
  20123. (C === s.memoizedProps && V === s.memoizedState) ||
  20124. (o.flags |= 1024),
  20125. (u = !1));
  20126. }
  20127. return jj(s, o, i, u, w, _);
  20128. }
  20129. function jj(s, o, i, u, _, w) {
  20130. gj(s, o);
  20131. var x = !!(128 & o.flags);
  20132. if (!u && !x) return _ && dg(o, i, !1), Zi(s, o, w);
  20133. (u = o.stateNode), (bs.current = o);
  20134. var C = x && 'function' != typeof i.getDerivedStateFromError ? null : u.render();
  20135. return (
  20136. (o.flags |= 1),
  20137. null !== s && x
  20138. ? ((o.child = Vn(o, s.child, null, w)), (o.child = Vn(o, null, C, w)))
  20139. : Xi(s, o, C, w),
  20140. (o.memoizedState = u.state),
  20141. _ && dg(o, i, !0),
  20142. o.child
  20143. );
  20144. }
  20145. function kj(s) {
  20146. var o = s.stateNode;
  20147. o.pendingContext
  20148. ? ag(0, o.pendingContext, o.pendingContext !== o.context)
  20149. : o.context && ag(0, o.context, !1),
  20150. yh(s, o.containerInfo);
  20151. }
  20152. function lj(s, o, i, u, _) {
  20153. return Ig(), Jg(_), (o.flags |= 256), Xi(s, o, i, u), o.child;
  20154. }
  20155. var Es,
  20156. ws,
  20157. Ss,
  20158. xs,
  20159. ks = { dehydrated: null, treeContext: null, retryLane: 0 };
  20160. function nj(s) {
  20161. return { baseLanes: s, cachePool: null, transitions: null };
  20162. }
  20163. function oj(s, o, i) {
  20164. var u,
  20165. _ = o.pendingProps,
  20166. w = es.current,
  20167. x = !1,
  20168. C = !!(128 & o.flags);
  20169. if (
  20170. ((u = C) || (u = (null === s || null !== s.memoizedState) && !!(2 & w)),
  20171. u
  20172. ? ((x = !0), (o.flags &= -129))
  20173. : (null !== s && null === s.memoizedState) || (w |= 1),
  20174. G(es, 1 & w),
  20175. null === s)
  20176. )
  20177. return (
  20178. Eg(o),
  20179. null !== (s = o.memoizedState) && null !== (s = s.dehydrated)
  20180. ? (1 & o.mode
  20181. ? '$!' === s.data
  20182. ? (o.lanes = 8)
  20183. : (o.lanes = 1073741824)
  20184. : (o.lanes = 1),
  20185. null)
  20186. : ((C = _.children),
  20187. (s = _.fallback),
  20188. x
  20189. ? ((_ = o.mode),
  20190. (x = o.child),
  20191. (C = { mode: 'hidden', children: C }),
  20192. 1 & _ || null === x
  20193. ? (x = pj(C, _, 0, null))
  20194. : ((x.childLanes = 0), (x.pendingProps = C)),
  20195. (s = Tg(s, _, i, null)),
  20196. (x.return = o),
  20197. (s.return = o),
  20198. (x.sibling = s),
  20199. (o.child = x),
  20200. (o.child.memoizedState = nj(i)),
  20201. (o.memoizedState = ks),
  20202. s)
  20203. : qj(o, C))
  20204. );
  20205. if (null !== (w = s.memoizedState) && null !== (u = w.dehydrated))
  20206. return (function rj(s, o, i, u, _, w, x) {
  20207. if (i)
  20208. return 256 & o.flags
  20209. ? ((o.flags &= -257), sj(s, o, x, (u = Ki(Error(p(422))))))
  20210. : null !== o.memoizedState
  20211. ? ((o.child = s.child), (o.flags |= 128), null)
  20212. : ((w = u.fallback),
  20213. (_ = o.mode),
  20214. (u = pj({ mode: 'visible', children: u.children }, _, 0, null)),
  20215. ((w = Tg(w, _, x, null)).flags |= 2),
  20216. (u.return = o),
  20217. (w.return = o),
  20218. (u.sibling = w),
  20219. (o.child = u),
  20220. 1 & o.mode && Vn(o, s.child, null, x),
  20221. (o.child.memoizedState = nj(x)),
  20222. (o.memoizedState = ks),
  20223. w);
  20224. if (!(1 & o.mode)) return sj(s, o, x, null);
  20225. if ('$!' === _.data) {
  20226. if ((u = _.nextSibling && _.nextSibling.dataset)) var C = u.dgst;
  20227. return (u = C), sj(s, o, x, (u = Ki((w = Error(p(419))), u, void 0)));
  20228. }
  20229. if (((C = !!(x & s.childLanes)), _s || C)) {
  20230. if (null !== (u = Fs)) {
  20231. switch (x & -x) {
  20232. case 4:
  20233. _ = 2;
  20234. break;
  20235. case 16:
  20236. _ = 8;
  20237. break;
  20238. case 64:
  20239. case 128:
  20240. case 256:
  20241. case 512:
  20242. case 1024:
  20243. case 2048:
  20244. case 4096:
  20245. case 8192:
  20246. case 16384:
  20247. case 32768:
  20248. case 65536:
  20249. case 131072:
  20250. case 262144:
  20251. case 524288:
  20252. case 1048576:
  20253. case 2097152:
  20254. case 4194304:
  20255. case 8388608:
  20256. case 16777216:
  20257. case 33554432:
  20258. case 67108864:
  20259. _ = 32;
  20260. break;
  20261. case 536870912:
  20262. _ = 268435456;
  20263. break;
  20264. default:
  20265. _ = 0;
  20266. }
  20267. 0 !== (_ = _ & (u.suspendedLanes | x) ? 0 : _) &&
  20268. _ !== w.retryLane &&
  20269. ((w.retryLane = _), ih(s, _), gi(u, s, _, -1));
  20270. }
  20271. return tj(), sj(s, o, x, (u = Ki(Error(p(421)))));
  20272. }
  20273. return '$?' === _.data
  20274. ? ((o.flags |= 128),
  20275. (o.child = s.child),
  20276. (o = uj.bind(null, s)),
  20277. (_._reactRetry = o),
  20278. null)
  20279. : ((s = w.treeContext),
  20280. (Bn = Lf(_.nextSibling)),
  20281. (Ln = o),
  20282. (Fn = !0),
  20283. (qn = null),
  20284. null !== s &&
  20285. ((Mn[Tn++] = Rn),
  20286. (Mn[Tn++] = Dn),
  20287. (Mn[Tn++] = Nn),
  20288. (Rn = s.id),
  20289. (Dn = s.overflow),
  20290. (Nn = o)),
  20291. (o = qj(o, u.children)),
  20292. (o.flags |= 4096),
  20293. o);
  20294. })(s, o, C, _, u, w, i);
  20295. if (x) {
  20296. (x = _.fallback), (C = o.mode), (u = (w = s.child).sibling);
  20297. var j = { mode: 'hidden', children: _.children };
  20298. return (
  20299. 1 & C || o.child === w
  20300. ? ((_ = Pg(w, j)).subtreeFlags = 14680064 & w.subtreeFlags)
  20301. : (((_ = o.child).childLanes = 0), (_.pendingProps = j), (o.deletions = null)),
  20302. null !== u ? (x = Pg(u, x)) : ((x = Tg(x, C, i, null)).flags |= 2),
  20303. (x.return = o),
  20304. (_.return = o),
  20305. (_.sibling = x),
  20306. (o.child = _),
  20307. (_ = x),
  20308. (x = o.child),
  20309. (C =
  20310. null === (C = s.child.memoizedState)
  20311. ? nj(i)
  20312. : { baseLanes: C.baseLanes | i, cachePool: null, transitions: C.transitions }),
  20313. (x.memoizedState = C),
  20314. (x.childLanes = s.childLanes & ~i),
  20315. (o.memoizedState = ks),
  20316. _
  20317. );
  20318. }
  20319. return (
  20320. (s = (x = s.child).sibling),
  20321. (_ = Pg(x, { mode: 'visible', children: _.children })),
  20322. !(1 & o.mode) && (_.lanes = i),
  20323. (_.return = o),
  20324. (_.sibling = null),
  20325. null !== s &&
  20326. (null === (i = o.deletions) ? ((o.deletions = [s]), (o.flags |= 16)) : i.push(s)),
  20327. (o.child = _),
  20328. (o.memoizedState = null),
  20329. _
  20330. );
  20331. }
  20332. function qj(s, o) {
  20333. return (
  20334. ((o = pj({ mode: 'visible', children: o }, s.mode, 0, null)).return = s),
  20335. (s.child = o)
  20336. );
  20337. }
  20338. function sj(s, o, i, u) {
  20339. return (
  20340. null !== u && Jg(u),
  20341. Vn(o, s.child, null, i),
  20342. ((s = qj(o, o.pendingProps.children)).flags |= 2),
  20343. (o.memoizedState = null),
  20344. s
  20345. );
  20346. }
  20347. function vj(s, o, i) {
  20348. s.lanes |= o;
  20349. var u = s.alternate;
  20350. null !== u && (u.lanes |= o), bh(s.return, o, i);
  20351. }
  20352. function wj(s, o, i, u, _) {
  20353. var w = s.memoizedState;
  20354. null === w
  20355. ? (s.memoizedState = {
  20356. isBackwards: o,
  20357. rendering: null,
  20358. renderingStartTime: 0,
  20359. last: u,
  20360. tail: i,
  20361. tailMode: _
  20362. })
  20363. : ((w.isBackwards = o),
  20364. (w.rendering = null),
  20365. (w.renderingStartTime = 0),
  20366. (w.last = u),
  20367. (w.tail = i),
  20368. (w.tailMode = _));
  20369. }
  20370. function xj(s, o, i) {
  20371. var u = o.pendingProps,
  20372. _ = u.revealOrder,
  20373. w = u.tail;
  20374. if ((Xi(s, o, u.children, i), 2 & (u = es.current)))
  20375. (u = (1 & u) | 2), (o.flags |= 128);
  20376. else {
  20377. if (null !== s && 128 & s.flags)
  20378. e: for (s = o.child; null !== s; ) {
  20379. if (13 === s.tag) null !== s.memoizedState && vj(s, i, o);
  20380. else if (19 === s.tag) vj(s, i, o);
  20381. else if (null !== s.child) {
  20382. (s.child.return = s), (s = s.child);
  20383. continue;
  20384. }
  20385. if (s === o) break e;
  20386. for (; null === s.sibling; ) {
  20387. if (null === s.return || s.return === o) break e;
  20388. s = s.return;
  20389. }
  20390. (s.sibling.return = s.return), (s = s.sibling);
  20391. }
  20392. u &= 1;
  20393. }
  20394. if ((G(es, u), 1 & o.mode))
  20395. switch (_) {
  20396. case 'forwards':
  20397. for (i = o.child, _ = null; null !== i; )
  20398. null !== (s = i.alternate) && null === Ch(s) && (_ = i), (i = i.sibling);
  20399. null === (i = _)
  20400. ? ((_ = o.child), (o.child = null))
  20401. : ((_ = i.sibling), (i.sibling = null)),
  20402. wj(o, !1, _, i, w);
  20403. break;
  20404. case 'backwards':
  20405. for (i = null, _ = o.child, o.child = null; null !== _; ) {
  20406. if (null !== (s = _.alternate) && null === Ch(s)) {
  20407. o.child = _;
  20408. break;
  20409. }
  20410. (s = _.sibling), (_.sibling = i), (i = _), (_ = s);
  20411. }
  20412. wj(o, !0, i, null, w);
  20413. break;
  20414. case 'together':
  20415. wj(o, !1, null, null, void 0);
  20416. break;
  20417. default:
  20418. o.memoizedState = null;
  20419. }
  20420. else o.memoizedState = null;
  20421. return o.child;
  20422. }
  20423. function ij(s, o) {
  20424. !(1 & o.mode) &&
  20425. null !== s &&
  20426. ((s.alternate = null), (o.alternate = null), (o.flags |= 2));
  20427. }
  20428. function Zi(s, o, i) {
  20429. if (
  20430. (null !== s && (o.dependencies = s.dependencies),
  20431. (Ks |= o.lanes),
  20432. !(i & o.childLanes))
  20433. )
  20434. return null;
  20435. if (null !== s && o.child !== s.child) throw Error(p(153));
  20436. if (null !== o.child) {
  20437. for (
  20438. i = Pg((s = o.child), s.pendingProps), o.child = i, i.return = o;
  20439. null !== s.sibling;
  20440. )
  20441. (s = s.sibling), ((i = i.sibling = Pg(s, s.pendingProps)).return = o);
  20442. i.sibling = null;
  20443. }
  20444. return o.child;
  20445. }
  20446. function Dj(s, o) {
  20447. if (!Fn)
  20448. switch (s.tailMode) {
  20449. case 'hidden':
  20450. o = s.tail;
  20451. for (var i = null; null !== o; ) null !== o.alternate && (i = o), (o = o.sibling);
  20452. null === i ? (s.tail = null) : (i.sibling = null);
  20453. break;
  20454. case 'collapsed':
  20455. i = s.tail;
  20456. for (var u = null; null !== i; ) null !== i.alternate && (u = i), (i = i.sibling);
  20457. null === u
  20458. ? o || null === s.tail
  20459. ? (s.tail = null)
  20460. : (s.tail.sibling = null)
  20461. : (u.sibling = null);
  20462. }
  20463. }
  20464. function S(s) {
  20465. var o = null !== s.alternate && s.alternate.child === s.child,
  20466. i = 0,
  20467. u = 0;
  20468. if (o)
  20469. for (var _ = s.child; null !== _; )
  20470. (i |= _.lanes | _.childLanes),
  20471. (u |= 14680064 & _.subtreeFlags),
  20472. (u |= 14680064 & _.flags),
  20473. (_.return = s),
  20474. (_ = _.sibling);
  20475. else
  20476. for (_ = s.child; null !== _; )
  20477. (i |= _.lanes | _.childLanes),
  20478. (u |= _.subtreeFlags),
  20479. (u |= _.flags),
  20480. (_.return = s),
  20481. (_ = _.sibling);
  20482. return (s.subtreeFlags |= u), (s.childLanes = i), o;
  20483. }
  20484. function Ej(s, o, i) {
  20485. var u = o.pendingProps;
  20486. switch ((wg(o), o.tag)) {
  20487. case 2:
  20488. case 16:
  20489. case 15:
  20490. case 0:
  20491. case 11:
  20492. case 7:
  20493. case 8:
  20494. case 12:
  20495. case 9:
  20496. case 14:
  20497. return S(o), null;
  20498. case 1:
  20499. case 17:
  20500. return Zf(o.type) && $f(), S(o), null;
  20501. case 3:
  20502. return (
  20503. (u = o.stateNode),
  20504. zh(),
  20505. E(Sn),
  20506. E(wn),
  20507. Eh(),
  20508. u.pendingContext && ((u.context = u.pendingContext), (u.pendingContext = null)),
  20509. (null !== s && null !== s.child) ||
  20510. (Gg(o)
  20511. ? (o.flags |= 4)
  20512. : null === s ||
  20513. (s.memoizedState.isDehydrated && !(256 & o.flags)) ||
  20514. ((o.flags |= 1024), null !== qn && (Fj(qn), (qn = null)))),
  20515. ws(s, o),
  20516. S(o),
  20517. null
  20518. );
  20519. case 5:
  20520. Bh(o);
  20521. var _ = xh(Qn.current);
  20522. if (((i = o.type), null !== s && null != o.stateNode))
  20523. Ss(s, o, i, u, _), s.ref !== o.ref && ((o.flags |= 512), (o.flags |= 2097152));
  20524. else {
  20525. if (!u) {
  20526. if (null === o.stateNode) throw Error(p(166));
  20527. return S(o), null;
  20528. }
  20529. if (((s = xh(Xn.current)), Gg(o))) {
  20530. (u = o.stateNode), (i = o.type);
  20531. var w = o.memoizedProps;
  20532. switch (((u[dn] = o), (u[fn] = w), (s = !!(1 & o.mode)), i)) {
  20533. case 'dialog':
  20534. D('cancel', u), D('close', u);
  20535. break;
  20536. case 'iframe':
  20537. case 'object':
  20538. case 'embed':
  20539. D('load', u);
  20540. break;
  20541. case 'video':
  20542. case 'audio':
  20543. for (_ = 0; _ < en.length; _++) D(en[_], u);
  20544. break;
  20545. case 'source':
  20546. D('error', u);
  20547. break;
  20548. case 'img':
  20549. case 'image':
  20550. case 'link':
  20551. D('error', u), D('load', u);
  20552. break;
  20553. case 'details':
  20554. D('toggle', u);
  20555. break;
  20556. case 'input':
  20557. Za(u, w), D('invalid', u);
  20558. break;
  20559. case 'select':
  20560. (u._wrapperState = { wasMultiple: !!w.multiple }), D('invalid', u);
  20561. break;
  20562. case 'textarea':
  20563. hb(u, w), D('invalid', u);
  20564. }
  20565. for (var C in (ub(i, w), (_ = null), w))
  20566. if (w.hasOwnProperty(C)) {
  20567. var j = w[C];
  20568. 'children' === C
  20569. ? 'string' == typeof j
  20570. ? u.textContent !== j &&
  20571. (!0 !== w.suppressHydrationWarning && Af(u.textContent, j, s),
  20572. (_ = ['children', j]))
  20573. : 'number' == typeof j &&
  20574. u.textContent !== '' + j &&
  20575. (!0 !== w.suppressHydrationWarning && Af(u.textContent, j, s),
  20576. (_ = ['children', '' + j]))
  20577. : x.hasOwnProperty(C) && null != j && 'onScroll' === C && D('scroll', u);
  20578. }
  20579. switch (i) {
  20580. case 'input':
  20581. Va(u), db(u, w, !0);
  20582. break;
  20583. case 'textarea':
  20584. Va(u), jb(u);
  20585. break;
  20586. case 'select':
  20587. case 'option':
  20588. break;
  20589. default:
  20590. 'function' == typeof w.onClick && (u.onclick = Bf);
  20591. }
  20592. (u = _), (o.updateQueue = u), null !== u && (o.flags |= 4);
  20593. } else {
  20594. (C = 9 === _.nodeType ? _ : _.ownerDocument),
  20595. 'http://www.w3.org/1999/xhtml' === s && (s = kb(i)),
  20596. 'http://www.w3.org/1999/xhtml' === s
  20597. ? 'script' === i
  20598. ? (((s = C.createElement('div')).innerHTML = '<script></script>'),
  20599. (s = s.removeChild(s.firstChild)))
  20600. : 'string' == typeof u.is
  20601. ? (s = C.createElement(i, { is: u.is }))
  20602. : ((s = C.createElement(i)),
  20603. 'select' === i &&
  20604. ((C = s),
  20605. u.multiple ? (C.multiple = !0) : u.size && (C.size = u.size)))
  20606. : (s = C.createElementNS(s, i)),
  20607. (s[dn] = o),
  20608. (s[fn] = u),
  20609. Es(s, o, !1, !1),
  20610. (o.stateNode = s);
  20611. e: {
  20612. switch (((C = vb(i, u)), i)) {
  20613. case 'dialog':
  20614. D('cancel', s), D('close', s), (_ = u);
  20615. break;
  20616. case 'iframe':
  20617. case 'object':
  20618. case 'embed':
  20619. D('load', s), (_ = u);
  20620. break;
  20621. case 'video':
  20622. case 'audio':
  20623. for (_ = 0; _ < en.length; _++) D(en[_], s);
  20624. _ = u;
  20625. break;
  20626. case 'source':
  20627. D('error', s), (_ = u);
  20628. break;
  20629. case 'img':
  20630. case 'image':
  20631. case 'link':
  20632. D('error', s), D('load', s), (_ = u);
  20633. break;
  20634. case 'details':
  20635. D('toggle', s), (_ = u);
  20636. break;
  20637. case 'input':
  20638. Za(s, u), (_ = Ya(s, u)), D('invalid', s);
  20639. break;
  20640. case 'option':
  20641. default:
  20642. _ = u;
  20643. break;
  20644. case 'select':
  20645. (s._wrapperState = { wasMultiple: !!u.multiple }),
  20646. (_ = xe({}, u, { value: void 0 })),
  20647. D('invalid', s);
  20648. break;
  20649. case 'textarea':
  20650. hb(s, u), (_ = gb(s, u)), D('invalid', s);
  20651. }
  20652. for (w in (ub(i, _), (j = _)))
  20653. if (j.hasOwnProperty(w)) {
  20654. var L = j[w];
  20655. 'style' === w
  20656. ? sb(s, L)
  20657. : 'dangerouslySetInnerHTML' === w
  20658. ? null != (L = L ? L.__html : void 0) && $e(s, L)
  20659. : 'children' === w
  20660. ? 'string' == typeof L
  20661. ? ('textarea' !== i || '' !== L) && ob(s, L)
  20662. : 'number' == typeof L && ob(s, '' + L)
  20663. : 'suppressContentEditableWarning' !== w &&
  20664. 'suppressHydrationWarning' !== w &&
  20665. 'autoFocus' !== w &&
  20666. (x.hasOwnProperty(w)
  20667. ? null != L && 'onScroll' === w && D('scroll', s)
  20668. : null != L && ta(s, w, L, C));
  20669. }
  20670. switch (i) {
  20671. case 'input':
  20672. Va(s), db(s, u, !1);
  20673. break;
  20674. case 'textarea':
  20675. Va(s), jb(s);
  20676. break;
  20677. case 'option':
  20678. null != u.value && s.setAttribute('value', '' + Sa(u.value));
  20679. break;
  20680. case 'select':
  20681. (s.multiple = !!u.multiple),
  20682. null != (w = u.value)
  20683. ? fb(s, !!u.multiple, w, !1)
  20684. : null != u.defaultValue && fb(s, !!u.multiple, u.defaultValue, !0);
  20685. break;
  20686. default:
  20687. 'function' == typeof _.onClick && (s.onclick = Bf);
  20688. }
  20689. switch (i) {
  20690. case 'button':
  20691. case 'input':
  20692. case 'select':
  20693. case 'textarea':
  20694. u = !!u.autoFocus;
  20695. break e;
  20696. case 'img':
  20697. u = !0;
  20698. break e;
  20699. default:
  20700. u = !1;
  20701. }
  20702. }
  20703. u && (o.flags |= 4);
  20704. }
  20705. null !== o.ref && ((o.flags |= 512), (o.flags |= 2097152));
  20706. }
  20707. return S(o), null;
  20708. case 6:
  20709. if (s && null != o.stateNode) xs(s, o, s.memoizedProps, u);
  20710. else {
  20711. if ('string' != typeof u && null === o.stateNode) throw Error(p(166));
  20712. if (((i = xh(Qn.current)), xh(Xn.current), Gg(o))) {
  20713. if (
  20714. ((u = o.stateNode),
  20715. (i = o.memoizedProps),
  20716. (u[dn] = o),
  20717. (w = u.nodeValue !== i) && null !== (s = Ln))
  20718. )
  20719. switch (s.tag) {
  20720. case 3:
  20721. Af(u.nodeValue, i, !!(1 & s.mode));
  20722. break;
  20723. case 5:
  20724. !0 !== s.memoizedProps.suppressHydrationWarning &&
  20725. Af(u.nodeValue, i, !!(1 & s.mode));
  20726. }
  20727. w && (o.flags |= 4);
  20728. } else
  20729. ((u = (9 === i.nodeType ? i : i.ownerDocument).createTextNode(u))[dn] = o),
  20730. (o.stateNode = u);
  20731. }
  20732. return S(o), null;
  20733. case 13:
  20734. if (
  20735. (E(es),
  20736. (u = o.memoizedState),
  20737. null === s || (null !== s.memoizedState && null !== s.memoizedState.dehydrated))
  20738. ) {
  20739. if (Fn && null !== Bn && 1 & o.mode && !(128 & o.flags))
  20740. Hg(), Ig(), (o.flags |= 98560), (w = !1);
  20741. else if (((w = Gg(o)), null !== u && null !== u.dehydrated)) {
  20742. if (null === s) {
  20743. if (!w) throw Error(p(318));
  20744. if (!(w = null !== (w = o.memoizedState) ? w.dehydrated : null))
  20745. throw Error(p(317));
  20746. w[dn] = o;
  20747. } else Ig(), !(128 & o.flags) && (o.memoizedState = null), (o.flags |= 4);
  20748. S(o), (w = !1);
  20749. } else null !== qn && (Fj(qn), (qn = null)), (w = !0);
  20750. if (!w) return 65536 & o.flags ? o : null;
  20751. }
  20752. return 128 & o.flags
  20753. ? ((o.lanes = i), o)
  20754. : ((u = null !== u) !== (null !== s && null !== s.memoizedState) &&
  20755. u &&
  20756. ((o.child.flags |= 8192),
  20757. 1 & o.mode && (null === s || 1 & es.current ? 0 === zs && (zs = 3) : tj())),
  20758. null !== o.updateQueue && (o.flags |= 4),
  20759. S(o),
  20760. null);
  20761. case 4:
  20762. return zh(), ws(s, o), null === s && sf(o.stateNode.containerInfo), S(o), null;
  20763. case 10:
  20764. return ah(o.type._context), S(o), null;
  20765. case 19:
  20766. if ((E(es), null === (w = o.memoizedState))) return S(o), null;
  20767. if (((u = !!(128 & o.flags)), null === (C = w.rendering)))
  20768. if (u) Dj(w, !1);
  20769. else {
  20770. if (0 !== zs || (null !== s && 128 & s.flags))
  20771. for (s = o.child; null !== s; ) {
  20772. if (null !== (C = Ch(s))) {
  20773. for (
  20774. o.flags |= 128,
  20775. Dj(w, !1),
  20776. null !== (u = C.updateQueue) && ((o.updateQueue = u), (o.flags |= 4)),
  20777. o.subtreeFlags = 0,
  20778. u = i,
  20779. i = o.child;
  20780. null !== i;
  20781. )
  20782. (s = u),
  20783. ((w = i).flags &= 14680066),
  20784. null === (C = w.alternate)
  20785. ? ((w.childLanes = 0),
  20786. (w.lanes = s),
  20787. (w.child = null),
  20788. (w.subtreeFlags = 0),
  20789. (w.memoizedProps = null),
  20790. (w.memoizedState = null),
  20791. (w.updateQueue = null),
  20792. (w.dependencies = null),
  20793. (w.stateNode = null))
  20794. : ((w.childLanes = C.childLanes),
  20795. (w.lanes = C.lanes),
  20796. (w.child = C.child),
  20797. (w.subtreeFlags = 0),
  20798. (w.deletions = null),
  20799. (w.memoizedProps = C.memoizedProps),
  20800. (w.memoizedState = C.memoizedState),
  20801. (w.updateQueue = C.updateQueue),
  20802. (w.type = C.type),
  20803. (s = C.dependencies),
  20804. (w.dependencies =
  20805. null === s
  20806. ? null
  20807. : { lanes: s.lanes, firstContext: s.firstContext })),
  20808. (i = i.sibling);
  20809. return G(es, (1 & es.current) | 2), o.child;
  20810. }
  20811. s = s.sibling;
  20812. }
  20813. null !== w.tail &&
  20814. dt() > Zs &&
  20815. ((o.flags |= 128), (u = !0), Dj(w, !1), (o.lanes = 4194304));
  20816. }
  20817. else {
  20818. if (!u)
  20819. if (null !== (s = Ch(C))) {
  20820. if (
  20821. ((o.flags |= 128),
  20822. (u = !0),
  20823. null !== (i = s.updateQueue) && ((o.updateQueue = i), (o.flags |= 4)),
  20824. Dj(w, !0),
  20825. null === w.tail && 'hidden' === w.tailMode && !C.alternate && !Fn)
  20826. )
  20827. return S(o), null;
  20828. } else
  20829. 2 * dt() - w.renderingStartTime > Zs &&
  20830. 1073741824 !== i &&
  20831. ((o.flags |= 128), (u = !0), Dj(w, !1), (o.lanes = 4194304));
  20832. w.isBackwards
  20833. ? ((C.sibling = o.child), (o.child = C))
  20834. : (null !== (i = w.last) ? (i.sibling = C) : (o.child = C), (w.last = C));
  20835. }
  20836. return null !== w.tail
  20837. ? ((o = w.tail),
  20838. (w.rendering = o),
  20839. (w.tail = o.sibling),
  20840. (w.renderingStartTime = dt()),
  20841. (o.sibling = null),
  20842. (i = es.current),
  20843. G(es, u ? (1 & i) | 2 : 1 & i),
  20844. o)
  20845. : (S(o), null);
  20846. case 22:
  20847. case 23:
  20848. return (
  20849. Hj(),
  20850. (u = null !== o.memoizedState),
  20851. null !== s && (null !== s.memoizedState) !== u && (o.flags |= 8192),
  20852. u && 1 & o.mode
  20853. ? !!(1073741824 & Vs) && (S(o), 6 & o.subtreeFlags && (o.flags |= 8192))
  20854. : S(o),
  20855. null
  20856. );
  20857. case 24:
  20858. case 25:
  20859. return null;
  20860. }
  20861. throw Error(p(156, o.tag));
  20862. }
  20863. function Ij(s, o) {
  20864. switch ((wg(o), o.tag)) {
  20865. case 1:
  20866. return (
  20867. Zf(o.type) && $f(),
  20868. 65536 & (s = o.flags) ? ((o.flags = (-65537 & s) | 128), o) : null
  20869. );
  20870. case 3:
  20871. return (
  20872. zh(),
  20873. E(Sn),
  20874. E(wn),
  20875. Eh(),
  20876. 65536 & (s = o.flags) && !(128 & s) ? ((o.flags = (-65537 & s) | 128), o) : null
  20877. );
  20878. case 5:
  20879. return Bh(o), null;
  20880. case 13:
  20881. if ((E(es), null !== (s = o.memoizedState) && null !== s.dehydrated)) {
  20882. if (null === o.alternate) throw Error(p(340));
  20883. Ig();
  20884. }
  20885. return 65536 & (s = o.flags) ? ((o.flags = (-65537 & s) | 128), o) : null;
  20886. case 19:
  20887. return E(es), null;
  20888. case 4:
  20889. return zh(), null;
  20890. case 10:
  20891. return ah(o.type._context), null;
  20892. case 22:
  20893. case 23:
  20894. return Hj(), null;
  20895. default:
  20896. return null;
  20897. }
  20898. }
  20899. (Es = function (s, o) {
  20900. for (var i = o.child; null !== i; ) {
  20901. if (5 === i.tag || 6 === i.tag) s.appendChild(i.stateNode);
  20902. else if (4 !== i.tag && null !== i.child) {
  20903. (i.child.return = i), (i = i.child);
  20904. continue;
  20905. }
  20906. if (i === o) break;
  20907. for (; null === i.sibling; ) {
  20908. if (null === i.return || i.return === o) return;
  20909. i = i.return;
  20910. }
  20911. (i.sibling.return = i.return), (i = i.sibling);
  20912. }
  20913. }),
  20914. (ws = function () {}),
  20915. (Ss = function (s, o, i, u) {
  20916. var _ = s.memoizedProps;
  20917. if (_ !== u) {
  20918. (s = o.stateNode), xh(Xn.current);
  20919. var w,
  20920. C = null;
  20921. switch (i) {
  20922. case 'input':
  20923. (_ = Ya(s, _)), (u = Ya(s, u)), (C = []);
  20924. break;
  20925. case 'select':
  20926. (_ = xe({}, _, { value: void 0 })),
  20927. (u = xe({}, u, { value: void 0 })),
  20928. (C = []);
  20929. break;
  20930. case 'textarea':
  20931. (_ = gb(s, _)), (u = gb(s, u)), (C = []);
  20932. break;
  20933. default:
  20934. 'function' != typeof _.onClick &&
  20935. 'function' == typeof u.onClick &&
  20936. (s.onclick = Bf);
  20937. }
  20938. for (B in (ub(i, u), (i = null), _))
  20939. if (!u.hasOwnProperty(B) && _.hasOwnProperty(B) && null != _[B])
  20940. if ('style' === B) {
  20941. var j = _[B];
  20942. for (w in j) j.hasOwnProperty(w) && (i || (i = {}), (i[w] = ''));
  20943. } else
  20944. 'dangerouslySetInnerHTML' !== B &&
  20945. 'children' !== B &&
  20946. 'suppressContentEditableWarning' !== B &&
  20947. 'suppressHydrationWarning' !== B &&
  20948. 'autoFocus' !== B &&
  20949. (x.hasOwnProperty(B) ? C || (C = []) : (C = C || []).push(B, null));
  20950. for (B in u) {
  20951. var L = u[B];
  20952. if (
  20953. ((j = null != _ ? _[B] : void 0),
  20954. u.hasOwnProperty(B) && L !== j && (null != L || null != j))
  20955. )
  20956. if ('style' === B)
  20957. if (j) {
  20958. for (w in j)
  20959. !j.hasOwnProperty(w) ||
  20960. (L && L.hasOwnProperty(w)) ||
  20961. (i || (i = {}), (i[w] = ''));
  20962. for (w in L)
  20963. L.hasOwnProperty(w) && j[w] !== L[w] && (i || (i = {}), (i[w] = L[w]));
  20964. } else i || (C || (C = []), C.push(B, i)), (i = L);
  20965. else
  20966. 'dangerouslySetInnerHTML' === B
  20967. ? ((L = L ? L.__html : void 0),
  20968. (j = j ? j.__html : void 0),
  20969. null != L && j !== L && (C = C || []).push(B, L))
  20970. : 'children' === B
  20971. ? ('string' != typeof L && 'number' != typeof L) ||
  20972. (C = C || []).push(B, '' + L)
  20973. : 'suppressContentEditableWarning' !== B &&
  20974. 'suppressHydrationWarning' !== B &&
  20975. (x.hasOwnProperty(B)
  20976. ? (null != L && 'onScroll' === B && D('scroll', s),
  20977. C || j === L || (C = []))
  20978. : (C = C || []).push(B, L));
  20979. }
  20980. i && (C = C || []).push('style', i);
  20981. var B = C;
  20982. (o.updateQueue = B) && (o.flags |= 4);
  20983. }
  20984. }),
  20985. (xs = function (s, o, i, u) {
  20986. i !== u && (o.flags |= 4);
  20987. });
  20988. var Cs = !1,
  20989. Os = !1,
  20990. As = 'function' == typeof WeakSet ? WeakSet : Set,
  20991. js = null;
  20992. function Lj(s, o) {
  20993. var i = s.ref;
  20994. if (null !== i)
  20995. if ('function' == typeof i)
  20996. try {
  20997. i(null);
  20998. } catch (i) {
  20999. W(s, o, i);
  21000. }
  21001. else i.current = null;
  21002. }
  21003. function Mj(s, o, i) {
  21004. try {
  21005. i();
  21006. } catch (i) {
  21007. W(s, o, i);
  21008. }
  21009. }
  21010. var Is = !1;
  21011. function Pj(s, o, i) {
  21012. var u = o.updateQueue;
  21013. if (null !== (u = null !== u ? u.lastEffect : null)) {
  21014. var _ = (u = u.next);
  21015. do {
  21016. if ((_.tag & s) === s) {
  21017. var w = _.destroy;
  21018. (_.destroy = void 0), void 0 !== w && Mj(o, i, w);
  21019. }
  21020. _ = _.next;
  21021. } while (_ !== u);
  21022. }
  21023. }
  21024. function Qj(s, o) {
  21025. if (null !== (o = null !== (o = o.updateQueue) ? o.lastEffect : null)) {
  21026. var i = (o = o.next);
  21027. do {
  21028. if ((i.tag & s) === s) {
  21029. var u = i.create;
  21030. i.destroy = u();
  21031. }
  21032. i = i.next;
  21033. } while (i !== o);
  21034. }
  21035. }
  21036. function Rj(s) {
  21037. var o = s.ref;
  21038. if (null !== o) {
  21039. var i = s.stateNode;
  21040. s.tag, (s = i), 'function' == typeof o ? o(s) : (o.current = s);
  21041. }
  21042. }
  21043. function Sj(s) {
  21044. var o = s.alternate;
  21045. null !== o && ((s.alternate = null), Sj(o)),
  21046. (s.child = null),
  21047. (s.deletions = null),
  21048. (s.sibling = null),
  21049. 5 === s.tag &&
  21050. null !== (o = s.stateNode) &&
  21051. (delete o[dn], delete o[fn], delete o[gn], delete o[yn], delete o[vn]),
  21052. (s.stateNode = null),
  21053. (s.return = null),
  21054. (s.dependencies = null),
  21055. (s.memoizedProps = null),
  21056. (s.memoizedState = null),
  21057. (s.pendingProps = null),
  21058. (s.stateNode = null),
  21059. (s.updateQueue = null);
  21060. }
  21061. function Tj(s) {
  21062. return 5 === s.tag || 3 === s.tag || 4 === s.tag;
  21063. }
  21064. function Uj(s) {
  21065. e: for (;;) {
  21066. for (; null === s.sibling; ) {
  21067. if (null === s.return || Tj(s.return)) return null;
  21068. s = s.return;
  21069. }
  21070. for (
  21071. s.sibling.return = s.return, s = s.sibling;
  21072. 5 !== s.tag && 6 !== s.tag && 18 !== s.tag;
  21073. ) {
  21074. if (2 & s.flags) continue e;
  21075. if (null === s.child || 4 === s.tag) continue e;
  21076. (s.child.return = s), (s = s.child);
  21077. }
  21078. if (!(2 & s.flags)) return s.stateNode;
  21079. }
  21080. }
  21081. function Vj(s, o, i) {
  21082. var u = s.tag;
  21083. if (5 === u || 6 === u)
  21084. (s = s.stateNode),
  21085. o
  21086. ? 8 === i.nodeType
  21087. ? i.parentNode.insertBefore(s, o)
  21088. : i.insertBefore(s, o)
  21089. : (8 === i.nodeType
  21090. ? (o = i.parentNode).insertBefore(s, i)
  21091. : (o = i).appendChild(s),
  21092. null != (i = i._reactRootContainer) || null !== o.onclick || (o.onclick = Bf));
  21093. else if (4 !== u && null !== (s = s.child))
  21094. for (Vj(s, o, i), s = s.sibling; null !== s; ) Vj(s, o, i), (s = s.sibling);
  21095. }
  21096. function Wj(s, o, i) {
  21097. var u = s.tag;
  21098. if (5 === u || 6 === u) (s = s.stateNode), o ? i.insertBefore(s, o) : i.appendChild(s);
  21099. else if (4 !== u && null !== (s = s.child))
  21100. for (Wj(s, o, i), s = s.sibling; null !== s; ) Wj(s, o, i), (s = s.sibling);
  21101. }
  21102. var Ps = null,
  21103. Ms = !1;
  21104. function Yj(s, o, i) {
  21105. for (i = i.child; null !== i; ) Zj(s, o, i), (i = i.sibling);
  21106. }
  21107. function Zj(s, o, i) {
  21108. if (wt && 'function' == typeof wt.onCommitFiberUnmount)
  21109. try {
  21110. wt.onCommitFiberUnmount(Et, i);
  21111. } catch (s) {}
  21112. switch (i.tag) {
  21113. case 5:
  21114. Os || Lj(i, o);
  21115. case 6:
  21116. var u = Ps,
  21117. _ = Ms;
  21118. (Ps = null),
  21119. Yj(s, o, i),
  21120. (Ms = _),
  21121. null !== (Ps = u) &&
  21122. (Ms
  21123. ? ((s = Ps),
  21124. (i = i.stateNode),
  21125. 8 === s.nodeType ? s.parentNode.removeChild(i) : s.removeChild(i))
  21126. : Ps.removeChild(i.stateNode));
  21127. break;
  21128. case 18:
  21129. null !== Ps &&
  21130. (Ms
  21131. ? ((s = Ps),
  21132. (i = i.stateNode),
  21133. 8 === s.nodeType ? Kf(s.parentNode, i) : 1 === s.nodeType && Kf(s, i),
  21134. bd(s))
  21135. : Kf(Ps, i.stateNode));
  21136. break;
  21137. case 4:
  21138. (u = Ps),
  21139. (_ = Ms),
  21140. (Ps = i.stateNode.containerInfo),
  21141. (Ms = !0),
  21142. Yj(s, o, i),
  21143. (Ps = u),
  21144. (Ms = _);
  21145. break;
  21146. case 0:
  21147. case 11:
  21148. case 14:
  21149. case 15:
  21150. if (!Os && null !== (u = i.updateQueue) && null !== (u = u.lastEffect)) {
  21151. _ = u = u.next;
  21152. do {
  21153. var w = _,
  21154. x = w.destroy;
  21155. (w = w.tag), void 0 !== x && (2 & w || 4 & w) && Mj(i, o, x), (_ = _.next);
  21156. } while (_ !== u);
  21157. }
  21158. Yj(s, o, i);
  21159. break;
  21160. case 1:
  21161. if (!Os && (Lj(i, o), 'function' == typeof (u = i.stateNode).componentWillUnmount))
  21162. try {
  21163. (u.props = i.memoizedProps),
  21164. (u.state = i.memoizedState),
  21165. u.componentWillUnmount();
  21166. } catch (s) {
  21167. W(i, o, s);
  21168. }
  21169. Yj(s, o, i);
  21170. break;
  21171. case 21:
  21172. Yj(s, o, i);
  21173. break;
  21174. case 22:
  21175. 1 & i.mode
  21176. ? ((Os = (u = Os) || null !== i.memoizedState), Yj(s, o, i), (Os = u))
  21177. : Yj(s, o, i);
  21178. break;
  21179. default:
  21180. Yj(s, o, i);
  21181. }
  21182. }
  21183. function ak(s) {
  21184. var o = s.updateQueue;
  21185. if (null !== o) {
  21186. s.updateQueue = null;
  21187. var i = s.stateNode;
  21188. null === i && (i = s.stateNode = new As()),
  21189. o.forEach(function (o) {
  21190. var u = bk.bind(null, s, o);
  21191. i.has(o) || (i.add(o), o.then(u, u));
  21192. });
  21193. }
  21194. }
  21195. function ck(s, o) {
  21196. var i = o.deletions;
  21197. if (null !== i)
  21198. for (var u = 0; u < i.length; u++) {
  21199. var _ = i[u];
  21200. try {
  21201. var w = s,
  21202. x = o,
  21203. C = x;
  21204. e: for (; null !== C; ) {
  21205. switch (C.tag) {
  21206. case 5:
  21207. (Ps = C.stateNode), (Ms = !1);
  21208. break e;
  21209. case 3:
  21210. case 4:
  21211. (Ps = C.stateNode.containerInfo), (Ms = !0);
  21212. break e;
  21213. }
  21214. C = C.return;
  21215. }
  21216. if (null === Ps) throw Error(p(160));
  21217. Zj(w, x, _), (Ps = null), (Ms = !1);
  21218. var j = _.alternate;
  21219. null !== j && (j.return = null), (_.return = null);
  21220. } catch (s) {
  21221. W(_, o, s);
  21222. }
  21223. }
  21224. if (12854 & o.subtreeFlags) for (o = o.child; null !== o; ) dk(o, s), (o = o.sibling);
  21225. }
  21226. function dk(s, o) {
  21227. var i = s.alternate,
  21228. u = s.flags;
  21229. switch (s.tag) {
  21230. case 0:
  21231. case 11:
  21232. case 14:
  21233. case 15:
  21234. if ((ck(o, s), ek(s), 4 & u)) {
  21235. try {
  21236. Pj(3, s, s.return), Qj(3, s);
  21237. } catch (o) {
  21238. W(s, s.return, o);
  21239. }
  21240. try {
  21241. Pj(5, s, s.return);
  21242. } catch (o) {
  21243. W(s, s.return, o);
  21244. }
  21245. }
  21246. break;
  21247. case 1:
  21248. ck(o, s), ek(s), 512 & u && null !== i && Lj(i, i.return);
  21249. break;
  21250. case 5:
  21251. if ((ck(o, s), ek(s), 512 & u && null !== i && Lj(i, i.return), 32 & s.flags)) {
  21252. var _ = s.stateNode;
  21253. try {
  21254. ob(_, '');
  21255. } catch (o) {
  21256. W(s, s.return, o);
  21257. }
  21258. }
  21259. if (4 & u && null != (_ = s.stateNode)) {
  21260. var w = s.memoizedProps,
  21261. x = null !== i ? i.memoizedProps : w,
  21262. C = s.type,
  21263. j = s.updateQueue;
  21264. if (((s.updateQueue = null), null !== j))
  21265. try {
  21266. 'input' === C && 'radio' === w.type && null != w.name && ab(_, w), vb(C, x);
  21267. var L = vb(C, w);
  21268. for (x = 0; x < j.length; x += 2) {
  21269. var B = j[x],
  21270. $ = j[x + 1];
  21271. 'style' === B
  21272. ? sb(_, $)
  21273. : 'dangerouslySetInnerHTML' === B
  21274. ? $e(_, $)
  21275. : 'children' === B
  21276. ? ob(_, $)
  21277. : ta(_, B, $, L);
  21278. }
  21279. switch (C) {
  21280. case 'input':
  21281. bb(_, w);
  21282. break;
  21283. case 'textarea':
  21284. ib(_, w);
  21285. break;
  21286. case 'select':
  21287. var V = _._wrapperState.wasMultiple;
  21288. _._wrapperState.wasMultiple = !!w.multiple;
  21289. var U = w.value;
  21290. null != U
  21291. ? fb(_, !!w.multiple, U, !1)
  21292. : V !== !!w.multiple &&
  21293. (null != w.defaultValue
  21294. ? fb(_, !!w.multiple, w.defaultValue, !0)
  21295. : fb(_, !!w.multiple, w.multiple ? [] : '', !1));
  21296. }
  21297. _[fn] = w;
  21298. } catch (o) {
  21299. W(s, s.return, o);
  21300. }
  21301. }
  21302. break;
  21303. case 6:
  21304. if ((ck(o, s), ek(s), 4 & u)) {
  21305. if (null === s.stateNode) throw Error(p(162));
  21306. (_ = s.stateNode), (w = s.memoizedProps);
  21307. try {
  21308. _.nodeValue = w;
  21309. } catch (o) {
  21310. W(s, s.return, o);
  21311. }
  21312. }
  21313. break;
  21314. case 3:
  21315. if ((ck(o, s), ek(s), 4 & u && null !== i && i.memoizedState.isDehydrated))
  21316. try {
  21317. bd(o.containerInfo);
  21318. } catch (o) {
  21319. W(s, s.return, o);
  21320. }
  21321. break;
  21322. case 4:
  21323. default:
  21324. ck(o, s), ek(s);
  21325. break;
  21326. case 13:
  21327. ck(o, s),
  21328. ek(s),
  21329. 8192 & (_ = s.child).flags &&
  21330. ((w = null !== _.memoizedState),
  21331. (_.stateNode.isHidden = w),
  21332. !w ||
  21333. (null !== _.alternate && null !== _.alternate.memoizedState) ||
  21334. (Xs = dt())),
  21335. 4 & u && ak(s);
  21336. break;
  21337. case 22:
  21338. if (
  21339. ((B = null !== i && null !== i.memoizedState),
  21340. 1 & s.mode ? ((Os = (L = Os) || B), ck(o, s), (Os = L)) : ck(o, s),
  21341. ek(s),
  21342. 8192 & u)
  21343. ) {
  21344. if (
  21345. ((L = null !== s.memoizedState), (s.stateNode.isHidden = L) && !B && 1 & s.mode)
  21346. )
  21347. for (js = s, B = s.child; null !== B; ) {
  21348. for ($ = js = B; null !== js; ) {
  21349. switch (((U = (V = js).child), V.tag)) {
  21350. case 0:
  21351. case 11:
  21352. case 14:
  21353. case 15:
  21354. Pj(4, V, V.return);
  21355. break;
  21356. case 1:
  21357. Lj(V, V.return);
  21358. var z = V.stateNode;
  21359. if ('function' == typeof z.componentWillUnmount) {
  21360. (u = V), (i = V.return);
  21361. try {
  21362. (o = u),
  21363. (z.props = o.memoizedProps),
  21364. (z.state = o.memoizedState),
  21365. z.componentWillUnmount();
  21366. } catch (s) {
  21367. W(u, i, s);
  21368. }
  21369. }
  21370. break;
  21371. case 5:
  21372. Lj(V, V.return);
  21373. break;
  21374. case 22:
  21375. if (null !== V.memoizedState) {
  21376. gk($);
  21377. continue;
  21378. }
  21379. }
  21380. null !== U ? ((U.return = V), (js = U)) : gk($);
  21381. }
  21382. B = B.sibling;
  21383. }
  21384. e: for (B = null, $ = s; ; ) {
  21385. if (5 === $.tag) {
  21386. if (null === B) {
  21387. B = $;
  21388. try {
  21389. (_ = $.stateNode),
  21390. L
  21391. ? 'function' == typeof (w = _.style).setProperty
  21392. ? w.setProperty('display', 'none', 'important')
  21393. : (w.display = 'none')
  21394. : ((C = $.stateNode),
  21395. (x =
  21396. null != (j = $.memoizedProps.style) && j.hasOwnProperty('display')
  21397. ? j.display
  21398. : null),
  21399. (C.style.display = rb('display', x)));
  21400. } catch (o) {
  21401. W(s, s.return, o);
  21402. }
  21403. }
  21404. } else if (6 === $.tag) {
  21405. if (null === B)
  21406. try {
  21407. $.stateNode.nodeValue = L ? '' : $.memoizedProps;
  21408. } catch (o) {
  21409. W(s, s.return, o);
  21410. }
  21411. } else if (
  21412. ((22 !== $.tag && 23 !== $.tag) || null === $.memoizedState || $ === s) &&
  21413. null !== $.child
  21414. ) {
  21415. ($.child.return = $), ($ = $.child);
  21416. continue;
  21417. }
  21418. if ($ === s) break e;
  21419. for (; null === $.sibling; ) {
  21420. if (null === $.return || $.return === s) break e;
  21421. B === $ && (B = null), ($ = $.return);
  21422. }
  21423. B === $ && (B = null), ($.sibling.return = $.return), ($ = $.sibling);
  21424. }
  21425. }
  21426. break;
  21427. case 19:
  21428. ck(o, s), ek(s), 4 & u && ak(s);
  21429. case 21:
  21430. }
  21431. }
  21432. function ek(s) {
  21433. var o = s.flags;
  21434. if (2 & o) {
  21435. try {
  21436. e: {
  21437. for (var i = s.return; null !== i; ) {
  21438. if (Tj(i)) {
  21439. var u = i;
  21440. break e;
  21441. }
  21442. i = i.return;
  21443. }
  21444. throw Error(p(160));
  21445. }
  21446. switch (u.tag) {
  21447. case 5:
  21448. var _ = u.stateNode;
  21449. 32 & u.flags && (ob(_, ''), (u.flags &= -33)), Wj(s, Uj(s), _);
  21450. break;
  21451. case 3:
  21452. case 4:
  21453. var w = u.stateNode.containerInfo;
  21454. Vj(s, Uj(s), w);
  21455. break;
  21456. default:
  21457. throw Error(p(161));
  21458. }
  21459. } catch (o) {
  21460. W(s, s.return, o);
  21461. }
  21462. s.flags &= -3;
  21463. }
  21464. 4096 & o && (s.flags &= -4097);
  21465. }
  21466. function hk(s, o, i) {
  21467. (js = s), ik(s, o, i);
  21468. }
  21469. function ik(s, o, i) {
  21470. for (var u = !!(1 & s.mode); null !== js; ) {
  21471. var _ = js,
  21472. w = _.child;
  21473. if (22 === _.tag && u) {
  21474. var x = null !== _.memoizedState || Cs;
  21475. if (!x) {
  21476. var C = _.alternate,
  21477. j = (null !== C && null !== C.memoizedState) || Os;
  21478. C = Cs;
  21479. var L = Os;
  21480. if (((Cs = x), (Os = j) && !L))
  21481. for (js = _; null !== js; )
  21482. (j = (x = js).child),
  21483. 22 === x.tag && null !== x.memoizedState
  21484. ? jk(_)
  21485. : null !== j
  21486. ? ((j.return = x), (js = j))
  21487. : jk(_);
  21488. for (; null !== w; ) (js = w), ik(w, o, i), (w = w.sibling);
  21489. (js = _), (Cs = C), (Os = L);
  21490. }
  21491. kk(s);
  21492. } else 8772 & _.subtreeFlags && null !== w ? ((w.return = _), (js = w)) : kk(s);
  21493. }
  21494. }
  21495. function kk(s) {
  21496. for (; null !== js; ) {
  21497. var o = js;
  21498. if (8772 & o.flags) {
  21499. var i = o.alternate;
  21500. try {
  21501. if (8772 & o.flags)
  21502. switch (o.tag) {
  21503. case 0:
  21504. case 11:
  21505. case 15:
  21506. Os || Qj(5, o);
  21507. break;
  21508. case 1:
  21509. var u = o.stateNode;
  21510. if (4 & o.flags && !Os)
  21511. if (null === i) u.componentDidMount();
  21512. else {
  21513. var _ =
  21514. o.elementType === o.type
  21515. ? i.memoizedProps
  21516. : Ci(o.type, i.memoizedProps);
  21517. u.componentDidUpdate(
  21518. _,
  21519. i.memoizedState,
  21520. u.__reactInternalSnapshotBeforeUpdate
  21521. );
  21522. }
  21523. var w = o.updateQueue;
  21524. null !== w && sh(o, w, u);
  21525. break;
  21526. case 3:
  21527. var x = o.updateQueue;
  21528. if (null !== x) {
  21529. if (((i = null), null !== o.child))
  21530. switch (o.child.tag) {
  21531. case 5:
  21532. case 1:
  21533. i = o.child.stateNode;
  21534. }
  21535. sh(o, x, i);
  21536. }
  21537. break;
  21538. case 5:
  21539. var C = o.stateNode;
  21540. if (null === i && 4 & o.flags) {
  21541. i = C;
  21542. var j = o.memoizedProps;
  21543. switch (o.type) {
  21544. case 'button':
  21545. case 'input':
  21546. case 'select':
  21547. case 'textarea':
  21548. j.autoFocus && i.focus();
  21549. break;
  21550. case 'img':
  21551. j.src && (i.src = j.src);
  21552. }
  21553. }
  21554. break;
  21555. case 6:
  21556. case 4:
  21557. case 12:
  21558. case 19:
  21559. case 17:
  21560. case 21:
  21561. case 22:
  21562. case 23:
  21563. case 25:
  21564. break;
  21565. case 13:
  21566. if (null === o.memoizedState) {
  21567. var L = o.alternate;
  21568. if (null !== L) {
  21569. var B = L.memoizedState;
  21570. if (null !== B) {
  21571. var $ = B.dehydrated;
  21572. null !== $ && bd($);
  21573. }
  21574. }
  21575. }
  21576. break;
  21577. default:
  21578. throw Error(p(163));
  21579. }
  21580. Os || (512 & o.flags && Rj(o));
  21581. } catch (s) {
  21582. W(o, o.return, s);
  21583. }
  21584. }
  21585. if (o === s) {
  21586. js = null;
  21587. break;
  21588. }
  21589. if (null !== (i = o.sibling)) {
  21590. (i.return = o.return), (js = i);
  21591. break;
  21592. }
  21593. js = o.return;
  21594. }
  21595. }
  21596. function gk(s) {
  21597. for (; null !== js; ) {
  21598. var o = js;
  21599. if (o === s) {
  21600. js = null;
  21601. break;
  21602. }
  21603. var i = o.sibling;
  21604. if (null !== i) {
  21605. (i.return = o.return), (js = i);
  21606. break;
  21607. }
  21608. js = o.return;
  21609. }
  21610. }
  21611. function jk(s) {
  21612. for (; null !== js; ) {
  21613. var o = js;
  21614. try {
  21615. switch (o.tag) {
  21616. case 0:
  21617. case 11:
  21618. case 15:
  21619. var i = o.return;
  21620. try {
  21621. Qj(4, o);
  21622. } catch (s) {
  21623. W(o, i, s);
  21624. }
  21625. break;
  21626. case 1:
  21627. var u = o.stateNode;
  21628. if ('function' == typeof u.componentDidMount) {
  21629. var _ = o.return;
  21630. try {
  21631. u.componentDidMount();
  21632. } catch (s) {
  21633. W(o, _, s);
  21634. }
  21635. }
  21636. var w = o.return;
  21637. try {
  21638. Rj(o);
  21639. } catch (s) {
  21640. W(o, w, s);
  21641. }
  21642. break;
  21643. case 5:
  21644. var x = o.return;
  21645. try {
  21646. Rj(o);
  21647. } catch (s) {
  21648. W(o, x, s);
  21649. }
  21650. }
  21651. } catch (s) {
  21652. W(o, o.return, s);
  21653. }
  21654. if (o === s) {
  21655. js = null;
  21656. break;
  21657. }
  21658. var C = o.sibling;
  21659. if (null !== C) {
  21660. (C.return = o.return), (js = C);
  21661. break;
  21662. }
  21663. js = o.return;
  21664. }
  21665. }
  21666. var Ts,
  21667. Ns = Math.ceil,
  21668. Rs = z.ReactCurrentDispatcher,
  21669. Ds = z.ReactCurrentOwner,
  21670. Ls = z.ReactCurrentBatchConfig,
  21671. Bs = 0,
  21672. Fs = null,
  21673. qs = null,
  21674. $s = 0,
  21675. Vs = 0,
  21676. Us = Uf(0),
  21677. zs = 0,
  21678. Ws = null,
  21679. Ks = 0,
  21680. Hs = 0,
  21681. Js = 0,
  21682. Gs = null,
  21683. Ys = null,
  21684. Xs = 0,
  21685. Zs = 1 / 0,
  21686. Qs = null,
  21687. eo = !1,
  21688. to = null,
  21689. ro = null,
  21690. no = !1,
  21691. so = null,
  21692. oo = 0,
  21693. io = 0,
  21694. ao = null,
  21695. lo = -1,
  21696. co = 0;
  21697. function R() {
  21698. return 6 & Bs ? dt() : -1 !== lo ? lo : (lo = dt());
  21699. }
  21700. function yi(s) {
  21701. return 1 & s.mode
  21702. ? 2 & Bs && 0 !== $s
  21703. ? $s & -$s
  21704. : null !== $n.transition
  21705. ? (0 === co && (co = yc()), co)
  21706. : 0 !== (s = At)
  21707. ? s
  21708. : (s = void 0 === (s = window.event) ? 16 : jd(s.type))
  21709. : 1;
  21710. }
  21711. function gi(s, o, i, u) {
  21712. if (50 < io) throw ((io = 0), (ao = null), Error(p(185)));
  21713. Ac(s, i, u),
  21714. (2 & Bs && s === Fs) ||
  21715. (s === Fs && (!(2 & Bs) && (Hs |= i), 4 === zs && Ck(s, $s)),
  21716. Dk(s, u),
  21717. 1 === i && 0 === Bs && !(1 & o.mode) && ((Zs = dt() + 500), Cn && jg()));
  21718. }
  21719. function Dk(s, o) {
  21720. var i = s.callbackNode;
  21721. !(function wc(s, o) {
  21722. for (
  21723. var i = s.suspendedLanes,
  21724. u = s.pingedLanes,
  21725. _ = s.expirationTimes,
  21726. w = s.pendingLanes;
  21727. 0 < w;
  21728. ) {
  21729. var x = 31 - St(w),
  21730. C = 1 << x,
  21731. j = _[x];
  21732. -1 === j
  21733. ? (C & i && !(C & u)) || (_[x] = vc(C, o))
  21734. : j <= o && (s.expiredLanes |= C),
  21735. (w &= ~C);
  21736. }
  21737. })(s, o);
  21738. var u = uc(s, s === Fs ? $s : 0);
  21739. if (0 === u) null !== i && ut(i), (s.callbackNode = null), (s.callbackPriority = 0);
  21740. else if (((o = u & -u), s.callbackPriority !== o)) {
  21741. if ((null != i && ut(i), 1 === o))
  21742. 0 === s.tag
  21743. ? (function ig(s) {
  21744. (Cn = !0), hg(s);
  21745. })(Ek.bind(null, s))
  21746. : hg(Ek.bind(null, s)),
  21747. pn(function () {
  21748. !(6 & Bs) && jg();
  21749. }),
  21750. (i = null);
  21751. else {
  21752. switch (Dc(u)) {
  21753. case 1:
  21754. i = gt;
  21755. break;
  21756. case 4:
  21757. i = yt;
  21758. break;
  21759. case 16:
  21760. default:
  21761. i = vt;
  21762. break;
  21763. case 536870912:
  21764. i = _t;
  21765. }
  21766. i = Fk(i, Gk.bind(null, s));
  21767. }
  21768. (s.callbackPriority = o), (s.callbackNode = i);
  21769. }
  21770. }
  21771. function Gk(s, o) {
  21772. if (((lo = -1), (co = 0), 6 & Bs)) throw Error(p(327));
  21773. var i = s.callbackNode;
  21774. if (Hk() && s.callbackNode !== i) return null;
  21775. var u = uc(s, s === Fs ? $s : 0);
  21776. if (0 === u) return null;
  21777. if (30 & u || u & s.expiredLanes || o) o = Ik(s, u);
  21778. else {
  21779. o = u;
  21780. var _ = Bs;
  21781. Bs |= 2;
  21782. var w = Jk();
  21783. for ((Fs === s && $s === o) || ((Qs = null), (Zs = dt() + 500), Kk(s, o)); ; )
  21784. try {
  21785. Lk();
  21786. break;
  21787. } catch (o) {
  21788. Mk(s, o);
  21789. }
  21790. $g(),
  21791. (Rs.current = w),
  21792. (Bs = _),
  21793. null !== qs ? (o = 0) : ((Fs = null), ($s = 0), (o = zs));
  21794. }
  21795. if (0 !== o) {
  21796. if ((2 === o && 0 !== (_ = xc(s)) && ((u = _), (o = Nk(s, _))), 1 === o))
  21797. throw ((i = Ws), Kk(s, 0), Ck(s, u), Dk(s, dt()), i);
  21798. if (6 === o) Ck(s, u);
  21799. else {
  21800. if (
  21801. ((_ = s.current.alternate),
  21802. !(
  21803. 30 & u ||
  21804. (function Ok(s) {
  21805. for (var o = s; ; ) {
  21806. if (16384 & o.flags) {
  21807. var i = o.updateQueue;
  21808. if (null !== i && null !== (i = i.stores))
  21809. for (var u = 0; u < i.length; u++) {
  21810. var _ = i[u],
  21811. w = _.getSnapshot;
  21812. _ = _.value;
  21813. try {
  21814. if (!Lr(w(), _)) return !1;
  21815. } catch (s) {
  21816. return !1;
  21817. }
  21818. }
  21819. }
  21820. if (((i = o.child), 16384 & o.subtreeFlags && null !== i))
  21821. (i.return = o), (o = i);
  21822. else {
  21823. if (o === s) break;
  21824. for (; null === o.sibling; ) {
  21825. if (null === o.return || o.return === s) return !0;
  21826. o = o.return;
  21827. }
  21828. (o.sibling.return = o.return), (o = o.sibling);
  21829. }
  21830. }
  21831. return !0;
  21832. })(_) ||
  21833. ((o = Ik(s, u)),
  21834. 2 === o && ((w = xc(s)), 0 !== w && ((u = w), (o = Nk(s, w)))),
  21835. 1 !== o)
  21836. ))
  21837. )
  21838. throw ((i = Ws), Kk(s, 0), Ck(s, u), Dk(s, dt()), i);
  21839. switch (((s.finishedWork = _), (s.finishedLanes = u), o)) {
  21840. case 0:
  21841. case 1:
  21842. throw Error(p(345));
  21843. case 2:
  21844. case 5:
  21845. Pk(s, Ys, Qs);
  21846. break;
  21847. case 3:
  21848. if ((Ck(s, u), (130023424 & u) === u && 10 < (o = Xs + 500 - dt()))) {
  21849. if (0 !== uc(s, 0)) break;
  21850. if (((_ = s.suspendedLanes) & u) !== u) {
  21851. R(), (s.pingedLanes |= s.suspendedLanes & _);
  21852. break;
  21853. }
  21854. s.timeoutHandle = ln(Pk.bind(null, s, Ys, Qs), o);
  21855. break;
  21856. }
  21857. Pk(s, Ys, Qs);
  21858. break;
  21859. case 4:
  21860. if ((Ck(s, u), (4194240 & u) === u)) break;
  21861. for (o = s.eventTimes, _ = -1; 0 < u; ) {
  21862. var x = 31 - St(u);
  21863. (w = 1 << x), (x = o[x]) > _ && (_ = x), (u &= ~w);
  21864. }
  21865. if (
  21866. ((u = _),
  21867. 10 <
  21868. (u =
  21869. (120 > (u = dt() - u)
  21870. ? 120
  21871. : 480 > u
  21872. ? 480
  21873. : 1080 > u
  21874. ? 1080
  21875. : 1920 > u
  21876. ? 1920
  21877. : 3e3 > u
  21878. ? 3e3
  21879. : 4320 > u
  21880. ? 4320
  21881. : 1960 * Ns(u / 1960)) - u))
  21882. ) {
  21883. s.timeoutHandle = ln(Pk.bind(null, s, Ys, Qs), u);
  21884. break;
  21885. }
  21886. Pk(s, Ys, Qs);
  21887. break;
  21888. default:
  21889. throw Error(p(329));
  21890. }
  21891. }
  21892. }
  21893. return Dk(s, dt()), s.callbackNode === i ? Gk.bind(null, s) : null;
  21894. }
  21895. function Nk(s, o) {
  21896. var i = Gs;
  21897. return (
  21898. s.current.memoizedState.isDehydrated && (Kk(s, o).flags |= 256),
  21899. 2 !== (s = Ik(s, o)) && ((o = Ys), (Ys = i), null !== o && Fj(o)),
  21900. s
  21901. );
  21902. }
  21903. function Fj(s) {
  21904. null === Ys ? (Ys = s) : Ys.push.apply(Ys, s);
  21905. }
  21906. function Ck(s, o) {
  21907. for (
  21908. o &= ~Js, o &= ~Hs, s.suspendedLanes |= o, s.pingedLanes &= ~o, s = s.expirationTimes;
  21909. 0 < o;
  21910. ) {
  21911. var i = 31 - St(o),
  21912. u = 1 << i;
  21913. (s[i] = -1), (o &= ~u);
  21914. }
  21915. }
  21916. function Ek(s) {
  21917. if (6 & Bs) throw Error(p(327));
  21918. Hk();
  21919. var o = uc(s, 0);
  21920. if (!(1 & o)) return Dk(s, dt()), null;
  21921. var i = Ik(s, o);
  21922. if (0 !== s.tag && 2 === i) {
  21923. var u = xc(s);
  21924. 0 !== u && ((o = u), (i = Nk(s, u)));
  21925. }
  21926. if (1 === i) throw ((i = Ws), Kk(s, 0), Ck(s, o), Dk(s, dt()), i);
  21927. if (6 === i) throw Error(p(345));
  21928. return (
  21929. (s.finishedWork = s.current.alternate),
  21930. (s.finishedLanes = o),
  21931. Pk(s, Ys, Qs),
  21932. Dk(s, dt()),
  21933. null
  21934. );
  21935. }
  21936. function Qk(s, o) {
  21937. var i = Bs;
  21938. Bs |= 1;
  21939. try {
  21940. return s(o);
  21941. } finally {
  21942. 0 === (Bs = i) && ((Zs = dt() + 500), Cn && jg());
  21943. }
  21944. }
  21945. function Rk(s) {
  21946. null !== so && 0 === so.tag && !(6 & Bs) && Hk();
  21947. var o = Bs;
  21948. Bs |= 1;
  21949. var i = Ls.transition,
  21950. u = At;
  21951. try {
  21952. if (((Ls.transition = null), (At = 1), s)) return s();
  21953. } finally {
  21954. (At = u), (Ls.transition = i), !(6 & (Bs = o)) && jg();
  21955. }
  21956. }
  21957. function Hj() {
  21958. (Vs = Us.current), E(Us);
  21959. }
  21960. function Kk(s, o) {
  21961. (s.finishedWork = null), (s.finishedLanes = 0);
  21962. var i = s.timeoutHandle;
  21963. if ((-1 !== i && ((s.timeoutHandle = -1), cn(i)), null !== qs))
  21964. for (i = qs.return; null !== i; ) {
  21965. var u = i;
  21966. switch ((wg(u), u.tag)) {
  21967. case 1:
  21968. null != (u = u.type.childContextTypes) && $f();
  21969. break;
  21970. case 3:
  21971. zh(), E(Sn), E(wn), Eh();
  21972. break;
  21973. case 5:
  21974. Bh(u);
  21975. break;
  21976. case 4:
  21977. zh();
  21978. break;
  21979. case 13:
  21980. case 19:
  21981. E(es);
  21982. break;
  21983. case 10:
  21984. ah(u.type._context);
  21985. break;
  21986. case 22:
  21987. case 23:
  21988. Hj();
  21989. }
  21990. i = i.return;
  21991. }
  21992. if (
  21993. ((Fs = s),
  21994. (qs = s = Pg(s.current, null)),
  21995. ($s = Vs = o),
  21996. (zs = 0),
  21997. (Ws = null),
  21998. (Js = Hs = Ks = 0),
  21999. (Ys = Gs = null),
  22000. null !== Jn)
  22001. ) {
  22002. for (o = 0; o < Jn.length; o++)
  22003. if (null !== (u = (i = Jn[o]).interleaved)) {
  22004. i.interleaved = null;
  22005. var _ = u.next,
  22006. w = i.pending;
  22007. if (null !== w) {
  22008. var x = w.next;
  22009. (w.next = _), (u.next = x);
  22010. }
  22011. i.pending = u;
  22012. }
  22013. Jn = null;
  22014. }
  22015. return s;
  22016. }
  22017. function Mk(s, o) {
  22018. for (;;) {
  22019. var i = qs;
  22020. try {
  22021. if (($g(), (rs.current = ds), cs)) {
  22022. for (var u = os.memoizedState; null !== u; ) {
  22023. var _ = u.queue;
  22024. null !== _ && (_.pending = null), (u = u.next);
  22025. }
  22026. cs = !1;
  22027. }
  22028. if (
  22029. ((ss = 0),
  22030. (ls = as = os = null),
  22031. (us = !1),
  22032. (ps = 0),
  22033. (Ds.current = null),
  22034. null === i || null === i.return)
  22035. ) {
  22036. (zs = 1), (Ws = o), (qs = null);
  22037. break;
  22038. }
  22039. e: {
  22040. var w = s,
  22041. x = i.return,
  22042. C = i,
  22043. j = o;
  22044. if (
  22045. ((o = $s),
  22046. (C.flags |= 32768),
  22047. null !== j && 'object' == typeof j && 'function' == typeof j.then)
  22048. ) {
  22049. var L = j,
  22050. B = C,
  22051. $ = B.tag;
  22052. if (!(1 & B.mode || (0 !== $ && 11 !== $ && 15 !== $))) {
  22053. var V = B.alternate;
  22054. V
  22055. ? ((B.updateQueue = V.updateQueue),
  22056. (B.memoizedState = V.memoizedState),
  22057. (B.lanes = V.lanes))
  22058. : ((B.updateQueue = null), (B.memoizedState = null));
  22059. }
  22060. var U = Ui(x);
  22061. if (null !== U) {
  22062. (U.flags &= -257), Vi(U, x, C, 0, o), 1 & U.mode && Si(w, L, o), (j = L);
  22063. var z = (o = U).updateQueue;
  22064. if (null === z) {
  22065. var Y = new Set();
  22066. Y.add(j), (o.updateQueue = Y);
  22067. } else z.add(j);
  22068. break e;
  22069. }
  22070. if (!(1 & o)) {
  22071. Si(w, L, o), tj();
  22072. break e;
  22073. }
  22074. j = Error(p(426));
  22075. } else if (Fn && 1 & C.mode) {
  22076. var Z = Ui(x);
  22077. if (null !== Z) {
  22078. !(65536 & Z.flags) && (Z.flags |= 256), Vi(Z, x, C, 0, o), Jg(Ji(j, C));
  22079. break e;
  22080. }
  22081. }
  22082. (w = j = Ji(j, C)),
  22083. 4 !== zs && (zs = 2),
  22084. null === Gs ? (Gs = [w]) : Gs.push(w),
  22085. (w = x);
  22086. do {
  22087. switch (w.tag) {
  22088. case 3:
  22089. (w.flags |= 65536), (o &= -o), (w.lanes |= o), ph(w, Ni(0, j, o));
  22090. break e;
  22091. case 1:
  22092. C = j;
  22093. var ee = w.type,
  22094. ie = w.stateNode;
  22095. if (
  22096. !(
  22097. 128 & w.flags ||
  22098. ('function' != typeof ee.getDerivedStateFromError &&
  22099. (null === ie ||
  22100. 'function' != typeof ie.componentDidCatch ||
  22101. (null !== ro && ro.has(ie))))
  22102. )
  22103. ) {
  22104. (w.flags |= 65536), (o &= -o), (w.lanes |= o), ph(w, Qi(w, C, o));
  22105. break e;
  22106. }
  22107. }
  22108. w = w.return;
  22109. } while (null !== w);
  22110. }
  22111. Sk(i);
  22112. } catch (s) {
  22113. (o = s), qs === i && null !== i && (qs = i = i.return);
  22114. continue;
  22115. }
  22116. break;
  22117. }
  22118. }
  22119. function Jk() {
  22120. var s = Rs.current;
  22121. return (Rs.current = ds), null === s ? ds : s;
  22122. }
  22123. function tj() {
  22124. (0 !== zs && 3 !== zs && 2 !== zs) || (zs = 4),
  22125. null === Fs || (!(268435455 & Ks) && !(268435455 & Hs)) || Ck(Fs, $s);
  22126. }
  22127. function Ik(s, o) {
  22128. var i = Bs;
  22129. Bs |= 2;
  22130. var u = Jk();
  22131. for ((Fs === s && $s === o) || ((Qs = null), Kk(s, o)); ; )
  22132. try {
  22133. Tk();
  22134. break;
  22135. } catch (o) {
  22136. Mk(s, o);
  22137. }
  22138. if (($g(), (Bs = i), (Rs.current = u), null !== qs)) throw Error(p(261));
  22139. return (Fs = null), ($s = 0), zs;
  22140. }
  22141. function Tk() {
  22142. for (; null !== qs; ) Uk(qs);
  22143. }
  22144. function Lk() {
  22145. for (; null !== qs && !pt(); ) Uk(qs);
  22146. }
  22147. function Uk(s) {
  22148. var o = Ts(s.alternate, s, Vs);
  22149. (s.memoizedProps = s.pendingProps), null === o ? Sk(s) : (qs = o), (Ds.current = null);
  22150. }
  22151. function Sk(s) {
  22152. var o = s;
  22153. do {
  22154. var i = o.alternate;
  22155. if (((s = o.return), 32768 & o.flags)) {
  22156. if (null !== (i = Ij(i, o))) return (i.flags &= 32767), void (qs = i);
  22157. if (null === s) return (zs = 6), void (qs = null);
  22158. (s.flags |= 32768), (s.subtreeFlags = 0), (s.deletions = null);
  22159. } else if (null !== (i = Ej(i, o, Vs))) return void (qs = i);
  22160. if (null !== (o = o.sibling)) return void (qs = o);
  22161. qs = o = s;
  22162. } while (null !== o);
  22163. 0 === zs && (zs = 5);
  22164. }
  22165. function Pk(s, o, i) {
  22166. var u = At,
  22167. _ = Ls.transition;
  22168. try {
  22169. (Ls.transition = null),
  22170. (At = 1),
  22171. (function Wk(s, o, i, u) {
  22172. do {
  22173. Hk();
  22174. } while (null !== so);
  22175. if (6 & Bs) throw Error(p(327));
  22176. i = s.finishedWork;
  22177. var _ = s.finishedLanes;
  22178. if (null === i) return null;
  22179. if (((s.finishedWork = null), (s.finishedLanes = 0), i === s.current))
  22180. throw Error(p(177));
  22181. (s.callbackNode = null), (s.callbackPriority = 0);
  22182. var w = i.lanes | i.childLanes;
  22183. if (
  22184. ((function Bc(s, o) {
  22185. var i = s.pendingLanes & ~o;
  22186. (s.pendingLanes = o),
  22187. (s.suspendedLanes = 0),
  22188. (s.pingedLanes = 0),
  22189. (s.expiredLanes &= o),
  22190. (s.mutableReadLanes &= o),
  22191. (s.entangledLanes &= o),
  22192. (o = s.entanglements);
  22193. var u = s.eventTimes;
  22194. for (s = s.expirationTimes; 0 < i; ) {
  22195. var _ = 31 - St(i),
  22196. w = 1 << _;
  22197. (o[_] = 0), (u[_] = -1), (s[_] = -1), (i &= ~w);
  22198. }
  22199. })(s, w),
  22200. s === Fs && ((qs = Fs = null), ($s = 0)),
  22201. (!(2064 & i.subtreeFlags) && !(2064 & i.flags)) ||
  22202. no ||
  22203. ((no = !0),
  22204. Fk(vt, function () {
  22205. return Hk(), null;
  22206. })),
  22207. (w = !!(15990 & i.flags)),
  22208. !!(15990 & i.subtreeFlags) || w)
  22209. ) {
  22210. (w = Ls.transition), (Ls.transition = null);
  22211. var x = At;
  22212. At = 1;
  22213. var C = Bs;
  22214. (Bs |= 4),
  22215. (Ds.current = null),
  22216. (function Oj(s, o) {
  22217. if (((on = zt), Ne((s = Me())))) {
  22218. if ('selectionStart' in s)
  22219. var i = { start: s.selectionStart, end: s.selectionEnd };
  22220. else
  22221. e: {
  22222. var u =
  22223. (i = ((i = s.ownerDocument) && i.defaultView) || window)
  22224. .getSelection && i.getSelection();
  22225. if (u && 0 !== u.rangeCount) {
  22226. i = u.anchorNode;
  22227. var _ = u.anchorOffset,
  22228. w = u.focusNode;
  22229. u = u.focusOffset;
  22230. try {
  22231. i.nodeType, w.nodeType;
  22232. } catch (s) {
  22233. i = null;
  22234. break e;
  22235. }
  22236. var x = 0,
  22237. C = -1,
  22238. j = -1,
  22239. L = 0,
  22240. B = 0,
  22241. $ = s,
  22242. V = null;
  22243. t: for (;;) {
  22244. for (
  22245. var U;
  22246. $ !== i || (0 !== _ && 3 !== $.nodeType) || (C = x + _),
  22247. $ !== w || (0 !== u && 3 !== $.nodeType) || (j = x + u),
  22248. 3 === $.nodeType && (x += $.nodeValue.length),
  22249. null !== (U = $.firstChild);
  22250. )
  22251. (V = $), ($ = U);
  22252. for (;;) {
  22253. if ($ === s) break t;
  22254. if (
  22255. (V === i && ++L === _ && (C = x),
  22256. V === w && ++B === u && (j = x),
  22257. null !== (U = $.nextSibling))
  22258. )
  22259. break;
  22260. V = ($ = V).parentNode;
  22261. }
  22262. $ = U;
  22263. }
  22264. i = -1 === C || -1 === j ? null : { start: C, end: j };
  22265. } else i = null;
  22266. }
  22267. i = i || { start: 0, end: 0 };
  22268. } else i = null;
  22269. for (
  22270. an = { focusedElem: s, selectionRange: i }, zt = !1, js = o;
  22271. null !== js;
  22272. )
  22273. if (((s = (o = js).child), 1028 & o.subtreeFlags && null !== s))
  22274. (s.return = o), (js = s);
  22275. else
  22276. for (; null !== js; ) {
  22277. o = js;
  22278. try {
  22279. var z = o.alternate;
  22280. if (1024 & o.flags)
  22281. switch (o.tag) {
  22282. case 0:
  22283. case 11:
  22284. case 15:
  22285. case 5:
  22286. case 6:
  22287. case 4:
  22288. case 17:
  22289. break;
  22290. case 1:
  22291. if (null !== z) {
  22292. var Y = z.memoizedProps,
  22293. Z = z.memoizedState,
  22294. ee = o.stateNode,
  22295. ie = ee.getSnapshotBeforeUpdate(
  22296. o.elementType === o.type ? Y : Ci(o.type, Y),
  22297. Z
  22298. );
  22299. ee.__reactInternalSnapshotBeforeUpdate = ie;
  22300. }
  22301. break;
  22302. case 3:
  22303. var ae = o.stateNode.containerInfo;
  22304. 1 === ae.nodeType
  22305. ? (ae.textContent = '')
  22306. : 9 === ae.nodeType &&
  22307. ae.documentElement &&
  22308. ae.removeChild(ae.documentElement);
  22309. break;
  22310. default:
  22311. throw Error(p(163));
  22312. }
  22313. } catch (s) {
  22314. W(o, o.return, s);
  22315. }
  22316. if (null !== (s = o.sibling)) {
  22317. (s.return = o.return), (js = s);
  22318. break;
  22319. }
  22320. js = o.return;
  22321. }
  22322. return (z = Is), (Is = !1), z;
  22323. })(s, i),
  22324. dk(i, s),
  22325. Oe(an),
  22326. (zt = !!on),
  22327. (an = on = null),
  22328. (s.current = i),
  22329. hk(i, s, _),
  22330. ht(),
  22331. (Bs = C),
  22332. (At = x),
  22333. (Ls.transition = w);
  22334. } else s.current = i;
  22335. if (
  22336. (no && ((no = !1), (so = s), (oo = _)),
  22337. (w = s.pendingLanes),
  22338. 0 === w && (ro = null),
  22339. (function mc(s) {
  22340. if (wt && 'function' == typeof wt.onCommitFiberRoot)
  22341. try {
  22342. wt.onCommitFiberRoot(Et, s, void 0, !(128 & ~s.current.flags));
  22343. } catch (s) {}
  22344. })(i.stateNode),
  22345. Dk(s, dt()),
  22346. null !== o)
  22347. )
  22348. for (u = s.onRecoverableError, i = 0; i < o.length; i++)
  22349. (_ = o[i]), u(_.value, { componentStack: _.stack, digest: _.digest });
  22350. if (eo) throw ((eo = !1), (s = to), (to = null), s);
  22351. return (
  22352. !!(1 & oo) && 0 !== s.tag && Hk(),
  22353. (w = s.pendingLanes),
  22354. 1 & w ? (s === ao ? io++ : ((io = 0), (ao = s))) : (io = 0),
  22355. jg(),
  22356. null
  22357. );
  22358. })(s, o, i, u);
  22359. } finally {
  22360. (Ls.transition = _), (At = u);
  22361. }
  22362. return null;
  22363. }
  22364. function Hk() {
  22365. if (null !== so) {
  22366. var s = Dc(oo),
  22367. o = Ls.transition,
  22368. i = At;
  22369. try {
  22370. if (((Ls.transition = null), (At = 16 > s ? 16 : s), null === so)) var u = !1;
  22371. else {
  22372. if (((s = so), (so = null), (oo = 0), 6 & Bs)) throw Error(p(331));
  22373. var _ = Bs;
  22374. for (Bs |= 4, js = s.current; null !== js; ) {
  22375. var w = js,
  22376. x = w.child;
  22377. if (16 & js.flags) {
  22378. var C = w.deletions;
  22379. if (null !== C) {
  22380. for (var j = 0; j < C.length; j++) {
  22381. var L = C[j];
  22382. for (js = L; null !== js; ) {
  22383. var B = js;
  22384. switch (B.tag) {
  22385. case 0:
  22386. case 11:
  22387. case 15:
  22388. Pj(8, B, w);
  22389. }
  22390. var $ = B.child;
  22391. if (null !== $) ($.return = B), (js = $);
  22392. else
  22393. for (; null !== js; ) {
  22394. var V = (B = js).sibling,
  22395. U = B.return;
  22396. if ((Sj(B), B === L)) {
  22397. js = null;
  22398. break;
  22399. }
  22400. if (null !== V) {
  22401. (V.return = U), (js = V);
  22402. break;
  22403. }
  22404. js = U;
  22405. }
  22406. }
  22407. }
  22408. var z = w.alternate;
  22409. if (null !== z) {
  22410. var Y = z.child;
  22411. if (null !== Y) {
  22412. z.child = null;
  22413. do {
  22414. var Z = Y.sibling;
  22415. (Y.sibling = null), (Y = Z);
  22416. } while (null !== Y);
  22417. }
  22418. }
  22419. js = w;
  22420. }
  22421. }
  22422. if (2064 & w.subtreeFlags && null !== x) (x.return = w), (js = x);
  22423. else
  22424. e: for (; null !== js; ) {
  22425. if (2048 & (w = js).flags)
  22426. switch (w.tag) {
  22427. case 0:
  22428. case 11:
  22429. case 15:
  22430. Pj(9, w, w.return);
  22431. }
  22432. var ee = w.sibling;
  22433. if (null !== ee) {
  22434. (ee.return = w.return), (js = ee);
  22435. break e;
  22436. }
  22437. js = w.return;
  22438. }
  22439. }
  22440. var ie = s.current;
  22441. for (js = ie; null !== js; ) {
  22442. var ae = (x = js).child;
  22443. if (2064 & x.subtreeFlags && null !== ae) (ae.return = x), (js = ae);
  22444. else
  22445. e: for (x = ie; null !== js; ) {
  22446. if (2048 & (C = js).flags)
  22447. try {
  22448. switch (C.tag) {
  22449. case 0:
  22450. case 11:
  22451. case 15:
  22452. Qj(9, C);
  22453. }
  22454. } catch (s) {
  22455. W(C, C.return, s);
  22456. }
  22457. if (C === x) {
  22458. js = null;
  22459. break e;
  22460. }
  22461. var le = C.sibling;
  22462. if (null !== le) {
  22463. (le.return = C.return), (js = le);
  22464. break e;
  22465. }
  22466. js = C.return;
  22467. }
  22468. }
  22469. if (((Bs = _), jg(), wt && 'function' == typeof wt.onPostCommitFiberRoot))
  22470. try {
  22471. wt.onPostCommitFiberRoot(Et, s);
  22472. } catch (s) {}
  22473. u = !0;
  22474. }
  22475. return u;
  22476. } finally {
  22477. (At = i), (Ls.transition = o);
  22478. }
  22479. }
  22480. return !1;
  22481. }
  22482. function Xk(s, o, i) {
  22483. (s = nh(s, (o = Ni(0, (o = Ji(i, o)), 1)), 1)),
  22484. (o = R()),
  22485. null !== s && (Ac(s, 1, o), Dk(s, o));
  22486. }
  22487. function W(s, o, i) {
  22488. if (3 === s.tag) Xk(s, s, i);
  22489. else
  22490. for (; null !== o; ) {
  22491. if (3 === o.tag) {
  22492. Xk(o, s, i);
  22493. break;
  22494. }
  22495. if (1 === o.tag) {
  22496. var u = o.stateNode;
  22497. if (
  22498. 'function' == typeof o.type.getDerivedStateFromError ||
  22499. ('function' == typeof u.componentDidCatch && (null === ro || !ro.has(u)))
  22500. ) {
  22501. (o = nh(o, (s = Qi(o, (s = Ji(i, s)), 1)), 1)),
  22502. (s = R()),
  22503. null !== o && (Ac(o, 1, s), Dk(o, s));
  22504. break;
  22505. }
  22506. }
  22507. o = o.return;
  22508. }
  22509. }
  22510. function Ti(s, o, i) {
  22511. var u = s.pingCache;
  22512. null !== u && u.delete(o),
  22513. (o = R()),
  22514. (s.pingedLanes |= s.suspendedLanes & i),
  22515. Fs === s &&
  22516. ($s & i) === i &&
  22517. (4 === zs || (3 === zs && (130023424 & $s) === $s && 500 > dt() - Xs)
  22518. ? Kk(s, 0)
  22519. : (Js |= i)),
  22520. Dk(s, o);
  22521. }
  22522. function Yk(s, o) {
  22523. 0 === o &&
  22524. (1 & s.mode ? ((o = Ot), !(130023424 & (Ot <<= 1)) && (Ot = 4194304)) : (o = 1));
  22525. var i = R();
  22526. null !== (s = ih(s, o)) && (Ac(s, o, i), Dk(s, i));
  22527. }
  22528. function uj(s) {
  22529. var o = s.memoizedState,
  22530. i = 0;
  22531. null !== o && (i = o.retryLane), Yk(s, i);
  22532. }
  22533. function bk(s, o) {
  22534. var i = 0;
  22535. switch (s.tag) {
  22536. case 13:
  22537. var u = s.stateNode,
  22538. _ = s.memoizedState;
  22539. null !== _ && (i = _.retryLane);
  22540. break;
  22541. case 19:
  22542. u = s.stateNode;
  22543. break;
  22544. default:
  22545. throw Error(p(314));
  22546. }
  22547. null !== u && u.delete(o), Yk(s, i);
  22548. }
  22549. function Fk(s, o) {
  22550. return ct(s, o);
  22551. }
  22552. function $k(s, o, i, u) {
  22553. (this.tag = s),
  22554. (this.key = i),
  22555. (this.sibling =
  22556. this.child =
  22557. this.return =
  22558. this.stateNode =
  22559. this.type =
  22560. this.elementType =
  22561. null),
  22562. (this.index = 0),
  22563. (this.ref = null),
  22564. (this.pendingProps = o),
  22565. (this.dependencies =
  22566. this.memoizedState =
  22567. this.updateQueue =
  22568. this.memoizedProps =
  22569. null),
  22570. (this.mode = u),
  22571. (this.subtreeFlags = this.flags = 0),
  22572. (this.deletions = null),
  22573. (this.childLanes = this.lanes = 0),
  22574. (this.alternate = null);
  22575. }
  22576. function Bg(s, o, i, u) {
  22577. return new $k(s, o, i, u);
  22578. }
  22579. function aj(s) {
  22580. return !(!(s = s.prototype) || !s.isReactComponent);
  22581. }
  22582. function Pg(s, o) {
  22583. var i = s.alternate;
  22584. return (
  22585. null === i
  22586. ? (((i = Bg(s.tag, o, s.key, s.mode)).elementType = s.elementType),
  22587. (i.type = s.type),
  22588. (i.stateNode = s.stateNode),
  22589. (i.alternate = s),
  22590. (s.alternate = i))
  22591. : ((i.pendingProps = o),
  22592. (i.type = s.type),
  22593. (i.flags = 0),
  22594. (i.subtreeFlags = 0),
  22595. (i.deletions = null)),
  22596. (i.flags = 14680064 & s.flags),
  22597. (i.childLanes = s.childLanes),
  22598. (i.lanes = s.lanes),
  22599. (i.child = s.child),
  22600. (i.memoizedProps = s.memoizedProps),
  22601. (i.memoizedState = s.memoizedState),
  22602. (i.updateQueue = s.updateQueue),
  22603. (o = s.dependencies),
  22604. (i.dependencies =
  22605. null === o ? null : { lanes: o.lanes, firstContext: o.firstContext }),
  22606. (i.sibling = s.sibling),
  22607. (i.index = s.index),
  22608. (i.ref = s.ref),
  22609. i
  22610. );
  22611. }
  22612. function Rg(s, o, i, u, _, w) {
  22613. var x = 2;
  22614. if (((u = s), 'function' == typeof s)) aj(s) && (x = 1);
  22615. else if ('string' == typeof s) x = 5;
  22616. else
  22617. e: switch (s) {
  22618. case ee:
  22619. return Tg(i.children, _, w, o);
  22620. case ie:
  22621. (x = 8), (_ |= 8);
  22622. break;
  22623. case ae:
  22624. return ((s = Bg(12, i, o, 2 | _)).elementType = ae), (s.lanes = w), s;
  22625. case de:
  22626. return ((s = Bg(13, i, o, _)).elementType = de), (s.lanes = w), s;
  22627. case fe:
  22628. return ((s = Bg(19, i, o, _)).elementType = fe), (s.lanes = w), s;
  22629. case _e:
  22630. return pj(i, _, w, o);
  22631. default:
  22632. if ('object' == typeof s && null !== s)
  22633. switch (s.$$typeof) {
  22634. case le:
  22635. x = 10;
  22636. break e;
  22637. case ce:
  22638. x = 9;
  22639. break e;
  22640. case pe:
  22641. x = 11;
  22642. break e;
  22643. case ye:
  22644. x = 14;
  22645. break e;
  22646. case be:
  22647. (x = 16), (u = null);
  22648. break e;
  22649. }
  22650. throw Error(p(130, null == s ? s : typeof s, ''));
  22651. }
  22652. return ((o = Bg(x, i, o, _)).elementType = s), (o.type = u), (o.lanes = w), o;
  22653. }
  22654. function Tg(s, o, i, u) {
  22655. return ((s = Bg(7, s, u, o)).lanes = i), s;
  22656. }
  22657. function pj(s, o, i, u) {
  22658. return (
  22659. ((s = Bg(22, s, u, o)).elementType = _e),
  22660. (s.lanes = i),
  22661. (s.stateNode = { isHidden: !1 }),
  22662. s
  22663. );
  22664. }
  22665. function Qg(s, o, i) {
  22666. return ((s = Bg(6, s, null, o)).lanes = i), s;
  22667. }
  22668. function Sg(s, o, i) {
  22669. return (
  22670. ((o = Bg(4, null !== s.children ? s.children : [], s.key, o)).lanes = i),
  22671. (o.stateNode = {
  22672. containerInfo: s.containerInfo,
  22673. pendingChildren: null,
  22674. implementation: s.implementation
  22675. }),
  22676. o
  22677. );
  22678. }
  22679. function al(s, o, i, u, _) {
  22680. (this.tag = o),
  22681. (this.containerInfo = s),
  22682. (this.finishedWork = this.pingCache = this.current = this.pendingChildren = null),
  22683. (this.timeoutHandle = -1),
  22684. (this.callbackNode = this.pendingContext = this.context = null),
  22685. (this.callbackPriority = 0),
  22686. (this.eventTimes = zc(0)),
  22687. (this.expirationTimes = zc(-1)),
  22688. (this.entangledLanes =
  22689. this.finishedLanes =
  22690. this.mutableReadLanes =
  22691. this.expiredLanes =
  22692. this.pingedLanes =
  22693. this.suspendedLanes =
  22694. this.pendingLanes =
  22695. 0),
  22696. (this.entanglements = zc(0)),
  22697. (this.identifierPrefix = u),
  22698. (this.onRecoverableError = _),
  22699. (this.mutableSourceEagerHydrationData = null);
  22700. }
  22701. function bl(s, o, i, u, _, w, x, C, j) {
  22702. return (
  22703. (s = new al(s, o, i, C, j)),
  22704. 1 === o ? ((o = 1), !0 === w && (o |= 8)) : (o = 0),
  22705. (w = Bg(3, null, null, o)),
  22706. (s.current = w),
  22707. (w.stateNode = s),
  22708. (w.memoizedState = {
  22709. element: u,
  22710. isDehydrated: i,
  22711. cache: null,
  22712. transitions: null,
  22713. pendingSuspenseBoundaries: null
  22714. }),
  22715. kh(w),
  22716. s
  22717. );
  22718. }
  22719. function dl(s) {
  22720. if (!s) return En;
  22721. e: {
  22722. if (Vb((s = s._reactInternals)) !== s || 1 !== s.tag) throw Error(p(170));
  22723. var o = s;
  22724. do {
  22725. switch (o.tag) {
  22726. case 3:
  22727. o = o.stateNode.context;
  22728. break e;
  22729. case 1:
  22730. if (Zf(o.type)) {
  22731. o = o.stateNode.__reactInternalMemoizedMergedChildContext;
  22732. break e;
  22733. }
  22734. }
  22735. o = o.return;
  22736. } while (null !== o);
  22737. throw Error(p(171));
  22738. }
  22739. if (1 === s.tag) {
  22740. var i = s.type;
  22741. if (Zf(i)) return bg(s, i, o);
  22742. }
  22743. return o;
  22744. }
  22745. function el(s, o, i, u, _, w, x, C, j) {
  22746. return (
  22747. ((s = bl(i, u, !0, s, 0, w, 0, C, j)).context = dl(null)),
  22748. (i = s.current),
  22749. ((w = mh((u = R()), (_ = yi(i)))).callback = null != o ? o : null),
  22750. nh(i, w, _),
  22751. (s.current.lanes = _),
  22752. Ac(s, _, u),
  22753. Dk(s, u),
  22754. s
  22755. );
  22756. }
  22757. function fl(s, o, i, u) {
  22758. var _ = o.current,
  22759. w = R(),
  22760. x = yi(_);
  22761. return (
  22762. (i = dl(i)),
  22763. null === o.context ? (o.context = i) : (o.pendingContext = i),
  22764. ((o = mh(w, x)).payload = { element: s }),
  22765. null !== (u = void 0 === u ? null : u) && (o.callback = u),
  22766. null !== (s = nh(_, o, x)) && (gi(s, _, x, w), oh(s, _, x)),
  22767. x
  22768. );
  22769. }
  22770. function gl(s) {
  22771. return (s = s.current).child ? (s.child.tag, s.child.stateNode) : null;
  22772. }
  22773. function hl(s, o) {
  22774. if (null !== (s = s.memoizedState) && null !== s.dehydrated) {
  22775. var i = s.retryLane;
  22776. s.retryLane = 0 !== i && i < o ? i : o;
  22777. }
  22778. }
  22779. function il(s, o) {
  22780. hl(s, o), (s = s.alternate) && hl(s, o);
  22781. }
  22782. Ts = function (s, o, i) {
  22783. if (null !== s)
  22784. if (s.memoizedProps !== o.pendingProps || Sn.current) _s = !0;
  22785. else {
  22786. if (!(s.lanes & i || 128 & o.flags))
  22787. return (
  22788. (_s = !1),
  22789. (function yj(s, o, i) {
  22790. switch (o.tag) {
  22791. case 3:
  22792. kj(o), Ig();
  22793. break;
  22794. case 5:
  22795. Ah(o);
  22796. break;
  22797. case 1:
  22798. Zf(o.type) && cg(o);
  22799. break;
  22800. case 4:
  22801. yh(o, o.stateNode.containerInfo);
  22802. break;
  22803. case 10:
  22804. var u = o.type._context,
  22805. _ = o.memoizedProps.value;
  22806. G(zn, u._currentValue), (u._currentValue = _);
  22807. break;
  22808. case 13:
  22809. if (null !== (u = o.memoizedState))
  22810. return null !== u.dehydrated
  22811. ? (G(es, 1 & es.current), (o.flags |= 128), null)
  22812. : i & o.child.childLanes
  22813. ? oj(s, o, i)
  22814. : (G(es, 1 & es.current),
  22815. null !== (s = Zi(s, o, i)) ? s.sibling : null);
  22816. G(es, 1 & es.current);
  22817. break;
  22818. case 19:
  22819. if (((u = !!(i & o.childLanes)), 128 & s.flags)) {
  22820. if (u) return xj(s, o, i);
  22821. o.flags |= 128;
  22822. }
  22823. if (
  22824. (null !== (_ = o.memoizedState) &&
  22825. ((_.rendering = null), (_.tail = null), (_.lastEffect = null)),
  22826. G(es, es.current),
  22827. u)
  22828. )
  22829. break;
  22830. return null;
  22831. case 22:
  22832. case 23:
  22833. return (o.lanes = 0), dj(s, o, i);
  22834. }
  22835. return Zi(s, o, i);
  22836. })(s, o, i)
  22837. );
  22838. _s = !!(131072 & s.flags);
  22839. }
  22840. else (_s = !1), Fn && 1048576 & o.flags && ug(o, Pn, o.index);
  22841. switch (((o.lanes = 0), o.tag)) {
  22842. case 2:
  22843. var u = o.type;
  22844. ij(s, o), (s = o.pendingProps);
  22845. var _ = Yf(o, wn.current);
  22846. ch(o, i), (_ = Nh(null, o, u, s, _, i));
  22847. var w = Sh();
  22848. return (
  22849. (o.flags |= 1),
  22850. 'object' == typeof _ &&
  22851. null !== _ &&
  22852. 'function' == typeof _.render &&
  22853. void 0 === _.$$typeof
  22854. ? ((o.tag = 1),
  22855. (o.memoizedState = null),
  22856. (o.updateQueue = null),
  22857. Zf(u) ? ((w = !0), cg(o)) : (w = !1),
  22858. (o.memoizedState = null !== _.state && void 0 !== _.state ? _.state : null),
  22859. kh(o),
  22860. (_.updater = ys),
  22861. (o.stateNode = _),
  22862. (_._reactInternals = o),
  22863. Ii(o, u, s, i),
  22864. (o = jj(null, o, u, !0, w, i)))
  22865. : ((o.tag = 0), Fn && w && vg(o), Xi(null, o, _, i), (o = o.child)),
  22866. o
  22867. );
  22868. case 16:
  22869. u = o.elementType;
  22870. e: {
  22871. switch (
  22872. (ij(s, o),
  22873. (s = o.pendingProps),
  22874. (u = (_ = u._init)(u._payload)),
  22875. (o.type = u),
  22876. (_ = o.tag =
  22877. (function Zk(s) {
  22878. if ('function' == typeof s) return aj(s) ? 1 : 0;
  22879. if (null != s) {
  22880. if ((s = s.$$typeof) === pe) return 11;
  22881. if (s === ye) return 14;
  22882. }
  22883. return 2;
  22884. })(u)),
  22885. (s = Ci(u, s)),
  22886. _)
  22887. ) {
  22888. case 0:
  22889. o = cj(null, o, u, s, i);
  22890. break e;
  22891. case 1:
  22892. o = hj(null, o, u, s, i);
  22893. break e;
  22894. case 11:
  22895. o = Yi(null, o, u, s, i);
  22896. break e;
  22897. case 14:
  22898. o = $i(null, o, u, Ci(u.type, s), i);
  22899. break e;
  22900. }
  22901. throw Error(p(306, u, ''));
  22902. }
  22903. return o;
  22904. case 0:
  22905. return (
  22906. (u = o.type),
  22907. (_ = o.pendingProps),
  22908. cj(s, o, u, (_ = o.elementType === u ? _ : Ci(u, _)), i)
  22909. );
  22910. case 1:
  22911. return (
  22912. (u = o.type),
  22913. (_ = o.pendingProps),
  22914. hj(s, o, u, (_ = o.elementType === u ? _ : Ci(u, _)), i)
  22915. );
  22916. case 3:
  22917. e: {
  22918. if ((kj(o), null === s)) throw Error(p(387));
  22919. (u = o.pendingProps),
  22920. (_ = (w = o.memoizedState).element),
  22921. lh(s, o),
  22922. qh(o, u, null, i);
  22923. var x = o.memoizedState;
  22924. if (((u = x.element), w.isDehydrated)) {
  22925. if (
  22926. ((w = {
  22927. element: u,
  22928. isDehydrated: !1,
  22929. cache: x.cache,
  22930. pendingSuspenseBoundaries: x.pendingSuspenseBoundaries,
  22931. transitions: x.transitions
  22932. }),
  22933. (o.updateQueue.baseState = w),
  22934. (o.memoizedState = w),
  22935. 256 & o.flags)
  22936. ) {
  22937. o = lj(s, o, u, i, (_ = Ji(Error(p(423)), o)));
  22938. break e;
  22939. }
  22940. if (u !== _) {
  22941. o = lj(s, o, u, i, (_ = Ji(Error(p(424)), o)));
  22942. break e;
  22943. }
  22944. for (
  22945. Bn = Lf(o.stateNode.containerInfo.firstChild),
  22946. Ln = o,
  22947. Fn = !0,
  22948. qn = null,
  22949. i = Un(o, null, u, i),
  22950. o.child = i;
  22951. i;
  22952. )
  22953. (i.flags = (-3 & i.flags) | 4096), (i = i.sibling);
  22954. } else {
  22955. if ((Ig(), u === _)) {
  22956. o = Zi(s, o, i);
  22957. break e;
  22958. }
  22959. Xi(s, o, u, i);
  22960. }
  22961. o = o.child;
  22962. }
  22963. return o;
  22964. case 5:
  22965. return (
  22966. Ah(o),
  22967. null === s && Eg(o),
  22968. (u = o.type),
  22969. (_ = o.pendingProps),
  22970. (w = null !== s ? s.memoizedProps : null),
  22971. (x = _.children),
  22972. Ef(u, _) ? (x = null) : null !== w && Ef(u, w) && (o.flags |= 32),
  22973. gj(s, o),
  22974. Xi(s, o, x, i),
  22975. o.child
  22976. );
  22977. case 6:
  22978. return null === s && Eg(o), null;
  22979. case 13:
  22980. return oj(s, o, i);
  22981. case 4:
  22982. return (
  22983. yh(o, o.stateNode.containerInfo),
  22984. (u = o.pendingProps),
  22985. null === s ? (o.child = Vn(o, null, u, i)) : Xi(s, o, u, i),
  22986. o.child
  22987. );
  22988. case 11:
  22989. return (
  22990. (u = o.type),
  22991. (_ = o.pendingProps),
  22992. Yi(s, o, u, (_ = o.elementType === u ? _ : Ci(u, _)), i)
  22993. );
  22994. case 7:
  22995. return Xi(s, o, o.pendingProps, i), o.child;
  22996. case 8:
  22997. case 12:
  22998. return Xi(s, o, o.pendingProps.children, i), o.child;
  22999. case 10:
  23000. e: {
  23001. if (
  23002. ((u = o.type._context),
  23003. (_ = o.pendingProps),
  23004. (w = o.memoizedProps),
  23005. (x = _.value),
  23006. G(zn, u._currentValue),
  23007. (u._currentValue = x),
  23008. null !== w)
  23009. )
  23010. if (Lr(w.value, x)) {
  23011. if (w.children === _.children && !Sn.current) {
  23012. o = Zi(s, o, i);
  23013. break e;
  23014. }
  23015. } else
  23016. for (null !== (w = o.child) && (w.return = o); null !== w; ) {
  23017. var C = w.dependencies;
  23018. if (null !== C) {
  23019. x = w.child;
  23020. for (var j = C.firstContext; null !== j; ) {
  23021. if (j.context === u) {
  23022. if (1 === w.tag) {
  23023. (j = mh(-1, i & -i)).tag = 2;
  23024. var L = w.updateQueue;
  23025. if (null !== L) {
  23026. var B = (L = L.shared).pending;
  23027. null === B ? (j.next = j) : ((j.next = B.next), (B.next = j)),
  23028. (L.pending = j);
  23029. }
  23030. }
  23031. (w.lanes |= i),
  23032. null !== (j = w.alternate) && (j.lanes |= i),
  23033. bh(w.return, i, o),
  23034. (C.lanes |= i);
  23035. break;
  23036. }
  23037. j = j.next;
  23038. }
  23039. } else if (10 === w.tag) x = w.type === o.type ? null : w.child;
  23040. else if (18 === w.tag) {
  23041. if (null === (x = w.return)) throw Error(p(341));
  23042. (x.lanes |= i),
  23043. null !== (C = x.alternate) && (C.lanes |= i),
  23044. bh(x, i, o),
  23045. (x = w.sibling);
  23046. } else x = w.child;
  23047. if (null !== x) x.return = w;
  23048. else
  23049. for (x = w; null !== x; ) {
  23050. if (x === o) {
  23051. x = null;
  23052. break;
  23053. }
  23054. if (null !== (w = x.sibling)) {
  23055. (w.return = x.return), (x = w);
  23056. break;
  23057. }
  23058. x = x.return;
  23059. }
  23060. w = x;
  23061. }
  23062. Xi(s, o, _.children, i), (o = o.child);
  23063. }
  23064. return o;
  23065. case 9:
  23066. return (
  23067. (_ = o.type),
  23068. (u = o.pendingProps.children),
  23069. ch(o, i),
  23070. (u = u((_ = eh(_)))),
  23071. (o.flags |= 1),
  23072. Xi(s, o, u, i),
  23073. o.child
  23074. );
  23075. case 14:
  23076. return (_ = Ci((u = o.type), o.pendingProps)), $i(s, o, u, (_ = Ci(u.type, _)), i);
  23077. case 15:
  23078. return bj(s, o, o.type, o.pendingProps, i);
  23079. case 17:
  23080. return (
  23081. (u = o.type),
  23082. (_ = o.pendingProps),
  23083. (_ = o.elementType === u ? _ : Ci(u, _)),
  23084. ij(s, o),
  23085. (o.tag = 1),
  23086. Zf(u) ? ((s = !0), cg(o)) : (s = !1),
  23087. ch(o, i),
  23088. Gi(o, u, _),
  23089. Ii(o, u, _, i),
  23090. jj(null, o, u, !0, s, i)
  23091. );
  23092. case 19:
  23093. return xj(s, o, i);
  23094. case 22:
  23095. return dj(s, o, i);
  23096. }
  23097. throw Error(p(156, o.tag));
  23098. };
  23099. var uo =
  23100. 'function' == typeof reportError
  23101. ? reportError
  23102. : function (s) {
  23103. console.error(s);
  23104. };
  23105. function ll(s) {
  23106. this._internalRoot = s;
  23107. }
  23108. function ml(s) {
  23109. this._internalRoot = s;
  23110. }
  23111. function nl(s) {
  23112. return !(!s || (1 !== s.nodeType && 9 !== s.nodeType && 11 !== s.nodeType));
  23113. }
  23114. function ol(s) {
  23115. return !(
  23116. !s ||
  23117. (1 !== s.nodeType &&
  23118. 9 !== s.nodeType &&
  23119. 11 !== s.nodeType &&
  23120. (8 !== s.nodeType || ' react-mount-point-unstable ' !== s.nodeValue))
  23121. );
  23122. }
  23123. function pl() {}
  23124. function rl(s, o, i, u, _) {
  23125. var w = i._reactRootContainer;
  23126. if (w) {
  23127. var x = w;
  23128. if ('function' == typeof _) {
  23129. var C = _;
  23130. _ = function () {
  23131. var s = gl(x);
  23132. C.call(s);
  23133. };
  23134. }
  23135. fl(o, x, s, _);
  23136. } else
  23137. x = (function ql(s, o, i, u, _) {
  23138. if (_) {
  23139. if ('function' == typeof u) {
  23140. var w = u;
  23141. u = function () {
  23142. var s = gl(x);
  23143. w.call(s);
  23144. };
  23145. }
  23146. var x = el(o, u, s, 0, null, !1, 0, '', pl);
  23147. return (
  23148. (s._reactRootContainer = x),
  23149. (s[mn] = x.current),
  23150. sf(8 === s.nodeType ? s.parentNode : s),
  23151. Rk(),
  23152. x
  23153. );
  23154. }
  23155. for (; (_ = s.lastChild); ) s.removeChild(_);
  23156. if ('function' == typeof u) {
  23157. var C = u;
  23158. u = function () {
  23159. var s = gl(j);
  23160. C.call(s);
  23161. };
  23162. }
  23163. var j = bl(s, 0, !1, null, 0, !1, 0, '', pl);
  23164. return (
  23165. (s._reactRootContainer = j),
  23166. (s[mn] = j.current),
  23167. sf(8 === s.nodeType ? s.parentNode : s),
  23168. Rk(function () {
  23169. fl(o, j, i, u);
  23170. }),
  23171. j
  23172. );
  23173. })(i, o, s, _, u);
  23174. return gl(x);
  23175. }
  23176. (ml.prototype.render = ll.prototype.render =
  23177. function (s) {
  23178. var o = this._internalRoot;
  23179. if (null === o) throw Error(p(409));
  23180. fl(s, o, null, null);
  23181. }),
  23182. (ml.prototype.unmount = ll.prototype.unmount =
  23183. function () {
  23184. var s = this._internalRoot;
  23185. if (null !== s) {
  23186. this._internalRoot = null;
  23187. var o = s.containerInfo;
  23188. Rk(function () {
  23189. fl(null, s, null, null);
  23190. }),
  23191. (o[mn] = null);
  23192. }
  23193. }),
  23194. (ml.prototype.unstable_scheduleHydration = function (s) {
  23195. if (s) {
  23196. var o = Mt();
  23197. s = { blockedOn: null, target: s, priority: o };
  23198. for (var i = 0; i < $t.length && 0 !== o && o < $t[i].priority; i++);
  23199. $t.splice(i, 0, s), 0 === i && Vc(s);
  23200. }
  23201. }),
  23202. (jt = function (s) {
  23203. switch (s.tag) {
  23204. case 3:
  23205. var o = s.stateNode;
  23206. if (o.current.memoizedState.isDehydrated) {
  23207. var i = tc(o.pendingLanes);
  23208. 0 !== i && (Cc(o, 1 | i), Dk(o, dt()), !(6 & Bs) && ((Zs = dt() + 500), jg()));
  23209. }
  23210. break;
  23211. case 13:
  23212. Rk(function () {
  23213. var o = ih(s, 1);
  23214. if (null !== o) {
  23215. var i = R();
  23216. gi(o, s, 1, i);
  23217. }
  23218. }),
  23219. il(s, 1);
  23220. }
  23221. }),
  23222. (It = function (s) {
  23223. if (13 === s.tag) {
  23224. var o = ih(s, 134217728);
  23225. if (null !== o) gi(o, s, 134217728, R());
  23226. il(s, 134217728);
  23227. }
  23228. }),
  23229. (Pt = function (s) {
  23230. if (13 === s.tag) {
  23231. var o = yi(s),
  23232. i = ih(s, o);
  23233. if (null !== i) gi(i, s, o, R());
  23234. il(s, o);
  23235. }
  23236. }),
  23237. (Mt = function () {
  23238. return At;
  23239. }),
  23240. (Tt = function (s, o) {
  23241. var i = At;
  23242. try {
  23243. return (At = s), o();
  23244. } finally {
  23245. At = i;
  23246. }
  23247. }),
  23248. (Xe = function (s, o, i) {
  23249. switch (o) {
  23250. case 'input':
  23251. if ((bb(s, i), (o = i.name), 'radio' === i.type && null != o)) {
  23252. for (i = s; i.parentNode; ) i = i.parentNode;
  23253. for (
  23254. i = i.querySelectorAll(
  23255. 'input[name=' + JSON.stringify('' + o) + '][type="radio"]'
  23256. ),
  23257. o = 0;
  23258. o < i.length;
  23259. o++
  23260. ) {
  23261. var u = i[o];
  23262. if (u !== s && u.form === s.form) {
  23263. var _ = Db(u);
  23264. if (!_) throw Error(p(90));
  23265. Wa(u), bb(u, _);
  23266. }
  23267. }
  23268. }
  23269. break;
  23270. case 'textarea':
  23271. ib(s, i);
  23272. break;
  23273. case 'select':
  23274. null != (o = i.value) && fb(s, !!i.multiple, o, !1);
  23275. }
  23276. }),
  23277. (Gb = Qk),
  23278. (Hb = Rk);
  23279. var po = { usingClientEntryPoint: !1, Events: [Cb, ue, Db, Eb, Fb, Qk] },
  23280. ho = {
  23281. findFiberByHostInstance: Wc,
  23282. bundleType: 0,
  23283. version: '18.3.1',
  23284. rendererPackageName: 'react-dom'
  23285. },
  23286. fo = {
  23287. bundleType: ho.bundleType,
  23288. version: ho.version,
  23289. rendererPackageName: ho.rendererPackageName,
  23290. rendererConfig: ho.rendererConfig,
  23291. overrideHookState: null,
  23292. overrideHookStateDeletePath: null,
  23293. overrideHookStateRenamePath: null,
  23294. overrideProps: null,
  23295. overridePropsDeletePath: null,
  23296. overridePropsRenamePath: null,
  23297. setErrorHandler: null,
  23298. setSuspenseHandler: null,
  23299. scheduleUpdate: null,
  23300. currentDispatcherRef: z.ReactCurrentDispatcher,
  23301. findHostInstanceByFiber: function (s) {
  23302. return null === (s = Zb(s)) ? null : s.stateNode;
  23303. },
  23304. findFiberByHostInstance:
  23305. ho.findFiberByHostInstance ||
  23306. function jl() {
  23307. return null;
  23308. },
  23309. findHostInstancesForRefresh: null,
  23310. scheduleRefresh: null,
  23311. scheduleRoot: null,
  23312. setRefreshHandler: null,
  23313. getCurrentFiber: null,
  23314. reconcilerVersion: '18.3.1-next-f1338f8080-20240426'
  23315. };
  23316. if ('undefined' != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
  23317. var mo = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  23318. if (!mo.isDisabled && mo.supportsFiber)
  23319. try {
  23320. (Et = mo.inject(fo)), (wt = mo);
  23321. } catch (qe) {}
  23322. }
  23323. (o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = po),
  23324. (o.createPortal = function (s, o) {
  23325. var i = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
  23326. if (!nl(o)) throw Error(p(200));
  23327. return (function cl(s, o, i) {
  23328. var u = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
  23329. return {
  23330. $$typeof: Z,
  23331. key: null == u ? null : '' + u,
  23332. children: s,
  23333. containerInfo: o,
  23334. implementation: i
  23335. };
  23336. })(s, o, null, i);
  23337. }),
  23338. (o.createRoot = function (s, o) {
  23339. if (!nl(s)) throw Error(p(299));
  23340. var i = !1,
  23341. u = '',
  23342. _ = uo;
  23343. return (
  23344. null != o &&
  23345. (!0 === o.unstable_strictMode && (i = !0),
  23346. void 0 !== o.identifierPrefix && (u = o.identifierPrefix),
  23347. void 0 !== o.onRecoverableError && (_ = o.onRecoverableError)),
  23348. (o = bl(s, 1, !1, null, 0, i, 0, u, _)),
  23349. (s[mn] = o.current),
  23350. sf(8 === s.nodeType ? s.parentNode : s),
  23351. new ll(o)
  23352. );
  23353. }),
  23354. (o.findDOMNode = function (s) {
  23355. if (null == s) return null;
  23356. if (1 === s.nodeType) return s;
  23357. var o = s._reactInternals;
  23358. if (void 0 === o) {
  23359. if ('function' == typeof s.render) throw Error(p(188));
  23360. throw ((s = Object.keys(s).join(',')), Error(p(268, s)));
  23361. }
  23362. return (s = null === (s = Zb(o)) ? null : s.stateNode);
  23363. }),
  23364. (o.flushSync = function (s) {
  23365. return Rk(s);
  23366. }),
  23367. (o.hydrate = function (s, o, i) {
  23368. if (!ol(o)) throw Error(p(200));
  23369. return rl(null, s, o, !0, i);
  23370. }),
  23371. (o.hydrateRoot = function (s, o, i) {
  23372. if (!nl(s)) throw Error(p(405));
  23373. var u = (null != i && i.hydratedSources) || null,
  23374. _ = !1,
  23375. w = '',
  23376. x = uo;
  23377. if (
  23378. (null != i &&
  23379. (!0 === i.unstable_strictMode && (_ = !0),
  23380. void 0 !== i.identifierPrefix && (w = i.identifierPrefix),
  23381. void 0 !== i.onRecoverableError && (x = i.onRecoverableError)),
  23382. (o = el(o, null, s, 1, null != i ? i : null, _, 0, w, x)),
  23383. (s[mn] = o.current),
  23384. sf(s),
  23385. u)
  23386. )
  23387. for (s = 0; s < u.length; s++)
  23388. (_ = (_ = (i = u[s])._getVersion)(i._source)),
  23389. null == o.mutableSourceEagerHydrationData
  23390. ? (o.mutableSourceEagerHydrationData = [i, _])
  23391. : o.mutableSourceEagerHydrationData.push(i, _);
  23392. return new ml(o);
  23393. }),
  23394. (o.render = function (s, o, i) {
  23395. if (!ol(o)) throw Error(p(200));
  23396. return rl(null, s, o, !1, i);
  23397. }),
  23398. (o.unmountComponentAtNode = function (s) {
  23399. if (!ol(s)) throw Error(p(40));
  23400. return (
  23401. !!s._reactRootContainer &&
  23402. (Rk(function () {
  23403. rl(null, null, s, !1, function () {
  23404. (s._reactRootContainer = null), (s[mn] = null);
  23405. });
  23406. }),
  23407. !0)
  23408. );
  23409. }),
  23410. (o.unstable_batchedUpdates = Qk),
  23411. (o.unstable_renderSubtreeIntoContainer = function (s, o, i, u) {
  23412. if (!ol(i)) throw Error(p(200));
  23413. if (null == s || void 0 === s._reactInternals) throw Error(p(38));
  23414. return rl(s, o, i, !1, u);
  23415. }),
  23416. (o.version = '18.3.1-next-f1338f8080-20240426');
  23417. },
  23418. 40961: (s, o, i) => {
  23419. 'use strict';
  23420. !(function checkDCE() {
  23421. if (
  23422. 'undefined' != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
  23423. 'function' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE
  23424. )
  23425. try {
  23426. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  23427. } catch (s) {
  23428. console.error(s);
  23429. }
  23430. })(),
  23431. (s.exports = i(22551));
  23432. },
  23433. 2209: (s, o, i) => {
  23434. 'use strict';
  23435. var u,
  23436. _ = i(9404),
  23437. w = function productionTypeChecker() {
  23438. invariant(!1, 'ImmutablePropTypes type checking code is stripped in production.');
  23439. };
  23440. w.isRequired = w;
  23441. var x = function getProductionTypeChecker() {
  23442. return w;
  23443. };
  23444. function getPropType(s) {
  23445. var o = typeof s;
  23446. return Array.isArray(s)
  23447. ? 'array'
  23448. : s instanceof RegExp
  23449. ? 'object'
  23450. : s instanceof _.Iterable
  23451. ? 'Immutable.' + s.toSource().split(' ')[0]
  23452. : o;
  23453. }
  23454. function createChainableTypeChecker(s) {
  23455. function checkType(o, i, u, _, w, x) {
  23456. for (var C = arguments.length, j = Array(C > 6 ? C - 6 : 0), L = 6; L < C; L++)
  23457. j[L - 6] = arguments[L];
  23458. return (
  23459. (x = x || u),
  23460. (_ = _ || '<<anonymous>>'),
  23461. null != i[u]
  23462. ? s.apply(void 0, [i, u, _, w, x].concat(j))
  23463. : o
  23464. ? new Error('Required ' + w + ' `' + x + '` was not specified in `' + _ + '`.')
  23465. : void 0
  23466. );
  23467. }
  23468. var o = checkType.bind(null, !1);
  23469. return (o.isRequired = checkType.bind(null, !0)), o;
  23470. }
  23471. function createIterableSubclassTypeChecker(s, o) {
  23472. return (function createImmutableTypeChecker(s, o) {
  23473. return createChainableTypeChecker(function validate(i, u, _, w, x) {
  23474. var C = i[u];
  23475. if (!o(C)) {
  23476. var j = getPropType(C);
  23477. return new Error(
  23478. 'Invalid ' +
  23479. w +
  23480. ' `' +
  23481. x +
  23482. '` of type `' +
  23483. j +
  23484. '` supplied to `' +
  23485. _ +
  23486. '`, expected `' +
  23487. s +
  23488. '`.'
  23489. );
  23490. }
  23491. return null;
  23492. });
  23493. })('Iterable.' + s, function (s) {
  23494. return _.Iterable.isIterable(s) && o(s);
  23495. });
  23496. }
  23497. ((u = {
  23498. listOf: x,
  23499. mapOf: x,
  23500. orderedMapOf: x,
  23501. setOf: x,
  23502. orderedSetOf: x,
  23503. stackOf: x,
  23504. iterableOf: x,
  23505. recordOf: x,
  23506. shape: x,
  23507. contains: x,
  23508. mapContains: x,
  23509. orderedMapContains: x,
  23510. list: w,
  23511. map: w,
  23512. orderedMap: w,
  23513. set: w,
  23514. orderedSet: w,
  23515. stack: w,
  23516. seq: w,
  23517. record: w,
  23518. iterable: w
  23519. }).iterable.indexed = createIterableSubclassTypeChecker('Indexed', _.Iterable.isIndexed)),
  23520. (u.iterable.keyed = createIterableSubclassTypeChecker('Keyed', _.Iterable.isKeyed)),
  23521. (s.exports = u);
  23522. },
  23523. 15287: (s, o) => {
  23524. 'use strict';
  23525. var i = Symbol.for('react.element'),
  23526. u = Symbol.for('react.portal'),
  23527. _ = Symbol.for('react.fragment'),
  23528. w = Symbol.for('react.strict_mode'),
  23529. x = Symbol.for('react.profiler'),
  23530. C = Symbol.for('react.provider'),
  23531. j = Symbol.for('react.context'),
  23532. L = Symbol.for('react.forward_ref'),
  23533. B = Symbol.for('react.suspense'),
  23534. $ = Symbol.for('react.memo'),
  23535. V = Symbol.for('react.lazy'),
  23536. U = Symbol.iterator;
  23537. var z = {
  23538. isMounted: function () {
  23539. return !1;
  23540. },
  23541. enqueueForceUpdate: function () {},
  23542. enqueueReplaceState: function () {},
  23543. enqueueSetState: function () {}
  23544. },
  23545. Y = Object.assign,
  23546. Z = {};
  23547. function E(s, o, i) {
  23548. (this.props = s), (this.context = o), (this.refs = Z), (this.updater = i || z);
  23549. }
  23550. function F() {}
  23551. function G(s, o, i) {
  23552. (this.props = s), (this.context = o), (this.refs = Z), (this.updater = i || z);
  23553. }
  23554. (E.prototype.isReactComponent = {}),
  23555. (E.prototype.setState = function (s, o) {
  23556. if ('object' != typeof s && 'function' != typeof s && null != s)
  23557. throw Error(
  23558. 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.'
  23559. );
  23560. this.updater.enqueueSetState(this, s, o, 'setState');
  23561. }),
  23562. (E.prototype.forceUpdate = function (s) {
  23563. this.updater.enqueueForceUpdate(this, s, 'forceUpdate');
  23564. }),
  23565. (F.prototype = E.prototype);
  23566. var ee = (G.prototype = new F());
  23567. (ee.constructor = G), Y(ee, E.prototype), (ee.isPureReactComponent = !0);
  23568. var ie = Array.isArray,
  23569. ae = Object.prototype.hasOwnProperty,
  23570. le = { current: null },
  23571. ce = { key: !0, ref: !0, __self: !0, __source: !0 };
  23572. function M(s, o, u) {
  23573. var _,
  23574. w = {},
  23575. x = null,
  23576. C = null;
  23577. if (null != o)
  23578. for (_ in (void 0 !== o.ref && (C = o.ref), void 0 !== o.key && (x = '' + o.key), o))
  23579. ae.call(o, _) && !ce.hasOwnProperty(_) && (w[_] = o[_]);
  23580. var j = arguments.length - 2;
  23581. if (1 === j) w.children = u;
  23582. else if (1 < j) {
  23583. for (var L = Array(j), B = 0; B < j; B++) L[B] = arguments[B + 2];
  23584. w.children = L;
  23585. }
  23586. if (s && s.defaultProps)
  23587. for (_ in (j = s.defaultProps)) void 0 === w[_] && (w[_] = j[_]);
  23588. return { $$typeof: i, type: s, key: x, ref: C, props: w, _owner: le.current };
  23589. }
  23590. function O(s) {
  23591. return 'object' == typeof s && null !== s && s.$$typeof === i;
  23592. }
  23593. var pe = /\/+/g;
  23594. function Q(s, o) {
  23595. return 'object' == typeof s && null !== s && null != s.key
  23596. ? (function escape(s) {
  23597. var o = { '=': '=0', ':': '=2' };
  23598. return (
  23599. '$' +
  23600. s.replace(/[=:]/g, function (s) {
  23601. return o[s];
  23602. })
  23603. );
  23604. })('' + s.key)
  23605. : o.toString(36);
  23606. }
  23607. function R(s, o, _, w, x) {
  23608. var C = typeof s;
  23609. ('undefined' !== C && 'boolean' !== C) || (s = null);
  23610. var j = !1;
  23611. if (null === s) j = !0;
  23612. else
  23613. switch (C) {
  23614. case 'string':
  23615. case 'number':
  23616. j = !0;
  23617. break;
  23618. case 'object':
  23619. switch (s.$$typeof) {
  23620. case i:
  23621. case u:
  23622. j = !0;
  23623. }
  23624. }
  23625. if (j)
  23626. return (
  23627. (x = x((j = s))),
  23628. (s = '' === w ? '.' + Q(j, 0) : w),
  23629. ie(x)
  23630. ? ((_ = ''),
  23631. null != s && (_ = s.replace(pe, '$&/') + '/'),
  23632. R(x, o, _, '', function (s) {
  23633. return s;
  23634. }))
  23635. : null != x &&
  23636. (O(x) &&
  23637. (x = (function N(s, o) {
  23638. return {
  23639. $$typeof: i,
  23640. type: s.type,
  23641. key: o,
  23642. ref: s.ref,
  23643. props: s.props,
  23644. _owner: s._owner
  23645. };
  23646. })(
  23647. x,
  23648. _ +
  23649. (!x.key || (j && j.key === x.key)
  23650. ? ''
  23651. : ('' + x.key).replace(pe, '$&/') + '/') +
  23652. s
  23653. )),
  23654. o.push(x)),
  23655. 1
  23656. );
  23657. if (((j = 0), (w = '' === w ? '.' : w + ':'), ie(s)))
  23658. for (var L = 0; L < s.length; L++) {
  23659. var B = w + Q((C = s[L]), L);
  23660. j += R(C, o, _, B, x);
  23661. }
  23662. else if (
  23663. ((B = (function A(s) {
  23664. return null === s || 'object' != typeof s
  23665. ? null
  23666. : 'function' == typeof (s = (U && s[U]) || s['@@iterator'])
  23667. ? s
  23668. : null;
  23669. })(s)),
  23670. 'function' == typeof B)
  23671. )
  23672. for (s = B.call(s), L = 0; !(C = s.next()).done; )
  23673. j += R((C = C.value), o, _, (B = w + Q(C, L++)), x);
  23674. else if ('object' === C)
  23675. throw (
  23676. ((o = String(s)),
  23677. Error(
  23678. 'Objects are not valid as a React child (found: ' +
  23679. ('[object Object]' === o
  23680. ? 'object with keys {' + Object.keys(s).join(', ') + '}'
  23681. : o) +
  23682. '). If you meant to render a collection of children, use an array instead.'
  23683. ))
  23684. );
  23685. return j;
  23686. }
  23687. function S(s, o, i) {
  23688. if (null == s) return s;
  23689. var u = [],
  23690. _ = 0;
  23691. return (
  23692. R(s, u, '', '', function (s) {
  23693. return o.call(i, s, _++);
  23694. }),
  23695. u
  23696. );
  23697. }
  23698. function T(s) {
  23699. if (-1 === s._status) {
  23700. var o = s._result;
  23701. (o = o()).then(
  23702. function (o) {
  23703. (0 !== s._status && -1 !== s._status) || ((s._status = 1), (s._result = o));
  23704. },
  23705. function (o) {
  23706. (0 !== s._status && -1 !== s._status) || ((s._status = 2), (s._result = o));
  23707. }
  23708. ),
  23709. -1 === s._status && ((s._status = 0), (s._result = o));
  23710. }
  23711. if (1 === s._status) return s._result.default;
  23712. throw s._result;
  23713. }
  23714. var de = { current: null },
  23715. fe = { transition: null },
  23716. ye = { ReactCurrentDispatcher: de, ReactCurrentBatchConfig: fe, ReactCurrentOwner: le };
  23717. function X() {
  23718. throw Error('act(...) is not supported in production builds of React.');
  23719. }
  23720. (o.Children = {
  23721. map: S,
  23722. forEach: function (s, o, i) {
  23723. S(
  23724. s,
  23725. function () {
  23726. o.apply(this, arguments);
  23727. },
  23728. i
  23729. );
  23730. },
  23731. count: function (s) {
  23732. var o = 0;
  23733. return (
  23734. S(s, function () {
  23735. o++;
  23736. }),
  23737. o
  23738. );
  23739. },
  23740. toArray: function (s) {
  23741. return (
  23742. S(s, function (s) {
  23743. return s;
  23744. }) || []
  23745. );
  23746. },
  23747. only: function (s) {
  23748. if (!O(s))
  23749. throw Error(
  23750. 'React.Children.only expected to receive a single React element child.'
  23751. );
  23752. return s;
  23753. }
  23754. }),
  23755. (o.Component = E),
  23756. (o.Fragment = _),
  23757. (o.Profiler = x),
  23758. (o.PureComponent = G),
  23759. (o.StrictMode = w),
  23760. (o.Suspense = B),
  23761. (o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye),
  23762. (o.act = X),
  23763. (o.cloneElement = function (s, o, u) {
  23764. if (null == s)
  23765. throw Error(
  23766. 'React.cloneElement(...): The argument must be a React element, but you passed ' +
  23767. s +
  23768. '.'
  23769. );
  23770. var _ = Y({}, s.props),
  23771. w = s.key,
  23772. x = s.ref,
  23773. C = s._owner;
  23774. if (null != o) {
  23775. if (
  23776. (void 0 !== o.ref && ((x = o.ref), (C = le.current)),
  23777. void 0 !== o.key && (w = '' + o.key),
  23778. s.type && s.type.defaultProps)
  23779. )
  23780. var j = s.type.defaultProps;
  23781. for (L in o)
  23782. ae.call(o, L) &&
  23783. !ce.hasOwnProperty(L) &&
  23784. (_[L] = void 0 === o[L] && void 0 !== j ? j[L] : o[L]);
  23785. }
  23786. var L = arguments.length - 2;
  23787. if (1 === L) _.children = u;
  23788. else if (1 < L) {
  23789. j = Array(L);
  23790. for (var B = 0; B < L; B++) j[B] = arguments[B + 2];
  23791. _.children = j;
  23792. }
  23793. return { $$typeof: i, type: s.type, key: w, ref: x, props: _, _owner: C };
  23794. }),
  23795. (o.createContext = function (s) {
  23796. return (
  23797. ((s = {
  23798. $$typeof: j,
  23799. _currentValue: s,
  23800. _currentValue2: s,
  23801. _threadCount: 0,
  23802. Provider: null,
  23803. Consumer: null,
  23804. _defaultValue: null,
  23805. _globalName: null
  23806. }).Provider = { $$typeof: C, _context: s }),
  23807. (s.Consumer = s)
  23808. );
  23809. }),
  23810. (o.createElement = M),
  23811. (o.createFactory = function (s) {
  23812. var o = M.bind(null, s);
  23813. return (o.type = s), o;
  23814. }),
  23815. (o.createRef = function () {
  23816. return { current: null };
  23817. }),
  23818. (o.forwardRef = function (s) {
  23819. return { $$typeof: L, render: s };
  23820. }),
  23821. (o.isValidElement = O),
  23822. (o.lazy = function (s) {
  23823. return { $$typeof: V, _payload: { _status: -1, _result: s }, _init: T };
  23824. }),
  23825. (o.memo = function (s, o) {
  23826. return { $$typeof: $, type: s, compare: void 0 === o ? null : o };
  23827. }),
  23828. (o.startTransition = function (s) {
  23829. var o = fe.transition;
  23830. fe.transition = {};
  23831. try {
  23832. s();
  23833. } finally {
  23834. fe.transition = o;
  23835. }
  23836. }),
  23837. (o.unstable_act = X),
  23838. (o.useCallback = function (s, o) {
  23839. return de.current.useCallback(s, o);
  23840. }),
  23841. (o.useContext = function (s) {
  23842. return de.current.useContext(s);
  23843. }),
  23844. (o.useDebugValue = function () {}),
  23845. (o.useDeferredValue = function (s) {
  23846. return de.current.useDeferredValue(s);
  23847. }),
  23848. (o.useEffect = function (s, o) {
  23849. return de.current.useEffect(s, o);
  23850. }),
  23851. (o.useId = function () {
  23852. return de.current.useId();
  23853. }),
  23854. (o.useImperativeHandle = function (s, o, i) {
  23855. return de.current.useImperativeHandle(s, o, i);
  23856. }),
  23857. (o.useInsertionEffect = function (s, o) {
  23858. return de.current.useInsertionEffect(s, o);
  23859. }),
  23860. (o.useLayoutEffect = function (s, o) {
  23861. return de.current.useLayoutEffect(s, o);
  23862. }),
  23863. (o.useMemo = function (s, o) {
  23864. return de.current.useMemo(s, o);
  23865. }),
  23866. (o.useReducer = function (s, o, i) {
  23867. return de.current.useReducer(s, o, i);
  23868. }),
  23869. (o.useRef = function (s) {
  23870. return de.current.useRef(s);
  23871. }),
  23872. (o.useState = function (s) {
  23873. return de.current.useState(s);
  23874. }),
  23875. (o.useSyncExternalStore = function (s, o, i) {
  23876. return de.current.useSyncExternalStore(s, o, i);
  23877. }),
  23878. (o.useTransition = function () {
  23879. return de.current.useTransition();
  23880. }),
  23881. (o.version = '18.3.1');
  23882. },
  23883. 96540: (s, o, i) => {
  23884. 'use strict';
  23885. s.exports = i(15287);
  23886. },
  23887. 86048: (s) => {
  23888. 'use strict';
  23889. var o = {};
  23890. function createErrorType(s, i, u) {
  23891. u || (u = Error);
  23892. var _ = (function (s) {
  23893. function NodeError(o, u, _) {
  23894. return (
  23895. s.call(
  23896. this,
  23897. (function getMessage(s, o, u) {
  23898. return 'string' == typeof i ? i : i(s, o, u);
  23899. })(o, u, _)
  23900. ) || this
  23901. );
  23902. }
  23903. return (
  23904. (function _inheritsLoose(s, o) {
  23905. (s.prototype = Object.create(o.prototype)),
  23906. (s.prototype.constructor = s),
  23907. (s.__proto__ = o);
  23908. })(NodeError, s),
  23909. NodeError
  23910. );
  23911. })(u);
  23912. (_.prototype.name = u.name), (_.prototype.code = s), (o[s] = _);
  23913. }
  23914. function oneOf(s, o) {
  23915. if (Array.isArray(s)) {
  23916. var i = s.length;
  23917. return (
  23918. (s = s.map(function (s) {
  23919. return String(s);
  23920. })),
  23921. i > 2
  23922. ? 'one of '.concat(o, ' ').concat(s.slice(0, i - 1).join(', '), ', or ') +
  23923. s[i - 1]
  23924. : 2 === i
  23925. ? 'one of '.concat(o, ' ').concat(s[0], ' or ').concat(s[1])
  23926. : 'of '.concat(o, ' ').concat(s[0])
  23927. );
  23928. }
  23929. return 'of '.concat(o, ' ').concat(String(s));
  23930. }
  23931. createErrorType(
  23932. 'ERR_INVALID_OPT_VALUE',
  23933. function (s, o) {
  23934. return 'The value "' + o + '" is invalid for option "' + s + '"';
  23935. },
  23936. TypeError
  23937. ),
  23938. createErrorType(
  23939. 'ERR_INVALID_ARG_TYPE',
  23940. function (s, o, i) {
  23941. var u, _;
  23942. if (
  23943. ('string' == typeof o &&
  23944. (function startsWith(s, o, i) {
  23945. return s.substr(!i || i < 0 ? 0 : +i, o.length) === o;
  23946. })(o, 'not ')
  23947. ? ((u = 'must not be'), (o = o.replace(/^not /, '')))
  23948. : (u = 'must be'),
  23949. (function endsWith(s, o, i) {
  23950. return (
  23951. (void 0 === i || i > s.length) && (i = s.length),
  23952. s.substring(i - o.length, i) === o
  23953. );
  23954. })(s, ' argument'))
  23955. )
  23956. _ = 'The '.concat(s, ' ').concat(u, ' ').concat(oneOf(o, 'type'));
  23957. else {
  23958. var w = (function includes(s, o, i) {
  23959. return (
  23960. 'number' != typeof i && (i = 0),
  23961. !(i + o.length > s.length) && -1 !== s.indexOf(o, i)
  23962. );
  23963. })(s, '.')
  23964. ? 'property'
  23965. : 'argument';
  23966. _ = 'The "'
  23967. .concat(s, '" ')
  23968. .concat(w, ' ')
  23969. .concat(u, ' ')
  23970. .concat(oneOf(o, 'type'));
  23971. }
  23972. return (_ += '. Received type '.concat(typeof i));
  23973. },
  23974. TypeError
  23975. ),
  23976. createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF'),
  23977. createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (s) {
  23978. return 'The ' + s + ' method is not implemented';
  23979. }),
  23980. createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close'),
  23981. createErrorType('ERR_STREAM_DESTROYED', function (s) {
  23982. return 'Cannot call ' + s + ' after a stream was destroyed';
  23983. }),
  23984. createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'),
  23985. createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable'),
  23986. createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end'),
  23987. createErrorType(
  23988. 'ERR_STREAM_NULL_VALUES',
  23989. 'May not write null values to stream',
  23990. TypeError
  23991. ),
  23992. createErrorType(
  23993. 'ERR_UNKNOWN_ENCODING',
  23994. function (s) {
  23995. return 'Unknown encoding: ' + s;
  23996. },
  23997. TypeError
  23998. ),
  23999. createErrorType(
  24000. 'ERR_STREAM_UNSHIFT_AFTER_END_EVENT',
  24001. 'stream.unshift() after end event'
  24002. ),
  24003. (s.exports.F = o);
  24004. },
  24005. 25382: (s, o, i) => {
  24006. 'use strict';
  24007. var u = i(65606),
  24008. _ =
  24009. Object.keys ||
  24010. function (s) {
  24011. var o = [];
  24012. for (var i in s) o.push(i);
  24013. return o;
  24014. };
  24015. s.exports = Duplex;
  24016. var w = i(45412),
  24017. x = i(16708);
  24018. i(56698)(Duplex, w);
  24019. for (var C = _(x.prototype), j = 0; j < C.length; j++) {
  24020. var L = C[j];
  24021. Duplex.prototype[L] || (Duplex.prototype[L] = x.prototype[L]);
  24022. }
  24023. function Duplex(s) {
  24024. if (!(this instanceof Duplex)) return new Duplex(s);
  24025. w.call(this, s),
  24026. x.call(this, s),
  24027. (this.allowHalfOpen = !0),
  24028. s &&
  24029. (!1 === s.readable && (this.readable = !1),
  24030. !1 === s.writable && (this.writable = !1),
  24031. !1 === s.allowHalfOpen && ((this.allowHalfOpen = !1), this.once('end', onend)));
  24032. }
  24033. function onend() {
  24034. this._writableState.ended || u.nextTick(onEndNT, this);
  24035. }
  24036. function onEndNT(s) {
  24037. s.end();
  24038. }
  24039. Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
  24040. enumerable: !1,
  24041. get: function get() {
  24042. return this._writableState.highWaterMark;
  24043. }
  24044. }),
  24045. Object.defineProperty(Duplex.prototype, 'writableBuffer', {
  24046. enumerable: !1,
  24047. get: function get() {
  24048. return this._writableState && this._writableState.getBuffer();
  24049. }
  24050. }),
  24051. Object.defineProperty(Duplex.prototype, 'writableLength', {
  24052. enumerable: !1,
  24053. get: function get() {
  24054. return this._writableState.length;
  24055. }
  24056. }),
  24057. Object.defineProperty(Duplex.prototype, 'destroyed', {
  24058. enumerable: !1,
  24059. get: function get() {
  24060. return (
  24061. void 0 !== this._readableState &&
  24062. void 0 !== this._writableState &&
  24063. this._readableState.destroyed &&
  24064. this._writableState.destroyed
  24065. );
  24066. },
  24067. set: function set(s) {
  24068. void 0 !== this._readableState &&
  24069. void 0 !== this._writableState &&
  24070. ((this._readableState.destroyed = s), (this._writableState.destroyed = s));
  24071. }
  24072. });
  24073. },
  24074. 63600: (s, o, i) => {
  24075. 'use strict';
  24076. s.exports = PassThrough;
  24077. var u = i(74610);
  24078. function PassThrough(s) {
  24079. if (!(this instanceof PassThrough)) return new PassThrough(s);
  24080. u.call(this, s);
  24081. }
  24082. i(56698)(PassThrough, u),
  24083. (PassThrough.prototype._transform = function (s, o, i) {
  24084. i(null, s);
  24085. });
  24086. },
  24087. 45412: (s, o, i) => {
  24088. 'use strict';
  24089. var u,
  24090. _ = i(65606);
  24091. (s.exports = Readable), (Readable.ReadableState = ReadableState);
  24092. i(37007).EventEmitter;
  24093. var w = function EElistenerCount(s, o) {
  24094. return s.listeners(o).length;
  24095. },
  24096. x = i(40345),
  24097. C = i(48287).Buffer,
  24098. j =
  24099. (void 0 !== i.g
  24100. ? i.g
  24101. : 'undefined' != typeof window
  24102. ? window
  24103. : 'undefined' != typeof self
  24104. ? self
  24105. : {}
  24106. ).Uint8Array || function () {};
  24107. var L,
  24108. B = i(79838);
  24109. L = B && B.debuglog ? B.debuglog('stream') : function debug() {};
  24110. var $,
  24111. V,
  24112. U,
  24113. z = i(80345),
  24114. Y = i(75896),
  24115. Z = i(65291).getHighWaterMark,
  24116. ee = i(86048).F,
  24117. ie = ee.ERR_INVALID_ARG_TYPE,
  24118. ae = ee.ERR_STREAM_PUSH_AFTER_EOF,
  24119. le = ee.ERR_METHOD_NOT_IMPLEMENTED,
  24120. ce = ee.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
  24121. i(56698)(Readable, x);
  24122. var pe = Y.errorOrDestroy,
  24123. de = ['error', 'close', 'destroy', 'pause', 'resume'];
  24124. function ReadableState(s, o, _) {
  24125. (u = u || i(25382)),
  24126. (s = s || {}),
  24127. 'boolean' != typeof _ && (_ = o instanceof u),
  24128. (this.objectMode = !!s.objectMode),
  24129. _ && (this.objectMode = this.objectMode || !!s.readableObjectMode),
  24130. (this.highWaterMark = Z(this, s, 'readableHighWaterMark', _)),
  24131. (this.buffer = new z()),
  24132. (this.length = 0),
  24133. (this.pipes = null),
  24134. (this.pipesCount = 0),
  24135. (this.flowing = null),
  24136. (this.ended = !1),
  24137. (this.endEmitted = !1),
  24138. (this.reading = !1),
  24139. (this.sync = !0),
  24140. (this.needReadable = !1),
  24141. (this.emittedReadable = !1),
  24142. (this.readableListening = !1),
  24143. (this.resumeScheduled = !1),
  24144. (this.paused = !0),
  24145. (this.emitClose = !1 !== s.emitClose),
  24146. (this.autoDestroy = !!s.autoDestroy),
  24147. (this.destroyed = !1),
  24148. (this.defaultEncoding = s.defaultEncoding || 'utf8'),
  24149. (this.awaitDrain = 0),
  24150. (this.readingMore = !1),
  24151. (this.decoder = null),
  24152. (this.encoding = null),
  24153. s.encoding &&
  24154. ($ || ($ = i(83141).I),
  24155. (this.decoder = new $(s.encoding)),
  24156. (this.encoding = s.encoding));
  24157. }
  24158. function Readable(s) {
  24159. if (((u = u || i(25382)), !(this instanceof Readable))) return new Readable(s);
  24160. var o = this instanceof u;
  24161. (this._readableState = new ReadableState(s, this, o)),
  24162. (this.readable = !0),
  24163. s &&
  24164. ('function' == typeof s.read && (this._read = s.read),
  24165. 'function' == typeof s.destroy && (this._destroy = s.destroy)),
  24166. x.call(this);
  24167. }
  24168. function readableAddChunk(s, o, i, u, _) {
  24169. L('readableAddChunk', o);
  24170. var w,
  24171. x = s._readableState;
  24172. if (null === o)
  24173. (x.reading = !1),
  24174. (function onEofChunk(s, o) {
  24175. if ((L('onEofChunk'), o.ended)) return;
  24176. if (o.decoder) {
  24177. var i = o.decoder.end();
  24178. i && i.length && (o.buffer.push(i), (o.length += o.objectMode ? 1 : i.length));
  24179. }
  24180. (o.ended = !0),
  24181. o.sync
  24182. ? emitReadable(s)
  24183. : ((o.needReadable = !1),
  24184. o.emittedReadable || ((o.emittedReadable = !0), emitReadable_(s)));
  24185. })(s, x);
  24186. else if (
  24187. (_ ||
  24188. (w = (function chunkInvalid(s, o) {
  24189. var i;
  24190. (function _isUint8Array(s) {
  24191. return C.isBuffer(s) || s instanceof j;
  24192. })(o) ||
  24193. 'string' == typeof o ||
  24194. void 0 === o ||
  24195. s.objectMode ||
  24196. (i = new ie('chunk', ['string', 'Buffer', 'Uint8Array'], o));
  24197. return i;
  24198. })(x, o)),
  24199. w)
  24200. )
  24201. pe(s, w);
  24202. else if (x.objectMode || (o && o.length > 0))
  24203. if (
  24204. ('string' == typeof o ||
  24205. x.objectMode ||
  24206. Object.getPrototypeOf(o) === C.prototype ||
  24207. (o = (function _uint8ArrayToBuffer(s) {
  24208. return C.from(s);
  24209. })(o)),
  24210. u)
  24211. )
  24212. x.endEmitted ? pe(s, new ce()) : addChunk(s, x, o, !0);
  24213. else if (x.ended) pe(s, new ae());
  24214. else {
  24215. if (x.destroyed) return !1;
  24216. (x.reading = !1),
  24217. x.decoder && !i
  24218. ? ((o = x.decoder.write(o)),
  24219. x.objectMode || 0 !== o.length ? addChunk(s, x, o, !1) : maybeReadMore(s, x))
  24220. : addChunk(s, x, o, !1);
  24221. }
  24222. else u || ((x.reading = !1), maybeReadMore(s, x));
  24223. return !x.ended && (x.length < x.highWaterMark || 0 === x.length);
  24224. }
  24225. function addChunk(s, o, i, u) {
  24226. o.flowing && 0 === o.length && !o.sync
  24227. ? ((o.awaitDrain = 0), s.emit('data', i))
  24228. : ((o.length += o.objectMode ? 1 : i.length),
  24229. u ? o.buffer.unshift(i) : o.buffer.push(i),
  24230. o.needReadable && emitReadable(s)),
  24231. maybeReadMore(s, o);
  24232. }
  24233. Object.defineProperty(Readable.prototype, 'destroyed', {
  24234. enumerable: !1,
  24235. get: function get() {
  24236. return void 0 !== this._readableState && this._readableState.destroyed;
  24237. },
  24238. set: function set(s) {
  24239. this._readableState && (this._readableState.destroyed = s);
  24240. }
  24241. }),
  24242. (Readable.prototype.destroy = Y.destroy),
  24243. (Readable.prototype._undestroy = Y.undestroy),
  24244. (Readable.prototype._destroy = function (s, o) {
  24245. o(s);
  24246. }),
  24247. (Readable.prototype.push = function (s, o) {
  24248. var i,
  24249. u = this._readableState;
  24250. return (
  24251. u.objectMode
  24252. ? (i = !0)
  24253. : 'string' == typeof s &&
  24254. ((o = o || u.defaultEncoding) !== u.encoding && ((s = C.from(s, o)), (o = '')),
  24255. (i = !0)),
  24256. readableAddChunk(this, s, o, !1, i)
  24257. );
  24258. }),
  24259. (Readable.prototype.unshift = function (s) {
  24260. return readableAddChunk(this, s, null, !0, !1);
  24261. }),
  24262. (Readable.prototype.isPaused = function () {
  24263. return !1 === this._readableState.flowing;
  24264. }),
  24265. (Readable.prototype.setEncoding = function (s) {
  24266. $ || ($ = i(83141).I);
  24267. var o = new $(s);
  24268. (this._readableState.decoder = o),
  24269. (this._readableState.encoding = this._readableState.decoder.encoding);
  24270. for (var u = this._readableState.buffer.head, _ = ''; null !== u; )
  24271. (_ += o.write(u.data)), (u = u.next);
  24272. return (
  24273. this._readableState.buffer.clear(),
  24274. '' !== _ && this._readableState.buffer.push(_),
  24275. (this._readableState.length = _.length),
  24276. this
  24277. );
  24278. });
  24279. var fe = 1073741824;
  24280. function howMuchToRead(s, o) {
  24281. return s <= 0 || (0 === o.length && o.ended)
  24282. ? 0
  24283. : o.objectMode
  24284. ? 1
  24285. : s != s
  24286. ? o.flowing && o.length
  24287. ? o.buffer.head.data.length
  24288. : o.length
  24289. : (s > o.highWaterMark &&
  24290. (o.highWaterMark = (function computeNewHighWaterMark(s) {
  24291. return (
  24292. s >= fe
  24293. ? (s = fe)
  24294. : (s--,
  24295. (s |= s >>> 1),
  24296. (s |= s >>> 2),
  24297. (s |= s >>> 4),
  24298. (s |= s >>> 8),
  24299. (s |= s >>> 16),
  24300. s++),
  24301. s
  24302. );
  24303. })(s)),
  24304. s <= o.length ? s : o.ended ? o.length : ((o.needReadable = !0), 0));
  24305. }
  24306. function emitReadable(s) {
  24307. var o = s._readableState;
  24308. L('emitReadable', o.needReadable, o.emittedReadable),
  24309. (o.needReadable = !1),
  24310. o.emittedReadable ||
  24311. (L('emitReadable', o.flowing),
  24312. (o.emittedReadable = !0),
  24313. _.nextTick(emitReadable_, s));
  24314. }
  24315. function emitReadable_(s) {
  24316. var o = s._readableState;
  24317. L('emitReadable_', o.destroyed, o.length, o.ended),
  24318. o.destroyed ||
  24319. (!o.length && !o.ended) ||
  24320. (s.emit('readable'), (o.emittedReadable = !1)),
  24321. (o.needReadable = !o.flowing && !o.ended && o.length <= o.highWaterMark),
  24322. flow(s);
  24323. }
  24324. function maybeReadMore(s, o) {
  24325. o.readingMore || ((o.readingMore = !0), _.nextTick(maybeReadMore_, s, o));
  24326. }
  24327. function maybeReadMore_(s, o) {
  24328. for (
  24329. ;
  24330. !o.reading &&
  24331. !o.ended &&
  24332. (o.length < o.highWaterMark || (o.flowing && 0 === o.length));
  24333. ) {
  24334. var i = o.length;
  24335. if ((L('maybeReadMore read 0'), s.read(0), i === o.length)) break;
  24336. }
  24337. o.readingMore = !1;
  24338. }
  24339. function updateReadableListening(s) {
  24340. var o = s._readableState;
  24341. (o.readableListening = s.listenerCount('readable') > 0),
  24342. o.resumeScheduled && !o.paused
  24343. ? (o.flowing = !0)
  24344. : s.listenerCount('data') > 0 && s.resume();
  24345. }
  24346. function nReadingNextTick(s) {
  24347. L('readable nexttick read 0'), s.read(0);
  24348. }
  24349. function resume_(s, o) {
  24350. L('resume', o.reading),
  24351. o.reading || s.read(0),
  24352. (o.resumeScheduled = !1),
  24353. s.emit('resume'),
  24354. flow(s),
  24355. o.flowing && !o.reading && s.read(0);
  24356. }
  24357. function flow(s) {
  24358. var o = s._readableState;
  24359. for (L('flow', o.flowing); o.flowing && null !== s.read(); );
  24360. }
  24361. function fromList(s, o) {
  24362. return 0 === o.length
  24363. ? null
  24364. : (o.objectMode
  24365. ? (i = o.buffer.shift())
  24366. : !s || s >= o.length
  24367. ? ((i = o.decoder
  24368. ? o.buffer.join('')
  24369. : 1 === o.buffer.length
  24370. ? o.buffer.first()
  24371. : o.buffer.concat(o.length)),
  24372. o.buffer.clear())
  24373. : (i = o.buffer.consume(s, o.decoder)),
  24374. i);
  24375. var i;
  24376. }
  24377. function endReadable(s) {
  24378. var o = s._readableState;
  24379. L('endReadable', o.endEmitted),
  24380. o.endEmitted || ((o.ended = !0), _.nextTick(endReadableNT, o, s));
  24381. }
  24382. function endReadableNT(s, o) {
  24383. if (
  24384. (L('endReadableNT', s.endEmitted, s.length),
  24385. !s.endEmitted &&
  24386. 0 === s.length &&
  24387. ((s.endEmitted = !0), (o.readable = !1), o.emit('end'), s.autoDestroy))
  24388. ) {
  24389. var i = o._writableState;
  24390. (!i || (i.autoDestroy && i.finished)) && o.destroy();
  24391. }
  24392. }
  24393. function indexOf(s, o) {
  24394. for (var i = 0, u = s.length; i < u; i++) if (s[i] === o) return i;
  24395. return -1;
  24396. }
  24397. (Readable.prototype.read = function (s) {
  24398. L('read', s), (s = parseInt(s, 10));
  24399. var o = this._readableState,
  24400. i = s;
  24401. if (
  24402. (0 !== s && (o.emittedReadable = !1),
  24403. 0 === s &&
  24404. o.needReadable &&
  24405. ((0 !== o.highWaterMark ? o.length >= o.highWaterMark : o.length > 0) || o.ended))
  24406. )
  24407. return (
  24408. L('read: emitReadable', o.length, o.ended),
  24409. 0 === o.length && o.ended ? endReadable(this) : emitReadable(this),
  24410. null
  24411. );
  24412. if (0 === (s = howMuchToRead(s, o)) && o.ended)
  24413. return 0 === o.length && endReadable(this), null;
  24414. var u,
  24415. _ = o.needReadable;
  24416. return (
  24417. L('need readable', _),
  24418. (0 === o.length || o.length - s < o.highWaterMark) &&
  24419. L('length less than watermark', (_ = !0)),
  24420. o.ended || o.reading
  24421. ? L('reading or ended', (_ = !1))
  24422. : _ &&
  24423. (L('do read'),
  24424. (o.reading = !0),
  24425. (o.sync = !0),
  24426. 0 === o.length && (o.needReadable = !0),
  24427. this._read(o.highWaterMark),
  24428. (o.sync = !1),
  24429. o.reading || (s = howMuchToRead(i, o))),
  24430. null === (u = s > 0 ? fromList(s, o) : null)
  24431. ? ((o.needReadable = o.length <= o.highWaterMark), (s = 0))
  24432. : ((o.length -= s), (o.awaitDrain = 0)),
  24433. 0 === o.length &&
  24434. (o.ended || (o.needReadable = !0), i !== s && o.ended && endReadable(this)),
  24435. null !== u && this.emit('data', u),
  24436. u
  24437. );
  24438. }),
  24439. (Readable.prototype._read = function (s) {
  24440. pe(this, new le('_read()'));
  24441. }),
  24442. (Readable.prototype.pipe = function (s, o) {
  24443. var i = this,
  24444. u = this._readableState;
  24445. switch (u.pipesCount) {
  24446. case 0:
  24447. u.pipes = s;
  24448. break;
  24449. case 1:
  24450. u.pipes = [u.pipes, s];
  24451. break;
  24452. default:
  24453. u.pipes.push(s);
  24454. }
  24455. (u.pipesCount += 1), L('pipe count=%d opts=%j', u.pipesCount, o);
  24456. var x = (!o || !1 !== o.end) && s !== _.stdout && s !== _.stderr ? onend : unpipe;
  24457. function onunpipe(o, _) {
  24458. L('onunpipe'),
  24459. o === i &&
  24460. _ &&
  24461. !1 === _.hasUnpiped &&
  24462. ((_.hasUnpiped = !0),
  24463. (function cleanup() {
  24464. L('cleanup'),
  24465. s.removeListener('close', onclose),
  24466. s.removeListener('finish', onfinish),
  24467. s.removeListener('drain', C),
  24468. s.removeListener('error', onerror),
  24469. s.removeListener('unpipe', onunpipe),
  24470. i.removeListener('end', onend),
  24471. i.removeListener('end', unpipe),
  24472. i.removeListener('data', ondata),
  24473. (j = !0),
  24474. !u.awaitDrain || (s._writableState && !s._writableState.needDrain) || C();
  24475. })());
  24476. }
  24477. function onend() {
  24478. L('onend'), s.end();
  24479. }
  24480. u.endEmitted ? _.nextTick(x) : i.once('end', x), s.on('unpipe', onunpipe);
  24481. var C = (function pipeOnDrain(s) {
  24482. return function pipeOnDrainFunctionResult() {
  24483. var o = s._readableState;
  24484. L('pipeOnDrain', o.awaitDrain),
  24485. o.awaitDrain && o.awaitDrain--,
  24486. 0 === o.awaitDrain && w(s, 'data') && ((o.flowing = !0), flow(s));
  24487. };
  24488. })(i);
  24489. s.on('drain', C);
  24490. var j = !1;
  24491. function ondata(o) {
  24492. L('ondata');
  24493. var _ = s.write(o);
  24494. L('dest.write', _),
  24495. !1 === _ &&
  24496. (((1 === u.pipesCount && u.pipes === s) ||
  24497. (u.pipesCount > 1 && -1 !== indexOf(u.pipes, s))) &&
  24498. !j &&
  24499. (L('false write response, pause', u.awaitDrain), u.awaitDrain++),
  24500. i.pause());
  24501. }
  24502. function onerror(o) {
  24503. L('onerror', o),
  24504. unpipe(),
  24505. s.removeListener('error', onerror),
  24506. 0 === w(s, 'error') && pe(s, o);
  24507. }
  24508. function onclose() {
  24509. s.removeListener('finish', onfinish), unpipe();
  24510. }
  24511. function onfinish() {
  24512. L('onfinish'), s.removeListener('close', onclose), unpipe();
  24513. }
  24514. function unpipe() {
  24515. L('unpipe'), i.unpipe(s);
  24516. }
  24517. return (
  24518. i.on('data', ondata),
  24519. (function prependListener(s, o, i) {
  24520. if ('function' == typeof s.prependListener) return s.prependListener(o, i);
  24521. s._events && s._events[o]
  24522. ? Array.isArray(s._events[o])
  24523. ? s._events[o].unshift(i)
  24524. : (s._events[o] = [i, s._events[o]])
  24525. : s.on(o, i);
  24526. })(s, 'error', onerror),
  24527. s.once('close', onclose),
  24528. s.once('finish', onfinish),
  24529. s.emit('pipe', i),
  24530. u.flowing || (L('pipe resume'), i.resume()),
  24531. s
  24532. );
  24533. }),
  24534. (Readable.prototype.unpipe = function (s) {
  24535. var o = this._readableState,
  24536. i = { hasUnpiped: !1 };
  24537. if (0 === o.pipesCount) return this;
  24538. if (1 === o.pipesCount)
  24539. return (
  24540. (s && s !== o.pipes) ||
  24541. (s || (s = o.pipes),
  24542. (o.pipes = null),
  24543. (o.pipesCount = 0),
  24544. (o.flowing = !1),
  24545. s && s.emit('unpipe', this, i)),
  24546. this
  24547. );
  24548. if (!s) {
  24549. var u = o.pipes,
  24550. _ = o.pipesCount;
  24551. (o.pipes = null), (o.pipesCount = 0), (o.flowing = !1);
  24552. for (var w = 0; w < _; w++) u[w].emit('unpipe', this, { hasUnpiped: !1 });
  24553. return this;
  24554. }
  24555. var x = indexOf(o.pipes, s);
  24556. return (
  24557. -1 === x ||
  24558. (o.pipes.splice(x, 1),
  24559. (o.pipesCount -= 1),
  24560. 1 === o.pipesCount && (o.pipes = o.pipes[0]),
  24561. s.emit('unpipe', this, i)),
  24562. this
  24563. );
  24564. }),
  24565. (Readable.prototype.on = function (s, o) {
  24566. var i = x.prototype.on.call(this, s, o),
  24567. u = this._readableState;
  24568. return (
  24569. 'data' === s
  24570. ? ((u.readableListening = this.listenerCount('readable') > 0),
  24571. !1 !== u.flowing && this.resume())
  24572. : 'readable' === s &&
  24573. (u.endEmitted ||
  24574. u.readableListening ||
  24575. ((u.readableListening = u.needReadable = !0),
  24576. (u.flowing = !1),
  24577. (u.emittedReadable = !1),
  24578. L('on readable', u.length, u.reading),
  24579. u.length
  24580. ? emitReadable(this)
  24581. : u.reading || _.nextTick(nReadingNextTick, this))),
  24582. i
  24583. );
  24584. }),
  24585. (Readable.prototype.addListener = Readable.prototype.on),
  24586. (Readable.prototype.removeListener = function (s, o) {
  24587. var i = x.prototype.removeListener.call(this, s, o);
  24588. return 'readable' === s && _.nextTick(updateReadableListening, this), i;
  24589. }),
  24590. (Readable.prototype.removeAllListeners = function (s) {
  24591. var o = x.prototype.removeAllListeners.apply(this, arguments);
  24592. return (
  24593. ('readable' !== s && void 0 !== s) || _.nextTick(updateReadableListening, this), o
  24594. );
  24595. }),
  24596. (Readable.prototype.resume = function () {
  24597. var s = this._readableState;
  24598. return (
  24599. s.flowing ||
  24600. (L('resume'),
  24601. (s.flowing = !s.readableListening),
  24602. (function resume(s, o) {
  24603. o.resumeScheduled || ((o.resumeScheduled = !0), _.nextTick(resume_, s, o));
  24604. })(this, s)),
  24605. (s.paused = !1),
  24606. this
  24607. );
  24608. }),
  24609. (Readable.prototype.pause = function () {
  24610. return (
  24611. L('call pause flowing=%j', this._readableState.flowing),
  24612. !1 !== this._readableState.flowing &&
  24613. (L('pause'), (this._readableState.flowing = !1), this.emit('pause')),
  24614. (this._readableState.paused = !0),
  24615. this
  24616. );
  24617. }),
  24618. (Readable.prototype.wrap = function (s) {
  24619. var o = this,
  24620. i = this._readableState,
  24621. u = !1;
  24622. for (var _ in (s.on('end', function () {
  24623. if ((L('wrapped end'), i.decoder && !i.ended)) {
  24624. var s = i.decoder.end();
  24625. s && s.length && o.push(s);
  24626. }
  24627. o.push(null);
  24628. }),
  24629. s.on('data', function (_) {
  24630. (L('wrapped data'),
  24631. i.decoder && (_ = i.decoder.write(_)),
  24632. i.objectMode && null == _) ||
  24633. ((i.objectMode || (_ && _.length)) && (o.push(_) || ((u = !0), s.pause())));
  24634. }),
  24635. s))
  24636. void 0 === this[_] &&
  24637. 'function' == typeof s[_] &&
  24638. (this[_] = (function methodWrap(o) {
  24639. return function methodWrapReturnFunction() {
  24640. return s[o].apply(s, arguments);
  24641. };
  24642. })(_));
  24643. for (var w = 0; w < de.length; w++) s.on(de[w], this.emit.bind(this, de[w]));
  24644. return (
  24645. (this._read = function (o) {
  24646. L('wrapped _read', o), u && ((u = !1), s.resume());
  24647. }),
  24648. this
  24649. );
  24650. }),
  24651. 'function' == typeof Symbol &&
  24652. (Readable.prototype[Symbol.asyncIterator] = function () {
  24653. return void 0 === V && (V = i(2955)), V(this);
  24654. }),
  24655. Object.defineProperty(Readable.prototype, 'readableHighWaterMark', {
  24656. enumerable: !1,
  24657. get: function get() {
  24658. return this._readableState.highWaterMark;
  24659. }
  24660. }),
  24661. Object.defineProperty(Readable.prototype, 'readableBuffer', {
  24662. enumerable: !1,
  24663. get: function get() {
  24664. return this._readableState && this._readableState.buffer;
  24665. }
  24666. }),
  24667. Object.defineProperty(Readable.prototype, 'readableFlowing', {
  24668. enumerable: !1,
  24669. get: function get() {
  24670. return this._readableState.flowing;
  24671. },
  24672. set: function set(s) {
  24673. this._readableState && (this._readableState.flowing = s);
  24674. }
  24675. }),
  24676. (Readable._fromList = fromList),
  24677. Object.defineProperty(Readable.prototype, 'readableLength', {
  24678. enumerable: !1,
  24679. get: function get() {
  24680. return this._readableState.length;
  24681. }
  24682. }),
  24683. 'function' == typeof Symbol &&
  24684. (Readable.from = function (s, o) {
  24685. return void 0 === U && (U = i(55157)), U(Readable, s, o);
  24686. });
  24687. },
  24688. 74610: (s, o, i) => {
  24689. 'use strict';
  24690. s.exports = Transform;
  24691. var u = i(86048).F,
  24692. _ = u.ERR_METHOD_NOT_IMPLEMENTED,
  24693. w = u.ERR_MULTIPLE_CALLBACK,
  24694. x = u.ERR_TRANSFORM_ALREADY_TRANSFORMING,
  24695. C = u.ERR_TRANSFORM_WITH_LENGTH_0,
  24696. j = i(25382);
  24697. function afterTransform(s, o) {
  24698. var i = this._transformState;
  24699. i.transforming = !1;
  24700. var u = i.writecb;
  24701. if (null === u) return this.emit('error', new w());
  24702. (i.writechunk = null), (i.writecb = null), null != o && this.push(o), u(s);
  24703. var _ = this._readableState;
  24704. (_.reading = !1),
  24705. (_.needReadable || _.length < _.highWaterMark) && this._read(_.highWaterMark);
  24706. }
  24707. function Transform(s) {
  24708. if (!(this instanceof Transform)) return new Transform(s);
  24709. j.call(this, s),
  24710. (this._transformState = {
  24711. afterTransform: afterTransform.bind(this),
  24712. needTransform: !1,
  24713. transforming: !1,
  24714. writecb: null,
  24715. writechunk: null,
  24716. writeencoding: null
  24717. }),
  24718. (this._readableState.needReadable = !0),
  24719. (this._readableState.sync = !1),
  24720. s &&
  24721. ('function' == typeof s.transform && (this._transform = s.transform),
  24722. 'function' == typeof s.flush && (this._flush = s.flush)),
  24723. this.on('prefinish', prefinish);
  24724. }
  24725. function prefinish() {
  24726. var s = this;
  24727. 'function' != typeof this._flush || this._readableState.destroyed
  24728. ? done(this, null, null)
  24729. : this._flush(function (o, i) {
  24730. done(s, o, i);
  24731. });
  24732. }
  24733. function done(s, o, i) {
  24734. if (o) return s.emit('error', o);
  24735. if ((null != i && s.push(i), s._writableState.length)) throw new C();
  24736. if (s._transformState.transforming) throw new x();
  24737. return s.push(null);
  24738. }
  24739. i(56698)(Transform, j),
  24740. (Transform.prototype.push = function (s, o) {
  24741. return (this._transformState.needTransform = !1), j.prototype.push.call(this, s, o);
  24742. }),
  24743. (Transform.prototype._transform = function (s, o, i) {
  24744. i(new _('_transform()'));
  24745. }),
  24746. (Transform.prototype._write = function (s, o, i) {
  24747. var u = this._transformState;
  24748. if (((u.writecb = i), (u.writechunk = s), (u.writeencoding = o), !u.transforming)) {
  24749. var _ = this._readableState;
  24750. (u.needTransform || _.needReadable || _.length < _.highWaterMark) &&
  24751. this._read(_.highWaterMark);
  24752. }
  24753. }),
  24754. (Transform.prototype._read = function (s) {
  24755. var o = this._transformState;
  24756. null === o.writechunk || o.transforming
  24757. ? (o.needTransform = !0)
  24758. : ((o.transforming = !0),
  24759. this._transform(o.writechunk, o.writeencoding, o.afterTransform));
  24760. }),
  24761. (Transform.prototype._destroy = function (s, o) {
  24762. j.prototype._destroy.call(this, s, function (s) {
  24763. o(s);
  24764. });
  24765. });
  24766. },
  24767. 16708: (s, o, i) => {
  24768. 'use strict';
  24769. var u,
  24770. _ = i(65606);
  24771. function CorkedRequest(s) {
  24772. var o = this;
  24773. (this.next = null),
  24774. (this.entry = null),
  24775. (this.finish = function () {
  24776. !(function onCorkedFinish(s, o, i) {
  24777. var u = s.entry;
  24778. s.entry = null;
  24779. for (; u; ) {
  24780. var _ = u.callback;
  24781. o.pendingcb--, _(i), (u = u.next);
  24782. }
  24783. o.corkedRequestsFree.next = s;
  24784. })(o, s);
  24785. });
  24786. }
  24787. (s.exports = Writable), (Writable.WritableState = WritableState);
  24788. var w = { deprecate: i(94643) },
  24789. x = i(40345),
  24790. C = i(48287).Buffer,
  24791. j =
  24792. (void 0 !== i.g
  24793. ? i.g
  24794. : 'undefined' != typeof window
  24795. ? window
  24796. : 'undefined' != typeof self
  24797. ? self
  24798. : {}
  24799. ).Uint8Array || function () {};
  24800. var L,
  24801. B = i(75896),
  24802. $ = i(65291).getHighWaterMark,
  24803. V = i(86048).F,
  24804. U = V.ERR_INVALID_ARG_TYPE,
  24805. z = V.ERR_METHOD_NOT_IMPLEMENTED,
  24806. Y = V.ERR_MULTIPLE_CALLBACK,
  24807. Z = V.ERR_STREAM_CANNOT_PIPE,
  24808. ee = V.ERR_STREAM_DESTROYED,
  24809. ie = V.ERR_STREAM_NULL_VALUES,
  24810. ae = V.ERR_STREAM_WRITE_AFTER_END,
  24811. le = V.ERR_UNKNOWN_ENCODING,
  24812. ce = B.errorOrDestroy;
  24813. function nop() {}
  24814. function WritableState(s, o, w) {
  24815. (u = u || i(25382)),
  24816. (s = s || {}),
  24817. 'boolean' != typeof w && (w = o instanceof u),
  24818. (this.objectMode = !!s.objectMode),
  24819. w && (this.objectMode = this.objectMode || !!s.writableObjectMode),
  24820. (this.highWaterMark = $(this, s, 'writableHighWaterMark', w)),
  24821. (this.finalCalled = !1),
  24822. (this.needDrain = !1),
  24823. (this.ending = !1),
  24824. (this.ended = !1),
  24825. (this.finished = !1),
  24826. (this.destroyed = !1);
  24827. var x = !1 === s.decodeStrings;
  24828. (this.decodeStrings = !x),
  24829. (this.defaultEncoding = s.defaultEncoding || 'utf8'),
  24830. (this.length = 0),
  24831. (this.writing = !1),
  24832. (this.corked = 0),
  24833. (this.sync = !0),
  24834. (this.bufferProcessing = !1),
  24835. (this.onwrite = function (s) {
  24836. !(function onwrite(s, o) {
  24837. var i = s._writableState,
  24838. u = i.sync,
  24839. w = i.writecb;
  24840. if ('function' != typeof w) throw new Y();
  24841. if (
  24842. ((function onwriteStateUpdate(s) {
  24843. (s.writing = !1),
  24844. (s.writecb = null),
  24845. (s.length -= s.writelen),
  24846. (s.writelen = 0);
  24847. })(i),
  24848. o)
  24849. )
  24850. !(function onwriteError(s, o, i, u, w) {
  24851. --o.pendingcb,
  24852. i
  24853. ? (_.nextTick(w, u),
  24854. _.nextTick(finishMaybe, s, o),
  24855. (s._writableState.errorEmitted = !0),
  24856. ce(s, u))
  24857. : (w(u),
  24858. (s._writableState.errorEmitted = !0),
  24859. ce(s, u),
  24860. finishMaybe(s, o));
  24861. })(s, i, u, o, w);
  24862. else {
  24863. var x = needFinish(i) || s.destroyed;
  24864. x || i.corked || i.bufferProcessing || !i.bufferedRequest || clearBuffer(s, i),
  24865. u ? _.nextTick(afterWrite, s, i, x, w) : afterWrite(s, i, x, w);
  24866. }
  24867. })(o, s);
  24868. }),
  24869. (this.writecb = null),
  24870. (this.writelen = 0),
  24871. (this.bufferedRequest = null),
  24872. (this.lastBufferedRequest = null),
  24873. (this.pendingcb = 0),
  24874. (this.prefinished = !1),
  24875. (this.errorEmitted = !1),
  24876. (this.emitClose = !1 !== s.emitClose),
  24877. (this.autoDestroy = !!s.autoDestroy),
  24878. (this.bufferedRequestCount = 0),
  24879. (this.corkedRequestsFree = new CorkedRequest(this));
  24880. }
  24881. function Writable(s) {
  24882. var o = this instanceof (u = u || i(25382));
  24883. if (!o && !L.call(Writable, this)) return new Writable(s);
  24884. (this._writableState = new WritableState(s, this, o)),
  24885. (this.writable = !0),
  24886. s &&
  24887. ('function' == typeof s.write && (this._write = s.write),
  24888. 'function' == typeof s.writev && (this._writev = s.writev),
  24889. 'function' == typeof s.destroy && (this._destroy = s.destroy),
  24890. 'function' == typeof s.final && (this._final = s.final)),
  24891. x.call(this);
  24892. }
  24893. function doWrite(s, o, i, u, _, w, x) {
  24894. (o.writelen = u),
  24895. (o.writecb = x),
  24896. (o.writing = !0),
  24897. (o.sync = !0),
  24898. o.destroyed
  24899. ? o.onwrite(new ee('write'))
  24900. : i
  24901. ? s._writev(_, o.onwrite)
  24902. : s._write(_, w, o.onwrite),
  24903. (o.sync = !1);
  24904. }
  24905. function afterWrite(s, o, i, u) {
  24906. i ||
  24907. (function onwriteDrain(s, o) {
  24908. 0 === o.length && o.needDrain && ((o.needDrain = !1), s.emit('drain'));
  24909. })(s, o),
  24910. o.pendingcb--,
  24911. u(),
  24912. finishMaybe(s, o);
  24913. }
  24914. function clearBuffer(s, o) {
  24915. o.bufferProcessing = !0;
  24916. var i = o.bufferedRequest;
  24917. if (s._writev && i && i.next) {
  24918. var u = o.bufferedRequestCount,
  24919. _ = new Array(u),
  24920. w = o.corkedRequestsFree;
  24921. w.entry = i;
  24922. for (var x = 0, C = !0; i; ) (_[x] = i), i.isBuf || (C = !1), (i = i.next), (x += 1);
  24923. (_.allBuffers = C),
  24924. doWrite(s, o, !0, o.length, _, '', w.finish),
  24925. o.pendingcb++,
  24926. (o.lastBufferedRequest = null),
  24927. w.next
  24928. ? ((o.corkedRequestsFree = w.next), (w.next = null))
  24929. : (o.corkedRequestsFree = new CorkedRequest(o)),
  24930. (o.bufferedRequestCount = 0);
  24931. } else {
  24932. for (; i; ) {
  24933. var j = i.chunk,
  24934. L = i.encoding,
  24935. B = i.callback;
  24936. if (
  24937. (doWrite(s, o, !1, o.objectMode ? 1 : j.length, j, L, B),
  24938. (i = i.next),
  24939. o.bufferedRequestCount--,
  24940. o.writing)
  24941. )
  24942. break;
  24943. }
  24944. null === i && (o.lastBufferedRequest = null);
  24945. }
  24946. (o.bufferedRequest = i), (o.bufferProcessing = !1);
  24947. }
  24948. function needFinish(s) {
  24949. return (
  24950. s.ending && 0 === s.length && null === s.bufferedRequest && !s.finished && !s.writing
  24951. );
  24952. }
  24953. function callFinal(s, o) {
  24954. s._final(function (i) {
  24955. o.pendingcb--,
  24956. i && ce(s, i),
  24957. (o.prefinished = !0),
  24958. s.emit('prefinish'),
  24959. finishMaybe(s, o);
  24960. });
  24961. }
  24962. function finishMaybe(s, o) {
  24963. var i = needFinish(o);
  24964. if (
  24965. i &&
  24966. ((function prefinish(s, o) {
  24967. o.prefinished ||
  24968. o.finalCalled ||
  24969. ('function' != typeof s._final || o.destroyed
  24970. ? ((o.prefinished = !0), s.emit('prefinish'))
  24971. : (o.pendingcb++, (o.finalCalled = !0), _.nextTick(callFinal, s, o)));
  24972. })(s, o),
  24973. 0 === o.pendingcb && ((o.finished = !0), s.emit('finish'), o.autoDestroy))
  24974. ) {
  24975. var u = s._readableState;
  24976. (!u || (u.autoDestroy && u.endEmitted)) && s.destroy();
  24977. }
  24978. return i;
  24979. }
  24980. i(56698)(Writable, x),
  24981. (WritableState.prototype.getBuffer = function getBuffer() {
  24982. for (var s = this.bufferedRequest, o = []; s; ) o.push(s), (s = s.next);
  24983. return o;
  24984. }),
  24985. (function () {
  24986. try {
  24987. Object.defineProperty(WritableState.prototype, 'buffer', {
  24988. get: w.deprecate(
  24989. function writableStateBufferGetter() {
  24990. return this.getBuffer();
  24991. },
  24992. '_writableState.buffer is deprecated. Use _writableState.getBuffer instead.',
  24993. 'DEP0003'
  24994. )
  24995. });
  24996. } catch (s) {}
  24997. })(),
  24998. 'function' == typeof Symbol &&
  24999. Symbol.hasInstance &&
  25000. 'function' == typeof Function.prototype[Symbol.hasInstance]
  25001. ? ((L = Function.prototype[Symbol.hasInstance]),
  25002. Object.defineProperty(Writable, Symbol.hasInstance, {
  25003. value: function value(s) {
  25004. return (
  25005. !!L.call(this, s) ||
  25006. (this === Writable && s && s._writableState instanceof WritableState)
  25007. );
  25008. }
  25009. }))
  25010. : (L = function realHasInstance(s) {
  25011. return s instanceof this;
  25012. }),
  25013. (Writable.prototype.pipe = function () {
  25014. ce(this, new Z());
  25015. }),
  25016. (Writable.prototype.write = function (s, o, i) {
  25017. var u = this._writableState,
  25018. w = !1,
  25019. x =
  25020. !u.objectMode &&
  25021. (function _isUint8Array(s) {
  25022. return C.isBuffer(s) || s instanceof j;
  25023. })(s);
  25024. return (
  25025. x &&
  25026. !C.isBuffer(s) &&
  25027. (s = (function _uint8ArrayToBuffer(s) {
  25028. return C.from(s);
  25029. })(s)),
  25030. 'function' == typeof o && ((i = o), (o = null)),
  25031. x ? (o = 'buffer') : o || (o = u.defaultEncoding),
  25032. 'function' != typeof i && (i = nop),
  25033. u.ending
  25034. ? (function writeAfterEnd(s, o) {
  25035. var i = new ae();
  25036. ce(s, i), _.nextTick(o, i);
  25037. })(this, i)
  25038. : (x ||
  25039. (function validChunk(s, o, i, u) {
  25040. var w;
  25041. return (
  25042. null === i
  25043. ? (w = new ie())
  25044. : 'string' == typeof i ||
  25045. o.objectMode ||
  25046. (w = new U('chunk', ['string', 'Buffer'], i)),
  25047. !w || (ce(s, w), _.nextTick(u, w), !1)
  25048. );
  25049. })(this, u, s, i)) &&
  25050. (u.pendingcb++,
  25051. (w = (function writeOrBuffer(s, o, i, u, _, w) {
  25052. if (!i) {
  25053. var x = (function decodeChunk(s, o, i) {
  25054. s.objectMode ||
  25055. !1 === s.decodeStrings ||
  25056. 'string' != typeof o ||
  25057. (o = C.from(o, i));
  25058. return o;
  25059. })(o, u, _);
  25060. u !== x && ((i = !0), (_ = 'buffer'), (u = x));
  25061. }
  25062. var j = o.objectMode ? 1 : u.length;
  25063. o.length += j;
  25064. var L = o.length < o.highWaterMark;
  25065. L || (o.needDrain = !0);
  25066. if (o.writing || o.corked) {
  25067. var B = o.lastBufferedRequest;
  25068. (o.lastBufferedRequest = {
  25069. chunk: u,
  25070. encoding: _,
  25071. isBuf: i,
  25072. callback: w,
  25073. next: null
  25074. }),
  25075. B
  25076. ? (B.next = o.lastBufferedRequest)
  25077. : (o.bufferedRequest = o.lastBufferedRequest),
  25078. (o.bufferedRequestCount += 1);
  25079. } else doWrite(s, o, !1, j, u, _, w);
  25080. return L;
  25081. })(this, u, x, s, o, i))),
  25082. w
  25083. );
  25084. }),
  25085. (Writable.prototype.cork = function () {
  25086. this._writableState.corked++;
  25087. }),
  25088. (Writable.prototype.uncork = function () {
  25089. var s = this._writableState;
  25090. s.corked &&
  25091. (s.corked--,
  25092. s.writing ||
  25093. s.corked ||
  25094. s.bufferProcessing ||
  25095. !s.bufferedRequest ||
  25096. clearBuffer(this, s));
  25097. }),
  25098. (Writable.prototype.setDefaultEncoding = function setDefaultEncoding(s) {
  25099. if (
  25100. ('string' == typeof s && (s = s.toLowerCase()),
  25101. !(
  25102. [
  25103. 'hex',
  25104. 'utf8',
  25105. 'utf-8',
  25106. 'ascii',
  25107. 'binary',
  25108. 'base64',
  25109. 'ucs2',
  25110. 'ucs-2',
  25111. 'utf16le',
  25112. 'utf-16le',
  25113. 'raw'
  25114. ].indexOf((s + '').toLowerCase()) > -1
  25115. ))
  25116. )
  25117. throw new le(s);
  25118. return (this._writableState.defaultEncoding = s), this;
  25119. }),
  25120. Object.defineProperty(Writable.prototype, 'writableBuffer', {
  25121. enumerable: !1,
  25122. get: function get() {
  25123. return this._writableState && this._writableState.getBuffer();
  25124. }
  25125. }),
  25126. Object.defineProperty(Writable.prototype, 'writableHighWaterMark', {
  25127. enumerable: !1,
  25128. get: function get() {
  25129. return this._writableState.highWaterMark;
  25130. }
  25131. }),
  25132. (Writable.prototype._write = function (s, o, i) {
  25133. i(new z('_write()'));
  25134. }),
  25135. (Writable.prototype._writev = null),
  25136. (Writable.prototype.end = function (s, o, i) {
  25137. var u = this._writableState;
  25138. return (
  25139. 'function' == typeof s
  25140. ? ((i = s), (s = null), (o = null))
  25141. : 'function' == typeof o && ((i = o), (o = null)),
  25142. null != s && this.write(s, o),
  25143. u.corked && ((u.corked = 1), this.uncork()),
  25144. u.ending ||
  25145. (function endWritable(s, o, i) {
  25146. (o.ending = !0),
  25147. finishMaybe(s, o),
  25148. i && (o.finished ? _.nextTick(i) : s.once('finish', i));
  25149. (o.ended = !0), (s.writable = !1);
  25150. })(this, u, i),
  25151. this
  25152. );
  25153. }),
  25154. Object.defineProperty(Writable.prototype, 'writableLength', {
  25155. enumerable: !1,
  25156. get: function get() {
  25157. return this._writableState.length;
  25158. }
  25159. }),
  25160. Object.defineProperty(Writable.prototype, 'destroyed', {
  25161. enumerable: !1,
  25162. get: function get() {
  25163. return void 0 !== this._writableState && this._writableState.destroyed;
  25164. },
  25165. set: function set(s) {
  25166. this._writableState && (this._writableState.destroyed = s);
  25167. }
  25168. }),
  25169. (Writable.prototype.destroy = B.destroy),
  25170. (Writable.prototype._undestroy = B.undestroy),
  25171. (Writable.prototype._destroy = function (s, o) {
  25172. o(s);
  25173. });
  25174. },
  25175. 2955: (s, o, i) => {
  25176. 'use strict';
  25177. var u,
  25178. _ = i(65606);
  25179. function _defineProperty(s, o, i) {
  25180. return (
  25181. (o = (function _toPropertyKey(s) {
  25182. var o = (function _toPrimitive(s, o) {
  25183. if ('object' != typeof s || null === s) return s;
  25184. var i = s[Symbol.toPrimitive];
  25185. if (void 0 !== i) {
  25186. var u = i.call(s, o || 'default');
  25187. if ('object' != typeof u) return u;
  25188. throw new TypeError('@@toPrimitive must return a primitive value.');
  25189. }
  25190. return ('string' === o ? String : Number)(s);
  25191. })(s, 'string');
  25192. return 'symbol' == typeof o ? o : String(o);
  25193. })(o)) in s
  25194. ? Object.defineProperty(s, o, {
  25195. value: i,
  25196. enumerable: !0,
  25197. configurable: !0,
  25198. writable: !0
  25199. })
  25200. : (s[o] = i),
  25201. s
  25202. );
  25203. }
  25204. var w = i(86238),
  25205. x = Symbol('lastResolve'),
  25206. C = Symbol('lastReject'),
  25207. j = Symbol('error'),
  25208. L = Symbol('ended'),
  25209. B = Symbol('lastPromise'),
  25210. $ = Symbol('handlePromise'),
  25211. V = Symbol('stream');
  25212. function createIterResult(s, o) {
  25213. return { value: s, done: o };
  25214. }
  25215. function readAndResolve(s) {
  25216. var o = s[x];
  25217. if (null !== o) {
  25218. var i = s[V].read();
  25219. null !== i &&
  25220. ((s[B] = null), (s[x] = null), (s[C] = null), o(createIterResult(i, !1)));
  25221. }
  25222. }
  25223. function onReadable(s) {
  25224. _.nextTick(readAndResolve, s);
  25225. }
  25226. var U = Object.getPrototypeOf(function () {}),
  25227. z = Object.setPrototypeOf(
  25228. (_defineProperty(
  25229. (u = {
  25230. get stream() {
  25231. return this[V];
  25232. },
  25233. next: function next() {
  25234. var s = this,
  25235. o = this[j];
  25236. if (null !== o) return Promise.reject(o);
  25237. if (this[L]) return Promise.resolve(createIterResult(void 0, !0));
  25238. if (this[V].destroyed)
  25239. return new Promise(function (o, i) {
  25240. _.nextTick(function () {
  25241. s[j] ? i(s[j]) : o(createIterResult(void 0, !0));
  25242. });
  25243. });
  25244. var i,
  25245. u = this[B];
  25246. if (u)
  25247. i = new Promise(
  25248. (function wrapForNext(s, o) {
  25249. return function (i, u) {
  25250. s.then(function () {
  25251. o[L] ? i(createIterResult(void 0, !0)) : o[$](i, u);
  25252. }, u);
  25253. };
  25254. })(u, this)
  25255. );
  25256. else {
  25257. var w = this[V].read();
  25258. if (null !== w) return Promise.resolve(createIterResult(w, !1));
  25259. i = new Promise(this[$]);
  25260. }
  25261. return (this[B] = i), i;
  25262. }
  25263. }),
  25264. Symbol.asyncIterator,
  25265. function () {
  25266. return this;
  25267. }
  25268. ),
  25269. _defineProperty(u, 'return', function _return() {
  25270. var s = this;
  25271. return new Promise(function (o, i) {
  25272. s[V].destroy(null, function (s) {
  25273. s ? i(s) : o(createIterResult(void 0, !0));
  25274. });
  25275. });
  25276. }),
  25277. u),
  25278. U
  25279. );
  25280. s.exports = function createReadableStreamAsyncIterator(s) {
  25281. var o,
  25282. i = Object.create(
  25283. z,
  25284. (_defineProperty((o = {}), V, { value: s, writable: !0 }),
  25285. _defineProperty(o, x, { value: null, writable: !0 }),
  25286. _defineProperty(o, C, { value: null, writable: !0 }),
  25287. _defineProperty(o, j, { value: null, writable: !0 }),
  25288. _defineProperty(o, L, { value: s._readableState.endEmitted, writable: !0 }),
  25289. _defineProperty(o, $, {
  25290. value: function value(s, o) {
  25291. var u = i[V].read();
  25292. u
  25293. ? ((i[B] = null), (i[x] = null), (i[C] = null), s(createIterResult(u, !1)))
  25294. : ((i[x] = s), (i[C] = o));
  25295. },
  25296. writable: !0
  25297. }),
  25298. o)
  25299. );
  25300. return (
  25301. (i[B] = null),
  25302. w(s, function (s) {
  25303. if (s && 'ERR_STREAM_PREMATURE_CLOSE' !== s.code) {
  25304. var o = i[C];
  25305. return (
  25306. null !== o && ((i[B] = null), (i[x] = null), (i[C] = null), o(s)),
  25307. void (i[j] = s)
  25308. );
  25309. }
  25310. var u = i[x];
  25311. null !== u &&
  25312. ((i[B] = null), (i[x] = null), (i[C] = null), u(createIterResult(void 0, !0))),
  25313. (i[L] = !0);
  25314. }),
  25315. s.on('readable', onReadable.bind(null, i)),
  25316. i
  25317. );
  25318. };
  25319. },
  25320. 80345: (s, o, i) => {
  25321. 'use strict';
  25322. function ownKeys(s, o) {
  25323. var i = Object.keys(s);
  25324. if (Object.getOwnPropertySymbols) {
  25325. var u = Object.getOwnPropertySymbols(s);
  25326. o &&
  25327. (u = u.filter(function (o) {
  25328. return Object.getOwnPropertyDescriptor(s, o).enumerable;
  25329. })),
  25330. i.push.apply(i, u);
  25331. }
  25332. return i;
  25333. }
  25334. function _objectSpread(s) {
  25335. for (var o = 1; o < arguments.length; o++) {
  25336. var i = null != arguments[o] ? arguments[o] : {};
  25337. o % 2
  25338. ? ownKeys(Object(i), !0).forEach(function (o) {
  25339. _defineProperty(s, o, i[o]);
  25340. })
  25341. : Object.getOwnPropertyDescriptors
  25342. ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(i))
  25343. : ownKeys(Object(i)).forEach(function (o) {
  25344. Object.defineProperty(s, o, Object.getOwnPropertyDescriptor(i, o));
  25345. });
  25346. }
  25347. return s;
  25348. }
  25349. function _defineProperty(s, o, i) {
  25350. return (
  25351. (o = _toPropertyKey(o)) in s
  25352. ? Object.defineProperty(s, o, {
  25353. value: i,
  25354. enumerable: !0,
  25355. configurable: !0,
  25356. writable: !0
  25357. })
  25358. : (s[o] = i),
  25359. s
  25360. );
  25361. }
  25362. function _defineProperties(s, o) {
  25363. for (var i = 0; i < o.length; i++) {
  25364. var u = o[i];
  25365. (u.enumerable = u.enumerable || !1),
  25366. (u.configurable = !0),
  25367. 'value' in u && (u.writable = !0),
  25368. Object.defineProperty(s, _toPropertyKey(u.key), u);
  25369. }
  25370. }
  25371. function _toPropertyKey(s) {
  25372. var o = (function _toPrimitive(s, o) {
  25373. if ('object' != typeof s || null === s) return s;
  25374. var i = s[Symbol.toPrimitive];
  25375. if (void 0 !== i) {
  25376. var u = i.call(s, o || 'default');
  25377. if ('object' != typeof u) return u;
  25378. throw new TypeError('@@toPrimitive must return a primitive value.');
  25379. }
  25380. return ('string' === o ? String : Number)(s);
  25381. })(s, 'string');
  25382. return 'symbol' == typeof o ? o : String(o);
  25383. }
  25384. var u = i(48287).Buffer,
  25385. _ = i(15340).inspect,
  25386. w = (_ && _.custom) || 'inspect';
  25387. s.exports = (function () {
  25388. function BufferList() {
  25389. !(function _classCallCheck(s, o) {
  25390. if (!(s instanceof o)) throw new TypeError('Cannot call a class as a function');
  25391. })(this, BufferList),
  25392. (this.head = null),
  25393. (this.tail = null),
  25394. (this.length = 0);
  25395. }
  25396. return (
  25397. (function _createClass(s, o, i) {
  25398. return (
  25399. o && _defineProperties(s.prototype, o),
  25400. i && _defineProperties(s, i),
  25401. Object.defineProperty(s, 'prototype', { writable: !1 }),
  25402. s
  25403. );
  25404. })(BufferList, [
  25405. {
  25406. key: 'push',
  25407. value: function push(s) {
  25408. var o = { data: s, next: null };
  25409. this.length > 0 ? (this.tail.next = o) : (this.head = o),
  25410. (this.tail = o),
  25411. ++this.length;
  25412. }
  25413. },
  25414. {
  25415. key: 'unshift',
  25416. value: function unshift(s) {
  25417. var o = { data: s, next: this.head };
  25418. 0 === this.length && (this.tail = o), (this.head = o), ++this.length;
  25419. }
  25420. },
  25421. {
  25422. key: 'shift',
  25423. value: function shift() {
  25424. if (0 !== this.length) {
  25425. var s = this.head.data;
  25426. return (
  25427. 1 === this.length
  25428. ? (this.head = this.tail = null)
  25429. : (this.head = this.head.next),
  25430. --this.length,
  25431. s
  25432. );
  25433. }
  25434. }
  25435. },
  25436. {
  25437. key: 'clear',
  25438. value: function clear() {
  25439. (this.head = this.tail = null), (this.length = 0);
  25440. }
  25441. },
  25442. {
  25443. key: 'join',
  25444. value: function join(s) {
  25445. if (0 === this.length) return '';
  25446. for (var o = this.head, i = '' + o.data; (o = o.next); ) i += s + o.data;
  25447. return i;
  25448. }
  25449. },
  25450. {
  25451. key: 'concat',
  25452. value: function concat(s) {
  25453. if (0 === this.length) return u.alloc(0);
  25454. for (var o, i, _, w = u.allocUnsafe(s >>> 0), x = this.head, C = 0; x; )
  25455. (o = x.data),
  25456. (i = w),
  25457. (_ = C),
  25458. u.prototype.copy.call(o, i, _),
  25459. (C += x.data.length),
  25460. (x = x.next);
  25461. return w;
  25462. }
  25463. },
  25464. {
  25465. key: 'consume',
  25466. value: function consume(s, o) {
  25467. var i;
  25468. return (
  25469. s < this.head.data.length
  25470. ? ((i = this.head.data.slice(0, s)),
  25471. (this.head.data = this.head.data.slice(s)))
  25472. : (i =
  25473. s === this.head.data.length
  25474. ? this.shift()
  25475. : o
  25476. ? this._getString(s)
  25477. : this._getBuffer(s)),
  25478. i
  25479. );
  25480. }
  25481. },
  25482. {
  25483. key: 'first',
  25484. value: function first() {
  25485. return this.head.data;
  25486. }
  25487. },
  25488. {
  25489. key: '_getString',
  25490. value: function _getString(s) {
  25491. var o = this.head,
  25492. i = 1,
  25493. u = o.data;
  25494. for (s -= u.length; (o = o.next); ) {
  25495. var _ = o.data,
  25496. w = s > _.length ? _.length : s;
  25497. if ((w === _.length ? (u += _) : (u += _.slice(0, s)), 0 === (s -= w))) {
  25498. w === _.length
  25499. ? (++i, o.next ? (this.head = o.next) : (this.head = this.tail = null))
  25500. : ((this.head = o), (o.data = _.slice(w)));
  25501. break;
  25502. }
  25503. ++i;
  25504. }
  25505. return (this.length -= i), u;
  25506. }
  25507. },
  25508. {
  25509. key: '_getBuffer',
  25510. value: function _getBuffer(s) {
  25511. var o = u.allocUnsafe(s),
  25512. i = this.head,
  25513. _ = 1;
  25514. for (i.data.copy(o), s -= i.data.length; (i = i.next); ) {
  25515. var w = i.data,
  25516. x = s > w.length ? w.length : s;
  25517. if ((w.copy(o, o.length - s, 0, x), 0 === (s -= x))) {
  25518. x === w.length
  25519. ? (++_, i.next ? (this.head = i.next) : (this.head = this.tail = null))
  25520. : ((this.head = i), (i.data = w.slice(x)));
  25521. break;
  25522. }
  25523. ++_;
  25524. }
  25525. return (this.length -= _), o;
  25526. }
  25527. },
  25528. {
  25529. key: w,
  25530. value: function value(s, o) {
  25531. return _(
  25532. this,
  25533. _objectSpread(_objectSpread({}, o), {}, { depth: 0, customInspect: !1 })
  25534. );
  25535. }
  25536. }
  25537. ]),
  25538. BufferList
  25539. );
  25540. })();
  25541. },
  25542. 75896: (s, o, i) => {
  25543. 'use strict';
  25544. var u = i(65606);
  25545. function emitErrorAndCloseNT(s, o) {
  25546. emitErrorNT(s, o), emitCloseNT(s);
  25547. }
  25548. function emitCloseNT(s) {
  25549. (s._writableState && !s._writableState.emitClose) ||
  25550. (s._readableState && !s._readableState.emitClose) ||
  25551. s.emit('close');
  25552. }
  25553. function emitErrorNT(s, o) {
  25554. s.emit('error', o);
  25555. }
  25556. s.exports = {
  25557. destroy: function destroy(s, o) {
  25558. var i = this,
  25559. _ = this._readableState && this._readableState.destroyed,
  25560. w = this._writableState && this._writableState.destroyed;
  25561. return _ || w
  25562. ? (o
  25563. ? o(s)
  25564. : s &&
  25565. (this._writableState
  25566. ? this._writableState.errorEmitted ||
  25567. ((this._writableState.errorEmitted = !0),
  25568. u.nextTick(emitErrorNT, this, s))
  25569. : u.nextTick(emitErrorNT, this, s)),
  25570. this)
  25571. : (this._readableState && (this._readableState.destroyed = !0),
  25572. this._writableState && (this._writableState.destroyed = !0),
  25573. this._destroy(s || null, function (s) {
  25574. !o && s
  25575. ? i._writableState
  25576. ? i._writableState.errorEmitted
  25577. ? u.nextTick(emitCloseNT, i)
  25578. : ((i._writableState.errorEmitted = !0),
  25579. u.nextTick(emitErrorAndCloseNT, i, s))
  25580. : u.nextTick(emitErrorAndCloseNT, i, s)
  25581. : o
  25582. ? (u.nextTick(emitCloseNT, i), o(s))
  25583. : u.nextTick(emitCloseNT, i);
  25584. }),
  25585. this);
  25586. },
  25587. undestroy: function undestroy() {
  25588. this._readableState &&
  25589. ((this._readableState.destroyed = !1),
  25590. (this._readableState.reading = !1),
  25591. (this._readableState.ended = !1),
  25592. (this._readableState.endEmitted = !1)),
  25593. this._writableState &&
  25594. ((this._writableState.destroyed = !1),
  25595. (this._writableState.ended = !1),
  25596. (this._writableState.ending = !1),
  25597. (this._writableState.finalCalled = !1),
  25598. (this._writableState.prefinished = !1),
  25599. (this._writableState.finished = !1),
  25600. (this._writableState.errorEmitted = !1));
  25601. },
  25602. errorOrDestroy: function errorOrDestroy(s, o) {
  25603. var i = s._readableState,
  25604. u = s._writableState;
  25605. (i && i.autoDestroy) || (u && u.autoDestroy) ? s.destroy(o) : s.emit('error', o);
  25606. }
  25607. };
  25608. },
  25609. 86238: (s, o, i) => {
  25610. 'use strict';
  25611. var u = i(86048).F.ERR_STREAM_PREMATURE_CLOSE;
  25612. function noop() {}
  25613. s.exports = function eos(s, o, i) {
  25614. if ('function' == typeof o) return eos(s, null, o);
  25615. o || (o = {}),
  25616. (i = (function once(s) {
  25617. var o = !1;
  25618. return function () {
  25619. if (!o) {
  25620. o = !0;
  25621. for (var i = arguments.length, u = new Array(i), _ = 0; _ < i; _++)
  25622. u[_] = arguments[_];
  25623. s.apply(this, u);
  25624. }
  25625. };
  25626. })(i || noop));
  25627. var _ = o.readable || (!1 !== o.readable && s.readable),
  25628. w = o.writable || (!1 !== o.writable && s.writable),
  25629. x = function onlegacyfinish() {
  25630. s.writable || j();
  25631. },
  25632. C = s._writableState && s._writableState.finished,
  25633. j = function onfinish() {
  25634. (w = !1), (C = !0), _ || i.call(s);
  25635. },
  25636. L = s._readableState && s._readableState.endEmitted,
  25637. B = function onend() {
  25638. (_ = !1), (L = !0), w || i.call(s);
  25639. },
  25640. $ = function onerror(o) {
  25641. i.call(s, o);
  25642. },
  25643. V = function onclose() {
  25644. var o;
  25645. return _ && !L
  25646. ? ((s._readableState && s._readableState.ended) || (o = new u()), i.call(s, o))
  25647. : w && !C
  25648. ? ((s._writableState && s._writableState.ended) || (o = new u()), i.call(s, o))
  25649. : void 0;
  25650. },
  25651. U = function onrequest() {
  25652. s.req.on('finish', j);
  25653. };
  25654. return (
  25655. !(function isRequest(s) {
  25656. return s.setHeader && 'function' == typeof s.abort;
  25657. })(s)
  25658. ? w && !s._writableState && (s.on('end', x), s.on('close', x))
  25659. : (s.on('complete', j), s.on('abort', V), s.req ? U() : s.on('request', U)),
  25660. s.on('end', B),
  25661. s.on('finish', j),
  25662. !1 !== o.error && s.on('error', $),
  25663. s.on('close', V),
  25664. function () {
  25665. s.removeListener('complete', j),
  25666. s.removeListener('abort', V),
  25667. s.removeListener('request', U),
  25668. s.req && s.req.removeListener('finish', j),
  25669. s.removeListener('end', x),
  25670. s.removeListener('close', x),
  25671. s.removeListener('finish', j),
  25672. s.removeListener('end', B),
  25673. s.removeListener('error', $),
  25674. s.removeListener('close', V);
  25675. }
  25676. );
  25677. };
  25678. },
  25679. 55157: (s) => {
  25680. s.exports = function () {
  25681. throw new Error('Readable.from is not available in the browser');
  25682. };
  25683. },
  25684. 57758: (s, o, i) => {
  25685. 'use strict';
  25686. var u;
  25687. var _ = i(86048).F,
  25688. w = _.ERR_MISSING_ARGS,
  25689. x = _.ERR_STREAM_DESTROYED;
  25690. function noop(s) {
  25691. if (s) throw s;
  25692. }
  25693. function call(s) {
  25694. s();
  25695. }
  25696. function pipe(s, o) {
  25697. return s.pipe(o);
  25698. }
  25699. s.exports = function pipeline() {
  25700. for (var s = arguments.length, o = new Array(s), _ = 0; _ < s; _++) o[_] = arguments[_];
  25701. var C,
  25702. j = (function popCallback(s) {
  25703. return s.length ? ('function' != typeof s[s.length - 1] ? noop : s.pop()) : noop;
  25704. })(o);
  25705. if ((Array.isArray(o[0]) && (o = o[0]), o.length < 2)) throw new w('streams');
  25706. var L = o.map(function (s, _) {
  25707. var w = _ < o.length - 1;
  25708. return (function destroyer(s, o, _, w) {
  25709. w = (function once(s) {
  25710. var o = !1;
  25711. return function () {
  25712. o || ((o = !0), s.apply(void 0, arguments));
  25713. };
  25714. })(w);
  25715. var C = !1;
  25716. s.on('close', function () {
  25717. C = !0;
  25718. }),
  25719. void 0 === u && (u = i(86238)),
  25720. u(s, { readable: o, writable: _ }, function (s) {
  25721. if (s) return w(s);
  25722. (C = !0), w();
  25723. });
  25724. var j = !1;
  25725. return function (o) {
  25726. if (!C && !j)
  25727. return (
  25728. (j = !0),
  25729. (function isRequest(s) {
  25730. return s.setHeader && 'function' == typeof s.abort;
  25731. })(s)
  25732. ? s.abort()
  25733. : 'function' == typeof s.destroy
  25734. ? s.destroy()
  25735. : void w(o || new x('pipe'))
  25736. );
  25737. };
  25738. })(s, w, _ > 0, function (s) {
  25739. C || (C = s), s && L.forEach(call), w || (L.forEach(call), j(C));
  25740. });
  25741. });
  25742. return o.reduce(pipe);
  25743. };
  25744. },
  25745. 65291: (s, o, i) => {
  25746. 'use strict';
  25747. var u = i(86048).F.ERR_INVALID_OPT_VALUE;
  25748. s.exports = {
  25749. getHighWaterMark: function getHighWaterMark(s, o, i, _) {
  25750. var w = (function highWaterMarkFrom(s, o, i) {
  25751. return null != s.highWaterMark ? s.highWaterMark : o ? s[i] : null;
  25752. })(o, _, i);
  25753. if (null != w) {
  25754. if (!isFinite(w) || Math.floor(w) !== w || w < 0)
  25755. throw new u(_ ? i : 'highWaterMark', w);
  25756. return Math.floor(w);
  25757. }
  25758. return s.objectMode ? 16 : 16384;
  25759. }
  25760. };
  25761. },
  25762. 40345: (s, o, i) => {
  25763. s.exports = i(37007).EventEmitter;
  25764. },
  25765. 84977: (s, o, i) => {
  25766. 'use strict';
  25767. Object.defineProperty(o, '__esModule', { value: !0 });
  25768. var u = (function _interopRequireDefault(s) {
  25769. return s && s.__esModule ? s : { default: s };
  25770. })(i(9404)),
  25771. _ = i(55674);
  25772. (o.default = function (s) {
  25773. var o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : u.default.Map,
  25774. i = Object.keys(s);
  25775. return function () {
  25776. var u = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : o(),
  25777. w = arguments[1];
  25778. return u.withMutations(function (o) {
  25779. i.forEach(function (i) {
  25780. var u = (0, s[i])(o.get(i), w);
  25781. (0, _.validateNextState)(u, i, w), o.set(i, u);
  25782. });
  25783. });
  25784. };
  25785. }),
  25786. (s.exports = o.default);
  25787. },
  25788. 89593: (s, o, i) => {
  25789. 'use strict';
  25790. o.H = void 0;
  25791. var u = (function _interopRequireDefault(s) {
  25792. return s && s.__esModule ? s : { default: s };
  25793. })(i(84977));
  25794. o.H = u.default;
  25795. },
  25796. 48590: (s, o) => {
  25797. 'use strict';
  25798. Object.defineProperty(o, '__esModule', { value: !0 }),
  25799. (o.default = function (s) {
  25800. return s && '@@redux/INIT' === s.type
  25801. ? 'initialState argument passed to createStore'
  25802. : 'previous state received by the reducer';
  25803. }),
  25804. (s.exports = o.default);
  25805. },
  25806. 82261: (s, o, i) => {
  25807. 'use strict';
  25808. Object.defineProperty(o, '__esModule', { value: !0 });
  25809. var u = _interopRequireDefault(i(9404)),
  25810. _ = _interopRequireDefault(i(48590));
  25811. function _interopRequireDefault(s) {
  25812. return s && s.__esModule ? s : { default: s };
  25813. }
  25814. (o.default = function (s, o, i) {
  25815. var w = Object.keys(o);
  25816. if (!w.length)
  25817. return 'Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.';
  25818. var x = (0, _.default)(i);
  25819. if (
  25820. u.default.isImmutable ? !u.default.isImmutable(s) : !u.default.Iterable.isIterable(s)
  25821. )
  25822. return (
  25823. 'The ' +
  25824. x +
  25825. ' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "' +
  25826. w.join('", "') +
  25827. '".'
  25828. );
  25829. var C = s
  25830. .toSeq()
  25831. .keySeq()
  25832. .toArray()
  25833. .filter(function (s) {
  25834. return !o.hasOwnProperty(s);
  25835. });
  25836. return C.length > 0
  25837. ? 'Unexpected ' +
  25838. (1 === C.length ? 'property' : 'properties') +
  25839. ' "' +
  25840. C.join('", "') +
  25841. '" found in ' +
  25842. x +
  25843. '. Expected to find one of the known reducer property names instead: "' +
  25844. w.join('", "') +
  25845. '". Unexpected properties will be ignored.'
  25846. : null;
  25847. }),
  25848. (s.exports = o.default);
  25849. },
  25850. 55674: (s, o, i) => {
  25851. 'use strict';
  25852. Object.defineProperty(o, '__esModule', { value: !0 }),
  25853. (o.validateNextState =
  25854. o.getUnexpectedInvocationParameterMessage =
  25855. o.getStateName =
  25856. void 0);
  25857. var u = _interopRequireDefault(i(48590)),
  25858. _ = _interopRequireDefault(i(82261)),
  25859. w = _interopRequireDefault(i(27374));
  25860. function _interopRequireDefault(s) {
  25861. return s && s.__esModule ? s : { default: s };
  25862. }
  25863. (o.getStateName = u.default),
  25864. (o.getUnexpectedInvocationParameterMessage = _.default),
  25865. (o.validateNextState = w.default);
  25866. },
  25867. 27374: (s, o) => {
  25868. 'use strict';
  25869. Object.defineProperty(o, '__esModule', { value: !0 }),
  25870. (o.default = function (s, o, i) {
  25871. if (void 0 === s)
  25872. throw new Error(
  25873. 'Reducer "' +
  25874. o +
  25875. '" returned undefined when handling "' +
  25876. i.type +
  25877. '" action. To ignore an action, you must explicitly return the previous state.'
  25878. );
  25879. }),
  25880. (s.exports = o.default);
  25881. },
  25882. 75208: (s) => {
  25883. 'use strict';
  25884. var o,
  25885. i = '';
  25886. s.exports = function repeat(s, u) {
  25887. if ('string' != typeof s) throw new TypeError('expected a string');
  25888. if (1 === u) return s;
  25889. if (2 === u) return s + s;
  25890. var _ = s.length * u;
  25891. if (o !== s || void 0 === o) (o = s), (i = '');
  25892. else if (i.length >= _) return i.substr(0, _);
  25893. for (; _ > i.length && u > 1; ) 1 & u && (i += s), (u >>= 1), (s += s);
  25894. return (i = (i += s).substr(0, _));
  25895. };
  25896. },
  25897. 92063: (s) => {
  25898. 'use strict';
  25899. s.exports = function required(s, o) {
  25900. if (((o = o.split(':')[0]), !(s = +s))) return !1;
  25901. switch (o) {
  25902. case 'http':
  25903. case 'ws':
  25904. return 80 !== s;
  25905. case 'https':
  25906. case 'wss':
  25907. return 443 !== s;
  25908. case 'ftp':
  25909. return 21 !== s;
  25910. case 'gopher':
  25911. return 70 !== s;
  25912. case 'file':
  25913. return !1;
  25914. }
  25915. return 0 !== s;
  25916. };
  25917. },
  25918. 27096: (s, o, i) => {
  25919. const u = i(87586),
  25920. _ = i(6205),
  25921. w = i(10023),
  25922. x = i(8048);
  25923. (s.exports = (s) => {
  25924. var o,
  25925. i,
  25926. C = 0,
  25927. j = { type: _.ROOT, stack: [] },
  25928. L = j,
  25929. B = j.stack,
  25930. $ = [],
  25931. repeatErr = (o) => {
  25932. u.error(s, 'Nothing to repeat at column ' + (o - 1));
  25933. },
  25934. V = u.strToChars(s);
  25935. for (o = V.length; C < o; )
  25936. switch ((i = V[C++])) {
  25937. case '\\':
  25938. switch ((i = V[C++])) {
  25939. case 'b':
  25940. B.push(x.wordBoundary());
  25941. break;
  25942. case 'B':
  25943. B.push(x.nonWordBoundary());
  25944. break;
  25945. case 'w':
  25946. B.push(w.words());
  25947. break;
  25948. case 'W':
  25949. B.push(w.notWords());
  25950. break;
  25951. case 'd':
  25952. B.push(w.ints());
  25953. break;
  25954. case 'D':
  25955. B.push(w.notInts());
  25956. break;
  25957. case 's':
  25958. B.push(w.whitespace());
  25959. break;
  25960. case 'S':
  25961. B.push(w.notWhitespace());
  25962. break;
  25963. default:
  25964. /\d/.test(i)
  25965. ? B.push({ type: _.REFERENCE, value: parseInt(i, 10) })
  25966. : B.push({ type: _.CHAR, value: i.charCodeAt(0) });
  25967. }
  25968. break;
  25969. case '^':
  25970. B.push(x.begin());
  25971. break;
  25972. case '$':
  25973. B.push(x.end());
  25974. break;
  25975. case '[':
  25976. var U;
  25977. '^' === V[C] ? ((U = !0), C++) : (U = !1);
  25978. var z = u.tokenizeClass(V.slice(C), s);
  25979. (C += z[1]), B.push({ type: _.SET, set: z[0], not: U });
  25980. break;
  25981. case '.':
  25982. B.push(w.anyChar());
  25983. break;
  25984. case '(':
  25985. var Y = { type: _.GROUP, stack: [], remember: !0 };
  25986. '?' === (i = V[C]) &&
  25987. ((i = V[C + 1]),
  25988. (C += 2),
  25989. '=' === i
  25990. ? (Y.followedBy = !0)
  25991. : '!' === i
  25992. ? (Y.notFollowedBy = !0)
  25993. : ':' !== i &&
  25994. u.error(
  25995. s,
  25996. `Invalid group, character '${i}' after '?' at column ` + (C - 1)
  25997. ),
  25998. (Y.remember = !1)),
  25999. B.push(Y),
  26000. $.push(L),
  26001. (L = Y),
  26002. (B = Y.stack);
  26003. break;
  26004. case ')':
  26005. 0 === $.length && u.error(s, 'Unmatched ) at column ' + (C - 1)),
  26006. (B = (L = $.pop()).options ? L.options[L.options.length - 1] : L.stack);
  26007. break;
  26008. case '|':
  26009. L.options || ((L.options = [L.stack]), delete L.stack);
  26010. var Z = [];
  26011. L.options.push(Z), (B = Z);
  26012. break;
  26013. case '{':
  26014. var ee,
  26015. ie,
  26016. ae = /^(\d+)(,(\d+)?)?\}/.exec(V.slice(C));
  26017. null !== ae
  26018. ? (0 === B.length && repeatErr(C),
  26019. (ee = parseInt(ae[1], 10)),
  26020. (ie = ae[2] ? (ae[3] ? parseInt(ae[3], 10) : 1 / 0) : ee),
  26021. (C += ae[0].length),
  26022. B.push({ type: _.REPETITION, min: ee, max: ie, value: B.pop() }))
  26023. : B.push({ type: _.CHAR, value: 123 });
  26024. break;
  26025. case '?':
  26026. 0 === B.length && repeatErr(C),
  26027. B.push({ type: _.REPETITION, min: 0, max: 1, value: B.pop() });
  26028. break;
  26029. case '+':
  26030. 0 === B.length && repeatErr(C),
  26031. B.push({ type: _.REPETITION, min: 1, max: 1 / 0, value: B.pop() });
  26032. break;
  26033. case '*':
  26034. 0 === B.length && repeatErr(C),
  26035. B.push({ type: _.REPETITION, min: 0, max: 1 / 0, value: B.pop() });
  26036. break;
  26037. default:
  26038. B.push({ type: _.CHAR, value: i.charCodeAt(0) });
  26039. }
  26040. return 0 !== $.length && u.error(s, 'Unterminated group'), j;
  26041. }),
  26042. (s.exports.types = _);
  26043. },
  26044. 8048: (s, o, i) => {
  26045. const u = i(6205);
  26046. (o.wordBoundary = () => ({ type: u.POSITION, value: 'b' })),
  26047. (o.nonWordBoundary = () => ({ type: u.POSITION, value: 'B' })),
  26048. (o.begin = () => ({ type: u.POSITION, value: '^' })),
  26049. (o.end = () => ({ type: u.POSITION, value: '$' }));
  26050. },
  26051. 10023: (s, o, i) => {
  26052. const u = i(6205),
  26053. INTS = () => [{ type: u.RANGE, from: 48, to: 57 }],
  26054. WORDS = () =>
  26055. [
  26056. { type: u.CHAR, value: 95 },
  26057. { type: u.RANGE, from: 97, to: 122 },
  26058. { type: u.RANGE, from: 65, to: 90 }
  26059. ].concat(INTS()),
  26060. WHITESPACE = () => [
  26061. { type: u.CHAR, value: 9 },
  26062. { type: u.CHAR, value: 10 },
  26063. { type: u.CHAR, value: 11 },
  26064. { type: u.CHAR, value: 12 },
  26065. { type: u.CHAR, value: 13 },
  26066. { type: u.CHAR, value: 32 },
  26067. { type: u.CHAR, value: 160 },
  26068. { type: u.CHAR, value: 5760 },
  26069. { type: u.RANGE, from: 8192, to: 8202 },
  26070. { type: u.CHAR, value: 8232 },
  26071. { type: u.CHAR, value: 8233 },
  26072. { type: u.CHAR, value: 8239 },
  26073. { type: u.CHAR, value: 8287 },
  26074. { type: u.CHAR, value: 12288 },
  26075. { type: u.CHAR, value: 65279 }
  26076. ];
  26077. (o.words = () => ({ type: u.SET, set: WORDS(), not: !1 })),
  26078. (o.notWords = () => ({ type: u.SET, set: WORDS(), not: !0 })),
  26079. (o.ints = () => ({ type: u.SET, set: INTS(), not: !1 })),
  26080. (o.notInts = () => ({ type: u.SET, set: INTS(), not: !0 })),
  26081. (o.whitespace = () => ({ type: u.SET, set: WHITESPACE(), not: !1 })),
  26082. (o.notWhitespace = () => ({ type: u.SET, set: WHITESPACE(), not: !0 })),
  26083. (o.anyChar = () => ({
  26084. type: u.SET,
  26085. set: [
  26086. { type: u.CHAR, value: 10 },
  26087. { type: u.CHAR, value: 13 },
  26088. { type: u.CHAR, value: 8232 },
  26089. { type: u.CHAR, value: 8233 }
  26090. ],
  26091. not: !0
  26092. }));
  26093. },
  26094. 6205: (s) => {
  26095. s.exports = {
  26096. ROOT: 0,
  26097. GROUP: 1,
  26098. POSITION: 2,
  26099. SET: 3,
  26100. RANGE: 4,
  26101. REPETITION: 5,
  26102. REFERENCE: 6,
  26103. CHAR: 7
  26104. };
  26105. },
  26106. 87586: (s, o, i) => {
  26107. const u = i(6205),
  26108. _ = i(10023),
  26109. w = { 0: 0, t: 9, n: 10, v: 11, f: 12, r: 13 };
  26110. (o.strToChars = function (s) {
  26111. return (s = s.replace(
  26112. /(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,
  26113. function (s, o, i, u, _, x, C, j) {
  26114. if (i) return s;
  26115. var L = o
  26116. ? 8
  26117. : u
  26118. ? parseInt(u, 16)
  26119. : _
  26120. ? parseInt(_, 16)
  26121. : x
  26122. ? parseInt(x, 8)
  26123. : C
  26124. ? '@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?'.indexOf(C)
  26125. : w[j],
  26126. B = String.fromCharCode(L);
  26127. return /[[\]{}^$.|?*+()]/.test(B) && (B = '\\' + B), B;
  26128. }
  26129. ));
  26130. }),
  26131. (o.tokenizeClass = (s, i) => {
  26132. for (
  26133. var w,
  26134. x,
  26135. C = [],
  26136. j =
  26137. /\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;
  26138. null != (w = j.exec(s));
  26139. )
  26140. if (w[1]) C.push(_.words());
  26141. else if (w[2]) C.push(_.ints());
  26142. else if (w[3]) C.push(_.whitespace());
  26143. else if (w[4]) C.push(_.notWords());
  26144. else if (w[5]) C.push(_.notInts());
  26145. else if (w[6]) C.push(_.notWhitespace());
  26146. else if (w[7])
  26147. C.push({
  26148. type: u.RANGE,
  26149. from: (w[8] || w[9]).charCodeAt(0),
  26150. to: w[10].charCodeAt(0)
  26151. });
  26152. else {
  26153. if (!(x = w[12])) return [C, j.lastIndex];
  26154. C.push({ type: u.CHAR, value: x.charCodeAt(0) });
  26155. }
  26156. o.error(i, 'Unterminated character class');
  26157. }),
  26158. (o.error = (s, o) => {
  26159. throw new SyntaxError('Invalid regular expression: /' + s + '/: ' + o);
  26160. });
  26161. },
  26162. 92861: (s, o, i) => {
  26163. var u = i(48287),
  26164. _ = u.Buffer;
  26165. function copyProps(s, o) {
  26166. for (var i in s) o[i] = s[i];
  26167. }
  26168. function SafeBuffer(s, o, i) {
  26169. return _(s, o, i);
  26170. }
  26171. _.from && _.alloc && _.allocUnsafe && _.allocUnsafeSlow
  26172. ? (s.exports = u)
  26173. : (copyProps(u, o), (o.Buffer = SafeBuffer)),
  26174. (SafeBuffer.prototype = Object.create(_.prototype)),
  26175. copyProps(_, SafeBuffer),
  26176. (SafeBuffer.from = function (s, o, i) {
  26177. if ('number' == typeof s) throw new TypeError('Argument must not be a number');
  26178. return _(s, o, i);
  26179. }),
  26180. (SafeBuffer.alloc = function (s, o, i) {
  26181. if ('number' != typeof s) throw new TypeError('Argument must be a number');
  26182. var u = _(s);
  26183. return (
  26184. void 0 !== o ? ('string' == typeof i ? u.fill(o, i) : u.fill(o)) : u.fill(0), u
  26185. );
  26186. }),
  26187. (SafeBuffer.allocUnsafe = function (s) {
  26188. if ('number' != typeof s) throw new TypeError('Argument must be a number');
  26189. return _(s);
  26190. }),
  26191. (SafeBuffer.allocUnsafeSlow = function (s) {
  26192. if ('number' != typeof s) throw new TypeError('Argument must be a number');
  26193. return u.SlowBuffer(s);
  26194. });
  26195. },
  26196. 29844: (s, o) => {
  26197. 'use strict';
  26198. function f(s, o) {
  26199. var i = s.length;
  26200. s.push(o);
  26201. e: for (; 0 < i; ) {
  26202. var u = (i - 1) >>> 1,
  26203. _ = s[u];
  26204. if (!(0 < g(_, o))) break e;
  26205. (s[u] = o), (s[i] = _), (i = u);
  26206. }
  26207. }
  26208. function h(s) {
  26209. return 0 === s.length ? null : s[0];
  26210. }
  26211. function k(s) {
  26212. if (0 === s.length) return null;
  26213. var o = s[0],
  26214. i = s.pop();
  26215. if (i !== o) {
  26216. s[0] = i;
  26217. e: for (var u = 0, _ = s.length, w = _ >>> 1; u < w; ) {
  26218. var x = 2 * (u + 1) - 1,
  26219. C = s[x],
  26220. j = x + 1,
  26221. L = s[j];
  26222. if (0 > g(C, i))
  26223. j < _ && 0 > g(L, C)
  26224. ? ((s[u] = L), (s[j] = i), (u = j))
  26225. : ((s[u] = C), (s[x] = i), (u = x));
  26226. else {
  26227. if (!(j < _ && 0 > g(L, i))) break e;
  26228. (s[u] = L), (s[j] = i), (u = j);
  26229. }
  26230. }
  26231. }
  26232. return o;
  26233. }
  26234. function g(s, o) {
  26235. var i = s.sortIndex - o.sortIndex;
  26236. return 0 !== i ? i : s.id - o.id;
  26237. }
  26238. if ('object' == typeof performance && 'function' == typeof performance.now) {
  26239. var i = performance;
  26240. o.unstable_now = function () {
  26241. return i.now();
  26242. };
  26243. } else {
  26244. var u = Date,
  26245. _ = u.now();
  26246. o.unstable_now = function () {
  26247. return u.now() - _;
  26248. };
  26249. }
  26250. var w = [],
  26251. x = [],
  26252. C = 1,
  26253. j = null,
  26254. L = 3,
  26255. B = !1,
  26256. $ = !1,
  26257. V = !1,
  26258. U = 'function' == typeof setTimeout ? setTimeout : null,
  26259. z = 'function' == typeof clearTimeout ? clearTimeout : null,
  26260. Y = 'undefined' != typeof setImmediate ? setImmediate : null;
  26261. function G(s) {
  26262. for (var o = h(x); null !== o; ) {
  26263. if (null === o.callback) k(x);
  26264. else {
  26265. if (!(o.startTime <= s)) break;
  26266. k(x), (o.sortIndex = o.expirationTime), f(w, o);
  26267. }
  26268. o = h(x);
  26269. }
  26270. }
  26271. function H(s) {
  26272. if (((V = !1), G(s), !$))
  26273. if (null !== h(w)) ($ = !0), I(J);
  26274. else {
  26275. var o = h(x);
  26276. null !== o && K(H, o.startTime - s);
  26277. }
  26278. }
  26279. function J(s, i) {
  26280. ($ = !1), V && ((V = !1), z(ae), (ae = -1)), (B = !0);
  26281. var u = L;
  26282. try {
  26283. for (G(i), j = h(w); null !== j && (!(j.expirationTime > i) || (s && !M())); ) {
  26284. var _ = j.callback;
  26285. if ('function' == typeof _) {
  26286. (j.callback = null), (L = j.priorityLevel);
  26287. var C = _(j.expirationTime <= i);
  26288. (i = o.unstable_now()),
  26289. 'function' == typeof C ? (j.callback = C) : j === h(w) && k(w),
  26290. G(i);
  26291. } else k(w);
  26292. j = h(w);
  26293. }
  26294. if (null !== j) var U = !0;
  26295. else {
  26296. var Y = h(x);
  26297. null !== Y && K(H, Y.startTime - i), (U = !1);
  26298. }
  26299. return U;
  26300. } finally {
  26301. (j = null), (L = u), (B = !1);
  26302. }
  26303. }
  26304. 'undefined' != typeof navigator &&
  26305. void 0 !== navigator.scheduling &&
  26306. void 0 !== navigator.scheduling.isInputPending &&
  26307. navigator.scheduling.isInputPending.bind(navigator.scheduling);
  26308. var Z,
  26309. ee = !1,
  26310. ie = null,
  26311. ae = -1,
  26312. le = 5,
  26313. ce = -1;
  26314. function M() {
  26315. return !(o.unstable_now() - ce < le);
  26316. }
  26317. function R() {
  26318. if (null !== ie) {
  26319. var s = o.unstable_now();
  26320. ce = s;
  26321. var i = !0;
  26322. try {
  26323. i = ie(!0, s);
  26324. } finally {
  26325. i ? Z() : ((ee = !1), (ie = null));
  26326. }
  26327. } else ee = !1;
  26328. }
  26329. if ('function' == typeof Y)
  26330. Z = function () {
  26331. Y(R);
  26332. };
  26333. else if ('undefined' != typeof MessageChannel) {
  26334. var pe = new MessageChannel(),
  26335. de = pe.port2;
  26336. (pe.port1.onmessage = R),
  26337. (Z = function () {
  26338. de.postMessage(null);
  26339. });
  26340. } else
  26341. Z = function () {
  26342. U(R, 0);
  26343. };
  26344. function I(s) {
  26345. (ie = s), ee || ((ee = !0), Z());
  26346. }
  26347. function K(s, i) {
  26348. ae = U(function () {
  26349. s(o.unstable_now());
  26350. }, i);
  26351. }
  26352. (o.unstable_IdlePriority = 5),
  26353. (o.unstable_ImmediatePriority = 1),
  26354. (o.unstable_LowPriority = 4),
  26355. (o.unstable_NormalPriority = 3),
  26356. (o.unstable_Profiling = null),
  26357. (o.unstable_UserBlockingPriority = 2),
  26358. (o.unstable_cancelCallback = function (s) {
  26359. s.callback = null;
  26360. }),
  26361. (o.unstable_continueExecution = function () {
  26362. $ || B || (($ = !0), I(J));
  26363. }),
  26364. (o.unstable_forceFrameRate = function (s) {
  26365. 0 > s || 125 < s
  26366. ? console.error(
  26367. 'forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported'
  26368. )
  26369. : (le = 0 < s ? Math.floor(1e3 / s) : 5);
  26370. }),
  26371. (o.unstable_getCurrentPriorityLevel = function () {
  26372. return L;
  26373. }),
  26374. (o.unstable_getFirstCallbackNode = function () {
  26375. return h(w);
  26376. }),
  26377. (o.unstable_next = function (s) {
  26378. switch (L) {
  26379. case 1:
  26380. case 2:
  26381. case 3:
  26382. var o = 3;
  26383. break;
  26384. default:
  26385. o = L;
  26386. }
  26387. var i = L;
  26388. L = o;
  26389. try {
  26390. return s();
  26391. } finally {
  26392. L = i;
  26393. }
  26394. }),
  26395. (o.unstable_pauseExecution = function () {}),
  26396. (o.unstable_requestPaint = function () {}),
  26397. (o.unstable_runWithPriority = function (s, o) {
  26398. switch (s) {
  26399. case 1:
  26400. case 2:
  26401. case 3:
  26402. case 4:
  26403. case 5:
  26404. break;
  26405. default:
  26406. s = 3;
  26407. }
  26408. var i = L;
  26409. L = s;
  26410. try {
  26411. return o();
  26412. } finally {
  26413. L = i;
  26414. }
  26415. }),
  26416. (o.unstable_scheduleCallback = function (s, i, u) {
  26417. var _ = o.unstable_now();
  26418. switch (
  26419. ('object' == typeof u && null !== u
  26420. ? (u = 'number' == typeof (u = u.delay) && 0 < u ? _ + u : _)
  26421. : (u = _),
  26422. s)
  26423. ) {
  26424. case 1:
  26425. var j = -1;
  26426. break;
  26427. case 2:
  26428. j = 250;
  26429. break;
  26430. case 5:
  26431. j = 1073741823;
  26432. break;
  26433. case 4:
  26434. j = 1e4;
  26435. break;
  26436. default:
  26437. j = 5e3;
  26438. }
  26439. return (
  26440. (s = {
  26441. id: C++,
  26442. callback: i,
  26443. priorityLevel: s,
  26444. startTime: u,
  26445. expirationTime: (j = u + j),
  26446. sortIndex: -1
  26447. }),
  26448. u > _
  26449. ? ((s.sortIndex = u),
  26450. f(x, s),
  26451. null === h(w) && s === h(x) && (V ? (z(ae), (ae = -1)) : (V = !0), K(H, u - _)))
  26452. : ((s.sortIndex = j), f(w, s), $ || B || (($ = !0), I(J))),
  26453. s
  26454. );
  26455. }),
  26456. (o.unstable_shouldYield = M),
  26457. (o.unstable_wrapCallback = function (s) {
  26458. var o = L;
  26459. return function () {
  26460. var i = L;
  26461. L = o;
  26462. try {
  26463. return s.apply(this, arguments);
  26464. } finally {
  26465. L = i;
  26466. }
  26467. };
  26468. });
  26469. },
  26470. 69982: (s, o, i) => {
  26471. 'use strict';
  26472. s.exports = i(29844);
  26473. },
  26474. 20334: (s, o, i) => {
  26475. 'use strict';
  26476. var u = i(48287).Buffer;
  26477. class NonError extends Error {
  26478. constructor(s) {
  26479. super(NonError._prepareSuperMessage(s)),
  26480. Object.defineProperty(this, 'name', {
  26481. value: 'NonError',
  26482. configurable: !0,
  26483. writable: !0
  26484. }),
  26485. Error.captureStackTrace && Error.captureStackTrace(this, NonError);
  26486. }
  26487. static _prepareSuperMessage(s) {
  26488. try {
  26489. return JSON.stringify(s);
  26490. } catch {
  26491. return String(s);
  26492. }
  26493. }
  26494. }
  26495. const _ = [
  26496. { property: 'name', enumerable: !1 },
  26497. { property: 'message', enumerable: !1 },
  26498. { property: 'stack', enumerable: !1 },
  26499. { property: 'code', enumerable: !0 }
  26500. ],
  26501. w = Symbol('.toJSON called'),
  26502. destroyCircular = ({
  26503. from: s,
  26504. seen: o,
  26505. to_: i,
  26506. forceEnumerable: x,
  26507. maxDepth: C,
  26508. depth: j
  26509. }) => {
  26510. const L = i || (Array.isArray(s) ? [] : {});
  26511. if ((o.push(s), j >= C)) return L;
  26512. if ('function' == typeof s.toJSON && !0 !== s[w])
  26513. return ((s) => {
  26514. s[w] = !0;
  26515. const o = s.toJSON();
  26516. return delete s[w], o;
  26517. })(s);
  26518. for (const [i, _] of Object.entries(s))
  26519. 'function' == typeof u && u.isBuffer(_)
  26520. ? (L[i] = '[object Buffer]')
  26521. : 'function' != typeof _ &&
  26522. (_ && 'object' == typeof _
  26523. ? o.includes(s[i])
  26524. ? (L[i] = '[Circular]')
  26525. : (j++,
  26526. (L[i] = destroyCircular({
  26527. from: s[i],
  26528. seen: o.slice(),
  26529. forceEnumerable: x,
  26530. maxDepth: C,
  26531. depth: j
  26532. })))
  26533. : (L[i] = _));
  26534. for (const { property: o, enumerable: i } of _)
  26535. 'string' == typeof s[o] &&
  26536. Object.defineProperty(L, o, {
  26537. value: s[o],
  26538. enumerable: !!x || i,
  26539. configurable: !0,
  26540. writable: !0
  26541. });
  26542. return L;
  26543. };
  26544. s.exports = {
  26545. serializeError: (s, o = {}) => {
  26546. const { maxDepth: i = Number.POSITIVE_INFINITY } = o;
  26547. return 'object' == typeof s && null !== s
  26548. ? destroyCircular({ from: s, seen: [], forceEnumerable: !0, maxDepth: i, depth: 0 })
  26549. : 'function' == typeof s
  26550. ? `[Function: ${s.name || 'anonymous'}]`
  26551. : s;
  26552. },
  26553. deserializeError: (s, o = {}) => {
  26554. const { maxDepth: i = Number.POSITIVE_INFINITY } = o;
  26555. if (s instanceof Error) return s;
  26556. if ('object' == typeof s && null !== s && !Array.isArray(s)) {
  26557. const o = new Error();
  26558. return destroyCircular({ from: s, seen: [], to_: o, maxDepth: i, depth: 0 }), o;
  26559. }
  26560. return new NonError(s);
  26561. }
  26562. };
  26563. },
  26564. 90392: (s, o, i) => {
  26565. var u = i(92861).Buffer;
  26566. function Hash(s, o) {
  26567. (this._block = u.alloc(s)),
  26568. (this._finalSize = o),
  26569. (this._blockSize = s),
  26570. (this._len = 0);
  26571. }
  26572. (Hash.prototype.update = function (s, o) {
  26573. 'string' == typeof s && ((o = o || 'utf8'), (s = u.from(s, o)));
  26574. for (
  26575. var i = this._block, _ = this._blockSize, w = s.length, x = this._len, C = 0;
  26576. C < w;
  26577. ) {
  26578. for (var j = x % _, L = Math.min(w - C, _ - j), B = 0; B < L; B++)
  26579. i[j + B] = s[C + B];
  26580. (C += L), (x += L) % _ == 0 && this._update(i);
  26581. }
  26582. return (this._len += w), this;
  26583. }),
  26584. (Hash.prototype.digest = function (s) {
  26585. var o = this._len % this._blockSize;
  26586. (this._block[o] = 128),
  26587. this._block.fill(0, o + 1),
  26588. o >= this._finalSize && (this._update(this._block), this._block.fill(0));
  26589. var i = 8 * this._len;
  26590. if (i <= 4294967295) this._block.writeUInt32BE(i, this._blockSize - 4);
  26591. else {
  26592. var u = (4294967295 & i) >>> 0,
  26593. _ = (i - u) / 4294967296;
  26594. this._block.writeUInt32BE(_, this._blockSize - 8),
  26595. this._block.writeUInt32BE(u, this._blockSize - 4);
  26596. }
  26597. this._update(this._block);
  26598. var w = this._hash();
  26599. return s ? w.toString(s) : w;
  26600. }),
  26601. (Hash.prototype._update = function () {
  26602. throw new Error('_update must be implemented by subclass');
  26603. }),
  26604. (s.exports = Hash);
  26605. },
  26606. 62802: (s, o, i) => {
  26607. var u = (s.exports = function SHA(s) {
  26608. s = s.toLowerCase();
  26609. var o = u[s];
  26610. if (!o) throw new Error(s + ' is not supported (we accept pull requests)');
  26611. return new o();
  26612. });
  26613. (u.sha = i(27816)),
  26614. (u.sha1 = i(63737)),
  26615. (u.sha224 = i(26710)),
  26616. (u.sha256 = i(24107)),
  26617. (u.sha384 = i(32827)),
  26618. (u.sha512 = i(82890));
  26619. },
  26620. 27816: (s, o, i) => {
  26621. var u = i(56698),
  26622. _ = i(90392),
  26623. w = i(92861).Buffer,
  26624. x = [1518500249, 1859775393, -1894007588, -899497514],
  26625. C = new Array(80);
  26626. function Sha() {
  26627. this.init(), (this._w = C), _.call(this, 64, 56);
  26628. }
  26629. function rotl30(s) {
  26630. return (s << 30) | (s >>> 2);
  26631. }
  26632. function ft(s, o, i, u) {
  26633. return 0 === s ? (o & i) | (~o & u) : 2 === s ? (o & i) | (o & u) | (i & u) : o ^ i ^ u;
  26634. }
  26635. u(Sha, _),
  26636. (Sha.prototype.init = function () {
  26637. return (
  26638. (this._a = 1732584193),
  26639. (this._b = 4023233417),
  26640. (this._c = 2562383102),
  26641. (this._d = 271733878),
  26642. (this._e = 3285377520),
  26643. this
  26644. );
  26645. }),
  26646. (Sha.prototype._update = function (s) {
  26647. for (
  26648. var o,
  26649. i = this._w,
  26650. u = 0 | this._a,
  26651. _ = 0 | this._b,
  26652. w = 0 | this._c,
  26653. C = 0 | this._d,
  26654. j = 0 | this._e,
  26655. L = 0;
  26656. L < 16;
  26657. ++L
  26658. )
  26659. i[L] = s.readInt32BE(4 * L);
  26660. for (; L < 80; ++L) i[L] = i[L - 3] ^ i[L - 8] ^ i[L - 14] ^ i[L - 16];
  26661. for (var B = 0; B < 80; ++B) {
  26662. var $ = ~~(B / 20),
  26663. V = 0 | ((((o = u) << 5) | (o >>> 27)) + ft($, _, w, C) + j + i[B] + x[$]);
  26664. (j = C), (C = w), (w = rotl30(_)), (_ = u), (u = V);
  26665. }
  26666. (this._a = (u + this._a) | 0),
  26667. (this._b = (_ + this._b) | 0),
  26668. (this._c = (w + this._c) | 0),
  26669. (this._d = (C + this._d) | 0),
  26670. (this._e = (j + this._e) | 0);
  26671. }),
  26672. (Sha.prototype._hash = function () {
  26673. var s = w.allocUnsafe(20);
  26674. return (
  26675. s.writeInt32BE(0 | this._a, 0),
  26676. s.writeInt32BE(0 | this._b, 4),
  26677. s.writeInt32BE(0 | this._c, 8),
  26678. s.writeInt32BE(0 | this._d, 12),
  26679. s.writeInt32BE(0 | this._e, 16),
  26680. s
  26681. );
  26682. }),
  26683. (s.exports = Sha);
  26684. },
  26685. 63737: (s, o, i) => {
  26686. var u = i(56698),
  26687. _ = i(90392),
  26688. w = i(92861).Buffer,
  26689. x = [1518500249, 1859775393, -1894007588, -899497514],
  26690. C = new Array(80);
  26691. function Sha1() {
  26692. this.init(), (this._w = C), _.call(this, 64, 56);
  26693. }
  26694. function rotl5(s) {
  26695. return (s << 5) | (s >>> 27);
  26696. }
  26697. function rotl30(s) {
  26698. return (s << 30) | (s >>> 2);
  26699. }
  26700. function ft(s, o, i, u) {
  26701. return 0 === s ? (o & i) | (~o & u) : 2 === s ? (o & i) | (o & u) | (i & u) : o ^ i ^ u;
  26702. }
  26703. u(Sha1, _),
  26704. (Sha1.prototype.init = function () {
  26705. return (
  26706. (this._a = 1732584193),
  26707. (this._b = 4023233417),
  26708. (this._c = 2562383102),
  26709. (this._d = 271733878),
  26710. (this._e = 3285377520),
  26711. this
  26712. );
  26713. }),
  26714. (Sha1.prototype._update = function (s) {
  26715. for (
  26716. var o,
  26717. i = this._w,
  26718. u = 0 | this._a,
  26719. _ = 0 | this._b,
  26720. w = 0 | this._c,
  26721. C = 0 | this._d,
  26722. j = 0 | this._e,
  26723. L = 0;
  26724. L < 16;
  26725. ++L
  26726. )
  26727. i[L] = s.readInt32BE(4 * L);
  26728. for (; L < 80; ++L)
  26729. i[L] = ((o = i[L - 3] ^ i[L - 8] ^ i[L - 14] ^ i[L - 16]) << 1) | (o >>> 31);
  26730. for (var B = 0; B < 80; ++B) {
  26731. var $ = ~~(B / 20),
  26732. V = (rotl5(u) + ft($, _, w, C) + j + i[B] + x[$]) | 0;
  26733. (j = C), (C = w), (w = rotl30(_)), (_ = u), (u = V);
  26734. }
  26735. (this._a = (u + this._a) | 0),
  26736. (this._b = (_ + this._b) | 0),
  26737. (this._c = (w + this._c) | 0),
  26738. (this._d = (C + this._d) | 0),
  26739. (this._e = (j + this._e) | 0);
  26740. }),
  26741. (Sha1.prototype._hash = function () {
  26742. var s = w.allocUnsafe(20);
  26743. return (
  26744. s.writeInt32BE(0 | this._a, 0),
  26745. s.writeInt32BE(0 | this._b, 4),
  26746. s.writeInt32BE(0 | this._c, 8),
  26747. s.writeInt32BE(0 | this._d, 12),
  26748. s.writeInt32BE(0 | this._e, 16),
  26749. s
  26750. );
  26751. }),
  26752. (s.exports = Sha1);
  26753. },
  26754. 26710: (s, o, i) => {
  26755. var u = i(56698),
  26756. _ = i(24107),
  26757. w = i(90392),
  26758. x = i(92861).Buffer,
  26759. C = new Array(64);
  26760. function Sha224() {
  26761. this.init(), (this._w = C), w.call(this, 64, 56);
  26762. }
  26763. u(Sha224, _),
  26764. (Sha224.prototype.init = function () {
  26765. return (
  26766. (this._a = 3238371032),
  26767. (this._b = 914150663),
  26768. (this._c = 812702999),
  26769. (this._d = 4144912697),
  26770. (this._e = 4290775857),
  26771. (this._f = 1750603025),
  26772. (this._g = 1694076839),
  26773. (this._h = 3204075428),
  26774. this
  26775. );
  26776. }),
  26777. (Sha224.prototype._hash = function () {
  26778. var s = x.allocUnsafe(28);
  26779. return (
  26780. s.writeInt32BE(this._a, 0),
  26781. s.writeInt32BE(this._b, 4),
  26782. s.writeInt32BE(this._c, 8),
  26783. s.writeInt32BE(this._d, 12),
  26784. s.writeInt32BE(this._e, 16),
  26785. s.writeInt32BE(this._f, 20),
  26786. s.writeInt32BE(this._g, 24),
  26787. s
  26788. );
  26789. }),
  26790. (s.exports = Sha224);
  26791. },
  26792. 24107: (s, o, i) => {
  26793. var u = i(56698),
  26794. _ = i(90392),
  26795. w = i(92861).Buffer,
  26796. x = [
  26797. 1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748,
  26798. 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206,
  26799. 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983,
  26800. 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671,
  26801. 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372,
  26802. 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411,
  26803. 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734,
  26804. 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779,
  26805. 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479,
  26806. 3329325298
  26807. ],
  26808. C = new Array(64);
  26809. function Sha256() {
  26810. this.init(), (this._w = C), _.call(this, 64, 56);
  26811. }
  26812. function ch(s, o, i) {
  26813. return i ^ (s & (o ^ i));
  26814. }
  26815. function maj(s, o, i) {
  26816. return (s & o) | (i & (s | o));
  26817. }
  26818. function sigma0(s) {
  26819. return ((s >>> 2) | (s << 30)) ^ ((s >>> 13) | (s << 19)) ^ ((s >>> 22) | (s << 10));
  26820. }
  26821. function sigma1(s) {
  26822. return ((s >>> 6) | (s << 26)) ^ ((s >>> 11) | (s << 21)) ^ ((s >>> 25) | (s << 7));
  26823. }
  26824. function gamma0(s) {
  26825. return ((s >>> 7) | (s << 25)) ^ ((s >>> 18) | (s << 14)) ^ (s >>> 3);
  26826. }
  26827. u(Sha256, _),
  26828. (Sha256.prototype.init = function () {
  26829. return (
  26830. (this._a = 1779033703),
  26831. (this._b = 3144134277),
  26832. (this._c = 1013904242),
  26833. (this._d = 2773480762),
  26834. (this._e = 1359893119),
  26835. (this._f = 2600822924),
  26836. (this._g = 528734635),
  26837. (this._h = 1541459225),
  26838. this
  26839. );
  26840. }),
  26841. (Sha256.prototype._update = function (s) {
  26842. for (
  26843. var o,
  26844. i = this._w,
  26845. u = 0 | this._a,
  26846. _ = 0 | this._b,
  26847. w = 0 | this._c,
  26848. C = 0 | this._d,
  26849. j = 0 | this._e,
  26850. L = 0 | this._f,
  26851. B = 0 | this._g,
  26852. $ = 0 | this._h,
  26853. V = 0;
  26854. V < 16;
  26855. ++V
  26856. )
  26857. i[V] = s.readInt32BE(4 * V);
  26858. for (; V < 64; ++V)
  26859. i[V] =
  26860. 0 |
  26861. (((((o = i[V - 2]) >>> 17) | (o << 15)) ^ ((o >>> 19) | (o << 13)) ^ (o >>> 10)) +
  26862. i[V - 7] +
  26863. gamma0(i[V - 15]) +
  26864. i[V - 16]);
  26865. for (var U = 0; U < 64; ++U) {
  26866. var z = ($ + sigma1(j) + ch(j, L, B) + x[U] + i[U]) | 0,
  26867. Y = (sigma0(u) + maj(u, _, w)) | 0;
  26868. ($ = B),
  26869. (B = L),
  26870. (L = j),
  26871. (j = (C + z) | 0),
  26872. (C = w),
  26873. (w = _),
  26874. (_ = u),
  26875. (u = (z + Y) | 0);
  26876. }
  26877. (this._a = (u + this._a) | 0),
  26878. (this._b = (_ + this._b) | 0),
  26879. (this._c = (w + this._c) | 0),
  26880. (this._d = (C + this._d) | 0),
  26881. (this._e = (j + this._e) | 0),
  26882. (this._f = (L + this._f) | 0),
  26883. (this._g = (B + this._g) | 0),
  26884. (this._h = ($ + this._h) | 0);
  26885. }),
  26886. (Sha256.prototype._hash = function () {
  26887. var s = w.allocUnsafe(32);
  26888. return (
  26889. s.writeInt32BE(this._a, 0),
  26890. s.writeInt32BE(this._b, 4),
  26891. s.writeInt32BE(this._c, 8),
  26892. s.writeInt32BE(this._d, 12),
  26893. s.writeInt32BE(this._e, 16),
  26894. s.writeInt32BE(this._f, 20),
  26895. s.writeInt32BE(this._g, 24),
  26896. s.writeInt32BE(this._h, 28),
  26897. s
  26898. );
  26899. }),
  26900. (s.exports = Sha256);
  26901. },
  26902. 32827: (s, o, i) => {
  26903. var u = i(56698),
  26904. _ = i(82890),
  26905. w = i(90392),
  26906. x = i(92861).Buffer,
  26907. C = new Array(160);
  26908. function Sha384() {
  26909. this.init(), (this._w = C), w.call(this, 128, 112);
  26910. }
  26911. u(Sha384, _),
  26912. (Sha384.prototype.init = function () {
  26913. return (
  26914. (this._ah = 3418070365),
  26915. (this._bh = 1654270250),
  26916. (this._ch = 2438529370),
  26917. (this._dh = 355462360),
  26918. (this._eh = 1731405415),
  26919. (this._fh = 2394180231),
  26920. (this._gh = 3675008525),
  26921. (this._hh = 1203062813),
  26922. (this._al = 3238371032),
  26923. (this._bl = 914150663),
  26924. (this._cl = 812702999),
  26925. (this._dl = 4144912697),
  26926. (this._el = 4290775857),
  26927. (this._fl = 1750603025),
  26928. (this._gl = 1694076839),
  26929. (this._hl = 3204075428),
  26930. this
  26931. );
  26932. }),
  26933. (Sha384.prototype._hash = function () {
  26934. var s = x.allocUnsafe(48);
  26935. function writeInt64BE(o, i, u) {
  26936. s.writeInt32BE(o, u), s.writeInt32BE(i, u + 4);
  26937. }
  26938. return (
  26939. writeInt64BE(this._ah, this._al, 0),
  26940. writeInt64BE(this._bh, this._bl, 8),
  26941. writeInt64BE(this._ch, this._cl, 16),
  26942. writeInt64BE(this._dh, this._dl, 24),
  26943. writeInt64BE(this._eh, this._el, 32),
  26944. writeInt64BE(this._fh, this._fl, 40),
  26945. s
  26946. );
  26947. }),
  26948. (s.exports = Sha384);
  26949. },
  26950. 82890: (s, o, i) => {
  26951. var u = i(56698),
  26952. _ = i(90392),
  26953. w = i(92861).Buffer,
  26954. x = [
  26955. 1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573,
  26956. 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579,
  26957. 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278,
  26958. 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113,
  26959. 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774,
  26960. 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901,
  26961. 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882,
  26962. 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956,
  26963. 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895,
  26964. 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485,
  26965. 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350,
  26966. 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273,
  26967. 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804,
  26968. 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752,
  26969. 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571,
  26970. 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899,
  26971. 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424,
  26972. 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573,
  26973. 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606,
  26974. 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270,
  26975. 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971,
  26976. 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158,
  26977. 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591
  26978. ],
  26979. C = new Array(160);
  26980. function Sha512() {
  26981. this.init(), (this._w = C), _.call(this, 128, 112);
  26982. }
  26983. function Ch(s, o, i) {
  26984. return i ^ (s & (o ^ i));
  26985. }
  26986. function maj(s, o, i) {
  26987. return (s & o) | (i & (s | o));
  26988. }
  26989. function sigma0(s, o) {
  26990. return ((s >>> 28) | (o << 4)) ^ ((o >>> 2) | (s << 30)) ^ ((o >>> 7) | (s << 25));
  26991. }
  26992. function sigma1(s, o) {
  26993. return ((s >>> 14) | (o << 18)) ^ ((s >>> 18) | (o << 14)) ^ ((o >>> 9) | (s << 23));
  26994. }
  26995. function Gamma0(s, o) {
  26996. return ((s >>> 1) | (o << 31)) ^ ((s >>> 8) | (o << 24)) ^ (s >>> 7);
  26997. }
  26998. function Gamma0l(s, o) {
  26999. return ((s >>> 1) | (o << 31)) ^ ((s >>> 8) | (o << 24)) ^ ((s >>> 7) | (o << 25));
  27000. }
  27001. function Gamma1(s, o) {
  27002. return ((s >>> 19) | (o << 13)) ^ ((o >>> 29) | (s << 3)) ^ (s >>> 6);
  27003. }
  27004. function Gamma1l(s, o) {
  27005. return ((s >>> 19) | (o << 13)) ^ ((o >>> 29) | (s << 3)) ^ ((s >>> 6) | (o << 26));
  27006. }
  27007. function getCarry(s, o) {
  27008. return s >>> 0 < o >>> 0 ? 1 : 0;
  27009. }
  27010. u(Sha512, _),
  27011. (Sha512.prototype.init = function () {
  27012. return (
  27013. (this._ah = 1779033703),
  27014. (this._bh = 3144134277),
  27015. (this._ch = 1013904242),
  27016. (this._dh = 2773480762),
  27017. (this._eh = 1359893119),
  27018. (this._fh = 2600822924),
  27019. (this._gh = 528734635),
  27020. (this._hh = 1541459225),
  27021. (this._al = 4089235720),
  27022. (this._bl = 2227873595),
  27023. (this._cl = 4271175723),
  27024. (this._dl = 1595750129),
  27025. (this._el = 2917565137),
  27026. (this._fl = 725511199),
  27027. (this._gl = 4215389547),
  27028. (this._hl = 327033209),
  27029. this
  27030. );
  27031. }),
  27032. (Sha512.prototype._update = function (s) {
  27033. for (
  27034. var o = this._w,
  27035. i = 0 | this._ah,
  27036. u = 0 | this._bh,
  27037. _ = 0 | this._ch,
  27038. w = 0 | this._dh,
  27039. C = 0 | this._eh,
  27040. j = 0 | this._fh,
  27041. L = 0 | this._gh,
  27042. B = 0 | this._hh,
  27043. $ = 0 | this._al,
  27044. V = 0 | this._bl,
  27045. U = 0 | this._cl,
  27046. z = 0 | this._dl,
  27047. Y = 0 | this._el,
  27048. Z = 0 | this._fl,
  27049. ee = 0 | this._gl,
  27050. ie = 0 | this._hl,
  27051. ae = 0;
  27052. ae < 32;
  27053. ae += 2
  27054. )
  27055. (o[ae] = s.readInt32BE(4 * ae)), (o[ae + 1] = s.readInt32BE(4 * ae + 4));
  27056. for (; ae < 160; ae += 2) {
  27057. var le = o[ae - 30],
  27058. ce = o[ae - 30 + 1],
  27059. pe = Gamma0(le, ce),
  27060. de = Gamma0l(ce, le),
  27061. fe = Gamma1((le = o[ae - 4]), (ce = o[ae - 4 + 1])),
  27062. ye = Gamma1l(ce, le),
  27063. be = o[ae - 14],
  27064. _e = o[ae - 14 + 1],
  27065. we = o[ae - 32],
  27066. Se = o[ae - 32 + 1],
  27067. xe = (de + _e) | 0,
  27068. Pe = (pe + be + getCarry(xe, de)) | 0;
  27069. (Pe =
  27070. ((Pe = (Pe + fe + getCarry((xe = (xe + ye) | 0), ye)) | 0) +
  27071. we +
  27072. getCarry((xe = (xe + Se) | 0), Se)) |
  27073. 0),
  27074. (o[ae] = Pe),
  27075. (o[ae + 1] = xe);
  27076. }
  27077. for (var Te = 0; Te < 160; Te += 2) {
  27078. (Pe = o[Te]), (xe = o[Te + 1]);
  27079. var Re = maj(i, u, _),
  27080. qe = maj($, V, U),
  27081. $e = sigma0(i, $),
  27082. ze = sigma0($, i),
  27083. We = sigma1(C, Y),
  27084. He = sigma1(Y, C),
  27085. Ye = x[Te],
  27086. Xe = x[Te + 1],
  27087. Qe = Ch(C, j, L),
  27088. et = Ch(Y, Z, ee),
  27089. tt = (ie + He) | 0,
  27090. rt = (B + We + getCarry(tt, ie)) | 0;
  27091. rt =
  27092. ((rt =
  27093. ((rt = (rt + Qe + getCarry((tt = (tt + et) | 0), et)) | 0) +
  27094. Ye +
  27095. getCarry((tt = (tt + Xe) | 0), Xe)) |
  27096. 0) +
  27097. Pe +
  27098. getCarry((tt = (tt + xe) | 0), xe)) |
  27099. 0;
  27100. var nt = (ze + qe) | 0,
  27101. st = ($e + Re + getCarry(nt, ze)) | 0;
  27102. (B = L),
  27103. (ie = ee),
  27104. (L = j),
  27105. (ee = Z),
  27106. (j = C),
  27107. (Z = Y),
  27108. (C = (w + rt + getCarry((Y = (z + tt) | 0), z)) | 0),
  27109. (w = _),
  27110. (z = U),
  27111. (_ = u),
  27112. (U = V),
  27113. (u = i),
  27114. (V = $),
  27115. (i = (rt + st + getCarry(($ = (tt + nt) | 0), tt)) | 0);
  27116. }
  27117. (this._al = (this._al + $) | 0),
  27118. (this._bl = (this._bl + V) | 0),
  27119. (this._cl = (this._cl + U) | 0),
  27120. (this._dl = (this._dl + z) | 0),
  27121. (this._el = (this._el + Y) | 0),
  27122. (this._fl = (this._fl + Z) | 0),
  27123. (this._gl = (this._gl + ee) | 0),
  27124. (this._hl = (this._hl + ie) | 0),
  27125. (this._ah = (this._ah + i + getCarry(this._al, $)) | 0),
  27126. (this._bh = (this._bh + u + getCarry(this._bl, V)) | 0),
  27127. (this._ch = (this._ch + _ + getCarry(this._cl, U)) | 0),
  27128. (this._dh = (this._dh + w + getCarry(this._dl, z)) | 0),
  27129. (this._eh = (this._eh + C + getCarry(this._el, Y)) | 0),
  27130. (this._fh = (this._fh + j + getCarry(this._fl, Z)) | 0),
  27131. (this._gh = (this._gh + L + getCarry(this._gl, ee)) | 0),
  27132. (this._hh = (this._hh + B + getCarry(this._hl, ie)) | 0);
  27133. }),
  27134. (Sha512.prototype._hash = function () {
  27135. var s = w.allocUnsafe(64);
  27136. function writeInt64BE(o, i, u) {
  27137. s.writeInt32BE(o, u), s.writeInt32BE(i, u + 4);
  27138. }
  27139. return (
  27140. writeInt64BE(this._ah, this._al, 0),
  27141. writeInt64BE(this._bh, this._bl, 8),
  27142. writeInt64BE(this._ch, this._cl, 16),
  27143. writeInt64BE(this._dh, this._dl, 24),
  27144. writeInt64BE(this._eh, this._el, 32),
  27145. writeInt64BE(this._fh, this._fl, 40),
  27146. writeInt64BE(this._gh, this._gl, 48),
  27147. writeInt64BE(this._hh, this._hl, 56),
  27148. s
  27149. );
  27150. }),
  27151. (s.exports = Sha512);
  27152. },
  27153. 8068: (s) => {
  27154. 'use strict';
  27155. var o = (() => {
  27156. var s = Object.defineProperty,
  27157. o = Object.getOwnPropertyDescriptor,
  27158. i = Object.getOwnPropertyNames,
  27159. u = Object.getOwnPropertySymbols,
  27160. _ = Object.prototype.hasOwnProperty,
  27161. w = Object.prototype.propertyIsEnumerable,
  27162. __defNormalProp = (o, i, u) =>
  27163. i in o
  27164. ? s(o, i, { enumerable: !0, configurable: !0, writable: !0, value: u })
  27165. : (o[i] = u),
  27166. __spreadValues = (s, o) => {
  27167. for (var i in o || (o = {})) _.call(o, i) && __defNormalProp(s, i, o[i]);
  27168. if (u) for (var i of u(o)) w.call(o, i) && __defNormalProp(s, i, o[i]);
  27169. return s;
  27170. },
  27171. __publicField = (s, o, i) => (
  27172. __defNormalProp(s, 'symbol' != typeof o ? o + '' : o, i), i
  27173. ),
  27174. x = {};
  27175. ((o, i) => {
  27176. for (var u in i) s(o, u, { get: i[u], enumerable: !0 });
  27177. })(x, { DEFAULT_OPTIONS: () => j, DEFAULT_UUID_LENGTH: () => C, default: () => $ });
  27178. var C = 6,
  27179. j = { dictionary: 'alphanum', shuffle: !0, debug: !1, length: C, counter: 0 },
  27180. L = class _ShortUniqueId {
  27181. constructor(s = {}) {
  27182. __publicField(this, 'counter'),
  27183. __publicField(this, 'debug'),
  27184. __publicField(this, 'dict'),
  27185. __publicField(this, 'version'),
  27186. __publicField(this, 'dictIndex', 0),
  27187. __publicField(this, 'dictRange', []),
  27188. __publicField(this, 'lowerBound', 0),
  27189. __publicField(this, 'upperBound', 0),
  27190. __publicField(this, 'dictLength', 0),
  27191. __publicField(this, 'uuidLength'),
  27192. __publicField(this, '_digit_first_ascii', 48),
  27193. __publicField(this, '_digit_last_ascii', 58),
  27194. __publicField(this, '_alpha_lower_first_ascii', 97),
  27195. __publicField(this, '_alpha_lower_last_ascii', 123),
  27196. __publicField(this, '_hex_last_ascii', 103),
  27197. __publicField(this, '_alpha_upper_first_ascii', 65),
  27198. __publicField(this, '_alpha_upper_last_ascii', 91),
  27199. __publicField(this, '_number_dict_ranges', {
  27200. digits: [this._digit_first_ascii, this._digit_last_ascii]
  27201. }),
  27202. __publicField(this, '_alpha_dict_ranges', {
  27203. lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
  27204. upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
  27205. }),
  27206. __publicField(this, '_alpha_lower_dict_ranges', {
  27207. lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
  27208. }),
  27209. __publicField(this, '_alpha_upper_dict_ranges', {
  27210. upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
  27211. }),
  27212. __publicField(this, '_alphanum_dict_ranges', {
  27213. digits: [this._digit_first_ascii, this._digit_last_ascii],
  27214. lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
  27215. upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
  27216. }),
  27217. __publicField(this, '_alphanum_lower_dict_ranges', {
  27218. digits: [this._digit_first_ascii, this._digit_last_ascii],
  27219. lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
  27220. }),
  27221. __publicField(this, '_alphanum_upper_dict_ranges', {
  27222. digits: [this._digit_first_ascii, this._digit_last_ascii],
  27223. upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
  27224. }),
  27225. __publicField(this, '_hex_dict_ranges', {
  27226. decDigits: [this._digit_first_ascii, this._digit_last_ascii],
  27227. alphaDigits: [this._alpha_lower_first_ascii, this._hex_last_ascii]
  27228. }),
  27229. __publicField(this, '_dict_ranges', {
  27230. _number_dict_ranges: this._number_dict_ranges,
  27231. _alpha_dict_ranges: this._alpha_dict_ranges,
  27232. _alpha_lower_dict_ranges: this._alpha_lower_dict_ranges,
  27233. _alpha_upper_dict_ranges: this._alpha_upper_dict_ranges,
  27234. _alphanum_dict_ranges: this._alphanum_dict_ranges,
  27235. _alphanum_lower_dict_ranges: this._alphanum_lower_dict_ranges,
  27236. _alphanum_upper_dict_ranges: this._alphanum_upper_dict_ranges,
  27237. _hex_dict_ranges: this._hex_dict_ranges
  27238. }),
  27239. __publicField(this, 'log', (...s) => {
  27240. const o = [...s];
  27241. if (
  27242. ((o[0] = `[short-unique-id] ${s[0]}`),
  27243. !0 === this.debug && 'undefined' != typeof console && null !== console)
  27244. )
  27245. return console.log(...o);
  27246. }),
  27247. __publicField(this, '_normalizeDictionary', (s, o) => {
  27248. let i;
  27249. if (s && Array.isArray(s) && s.length > 1) i = s;
  27250. else {
  27251. let o;
  27252. (i = []), (this.dictIndex = o = 0);
  27253. const u = `_${s}_dict_ranges`,
  27254. _ = this._dict_ranges[u];
  27255. Object.keys(_).forEach((s) => {
  27256. const u = s;
  27257. for (
  27258. this.dictRange = _[u],
  27259. this.lowerBound = this.dictRange[0],
  27260. this.upperBound = this.dictRange[1],
  27261. this.dictIndex = o = this.lowerBound;
  27262. this.lowerBound <= this.upperBound
  27263. ? o < this.upperBound
  27264. : o > this.upperBound;
  27265. this.dictIndex =
  27266. this.lowerBound <= this.upperBound ? (o += 1) : (o -= 1)
  27267. )
  27268. i.push(String.fromCharCode(this.dictIndex));
  27269. });
  27270. }
  27271. if (o) {
  27272. const s = 0.5;
  27273. i = i.sort(() => Math.random() - s);
  27274. }
  27275. return i;
  27276. }),
  27277. __publicField(this, 'setDictionary', (s, o) => {
  27278. (this.dict = this._normalizeDictionary(s, o)),
  27279. (this.dictLength = this.dict.length),
  27280. this.setCounter(0);
  27281. }),
  27282. __publicField(this, 'seq', () => this.sequentialUUID()),
  27283. __publicField(this, 'sequentialUUID', () => {
  27284. let s,
  27285. o,
  27286. i = '';
  27287. s = this.counter;
  27288. do {
  27289. (o = s % this.dictLength),
  27290. (s = Math.trunc(s / this.dictLength)),
  27291. (i += this.dict[o]);
  27292. } while (0 !== s);
  27293. return (this.counter += 1), i;
  27294. }),
  27295. __publicField(this, 'rnd', (s = this.uuidLength || C) => this.randomUUID(s)),
  27296. __publicField(this, 'randomUUID', (s = this.uuidLength || C) => {
  27297. let o, i, u;
  27298. if (null == s || s < 1) throw new Error('Invalid UUID Length Provided');
  27299. for (o = '', u = 0; u < s; u += 1)
  27300. (i =
  27301. parseInt((Math.random() * this.dictLength).toFixed(0), 10) %
  27302. this.dictLength),
  27303. (o += this.dict[i]);
  27304. return o;
  27305. }),
  27306. __publicField(this, 'fmt', (s, o) => this.formattedUUID(s, o)),
  27307. __publicField(this, 'formattedUUID', (s, o) => {
  27308. const i = { $r: this.randomUUID, $s: this.sequentialUUID, $t: this.stamp };
  27309. return s.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g, (s) => {
  27310. const u = s.slice(0, 2),
  27311. _ = parseInt(s.slice(2), 10);
  27312. return '$s' === u
  27313. ? i[u]().padStart(_, '0')
  27314. : '$t' === u && o
  27315. ? i[u](_, o)
  27316. : i[u](_);
  27317. });
  27318. }),
  27319. __publicField(this, 'availableUUIDs', (s = this.uuidLength) =>
  27320. parseFloat(Math.pow([...new Set(this.dict)].length, s).toFixed(0))
  27321. ),
  27322. __publicField(
  27323. this,
  27324. 'approxMaxBeforeCollision',
  27325. (s = this.availableUUIDs(this.uuidLength)) =>
  27326. parseFloat(Math.sqrt((Math.PI / 2) * s).toFixed(20))
  27327. ),
  27328. __publicField(
  27329. this,
  27330. 'collisionProbability',
  27331. (s = this.availableUUIDs(this.uuidLength), o = this.uuidLength) =>
  27332. parseFloat(
  27333. (this.approxMaxBeforeCollision(s) / this.availableUUIDs(o)).toFixed(20)
  27334. )
  27335. ),
  27336. __publicField(
  27337. this,
  27338. 'uniqueness',
  27339. (s = this.availableUUIDs(this.uuidLength)) => {
  27340. const o = parseFloat(
  27341. (1 - this.approxMaxBeforeCollision(s) / s).toFixed(20)
  27342. );
  27343. return o > 1 ? 1 : o < 0 ? 0 : o;
  27344. }
  27345. ),
  27346. __publicField(this, 'getVersion', () => this.version),
  27347. __publicField(this, 'stamp', (s, o) => {
  27348. const i = Math.floor(+(o || new Date()) / 1e3).toString(16);
  27349. if ('number' == typeof s && 0 === s) return i;
  27350. if ('number' != typeof s || s < 10)
  27351. throw new Error(
  27352. [
  27353. 'Param finalLength must be a number greater than or equal to 10,',
  27354. 'or 0 if you want the raw hexadecimal timestamp'
  27355. ].join('\n')
  27356. );
  27357. const u = s - 9,
  27358. _ = Math.round(Math.random() * (u > 15 ? 15 : u)),
  27359. w = this.randomUUID(u);
  27360. return `${w.substring(0, _)}${i}${w.substring(_)}${_.toString(16)}`;
  27361. }),
  27362. __publicField(this, 'parseStamp', (s, o) => {
  27363. if (o && !/t0|t[1-9]\d{1,}/.test(o))
  27364. throw new Error(
  27365. 'Cannot extract date from a formated UUID with no timestamp in the format'
  27366. );
  27367. const i = o
  27368. ? o
  27369. .replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g, (s) => {
  27370. const o = {
  27371. $r: (s) => [...Array(s)].map(() => 'r').join(''),
  27372. $s: (s) => [...Array(s)].map(() => 's').join(''),
  27373. $t: (s) => [...Array(s)].map(() => 't').join('')
  27374. },
  27375. i = s.slice(0, 2),
  27376. u = parseInt(s.slice(2), 10);
  27377. return o[i](u);
  27378. })
  27379. .replace(/^(.*?)(t{8,})(.*)$/g, (o, i, u) =>
  27380. s.substring(i.length, i.length + u.length)
  27381. )
  27382. : s;
  27383. if (8 === i.length) return new Date(1e3 * parseInt(i, 16));
  27384. if (i.length < 10) throw new Error('Stamp length invalid');
  27385. const u = parseInt(i.substring(i.length - 1), 16);
  27386. return new Date(1e3 * parseInt(i.substring(u, u + 8), 16));
  27387. }),
  27388. __publicField(this, 'setCounter', (s) => {
  27389. this.counter = s;
  27390. }),
  27391. __publicField(this, 'validate', (s, o) => {
  27392. const i = o ? this._normalizeDictionary(o) : this.dict;
  27393. return s.split('').every((s) => i.includes(s));
  27394. });
  27395. const o = __spreadValues(__spreadValues({}, j), s);
  27396. (this.counter = 0), (this.debug = !1), (this.dict = []), (this.version = '5.2.0');
  27397. const { dictionary: i, shuffle: u, length: _, counter: w } = o;
  27398. return (
  27399. (this.uuidLength = _),
  27400. this.setDictionary(i, u),
  27401. this.setCounter(w),
  27402. (this.debug = o.debug),
  27403. this.log(this.dict),
  27404. this.log(
  27405. `Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`
  27406. ),
  27407. (this.log = this.log.bind(this)),
  27408. (this.setDictionary = this.setDictionary.bind(this)),
  27409. (this.setCounter = this.setCounter.bind(this)),
  27410. (this.seq = this.seq.bind(this)),
  27411. (this.sequentialUUID = this.sequentialUUID.bind(this)),
  27412. (this.rnd = this.rnd.bind(this)),
  27413. (this.randomUUID = this.randomUUID.bind(this)),
  27414. (this.fmt = this.fmt.bind(this)),
  27415. (this.formattedUUID = this.formattedUUID.bind(this)),
  27416. (this.availableUUIDs = this.availableUUIDs.bind(this)),
  27417. (this.approxMaxBeforeCollision = this.approxMaxBeforeCollision.bind(this)),
  27418. (this.collisionProbability = this.collisionProbability.bind(this)),
  27419. (this.uniqueness = this.uniqueness.bind(this)),
  27420. (this.getVersion = this.getVersion.bind(this)),
  27421. (this.stamp = this.stamp.bind(this)),
  27422. (this.parseStamp = this.parseStamp.bind(this)),
  27423. this
  27424. );
  27425. }
  27426. };
  27427. __publicField(L, 'default', L);
  27428. var B,
  27429. $ = L;
  27430. return (
  27431. (B = x),
  27432. ((u, w, x, C) => {
  27433. if ((w && 'object' == typeof w) || 'function' == typeof w)
  27434. for (let j of i(w))
  27435. _.call(u, j) ||
  27436. j === x ||
  27437. s(u, j, { get: () => w[j], enumerable: !(C = o(w, j)) || C.enumerable });
  27438. return u;
  27439. })(s({}, '__esModule', { value: !0 }), B)
  27440. );
  27441. })();
  27442. (s.exports = o.default), 'undefined' != typeof window && (o = o.default);
  27443. },
  27444. 88310: (s, o, i) => {
  27445. s.exports = Stream;
  27446. var u = i(37007).EventEmitter;
  27447. function Stream() {
  27448. u.call(this);
  27449. }
  27450. i(56698)(Stream, u),
  27451. (Stream.Readable = i(45412)),
  27452. (Stream.Writable = i(16708)),
  27453. (Stream.Duplex = i(25382)),
  27454. (Stream.Transform = i(74610)),
  27455. (Stream.PassThrough = i(63600)),
  27456. (Stream.finished = i(86238)),
  27457. (Stream.pipeline = i(57758)),
  27458. (Stream.Stream = Stream),
  27459. (Stream.prototype.pipe = function (s, o) {
  27460. var i = this;
  27461. function ondata(o) {
  27462. s.writable && !1 === s.write(o) && i.pause && i.pause();
  27463. }
  27464. function ondrain() {
  27465. i.readable && i.resume && i.resume();
  27466. }
  27467. i.on('data', ondata),
  27468. s.on('drain', ondrain),
  27469. s._isStdio || (o && !1 === o.end) || (i.on('end', onend), i.on('close', onclose));
  27470. var _ = !1;
  27471. function onend() {
  27472. _ || ((_ = !0), s.end());
  27473. }
  27474. function onclose() {
  27475. _ || ((_ = !0), 'function' == typeof s.destroy && s.destroy());
  27476. }
  27477. function onerror(s) {
  27478. if ((cleanup(), 0 === u.listenerCount(this, 'error'))) throw s;
  27479. }
  27480. function cleanup() {
  27481. i.removeListener('data', ondata),
  27482. s.removeListener('drain', ondrain),
  27483. i.removeListener('end', onend),
  27484. i.removeListener('close', onclose),
  27485. i.removeListener('error', onerror),
  27486. s.removeListener('error', onerror),
  27487. i.removeListener('end', cleanup),
  27488. i.removeListener('close', cleanup),
  27489. s.removeListener('close', cleanup);
  27490. }
  27491. return (
  27492. i.on('error', onerror),
  27493. s.on('error', onerror),
  27494. i.on('end', cleanup),
  27495. i.on('close', cleanup),
  27496. s.on('close', cleanup),
  27497. s.emit('pipe', i),
  27498. s
  27499. );
  27500. });
  27501. },
  27502. 83141: (s, o, i) => {
  27503. 'use strict';
  27504. var u = i(92861).Buffer,
  27505. _ =
  27506. u.isEncoding ||
  27507. function (s) {
  27508. switch ((s = '' + s) && s.toLowerCase()) {
  27509. case 'hex':
  27510. case 'utf8':
  27511. case 'utf-8':
  27512. case 'ascii':
  27513. case 'binary':
  27514. case 'base64':
  27515. case 'ucs2':
  27516. case 'ucs-2':
  27517. case 'utf16le':
  27518. case 'utf-16le':
  27519. case 'raw':
  27520. return !0;
  27521. default:
  27522. return !1;
  27523. }
  27524. };
  27525. function StringDecoder(s) {
  27526. var o;
  27527. switch (
  27528. ((this.encoding = (function normalizeEncoding(s) {
  27529. var o = (function _normalizeEncoding(s) {
  27530. if (!s) return 'utf8';
  27531. for (var o; ; )
  27532. switch (s) {
  27533. case 'utf8':
  27534. case 'utf-8':
  27535. return 'utf8';
  27536. case 'ucs2':
  27537. case 'ucs-2':
  27538. case 'utf16le':
  27539. case 'utf-16le':
  27540. return 'utf16le';
  27541. case 'latin1':
  27542. case 'binary':
  27543. return 'latin1';
  27544. case 'base64':
  27545. case 'ascii':
  27546. case 'hex':
  27547. return s;
  27548. default:
  27549. if (o) return;
  27550. (s = ('' + s).toLowerCase()), (o = !0);
  27551. }
  27552. })(s);
  27553. if ('string' != typeof o && (u.isEncoding === _ || !_(s)))
  27554. throw new Error('Unknown encoding: ' + s);
  27555. return o || s;
  27556. })(s)),
  27557. this.encoding)
  27558. ) {
  27559. case 'utf16le':
  27560. (this.text = utf16Text), (this.end = utf16End), (o = 4);
  27561. break;
  27562. case 'utf8':
  27563. (this.fillLast = utf8FillLast), (o = 4);
  27564. break;
  27565. case 'base64':
  27566. (this.text = base64Text), (this.end = base64End), (o = 3);
  27567. break;
  27568. default:
  27569. return (this.write = simpleWrite), void (this.end = simpleEnd);
  27570. }
  27571. (this.lastNeed = 0), (this.lastTotal = 0), (this.lastChar = u.allocUnsafe(o));
  27572. }
  27573. function utf8CheckByte(s) {
  27574. return s <= 127
  27575. ? 0
  27576. : s >> 5 == 6
  27577. ? 2
  27578. : s >> 4 == 14
  27579. ? 3
  27580. : s >> 3 == 30
  27581. ? 4
  27582. : s >> 6 == 2
  27583. ? -1
  27584. : -2;
  27585. }
  27586. function utf8FillLast(s) {
  27587. var o = this.lastTotal - this.lastNeed,
  27588. i = (function utf8CheckExtraBytes(s, o, i) {
  27589. if (128 != (192 & o[0])) return (s.lastNeed = 0), '�';
  27590. if (s.lastNeed > 1 && o.length > 1) {
  27591. if (128 != (192 & o[1])) return (s.lastNeed = 1), '�';
  27592. if (s.lastNeed > 2 && o.length > 2 && 128 != (192 & o[2]))
  27593. return (s.lastNeed = 2), '�';
  27594. }
  27595. })(this, s);
  27596. return void 0 !== i
  27597. ? i
  27598. : this.lastNeed <= s.length
  27599. ? (s.copy(this.lastChar, o, 0, this.lastNeed),
  27600. this.lastChar.toString(this.encoding, 0, this.lastTotal))
  27601. : (s.copy(this.lastChar, o, 0, s.length), void (this.lastNeed -= s.length));
  27602. }
  27603. function utf16Text(s, o) {
  27604. if ((s.length - o) % 2 == 0) {
  27605. var i = s.toString('utf16le', o);
  27606. if (i) {
  27607. var u = i.charCodeAt(i.length - 1);
  27608. if (u >= 55296 && u <= 56319)
  27609. return (
  27610. (this.lastNeed = 2),
  27611. (this.lastTotal = 4),
  27612. (this.lastChar[0] = s[s.length - 2]),
  27613. (this.lastChar[1] = s[s.length - 1]),
  27614. i.slice(0, -1)
  27615. );
  27616. }
  27617. return i;
  27618. }
  27619. return (
  27620. (this.lastNeed = 1),
  27621. (this.lastTotal = 2),
  27622. (this.lastChar[0] = s[s.length - 1]),
  27623. s.toString('utf16le', o, s.length - 1)
  27624. );
  27625. }
  27626. function utf16End(s) {
  27627. var o = s && s.length ? this.write(s) : '';
  27628. if (this.lastNeed) {
  27629. var i = this.lastTotal - this.lastNeed;
  27630. return o + this.lastChar.toString('utf16le', 0, i);
  27631. }
  27632. return o;
  27633. }
  27634. function base64Text(s, o) {
  27635. var i = (s.length - o) % 3;
  27636. return 0 === i
  27637. ? s.toString('base64', o)
  27638. : ((this.lastNeed = 3 - i),
  27639. (this.lastTotal = 3),
  27640. 1 === i
  27641. ? (this.lastChar[0] = s[s.length - 1])
  27642. : ((this.lastChar[0] = s[s.length - 2]), (this.lastChar[1] = s[s.length - 1])),
  27643. s.toString('base64', o, s.length - i));
  27644. }
  27645. function base64End(s) {
  27646. var o = s && s.length ? this.write(s) : '';
  27647. return this.lastNeed ? o + this.lastChar.toString('base64', 0, 3 - this.lastNeed) : o;
  27648. }
  27649. function simpleWrite(s) {
  27650. return s.toString(this.encoding);
  27651. }
  27652. function simpleEnd(s) {
  27653. return s && s.length ? this.write(s) : '';
  27654. }
  27655. (o.I = StringDecoder),
  27656. (StringDecoder.prototype.write = function (s) {
  27657. if (0 === s.length) return '';
  27658. var o, i;
  27659. if (this.lastNeed) {
  27660. if (void 0 === (o = this.fillLast(s))) return '';
  27661. (i = this.lastNeed), (this.lastNeed = 0);
  27662. } else i = 0;
  27663. return i < s.length ? (o ? o + this.text(s, i) : this.text(s, i)) : o || '';
  27664. }),
  27665. (StringDecoder.prototype.end = function utf8End(s) {
  27666. var o = s && s.length ? this.write(s) : '';
  27667. return this.lastNeed ? o + '�' : o;
  27668. }),
  27669. (StringDecoder.prototype.text = function utf8Text(s, o) {
  27670. var i = (function utf8CheckIncomplete(s, o, i) {
  27671. var u = o.length - 1;
  27672. if (u < i) return 0;
  27673. var _ = utf8CheckByte(o[u]);
  27674. if (_ >= 0) return _ > 0 && (s.lastNeed = _ - 1), _;
  27675. if (--u < i || -2 === _) return 0;
  27676. if (((_ = utf8CheckByte(o[u])), _ >= 0)) return _ > 0 && (s.lastNeed = _ - 2), _;
  27677. if (--u < i || -2 === _) return 0;
  27678. if (((_ = utf8CheckByte(o[u])), _ >= 0))
  27679. return _ > 0 && (2 === _ ? (_ = 0) : (s.lastNeed = _ - 3)), _;
  27680. return 0;
  27681. })(this, s, o);
  27682. if (!this.lastNeed) return s.toString('utf8', o);
  27683. this.lastTotal = i;
  27684. var u = s.length - (i - this.lastNeed);
  27685. return s.copy(this.lastChar, 0, u), s.toString('utf8', o, u);
  27686. }),
  27687. (StringDecoder.prototype.fillLast = function (s) {
  27688. if (this.lastNeed <= s.length)
  27689. return (
  27690. s.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed),
  27691. this.lastChar.toString(this.encoding, 0, this.lastTotal)
  27692. );
  27693. s.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, s.length),
  27694. (this.lastNeed -= s.length);
  27695. });
  27696. },
  27697. 69883: (s, o) => {
  27698. 'use strict';
  27699. (o.parse = function parse(s, o) {
  27700. if ('string' != typeof s) throw new TypeError('argument str must be a string');
  27701. var i = {},
  27702. _ = s.length;
  27703. if (_ < 2) return i;
  27704. var w = (o && o.decode) || decode,
  27705. x = 0,
  27706. C = 0,
  27707. j = 0;
  27708. do {
  27709. if (-1 === (C = s.indexOf('=', x))) break;
  27710. if (-1 === (j = s.indexOf(';', x))) j = _;
  27711. else if (C > j) {
  27712. x = s.lastIndexOf(';', C - 1) + 1;
  27713. continue;
  27714. }
  27715. var L = startIndex(s, x, C),
  27716. B = endIndex(s, C, L),
  27717. $ = s.slice(L, B);
  27718. if (!u.call(i, $)) {
  27719. var V = startIndex(s, C + 1, j),
  27720. U = endIndex(s, j, V);
  27721. 34 === s.charCodeAt(V) && 34 === s.charCodeAt(U - 1) && (V++, U--);
  27722. var z = s.slice(V, U);
  27723. i[$] = tryDecode(z, w);
  27724. }
  27725. x = j + 1;
  27726. } while (x < _);
  27727. return i;
  27728. }),
  27729. (o.serialize = function serialize(s, o, u) {
  27730. var j = (u && u.encode) || encodeURIComponent;
  27731. if ('function' != typeof j) throw new TypeError('option encode is invalid');
  27732. if (!_.test(s)) throw new TypeError('argument name is invalid');
  27733. var L = j(o);
  27734. if (!w.test(L)) throw new TypeError('argument val is invalid');
  27735. var B = s + '=' + L;
  27736. if (!u) return B;
  27737. if (null != u.maxAge) {
  27738. var $ = Math.floor(u.maxAge);
  27739. if (!isFinite($)) throw new TypeError('option maxAge is invalid');
  27740. B += '; Max-Age=' + $;
  27741. }
  27742. if (u.domain) {
  27743. if (!x.test(u.domain)) throw new TypeError('option domain is invalid');
  27744. B += '; Domain=' + u.domain;
  27745. }
  27746. if (u.path) {
  27747. if (!C.test(u.path)) throw new TypeError('option path is invalid');
  27748. B += '; Path=' + u.path;
  27749. }
  27750. if (u.expires) {
  27751. var V = u.expires;
  27752. if (
  27753. !(function isDate(s) {
  27754. return '[object Date]' === i.call(s);
  27755. })(V) ||
  27756. isNaN(V.valueOf())
  27757. )
  27758. throw new TypeError('option expires is invalid');
  27759. B += '; Expires=' + V.toUTCString();
  27760. }
  27761. u.httpOnly && (B += '; HttpOnly');
  27762. u.secure && (B += '; Secure');
  27763. u.partitioned && (B += '; Partitioned');
  27764. if (u.priority) {
  27765. switch ('string' == typeof u.priority ? u.priority.toLowerCase() : u.priority) {
  27766. case 'low':
  27767. B += '; Priority=Low';
  27768. break;
  27769. case 'medium':
  27770. B += '; Priority=Medium';
  27771. break;
  27772. case 'high':
  27773. B += '; Priority=High';
  27774. break;
  27775. default:
  27776. throw new TypeError('option priority is invalid');
  27777. }
  27778. }
  27779. if (u.sameSite) {
  27780. switch ('string' == typeof u.sameSite ? u.sameSite.toLowerCase() : u.sameSite) {
  27781. case !0:
  27782. B += '; SameSite=Strict';
  27783. break;
  27784. case 'lax':
  27785. B += '; SameSite=Lax';
  27786. break;
  27787. case 'strict':
  27788. B += '; SameSite=Strict';
  27789. break;
  27790. case 'none':
  27791. B += '; SameSite=None';
  27792. break;
  27793. default:
  27794. throw new TypeError('option sameSite is invalid');
  27795. }
  27796. }
  27797. return B;
  27798. });
  27799. var i = Object.prototype.toString,
  27800. u = Object.prototype.hasOwnProperty,
  27801. _ = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,
  27802. w = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,
  27803. x =
  27804. /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,
  27805. C = /^[\u0020-\u003A\u003D-\u007E]*$/;
  27806. function startIndex(s, o, i) {
  27807. do {
  27808. var u = s.charCodeAt(o);
  27809. if (32 !== u && 9 !== u) return o;
  27810. } while (++o < i);
  27811. return i;
  27812. }
  27813. function endIndex(s, o, i) {
  27814. for (; o > i; ) {
  27815. var u = s.charCodeAt(--o);
  27816. if (32 !== u && 9 !== u) return o + 1;
  27817. }
  27818. return i;
  27819. }
  27820. function decode(s) {
  27821. return -1 !== s.indexOf('%') ? decodeURIComponent(s) : s;
  27822. }
  27823. function tryDecode(s, o) {
  27824. try {
  27825. return o(s);
  27826. } catch (o) {
  27827. return s;
  27828. }
  27829. }
  27830. },
  27831. 16426: (s) => {
  27832. s.exports = function () {
  27833. var s = document.getSelection();
  27834. if (!s.rangeCount) return function () {};
  27835. for (var o = document.activeElement, i = [], u = 0; u < s.rangeCount; u++)
  27836. i.push(s.getRangeAt(u));
  27837. switch (o.tagName.toUpperCase()) {
  27838. case 'INPUT':
  27839. case 'TEXTAREA':
  27840. o.blur();
  27841. break;
  27842. default:
  27843. o = null;
  27844. }
  27845. return (
  27846. s.removeAllRanges(),
  27847. function () {
  27848. 'Caret' === s.type && s.removeAllRanges(),
  27849. s.rangeCount ||
  27850. i.forEach(function (o) {
  27851. s.addRange(o);
  27852. }),
  27853. o && o.focus();
  27854. }
  27855. );
  27856. };
  27857. },
  27858. 61160: (s, o, i) => {
  27859. 'use strict';
  27860. var u = i(92063),
  27861. _ = i(73992),
  27862. w = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,
  27863. x = /[\n\r\t]/g,
  27864. C = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//,
  27865. j = /:\d+$/,
  27866. L = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,
  27867. B = /^[a-zA-Z]:/;
  27868. function trimLeft(s) {
  27869. return (s || '').toString().replace(w, '');
  27870. }
  27871. var $ = [
  27872. ['#', 'hash'],
  27873. ['?', 'query'],
  27874. function sanitize(s, o) {
  27875. return isSpecial(o.protocol) ? s.replace(/\\/g, '/') : s;
  27876. },
  27877. ['/', 'pathname'],
  27878. ['@', 'auth', 1],
  27879. [NaN, 'host', void 0, 1, 1],
  27880. [/:(\d*)$/, 'port', void 0, 1],
  27881. [NaN, 'hostname', void 0, 1, 1]
  27882. ],
  27883. V = { hash: 1, query: 1 };
  27884. function lolcation(s) {
  27885. var o,
  27886. u =
  27887. ('undefined' != typeof window
  27888. ? window
  27889. : void 0 !== i.g
  27890. ? i.g
  27891. : 'undefined' != typeof self
  27892. ? self
  27893. : {}
  27894. ).location || {},
  27895. _ = {},
  27896. w = typeof (s = s || u);
  27897. if ('blob:' === s.protocol) _ = new Url(unescape(s.pathname), {});
  27898. else if ('string' === w) for (o in ((_ = new Url(s, {})), V)) delete _[o];
  27899. else if ('object' === w) {
  27900. for (o in s) o in V || (_[o] = s[o]);
  27901. void 0 === _.slashes && (_.slashes = C.test(s.href));
  27902. }
  27903. return _;
  27904. }
  27905. function isSpecial(s) {
  27906. return (
  27907. 'file:' === s ||
  27908. 'ftp:' === s ||
  27909. 'http:' === s ||
  27910. 'https:' === s ||
  27911. 'ws:' === s ||
  27912. 'wss:' === s
  27913. );
  27914. }
  27915. function extractProtocol(s, o) {
  27916. (s = (s = trimLeft(s)).replace(x, '')), (o = o || {});
  27917. var i,
  27918. u = L.exec(s),
  27919. _ = u[1] ? u[1].toLowerCase() : '',
  27920. w = !!u[2],
  27921. C = !!u[3],
  27922. j = 0;
  27923. return (
  27924. w
  27925. ? C
  27926. ? ((i = u[2] + u[3] + u[4]), (j = u[2].length + u[3].length))
  27927. : ((i = u[2] + u[4]), (j = u[2].length))
  27928. : C
  27929. ? ((i = u[3] + u[4]), (j = u[3].length))
  27930. : (i = u[4]),
  27931. 'file:' === _
  27932. ? j >= 2 && (i = i.slice(2))
  27933. : isSpecial(_)
  27934. ? (i = u[4])
  27935. : _
  27936. ? w && (i = i.slice(2))
  27937. : j >= 2 && isSpecial(o.protocol) && (i = u[4]),
  27938. { protocol: _, slashes: w || isSpecial(_), slashesCount: j, rest: i }
  27939. );
  27940. }
  27941. function Url(s, o, i) {
  27942. if (((s = (s = trimLeft(s)).replace(x, '')), !(this instanceof Url)))
  27943. return new Url(s, o, i);
  27944. var w,
  27945. C,
  27946. j,
  27947. L,
  27948. V,
  27949. U,
  27950. z = $.slice(),
  27951. Y = typeof o,
  27952. Z = this,
  27953. ee = 0;
  27954. for (
  27955. 'object' !== Y && 'string' !== Y && ((i = o), (o = null)),
  27956. i && 'function' != typeof i && (i = _.parse),
  27957. w = !(C = extractProtocol(s || '', (o = lolcation(o)))).protocol && !C.slashes,
  27958. Z.slashes = C.slashes || (w && o.slashes),
  27959. Z.protocol = C.protocol || o.protocol || '',
  27960. s = C.rest,
  27961. (('file:' === C.protocol && (2 !== C.slashesCount || B.test(s))) ||
  27962. (!C.slashes && (C.protocol || C.slashesCount < 2 || !isSpecial(Z.protocol)))) &&
  27963. (z[3] = [/(.*)/, 'pathname']);
  27964. ee < z.length;
  27965. ee++
  27966. )
  27967. 'function' != typeof (L = z[ee])
  27968. ? ((j = L[0]),
  27969. (U = L[1]),
  27970. j != j
  27971. ? (Z[U] = s)
  27972. : 'string' == typeof j
  27973. ? ~(V = '@' === j ? s.lastIndexOf(j) : s.indexOf(j)) &&
  27974. ('number' == typeof L[2]
  27975. ? ((Z[U] = s.slice(0, V)), (s = s.slice(V + L[2])))
  27976. : ((Z[U] = s.slice(V)), (s = s.slice(0, V))))
  27977. : (V = j.exec(s)) && ((Z[U] = V[1]), (s = s.slice(0, V.index))),
  27978. (Z[U] = Z[U] || (w && L[3] && o[U]) || ''),
  27979. L[4] && (Z[U] = Z[U].toLowerCase()))
  27980. : (s = L(s, Z));
  27981. i && (Z.query = i(Z.query)),
  27982. w &&
  27983. o.slashes &&
  27984. '/' !== Z.pathname.charAt(0) &&
  27985. ('' !== Z.pathname || '' !== o.pathname) &&
  27986. (Z.pathname = (function resolve(s, o) {
  27987. if ('' === s) return o;
  27988. for (
  27989. var i = (o || '/').split('/').slice(0, -1).concat(s.split('/')),
  27990. u = i.length,
  27991. _ = i[u - 1],
  27992. w = !1,
  27993. x = 0;
  27994. u--;
  27995. )
  27996. '.' === i[u]
  27997. ? i.splice(u, 1)
  27998. : '..' === i[u]
  27999. ? (i.splice(u, 1), x++)
  28000. : x && (0 === u && (w = !0), i.splice(u, 1), x--);
  28001. return w && i.unshift(''), ('.' !== _ && '..' !== _) || i.push(''), i.join('/');
  28002. })(Z.pathname, o.pathname)),
  28003. '/' !== Z.pathname.charAt(0) &&
  28004. isSpecial(Z.protocol) &&
  28005. (Z.pathname = '/' + Z.pathname),
  28006. u(Z.port, Z.protocol) || ((Z.host = Z.hostname), (Z.port = '')),
  28007. (Z.username = Z.password = ''),
  28008. Z.auth &&
  28009. (~(V = Z.auth.indexOf(':'))
  28010. ? ((Z.username = Z.auth.slice(0, V)),
  28011. (Z.username = encodeURIComponent(decodeURIComponent(Z.username))),
  28012. (Z.password = Z.auth.slice(V + 1)),
  28013. (Z.password = encodeURIComponent(decodeURIComponent(Z.password))))
  28014. : (Z.username = encodeURIComponent(decodeURIComponent(Z.auth))),
  28015. (Z.auth = Z.password ? Z.username + ':' + Z.password : Z.username)),
  28016. (Z.origin =
  28017. 'file:' !== Z.protocol && isSpecial(Z.protocol) && Z.host
  28018. ? Z.protocol + '//' + Z.host
  28019. : 'null'),
  28020. (Z.href = Z.toString());
  28021. }
  28022. (Url.prototype = {
  28023. set: function set(s, o, i) {
  28024. var w = this;
  28025. switch (s) {
  28026. case 'query':
  28027. 'string' == typeof o && o.length && (o = (i || _.parse)(o)), (w[s] = o);
  28028. break;
  28029. case 'port':
  28030. (w[s] = o),
  28031. u(o, w.protocol)
  28032. ? o && (w.host = w.hostname + ':' + o)
  28033. : ((w.host = w.hostname), (w[s] = ''));
  28034. break;
  28035. case 'hostname':
  28036. (w[s] = o), w.port && (o += ':' + w.port), (w.host = o);
  28037. break;
  28038. case 'host':
  28039. (w[s] = o),
  28040. j.test(o)
  28041. ? ((o = o.split(':')), (w.port = o.pop()), (w.hostname = o.join(':')))
  28042. : ((w.hostname = o), (w.port = ''));
  28043. break;
  28044. case 'protocol':
  28045. (w.protocol = o.toLowerCase()), (w.slashes = !i);
  28046. break;
  28047. case 'pathname':
  28048. case 'hash':
  28049. if (o) {
  28050. var x = 'pathname' === s ? '/' : '#';
  28051. w[s] = o.charAt(0) !== x ? x + o : o;
  28052. } else w[s] = o;
  28053. break;
  28054. case 'username':
  28055. case 'password':
  28056. w[s] = encodeURIComponent(o);
  28057. break;
  28058. case 'auth':
  28059. var C = o.indexOf(':');
  28060. ~C
  28061. ? ((w.username = o.slice(0, C)),
  28062. (w.username = encodeURIComponent(decodeURIComponent(w.username))),
  28063. (w.password = o.slice(C + 1)),
  28064. (w.password = encodeURIComponent(decodeURIComponent(w.password))))
  28065. : (w.username = encodeURIComponent(decodeURIComponent(o)));
  28066. }
  28067. for (var L = 0; L < $.length; L++) {
  28068. var B = $[L];
  28069. B[4] && (w[B[1]] = w[B[1]].toLowerCase());
  28070. }
  28071. return (
  28072. (w.auth = w.password ? w.username + ':' + w.password : w.username),
  28073. (w.origin =
  28074. 'file:' !== w.protocol && isSpecial(w.protocol) && w.host
  28075. ? w.protocol + '//' + w.host
  28076. : 'null'),
  28077. (w.href = w.toString()),
  28078. w
  28079. );
  28080. },
  28081. toString: function toString(s) {
  28082. (s && 'function' == typeof s) || (s = _.stringify);
  28083. var o,
  28084. i = this,
  28085. u = i.host,
  28086. w = i.protocol;
  28087. w && ':' !== w.charAt(w.length - 1) && (w += ':');
  28088. var x = w + ((i.protocol && i.slashes) || isSpecial(i.protocol) ? '//' : '');
  28089. return (
  28090. i.username
  28091. ? ((x += i.username), i.password && (x += ':' + i.password), (x += '@'))
  28092. : i.password
  28093. ? ((x += ':' + i.password), (x += '@'))
  28094. : 'file:' !== i.protocol &&
  28095. isSpecial(i.protocol) &&
  28096. !u &&
  28097. '/' !== i.pathname &&
  28098. (x += '@'),
  28099. (':' === u[u.length - 1] || (j.test(i.hostname) && !i.port)) && (u += ':'),
  28100. (x += u + i.pathname),
  28101. (o = 'object' == typeof i.query ? s(i.query) : i.query) &&
  28102. (x += '?' !== o.charAt(0) ? '?' + o : o),
  28103. i.hash && (x += i.hash),
  28104. x
  28105. );
  28106. }
  28107. }),
  28108. (Url.extractProtocol = extractProtocol),
  28109. (Url.location = lolcation),
  28110. (Url.trimLeft = trimLeft),
  28111. (Url.qs = _),
  28112. (s.exports = Url);
  28113. },
  28114. 77154: (s, o, i) => {
  28115. 'use strict';
  28116. var u = i(96540);
  28117. var _ =
  28118. 'function' == typeof Object.is
  28119. ? Object.is
  28120. : function n(s, o) {
  28121. return (s === o && (0 !== s || 1 / s == 1 / o)) || (s != s && o != o);
  28122. },
  28123. w = u.useSyncExternalStore,
  28124. x = u.useRef,
  28125. C = u.useEffect,
  28126. j = u.useMemo,
  28127. L = u.useDebugValue;
  28128. o.useSyncExternalStoreWithSelector = function (s, o, i, u, B) {
  28129. var $ = x(null);
  28130. if (null === $.current) {
  28131. var V = { hasValue: !1, value: null };
  28132. $.current = V;
  28133. } else V = $.current;
  28134. $ = j(
  28135. function () {
  28136. function a(o) {
  28137. if (!x) {
  28138. if (((x = !0), (s = o), (o = u(o)), void 0 !== B && V.hasValue)) {
  28139. var i = V.value;
  28140. if (B(i, o)) return (w = i);
  28141. }
  28142. return (w = o);
  28143. }
  28144. if (((i = w), _(s, o))) return i;
  28145. var C = u(o);
  28146. return void 0 !== B && B(i, C) ? i : ((s = o), (w = C));
  28147. }
  28148. var s,
  28149. w,
  28150. x = !1,
  28151. C = void 0 === i ? null : i;
  28152. return [
  28153. function () {
  28154. return a(o());
  28155. },
  28156. null === C
  28157. ? void 0
  28158. : function () {
  28159. return a(C());
  28160. }
  28161. ];
  28162. },
  28163. [o, i, u, B]
  28164. );
  28165. var U = w(s, $[0], $[1]);
  28166. return (
  28167. C(
  28168. function () {
  28169. (V.hasValue = !0), (V.value = U);
  28170. },
  28171. [U]
  28172. ),
  28173. L(U),
  28174. U
  28175. );
  28176. };
  28177. },
  28178. 78418: (s, o, i) => {
  28179. 'use strict';
  28180. s.exports = i(77154);
  28181. },
  28182. 94643: (s, o, i) => {
  28183. function config(s) {
  28184. try {
  28185. if (!i.g.localStorage) return !1;
  28186. } catch (s) {
  28187. return !1;
  28188. }
  28189. var o = i.g.localStorage[s];
  28190. return null != o && 'true' === String(o).toLowerCase();
  28191. }
  28192. s.exports = function deprecate(s, o) {
  28193. if (config('noDeprecation')) return s;
  28194. var i = !1;
  28195. return function deprecated() {
  28196. if (!i) {
  28197. if (config('throwDeprecation')) throw new Error(o);
  28198. config('traceDeprecation') ? console.trace(o) : console.warn(o), (i = !0);
  28199. }
  28200. return s.apply(this, arguments);
  28201. };
  28202. };
  28203. },
  28204. 26657: (s, o, i) => {
  28205. 'use strict';
  28206. var u = i(75208),
  28207. _ = function isClosingTag(s) {
  28208. return /<\/+[^>]+>/.test(s);
  28209. },
  28210. w = function isSelfClosingTag(s) {
  28211. return /<[^>]+\/>/.test(s);
  28212. };
  28213. function getType(s) {
  28214. return _(s)
  28215. ? 'ClosingTag'
  28216. : (function isOpeningTag(s) {
  28217. return (
  28218. (function isTag(s) {
  28219. return /<[^>!]+>/.test(s);
  28220. })(s) &&
  28221. !_(s) &&
  28222. !w(s)
  28223. );
  28224. })(s)
  28225. ? 'OpeningTag'
  28226. : w(s)
  28227. ? 'SelfClosingTag'
  28228. : 'Text';
  28229. }
  28230. s.exports = function (s) {
  28231. var o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  28232. i = o.indentor,
  28233. _ = o.textNodesOnSameLine,
  28234. w = 0,
  28235. x = [];
  28236. i = i || ' ';
  28237. var C = (function lexer(s) {
  28238. return (function splitOnTags(s) {
  28239. return s.split(/(<\/?[^>]+>)/g).filter(function (s) {
  28240. return '' !== s.trim();
  28241. });
  28242. })(s).map(function (s) {
  28243. return { value: s, type: getType(s) };
  28244. });
  28245. })(s).map(function (s, o, C) {
  28246. var j = s.value,
  28247. L = s.type;
  28248. 'ClosingTag' === L && w--;
  28249. var B = u(i, w),
  28250. $ = B + j;
  28251. if (('OpeningTag' === L && w++, _)) {
  28252. var V = C[o - 1],
  28253. U = C[o - 2];
  28254. 'ClosingTag' === L &&
  28255. 'Text' === V.type &&
  28256. 'OpeningTag' === U.type &&
  28257. (($ = '' + B + U.value + V.value + j), x.push(o - 2, o - 1));
  28258. }
  28259. return $;
  28260. });
  28261. return (
  28262. x.forEach(function (s) {
  28263. return (C[s] = null);
  28264. }),
  28265. C.filter(function (s) {
  28266. return !!s;
  28267. }).join('\n')
  28268. );
  28269. };
  28270. },
  28271. 31499: (s) => {
  28272. var o = { '&': '&amp;', '"': '&quot;', "'": '&apos;', '<': '&lt;', '>': '&gt;' };
  28273. s.exports = function escapeForXML(s) {
  28274. return s && s.replace
  28275. ? s.replace(/([&"<>'])/g, function (s, i) {
  28276. return o[i];
  28277. })
  28278. : s;
  28279. };
  28280. },
  28281. 19123: (s, o, i) => {
  28282. var u = i(65606),
  28283. _ = i(31499),
  28284. w = i(88310).Stream;
  28285. function resolve(s, o, i) {
  28286. var u,
  28287. w = (function create_indent(s, o) {
  28288. return new Array(o || 0).join(s || '');
  28289. })(o, (i = i || 0)),
  28290. x = s;
  28291. if ('object' == typeof s && (x = s[(u = Object.keys(s)[0])]) && x._elem)
  28292. return (
  28293. (x._elem.name = u),
  28294. (x._elem.icount = i),
  28295. (x._elem.indent = o),
  28296. (x._elem.indents = w),
  28297. (x._elem.interrupt = x),
  28298. x._elem
  28299. );
  28300. var C,
  28301. j = [],
  28302. L = [];
  28303. function get_attributes(s) {
  28304. Object.keys(s).forEach(function (o) {
  28305. j.push(
  28306. (function attribute(s, o) {
  28307. return s + '="' + _(o) + '"';
  28308. })(o, s[o])
  28309. );
  28310. });
  28311. }
  28312. switch (typeof x) {
  28313. case 'object':
  28314. if (null === x) break;
  28315. x._attr && get_attributes(x._attr),
  28316. x._cdata &&
  28317. L.push(('<![CDATA[' + x._cdata).replace(/\]\]>/g, ']]]]><![CDATA[>') + ']]>'),
  28318. x.forEach &&
  28319. ((C = !1),
  28320. L.push(''),
  28321. x.forEach(function (s) {
  28322. 'object' == typeof s
  28323. ? '_attr' == Object.keys(s)[0]
  28324. ? get_attributes(s._attr)
  28325. : L.push(resolve(s, o, i + 1))
  28326. : (L.pop(), (C = !0), L.push(_(s)));
  28327. }),
  28328. C || L.push(''));
  28329. break;
  28330. default:
  28331. L.push(_(x));
  28332. }
  28333. return {
  28334. name: u,
  28335. interrupt: !1,
  28336. attributes: j,
  28337. content: L,
  28338. icount: i,
  28339. indents: w,
  28340. indent: o
  28341. };
  28342. }
  28343. function format(s, o, i) {
  28344. if ('object' != typeof o) return s(!1, o);
  28345. var u = o.interrupt ? 1 : o.content.length;
  28346. function proceed() {
  28347. for (; o.content.length; ) {
  28348. var _ = o.content.shift();
  28349. if (void 0 !== _) {
  28350. if (interrupt(_)) return;
  28351. format(s, _);
  28352. }
  28353. }
  28354. s(
  28355. !1,
  28356. (u > 1 ? o.indents : '') +
  28357. (o.name ? '</' + o.name + '>' : '') +
  28358. (o.indent && !i ? '\n' : '')
  28359. ),
  28360. i && i();
  28361. }
  28362. function interrupt(o) {
  28363. return (
  28364. !!o.interrupt &&
  28365. ((o.interrupt.append = s),
  28366. (o.interrupt.end = proceed),
  28367. (o.interrupt = !1),
  28368. s(!0),
  28369. !0)
  28370. );
  28371. }
  28372. if (
  28373. (s(
  28374. !1,
  28375. o.indents +
  28376. (o.name ? '<' + o.name : '') +
  28377. (o.attributes.length ? ' ' + o.attributes.join(' ') : '') +
  28378. (u ? (o.name ? '>' : '') : o.name ? '/>' : '') +
  28379. (o.indent && u > 1 ? '\n' : '')
  28380. ),
  28381. !u)
  28382. )
  28383. return s(!1, o.indent ? '\n' : '');
  28384. interrupt(o) || proceed();
  28385. }
  28386. (s.exports = function xml(s, o) {
  28387. 'object' != typeof o && (o = { indent: o });
  28388. var i = o.stream ? new w() : null,
  28389. _ = '',
  28390. x = !1,
  28391. C = o.indent ? (!0 === o.indent ? ' ' : o.indent) : '',
  28392. j = !0;
  28393. function delay(s) {
  28394. j ? u.nextTick(s) : s();
  28395. }
  28396. function append(s, o) {
  28397. if ((void 0 !== o && (_ += o), s && !x && ((i = i || new w()), (x = !0)), s && x)) {
  28398. var u = _;
  28399. delay(function () {
  28400. i.emit('data', u);
  28401. }),
  28402. (_ = '');
  28403. }
  28404. }
  28405. function add(s, o) {
  28406. format(append, resolve(s, C, C ? 1 : 0), o);
  28407. }
  28408. function end() {
  28409. if (i) {
  28410. var s = _;
  28411. delay(function () {
  28412. i.emit('data', s), i.emit('end'), (i.readable = !1), i.emit('close');
  28413. });
  28414. }
  28415. }
  28416. return (
  28417. delay(function () {
  28418. j = !1;
  28419. }),
  28420. o.declaration &&
  28421. (function addXmlDeclaration(s) {
  28422. var o = { version: '1.0', encoding: s.encoding || 'UTF-8' };
  28423. s.standalone && (o.standalone = s.standalone),
  28424. add({ '?xml': { _attr: o } }),
  28425. (_ = _.replace('/>', '?>'));
  28426. })(o.declaration),
  28427. s && s.forEach
  28428. ? s.forEach(function (o, i) {
  28429. var u;
  28430. i + 1 === s.length && (u = end), add(o, u);
  28431. })
  28432. : add(s, end),
  28433. i ? ((i.readable = !0), i) : _
  28434. );
  28435. }),
  28436. (s.exports.element = s.exports.Element =
  28437. function element() {
  28438. var s = {
  28439. _elem: resolve(Array.prototype.slice.call(arguments)),
  28440. push: function (s) {
  28441. if (!this.append) throw new Error('not assigned to a parent!');
  28442. var o = this,
  28443. i = this._elem.indent;
  28444. format(
  28445. this.append,
  28446. resolve(s, i, this._elem.icount + (i ? 1 : 0)),
  28447. function () {
  28448. o.append(!0);
  28449. }
  28450. );
  28451. },
  28452. close: function (s) {
  28453. void 0 !== s && this.push(s), this.end && this.end();
  28454. }
  28455. };
  28456. return s;
  28457. });
  28458. },
  28459. 86215: function (s, o) {
  28460. var i, u, _;
  28461. (u = []),
  28462. (i = (function () {
  28463. 'use strict';
  28464. var isNativeSmoothScrollEnabledOn = function (s) {
  28465. return (
  28466. s &&
  28467. 'getComputedStyle' in window &&
  28468. 'smooth' === window.getComputedStyle(s)['scroll-behavior']
  28469. );
  28470. };
  28471. if ('undefined' == typeof window || !('document' in window)) return {};
  28472. var makeScroller = function (s, o, i) {
  28473. var u;
  28474. (o = o || 999), i || 0 === i || (i = 9);
  28475. var setScrollTimeoutId = function (s) {
  28476. u = s;
  28477. },
  28478. stopScroll = function () {
  28479. clearTimeout(u), setScrollTimeoutId(0);
  28480. },
  28481. getTopWithEdgeOffset = function (o) {
  28482. return Math.max(0, s.getTopOf(o) - i);
  28483. },
  28484. scrollToY = function (i, u, _) {
  28485. if (
  28486. (stopScroll(),
  28487. 0 === u || (u && u < 0) || isNativeSmoothScrollEnabledOn(s.body))
  28488. )
  28489. s.toY(i), _ && _();
  28490. else {
  28491. var w = s.getY(),
  28492. x = Math.max(0, i) - w,
  28493. C = new Date().getTime();
  28494. (u = u || Math.min(Math.abs(x), o)),
  28495. (function loopScroll() {
  28496. setScrollTimeoutId(
  28497. setTimeout(function () {
  28498. var o = Math.min(1, (new Date().getTime() - C) / u),
  28499. i = Math.max(
  28500. 0,
  28501. Math.floor(w + x * (o < 0.5 ? 2 * o * o : o * (4 - 2 * o) - 1))
  28502. );
  28503. s.toY(i),
  28504. o < 1 && s.getHeight() + i < s.body.scrollHeight
  28505. ? loopScroll()
  28506. : (setTimeout(stopScroll, 99), _ && _());
  28507. }, 9)
  28508. );
  28509. })();
  28510. }
  28511. },
  28512. scrollToElem = function (s, o, i) {
  28513. scrollToY(getTopWithEdgeOffset(s), o, i);
  28514. },
  28515. scrollIntoView = function (o, u, _) {
  28516. var w = o.getBoundingClientRect().height,
  28517. x = s.getTopOf(o) + w,
  28518. C = s.getHeight(),
  28519. j = s.getY(),
  28520. L = j + C;
  28521. getTopWithEdgeOffset(o) < j || w + i > C
  28522. ? scrollToElem(o, u, _)
  28523. : x + i > L
  28524. ? scrollToY(x - C + i, u, _)
  28525. : _ && _();
  28526. },
  28527. scrollToCenterOf = function (o, i, u, _) {
  28528. scrollToY(
  28529. Math.max(
  28530. 0,
  28531. s.getTopOf(o) -
  28532. s.getHeight() / 2 +
  28533. (u || o.getBoundingClientRect().height / 2)
  28534. ),
  28535. i,
  28536. _
  28537. );
  28538. };
  28539. return {
  28540. setup: function (s, u) {
  28541. return (
  28542. (0 === s || s) && (o = s),
  28543. (0 === u || u) && (i = u),
  28544. { defaultDuration: o, edgeOffset: i }
  28545. );
  28546. },
  28547. to: scrollToElem,
  28548. toY: scrollToY,
  28549. intoView: scrollIntoView,
  28550. center: scrollToCenterOf,
  28551. stop: stopScroll,
  28552. moving: function () {
  28553. return !!u;
  28554. },
  28555. getY: s.getY,
  28556. getTopOf: s.getTopOf
  28557. };
  28558. },
  28559. s = document.documentElement,
  28560. getDocY = function () {
  28561. return window.scrollY || s.scrollTop;
  28562. },
  28563. o = makeScroller({
  28564. body: document.scrollingElement || document.body,
  28565. toY: function (s) {
  28566. window.scrollTo(0, s);
  28567. },
  28568. getY: getDocY,
  28569. getHeight: function () {
  28570. return window.innerHeight || s.clientHeight;
  28571. },
  28572. getTopOf: function (o) {
  28573. return o.getBoundingClientRect().top + getDocY() - s.offsetTop;
  28574. }
  28575. });
  28576. if (
  28577. ((o.createScroller = function (o, i, u) {
  28578. return makeScroller(
  28579. {
  28580. body: o,
  28581. toY: function (s) {
  28582. o.scrollTop = s;
  28583. },
  28584. getY: function () {
  28585. return o.scrollTop;
  28586. },
  28587. getHeight: function () {
  28588. return Math.min(o.clientHeight, window.innerHeight || s.clientHeight);
  28589. },
  28590. getTopOf: function (s) {
  28591. return s.offsetTop;
  28592. }
  28593. },
  28594. i,
  28595. u
  28596. );
  28597. }),
  28598. 'addEventListener' in window &&
  28599. !window.noZensmooth &&
  28600. !isNativeSmoothScrollEnabledOn(document.body))
  28601. ) {
  28602. var i = 'history' in window && 'pushState' in history,
  28603. u = i && 'scrollRestoration' in history;
  28604. u && (history.scrollRestoration = 'auto'),
  28605. window.addEventListener(
  28606. 'load',
  28607. function () {
  28608. u &&
  28609. (setTimeout(function () {
  28610. history.scrollRestoration = 'manual';
  28611. }, 9),
  28612. window.addEventListener(
  28613. 'popstate',
  28614. function (s) {
  28615. s.state && 'zenscrollY' in s.state && o.toY(s.state.zenscrollY);
  28616. },
  28617. !1
  28618. )),
  28619. window.location.hash &&
  28620. setTimeout(function () {
  28621. var s = o.setup().edgeOffset;
  28622. if (s) {
  28623. var i = document.getElementById(window.location.href.split('#')[1]);
  28624. if (i) {
  28625. var u = Math.max(0, o.getTopOf(i) - s),
  28626. _ = o.getY() - u;
  28627. 0 <= _ && _ < 9 && window.scrollTo(0, u);
  28628. }
  28629. }
  28630. }, 9);
  28631. },
  28632. !1
  28633. );
  28634. var _ = new RegExp('(^|\\s)noZensmooth(\\s|$)');
  28635. window.addEventListener(
  28636. 'click',
  28637. function (s) {
  28638. for (var w = s.target; w && 'A' !== w.tagName; ) w = w.parentNode;
  28639. if (
  28640. !(!w || 1 !== s.which || s.shiftKey || s.metaKey || s.ctrlKey || s.altKey)
  28641. ) {
  28642. if (u) {
  28643. var x =
  28644. history.state && 'object' == typeof history.state ? history.state : {};
  28645. x.zenscrollY = o.getY();
  28646. try {
  28647. history.replaceState(x, '');
  28648. } catch (s) {}
  28649. }
  28650. var C = w.getAttribute('href') || '';
  28651. if (0 === C.indexOf('#') && !_.test(w.className)) {
  28652. var j = 0,
  28653. L = document.getElementById(C.substring(1));
  28654. if ('#' !== C) {
  28655. if (!L) return;
  28656. j = o.getTopOf(L);
  28657. }
  28658. s.preventDefault();
  28659. var onDone = function () {
  28660. window.location = C;
  28661. },
  28662. B = o.setup().edgeOffset;
  28663. B &&
  28664. ((j = Math.max(0, j - B)),
  28665. i &&
  28666. (onDone = function () {
  28667. history.pushState({}, '', C);
  28668. })),
  28669. o.toY(j, null, onDone);
  28670. }
  28671. }
  28672. },
  28673. !1
  28674. );
  28675. }
  28676. return o;
  28677. })()),
  28678. void 0 === (_ = 'function' == typeof i ? i.apply(o, u) : i) || (s.exports = _);
  28679. },
  28680. 15340: () => {},
  28681. 79838: () => {},
  28682. 48675: (s, o, i) => {
  28683. s.exports = i(20850);
  28684. },
  28685. 7666: (s, o, i) => {
  28686. var u = i(84851),
  28687. _ = i(953);
  28688. function _extends() {
  28689. var o;
  28690. return (
  28691. (s.exports = _extends =
  28692. u
  28693. ? _((o = u)).call(o)
  28694. : function (s) {
  28695. for (var o = 1; o < arguments.length; o++) {
  28696. var i = arguments[o];
  28697. for (var u in i) ({}).hasOwnProperty.call(i, u) && (s[u] = i[u]);
  28698. }
  28699. return s;
  28700. }),
  28701. (s.exports.__esModule = !0),
  28702. (s.exports.default = s.exports),
  28703. _extends.apply(null, arguments)
  28704. );
  28705. }
  28706. (s.exports = _extends), (s.exports.__esModule = !0), (s.exports.default = s.exports);
  28707. },
  28708. 46942: (s, o) => {
  28709. var i;
  28710. !(function () {
  28711. 'use strict';
  28712. var u = {}.hasOwnProperty;
  28713. function classNames() {
  28714. for (var s = '', o = 0; o < arguments.length; o++) {
  28715. var i = arguments[o];
  28716. i && (s = appendClass(s, parseValue(i)));
  28717. }
  28718. return s;
  28719. }
  28720. function parseValue(s) {
  28721. if ('string' == typeof s || 'number' == typeof s) return s;
  28722. if ('object' != typeof s) return '';
  28723. if (Array.isArray(s)) return classNames.apply(null, s);
  28724. if (
  28725. s.toString !== Object.prototype.toString &&
  28726. !s.toString.toString().includes('[native code]')
  28727. )
  28728. return s.toString();
  28729. var o = '';
  28730. for (var i in s) u.call(s, i) && s[i] && (o = appendClass(o, i));
  28731. return o;
  28732. }
  28733. function appendClass(s, o) {
  28734. return o ? (s ? s + ' ' + o : s + o) : s;
  28735. }
  28736. s.exports
  28737. ? ((classNames.default = classNames), (s.exports = classNames))
  28738. : void 0 ===
  28739. (i = function () {
  28740. return classNames;
  28741. }.apply(o, [])) || (s.exports = i);
  28742. })();
  28743. },
  28744. 68623: (s, o, i) => {
  28745. 'use strict';
  28746. var u = i(694);
  28747. s.exports = u;
  28748. },
  28749. 93700: (s, o, i) => {
  28750. 'use strict';
  28751. var u = i(19709);
  28752. s.exports = u;
  28753. },
  28754. 462: (s, o, i) => {
  28755. 'use strict';
  28756. var u = i(40975);
  28757. s.exports = u;
  28758. },
  28759. 37257: (s, o, i) => {
  28760. 'use strict';
  28761. i(96605), i(64502), i(36371), i(99363), i(7057);
  28762. var u = i(92046);
  28763. s.exports = u.AggregateError;
  28764. },
  28765. 32567: (s, o, i) => {
  28766. 'use strict';
  28767. i(79307);
  28768. var u = i(61747);
  28769. s.exports = u('Function', 'bind');
  28770. },
  28771. 23034: (s, o, i) => {
  28772. 'use strict';
  28773. var u = i(88280),
  28774. _ = i(32567),
  28775. w = Function.prototype;
  28776. s.exports = function (s) {
  28777. var o = s.bind;
  28778. return s === w || (u(w, s) && o === w.bind) ? _ : o;
  28779. };
  28780. },
  28781. 9748: (s, o, i) => {
  28782. 'use strict';
  28783. i(71340);
  28784. var u = i(92046);
  28785. s.exports = u.Object.assign;
  28786. },
  28787. 20850: (s, o, i) => {
  28788. 'use strict';
  28789. s.exports = i(46076);
  28790. },
  28791. 953: (s, o, i) => {
  28792. 'use strict';
  28793. s.exports = i(53375);
  28794. },
  28795. 84851: (s, o, i) => {
  28796. 'use strict';
  28797. s.exports = i(85401);
  28798. },
  28799. 46076: (s, o, i) => {
  28800. 'use strict';
  28801. i(91599);
  28802. var u = i(68623);
  28803. s.exports = u;
  28804. },
  28805. 53375: (s, o, i) => {
  28806. 'use strict';
  28807. var u = i(93700);
  28808. s.exports = u;
  28809. },
  28810. 85401: (s, o, i) => {
  28811. 'use strict';
  28812. var u = i(462);
  28813. s.exports = u;
  28814. },
  28815. 82159: (s, o, i) => {
  28816. 'use strict';
  28817. var u = i(62250),
  28818. _ = i(4640),
  28819. w = TypeError;
  28820. s.exports = function (s) {
  28821. if (u(s)) return s;
  28822. throw new w(_(s) + ' is not a function');
  28823. };
  28824. },
  28825. 10043: (s, o, i) => {
  28826. 'use strict';
  28827. var u = i(54018),
  28828. _ = String,
  28829. w = TypeError;
  28830. s.exports = function (s) {
  28831. if (u(s)) return s;
  28832. throw new w("Can't set " + _(s) + ' as a prototype');
  28833. };
  28834. },
  28835. 42156: (s) => {
  28836. 'use strict';
  28837. s.exports = function () {};
  28838. },
  28839. 36624: (s, o, i) => {
  28840. 'use strict';
  28841. var u = i(46285),
  28842. _ = String,
  28843. w = TypeError;
  28844. s.exports = function (s) {
  28845. if (u(s)) return s;
  28846. throw new w(_(s) + ' is not an object');
  28847. };
  28848. },
  28849. 74436: (s, o, i) => {
  28850. 'use strict';
  28851. var u = i(4993),
  28852. _ = i(34849),
  28853. w = i(20575),
  28854. createMethod = function (s) {
  28855. return function (o, i, x) {
  28856. var C = u(o),
  28857. j = w(C);
  28858. if (0 === j) return !s && -1;
  28859. var L,
  28860. B = _(x, j);
  28861. if (s && i != i) {
  28862. for (; j > B; ) if ((L = C[B++]) != L) return !0;
  28863. } else for (; j > B; B++) if ((s || B in C) && C[B] === i) return s || B || 0;
  28864. return !s && -1;
  28865. };
  28866. };
  28867. s.exports = { includes: createMethod(!0), indexOf: createMethod(!1) };
  28868. },
  28869. 93427: (s, o, i) => {
  28870. 'use strict';
  28871. var u = i(1907);
  28872. s.exports = u([].slice);
  28873. },
  28874. 45807: (s, o, i) => {
  28875. 'use strict';
  28876. var u = i(1907),
  28877. _ = u({}.toString),
  28878. w = u(''.slice);
  28879. s.exports = function (s) {
  28880. return w(_(s), 8, -1);
  28881. };
  28882. },
  28883. 73948: (s, o, i) => {
  28884. 'use strict';
  28885. var u = i(52623),
  28886. _ = i(62250),
  28887. w = i(45807),
  28888. x = i(76264)('toStringTag'),
  28889. C = Object,
  28890. j =
  28891. 'Arguments' ===
  28892. w(
  28893. (function () {
  28894. return arguments;
  28895. })()
  28896. );
  28897. s.exports = u
  28898. ? w
  28899. : function (s) {
  28900. var o, i, u;
  28901. return void 0 === s
  28902. ? 'Undefined'
  28903. : null === s
  28904. ? 'Null'
  28905. : 'string' ==
  28906. typeof (i = (function (s, o) {
  28907. try {
  28908. return s[o];
  28909. } catch (s) {}
  28910. })((o = C(s)), x))
  28911. ? i
  28912. : j
  28913. ? w(o)
  28914. : 'Object' === (u = w(o)) && _(o.callee)
  28915. ? 'Arguments'
  28916. : u;
  28917. };
  28918. },
  28919. 19595: (s, o, i) => {
  28920. 'use strict';
  28921. var u = i(49724),
  28922. _ = i(11042),
  28923. w = i(13846),
  28924. x = i(74284);
  28925. s.exports = function (s, o, i) {
  28926. for (var C = _(o), j = x.f, L = w.f, B = 0; B < C.length; B++) {
  28927. var $ = C[B];
  28928. u(s, $) || (i && u(i, $)) || j(s, $, L(o, $));
  28929. }
  28930. };
  28931. },
  28932. 57382: (s, o, i) => {
  28933. 'use strict';
  28934. var u = i(98828);
  28935. s.exports = !u(function () {
  28936. function F() {}
  28937. return (F.prototype.constructor = null), Object.getPrototypeOf(new F()) !== F.prototype;
  28938. });
  28939. },
  28940. 59550: (s) => {
  28941. 'use strict';
  28942. s.exports = function (s, o) {
  28943. return { value: s, done: o };
  28944. };
  28945. },
  28946. 61626: (s, o, i) => {
  28947. 'use strict';
  28948. var u = i(39447),
  28949. _ = i(74284),
  28950. w = i(75817);
  28951. s.exports = u
  28952. ? function (s, o, i) {
  28953. return _.f(s, o, w(1, i));
  28954. }
  28955. : function (s, o, i) {
  28956. return (s[o] = i), s;
  28957. };
  28958. },
  28959. 75817: (s) => {
  28960. 'use strict';
  28961. s.exports = function (s, o) {
  28962. return { enumerable: !(1 & s), configurable: !(2 & s), writable: !(4 & s), value: o };
  28963. };
  28964. },
  28965. 68055: (s, o, i) => {
  28966. 'use strict';
  28967. var u = i(61626);
  28968. s.exports = function (s, o, i, _) {
  28969. return _ && _.enumerable ? (s[o] = i) : u(s, o, i), s;
  28970. };
  28971. },
  28972. 2532: (s, o, i) => {
  28973. 'use strict';
  28974. var u = i(45951),
  28975. _ = Object.defineProperty;
  28976. s.exports = function (s, o) {
  28977. try {
  28978. _(u, s, { value: o, configurable: !0, writable: !0 });
  28979. } catch (i) {
  28980. u[s] = o;
  28981. }
  28982. return o;
  28983. };
  28984. },
  28985. 39447: (s, o, i) => {
  28986. 'use strict';
  28987. var u = i(98828);
  28988. s.exports = !u(function () {
  28989. return (
  28990. 7 !==
  28991. Object.defineProperty({}, 1, {
  28992. get: function () {
  28993. return 7;
  28994. }
  28995. })[1]
  28996. );
  28997. });
  28998. },
  28999. 49552: (s, o, i) => {
  29000. 'use strict';
  29001. var u = i(45951),
  29002. _ = i(46285),
  29003. w = u.document,
  29004. x = _(w) && _(w.createElement);
  29005. s.exports = function (s) {
  29006. return x ? w.createElement(s) : {};
  29007. };
  29008. },
  29009. 19287: (s) => {
  29010. 'use strict';
  29011. s.exports = {
  29012. CSSRuleList: 0,
  29013. CSSStyleDeclaration: 0,
  29014. CSSValueList: 0,
  29015. ClientRectList: 0,
  29016. DOMRectList: 0,
  29017. DOMStringList: 0,
  29018. DOMTokenList: 1,
  29019. DataTransferItemList: 0,
  29020. FileList: 0,
  29021. HTMLAllCollection: 0,
  29022. HTMLCollection: 0,
  29023. HTMLFormElement: 0,
  29024. HTMLSelectElement: 0,
  29025. MediaList: 0,
  29026. MimeTypeArray: 0,
  29027. NamedNodeMap: 0,
  29028. NodeList: 1,
  29029. PaintRequestList: 0,
  29030. Plugin: 0,
  29031. PluginArray: 0,
  29032. SVGLengthList: 0,
  29033. SVGNumberList: 0,
  29034. SVGPathSegList: 0,
  29035. SVGPointList: 0,
  29036. SVGStringList: 0,
  29037. SVGTransformList: 0,
  29038. SourceBufferList: 0,
  29039. StyleSheetList: 0,
  29040. TextTrackCueList: 0,
  29041. TextTrackList: 0,
  29042. TouchList: 0
  29043. };
  29044. },
  29045. 80376: (s) => {
  29046. 'use strict';
  29047. s.exports = [
  29048. 'constructor',
  29049. 'hasOwnProperty',
  29050. 'isPrototypeOf',
  29051. 'propertyIsEnumerable',
  29052. 'toLocaleString',
  29053. 'toString',
  29054. 'valueOf'
  29055. ];
  29056. },
  29057. 96794: (s, o, i) => {
  29058. 'use strict';
  29059. var u = i(45951).navigator,
  29060. _ = u && u.userAgent;
  29061. s.exports = _ ? String(_) : '';
  29062. },
  29063. 20798: (s, o, i) => {
  29064. 'use strict';
  29065. var u,
  29066. _,
  29067. w = i(45951),
  29068. x = i(96794),
  29069. C = w.process,
  29070. j = w.Deno,
  29071. L = (C && C.versions) || (j && j.version),
  29072. B = L && L.v8;
  29073. B && (_ = (u = B.split('.'))[0] > 0 && u[0] < 4 ? 1 : +(u[0] + u[1])),
  29074. !_ &&
  29075. x &&
  29076. (!(u = x.match(/Edge\/(\d+)/)) || u[1] >= 74) &&
  29077. (u = x.match(/Chrome\/(\d+)/)) &&
  29078. (_ = +u[1]),
  29079. (s.exports = _);
  29080. },
  29081. 85762: (s, o, i) => {
  29082. 'use strict';
  29083. var u = i(1907),
  29084. _ = Error,
  29085. w = u(''.replace),
  29086. x = String(new _('zxcasd').stack),
  29087. C = /\n\s*at [^:]*:[^\n]*/,
  29088. j = C.test(x);
  29089. s.exports = function (s, o) {
  29090. if (j && 'string' == typeof s && !_.prepareStackTrace) for (; o--; ) s = w(s, C, '');
  29091. return s;
  29092. };
  29093. },
  29094. 85884: (s, o, i) => {
  29095. 'use strict';
  29096. var u = i(61626),
  29097. _ = i(85762),
  29098. w = i(23888),
  29099. x = Error.captureStackTrace;
  29100. s.exports = function (s, o, i, C) {
  29101. w && (x ? x(s, o) : u(s, 'stack', _(i, C)));
  29102. };
  29103. },
  29104. 23888: (s, o, i) => {
  29105. 'use strict';
  29106. var u = i(98828),
  29107. _ = i(75817);
  29108. s.exports = !u(function () {
  29109. var s = new Error('a');
  29110. return !('stack' in s) || (Object.defineProperty(s, 'stack', _(1, 7)), 7 !== s.stack);
  29111. });
  29112. },
  29113. 11091: (s, o, i) => {
  29114. 'use strict';
  29115. var u = i(45951),
  29116. _ = i(76024),
  29117. w = i(92361),
  29118. x = i(62250),
  29119. C = i(13846).f,
  29120. j = i(7463),
  29121. L = i(92046),
  29122. B = i(28311),
  29123. $ = i(61626),
  29124. V = i(49724);
  29125. i(36128);
  29126. var wrapConstructor = function (s) {
  29127. var Wrapper = function (o, i, u) {
  29128. if (this instanceof Wrapper) {
  29129. switch (arguments.length) {
  29130. case 0:
  29131. return new s();
  29132. case 1:
  29133. return new s(o);
  29134. case 2:
  29135. return new s(o, i);
  29136. }
  29137. return new s(o, i, u);
  29138. }
  29139. return _(s, this, arguments);
  29140. };
  29141. return (Wrapper.prototype = s.prototype), Wrapper;
  29142. };
  29143. s.exports = function (s, o) {
  29144. var i,
  29145. _,
  29146. U,
  29147. z,
  29148. Y,
  29149. Z,
  29150. ee,
  29151. ie,
  29152. ae,
  29153. le = s.target,
  29154. ce = s.global,
  29155. pe = s.stat,
  29156. de = s.proto,
  29157. fe = ce ? u : pe ? u[le] : u[le] && u[le].prototype,
  29158. ye = ce ? L : L[le] || $(L, le, {})[le],
  29159. be = ye.prototype;
  29160. for (z in o)
  29161. (_ = !(i = j(ce ? z : le + (pe ? '.' : '#') + z, s.forced)) && fe && V(fe, z)),
  29162. (Z = ye[z]),
  29163. _ && (ee = s.dontCallGetSet ? (ae = C(fe, z)) && ae.value : fe[z]),
  29164. (Y = _ && ee ? ee : o[z]),
  29165. (i || de || typeof Z != typeof Y) &&
  29166. ((ie =
  29167. s.bind && _
  29168. ? B(Y, u)
  29169. : s.wrap && _
  29170. ? wrapConstructor(Y)
  29171. : de && x(Y)
  29172. ? w(Y)
  29173. : Y),
  29174. (s.sham || (Y && Y.sham) || (Z && Z.sham)) && $(ie, 'sham', !0),
  29175. $(ye, z, ie),
  29176. de &&
  29177. (V(L, (U = le + 'Prototype')) || $(L, U, {}),
  29178. $(L[U], z, Y),
  29179. s.real && be && (i || !be[z]) && $(be, z, Y)));
  29180. };
  29181. },
  29182. 98828: (s) => {
  29183. 'use strict';
  29184. s.exports = function (s) {
  29185. try {
  29186. return !!s();
  29187. } catch (s) {
  29188. return !0;
  29189. }
  29190. };
  29191. },
  29192. 76024: (s, o, i) => {
  29193. 'use strict';
  29194. var u = i(41505),
  29195. _ = Function.prototype,
  29196. w = _.apply,
  29197. x = _.call;
  29198. s.exports =
  29199. ('object' == typeof Reflect && Reflect.apply) ||
  29200. (u
  29201. ? x.bind(w)
  29202. : function () {
  29203. return x.apply(w, arguments);
  29204. });
  29205. },
  29206. 28311: (s, o, i) => {
  29207. 'use strict';
  29208. var u = i(92361),
  29209. _ = i(82159),
  29210. w = i(41505),
  29211. x = u(u.bind);
  29212. s.exports = function (s, o) {
  29213. return (
  29214. _(s),
  29215. void 0 === o
  29216. ? s
  29217. : w
  29218. ? x(s, o)
  29219. : function () {
  29220. return s.apply(o, arguments);
  29221. }
  29222. );
  29223. };
  29224. },
  29225. 41505: (s, o, i) => {
  29226. 'use strict';
  29227. var u = i(98828);
  29228. s.exports = !u(function () {
  29229. var s = function () {}.bind();
  29230. return 'function' != typeof s || s.hasOwnProperty('prototype');
  29231. });
  29232. },
  29233. 44673: (s, o, i) => {
  29234. 'use strict';
  29235. var u = i(1907),
  29236. _ = i(82159),
  29237. w = i(46285),
  29238. x = i(49724),
  29239. C = i(93427),
  29240. j = i(41505),
  29241. L = Function,
  29242. B = u([].concat),
  29243. $ = u([].join),
  29244. V = {};
  29245. s.exports = j
  29246. ? L.bind
  29247. : function bind(s) {
  29248. var o = _(this),
  29249. i = o.prototype,
  29250. u = C(arguments, 1),
  29251. j = function bound() {
  29252. var i = B(u, C(arguments));
  29253. return this instanceof j
  29254. ? (function (s, o, i) {
  29255. if (!x(V, o)) {
  29256. for (var u = [], _ = 0; _ < o; _++) u[_] = 'a[' + _ + ']';
  29257. V[o] = L('C,a', 'return new C(' + $(u, ',') + ')');
  29258. }
  29259. return V[o](s, i);
  29260. })(o, i.length, i)
  29261. : o.apply(s, i);
  29262. };
  29263. return w(i) && (j.prototype = i), j;
  29264. };
  29265. },
  29266. 13930: (s, o, i) => {
  29267. 'use strict';
  29268. var u = i(41505),
  29269. _ = Function.prototype.call;
  29270. s.exports = u
  29271. ? _.bind(_)
  29272. : function () {
  29273. return _.apply(_, arguments);
  29274. };
  29275. },
  29276. 36833: (s, o, i) => {
  29277. 'use strict';
  29278. var u = i(39447),
  29279. _ = i(49724),
  29280. w = Function.prototype,
  29281. x = u && Object.getOwnPropertyDescriptor,
  29282. C = _(w, 'name'),
  29283. j = C && 'something' === function something() {}.name,
  29284. L = C && (!u || (u && x(w, 'name').configurable));
  29285. s.exports = { EXISTS: C, PROPER: j, CONFIGURABLE: L };
  29286. },
  29287. 51871: (s, o, i) => {
  29288. 'use strict';
  29289. var u = i(1907),
  29290. _ = i(82159);
  29291. s.exports = function (s, o, i) {
  29292. try {
  29293. return u(_(Object.getOwnPropertyDescriptor(s, o)[i]));
  29294. } catch (s) {}
  29295. };
  29296. },
  29297. 92361: (s, o, i) => {
  29298. 'use strict';
  29299. var u = i(45807),
  29300. _ = i(1907);
  29301. s.exports = function (s) {
  29302. if ('Function' === u(s)) return _(s);
  29303. };
  29304. },
  29305. 1907: (s, o, i) => {
  29306. 'use strict';
  29307. var u = i(41505),
  29308. _ = Function.prototype,
  29309. w = _.call,
  29310. x = u && _.bind.bind(w, w);
  29311. s.exports = u
  29312. ? x
  29313. : function (s) {
  29314. return function () {
  29315. return w.apply(s, arguments);
  29316. };
  29317. };
  29318. },
  29319. 61747: (s, o, i) => {
  29320. 'use strict';
  29321. var u = i(45951),
  29322. _ = i(92046);
  29323. s.exports = function (s, o) {
  29324. var i = _[s + 'Prototype'],
  29325. w = i && i[o];
  29326. if (w) return w;
  29327. var x = u[s],
  29328. C = x && x.prototype;
  29329. return C && C[o];
  29330. };
  29331. },
  29332. 85582: (s, o, i) => {
  29333. 'use strict';
  29334. var u = i(92046),
  29335. _ = i(45951),
  29336. w = i(62250),
  29337. aFunction = function (s) {
  29338. return w(s) ? s : void 0;
  29339. };
  29340. s.exports = function (s, o) {
  29341. return arguments.length < 2
  29342. ? aFunction(u[s]) || aFunction(_[s])
  29343. : (u[s] && u[s][o]) || (_[s] && _[s][o]);
  29344. };
  29345. },
  29346. 73448: (s, o, i) => {
  29347. 'use strict';
  29348. var u = i(73948),
  29349. _ = i(29367),
  29350. w = i(87136),
  29351. x = i(93742),
  29352. C = i(76264)('iterator');
  29353. s.exports = function (s) {
  29354. if (!w(s)) return _(s, C) || _(s, '@@iterator') || x[u(s)];
  29355. };
  29356. },
  29357. 10300: (s, o, i) => {
  29358. 'use strict';
  29359. var u = i(13930),
  29360. _ = i(82159),
  29361. w = i(36624),
  29362. x = i(4640),
  29363. C = i(73448),
  29364. j = TypeError;
  29365. s.exports = function (s, o) {
  29366. var i = arguments.length < 2 ? C(s) : o;
  29367. if (_(i)) return w(u(i, s));
  29368. throw new j(x(s) + ' is not iterable');
  29369. };
  29370. },
  29371. 29367: (s, o, i) => {
  29372. 'use strict';
  29373. var u = i(82159),
  29374. _ = i(87136);
  29375. s.exports = function (s, o) {
  29376. var i = s[o];
  29377. return _(i) ? void 0 : u(i);
  29378. };
  29379. },
  29380. 45951: function (s, o, i) {
  29381. 'use strict';
  29382. var check = function (s) {
  29383. return s && s.Math === Math && s;
  29384. };
  29385. s.exports =
  29386. check('object' == typeof globalThis && globalThis) ||
  29387. check('object' == typeof window && window) ||
  29388. check('object' == typeof self && self) ||
  29389. check('object' == typeof i.g && i.g) ||
  29390. check('object' == typeof this && this) ||
  29391. (function () {
  29392. return this;
  29393. })() ||
  29394. Function('return this')();
  29395. },
  29396. 49724: (s, o, i) => {
  29397. 'use strict';
  29398. var u = i(1907),
  29399. _ = i(39298),
  29400. w = u({}.hasOwnProperty);
  29401. s.exports =
  29402. Object.hasOwn ||
  29403. function hasOwn(s, o) {
  29404. return w(_(s), o);
  29405. };
  29406. },
  29407. 38530: (s) => {
  29408. 'use strict';
  29409. s.exports = {};
  29410. },
  29411. 62416: (s, o, i) => {
  29412. 'use strict';
  29413. var u = i(85582);
  29414. s.exports = u('document', 'documentElement');
  29415. },
  29416. 73648: (s, o, i) => {
  29417. 'use strict';
  29418. var u = i(39447),
  29419. _ = i(98828),
  29420. w = i(49552);
  29421. s.exports =
  29422. !u &&
  29423. !_(function () {
  29424. return (
  29425. 7 !==
  29426. Object.defineProperty(w('div'), 'a', {
  29427. get: function () {
  29428. return 7;
  29429. }
  29430. }).a
  29431. );
  29432. });
  29433. },
  29434. 16946: (s, o, i) => {
  29435. 'use strict';
  29436. var u = i(1907),
  29437. _ = i(98828),
  29438. w = i(45807),
  29439. x = Object,
  29440. C = u(''.split);
  29441. s.exports = _(function () {
  29442. return !x('z').propertyIsEnumerable(0);
  29443. })
  29444. ? function (s) {
  29445. return 'String' === w(s) ? C(s, '') : x(s);
  29446. }
  29447. : x;
  29448. },
  29449. 34084: (s, o, i) => {
  29450. 'use strict';
  29451. var u = i(62250),
  29452. _ = i(46285),
  29453. w = i(79192);
  29454. s.exports = function (s, o, i) {
  29455. var x, C;
  29456. return (
  29457. w &&
  29458. u((x = o.constructor)) &&
  29459. x !== i &&
  29460. _((C = x.prototype)) &&
  29461. C !== i.prototype &&
  29462. w(s, C),
  29463. s
  29464. );
  29465. };
  29466. },
  29467. 39259: (s, o, i) => {
  29468. 'use strict';
  29469. var u = i(46285),
  29470. _ = i(61626);
  29471. s.exports = function (s, o) {
  29472. u(o) && 'cause' in o && _(s, 'cause', o.cause);
  29473. };
  29474. },
  29475. 64932: (s, o, i) => {
  29476. 'use strict';
  29477. var u,
  29478. _,
  29479. w,
  29480. x = i(40551),
  29481. C = i(45951),
  29482. j = i(46285),
  29483. L = i(61626),
  29484. B = i(49724),
  29485. $ = i(36128),
  29486. V = i(92522),
  29487. U = i(38530),
  29488. z = 'Object already initialized',
  29489. Y = C.TypeError,
  29490. Z = C.WeakMap;
  29491. if (x || $.state) {
  29492. var ee = $.state || ($.state = new Z());
  29493. (ee.get = ee.get),
  29494. (ee.has = ee.has),
  29495. (ee.set = ee.set),
  29496. (u = function (s, o) {
  29497. if (ee.has(s)) throw new Y(z);
  29498. return (o.facade = s), ee.set(s, o), o;
  29499. }),
  29500. (_ = function (s) {
  29501. return ee.get(s) || {};
  29502. }),
  29503. (w = function (s) {
  29504. return ee.has(s);
  29505. });
  29506. } else {
  29507. var ie = V('state');
  29508. (U[ie] = !0),
  29509. (u = function (s, o) {
  29510. if (B(s, ie)) throw new Y(z);
  29511. return (o.facade = s), L(s, ie, o), o;
  29512. }),
  29513. (_ = function (s) {
  29514. return B(s, ie) ? s[ie] : {};
  29515. }),
  29516. (w = function (s) {
  29517. return B(s, ie);
  29518. });
  29519. }
  29520. s.exports = {
  29521. set: u,
  29522. get: _,
  29523. has: w,
  29524. enforce: function (s) {
  29525. return w(s) ? _(s) : u(s, {});
  29526. },
  29527. getterFor: function (s) {
  29528. return function (o) {
  29529. var i;
  29530. if (!j(o) || (i = _(o)).type !== s)
  29531. throw new Y('Incompatible receiver, ' + s + ' required');
  29532. return i;
  29533. };
  29534. }
  29535. };
  29536. },
  29537. 37812: (s, o, i) => {
  29538. 'use strict';
  29539. var u = i(76264),
  29540. _ = i(93742),
  29541. w = u('iterator'),
  29542. x = Array.prototype;
  29543. s.exports = function (s) {
  29544. return void 0 !== s && (_.Array === s || x[w] === s);
  29545. };
  29546. },
  29547. 62250: (s) => {
  29548. 'use strict';
  29549. var o = 'object' == typeof document && document.all;
  29550. s.exports =
  29551. void 0 === o && void 0 !== o
  29552. ? function (s) {
  29553. return 'function' == typeof s || s === o;
  29554. }
  29555. : function (s) {
  29556. return 'function' == typeof s;
  29557. };
  29558. },
  29559. 7463: (s, o, i) => {
  29560. 'use strict';
  29561. var u = i(98828),
  29562. _ = i(62250),
  29563. w = /#|\.prototype\./,
  29564. isForced = function (s, o) {
  29565. var i = C[x(s)];
  29566. return i === L || (i !== j && (_(o) ? u(o) : !!o));
  29567. },
  29568. x = (isForced.normalize = function (s) {
  29569. return String(s).replace(w, '.').toLowerCase();
  29570. }),
  29571. C = (isForced.data = {}),
  29572. j = (isForced.NATIVE = 'N'),
  29573. L = (isForced.POLYFILL = 'P');
  29574. s.exports = isForced;
  29575. },
  29576. 87136: (s) => {
  29577. 'use strict';
  29578. s.exports = function (s) {
  29579. return null == s;
  29580. };
  29581. },
  29582. 46285: (s, o, i) => {
  29583. 'use strict';
  29584. var u = i(62250);
  29585. s.exports = function (s) {
  29586. return 'object' == typeof s ? null !== s : u(s);
  29587. };
  29588. },
  29589. 54018: (s, o, i) => {
  29590. 'use strict';
  29591. var u = i(46285);
  29592. s.exports = function (s) {
  29593. return u(s) || null === s;
  29594. };
  29595. },
  29596. 7376: (s) => {
  29597. 'use strict';
  29598. s.exports = !0;
  29599. },
  29600. 25594: (s, o, i) => {
  29601. 'use strict';
  29602. var u = i(85582),
  29603. _ = i(62250),
  29604. w = i(88280),
  29605. x = i(51175),
  29606. C = Object;
  29607. s.exports = x
  29608. ? function (s) {
  29609. return 'symbol' == typeof s;
  29610. }
  29611. : function (s) {
  29612. var o = u('Symbol');
  29613. return _(o) && w(o.prototype, C(s));
  29614. };
  29615. },
  29616. 24823: (s, o, i) => {
  29617. 'use strict';
  29618. var u = i(28311),
  29619. _ = i(13930),
  29620. w = i(36624),
  29621. x = i(4640),
  29622. C = i(37812),
  29623. j = i(20575),
  29624. L = i(88280),
  29625. B = i(10300),
  29626. $ = i(73448),
  29627. V = i(40154),
  29628. U = TypeError,
  29629. Result = function (s, o) {
  29630. (this.stopped = s), (this.result = o);
  29631. },
  29632. z = Result.prototype;
  29633. s.exports = function (s, o, i) {
  29634. var Y,
  29635. Z,
  29636. ee,
  29637. ie,
  29638. ae,
  29639. le,
  29640. ce,
  29641. pe = i && i.that,
  29642. de = !(!i || !i.AS_ENTRIES),
  29643. fe = !(!i || !i.IS_RECORD),
  29644. ye = !(!i || !i.IS_ITERATOR),
  29645. be = !(!i || !i.INTERRUPTED),
  29646. _e = u(o, pe),
  29647. stop = function (s) {
  29648. return Y && V(Y, 'normal', s), new Result(!0, s);
  29649. },
  29650. callFn = function (s) {
  29651. return de
  29652. ? (w(s), be ? _e(s[0], s[1], stop) : _e(s[0], s[1]))
  29653. : be
  29654. ? _e(s, stop)
  29655. : _e(s);
  29656. };
  29657. if (fe) Y = s.iterator;
  29658. else if (ye) Y = s;
  29659. else {
  29660. if (!(Z = $(s))) throw new U(x(s) + ' is not iterable');
  29661. if (C(Z)) {
  29662. for (ee = 0, ie = j(s); ie > ee; ee++)
  29663. if ((ae = callFn(s[ee])) && L(z, ae)) return ae;
  29664. return new Result(!1);
  29665. }
  29666. Y = B(s, Z);
  29667. }
  29668. for (le = fe ? s.next : Y.next; !(ce = _(le, Y)).done; ) {
  29669. try {
  29670. ae = callFn(ce.value);
  29671. } catch (s) {
  29672. V(Y, 'throw', s);
  29673. }
  29674. if ('object' == typeof ae && ae && L(z, ae)) return ae;
  29675. }
  29676. return new Result(!1);
  29677. };
  29678. },
  29679. 40154: (s, o, i) => {
  29680. 'use strict';
  29681. var u = i(13930),
  29682. _ = i(36624),
  29683. w = i(29367);
  29684. s.exports = function (s, o, i) {
  29685. var x, C;
  29686. _(s);
  29687. try {
  29688. if (!(x = w(s, 'return'))) {
  29689. if ('throw' === o) throw i;
  29690. return i;
  29691. }
  29692. x = u(x, s);
  29693. } catch (s) {
  29694. (C = !0), (x = s);
  29695. }
  29696. if ('throw' === o) throw i;
  29697. if (C) throw x;
  29698. return _(x), i;
  29699. };
  29700. },
  29701. 47181: (s, o, i) => {
  29702. 'use strict';
  29703. var u = i(95116).IteratorPrototype,
  29704. _ = i(58075),
  29705. w = i(75817),
  29706. x = i(14840),
  29707. C = i(93742),
  29708. returnThis = function () {
  29709. return this;
  29710. };
  29711. s.exports = function (s, o, i, j) {
  29712. var L = o + ' Iterator';
  29713. return (
  29714. (s.prototype = _(u, { next: w(+!j, i) })), x(s, L, !1, !0), (C[L] = returnThis), s
  29715. );
  29716. };
  29717. },
  29718. 60183: (s, o, i) => {
  29719. 'use strict';
  29720. var u = i(11091),
  29721. _ = i(13930),
  29722. w = i(7376),
  29723. x = i(36833),
  29724. C = i(62250),
  29725. j = i(47181),
  29726. L = i(15972),
  29727. B = i(79192),
  29728. $ = i(14840),
  29729. V = i(61626),
  29730. U = i(68055),
  29731. z = i(76264),
  29732. Y = i(93742),
  29733. Z = i(95116),
  29734. ee = x.PROPER,
  29735. ie = x.CONFIGURABLE,
  29736. ae = Z.IteratorPrototype,
  29737. le = Z.BUGGY_SAFARI_ITERATORS,
  29738. ce = z('iterator'),
  29739. pe = 'keys',
  29740. de = 'values',
  29741. fe = 'entries',
  29742. returnThis = function () {
  29743. return this;
  29744. };
  29745. s.exports = function (s, o, i, x, z, Z, ye) {
  29746. j(i, o, x);
  29747. var be,
  29748. _e,
  29749. we,
  29750. getIterationMethod = function (s) {
  29751. if (s === z && Re) return Re;
  29752. if (!le && s && s in Pe) return Pe[s];
  29753. switch (s) {
  29754. case pe:
  29755. return function keys() {
  29756. return new i(this, s);
  29757. };
  29758. case de:
  29759. return function values() {
  29760. return new i(this, s);
  29761. };
  29762. case fe:
  29763. return function entries() {
  29764. return new i(this, s);
  29765. };
  29766. }
  29767. return function () {
  29768. return new i(this);
  29769. };
  29770. },
  29771. Se = o + ' Iterator',
  29772. xe = !1,
  29773. Pe = s.prototype,
  29774. Te = Pe[ce] || Pe['@@iterator'] || (z && Pe[z]),
  29775. Re = (!le && Te) || getIterationMethod(z),
  29776. qe = ('Array' === o && Pe.entries) || Te;
  29777. if (
  29778. (qe &&
  29779. (be = L(qe.call(new s()))) !== Object.prototype &&
  29780. be.next &&
  29781. (w || L(be) === ae || (B ? B(be, ae) : C(be[ce]) || U(be, ce, returnThis)),
  29782. $(be, Se, !0, !0),
  29783. w && (Y[Se] = returnThis)),
  29784. ee &&
  29785. z === de &&
  29786. Te &&
  29787. Te.name !== de &&
  29788. (!w && ie
  29789. ? V(Pe, 'name', de)
  29790. : ((xe = !0),
  29791. (Re = function values() {
  29792. return _(Te, this);
  29793. }))),
  29794. z)
  29795. )
  29796. if (
  29797. ((_e = {
  29798. values: getIterationMethod(de),
  29799. keys: Z ? Re : getIterationMethod(pe),
  29800. entries: getIterationMethod(fe)
  29801. }),
  29802. ye)
  29803. )
  29804. for (we in _e) (le || xe || !(we in Pe)) && U(Pe, we, _e[we]);
  29805. else u({ target: o, proto: !0, forced: le || xe }, _e);
  29806. return (w && !ye) || Pe[ce] === Re || U(Pe, ce, Re, { name: z }), (Y[o] = Re), _e;
  29807. };
  29808. },
  29809. 95116: (s, o, i) => {
  29810. 'use strict';
  29811. var u,
  29812. _,
  29813. w,
  29814. x = i(98828),
  29815. C = i(62250),
  29816. j = i(46285),
  29817. L = i(58075),
  29818. B = i(15972),
  29819. $ = i(68055),
  29820. V = i(76264),
  29821. U = i(7376),
  29822. z = V('iterator'),
  29823. Y = !1;
  29824. [].keys &&
  29825. ('next' in (w = [].keys()) ? (_ = B(B(w))) !== Object.prototype && (u = _) : (Y = !0)),
  29826. !j(u) ||
  29827. x(function () {
  29828. var s = {};
  29829. return u[z].call(s) !== s;
  29830. })
  29831. ? (u = {})
  29832. : U && (u = L(u)),
  29833. C(u[z]) ||
  29834. $(u, z, function () {
  29835. return this;
  29836. }),
  29837. (s.exports = { IteratorPrototype: u, BUGGY_SAFARI_ITERATORS: Y });
  29838. },
  29839. 93742: (s) => {
  29840. 'use strict';
  29841. s.exports = {};
  29842. },
  29843. 20575: (s, o, i) => {
  29844. 'use strict';
  29845. var u = i(3121);
  29846. s.exports = function (s) {
  29847. return u(s.length);
  29848. };
  29849. },
  29850. 41176: (s) => {
  29851. 'use strict';
  29852. var o = Math.ceil,
  29853. i = Math.floor;
  29854. s.exports =
  29855. Math.trunc ||
  29856. function trunc(s) {
  29857. var u = +s;
  29858. return (u > 0 ? i : o)(u);
  29859. };
  29860. },
  29861. 32096: (s, o, i) => {
  29862. 'use strict';
  29863. var u = i(90160);
  29864. s.exports = function (s, o) {
  29865. return void 0 === s ? (arguments.length < 2 ? '' : o) : u(s);
  29866. };
  29867. },
  29868. 29538: (s, o, i) => {
  29869. 'use strict';
  29870. var u = i(39447),
  29871. _ = i(1907),
  29872. w = i(13930),
  29873. x = i(98828),
  29874. C = i(2875),
  29875. j = i(87170),
  29876. L = i(22574),
  29877. B = i(39298),
  29878. $ = i(16946),
  29879. V = Object.assign,
  29880. U = Object.defineProperty,
  29881. z = _([].concat);
  29882. s.exports =
  29883. !V ||
  29884. x(function () {
  29885. if (
  29886. u &&
  29887. 1 !==
  29888. V(
  29889. { b: 1 },
  29890. V(
  29891. U({}, 'a', {
  29892. enumerable: !0,
  29893. get: function () {
  29894. U(this, 'b', { value: 3, enumerable: !1 });
  29895. }
  29896. }),
  29897. { b: 2 }
  29898. )
  29899. ).b
  29900. )
  29901. return !0;
  29902. var s = {},
  29903. o = {},
  29904. i = Symbol('assign detection'),
  29905. _ = 'abcdefghijklmnopqrst';
  29906. return (
  29907. (s[i] = 7),
  29908. _.split('').forEach(function (s) {
  29909. o[s] = s;
  29910. }),
  29911. 7 !== V({}, s)[i] || C(V({}, o)).join('') !== _
  29912. );
  29913. })
  29914. ? function assign(s, o) {
  29915. for (var i = B(s), _ = arguments.length, x = 1, V = j.f, U = L.f; _ > x; )
  29916. for (
  29917. var Y,
  29918. Z = $(arguments[x++]),
  29919. ee = V ? z(C(Z), V(Z)) : C(Z),
  29920. ie = ee.length,
  29921. ae = 0;
  29922. ie > ae;
  29923. )
  29924. (Y = ee[ae++]), (u && !w(U, Z, Y)) || (i[Y] = Z[Y]);
  29925. return i;
  29926. }
  29927. : V;
  29928. },
  29929. 58075: (s, o, i) => {
  29930. 'use strict';
  29931. var u,
  29932. _ = i(36624),
  29933. w = i(42220),
  29934. x = i(80376),
  29935. C = i(38530),
  29936. j = i(62416),
  29937. L = i(49552),
  29938. B = i(92522),
  29939. $ = 'prototype',
  29940. V = 'script',
  29941. U = B('IE_PROTO'),
  29942. EmptyConstructor = function () {},
  29943. scriptTag = function (s) {
  29944. return '<' + V + '>' + s + '</' + V + '>';
  29945. },
  29946. NullProtoObjectViaActiveX = function (s) {
  29947. s.write(scriptTag('')), s.close();
  29948. var o = s.parentWindow.Object;
  29949. return (s = null), o;
  29950. },
  29951. NullProtoObject = function () {
  29952. try {
  29953. u = new ActiveXObject('htmlfile');
  29954. } catch (s) {}
  29955. var s, o, i;
  29956. NullProtoObject =
  29957. 'undefined' != typeof document
  29958. ? document.domain && u
  29959. ? NullProtoObjectViaActiveX(u)
  29960. : ((o = L('iframe')),
  29961. (i = 'java' + V + ':'),
  29962. (o.style.display = 'none'),
  29963. j.appendChild(o),
  29964. (o.src = String(i)),
  29965. (s = o.contentWindow.document).open(),
  29966. s.write(scriptTag('document.F=Object')),
  29967. s.close(),
  29968. s.F)
  29969. : NullProtoObjectViaActiveX(u);
  29970. for (var _ = x.length; _--; ) delete NullProtoObject[$][x[_]];
  29971. return NullProtoObject();
  29972. };
  29973. (C[U] = !0),
  29974. (s.exports =
  29975. Object.create ||
  29976. function create(s, o) {
  29977. var i;
  29978. return (
  29979. null !== s
  29980. ? ((EmptyConstructor[$] = _(s)),
  29981. (i = new EmptyConstructor()),
  29982. (EmptyConstructor[$] = null),
  29983. (i[U] = s))
  29984. : (i = NullProtoObject()),
  29985. void 0 === o ? i : w.f(i, o)
  29986. );
  29987. });
  29988. },
  29989. 42220: (s, o, i) => {
  29990. 'use strict';
  29991. var u = i(39447),
  29992. _ = i(58661),
  29993. w = i(74284),
  29994. x = i(36624),
  29995. C = i(4993),
  29996. j = i(2875);
  29997. o.f =
  29998. u && !_
  29999. ? Object.defineProperties
  30000. : function defineProperties(s, o) {
  30001. x(s);
  30002. for (var i, u = C(o), _ = j(o), L = _.length, B = 0; L > B; )
  30003. w.f(s, (i = _[B++]), u[i]);
  30004. return s;
  30005. };
  30006. },
  30007. 74284: (s, o, i) => {
  30008. 'use strict';
  30009. var u = i(39447),
  30010. _ = i(73648),
  30011. w = i(58661),
  30012. x = i(36624),
  30013. C = i(70470),
  30014. j = TypeError,
  30015. L = Object.defineProperty,
  30016. B = Object.getOwnPropertyDescriptor,
  30017. $ = 'enumerable',
  30018. V = 'configurable',
  30019. U = 'writable';
  30020. o.f = u
  30021. ? w
  30022. ? function defineProperty(s, o, i) {
  30023. if (
  30024. (x(s),
  30025. (o = C(o)),
  30026. x(i),
  30027. 'function' == typeof s && 'prototype' === o && 'value' in i && U in i && !i[U])
  30028. ) {
  30029. var u = B(s, o);
  30030. u &&
  30031. u[U] &&
  30032. ((s[o] = i.value),
  30033. (i = {
  30034. configurable: V in i ? i[V] : u[V],
  30035. enumerable: $ in i ? i[$] : u[$],
  30036. writable: !1
  30037. }));
  30038. }
  30039. return L(s, o, i);
  30040. }
  30041. : L
  30042. : function defineProperty(s, o, i) {
  30043. if ((x(s), (o = C(o)), x(i), _))
  30044. try {
  30045. return L(s, o, i);
  30046. } catch (s) {}
  30047. if ('get' in i || 'set' in i) throw new j('Accessors not supported');
  30048. return 'value' in i && (s[o] = i.value), s;
  30049. };
  30050. },
  30051. 13846: (s, o, i) => {
  30052. 'use strict';
  30053. var u = i(39447),
  30054. _ = i(13930),
  30055. w = i(22574),
  30056. x = i(75817),
  30057. C = i(4993),
  30058. j = i(70470),
  30059. L = i(49724),
  30060. B = i(73648),
  30061. $ = Object.getOwnPropertyDescriptor;
  30062. o.f = u
  30063. ? $
  30064. : function getOwnPropertyDescriptor(s, o) {
  30065. if (((s = C(s)), (o = j(o)), B))
  30066. try {
  30067. return $(s, o);
  30068. } catch (s) {}
  30069. if (L(s, o)) return x(!_(w.f, s, o), s[o]);
  30070. };
  30071. },
  30072. 24443: (s, o, i) => {
  30073. 'use strict';
  30074. var u = i(23045),
  30075. _ = i(80376).concat('length', 'prototype');
  30076. o.f =
  30077. Object.getOwnPropertyNames ||
  30078. function getOwnPropertyNames(s) {
  30079. return u(s, _);
  30080. };
  30081. },
  30082. 87170: (s, o) => {
  30083. 'use strict';
  30084. o.f = Object.getOwnPropertySymbols;
  30085. },
  30086. 15972: (s, o, i) => {
  30087. 'use strict';
  30088. var u = i(49724),
  30089. _ = i(62250),
  30090. w = i(39298),
  30091. x = i(92522),
  30092. C = i(57382),
  30093. j = x('IE_PROTO'),
  30094. L = Object,
  30095. B = L.prototype;
  30096. s.exports = C
  30097. ? L.getPrototypeOf
  30098. : function (s) {
  30099. var o = w(s);
  30100. if (u(o, j)) return o[j];
  30101. var i = o.constructor;
  30102. return _(i) && o instanceof i ? i.prototype : o instanceof L ? B : null;
  30103. };
  30104. },
  30105. 88280: (s, o, i) => {
  30106. 'use strict';
  30107. var u = i(1907);
  30108. s.exports = u({}.isPrototypeOf);
  30109. },
  30110. 23045: (s, o, i) => {
  30111. 'use strict';
  30112. var u = i(1907),
  30113. _ = i(49724),
  30114. w = i(4993),
  30115. x = i(74436).indexOf,
  30116. C = i(38530),
  30117. j = u([].push);
  30118. s.exports = function (s, o) {
  30119. var i,
  30120. u = w(s),
  30121. L = 0,
  30122. B = [];
  30123. for (i in u) !_(C, i) && _(u, i) && j(B, i);
  30124. for (; o.length > L; ) _(u, (i = o[L++])) && (~x(B, i) || j(B, i));
  30125. return B;
  30126. };
  30127. },
  30128. 2875: (s, o, i) => {
  30129. 'use strict';
  30130. var u = i(23045),
  30131. _ = i(80376);
  30132. s.exports =
  30133. Object.keys ||
  30134. function keys(s) {
  30135. return u(s, _);
  30136. };
  30137. },
  30138. 22574: (s, o) => {
  30139. 'use strict';
  30140. var i = {}.propertyIsEnumerable,
  30141. u = Object.getOwnPropertyDescriptor,
  30142. _ = u && !i.call({ 1: 2 }, 1);
  30143. o.f = _
  30144. ? function propertyIsEnumerable(s) {
  30145. var o = u(this, s);
  30146. return !!o && o.enumerable;
  30147. }
  30148. : i;
  30149. },
  30150. 79192: (s, o, i) => {
  30151. 'use strict';
  30152. var u = i(51871),
  30153. _ = i(46285),
  30154. w = i(74239),
  30155. x = i(10043);
  30156. s.exports =
  30157. Object.setPrototypeOf ||
  30158. ('__proto__' in {}
  30159. ? (function () {
  30160. var s,
  30161. o = !1,
  30162. i = {};
  30163. try {
  30164. (s = u(Object.prototype, '__proto__', 'set'))(i, []), (o = i instanceof Array);
  30165. } catch (s) {}
  30166. return function setPrototypeOf(i, u) {
  30167. return w(i), x(u), _(i) ? (o ? s(i, u) : (i.__proto__ = u), i) : i;
  30168. };
  30169. })()
  30170. : void 0);
  30171. },
  30172. 54878: (s, o, i) => {
  30173. 'use strict';
  30174. var u = i(52623),
  30175. _ = i(73948);
  30176. s.exports = u
  30177. ? {}.toString
  30178. : function toString() {
  30179. return '[object ' + _(this) + ']';
  30180. };
  30181. },
  30182. 60581: (s, o, i) => {
  30183. 'use strict';
  30184. var u = i(13930),
  30185. _ = i(62250),
  30186. w = i(46285),
  30187. x = TypeError;
  30188. s.exports = function (s, o) {
  30189. var i, C;
  30190. if ('string' === o && _((i = s.toString)) && !w((C = u(i, s)))) return C;
  30191. if (_((i = s.valueOf)) && !w((C = u(i, s)))) return C;
  30192. if ('string' !== o && _((i = s.toString)) && !w((C = u(i, s)))) return C;
  30193. throw new x("Can't convert object to primitive value");
  30194. };
  30195. },
  30196. 11042: (s, o, i) => {
  30197. 'use strict';
  30198. var u = i(85582),
  30199. _ = i(1907),
  30200. w = i(24443),
  30201. x = i(87170),
  30202. C = i(36624),
  30203. j = _([].concat);
  30204. s.exports =
  30205. u('Reflect', 'ownKeys') ||
  30206. function ownKeys(s) {
  30207. var o = w.f(C(s)),
  30208. i = x.f;
  30209. return i ? j(o, i(s)) : o;
  30210. };
  30211. },
  30212. 92046: (s) => {
  30213. 'use strict';
  30214. s.exports = {};
  30215. },
  30216. 54829: (s, o, i) => {
  30217. 'use strict';
  30218. var u = i(74284).f;
  30219. s.exports = function (s, o, i) {
  30220. i in s ||
  30221. u(s, i, {
  30222. configurable: !0,
  30223. get: function () {
  30224. return o[i];
  30225. },
  30226. set: function (s) {
  30227. o[i] = s;
  30228. }
  30229. });
  30230. };
  30231. },
  30232. 74239: (s, o, i) => {
  30233. 'use strict';
  30234. var u = i(87136),
  30235. _ = TypeError;
  30236. s.exports = function (s) {
  30237. if (u(s)) throw new _("Can't call method on " + s);
  30238. return s;
  30239. };
  30240. },
  30241. 14840: (s, o, i) => {
  30242. 'use strict';
  30243. var u = i(52623),
  30244. _ = i(74284).f,
  30245. w = i(61626),
  30246. x = i(49724),
  30247. C = i(54878),
  30248. j = i(76264)('toStringTag');
  30249. s.exports = function (s, o, i, L) {
  30250. var B = i ? s : s && s.prototype;
  30251. B &&
  30252. (x(B, j) || _(B, j, { configurable: !0, value: o }), L && !u && w(B, 'toString', C));
  30253. };
  30254. },
  30255. 92522: (s, o, i) => {
  30256. 'use strict';
  30257. var u = i(85816),
  30258. _ = i(6499),
  30259. w = u('keys');
  30260. s.exports = function (s) {
  30261. return w[s] || (w[s] = _(s));
  30262. };
  30263. },
  30264. 36128: (s, o, i) => {
  30265. 'use strict';
  30266. var u = i(7376),
  30267. _ = i(45951),
  30268. w = i(2532),
  30269. x = '__core-js_shared__',
  30270. C = (s.exports = _[x] || w(x, {}));
  30271. (C.versions || (C.versions = [])).push({
  30272. version: '3.39.0',
  30273. mode: u ? 'pure' : 'global',
  30274. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  30275. license: 'https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE',
  30276. source: 'https://github.com/zloirock/core-js'
  30277. });
  30278. },
  30279. 85816: (s, o, i) => {
  30280. 'use strict';
  30281. var u = i(36128);
  30282. s.exports = function (s, o) {
  30283. return u[s] || (u[s] = o || {});
  30284. };
  30285. },
  30286. 11470: (s, o, i) => {
  30287. 'use strict';
  30288. var u = i(1907),
  30289. _ = i(65482),
  30290. w = i(90160),
  30291. x = i(74239),
  30292. C = u(''.charAt),
  30293. j = u(''.charCodeAt),
  30294. L = u(''.slice),
  30295. createMethod = function (s) {
  30296. return function (o, i) {
  30297. var u,
  30298. B,
  30299. $ = w(x(o)),
  30300. V = _(i),
  30301. U = $.length;
  30302. return V < 0 || V >= U
  30303. ? s
  30304. ? ''
  30305. : void 0
  30306. : (u = j($, V)) < 55296 ||
  30307. u > 56319 ||
  30308. V + 1 === U ||
  30309. (B = j($, V + 1)) < 56320 ||
  30310. B > 57343
  30311. ? s
  30312. ? C($, V)
  30313. : u
  30314. : s
  30315. ? L($, V, V + 2)
  30316. : B - 56320 + ((u - 55296) << 10) + 65536;
  30317. };
  30318. };
  30319. s.exports = { codeAt: createMethod(!1), charAt: createMethod(!0) };
  30320. },
  30321. 19846: (s, o, i) => {
  30322. 'use strict';
  30323. var u = i(20798),
  30324. _ = i(98828),
  30325. w = i(45951).String;
  30326. s.exports =
  30327. !!Object.getOwnPropertySymbols &&
  30328. !_(function () {
  30329. var s = Symbol('symbol detection');
  30330. return !w(s) || !(Object(s) instanceof Symbol) || (!Symbol.sham && u && u < 41);
  30331. });
  30332. },
  30333. 34849: (s, o, i) => {
  30334. 'use strict';
  30335. var u = i(65482),
  30336. _ = Math.max,
  30337. w = Math.min;
  30338. s.exports = function (s, o) {
  30339. var i = u(s);
  30340. return i < 0 ? _(i + o, 0) : w(i, o);
  30341. };
  30342. },
  30343. 4993: (s, o, i) => {
  30344. 'use strict';
  30345. var u = i(16946),
  30346. _ = i(74239);
  30347. s.exports = function (s) {
  30348. return u(_(s));
  30349. };
  30350. },
  30351. 65482: (s, o, i) => {
  30352. 'use strict';
  30353. var u = i(41176);
  30354. s.exports = function (s) {
  30355. var o = +s;
  30356. return o != o || 0 === o ? 0 : u(o);
  30357. };
  30358. },
  30359. 3121: (s, o, i) => {
  30360. 'use strict';
  30361. var u = i(65482),
  30362. _ = Math.min;
  30363. s.exports = function (s) {
  30364. var o = u(s);
  30365. return o > 0 ? _(o, 9007199254740991) : 0;
  30366. };
  30367. },
  30368. 39298: (s, o, i) => {
  30369. 'use strict';
  30370. var u = i(74239),
  30371. _ = Object;
  30372. s.exports = function (s) {
  30373. return _(u(s));
  30374. };
  30375. },
  30376. 46028: (s, o, i) => {
  30377. 'use strict';
  30378. var u = i(13930),
  30379. _ = i(46285),
  30380. w = i(25594),
  30381. x = i(29367),
  30382. C = i(60581),
  30383. j = i(76264),
  30384. L = TypeError,
  30385. B = j('toPrimitive');
  30386. s.exports = function (s, o) {
  30387. if (!_(s) || w(s)) return s;
  30388. var i,
  30389. j = x(s, B);
  30390. if (j) {
  30391. if ((void 0 === o && (o = 'default'), (i = u(j, s, o)), !_(i) || w(i))) return i;
  30392. throw new L("Can't convert object to primitive value");
  30393. }
  30394. return void 0 === o && (o = 'number'), C(s, o);
  30395. };
  30396. },
  30397. 70470: (s, o, i) => {
  30398. 'use strict';
  30399. var u = i(46028),
  30400. _ = i(25594);
  30401. s.exports = function (s) {
  30402. var o = u(s, 'string');
  30403. return _(o) ? o : o + '';
  30404. };
  30405. },
  30406. 52623: (s, o, i) => {
  30407. 'use strict';
  30408. var u = {};
  30409. (u[i(76264)('toStringTag')] = 'z'), (s.exports = '[object z]' === String(u));
  30410. },
  30411. 90160: (s, o, i) => {
  30412. 'use strict';
  30413. var u = i(73948),
  30414. _ = String;
  30415. s.exports = function (s) {
  30416. if ('Symbol' === u(s)) throw new TypeError('Cannot convert a Symbol value to a string');
  30417. return _(s);
  30418. };
  30419. },
  30420. 4640: (s) => {
  30421. 'use strict';
  30422. var o = String;
  30423. s.exports = function (s) {
  30424. try {
  30425. return o(s);
  30426. } catch (s) {
  30427. return 'Object';
  30428. }
  30429. };
  30430. },
  30431. 6499: (s, o, i) => {
  30432. 'use strict';
  30433. var u = i(1907),
  30434. _ = 0,
  30435. w = Math.random(),
  30436. x = u((1).toString);
  30437. s.exports = function (s) {
  30438. return 'Symbol(' + (void 0 === s ? '' : s) + ')_' + x(++_ + w, 36);
  30439. };
  30440. },
  30441. 51175: (s, o, i) => {
  30442. 'use strict';
  30443. var u = i(19846);
  30444. s.exports = u && !Symbol.sham && 'symbol' == typeof Symbol.iterator;
  30445. },
  30446. 58661: (s, o, i) => {
  30447. 'use strict';
  30448. var u = i(39447),
  30449. _ = i(98828);
  30450. s.exports =
  30451. u &&
  30452. _(function () {
  30453. return (
  30454. 42 !==
  30455. Object.defineProperty(function () {}, 'prototype', { value: 42, writable: !1 })
  30456. .prototype
  30457. );
  30458. });
  30459. },
  30460. 40551: (s, o, i) => {
  30461. 'use strict';
  30462. var u = i(45951),
  30463. _ = i(62250),
  30464. w = u.WeakMap;
  30465. s.exports = _(w) && /native code/.test(String(w));
  30466. },
  30467. 76264: (s, o, i) => {
  30468. 'use strict';
  30469. var u = i(45951),
  30470. _ = i(85816),
  30471. w = i(49724),
  30472. x = i(6499),
  30473. C = i(19846),
  30474. j = i(51175),
  30475. L = u.Symbol,
  30476. B = _('wks'),
  30477. $ = j ? L.for || L : (L && L.withoutSetter) || x;
  30478. s.exports = function (s) {
  30479. return w(B, s) || (B[s] = C && w(L, s) ? L[s] : $('Symbol.' + s)), B[s];
  30480. };
  30481. },
  30482. 19358: (s, o, i) => {
  30483. 'use strict';
  30484. var u = i(85582),
  30485. _ = i(49724),
  30486. w = i(61626),
  30487. x = i(88280),
  30488. C = i(79192),
  30489. j = i(19595),
  30490. L = i(54829),
  30491. B = i(34084),
  30492. $ = i(32096),
  30493. V = i(39259),
  30494. U = i(85884),
  30495. z = i(39447),
  30496. Y = i(7376);
  30497. s.exports = function (s, o, i, Z) {
  30498. var ee = 'stackTraceLimit',
  30499. ie = Z ? 2 : 1,
  30500. ae = s.split('.'),
  30501. le = ae[ae.length - 1],
  30502. ce = u.apply(null, ae);
  30503. if (ce) {
  30504. var pe = ce.prototype;
  30505. if ((!Y && _(pe, 'cause') && delete pe.cause, !i)) return ce;
  30506. var de = u('Error'),
  30507. fe = o(function (s, o) {
  30508. var i = $(Z ? o : s, void 0),
  30509. u = Z ? new ce(s) : new ce();
  30510. return (
  30511. void 0 !== i && w(u, 'message', i),
  30512. U(u, fe, u.stack, 2),
  30513. this && x(pe, this) && B(u, this, fe),
  30514. arguments.length > ie && V(u, arguments[ie]),
  30515. u
  30516. );
  30517. });
  30518. if (
  30519. ((fe.prototype = pe),
  30520. 'Error' !== le
  30521. ? C
  30522. ? C(fe, de)
  30523. : j(fe, de, { name: !0 })
  30524. : z && ee in ce && (L(fe, ce, ee), L(fe, ce, 'prepareStackTrace')),
  30525. j(fe, ce),
  30526. !Y)
  30527. )
  30528. try {
  30529. pe.name !== le && w(pe, 'name', le), (pe.constructor = fe);
  30530. } catch (s) {}
  30531. return fe;
  30532. }
  30533. };
  30534. },
  30535. 36371: (s, o, i) => {
  30536. 'use strict';
  30537. var u = i(11091),
  30538. _ = i(85582),
  30539. w = i(76024),
  30540. x = i(98828),
  30541. C = i(19358),
  30542. j = 'AggregateError',
  30543. L = _(j),
  30544. B =
  30545. !x(function () {
  30546. return 1 !== L([1]).errors[0];
  30547. }) &&
  30548. x(function () {
  30549. return 7 !== L([1], j, { cause: 7 }).cause;
  30550. });
  30551. u(
  30552. { global: !0, constructor: !0, arity: 2, forced: B },
  30553. {
  30554. AggregateError: C(
  30555. j,
  30556. function (s) {
  30557. return function AggregateError(o, i) {
  30558. return w(s, this, arguments);
  30559. };
  30560. },
  30561. B,
  30562. !0
  30563. )
  30564. }
  30565. );
  30566. },
  30567. 82048: (s, o, i) => {
  30568. 'use strict';
  30569. var u = i(11091),
  30570. _ = i(88280),
  30571. w = i(15972),
  30572. x = i(79192),
  30573. C = i(19595),
  30574. j = i(58075),
  30575. L = i(61626),
  30576. B = i(75817),
  30577. $ = i(39259),
  30578. V = i(85884),
  30579. U = i(24823),
  30580. z = i(32096),
  30581. Y = i(76264)('toStringTag'),
  30582. Z = Error,
  30583. ee = [].push,
  30584. ie = function AggregateError(s, o) {
  30585. var i,
  30586. u = _(ae, this);
  30587. x ? (i = x(new Z(), u ? w(this) : ae)) : ((i = u ? this : j(ae)), L(i, Y, 'Error')),
  30588. void 0 !== o && L(i, 'message', z(o)),
  30589. V(i, ie, i.stack, 1),
  30590. arguments.length > 2 && $(i, arguments[2]);
  30591. var C = [];
  30592. return U(s, ee, { that: C }), L(i, 'errors', C), i;
  30593. };
  30594. x ? x(ie, Z) : C(ie, Z, { name: !0 });
  30595. var ae = (ie.prototype = j(Z.prototype, {
  30596. constructor: B(1, ie),
  30597. message: B(1, ''),
  30598. name: B(1, 'AggregateError')
  30599. }));
  30600. u({ global: !0, constructor: !0, arity: 2 }, { AggregateError: ie });
  30601. },
  30602. 64502: (s, o, i) => {
  30603. 'use strict';
  30604. i(82048);
  30605. },
  30606. 99363: (s, o, i) => {
  30607. 'use strict';
  30608. var u = i(4993),
  30609. _ = i(42156),
  30610. w = i(93742),
  30611. x = i(64932),
  30612. C = i(74284).f,
  30613. j = i(60183),
  30614. L = i(59550),
  30615. B = i(7376),
  30616. $ = i(39447),
  30617. V = 'Array Iterator',
  30618. U = x.set,
  30619. z = x.getterFor(V);
  30620. s.exports = j(
  30621. Array,
  30622. 'Array',
  30623. function (s, o) {
  30624. U(this, { type: V, target: u(s), index: 0, kind: o });
  30625. },
  30626. function () {
  30627. var s = z(this),
  30628. o = s.target,
  30629. i = s.index++;
  30630. if (!o || i >= o.length) return (s.target = null), L(void 0, !0);
  30631. switch (s.kind) {
  30632. case 'keys':
  30633. return L(i, !1);
  30634. case 'values':
  30635. return L(o[i], !1);
  30636. }
  30637. return L([i, o[i]], !1);
  30638. },
  30639. 'values'
  30640. );
  30641. var Y = (w.Arguments = w.Array);
  30642. if ((_('keys'), _('values'), _('entries'), !B && $ && 'values' !== Y.name))
  30643. try {
  30644. C(Y, 'name', { value: 'values' });
  30645. } catch (s) {}
  30646. },
  30647. 96605: (s, o, i) => {
  30648. 'use strict';
  30649. var u = i(11091),
  30650. _ = i(45951),
  30651. w = i(76024),
  30652. x = i(19358),
  30653. C = 'WebAssembly',
  30654. j = _[C],
  30655. L = 7 !== new Error('e', { cause: 7 }).cause,
  30656. exportGlobalErrorCauseWrapper = function (s, o) {
  30657. var i = {};
  30658. (i[s] = x(s, o, L)), u({ global: !0, constructor: !0, arity: 1, forced: L }, i);
  30659. },
  30660. exportWebAssemblyErrorCauseWrapper = function (s, o) {
  30661. if (j && j[s]) {
  30662. var i = {};
  30663. (i[s] = x(C + '.' + s, o, L)),
  30664. u({ target: C, stat: !0, constructor: !0, arity: 1, forced: L }, i);
  30665. }
  30666. };
  30667. exportGlobalErrorCauseWrapper('Error', function (s) {
  30668. return function Error(o) {
  30669. return w(s, this, arguments);
  30670. };
  30671. }),
  30672. exportGlobalErrorCauseWrapper('EvalError', function (s) {
  30673. return function EvalError(o) {
  30674. return w(s, this, arguments);
  30675. };
  30676. }),
  30677. exportGlobalErrorCauseWrapper('RangeError', function (s) {
  30678. return function RangeError(o) {
  30679. return w(s, this, arguments);
  30680. };
  30681. }),
  30682. exportGlobalErrorCauseWrapper('ReferenceError', function (s) {
  30683. return function ReferenceError(o) {
  30684. return w(s, this, arguments);
  30685. };
  30686. }),
  30687. exportGlobalErrorCauseWrapper('SyntaxError', function (s) {
  30688. return function SyntaxError(o) {
  30689. return w(s, this, arguments);
  30690. };
  30691. }),
  30692. exportGlobalErrorCauseWrapper('TypeError', function (s) {
  30693. return function TypeError(o) {
  30694. return w(s, this, arguments);
  30695. };
  30696. }),
  30697. exportGlobalErrorCauseWrapper('URIError', function (s) {
  30698. return function URIError(o) {
  30699. return w(s, this, arguments);
  30700. };
  30701. }),
  30702. exportWebAssemblyErrorCauseWrapper('CompileError', function (s) {
  30703. return function CompileError(o) {
  30704. return w(s, this, arguments);
  30705. };
  30706. }),
  30707. exportWebAssemblyErrorCauseWrapper('LinkError', function (s) {
  30708. return function LinkError(o) {
  30709. return w(s, this, arguments);
  30710. };
  30711. }),
  30712. exportWebAssemblyErrorCauseWrapper('RuntimeError', function (s) {
  30713. return function RuntimeError(o) {
  30714. return w(s, this, arguments);
  30715. };
  30716. });
  30717. },
  30718. 79307: (s, o, i) => {
  30719. 'use strict';
  30720. var u = i(11091),
  30721. _ = i(44673);
  30722. u({ target: 'Function', proto: !0, forced: Function.bind !== _ }, { bind: _ });
  30723. },
  30724. 71340: (s, o, i) => {
  30725. 'use strict';
  30726. var u = i(11091),
  30727. _ = i(29538);
  30728. u({ target: 'Object', stat: !0, arity: 2, forced: Object.assign !== _ }, { assign: _ });
  30729. },
  30730. 7057: (s, o, i) => {
  30731. 'use strict';
  30732. var u = i(11470).charAt,
  30733. _ = i(90160),
  30734. w = i(64932),
  30735. x = i(60183),
  30736. C = i(59550),
  30737. j = 'String Iterator',
  30738. L = w.set,
  30739. B = w.getterFor(j);
  30740. x(
  30741. String,
  30742. 'String',
  30743. function (s) {
  30744. L(this, { type: j, string: _(s), index: 0 });
  30745. },
  30746. function next() {
  30747. var s,
  30748. o = B(this),
  30749. i = o.string,
  30750. _ = o.index;
  30751. return _ >= i.length
  30752. ? C(void 0, !0)
  30753. : ((s = u(i, _)), (o.index += s.length), C(s, !1));
  30754. }
  30755. );
  30756. },
  30757. 91599: (s, o, i) => {
  30758. 'use strict';
  30759. i(64502);
  30760. },
  30761. 12560: (s, o, i) => {
  30762. 'use strict';
  30763. i(99363);
  30764. var u = i(19287),
  30765. _ = i(45951),
  30766. w = i(14840),
  30767. x = i(93742);
  30768. for (var C in u) w(_[C], C), (x[C] = x.Array);
  30769. },
  30770. 694: (s, o, i) => {
  30771. 'use strict';
  30772. i(91599);
  30773. var u = i(37257);
  30774. i(12560), (s.exports = u);
  30775. },
  30776. 19709: (s, o, i) => {
  30777. 'use strict';
  30778. var u = i(23034);
  30779. s.exports = u;
  30780. },
  30781. 40975: (s, o, i) => {
  30782. 'use strict';
  30783. var u = i(9748);
  30784. s.exports = u;
  30785. }
  30786. },
  30787. u = {};
  30788. function __webpack_require__(s) {
  30789. var o = u[s];
  30790. if (void 0 !== o) return o.exports;
  30791. var _ = (u[s] = { id: s, loaded: !1, exports: {} });
  30792. return i[s].call(_.exports, _, _.exports, __webpack_require__), (_.loaded = !0), _.exports;
  30793. }
  30794. (__webpack_require__.n = (s) => {
  30795. var o = s && s.__esModule ? () => s.default : () => s;
  30796. return __webpack_require__.d(o, { a: o }), o;
  30797. }),
  30798. (o = Object.getPrototypeOf ? (s) => Object.getPrototypeOf(s) : (s) => s.__proto__),
  30799. (__webpack_require__.t = function (i, u) {
  30800. if ((1 & u && (i = this(i)), 8 & u)) return i;
  30801. if ('object' == typeof i && i) {
  30802. if (4 & u && i.__esModule) return i;
  30803. if (16 & u && 'function' == typeof i.then) return i;
  30804. }
  30805. var _ = Object.create(null);
  30806. __webpack_require__.r(_);
  30807. var w = {};
  30808. s = s || [null, o({}), o([]), o(o)];
  30809. for (var x = 2 & u && i; 'object' == typeof x && !~s.indexOf(x); x = o(x))
  30810. Object.getOwnPropertyNames(x).forEach((s) => (w[s] = () => i[s]));
  30811. return (w.default = () => i), __webpack_require__.d(_, w), _;
  30812. }),
  30813. (__webpack_require__.d = (s, o) => {
  30814. for (var i in o)
  30815. __webpack_require__.o(o, i) &&
  30816. !__webpack_require__.o(s, i) &&
  30817. Object.defineProperty(s, i, { enumerable: !0, get: o[i] });
  30818. }),
  30819. (__webpack_require__.g = (function () {
  30820. if ('object' == typeof globalThis) return globalThis;
  30821. try {
  30822. return this || new Function('return this')();
  30823. } catch (s) {
  30824. if ('object' == typeof window) return window;
  30825. }
  30826. })()),
  30827. (__webpack_require__.o = (s, o) => Object.prototype.hasOwnProperty.call(s, o)),
  30828. (__webpack_require__.r = (s) => {
  30829. 'undefined' != typeof Symbol &&
  30830. Symbol.toStringTag &&
  30831. Object.defineProperty(s, Symbol.toStringTag, { value: 'Module' }),
  30832. Object.defineProperty(s, '__esModule', { value: !0 });
  30833. }),
  30834. (__webpack_require__.nmd = (s) => ((s.paths = []), s.children || (s.children = []), s));
  30835. var _ = {};
  30836. return (
  30837. (() => {
  30838. 'use strict';
  30839. __webpack_require__.d(_, { default: () => WI });
  30840. var s = {};
  30841. __webpack_require__.r(s),
  30842. __webpack_require__.d(s, {
  30843. CLEAR: () => ot,
  30844. CLEAR_BY: () => it,
  30845. NEW_AUTH_ERR: () => st,
  30846. NEW_SPEC_ERR: () => rt,
  30847. NEW_SPEC_ERR_BATCH: () => nt,
  30848. NEW_THROWN_ERR: () => et,
  30849. NEW_THROWN_ERR_BATCH: () => tt,
  30850. clear: () => clear,
  30851. clearBy: () => clearBy,
  30852. newAuthErr: () => newAuthErr,
  30853. newSpecErr: () => newSpecErr,
  30854. newSpecErrBatch: () => newSpecErrBatch,
  30855. newThrownErr: () => newThrownErr,
  30856. newThrownErrBatch: () => newThrownErrBatch
  30857. });
  30858. var o = {};
  30859. __webpack_require__.r(o),
  30860. __webpack_require__.d(o, {
  30861. AUTHORIZE: () => Nt,
  30862. AUTHORIZE_OAUTH2: () => Lt,
  30863. CONFIGURE_AUTH: () => Ft,
  30864. LOGOUT: () => Rt,
  30865. PRE_AUTHORIZE_OAUTH2: () => Dt,
  30866. RESTORE_AUTHORIZATION: () => qt,
  30867. SHOW_AUTH_POPUP: () => Tt,
  30868. VALIDATE: () => Bt,
  30869. authPopup: () => authPopup,
  30870. authorize: () => authorize,
  30871. authorizeAccessCodeWithBasicAuthentication: () =>
  30872. authorizeAccessCodeWithBasicAuthentication,
  30873. authorizeAccessCodeWithFormParams: () => authorizeAccessCodeWithFormParams,
  30874. authorizeApplication: () => authorizeApplication,
  30875. authorizeOauth2: () => authorizeOauth2,
  30876. authorizeOauth2WithPersistOption: () => authorizeOauth2WithPersistOption,
  30877. authorizePassword: () => authorizePassword,
  30878. authorizeRequest: () => authorizeRequest,
  30879. authorizeWithPersistOption: () => authorizeWithPersistOption,
  30880. configureAuth: () => configureAuth,
  30881. logout: () => logout,
  30882. logoutWithPersistOption: () => logoutWithPersistOption,
  30883. persistAuthorizationIfNeeded: () => persistAuthorizationIfNeeded,
  30884. preAuthorizeImplicit: () => preAuthorizeImplicit,
  30885. restoreAuthorization: () => restoreAuthorization,
  30886. showDefinitions: () => showDefinitions
  30887. });
  30888. var i = {};
  30889. __webpack_require__.r(i),
  30890. __webpack_require__.d(i, {
  30891. authorized: () => Ht,
  30892. definitionsForRequirements: () => definitionsForRequirements,
  30893. definitionsToAuthorize: () => Kt,
  30894. getConfigs: () => Jt,
  30895. getDefinitionsByNames: () => getDefinitionsByNames,
  30896. isAuthorized: () => isAuthorized,
  30897. shownDefinitions: () => Wt
  30898. });
  30899. var u = {};
  30900. __webpack_require__.r(u),
  30901. __webpack_require__.d(u, {
  30902. TOGGLE_CONFIGS: () => yn,
  30903. UPDATE_CONFIGS: () => gn,
  30904. downloadConfig: () => downloadConfig,
  30905. getConfigByUrl: () => getConfigByUrl,
  30906. loaded: () => actions_loaded,
  30907. toggle: () => toggle,
  30908. update: () => update
  30909. });
  30910. var w = {};
  30911. __webpack_require__.r(w), __webpack_require__.d(w, { get: () => get });
  30912. var x = {};
  30913. __webpack_require__.r(x), __webpack_require__.d(x, { transform: () => transform });
  30914. var C = {};
  30915. __webpack_require__.r(C),
  30916. __webpack_require__.d(C, { transform: () => parameter_oneof_transform });
  30917. var j = {};
  30918. __webpack_require__.r(j),
  30919. __webpack_require__.d(j, { allErrors: () => Mn, lastError: () => Tn });
  30920. var L = {};
  30921. __webpack_require__.r(L),
  30922. __webpack_require__.d(L, {
  30923. SHOW: () => Fn,
  30924. UPDATE_FILTER: () => Ln,
  30925. UPDATE_LAYOUT: () => Dn,
  30926. UPDATE_MODE: () => Bn,
  30927. changeMode: () => changeMode,
  30928. show: () => actions_show,
  30929. updateFilter: () => updateFilter,
  30930. updateLayout: () => updateLayout
  30931. });
  30932. var B = {};
  30933. __webpack_require__.r(B),
  30934. __webpack_require__.d(B, {
  30935. current: () => current,
  30936. currentFilter: () => currentFilter,
  30937. isShown: () => isShown,
  30938. showSummary: () => $n,
  30939. whatMode: () => whatMode
  30940. });
  30941. var $ = {};
  30942. __webpack_require__.r($),
  30943. __webpack_require__.d($, { taggedOperations: () => taggedOperations });
  30944. var V = {};
  30945. __webpack_require__.r(V),
  30946. __webpack_require__.d(V, {
  30947. requestSnippetGenerator_curl_bash: () => requestSnippetGenerator_curl_bash,
  30948. requestSnippetGenerator_curl_cmd: () => requestSnippetGenerator_curl_cmd,
  30949. requestSnippetGenerator_curl_powershell: () => requestSnippetGenerator_curl_powershell
  30950. });
  30951. var U = {};
  30952. __webpack_require__.r(U),
  30953. __webpack_require__.d(U, {
  30954. getActiveLanguage: () => zn,
  30955. getDefaultExpanded: () => Wn,
  30956. getGenerators: () => Un,
  30957. getSnippetGenerators: () => getSnippetGenerators
  30958. });
  30959. var z = {};
  30960. __webpack_require__.r(z),
  30961. __webpack_require__.d(z, {
  30962. JsonSchemaArrayItemFile: () => JsonSchemaArrayItemFile,
  30963. JsonSchemaArrayItemText: () => JsonSchemaArrayItemText,
  30964. JsonSchemaForm: () => JsonSchemaForm,
  30965. JsonSchema_array: () => JsonSchema_array,
  30966. JsonSchema_boolean: () => JsonSchema_boolean,
  30967. JsonSchema_object: () => JsonSchema_object,
  30968. JsonSchema_string: () => JsonSchema_string
  30969. });
  30970. var Y = {};
  30971. __webpack_require__.r(Y),
  30972. __webpack_require__.d(Y, {
  30973. allowTryItOutFor: () => allowTryItOutFor,
  30974. basePath: () => Ks,
  30975. canExecuteScheme: () => canExecuteScheme,
  30976. consumes: () => $s,
  30977. consumesOptionsFor: () => consumesOptionsFor,
  30978. contentTypeValues: () => contentTypeValues,
  30979. currentProducesFor: () => currentProducesFor,
  30980. definitions: () => Ws,
  30981. externalDocs: () => Rs,
  30982. findDefinition: () => findDefinition,
  30983. getOAS3RequiredRequestBodyContentType: () => getOAS3RequiredRequestBodyContentType,
  30984. getParameter: () => getParameter,
  30985. hasHost: () => to,
  30986. host: () => Hs,
  30987. info: () => Ns,
  30988. isMediaTypeSchemaPropertiesEqual: () => isMediaTypeSchemaPropertiesEqual,
  30989. isOAS3: () => Ts,
  30990. lastError: () => ks,
  30991. mutatedRequestFor: () => mutatedRequestFor,
  30992. mutatedRequests: () => eo,
  30993. operationScheme: () => operationScheme,
  30994. operationWithMeta: () => operationWithMeta,
  30995. operations: () => qs,
  30996. operationsWithRootInherited: () => Gs,
  30997. operationsWithTags: () => Xs,
  30998. parameterInclusionSettingFor: () => parameterInclusionSettingFor,
  30999. parameterValues: () => parameterValues,
  31000. parameterWithMeta: () => parameterWithMeta,
  31001. parameterWithMetaByIdentity: () => parameterWithMetaByIdentity,
  31002. parametersIncludeIn: () => parametersIncludeIn,
  31003. parametersIncludeType: () => parametersIncludeType,
  31004. paths: () => Bs,
  31005. produces: () => Vs,
  31006. producesOptionsFor: () => producesOptionsFor,
  31007. requestFor: () => requestFor,
  31008. requests: () => Qs,
  31009. responseFor: () => responseFor,
  31010. responses: () => Zs,
  31011. schemes: () => Js,
  31012. security: () => Us,
  31013. securityDefinitions: () => zs,
  31014. semver: () => Ls,
  31015. spec: () => spec,
  31016. specJS: () => Is,
  31017. specJson: () => js,
  31018. specJsonWithResolvedSubtrees: () => Ms,
  31019. specResolved: () => Ps,
  31020. specResolvedSubtree: () => specResolvedSubtree,
  31021. specSource: () => As,
  31022. specStr: () => Os,
  31023. tagDetails: () => tagDetails,
  31024. taggedOperations: () => selectors_taggedOperations,
  31025. tags: () => Ys,
  31026. url: () => Cs,
  31027. validOperationMethods: () => Fs,
  31028. validateBeforeExecute: () => validateBeforeExecute,
  31029. validationErrors: () => validationErrors,
  31030. version: () => Ds
  31031. });
  31032. var Z = {};
  31033. __webpack_require__.r(Z),
  31034. __webpack_require__.d(Z, {
  31035. CLEAR_REQUEST: () => wo,
  31036. CLEAR_RESPONSE: () => Eo,
  31037. CLEAR_VALIDATE_PARAMS: () => So,
  31038. LOG_REQUEST: () => _o,
  31039. SET_MUTATED_REQUEST: () => bo,
  31040. SET_REQUEST: () => vo,
  31041. SET_RESPONSE: () => yo,
  31042. SET_SCHEME: () => Oo,
  31043. UPDATE_EMPTY_PARAM_INCLUSION: () => mo,
  31044. UPDATE_JSON: () => ho,
  31045. UPDATE_OPERATION_META_VALUE: () => xo,
  31046. UPDATE_PARAM: () => fo,
  31047. UPDATE_RESOLVED: () => ko,
  31048. UPDATE_RESOLVED_SUBTREE: () => Co,
  31049. UPDATE_SPEC: () => uo,
  31050. UPDATE_URL: () => po,
  31051. VALIDATE_PARAMS: () => go,
  31052. changeConsumesValue: () => changeConsumesValue,
  31053. changeParam: () => changeParam,
  31054. changeParamByIdentity: () => changeParamByIdentity,
  31055. changeProducesValue: () => changeProducesValue,
  31056. clearRequest: () => clearRequest,
  31057. clearResponse: () => clearResponse,
  31058. clearValidateParams: () => clearValidateParams,
  31059. execute: () => actions_execute,
  31060. executeRequest: () => executeRequest,
  31061. invalidateResolvedSubtreeCache: () => invalidateResolvedSubtreeCache,
  31062. logRequest: () => logRequest,
  31063. parseToJson: () => parseToJson,
  31064. requestResolvedSubtree: () => requestResolvedSubtree,
  31065. resolveSpec: () => resolveSpec,
  31066. setMutatedRequest: () => setMutatedRequest,
  31067. setRequest: () => setRequest,
  31068. setResponse: () => setResponse,
  31069. setScheme: () => setScheme,
  31070. updateEmptyParamInclusion: () => updateEmptyParamInclusion,
  31071. updateJsonSpec: () => updateJsonSpec,
  31072. updateResolved: () => updateResolved,
  31073. updateResolvedSubtree: () => updateResolvedSubtree,
  31074. updateSpec: () => updateSpec,
  31075. updateUrl: () => updateUrl,
  31076. validateParams: () => validateParams
  31077. });
  31078. var ee = {};
  31079. __webpack_require__.r(ee),
  31080. __webpack_require__.d(ee, {
  31081. executeRequest: () => wrap_actions_executeRequest,
  31082. updateJsonSpec: () => wrap_actions_updateJsonSpec,
  31083. updateSpec: () => wrap_actions_updateSpec,
  31084. validateParams: () => wrap_actions_validateParams
  31085. });
  31086. var ie = {};
  31087. __webpack_require__.r(ie),
  31088. __webpack_require__.d(ie, {
  31089. JsonPatchError: () => Ro,
  31090. _areEquals: () => _areEquals,
  31091. applyOperation: () => applyOperation,
  31092. applyPatch: () => applyPatch,
  31093. applyReducer: () => applyReducer,
  31094. deepClone: () => Do,
  31095. getValueByPointer: () => getValueByPointer,
  31096. validate: () => validate,
  31097. validator: () => validator
  31098. });
  31099. var ae = {};
  31100. __webpack_require__.r(ae),
  31101. __webpack_require__.d(ae, {
  31102. compare: () => compare,
  31103. generate: () => generate,
  31104. observe: () => observe,
  31105. unobserve: () => unobserve
  31106. });
  31107. var le = {};
  31108. __webpack_require__.r(le),
  31109. __webpack_require__.d(le, {
  31110. hasElementSourceMap: () => hasElementSourceMap,
  31111. includesClasses: () => includesClasses,
  31112. includesSymbols: () => includesSymbols,
  31113. isAnnotationElement: () => zu,
  31114. isArrayElement: () => qu,
  31115. isBooleanElement: () => Bu,
  31116. isCommentElement: () => Wu,
  31117. isElement: () => Nu,
  31118. isLinkElement: () => Vu,
  31119. isMemberElement: () => $u,
  31120. isNullElement: () => Lu,
  31121. isNumberElement: () => Du,
  31122. isObjectElement: () => Fu,
  31123. isParseResultElement: () => Ku,
  31124. isPrimitiveElement: () => isPrimitiveElement,
  31125. isRefElement: () => Uu,
  31126. isSourceMapElement: () => Hu,
  31127. isStringElement: () => Ru
  31128. });
  31129. var ce = {};
  31130. __webpack_require__.r(ce),
  31131. __webpack_require__.d(ce, {
  31132. isJSONReferenceElement: () => Nf,
  31133. isJSONSchemaElement: () => Tf,
  31134. isLinkDescriptionElement: () => Df,
  31135. isMediaElement: () => Rf
  31136. });
  31137. var pe = {};
  31138. __webpack_require__.r(pe),
  31139. __webpack_require__.d(pe, {
  31140. isBooleanJsonSchemaElement: () => isBooleanJsonSchemaElement,
  31141. isCallbackElement: () => Im,
  31142. isComponentsElement: () => Pm,
  31143. isContactElement: () => Mm,
  31144. isExampleElement: () => Tm,
  31145. isExternalDocumentationElement: () => Nm,
  31146. isHeaderElement: () => Rm,
  31147. isInfoElement: () => Dm,
  31148. isLicenseElement: () => Lm,
  31149. isLinkElement: () => Bm,
  31150. isMediaTypeElement: () => eg,
  31151. isOpenApi3_0Element: () => qm,
  31152. isOpenapiElement: () => Fm,
  31153. isOperationElement: () => $m,
  31154. isParameterElement: () => Vm,
  31155. isPathItemElement: () => Um,
  31156. isPathsElement: () => zm,
  31157. isReferenceElement: () => Wm,
  31158. isRequestBodyElement: () => Km,
  31159. isResponseElement: () => Hm,
  31160. isResponsesElement: () => Jm,
  31161. isSchemaElement: () => Gm,
  31162. isSecurityRequirementElement: () => Ym,
  31163. isSecuritySchemeElement: () => Xm,
  31164. isServerElement: () => Zm,
  31165. isServerVariableElement: () => Qm,
  31166. isServersElement: () => rg
  31167. });
  31168. var de = {};
  31169. __webpack_require__.r(de),
  31170. __webpack_require__.d(de, {
  31171. isBooleanJsonSchemaElement: () => predicates_isBooleanJsonSchemaElement,
  31172. isCallbackElement: () => T_,
  31173. isComponentsElement: () => N_,
  31174. isContactElement: () => R_,
  31175. isExampleElement: () => D_,
  31176. isExternalDocumentationElement: () => L_,
  31177. isHeaderElement: () => B_,
  31178. isInfoElement: () => F_,
  31179. isJsonSchemaDialectElement: () => q_,
  31180. isLicenseElement: () => $_,
  31181. isLinkElement: () => V_,
  31182. isMediaTypeElement: () => sE,
  31183. isOpenApi3_1Element: () => z_,
  31184. isOpenapiElement: () => U_,
  31185. isOperationElement: () => W_,
  31186. isParameterElement: () => K_,
  31187. isPathItemElement: () => H_,
  31188. isPathItemElementExternal: () => isPathItemElementExternal,
  31189. isPathsElement: () => J_,
  31190. isReferenceElement: () => G_,
  31191. isReferenceElementExternal: () => isReferenceElementExternal,
  31192. isRequestBodyElement: () => Y_,
  31193. isResponseElement: () => X_,
  31194. isResponsesElement: () => Z_,
  31195. isSchemaElement: () => Q_,
  31196. isSecurityRequirementElement: () => eE,
  31197. isSecuritySchemeElement: () => tE,
  31198. isServerElement: () => rE,
  31199. isServerVariableElement: () => nE
  31200. });
  31201. var fe = {};
  31202. __webpack_require__.r(fe),
  31203. __webpack_require__.d(fe, {
  31204. cookie: () => parameter_builders_cookie,
  31205. header: () => parameter_builders_header,
  31206. path: () => parameter_builders_path,
  31207. query: () => parameter_builders_query
  31208. });
  31209. var ye = {};
  31210. __webpack_require__.r(ye),
  31211. __webpack_require__.d(ye, {
  31212. Button: () => Button,
  31213. Col: () => Col,
  31214. Collapse: () => Collapse,
  31215. Container: () => Container,
  31216. Input: () => Input,
  31217. Link: () => layout_utils_Link,
  31218. Row: () => Row,
  31219. Select: () => Select,
  31220. TextArea: () => TextArea
  31221. });
  31222. var be = {};
  31223. __webpack_require__.r(be),
  31224. __webpack_require__.d(be, {
  31225. basePath: () => KO,
  31226. consumes: () => HO,
  31227. definitions: () => VO,
  31228. findDefinition: () => $O,
  31229. hasHost: () => UO,
  31230. host: () => WO,
  31231. produces: () => JO,
  31232. schemes: () => GO,
  31233. securityDefinitions: () => zO,
  31234. validOperationMethods: () => wrap_selectors_validOperationMethods
  31235. });
  31236. var _e = {};
  31237. __webpack_require__.r(_e), __webpack_require__.d(_e, { definitionsToAuthorize: () => YO });
  31238. var we = {};
  31239. __webpack_require__.r(we),
  31240. __webpack_require__.d(we, {
  31241. callbacksOperations: () => QO,
  31242. findSchema: () => findSchema,
  31243. isOAS3: () => selectors_isOAS3,
  31244. isOAS30: () => selectors_isOAS30,
  31245. isSwagger2: () => selectors_isSwagger2,
  31246. servers: () => ZO
  31247. });
  31248. var Se = {};
  31249. __webpack_require__.r(Se),
  31250. __webpack_require__.d(Se, {
  31251. CLEAR_REQUEST_BODY_VALIDATE_ERROR: () => bA,
  31252. CLEAR_REQUEST_BODY_VALUE: () => _A,
  31253. SET_REQUEST_BODY_VALIDATE_ERROR: () => vA,
  31254. UPDATE_ACTIVE_EXAMPLES_MEMBER: () => fA,
  31255. UPDATE_REQUEST_BODY_INCLUSION: () => dA,
  31256. UPDATE_REQUEST_BODY_VALUE: () => pA,
  31257. UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG: () => hA,
  31258. UPDATE_REQUEST_CONTENT_TYPE: () => mA,
  31259. UPDATE_RESPONSE_CONTENT_TYPE: () => gA,
  31260. UPDATE_SELECTED_SERVER: () => uA,
  31261. UPDATE_SERVER_VARIABLE_VALUE: () => yA,
  31262. clearRequestBodyValidateError: () => clearRequestBodyValidateError,
  31263. clearRequestBodyValue: () => clearRequestBodyValue,
  31264. initRequestBodyValidateError: () => initRequestBodyValidateError,
  31265. setActiveExamplesMember: () => setActiveExamplesMember,
  31266. setRequestBodyInclusion: () => setRequestBodyInclusion,
  31267. setRequestBodyValidateError: () => setRequestBodyValidateError,
  31268. setRequestBodyValue: () => setRequestBodyValue,
  31269. setRequestContentType: () => setRequestContentType,
  31270. setResponseContentType: () => setResponseContentType,
  31271. setRetainRequestBodyValueFlag: () => setRetainRequestBodyValueFlag,
  31272. setSelectedServer: () => setSelectedServer,
  31273. setServerVariableValue: () => setServerVariableValue
  31274. });
  31275. var xe = {};
  31276. __webpack_require__.r(xe),
  31277. __webpack_require__.d(xe, {
  31278. activeExamplesMember: () => jA,
  31279. hasUserEditedBody: () => CA,
  31280. requestBodyErrors: () => AA,
  31281. requestBodyInclusionSetting: () => OA,
  31282. requestBodyValue: () => xA,
  31283. requestContentType: () => IA,
  31284. responseContentType: () => PA,
  31285. selectDefaultRequestBodyValue: () => selectDefaultRequestBodyValue,
  31286. selectedServer: () => SA,
  31287. serverEffectiveValue: () => NA,
  31288. serverVariableValue: () => MA,
  31289. serverVariables: () => TA,
  31290. shouldRetainRequestBodyValue: () => kA,
  31291. validOperationMethods: () => DA,
  31292. validateBeforeExecute: () => RA,
  31293. validateShallowRequired: () => validateShallowRequired
  31294. });
  31295. var Pe = __webpack_require__(96540);
  31296. function formatProdErrorMessage(s) {
  31297. return `Minified Redux error #${s}; visit https://redux.js.org/Errors?code=${s} for the full message or use the non-minified dev environment for full errors. `;
  31298. }
  31299. var Te = (() => ('function' == typeof Symbol && Symbol.observable) || '@@observable')(),
  31300. randomString = () => Math.random().toString(36).substring(7).split('').join('.'),
  31301. Re = {
  31302. INIT: `@@redux/INIT${randomString()}`,
  31303. REPLACE: `@@redux/REPLACE${randomString()}`,
  31304. PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`
  31305. };
  31306. function isPlainObject(s) {
  31307. if ('object' != typeof s || null === s) return !1;
  31308. let o = s;
  31309. for (; null !== Object.getPrototypeOf(o); ) o = Object.getPrototypeOf(o);
  31310. return Object.getPrototypeOf(s) === o || null === Object.getPrototypeOf(s);
  31311. }
  31312. function createStore(s, o, i) {
  31313. if ('function' != typeof s) throw new Error(formatProdErrorMessage(2));
  31314. if (
  31315. ('function' == typeof o && 'function' == typeof i) ||
  31316. ('function' == typeof i && 'function' == typeof arguments[3])
  31317. )
  31318. throw new Error(formatProdErrorMessage(0));
  31319. if (('function' == typeof o && void 0 === i && ((i = o), (o = void 0)), void 0 !== i)) {
  31320. if ('function' != typeof i) throw new Error(formatProdErrorMessage(1));
  31321. return i(createStore)(s, o);
  31322. }
  31323. let u = s,
  31324. _ = o,
  31325. w = new Map(),
  31326. x = w,
  31327. C = 0,
  31328. j = !1;
  31329. function ensureCanMutateNextListeners() {
  31330. x === w &&
  31331. ((x = new Map()),
  31332. w.forEach((s, o) => {
  31333. x.set(o, s);
  31334. }));
  31335. }
  31336. function getState() {
  31337. if (j) throw new Error(formatProdErrorMessage(3));
  31338. return _;
  31339. }
  31340. function subscribe(s) {
  31341. if ('function' != typeof s) throw new Error(formatProdErrorMessage(4));
  31342. if (j) throw new Error(formatProdErrorMessage(5));
  31343. let o = !0;
  31344. ensureCanMutateNextListeners();
  31345. const i = C++;
  31346. return (
  31347. x.set(i, s),
  31348. function unsubscribe() {
  31349. if (o) {
  31350. if (j) throw new Error(formatProdErrorMessage(6));
  31351. (o = !1), ensureCanMutateNextListeners(), x.delete(i), (w = null);
  31352. }
  31353. }
  31354. );
  31355. }
  31356. function dispatch(s) {
  31357. if (!isPlainObject(s)) throw new Error(formatProdErrorMessage(7));
  31358. if (void 0 === s.type) throw new Error(formatProdErrorMessage(8));
  31359. if ('string' != typeof s.type) throw new Error(formatProdErrorMessage(17));
  31360. if (j) throw new Error(formatProdErrorMessage(9));
  31361. try {
  31362. (j = !0), (_ = u(_, s));
  31363. } finally {
  31364. j = !1;
  31365. }
  31366. return (
  31367. (w = x).forEach((s) => {
  31368. s();
  31369. }),
  31370. s
  31371. );
  31372. }
  31373. dispatch({ type: Re.INIT });
  31374. return {
  31375. dispatch,
  31376. subscribe,
  31377. getState,
  31378. replaceReducer: function replaceReducer(s) {
  31379. if ('function' != typeof s) throw new Error(formatProdErrorMessage(10));
  31380. (u = s), dispatch({ type: Re.REPLACE });
  31381. },
  31382. [Te]: function observable() {
  31383. const s = subscribe;
  31384. return {
  31385. subscribe(o) {
  31386. if ('object' != typeof o || null === o)
  31387. throw new Error(formatProdErrorMessage(11));
  31388. function observeState() {
  31389. const s = o;
  31390. s.next && s.next(getState());
  31391. }
  31392. observeState();
  31393. return { unsubscribe: s(observeState) };
  31394. },
  31395. [Te]() {
  31396. return this;
  31397. }
  31398. };
  31399. }
  31400. };
  31401. }
  31402. function bindActionCreator(s, o) {
  31403. return function (...i) {
  31404. return o(s.apply(this, i));
  31405. };
  31406. }
  31407. function compose(...s) {
  31408. return 0 === s.length
  31409. ? (s) => s
  31410. : 1 === s.length
  31411. ? s[0]
  31412. : s.reduce(
  31413. (s, o) =>
  31414. (...i) =>
  31415. s(o(...i))
  31416. );
  31417. }
  31418. var qe = __webpack_require__(9404),
  31419. $e = __webpack_require__.n(qe),
  31420. ze = __webpack_require__(81919),
  31421. We = __webpack_require__.n(ze),
  31422. He = __webpack_require__(89593),
  31423. Ye = __webpack_require__(20334),
  31424. Xe = __webpack_require__(55364),
  31425. Qe = __webpack_require__.n(Xe);
  31426. const et = 'err_new_thrown_err',
  31427. tt = 'err_new_thrown_err_batch',
  31428. rt = 'err_new_spec_err',
  31429. nt = 'err_new_spec_err_batch',
  31430. st = 'err_new_auth_err',
  31431. ot = 'err_clear',
  31432. it = 'err_clear_by';
  31433. function newThrownErr(s) {
  31434. return { type: et, payload: (0, Ye.serializeError)(s) };
  31435. }
  31436. function newThrownErrBatch(s) {
  31437. return { type: tt, payload: s };
  31438. }
  31439. function newSpecErr(s) {
  31440. return { type: rt, payload: s };
  31441. }
  31442. function newSpecErrBatch(s) {
  31443. return { type: nt, payload: s };
  31444. }
  31445. function newAuthErr(s) {
  31446. return { type: st, payload: s };
  31447. }
  31448. function clear(s = {}) {
  31449. return { type: ot, payload: s };
  31450. }
  31451. function clearBy(s = () => !0) {
  31452. return { type: it, payload: s };
  31453. }
  31454. const at = (function makeWindow() {
  31455. var s = {
  31456. location: {},
  31457. history: {},
  31458. open: () => {},
  31459. close: () => {},
  31460. File: function () {},
  31461. FormData: function () {}
  31462. };
  31463. if ('undefined' == typeof window) return s;
  31464. try {
  31465. s = window;
  31466. for (var o of ['File', 'Blob', 'FormData']) o in window && (s[o] = window[o]);
  31467. } catch (s) {
  31468. console.error(s);
  31469. }
  31470. return s;
  31471. })();
  31472. var lt = __webpack_require__(16750),
  31473. ct = (__webpack_require__(84058), __webpack_require__(55808), __webpack_require__(50104)),
  31474. ut = __webpack_require__.n(ct),
  31475. pt = __webpack_require__(7309),
  31476. ht = __webpack_require__.n(pt),
  31477. dt = __webpack_require__(42426),
  31478. mt = __webpack_require__.n(dt),
  31479. gt = __webpack_require__(75288),
  31480. yt = __webpack_require__.n(gt),
  31481. vt = __webpack_require__(1882),
  31482. bt = __webpack_require__.n(vt),
  31483. _t = __webpack_require__(2205),
  31484. Et = __webpack_require__.n(_t),
  31485. wt = __webpack_require__(53209),
  31486. St = __webpack_require__.n(wt),
  31487. xt = __webpack_require__(62802),
  31488. kt = __webpack_require__.n(xt);
  31489. const Ct = $e().Set.of(
  31490. 'type',
  31491. 'format',
  31492. 'items',
  31493. 'default',
  31494. 'maximum',
  31495. 'exclusiveMaximum',
  31496. 'minimum',
  31497. 'exclusiveMinimum',
  31498. 'maxLength',
  31499. 'minLength',
  31500. 'pattern',
  31501. 'maxItems',
  31502. 'minItems',
  31503. 'uniqueItems',
  31504. 'enum',
  31505. 'multipleOf'
  31506. );
  31507. function getParameterSchema(s, { isOAS3: o } = {}) {
  31508. if (!$e().Map.isMap(s)) return { schema: $e().Map(), parameterContentMediaType: null };
  31509. if (!o)
  31510. return 'body' === s.get('in')
  31511. ? { schema: s.get('schema', $e().Map()), parameterContentMediaType: null }
  31512. : { schema: s.filter((s, o) => Ct.includes(o)), parameterContentMediaType: null };
  31513. if (s.get('content')) {
  31514. const o = s.get('content', $e().Map({})).keySeq().first();
  31515. return {
  31516. schema: s.getIn(['content', o, 'schema'], $e().Map()),
  31517. parameterContentMediaType: o
  31518. };
  31519. }
  31520. return {
  31521. schema: s.get('schema') ? s.get('schema', $e().Map()) : $e().Map(),
  31522. parameterContentMediaType: null
  31523. };
  31524. }
  31525. var Ot = __webpack_require__(48287).Buffer;
  31526. const At = 'default',
  31527. isImmutable = (s) => $e().Iterable.isIterable(s);
  31528. function objectify(s) {
  31529. return isObject(s) ? (isImmutable(s) ? s.toJS() : s) : {};
  31530. }
  31531. function fromJSOrdered(s) {
  31532. if (isImmutable(s)) return s;
  31533. if (s instanceof at.File) return s;
  31534. if (!isObject(s)) return s;
  31535. if (Array.isArray(s)) return $e().Seq(s).map(fromJSOrdered).toList();
  31536. if (bt()(s.entries)) {
  31537. const o = (function createObjWithHashedKeys(s) {
  31538. if (!bt()(s.entries)) return s;
  31539. const o = {},
  31540. i = '_**[]',
  31541. u = {};
  31542. for (let _ of s.entries())
  31543. if (o[_[0]] || (u[_[0]] && u[_[0]].containsMultiple)) {
  31544. if (!u[_[0]]) {
  31545. (u[_[0]] = { containsMultiple: !0, length: 1 }),
  31546. (o[`${_[0]}${i}${u[_[0]].length}`] = o[_[0]]),
  31547. delete o[_[0]];
  31548. }
  31549. (u[_[0]].length += 1), (o[`${_[0]}${i}${u[_[0]].length}`] = _[1]);
  31550. } else o[_[0]] = _[1];
  31551. return o;
  31552. })(s);
  31553. return $e().OrderedMap(o).map(fromJSOrdered);
  31554. }
  31555. return $e().OrderedMap(s).map(fromJSOrdered);
  31556. }
  31557. function normalizeArray(s) {
  31558. return Array.isArray(s) ? s : [s];
  31559. }
  31560. function isFn(s) {
  31561. return 'function' == typeof s;
  31562. }
  31563. function isObject(s) {
  31564. return !!s && 'object' == typeof s;
  31565. }
  31566. function isFunc(s) {
  31567. return 'function' == typeof s;
  31568. }
  31569. function isArray(s) {
  31570. return Array.isArray(s);
  31571. }
  31572. const jt = ut();
  31573. function objMap(s, o) {
  31574. return Object.keys(s).reduce((i, u) => ((i[u] = o(s[u], u)), i), {});
  31575. }
  31576. function objReduce(s, o) {
  31577. return Object.keys(s).reduce((i, u) => {
  31578. let _ = o(s[u], u);
  31579. return _ && 'object' == typeof _ && Object.assign(i, _), i;
  31580. }, {});
  31581. }
  31582. function systemThunkMiddleware(s) {
  31583. return ({ dispatch: o, getState: i }) =>
  31584. (o) =>
  31585. (i) =>
  31586. 'function' == typeof i ? i(s()) : o(i);
  31587. }
  31588. function validateValueBySchema(s, o, i, u, _) {
  31589. if (!o) return [];
  31590. let w = [],
  31591. x = o.get('nullable'),
  31592. C = o.get('required'),
  31593. j = o.get('maximum'),
  31594. L = o.get('minimum'),
  31595. B = o.get('type'),
  31596. $ = o.get('format'),
  31597. V = o.get('maxLength'),
  31598. U = o.get('minLength'),
  31599. z = o.get('uniqueItems'),
  31600. Y = o.get('maxItems'),
  31601. Z = o.get('minItems'),
  31602. ee = o.get('pattern');
  31603. const ie = i || !0 === C,
  31604. ae = null != s,
  31605. le = ie || (ae && 'array' === B) || !(!ie && !ae),
  31606. ce = x && null === s;
  31607. if (ie && !ae && !ce && !u && !B) return w.push('Required field is not provided'), w;
  31608. if (ce || !B || !le) return [];
  31609. let pe = 'string' === B && s,
  31610. de = 'array' === B && Array.isArray(s) && s.length,
  31611. fe = 'array' === B && $e().List.isList(s) && s.count();
  31612. const ye = [
  31613. pe,
  31614. de,
  31615. fe,
  31616. 'array' === B && 'string' == typeof s && s,
  31617. 'file' === B && s instanceof at.File,
  31618. 'boolean' === B && (s || !1 === s),
  31619. 'number' === B && (s || 0 === s),
  31620. 'integer' === B && (s || 0 === s),
  31621. 'object' === B && 'object' == typeof s && null !== s,
  31622. 'object' === B && 'string' == typeof s && s
  31623. ].some((s) => !!s);
  31624. if (ie && !ye && !u) return w.push('Required field is not provided'), w;
  31625. if ('object' === B && (null === _ || 'application/json' === _)) {
  31626. let i = s;
  31627. if ('string' == typeof s)
  31628. try {
  31629. i = JSON.parse(s);
  31630. } catch (s) {
  31631. return w.push('Parameter string value must be valid JSON'), w;
  31632. }
  31633. o &&
  31634. o.has('required') &&
  31635. isFunc(C.isList) &&
  31636. C.isList() &&
  31637. C.forEach((s) => {
  31638. void 0 === i[s] && w.push({ propKey: s, error: 'Required property not found' });
  31639. }),
  31640. o &&
  31641. o.has('properties') &&
  31642. o.get('properties').forEach((s, o) => {
  31643. const x = validateValueBySchema(i[o], s, !1, u, _);
  31644. w.push(...x.map((s) => ({ propKey: o, error: s })));
  31645. });
  31646. }
  31647. if (ee) {
  31648. let o = ((s, o) => {
  31649. if (!new RegExp(o).test(s)) return 'Value must follow pattern ' + o;
  31650. })(s, ee);
  31651. o && w.push(o);
  31652. }
  31653. if (Z && 'array' === B) {
  31654. let o = ((s, o) => {
  31655. if ((!s && o >= 1) || (s && s.length < o))
  31656. return `Array must contain at least ${o} item${1 === o ? '' : 's'}`;
  31657. })(s, Z);
  31658. o && w.push(o);
  31659. }
  31660. if (Y && 'array' === B) {
  31661. let o = ((s, o) => {
  31662. if (s && s.length > o)
  31663. return `Array must not contain more then ${o} item${1 === o ? '' : 's'}`;
  31664. })(s, Y);
  31665. o && w.push({ needRemove: !0, error: o });
  31666. }
  31667. if (z && 'array' === B) {
  31668. let o = ((s, o) => {
  31669. if (s && ('true' === o || !0 === o)) {
  31670. const o = (0, qe.fromJS)(s),
  31671. i = o.toSet();
  31672. if (s.length > i.size) {
  31673. let s = (0, qe.Set)();
  31674. if (
  31675. (o.forEach((i, u) => {
  31676. o.filter((s) => (isFunc(s.equals) ? s.equals(i) : s === i)).size > 1 &&
  31677. (s = s.add(u));
  31678. }),
  31679. 0 !== s.size)
  31680. )
  31681. return s.map((s) => ({ index: s, error: 'No duplicates allowed.' })).toArray();
  31682. }
  31683. }
  31684. })(s, z);
  31685. o && w.push(...o);
  31686. }
  31687. if (V || 0 === V) {
  31688. let o = ((s, o) => {
  31689. if (s.length > o)
  31690. return `Value must be no longer than ${o} character${1 !== o ? 's' : ''}`;
  31691. })(s, V);
  31692. o && w.push(o);
  31693. }
  31694. if (U) {
  31695. let o = ((s, o) => {
  31696. if (s.length < o) return `Value must be at least ${o} character${1 !== o ? 's' : ''}`;
  31697. })(s, U);
  31698. o && w.push(o);
  31699. }
  31700. if (j || 0 === j) {
  31701. let o = ((s, o) => {
  31702. if (s > o) return `Value must be less than ${o}`;
  31703. })(s, j);
  31704. o && w.push(o);
  31705. }
  31706. if (L || 0 === L) {
  31707. let o = ((s, o) => {
  31708. if (s < o) return `Value must be greater than ${o}`;
  31709. })(s, L);
  31710. o && w.push(o);
  31711. }
  31712. if ('string' === B) {
  31713. let o;
  31714. if (
  31715. ((o =
  31716. 'date-time' === $
  31717. ? ((s) => {
  31718. if (isNaN(Date.parse(s))) return 'Value must be a DateTime';
  31719. })(s)
  31720. : 'uuid' === $
  31721. ? ((s) => {
  31722. if (
  31723. ((s = s.toString().toLowerCase()),
  31724. !/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(
  31725. s
  31726. ))
  31727. )
  31728. return 'Value must be a Guid';
  31729. })(s)
  31730. : ((s) => {
  31731. if (s && 'string' != typeof s) return 'Value must be a string';
  31732. })(s)),
  31733. !o)
  31734. )
  31735. return w;
  31736. w.push(o);
  31737. } else if ('boolean' === B) {
  31738. let o = ((s) => {
  31739. if ('true' !== s && 'false' !== s && !0 !== s && !1 !== s)
  31740. return 'Value must be a boolean';
  31741. })(s);
  31742. if (!o) return w;
  31743. w.push(o);
  31744. } else if ('number' === B) {
  31745. let o = ((s) => {
  31746. if (!/^-?\d+(\.?\d+)?$/.test(s)) return 'Value must be a number';
  31747. })(s);
  31748. if (!o) return w;
  31749. w.push(o);
  31750. } else if ('integer' === B) {
  31751. let o = ((s) => {
  31752. if (!/^-?\d+$/.test(s)) return 'Value must be an integer';
  31753. })(s);
  31754. if (!o) return w;
  31755. w.push(o);
  31756. } else if ('array' === B) {
  31757. if (!de && !fe) return w;
  31758. s &&
  31759. s.forEach((s, i) => {
  31760. const x = validateValueBySchema(s, o.get('items'), !1, u, _);
  31761. w.push(...x.map((s) => ({ index: i, error: s })));
  31762. });
  31763. } else if ('file' === B) {
  31764. let o = ((s) => {
  31765. if (s && !(s instanceof at.File)) return 'Value must be a file';
  31766. })(s);
  31767. if (!o) return w;
  31768. w.push(o);
  31769. }
  31770. return w;
  31771. }
  31772. const utils_btoa = (s) => {
  31773. let o;
  31774. return (o = s instanceof Ot ? s : Ot.from(s.toString(), 'utf-8')), o.toString('base64');
  31775. },
  31776. It = {
  31777. operationsSorter: {
  31778. alpha: (s, o) => s.get('path').localeCompare(o.get('path')),
  31779. method: (s, o) => s.get('method').localeCompare(o.get('method'))
  31780. },
  31781. tagsSorter: { alpha: (s, o) => s.localeCompare(o) }
  31782. },
  31783. buildFormData = (s) => {
  31784. let o = [];
  31785. for (let i in s) {
  31786. let u = s[i];
  31787. void 0 !== u &&
  31788. '' !== u &&
  31789. o.push([i, '=', encodeURIComponent(u).replace(/%20/g, '+')].join(''));
  31790. }
  31791. return o.join('&');
  31792. },
  31793. shallowEqualKeys = (s, o, i) => !!ht()(i, (i) => yt()(s[i], o[i]));
  31794. function sanitizeUrl(s) {
  31795. return 'string' != typeof s || '' === s ? '' : (0, lt.J)(s);
  31796. }
  31797. function requiresValidationURL(s) {
  31798. return !(
  31799. !s ||
  31800. s.indexOf('localhost') >= 0 ||
  31801. s.indexOf('127.0.0.1') >= 0 ||
  31802. 'none' === s
  31803. );
  31804. }
  31805. const createDeepLinkPath = (s) =>
  31806. 'string' == typeof s || s instanceof String ? s.trim().replace(/\s/g, '%20') : '',
  31807. escapeDeepLinkPath = (s) => Et()(createDeepLinkPath(s).replace(/%20/g, '_')),
  31808. getExtensions = (s) => s.filter((s, o) => /^x-/.test(o)),
  31809. getCommonExtensions = (s) =>
  31810. s.filter((s, o) => /^pattern|maxLength|minLength|maximum|minimum/.test(o));
  31811. function deeplyStripKey(s, o, i = () => !0) {
  31812. if ('object' != typeof s || Array.isArray(s) || null === s || !o) return s;
  31813. const u = Object.assign({}, s);
  31814. return (
  31815. Object.keys(u).forEach((s) => {
  31816. s === o && i(u[s], s) ? delete u[s] : (u[s] = deeplyStripKey(u[s], o, i));
  31817. }),
  31818. u
  31819. );
  31820. }
  31821. function stringify(s) {
  31822. if ('string' == typeof s) return s;
  31823. if ((s && s.toJS && (s = s.toJS()), 'object' == typeof s && null !== s))
  31824. try {
  31825. return JSON.stringify(s, null, 2);
  31826. } catch (o) {
  31827. return String(s);
  31828. }
  31829. return null == s ? '' : s.toString();
  31830. }
  31831. function paramToIdentifier(s, { returnAll: o = !1, allowHashes: i = !0 } = {}) {
  31832. if (!$e().Map.isMap(s))
  31833. throw new Error('paramToIdentifier: received a non-Im.Map parameter as input');
  31834. const u = s.get('name'),
  31835. _ = s.get('in');
  31836. let w = [];
  31837. return (
  31838. s && s.hashCode && _ && u && i && w.push(`${_}.${u}.hash-${s.hashCode()}`),
  31839. _ && u && w.push(`${_}.${u}`),
  31840. w.push(u),
  31841. o ? w : w[0] || ''
  31842. );
  31843. }
  31844. function paramToValue(s, o) {
  31845. return paramToIdentifier(s, { returnAll: !0 })
  31846. .map((s) => o[s])
  31847. .filter((s) => void 0 !== s)[0];
  31848. }
  31849. function b64toB64UrlEncoded(s) {
  31850. return s.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
  31851. }
  31852. const isEmptyValue = (s) => !s || !(!isImmutable(s) || !s.isEmpty()),
  31853. idFn = (s) => s;
  31854. function createStoreWithMiddleware(s, o, i) {
  31855. let u = [systemThunkMiddleware(i)];
  31856. return createStore(
  31857. s,
  31858. o,
  31859. (at.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose)(
  31860. (function applyMiddleware(...s) {
  31861. return (o) => (i, u) => {
  31862. const _ = o(i, u);
  31863. let dispatch = () => {
  31864. throw new Error(formatProdErrorMessage(15));
  31865. };
  31866. const w = { getState: _.getState, dispatch: (s, ...o) => dispatch(s, ...o) },
  31867. x = s.map((s) => s(w));
  31868. return (dispatch = compose(...x)(_.dispatch)), { ..._, dispatch };
  31869. };
  31870. })(...u)
  31871. )
  31872. );
  31873. }
  31874. class Store {
  31875. constructor(s = {}) {
  31876. We()(
  31877. this,
  31878. {
  31879. state: {},
  31880. plugins: [],
  31881. system: { configs: {}, fn: {}, components: {}, rootInjects: {}, statePlugins: {} },
  31882. boundSystem: {},
  31883. toolbox: {}
  31884. },
  31885. s
  31886. ),
  31887. (this.getSystem = this._getSystem.bind(this)),
  31888. (this.store = (function configureStore(s, o, i) {
  31889. return createStoreWithMiddleware(s, o, i);
  31890. })(idFn, (0, qe.fromJS)(this.state), this.getSystem)),
  31891. this.buildSystem(!1),
  31892. this.register(this.plugins);
  31893. }
  31894. getStore() {
  31895. return this.store;
  31896. }
  31897. register(s, o = !0) {
  31898. var i = combinePlugins(s, this.getSystem());
  31899. systemExtend(this.system, i), o && this.buildSystem();
  31900. callAfterLoad.call(this.system, s, this.getSystem()) && this.buildSystem();
  31901. }
  31902. buildSystem(s = !0) {
  31903. let o = this.getStore().dispatch,
  31904. i = this.getStore().getState;
  31905. (this.boundSystem = Object.assign(
  31906. {},
  31907. this.getRootInjects(),
  31908. this.getWrappedAndBoundActions(o),
  31909. this.getWrappedAndBoundSelectors(i, this.getSystem),
  31910. this.getStateThunks(i),
  31911. this.getFn(),
  31912. this.getConfigs()
  31913. )),
  31914. s && this.rebuildReducer();
  31915. }
  31916. _getSystem() {
  31917. return this.boundSystem;
  31918. }
  31919. getRootInjects() {
  31920. return Object.assign(
  31921. {
  31922. getSystem: this.getSystem,
  31923. getStore: this.getStore.bind(this),
  31924. getComponents: this.getComponents.bind(this),
  31925. getState: this.getStore().getState,
  31926. getConfigs: this._getConfigs.bind(this),
  31927. Im: $e(),
  31928. React: Pe
  31929. },
  31930. this.system.rootInjects || {}
  31931. );
  31932. }
  31933. _getConfigs() {
  31934. return this.system.configs;
  31935. }
  31936. getConfigs() {
  31937. return { configs: this.system.configs };
  31938. }
  31939. setConfigs(s) {
  31940. this.system.configs = s;
  31941. }
  31942. rebuildReducer() {
  31943. this.store.replaceReducer(
  31944. (function buildReducer(s) {
  31945. return (function allReducers(s) {
  31946. let o = Object.keys(s).reduce(
  31947. (o, i) => (
  31948. (o[i] = (function makeReducer(s) {
  31949. return (o = new qe.Map(), i) => {
  31950. if (!s) return o;
  31951. let u = s[i.type];
  31952. if (u) {
  31953. const s = wrapWithTryCatch(u)(o, i);
  31954. return null === s ? o : s;
  31955. }
  31956. return o;
  31957. };
  31958. })(s[i])),
  31959. o
  31960. ),
  31961. {}
  31962. );
  31963. if (!Object.keys(o).length) return idFn;
  31964. return (0, He.H)(o);
  31965. })(objMap(s, (s) => s.reducers));
  31966. })(this.system.statePlugins)
  31967. );
  31968. }
  31969. getType(s) {
  31970. let o = s[0].toUpperCase() + s.slice(1);
  31971. return objReduce(this.system.statePlugins, (i, u) => {
  31972. let _ = i[s];
  31973. if (_) return { [u + o]: _ };
  31974. });
  31975. }
  31976. getSelectors() {
  31977. return this.getType('selectors');
  31978. }
  31979. getActions() {
  31980. return objMap(this.getType('actions'), (s) =>
  31981. objReduce(s, (s, o) => {
  31982. if (isFn(s)) return { [o]: s };
  31983. })
  31984. );
  31985. }
  31986. getWrappedAndBoundActions(s) {
  31987. return objMap(this.getBoundActions(s), (s, o) => {
  31988. let i = this.system.statePlugins[o.slice(0, -7)].wrapActions;
  31989. return i
  31990. ? objMap(s, (s, o) => {
  31991. let u = i[o];
  31992. return u
  31993. ? (Array.isArray(u) || (u = [u]),
  31994. u.reduce((s, o) => {
  31995. let newAction = (...i) => o(s, this.getSystem())(...i);
  31996. if (!isFn(newAction))
  31997. throw new TypeError(
  31998. 'wrapActions needs to return a function that returns a new function (ie the wrapped action)'
  31999. );
  32000. return wrapWithTryCatch(newAction);
  32001. }, s || Function.prototype))
  32002. : s;
  32003. })
  32004. : s;
  32005. });
  32006. }
  32007. getWrappedAndBoundSelectors(s, o) {
  32008. return objMap(this.getBoundSelectors(s, o), (o, i) => {
  32009. let u = [i.slice(0, -9)],
  32010. _ = this.system.statePlugins[u].wrapSelectors;
  32011. return _
  32012. ? objMap(o, (o, i) => {
  32013. let w = _[i];
  32014. return w
  32015. ? (Array.isArray(w) || (w = [w]),
  32016. w.reduce((o, i) => {
  32017. let wrappedSelector = (..._) =>
  32018. i(o, this.getSystem())(s().getIn(u), ..._);
  32019. if (!isFn(wrappedSelector))
  32020. throw new TypeError(
  32021. 'wrapSelector needs to return a function that returns a new function (ie the wrapped action)'
  32022. );
  32023. return wrappedSelector;
  32024. }, o || Function.prototype))
  32025. : o;
  32026. })
  32027. : o;
  32028. });
  32029. }
  32030. getStates(s) {
  32031. return Object.keys(this.system.statePlugins).reduce(
  32032. (o, i) => ((o[i] = s.get(i)), o),
  32033. {}
  32034. );
  32035. }
  32036. getStateThunks(s) {
  32037. return Object.keys(this.system.statePlugins).reduce(
  32038. (o, i) => ((o[i] = () => s().get(i)), o),
  32039. {}
  32040. );
  32041. }
  32042. getFn() {
  32043. return { fn: this.system.fn };
  32044. }
  32045. getComponents(s) {
  32046. const o = this.system.components[s];
  32047. return Array.isArray(o)
  32048. ? o.reduce((s, o) => o(s, this.getSystem()))
  32049. : void 0 !== s
  32050. ? this.system.components[s]
  32051. : this.system.components;
  32052. }
  32053. getBoundSelectors(s, o) {
  32054. return objMap(this.getSelectors(), (i, u) => {
  32055. let _ = [u.slice(0, -9)];
  32056. return objMap(i, (i) => (...u) => {
  32057. let w = wrapWithTryCatch(i).apply(null, [s().getIn(_), ...u]);
  32058. return 'function' == typeof w && (w = wrapWithTryCatch(w)(o())), w;
  32059. });
  32060. });
  32061. }
  32062. getBoundActions(s) {
  32063. s = s || this.getStore().dispatch;
  32064. const o = this.getActions(),
  32065. process = (s) =>
  32066. 'function' != typeof s
  32067. ? objMap(s, (s) => process(s))
  32068. : (...o) => {
  32069. var i = null;
  32070. try {
  32071. i = s(...o);
  32072. } catch (s) {
  32073. i = { type: et, error: !0, payload: (0, Ye.serializeError)(s) };
  32074. } finally {
  32075. return i;
  32076. }
  32077. };
  32078. return objMap(o, (o) =>
  32079. (function bindActionCreators(s, o) {
  32080. if ('function' == typeof s) return bindActionCreator(s, o);
  32081. if ('object' != typeof s || null === s) throw new Error(formatProdErrorMessage(16));
  32082. const i = {};
  32083. for (const u in s) {
  32084. const _ = s[u];
  32085. 'function' == typeof _ && (i[u] = bindActionCreator(_, o));
  32086. }
  32087. return i;
  32088. })(process(o), s)
  32089. );
  32090. }
  32091. getMapStateToProps() {
  32092. return () => Object.assign({}, this.getSystem());
  32093. }
  32094. getMapDispatchToProps(s) {
  32095. return (o) => We()({}, this.getWrappedAndBoundActions(o), this.getFn(), s);
  32096. }
  32097. }
  32098. function combinePlugins(s, o) {
  32099. return isObject(s) && !isArray(s)
  32100. ? Qe()({}, s)
  32101. : isFunc(s)
  32102. ? combinePlugins(s(o), o)
  32103. : isArray(s)
  32104. ? s
  32105. .map((s) => combinePlugins(s, o))
  32106. .reduce(systemExtend, { components: o.getComponents() })
  32107. : {};
  32108. }
  32109. function callAfterLoad(s, o, { hasLoaded: i } = {}) {
  32110. let u = i;
  32111. return (
  32112. isObject(s) &&
  32113. !isArray(s) &&
  32114. 'function' == typeof s.afterLoad &&
  32115. ((u = !0), wrapWithTryCatch(s.afterLoad).call(this, o)),
  32116. isFunc(s)
  32117. ? callAfterLoad.call(this, s(o), o, { hasLoaded: u })
  32118. : isArray(s)
  32119. ? s.map((s) => callAfterLoad.call(this, s, o, { hasLoaded: u }))
  32120. : u
  32121. );
  32122. }
  32123. function systemExtend(s = {}, o = {}) {
  32124. if (!isObject(s)) return {};
  32125. if (!isObject(o)) return s;
  32126. o.wrapComponents &&
  32127. (objMap(o.wrapComponents, (i, u) => {
  32128. const _ = s.components && s.components[u];
  32129. _ && Array.isArray(_)
  32130. ? ((s.components[u] = _.concat([i])), delete o.wrapComponents[u])
  32131. : _ && ((s.components[u] = [_, i]), delete o.wrapComponents[u]);
  32132. }),
  32133. Object.keys(o.wrapComponents).length || delete o.wrapComponents);
  32134. const { statePlugins: i } = s;
  32135. if (isObject(i))
  32136. for (let s in i) {
  32137. const u = i[s];
  32138. if (!isObject(u)) continue;
  32139. const { wrapActions: _, wrapSelectors: w } = u;
  32140. if (isObject(_))
  32141. for (let i in _) {
  32142. let u = _[i];
  32143. Array.isArray(u) || ((u = [u]), (_[i] = u)),
  32144. o &&
  32145. o.statePlugins &&
  32146. o.statePlugins[s] &&
  32147. o.statePlugins[s].wrapActions &&
  32148. o.statePlugins[s].wrapActions[i] &&
  32149. (o.statePlugins[s].wrapActions[i] = _[i].concat(
  32150. o.statePlugins[s].wrapActions[i]
  32151. ));
  32152. }
  32153. if (isObject(w))
  32154. for (let i in w) {
  32155. let u = w[i];
  32156. Array.isArray(u) || ((u = [u]), (w[i] = u)),
  32157. o &&
  32158. o.statePlugins &&
  32159. o.statePlugins[s] &&
  32160. o.statePlugins[s].wrapSelectors &&
  32161. o.statePlugins[s].wrapSelectors[i] &&
  32162. (o.statePlugins[s].wrapSelectors[i] = w[i].concat(
  32163. o.statePlugins[s].wrapSelectors[i]
  32164. ));
  32165. }
  32166. }
  32167. return We()(s, o);
  32168. }
  32169. function wrapWithTryCatch(s, { logErrors: o = !0 } = {}) {
  32170. return 'function' != typeof s
  32171. ? s
  32172. : function (...i) {
  32173. try {
  32174. return s.call(this, ...i);
  32175. } catch (s) {
  32176. return o && console.error(s), null;
  32177. }
  32178. };
  32179. }
  32180. var Pt = __webpack_require__(61160),
  32181. Mt = __webpack_require__.n(Pt);
  32182. const Tt = 'show_popup',
  32183. Nt = 'authorize',
  32184. Rt = 'logout',
  32185. Dt = 'pre_authorize_oauth2',
  32186. Lt = 'authorize_oauth2',
  32187. Bt = 'validate',
  32188. Ft = 'configure_auth',
  32189. qt = 'restore_authorization';
  32190. function showDefinitions(s) {
  32191. return { type: Tt, payload: s };
  32192. }
  32193. function authorize(s) {
  32194. return { type: Nt, payload: s };
  32195. }
  32196. const authorizeWithPersistOption =
  32197. (s) =>
  32198. ({ authActions: o }) => {
  32199. o.authorize(s), o.persistAuthorizationIfNeeded();
  32200. };
  32201. function logout(s) {
  32202. return { type: Rt, payload: s };
  32203. }
  32204. const logoutWithPersistOption =
  32205. (s) =>
  32206. ({ authActions: o }) => {
  32207. o.logout(s), o.persistAuthorizationIfNeeded();
  32208. },
  32209. preAuthorizeImplicit =
  32210. (s) =>
  32211. ({ authActions: o, errActions: i }) => {
  32212. let { auth: u, token: _, isValid: w } = s,
  32213. { schema: x, name: C } = u,
  32214. j = x.get('flow');
  32215. delete at.swaggerUIRedirectOauth2,
  32216. 'accessCode' === j ||
  32217. w ||
  32218. i.newAuthErr({
  32219. authId: C,
  32220. source: 'auth',
  32221. level: 'warning',
  32222. message:
  32223. "Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"
  32224. }),
  32225. _.error
  32226. ? i.newAuthErr({
  32227. authId: C,
  32228. source: 'auth',
  32229. level: 'error',
  32230. message: JSON.stringify(_)
  32231. })
  32232. : o.authorizeOauth2WithPersistOption({ auth: u, token: _ });
  32233. };
  32234. function authorizeOauth2(s) {
  32235. return { type: Lt, payload: s };
  32236. }
  32237. const authorizeOauth2WithPersistOption =
  32238. (s) =>
  32239. ({ authActions: o }) => {
  32240. o.authorizeOauth2(s), o.persistAuthorizationIfNeeded();
  32241. },
  32242. authorizePassword =
  32243. (s) =>
  32244. ({ authActions: o }) => {
  32245. let {
  32246. schema: i,
  32247. name: u,
  32248. username: _,
  32249. password: w,
  32250. passwordType: x,
  32251. clientId: C,
  32252. clientSecret: j
  32253. } = s,
  32254. L = { grant_type: 'password', scope: s.scopes.join(' '), username: _, password: w },
  32255. B = {};
  32256. switch (x) {
  32257. case 'request-body':
  32258. !(function setClientIdAndSecret(s, o, i) {
  32259. o && Object.assign(s, { client_id: o });
  32260. i && Object.assign(s, { client_secret: i });
  32261. })(L, C, j);
  32262. break;
  32263. case 'basic':
  32264. B.Authorization = 'Basic ' + utils_btoa(C + ':' + j);
  32265. break;
  32266. default:
  32267. console.warn(
  32268. `Warning: invalid passwordType ${x} was passed, not including client id and secret`
  32269. );
  32270. }
  32271. return o.authorizeRequest({
  32272. body: buildFormData(L),
  32273. url: i.get('tokenUrl'),
  32274. name: u,
  32275. headers: B,
  32276. query: {},
  32277. auth: s
  32278. });
  32279. };
  32280. const authorizeApplication =
  32281. (s) =>
  32282. ({ authActions: o }) => {
  32283. let { schema: i, scopes: u, name: _, clientId: w, clientSecret: x } = s,
  32284. C = { Authorization: 'Basic ' + utils_btoa(w + ':' + x) },
  32285. j = { grant_type: 'client_credentials', scope: u.join(' ') };
  32286. return o.authorizeRequest({
  32287. body: buildFormData(j),
  32288. name: _,
  32289. url: i.get('tokenUrl'),
  32290. auth: s,
  32291. headers: C
  32292. });
  32293. },
  32294. authorizeAccessCodeWithFormParams =
  32295. ({ auth: s, redirectUrl: o }) =>
  32296. ({ authActions: i }) => {
  32297. let { schema: u, name: _, clientId: w, clientSecret: x, codeVerifier: C } = s,
  32298. j = {
  32299. grant_type: 'authorization_code',
  32300. code: s.code,
  32301. client_id: w,
  32302. client_secret: x,
  32303. redirect_uri: o,
  32304. code_verifier: C
  32305. };
  32306. return i.authorizeRequest({
  32307. body: buildFormData(j),
  32308. name: _,
  32309. url: u.get('tokenUrl'),
  32310. auth: s
  32311. });
  32312. },
  32313. authorizeAccessCodeWithBasicAuthentication =
  32314. ({ auth: s, redirectUrl: o }) =>
  32315. ({ authActions: i }) => {
  32316. let { schema: u, name: _, clientId: w, clientSecret: x, codeVerifier: C } = s,
  32317. j = { Authorization: 'Basic ' + utils_btoa(w + ':' + x) },
  32318. L = {
  32319. grant_type: 'authorization_code',
  32320. code: s.code,
  32321. client_id: w,
  32322. redirect_uri: o,
  32323. code_verifier: C
  32324. };
  32325. return i.authorizeRequest({
  32326. body: buildFormData(L),
  32327. name: _,
  32328. url: u.get('tokenUrl'),
  32329. auth: s,
  32330. headers: j
  32331. });
  32332. },
  32333. authorizeRequest =
  32334. (s) =>
  32335. ({
  32336. fn: o,
  32337. getConfigs: i,
  32338. authActions: u,
  32339. errActions: _,
  32340. oas3Selectors: w,
  32341. specSelectors: x,
  32342. authSelectors: C
  32343. }) => {
  32344. let j,
  32345. { body: L, query: B = {}, headers: $ = {}, name: V, url: U, auth: z } = s,
  32346. { additionalQueryStringParams: Y } = C.getConfigs() || {};
  32347. if (x.isOAS3()) {
  32348. let s = w.serverEffectiveValue(w.selectedServer());
  32349. j = Mt()(U, s, !0);
  32350. } else j = Mt()(U, x.url(), !0);
  32351. 'object' == typeof Y && (j.query = Object.assign({}, j.query, Y));
  32352. const Z = j.toString();
  32353. let ee = Object.assign(
  32354. {
  32355. Accept: 'application/json, text/plain, */*',
  32356. 'Content-Type': 'application/x-www-form-urlencoded',
  32357. 'X-Requested-With': 'XMLHttpRequest'
  32358. },
  32359. $
  32360. );
  32361. o.fetch({
  32362. url: Z,
  32363. method: 'post',
  32364. headers: ee,
  32365. query: B,
  32366. body: L,
  32367. requestInterceptor: i().requestInterceptor,
  32368. responseInterceptor: i().responseInterceptor
  32369. })
  32370. .then(function (s) {
  32371. let o = JSON.parse(s.data),
  32372. i = o && (o.error || ''),
  32373. w = o && (o.parseError || '');
  32374. s.ok
  32375. ? i || w
  32376. ? _.newAuthErr({
  32377. authId: V,
  32378. level: 'error',
  32379. source: 'auth',
  32380. message: JSON.stringify(o)
  32381. })
  32382. : u.authorizeOauth2WithPersistOption({ auth: z, token: o })
  32383. : _.newAuthErr({
  32384. authId: V,
  32385. level: 'error',
  32386. source: 'auth',
  32387. message: s.statusText
  32388. });
  32389. })
  32390. .catch((s) => {
  32391. let o = new Error(s).message;
  32392. if (s.response && s.response.data) {
  32393. const i = s.response.data;
  32394. try {
  32395. const s = 'string' == typeof i ? JSON.parse(i) : i;
  32396. s.error && (o += `, error: ${s.error}`),
  32397. s.error_description && (o += `, description: ${s.error_description}`);
  32398. } catch (s) {}
  32399. }
  32400. _.newAuthErr({ authId: V, level: 'error', source: 'auth', message: o });
  32401. });
  32402. };
  32403. function configureAuth(s) {
  32404. return { type: Ft, payload: s };
  32405. }
  32406. function restoreAuthorization(s) {
  32407. return { type: qt, payload: s };
  32408. }
  32409. const persistAuthorizationIfNeeded =
  32410. () =>
  32411. ({ authSelectors: s, getConfigs: o }) => {
  32412. if (!o().persistAuthorization) return;
  32413. const i = s.authorized().toJS();
  32414. localStorage.setItem('authorized', JSON.stringify(i));
  32415. },
  32416. authPopup = (s, o) => () => {
  32417. (at.swaggerUIRedirectOauth2 = o), at.open(s);
  32418. },
  32419. $t = {
  32420. [Tt]: (s, { payload: o }) => s.set('showDefinitions', o),
  32421. [Nt]: (s, { payload: o }) => {
  32422. let i = (0, qe.fromJS)(o),
  32423. u = s.get('authorized') || (0, qe.Map)();
  32424. return (
  32425. i.entrySeq().forEach(([o, i]) => {
  32426. if (!isFunc(i.getIn)) return s.set('authorized', u);
  32427. let _ = i.getIn(['schema', 'type']);
  32428. if ('apiKey' === _ || 'http' === _) u = u.set(o, i);
  32429. else if ('basic' === _) {
  32430. let s = i.getIn(['value', 'username']),
  32431. _ = i.getIn(['value', 'password']);
  32432. (u = u.setIn([o, 'value'], {
  32433. username: s,
  32434. header: 'Basic ' + utils_btoa(s + ':' + _)
  32435. })),
  32436. (u = u.setIn([o, 'schema'], i.get('schema')));
  32437. }
  32438. }),
  32439. s.set('authorized', u)
  32440. );
  32441. },
  32442. [Lt]: (s, { payload: o }) => {
  32443. let i,
  32444. { auth: u, token: _ } = o;
  32445. (u.token = Object.assign({}, _)), (i = (0, qe.fromJS)(u));
  32446. let w = s.get('authorized') || (0, qe.Map)();
  32447. return (w = w.set(i.get('name'), i)), s.set('authorized', w);
  32448. },
  32449. [Rt]: (s, { payload: o }) => {
  32450. let i = s.get('authorized').withMutations((s) => {
  32451. o.forEach((o) => {
  32452. s.delete(o);
  32453. });
  32454. });
  32455. return s.set('authorized', i);
  32456. },
  32457. [Ft]: (s, { payload: o }) => s.set('configs', o),
  32458. [qt]: (s, { payload: o }) => s.set('authorized', (0, qe.fromJS)(o.authorized))
  32459. };
  32460. function assertIsFunction(s, o = 'expected a function, instead received ' + typeof s) {
  32461. if ('function' != typeof s) throw new TypeError(o);
  32462. }
  32463. var ensureIsArray = (s) => (Array.isArray(s) ? s : [s]);
  32464. function getDependencies(s) {
  32465. const o = Array.isArray(s[0]) ? s[0] : s;
  32466. return (
  32467. (function assertIsArrayOfFunctions(
  32468. s,
  32469. o = 'expected all items to be functions, instead received the following types: '
  32470. ) {
  32471. if (!s.every((s) => 'function' == typeof s)) {
  32472. const i = s
  32473. .map((s) =>
  32474. 'function' == typeof s ? `function ${s.name || 'unnamed'}()` : typeof s
  32475. )
  32476. .join(', ');
  32477. throw new TypeError(`${o}[${i}]`);
  32478. }
  32479. })(
  32480. o,
  32481. 'createSelector expects all input-selectors to be functions, but received the following types: '
  32482. ),
  32483. o
  32484. );
  32485. }
  32486. Symbol(), Object.getPrototypeOf({});
  32487. var Vt =
  32488. 'undefined' != typeof WeakRef
  32489. ? WeakRef
  32490. : class {
  32491. constructor(s) {
  32492. this.value = s;
  32493. }
  32494. deref() {
  32495. return this.value;
  32496. }
  32497. };
  32498. function weakMapMemoize(s, o = {}) {
  32499. let i = { s: 0, v: void 0, o: null, p: null };
  32500. const { resultEqualityCheck: u } = o;
  32501. let _,
  32502. w = 0;
  32503. function memoized() {
  32504. let o = i;
  32505. const { length: x } = arguments;
  32506. for (let s = 0, i = x; s < i; s++) {
  32507. const i = arguments[s];
  32508. if ('function' == typeof i || ('object' == typeof i && null !== i)) {
  32509. let s = o.o;
  32510. null === s && (o.o = s = new WeakMap());
  32511. const u = s.get(i);
  32512. void 0 === u ? ((o = { s: 0, v: void 0, o: null, p: null }), s.set(i, o)) : (o = u);
  32513. } else {
  32514. let s = o.p;
  32515. null === s && (o.p = s = new Map());
  32516. const u = s.get(i);
  32517. void 0 === u ? ((o = { s: 0, v: void 0, o: null, p: null }), s.set(i, o)) : (o = u);
  32518. }
  32519. }
  32520. const C = o;
  32521. let j;
  32522. if (1 === o.s) j = o.v;
  32523. else if (((j = s.apply(null, arguments)), w++, u)) {
  32524. const s = _?.deref?.() ?? _;
  32525. null != s && u(s, j) && ((j = s), 0 !== w && w--);
  32526. _ = ('object' == typeof j && null !== j) || 'function' == typeof j ? new Vt(j) : j;
  32527. }
  32528. return (C.s = 1), (C.v = j), j;
  32529. }
  32530. return (
  32531. (memoized.clearCache = () => {
  32532. (i = { s: 0, v: void 0, o: null, p: null }), memoized.resetResultsCount();
  32533. }),
  32534. (memoized.resultsCount = () => w),
  32535. (memoized.resetResultsCount = () => {
  32536. w = 0;
  32537. }),
  32538. memoized
  32539. );
  32540. }
  32541. function createSelectorCreator(s, ...o) {
  32542. const i = 'function' == typeof s ? { memoize: s, memoizeOptions: o } : s,
  32543. createSelector2 = (...s) => {
  32544. let o,
  32545. u = 0,
  32546. _ = 0,
  32547. w = {},
  32548. x = s.pop();
  32549. 'object' == typeof x && ((w = x), (x = s.pop())),
  32550. assertIsFunction(
  32551. x,
  32552. `createSelector expects an output function after the inputs, but received: [${typeof x}]`
  32553. );
  32554. const C = { ...i, ...w },
  32555. {
  32556. memoize: j,
  32557. memoizeOptions: L = [],
  32558. argsMemoize: B = weakMapMemoize,
  32559. argsMemoizeOptions: $ = [],
  32560. devModeChecks: V = {}
  32561. } = C,
  32562. U = ensureIsArray(L),
  32563. z = ensureIsArray($),
  32564. Y = getDependencies(s),
  32565. Z = j(
  32566. function recomputationWrapper() {
  32567. return u++, x.apply(null, arguments);
  32568. },
  32569. ...U
  32570. );
  32571. const ee = B(
  32572. function dependenciesChecker() {
  32573. _++;
  32574. const s = (function collectInputSelectorResults(s, o) {
  32575. const i = [],
  32576. { length: u } = s;
  32577. for (let _ = 0; _ < u; _++) i.push(s[_].apply(null, o));
  32578. return i;
  32579. })(Y, arguments);
  32580. return (o = Z.apply(null, s)), o;
  32581. },
  32582. ...z
  32583. );
  32584. return Object.assign(ee, {
  32585. resultFunc: x,
  32586. memoizedResultFunc: Z,
  32587. dependencies: Y,
  32588. dependencyRecomputations: () => _,
  32589. resetDependencyRecomputations: () => {
  32590. _ = 0;
  32591. },
  32592. lastResult: () => o,
  32593. recomputations: () => u,
  32594. resetRecomputations: () => {
  32595. u = 0;
  32596. },
  32597. memoize: j,
  32598. argsMemoize: B
  32599. });
  32600. };
  32601. return (
  32602. Object.assign(createSelector2, { withTypes: () => createSelector2 }), createSelector2
  32603. );
  32604. }
  32605. var Ut = createSelectorCreator(weakMapMemoize),
  32606. zt = Object.assign(
  32607. (s, o = Ut) => {
  32608. !(function assertIsObject(s, o = 'expected an object, instead received ' + typeof s) {
  32609. if ('object' != typeof s) throw new TypeError(o);
  32610. })(
  32611. s,
  32612. 'createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ' +
  32613. typeof s
  32614. );
  32615. const i = Object.keys(s);
  32616. return o(
  32617. i.map((o) => s[o]),
  32618. (...s) => s.reduce((s, o, u) => ((s[i[u]] = o), s), {})
  32619. );
  32620. },
  32621. { withTypes: () => zt }
  32622. );
  32623. const state = (s) => s,
  32624. Wt = Ut(state, (s) => s.get('showDefinitions')),
  32625. Kt = Ut(state, () => ({ specSelectors: s }) => {
  32626. let o = s.securityDefinitions() || (0, qe.Map)({}),
  32627. i = (0, qe.List)();
  32628. return (
  32629. o.entrySeq().forEach(([s, o]) => {
  32630. let u = (0, qe.Map)();
  32631. (u = u.set(s, o)), (i = i.push(u));
  32632. }),
  32633. i
  32634. );
  32635. }),
  32636. getDefinitionsByNames =
  32637. (s, o) =>
  32638. ({ specSelectors: s }) => {
  32639. console.warn(
  32640. 'WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.'
  32641. );
  32642. let i = s.securityDefinitions(),
  32643. u = (0, qe.List)();
  32644. return (
  32645. o.valueSeq().forEach((s) => {
  32646. let o = (0, qe.Map)();
  32647. s.entrySeq().forEach(([s, u]) => {
  32648. let _,
  32649. w = i.get(s);
  32650. 'oauth2' === w.get('type') &&
  32651. u.size &&
  32652. ((_ = w.get('scopes')),
  32653. _.keySeq().forEach((s) => {
  32654. u.contains(s) || (_ = _.delete(s));
  32655. }),
  32656. (w = w.set('allowedScopes', _))),
  32657. (o = o.set(s, w));
  32658. }),
  32659. (u = u.push(o));
  32660. }),
  32661. u
  32662. );
  32663. },
  32664. definitionsForRequirements =
  32665. (s, o = (0, qe.List)()) =>
  32666. ({ authSelectors: s }) => {
  32667. const i = s.definitionsToAuthorize() || (0, qe.List)();
  32668. let u = (0, qe.List)();
  32669. return (
  32670. i.forEach((s) => {
  32671. let i = o.find((o) => o.get(s.keySeq().first()));
  32672. i &&
  32673. (s.forEach((o, u) => {
  32674. if ('oauth2' === o.get('type')) {
  32675. const _ = i.get(u);
  32676. let w = o.get('scopes');
  32677. qe.List.isList(_) &&
  32678. qe.Map.isMap(w) &&
  32679. (w.keySeq().forEach((s) => {
  32680. _.contains(s) || (w = w.delete(s));
  32681. }),
  32682. (s = s.set(u, o.set('scopes', w))));
  32683. }
  32684. }),
  32685. (u = u.push(s)));
  32686. }),
  32687. u
  32688. );
  32689. },
  32690. Ht = Ut(state, (s) => s.get('authorized') || (0, qe.Map)()),
  32691. isAuthorized =
  32692. (s, o) =>
  32693. ({ authSelectors: s }) => {
  32694. let i = s.authorized();
  32695. return qe.List.isList(o)
  32696. ? !!o.toJS().filter(
  32697. (s) =>
  32698. -1 ===
  32699. Object.keys(s)
  32700. .map((s) => !!i.get(s))
  32701. .indexOf(!1)
  32702. ).length
  32703. : null;
  32704. },
  32705. Jt = Ut(state, (s) => s.get('configs')),
  32706. execute =
  32707. (s, { authSelectors: o, specSelectors: i }) =>
  32708. ({ path: u, method: _, operation: w, extras: x }) => {
  32709. let C = {
  32710. authorized: o.authorized() && o.authorized().toJS(),
  32711. definitions: i.securityDefinitions() && i.securityDefinitions().toJS(),
  32712. specSecurity: i.security() && i.security().toJS()
  32713. };
  32714. return s({ path: u, method: _, operation: w, securities: C, ...x });
  32715. },
  32716. loaded = (s, o) => (i) => {
  32717. const { getConfigs: u, authActions: _ } = o,
  32718. w = u();
  32719. if ((s(i), w.persistAuthorization)) {
  32720. const s = localStorage.getItem('authorized');
  32721. s && _.restoreAuthorization({ authorized: JSON.parse(s) });
  32722. }
  32723. },
  32724. wrap_actions_authorize = (s, o) => (i) => {
  32725. s(i);
  32726. if (o.getConfigs().persistAuthorization)
  32727. try {
  32728. const [{ schema: s, value: o }] = Object.values(i),
  32729. u = 'apiKey' === s.get('type'),
  32730. _ = 'cookie' === s.get('in');
  32731. u && _ && (document.cookie = `${s.get('name')}=${o}; SameSite=None; Secure`);
  32732. } catch (s) {
  32733. console.error('Error persisting cookie based apiKey in document.cookie.', s);
  32734. }
  32735. },
  32736. wrap_actions_logout = (s, o) => (i) => {
  32737. const u = o.getConfigs(),
  32738. _ = o.authSelectors.authorized();
  32739. try {
  32740. u.persistAuthorization &&
  32741. Array.isArray(i) &&
  32742. i.forEach((s) => {
  32743. const o = _.get(s, {}),
  32744. i = 'apiKey' === o.getIn(['schema', 'type']),
  32745. u = 'cookie' === o.getIn(['schema', 'in']);
  32746. if (i && u) {
  32747. const s = o.getIn(['schema', 'name']);
  32748. document.cookie = `${s}=; Max-Age=-99999999`;
  32749. }
  32750. });
  32751. } catch (s) {
  32752. console.error('Error deleting cookie based apiKey from document.cookie.', s);
  32753. }
  32754. s(i);
  32755. };
  32756. var Gt = __webpack_require__(90179),
  32757. Yt = __webpack_require__.n(Gt);
  32758. class LockAuthIcon extends Pe.Component {
  32759. mapStateToProps(s, o) {
  32760. return { state: s, ownProps: Yt()(o, Object.keys(o.getSystem())) };
  32761. }
  32762. render() {
  32763. const { getComponent: s, ownProps: o } = this.props,
  32764. i = s('LockIcon');
  32765. return Pe.createElement(i, o);
  32766. }
  32767. }
  32768. const Xt = LockAuthIcon;
  32769. class UnlockAuthIcon extends Pe.Component {
  32770. mapStateToProps(s, o) {
  32771. return { state: s, ownProps: Yt()(o, Object.keys(o.getSystem())) };
  32772. }
  32773. render() {
  32774. const { getComponent: s, ownProps: o } = this.props,
  32775. i = s('UnlockIcon');
  32776. return Pe.createElement(i, o);
  32777. }
  32778. }
  32779. const Zt = UnlockAuthIcon;
  32780. function auth() {
  32781. return {
  32782. afterLoad(s) {
  32783. (this.rootInjects = this.rootInjects || {}),
  32784. (this.rootInjects.initOAuth = s.authActions.configureAuth),
  32785. (this.rootInjects.preauthorizeApiKey = preauthorizeApiKey.bind(null, s)),
  32786. (this.rootInjects.preauthorizeBasic = preauthorizeBasic.bind(null, s));
  32787. },
  32788. components: {
  32789. LockAuthIcon: Xt,
  32790. UnlockAuthIcon: Zt,
  32791. LockAuthOperationIcon: Xt,
  32792. UnlockAuthOperationIcon: Zt
  32793. },
  32794. statePlugins: {
  32795. auth: {
  32796. reducers: $t,
  32797. actions: o,
  32798. selectors: i,
  32799. wrapActions: { authorize: wrap_actions_authorize, logout: wrap_actions_logout }
  32800. },
  32801. configs: { wrapActions: { loaded } },
  32802. spec: { wrapActions: { execute } }
  32803. }
  32804. };
  32805. }
  32806. function preauthorizeBasic(s, o, i, u) {
  32807. const {
  32808. authActions: { authorize: _ },
  32809. specSelectors: { specJson: w, isOAS3: x }
  32810. } = s,
  32811. C = x() ? ['components', 'securitySchemes'] : ['securityDefinitions'],
  32812. j = w().getIn([...C, o]);
  32813. return j ? _({ [o]: { value: { username: i, password: u }, schema: j.toJS() } }) : null;
  32814. }
  32815. function preauthorizeApiKey(s, o, i) {
  32816. const {
  32817. authActions: { authorize: u },
  32818. specSelectors: { specJson: _, isOAS3: w }
  32819. } = s,
  32820. x = w() ? ['components', 'securitySchemes'] : ['securityDefinitions'],
  32821. C = _().getIn([...x, o]);
  32822. return C ? u({ [o]: { value: i, schema: C.toJS() } }) : null;
  32823. }
  32824. function isNothing(s) {
  32825. return null == s;
  32826. }
  32827. var Qt = function repeat(s, o) {
  32828. var i,
  32829. u = '';
  32830. for (i = 0; i < o; i += 1) u += s;
  32831. return u;
  32832. },
  32833. er = function isNegativeZero(s) {
  32834. return 0 === s && Number.NEGATIVE_INFINITY === 1 / s;
  32835. },
  32836. tr = {
  32837. isNothing,
  32838. isObject: function js_yaml_isObject(s) {
  32839. return 'object' == typeof s && null !== s;
  32840. },
  32841. toArray: function toArray(s) {
  32842. return Array.isArray(s) ? s : isNothing(s) ? [] : [s];
  32843. },
  32844. repeat: Qt,
  32845. isNegativeZero: er,
  32846. extend: function extend(s, o) {
  32847. var i, u, _, w;
  32848. if (o)
  32849. for (i = 0, u = (w = Object.keys(o)).length; i < u; i += 1) s[(_ = w[i])] = o[_];
  32850. return s;
  32851. }
  32852. };
  32853. function formatError(s, o) {
  32854. var i = '',
  32855. u = s.reason || '(unknown reason)';
  32856. return s.mark
  32857. ? (s.mark.name && (i += 'in "' + s.mark.name + '" '),
  32858. (i += '(' + (s.mark.line + 1) + ':' + (s.mark.column + 1) + ')'),
  32859. !o && s.mark.snippet && (i += '\n\n' + s.mark.snippet),
  32860. u + ' ' + i)
  32861. : u;
  32862. }
  32863. function YAMLException$1(s, o) {
  32864. Error.call(this),
  32865. (this.name = 'YAMLException'),
  32866. (this.reason = s),
  32867. (this.mark = o),
  32868. (this.message = formatError(this, !1)),
  32869. Error.captureStackTrace
  32870. ? Error.captureStackTrace(this, this.constructor)
  32871. : (this.stack = new Error().stack || '');
  32872. }
  32873. (YAMLException$1.prototype = Object.create(Error.prototype)),
  32874. (YAMLException$1.prototype.constructor = YAMLException$1),
  32875. (YAMLException$1.prototype.toString = function toString(s) {
  32876. return this.name + ': ' + formatError(this, s);
  32877. });
  32878. var rr = YAMLException$1;
  32879. function getLine(s, o, i, u, _) {
  32880. var w = '',
  32881. x = '',
  32882. C = Math.floor(_ / 2) - 1;
  32883. return (
  32884. u - o > C && (o = u - C + (w = ' ... ').length),
  32885. i - u > C && (i = u + C - (x = ' ...').length),
  32886. { str: w + s.slice(o, i).replace(/\t/g, '→') + x, pos: u - o + w.length }
  32887. );
  32888. }
  32889. function padStart(s, o) {
  32890. return tr.repeat(' ', o - s.length) + s;
  32891. }
  32892. var nr = function makeSnippet(s, o) {
  32893. if (((o = Object.create(o || null)), !s.buffer)) return null;
  32894. o.maxLength || (o.maxLength = 79),
  32895. 'number' != typeof o.indent && (o.indent = 1),
  32896. 'number' != typeof o.linesBefore && (o.linesBefore = 3),
  32897. 'number' != typeof o.linesAfter && (o.linesAfter = 2);
  32898. for (var i, u = /\r?\n|\r|\0/g, _ = [0], w = [], x = -1; (i = u.exec(s.buffer)); )
  32899. w.push(i.index),
  32900. _.push(i.index + i[0].length),
  32901. s.position <= i.index && x < 0 && (x = _.length - 2);
  32902. x < 0 && (x = _.length - 1);
  32903. var C,
  32904. j,
  32905. L = '',
  32906. B = Math.min(s.line + o.linesAfter, w.length).toString().length,
  32907. $ = o.maxLength - (o.indent + B + 3);
  32908. for (C = 1; C <= o.linesBefore && !(x - C < 0); C++)
  32909. (j = getLine(s.buffer, _[x - C], w[x - C], s.position - (_[x] - _[x - C]), $)),
  32910. (L =
  32911. tr.repeat(' ', o.indent) +
  32912. padStart((s.line - C + 1).toString(), B) +
  32913. ' | ' +
  32914. j.str +
  32915. '\n' +
  32916. L);
  32917. for (
  32918. j = getLine(s.buffer, _[x], w[x], s.position, $),
  32919. L +=
  32920. tr.repeat(' ', o.indent) +
  32921. padStart((s.line + 1).toString(), B) +
  32922. ' | ' +
  32923. j.str +
  32924. '\n',
  32925. L += tr.repeat('-', o.indent + B + 3 + j.pos) + '^\n',
  32926. C = 1;
  32927. C <= o.linesAfter && !(x + C >= w.length);
  32928. C++
  32929. )
  32930. (j = getLine(s.buffer, _[x + C], w[x + C], s.position - (_[x] - _[x + C]), $)),
  32931. (L +=
  32932. tr.repeat(' ', o.indent) +
  32933. padStart((s.line + C + 1).toString(), B) +
  32934. ' | ' +
  32935. j.str +
  32936. '\n');
  32937. return L.replace(/\n$/, '');
  32938. },
  32939. sr = [
  32940. 'kind',
  32941. 'multi',
  32942. 'resolve',
  32943. 'construct',
  32944. 'instanceOf',
  32945. 'predicate',
  32946. 'represent',
  32947. 'representName',
  32948. 'defaultStyle',
  32949. 'styleAliases'
  32950. ],
  32951. ir = ['scalar', 'sequence', 'mapping'];
  32952. var ar = function Type$1(s, o) {
  32953. if (
  32954. ((o = o || {}),
  32955. Object.keys(o).forEach(function (o) {
  32956. if (-1 === sr.indexOf(o))
  32957. throw new rr(
  32958. 'Unknown option "' + o + '" is met in definition of "' + s + '" YAML type.'
  32959. );
  32960. }),
  32961. (this.options = o),
  32962. (this.tag = s),
  32963. (this.kind = o.kind || null),
  32964. (this.resolve =
  32965. o.resolve ||
  32966. function () {
  32967. return !0;
  32968. }),
  32969. (this.construct =
  32970. o.construct ||
  32971. function (s) {
  32972. return s;
  32973. }),
  32974. (this.instanceOf = o.instanceOf || null),
  32975. (this.predicate = o.predicate || null),
  32976. (this.represent = o.represent || null),
  32977. (this.representName = o.representName || null),
  32978. (this.defaultStyle = o.defaultStyle || null),
  32979. (this.multi = o.multi || !1),
  32980. (this.styleAliases = (function compileStyleAliases(s) {
  32981. var o = {};
  32982. return (
  32983. null !== s &&
  32984. Object.keys(s).forEach(function (i) {
  32985. s[i].forEach(function (s) {
  32986. o[String(s)] = i;
  32987. });
  32988. }),
  32989. o
  32990. );
  32991. })(o.styleAliases || null)),
  32992. -1 === ir.indexOf(this.kind))
  32993. )
  32994. throw new rr(
  32995. 'Unknown kind "' + this.kind + '" is specified for "' + s + '" YAML type.'
  32996. );
  32997. };
  32998. function compileList(s, o) {
  32999. var i = [];
  33000. return (
  33001. s[o].forEach(function (s) {
  33002. var o = i.length;
  33003. i.forEach(function (i, u) {
  33004. i.tag === s.tag && i.kind === s.kind && i.multi === s.multi && (o = u);
  33005. }),
  33006. (i[o] = s);
  33007. }),
  33008. i
  33009. );
  33010. }
  33011. function Schema$1(s) {
  33012. return this.extend(s);
  33013. }
  33014. Schema$1.prototype.extend = function extend(s) {
  33015. var o = [],
  33016. i = [];
  33017. if (s instanceof ar) i.push(s);
  33018. else if (Array.isArray(s)) i = i.concat(s);
  33019. else {
  33020. if (!s || (!Array.isArray(s.implicit) && !Array.isArray(s.explicit)))
  33021. throw new rr(
  33022. 'Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })'
  33023. );
  33024. s.implicit && (o = o.concat(s.implicit)), s.explicit && (i = i.concat(s.explicit));
  33025. }
  33026. o.forEach(function (s) {
  33027. if (!(s instanceof ar))
  33028. throw new rr(
  33029. 'Specified list of YAML types (or a single Type object) contains a non-Type object.'
  33030. );
  33031. if (s.loadKind && 'scalar' !== s.loadKind)
  33032. throw new rr(
  33033. 'There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'
  33034. );
  33035. if (s.multi)
  33036. throw new rr(
  33037. 'There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'
  33038. );
  33039. }),
  33040. i.forEach(function (s) {
  33041. if (!(s instanceof ar))
  33042. throw new rr(
  33043. 'Specified list of YAML types (or a single Type object) contains a non-Type object.'
  33044. );
  33045. });
  33046. var u = Object.create(Schema$1.prototype);
  33047. return (
  33048. (u.implicit = (this.implicit || []).concat(o)),
  33049. (u.explicit = (this.explicit || []).concat(i)),
  33050. (u.compiledImplicit = compileList(u, 'implicit')),
  33051. (u.compiledExplicit = compileList(u, 'explicit')),
  33052. (u.compiledTypeMap = (function compileMap() {
  33053. var s,
  33054. o,
  33055. i = {
  33056. scalar: {},
  33057. sequence: {},
  33058. mapping: {},
  33059. fallback: {},
  33060. multi: { scalar: [], sequence: [], mapping: [], fallback: [] }
  33061. };
  33062. function collectType(s) {
  33063. s.multi
  33064. ? (i.multi[s.kind].push(s), i.multi.fallback.push(s))
  33065. : (i[s.kind][s.tag] = i.fallback[s.tag] = s);
  33066. }
  33067. for (s = 0, o = arguments.length; s < o; s += 1) arguments[s].forEach(collectType);
  33068. return i;
  33069. })(u.compiledImplicit, u.compiledExplicit)),
  33070. u
  33071. );
  33072. };
  33073. var lr = Schema$1,
  33074. cr = new ar('tag:yaml.org,2002:str', {
  33075. kind: 'scalar',
  33076. construct: function (s) {
  33077. return null !== s ? s : '';
  33078. }
  33079. }),
  33080. ur = new ar('tag:yaml.org,2002:seq', {
  33081. kind: 'sequence',
  33082. construct: function (s) {
  33083. return null !== s ? s : [];
  33084. }
  33085. }),
  33086. pr = new ar('tag:yaml.org,2002:map', {
  33087. kind: 'mapping',
  33088. construct: function (s) {
  33089. return null !== s ? s : {};
  33090. }
  33091. }),
  33092. dr = new lr({ explicit: [cr, ur, pr] });
  33093. var fr = new ar('tag:yaml.org,2002:null', {
  33094. kind: 'scalar',
  33095. resolve: function resolveYamlNull(s) {
  33096. if (null === s) return !0;
  33097. var o = s.length;
  33098. return (
  33099. (1 === o && '~' === s) || (4 === o && ('null' === s || 'Null' === s || 'NULL' === s))
  33100. );
  33101. },
  33102. construct: function constructYamlNull() {
  33103. return null;
  33104. },
  33105. predicate: function isNull(s) {
  33106. return null === s;
  33107. },
  33108. represent: {
  33109. canonical: function () {
  33110. return '~';
  33111. },
  33112. lowercase: function () {
  33113. return 'null';
  33114. },
  33115. uppercase: function () {
  33116. return 'NULL';
  33117. },
  33118. camelcase: function () {
  33119. return 'Null';
  33120. },
  33121. empty: function () {
  33122. return '';
  33123. }
  33124. },
  33125. defaultStyle: 'lowercase'
  33126. });
  33127. var mr = new ar('tag:yaml.org,2002:bool', {
  33128. kind: 'scalar',
  33129. resolve: function resolveYamlBoolean(s) {
  33130. if (null === s) return !1;
  33131. var o = s.length;
  33132. return (
  33133. (4 === o && ('true' === s || 'True' === s || 'TRUE' === s)) ||
  33134. (5 === o && ('false' === s || 'False' === s || 'FALSE' === s))
  33135. );
  33136. },
  33137. construct: function constructYamlBoolean(s) {
  33138. return 'true' === s || 'True' === s || 'TRUE' === s;
  33139. },
  33140. predicate: function isBoolean(s) {
  33141. return '[object Boolean]' === Object.prototype.toString.call(s);
  33142. },
  33143. represent: {
  33144. lowercase: function (s) {
  33145. return s ? 'true' : 'false';
  33146. },
  33147. uppercase: function (s) {
  33148. return s ? 'TRUE' : 'FALSE';
  33149. },
  33150. camelcase: function (s) {
  33151. return s ? 'True' : 'False';
  33152. }
  33153. },
  33154. defaultStyle: 'lowercase'
  33155. });
  33156. function isOctCode(s) {
  33157. return 48 <= s && s <= 55;
  33158. }
  33159. function isDecCode(s) {
  33160. return 48 <= s && s <= 57;
  33161. }
  33162. var gr = new ar('tag:yaml.org,2002:int', {
  33163. kind: 'scalar',
  33164. resolve: function resolveYamlInteger(s) {
  33165. if (null === s) return !1;
  33166. var o,
  33167. i,
  33168. u = s.length,
  33169. _ = 0,
  33170. w = !1;
  33171. if (!u) return !1;
  33172. if ((('-' !== (o = s[_]) && '+' !== o) || (o = s[++_]), '0' === o)) {
  33173. if (_ + 1 === u) return !0;
  33174. if ('b' === (o = s[++_])) {
  33175. for (_++; _ < u; _++)
  33176. if ('_' !== (o = s[_])) {
  33177. if ('0' !== o && '1' !== o) return !1;
  33178. w = !0;
  33179. }
  33180. return w && '_' !== o;
  33181. }
  33182. if ('x' === o) {
  33183. for (_++; _ < u; _++)
  33184. if ('_' !== (o = s[_])) {
  33185. if (
  33186. !(
  33187. (48 <= (i = s.charCodeAt(_)) && i <= 57) ||
  33188. (65 <= i && i <= 70) ||
  33189. (97 <= i && i <= 102)
  33190. )
  33191. )
  33192. return !1;
  33193. w = !0;
  33194. }
  33195. return w && '_' !== o;
  33196. }
  33197. if ('o' === o) {
  33198. for (_++; _ < u; _++)
  33199. if ('_' !== (o = s[_])) {
  33200. if (!isOctCode(s.charCodeAt(_))) return !1;
  33201. w = !0;
  33202. }
  33203. return w && '_' !== o;
  33204. }
  33205. }
  33206. if ('_' === o) return !1;
  33207. for (; _ < u; _++)
  33208. if ('_' !== (o = s[_])) {
  33209. if (!isDecCode(s.charCodeAt(_))) return !1;
  33210. w = !0;
  33211. }
  33212. return !(!w || '_' === o);
  33213. },
  33214. construct: function constructYamlInteger(s) {
  33215. var o,
  33216. i = s,
  33217. u = 1;
  33218. if (
  33219. (-1 !== i.indexOf('_') && (i = i.replace(/_/g, '')),
  33220. ('-' !== (o = i[0]) && '+' !== o) ||
  33221. ('-' === o && (u = -1), (o = (i = i.slice(1))[0])),
  33222. '0' === i)
  33223. )
  33224. return 0;
  33225. if ('0' === o) {
  33226. if ('b' === i[1]) return u * parseInt(i.slice(2), 2);
  33227. if ('x' === i[1]) return u * parseInt(i.slice(2), 16);
  33228. if ('o' === i[1]) return u * parseInt(i.slice(2), 8);
  33229. }
  33230. return u * parseInt(i, 10);
  33231. },
  33232. predicate: function isInteger(s) {
  33233. return (
  33234. '[object Number]' === Object.prototype.toString.call(s) &&
  33235. s % 1 == 0 &&
  33236. !tr.isNegativeZero(s)
  33237. );
  33238. },
  33239. represent: {
  33240. binary: function (s) {
  33241. return s >= 0 ? '0b' + s.toString(2) : '-0b' + s.toString(2).slice(1);
  33242. },
  33243. octal: function (s) {
  33244. return s >= 0 ? '0o' + s.toString(8) : '-0o' + s.toString(8).slice(1);
  33245. },
  33246. decimal: function (s) {
  33247. return s.toString(10);
  33248. },
  33249. hexadecimal: function (s) {
  33250. return s >= 0
  33251. ? '0x' + s.toString(16).toUpperCase()
  33252. : '-0x' + s.toString(16).toUpperCase().slice(1);
  33253. }
  33254. },
  33255. defaultStyle: 'decimal',
  33256. styleAliases: {
  33257. binary: [2, 'bin'],
  33258. octal: [8, 'oct'],
  33259. decimal: [10, 'dec'],
  33260. hexadecimal: [16, 'hex']
  33261. }
  33262. }),
  33263. yr = new RegExp(
  33264. '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$'
  33265. );
  33266. var vr = /^[-+]?[0-9]+e/;
  33267. var br = new ar('tag:yaml.org,2002:float', {
  33268. kind: 'scalar',
  33269. resolve: function resolveYamlFloat(s) {
  33270. return null !== s && !(!yr.test(s) || '_' === s[s.length - 1]);
  33271. },
  33272. construct: function constructYamlFloat(s) {
  33273. var o, i;
  33274. return (
  33275. (i = '-' === (o = s.replace(/_/g, '').toLowerCase())[0] ? -1 : 1),
  33276. '+-'.indexOf(o[0]) >= 0 && (o = o.slice(1)),
  33277. '.inf' === o
  33278. ? 1 === i
  33279. ? Number.POSITIVE_INFINITY
  33280. : Number.NEGATIVE_INFINITY
  33281. : '.nan' === o
  33282. ? NaN
  33283. : i * parseFloat(o, 10)
  33284. );
  33285. },
  33286. predicate: function isFloat(s) {
  33287. return (
  33288. '[object Number]' === Object.prototype.toString.call(s) &&
  33289. (s % 1 != 0 || tr.isNegativeZero(s))
  33290. );
  33291. },
  33292. represent: function representYamlFloat(s, o) {
  33293. var i;
  33294. if (isNaN(s))
  33295. switch (o) {
  33296. case 'lowercase':
  33297. return '.nan';
  33298. case 'uppercase':
  33299. return '.NAN';
  33300. case 'camelcase':
  33301. return '.NaN';
  33302. }
  33303. else if (Number.POSITIVE_INFINITY === s)
  33304. switch (o) {
  33305. case 'lowercase':
  33306. return '.inf';
  33307. case 'uppercase':
  33308. return '.INF';
  33309. case 'camelcase':
  33310. return '.Inf';
  33311. }
  33312. else if (Number.NEGATIVE_INFINITY === s)
  33313. switch (o) {
  33314. case 'lowercase':
  33315. return '-.inf';
  33316. case 'uppercase':
  33317. return '-.INF';
  33318. case 'camelcase':
  33319. return '-.Inf';
  33320. }
  33321. else if (tr.isNegativeZero(s)) return '-0.0';
  33322. return (i = s.toString(10)), vr.test(i) ? i.replace('e', '.e') : i;
  33323. },
  33324. defaultStyle: 'lowercase'
  33325. }),
  33326. _r = dr.extend({ implicit: [fr, mr, gr, br] }),
  33327. Er = _r,
  33328. wr = new RegExp('^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$'),
  33329. Sr = new RegExp(
  33330. '^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$'
  33331. );
  33332. var xr = new ar('tag:yaml.org,2002:timestamp', {
  33333. kind: 'scalar',
  33334. resolve: function resolveYamlTimestamp(s) {
  33335. return null !== s && (null !== wr.exec(s) || null !== Sr.exec(s));
  33336. },
  33337. construct: function constructYamlTimestamp(s) {
  33338. var o,
  33339. i,
  33340. u,
  33341. _,
  33342. w,
  33343. x,
  33344. C,
  33345. j,
  33346. L = 0,
  33347. B = null;
  33348. if ((null === (o = wr.exec(s)) && (o = Sr.exec(s)), null === o))
  33349. throw new Error('Date resolve error');
  33350. if (((i = +o[1]), (u = +o[2] - 1), (_ = +o[3]), !o[4]))
  33351. return new Date(Date.UTC(i, u, _));
  33352. if (((w = +o[4]), (x = +o[5]), (C = +o[6]), o[7])) {
  33353. for (L = o[7].slice(0, 3); L.length < 3; ) L += '0';
  33354. L = +L;
  33355. }
  33356. return (
  33357. o[9] && ((B = 6e4 * (60 * +o[10] + +(o[11] || 0))), '-' === o[9] && (B = -B)),
  33358. (j = new Date(Date.UTC(i, u, _, w, x, C, L))),
  33359. B && j.setTime(j.getTime() - B),
  33360. j
  33361. );
  33362. },
  33363. instanceOf: Date,
  33364. represent: function representYamlTimestamp(s) {
  33365. return s.toISOString();
  33366. }
  33367. });
  33368. var kr = new ar('tag:yaml.org,2002:merge', {
  33369. kind: 'scalar',
  33370. resolve: function resolveYamlMerge(s) {
  33371. return '<<' === s || null === s;
  33372. }
  33373. }),
  33374. Cr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
  33375. var Or = new ar('tag:yaml.org,2002:binary', {
  33376. kind: 'scalar',
  33377. resolve: function resolveYamlBinary(s) {
  33378. if (null === s) return !1;
  33379. var o,
  33380. i,
  33381. u = 0,
  33382. _ = s.length,
  33383. w = Cr;
  33384. for (i = 0; i < _; i++)
  33385. if (!((o = w.indexOf(s.charAt(i))) > 64)) {
  33386. if (o < 0) return !1;
  33387. u += 6;
  33388. }
  33389. return u % 8 == 0;
  33390. },
  33391. construct: function constructYamlBinary(s) {
  33392. var o,
  33393. i,
  33394. u = s.replace(/[\r\n=]/g, ''),
  33395. _ = u.length,
  33396. w = Cr,
  33397. x = 0,
  33398. C = [];
  33399. for (o = 0; o < _; o++)
  33400. o % 4 == 0 &&
  33401. o &&
  33402. (C.push((x >> 16) & 255), C.push((x >> 8) & 255), C.push(255 & x)),
  33403. (x = (x << 6) | w.indexOf(u.charAt(o)));
  33404. return (
  33405. 0 === (i = (_ % 4) * 6)
  33406. ? (C.push((x >> 16) & 255), C.push((x >> 8) & 255), C.push(255 & x))
  33407. : 18 === i
  33408. ? (C.push((x >> 10) & 255), C.push((x >> 2) & 255))
  33409. : 12 === i && C.push((x >> 4) & 255),
  33410. new Uint8Array(C)
  33411. );
  33412. },
  33413. predicate: function isBinary(s) {
  33414. return '[object Uint8Array]' === Object.prototype.toString.call(s);
  33415. },
  33416. represent: function representYamlBinary(s) {
  33417. var o,
  33418. i,
  33419. u = '',
  33420. _ = 0,
  33421. w = s.length,
  33422. x = Cr;
  33423. for (o = 0; o < w; o++)
  33424. o % 3 == 0 &&
  33425. o &&
  33426. ((u += x[(_ >> 18) & 63]),
  33427. (u += x[(_ >> 12) & 63]),
  33428. (u += x[(_ >> 6) & 63]),
  33429. (u += x[63 & _])),
  33430. (_ = (_ << 8) + s[o]);
  33431. return (
  33432. 0 === (i = w % 3)
  33433. ? ((u += x[(_ >> 18) & 63]),
  33434. (u += x[(_ >> 12) & 63]),
  33435. (u += x[(_ >> 6) & 63]),
  33436. (u += x[63 & _]))
  33437. : 2 === i
  33438. ? ((u += x[(_ >> 10) & 63]),
  33439. (u += x[(_ >> 4) & 63]),
  33440. (u += x[(_ << 2) & 63]),
  33441. (u += x[64]))
  33442. : 1 === i &&
  33443. ((u += x[(_ >> 2) & 63]),
  33444. (u += x[(_ << 4) & 63]),
  33445. (u += x[64]),
  33446. (u += x[64])),
  33447. u
  33448. );
  33449. }
  33450. }),
  33451. Ar = Object.prototype.hasOwnProperty,
  33452. jr = Object.prototype.toString;
  33453. var Ir = new ar('tag:yaml.org,2002:omap', {
  33454. kind: 'sequence',
  33455. resolve: function resolveYamlOmap(s) {
  33456. if (null === s) return !0;
  33457. var o,
  33458. i,
  33459. u,
  33460. _,
  33461. w,
  33462. x = [],
  33463. C = s;
  33464. for (o = 0, i = C.length; o < i; o += 1) {
  33465. if (((u = C[o]), (w = !1), '[object Object]' !== jr.call(u))) return !1;
  33466. for (_ in u)
  33467. if (Ar.call(u, _)) {
  33468. if (w) return !1;
  33469. w = !0;
  33470. }
  33471. if (!w) return !1;
  33472. if (-1 !== x.indexOf(_)) return !1;
  33473. x.push(_);
  33474. }
  33475. return !0;
  33476. },
  33477. construct: function constructYamlOmap(s) {
  33478. return null !== s ? s : [];
  33479. }
  33480. }),
  33481. Pr = Object.prototype.toString;
  33482. var Mr = new ar('tag:yaml.org,2002:pairs', {
  33483. kind: 'sequence',
  33484. resolve: function resolveYamlPairs(s) {
  33485. if (null === s) return !0;
  33486. var o,
  33487. i,
  33488. u,
  33489. _,
  33490. w,
  33491. x = s;
  33492. for (w = new Array(x.length), o = 0, i = x.length; o < i; o += 1) {
  33493. if (((u = x[o]), '[object Object]' !== Pr.call(u))) return !1;
  33494. if (1 !== (_ = Object.keys(u)).length) return !1;
  33495. w[o] = [_[0], u[_[0]]];
  33496. }
  33497. return !0;
  33498. },
  33499. construct: function constructYamlPairs(s) {
  33500. if (null === s) return [];
  33501. var o,
  33502. i,
  33503. u,
  33504. _,
  33505. w,
  33506. x = s;
  33507. for (w = new Array(x.length), o = 0, i = x.length; o < i; o += 1)
  33508. (u = x[o]), (_ = Object.keys(u)), (w[o] = [_[0], u[_[0]]]);
  33509. return w;
  33510. }
  33511. }),
  33512. Tr = Object.prototype.hasOwnProperty;
  33513. var Nr = new ar('tag:yaml.org,2002:set', {
  33514. kind: 'mapping',
  33515. resolve: function resolveYamlSet(s) {
  33516. if (null === s) return !0;
  33517. var o,
  33518. i = s;
  33519. for (o in i) if (Tr.call(i, o) && null !== i[o]) return !1;
  33520. return !0;
  33521. },
  33522. construct: function constructYamlSet(s) {
  33523. return null !== s ? s : {};
  33524. }
  33525. }),
  33526. Rr = Er.extend({ implicit: [xr, kr], explicit: [Or, Ir, Mr, Nr] }),
  33527. Dr = Object.prototype.hasOwnProperty,
  33528. Lr =
  33529. /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,
  33530. Br = /[\x85\u2028\u2029]/,
  33531. Fr = /[,\[\]\{\}]/,
  33532. qr = /^(?:!|!!|![a-z\-]+!)$/i,
  33533. $r = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
  33534. function _class(s) {
  33535. return Object.prototype.toString.call(s);
  33536. }
  33537. function is_EOL(s) {
  33538. return 10 === s || 13 === s;
  33539. }
  33540. function is_WHITE_SPACE(s) {
  33541. return 9 === s || 32 === s;
  33542. }
  33543. function is_WS_OR_EOL(s) {
  33544. return 9 === s || 32 === s || 10 === s || 13 === s;
  33545. }
  33546. function is_FLOW_INDICATOR(s) {
  33547. return 44 === s || 91 === s || 93 === s || 123 === s || 125 === s;
  33548. }
  33549. function fromHexCode(s) {
  33550. var o;
  33551. return 48 <= s && s <= 57 ? s - 48 : 97 <= (o = 32 | s) && o <= 102 ? o - 97 + 10 : -1;
  33552. }
  33553. function simpleEscapeSequence(s) {
  33554. return 48 === s
  33555. ? '\0'
  33556. : 97 === s
  33557. ? ''
  33558. : 98 === s
  33559. ? '\b'
  33560. : 116 === s || 9 === s
  33561. ? '\t'
  33562. : 110 === s
  33563. ? '\n'
  33564. : 118 === s
  33565. ? '\v'
  33566. : 102 === s
  33567. ? '\f'
  33568. : 114 === s
  33569. ? '\r'
  33570. : 101 === s
  33571. ? ''
  33572. : 32 === s
  33573. ? ' '
  33574. : 34 === s
  33575. ? '"'
  33576. : 47 === s
  33577. ? '/'
  33578. : 92 === s
  33579. ? '\\'
  33580. : 78 === s
  33581. ? '…'
  33582. : 95 === s
  33583. ? ' '
  33584. : 76 === s
  33585. ? '\u2028'
  33586. : 80 === s
  33587. ? '\u2029'
  33588. : '';
  33589. }
  33590. function charFromCodepoint(s) {
  33591. return s <= 65535
  33592. ? String.fromCharCode(s)
  33593. : String.fromCharCode(55296 + ((s - 65536) >> 10), 56320 + ((s - 65536) & 1023));
  33594. }
  33595. for (var Vr = new Array(256), Ur = new Array(256), zr = 0; zr < 256; zr++)
  33596. (Vr[zr] = simpleEscapeSequence(zr) ? 1 : 0), (Ur[zr] = simpleEscapeSequence(zr));
  33597. function State$1(s, o) {
  33598. (this.input = s),
  33599. (this.filename = o.filename || null),
  33600. (this.schema = o.schema || Rr),
  33601. (this.onWarning = o.onWarning || null),
  33602. (this.legacy = o.legacy || !1),
  33603. (this.json = o.json || !1),
  33604. (this.listener = o.listener || null),
  33605. (this.implicitTypes = this.schema.compiledImplicit),
  33606. (this.typeMap = this.schema.compiledTypeMap),
  33607. (this.length = s.length),
  33608. (this.position = 0),
  33609. (this.line = 0),
  33610. (this.lineStart = 0),
  33611. (this.lineIndent = 0),
  33612. (this.firstTabInLine = -1),
  33613. (this.documents = []);
  33614. }
  33615. function generateError(s, o) {
  33616. var i = {
  33617. name: s.filename,
  33618. buffer: s.input.slice(0, -1),
  33619. position: s.position,
  33620. line: s.line,
  33621. column: s.position - s.lineStart
  33622. };
  33623. return (i.snippet = nr(i)), new rr(o, i);
  33624. }
  33625. function throwError(s, o) {
  33626. throw generateError(s, o);
  33627. }
  33628. function throwWarning(s, o) {
  33629. s.onWarning && s.onWarning.call(null, generateError(s, o));
  33630. }
  33631. var Wr = {
  33632. YAML: function handleYamlDirective(s, o, i) {
  33633. var u, _, w;
  33634. null !== s.version && throwError(s, 'duplication of %YAML directive'),
  33635. 1 !== i.length && throwError(s, 'YAML directive accepts exactly one argument'),
  33636. null === (u = /^([0-9]+)\.([0-9]+)$/.exec(i[0])) &&
  33637. throwError(s, 'ill-formed argument of the YAML directive'),
  33638. (_ = parseInt(u[1], 10)),
  33639. (w = parseInt(u[2], 10)),
  33640. 1 !== _ && throwError(s, 'unacceptable YAML version of the document'),
  33641. (s.version = i[0]),
  33642. (s.checkLineBreaks = w < 2),
  33643. 1 !== w && 2 !== w && throwWarning(s, 'unsupported YAML version of the document');
  33644. },
  33645. TAG: function handleTagDirective(s, o, i) {
  33646. var u, _;
  33647. 2 !== i.length && throwError(s, 'TAG directive accepts exactly two arguments'),
  33648. (u = i[0]),
  33649. (_ = i[1]),
  33650. qr.test(u) ||
  33651. throwError(s, 'ill-formed tag handle (first argument) of the TAG directive'),
  33652. Dr.call(s.tagMap, u) &&
  33653. throwError(s, 'there is a previously declared suffix for "' + u + '" tag handle'),
  33654. $r.test(_) ||
  33655. throwError(s, 'ill-formed tag prefix (second argument) of the TAG directive');
  33656. try {
  33657. _ = decodeURIComponent(_);
  33658. } catch (o) {
  33659. throwError(s, 'tag prefix is malformed: ' + _);
  33660. }
  33661. s.tagMap[u] = _;
  33662. }
  33663. };
  33664. function captureSegment(s, o, i, u) {
  33665. var _, w, x, C;
  33666. if (o < i) {
  33667. if (((C = s.input.slice(o, i)), u))
  33668. for (_ = 0, w = C.length; _ < w; _ += 1)
  33669. 9 === (x = C.charCodeAt(_)) ||
  33670. (32 <= x && x <= 1114111) ||
  33671. throwError(s, 'expected valid JSON character');
  33672. else Lr.test(C) && throwError(s, 'the stream contains non-printable characters');
  33673. s.result += C;
  33674. }
  33675. }
  33676. function mergeMappings(s, o, i, u) {
  33677. var _, w, x, C;
  33678. for (
  33679. tr.isObject(i) ||
  33680. throwError(s, 'cannot merge mappings; the provided source object is unacceptable'),
  33681. x = 0,
  33682. C = (_ = Object.keys(i)).length;
  33683. x < C;
  33684. x += 1
  33685. )
  33686. (w = _[x]), Dr.call(o, w) || ((o[w] = i[w]), (u[w] = !0));
  33687. }
  33688. function storeMappingPair(s, o, i, u, _, w, x, C, j) {
  33689. var L, B;
  33690. if (Array.isArray(_))
  33691. for (L = 0, B = (_ = Array.prototype.slice.call(_)).length; L < B; L += 1)
  33692. Array.isArray(_[L]) && throwError(s, 'nested arrays are not supported inside keys'),
  33693. 'object' == typeof _ &&
  33694. '[object Object]' === _class(_[L]) &&
  33695. (_[L] = '[object Object]');
  33696. if (
  33697. ('object' == typeof _ && '[object Object]' === _class(_) && (_ = '[object Object]'),
  33698. (_ = String(_)),
  33699. null === o && (o = {}),
  33700. 'tag:yaml.org,2002:merge' === u)
  33701. )
  33702. if (Array.isArray(w))
  33703. for (L = 0, B = w.length; L < B; L += 1) mergeMappings(s, o, w[L], i);
  33704. else mergeMappings(s, o, w, i);
  33705. else
  33706. s.json ||
  33707. Dr.call(i, _) ||
  33708. !Dr.call(o, _) ||
  33709. ((s.line = x || s.line),
  33710. (s.lineStart = C || s.lineStart),
  33711. (s.position = j || s.position),
  33712. throwError(s, 'duplicated mapping key')),
  33713. '__proto__' === _
  33714. ? Object.defineProperty(o, _, {
  33715. configurable: !0,
  33716. enumerable: !0,
  33717. writable: !0,
  33718. value: w
  33719. })
  33720. : (o[_] = w),
  33721. delete i[_];
  33722. return o;
  33723. }
  33724. function readLineBreak(s) {
  33725. var o;
  33726. 10 === (o = s.input.charCodeAt(s.position))
  33727. ? s.position++
  33728. : 13 === o
  33729. ? (s.position++, 10 === s.input.charCodeAt(s.position) && s.position++)
  33730. : throwError(s, 'a line break is expected'),
  33731. (s.line += 1),
  33732. (s.lineStart = s.position),
  33733. (s.firstTabInLine = -1);
  33734. }
  33735. function skipSeparationSpace(s, o, i) {
  33736. for (var u = 0, _ = s.input.charCodeAt(s.position); 0 !== _; ) {
  33737. for (; is_WHITE_SPACE(_); )
  33738. 9 === _ && -1 === s.firstTabInLine && (s.firstTabInLine = s.position),
  33739. (_ = s.input.charCodeAt(++s.position));
  33740. if (o && 35 === _)
  33741. do {
  33742. _ = s.input.charCodeAt(++s.position);
  33743. } while (10 !== _ && 13 !== _ && 0 !== _);
  33744. if (!is_EOL(_)) break;
  33745. for (
  33746. readLineBreak(s), _ = s.input.charCodeAt(s.position), u++, s.lineIndent = 0;
  33747. 32 === _;
  33748. )
  33749. s.lineIndent++, (_ = s.input.charCodeAt(++s.position));
  33750. }
  33751. return (
  33752. -1 !== i && 0 !== u && s.lineIndent < i && throwWarning(s, 'deficient indentation'), u
  33753. );
  33754. }
  33755. function testDocumentSeparator(s) {
  33756. var o,
  33757. i = s.position;
  33758. return !(
  33759. (45 !== (o = s.input.charCodeAt(i)) && 46 !== o) ||
  33760. o !== s.input.charCodeAt(i + 1) ||
  33761. o !== s.input.charCodeAt(i + 2) ||
  33762. ((i += 3), 0 !== (o = s.input.charCodeAt(i)) && !is_WS_OR_EOL(o))
  33763. );
  33764. }
  33765. function writeFoldedLines(s, o) {
  33766. 1 === o ? (s.result += ' ') : o > 1 && (s.result += tr.repeat('\n', o - 1));
  33767. }
  33768. function readBlockSequence(s, o) {
  33769. var i,
  33770. u,
  33771. _ = s.tag,
  33772. w = s.anchor,
  33773. x = [],
  33774. C = !1;
  33775. if (-1 !== s.firstTabInLine) return !1;
  33776. for (
  33777. null !== s.anchor && (s.anchorMap[s.anchor] = x), u = s.input.charCodeAt(s.position);
  33778. 0 !== u &&
  33779. (-1 !== s.firstTabInLine &&
  33780. ((s.position = s.firstTabInLine),
  33781. throwError(s, 'tab characters must not be used in indentation')),
  33782. 45 === u) &&
  33783. is_WS_OR_EOL(s.input.charCodeAt(s.position + 1));
  33784. )
  33785. if (((C = !0), s.position++, skipSeparationSpace(s, !0, -1) && s.lineIndent <= o))
  33786. x.push(null), (u = s.input.charCodeAt(s.position));
  33787. else if (
  33788. ((i = s.line),
  33789. composeNode(s, o, 3, !1, !0),
  33790. x.push(s.result),
  33791. skipSeparationSpace(s, !0, -1),
  33792. (u = s.input.charCodeAt(s.position)),
  33793. (s.line === i || s.lineIndent > o) && 0 !== u)
  33794. )
  33795. throwError(s, 'bad indentation of a sequence entry');
  33796. else if (s.lineIndent < o) break;
  33797. return !!C && ((s.tag = _), (s.anchor = w), (s.kind = 'sequence'), (s.result = x), !0);
  33798. }
  33799. function readTagProperty(s) {
  33800. var o,
  33801. i,
  33802. u,
  33803. _,
  33804. w = !1,
  33805. x = !1;
  33806. if (33 !== (_ = s.input.charCodeAt(s.position))) return !1;
  33807. if (
  33808. (null !== s.tag && throwError(s, 'duplication of a tag property'),
  33809. 60 === (_ = s.input.charCodeAt(++s.position))
  33810. ? ((w = !0), (_ = s.input.charCodeAt(++s.position)))
  33811. : 33 === _
  33812. ? ((x = !0), (i = '!!'), (_ = s.input.charCodeAt(++s.position)))
  33813. : (i = '!'),
  33814. (o = s.position),
  33815. w)
  33816. ) {
  33817. do {
  33818. _ = s.input.charCodeAt(++s.position);
  33819. } while (0 !== _ && 62 !== _);
  33820. s.position < s.length
  33821. ? ((u = s.input.slice(o, s.position)), (_ = s.input.charCodeAt(++s.position)))
  33822. : throwError(s, 'unexpected end of the stream within a verbatim tag');
  33823. } else {
  33824. for (; 0 !== _ && !is_WS_OR_EOL(_); )
  33825. 33 === _ &&
  33826. (x
  33827. ? throwError(s, 'tag suffix cannot contain exclamation marks')
  33828. : ((i = s.input.slice(o - 1, s.position + 1)),
  33829. qr.test(i) || throwError(s, 'named tag handle cannot contain such characters'),
  33830. (x = !0),
  33831. (o = s.position + 1))),
  33832. (_ = s.input.charCodeAt(++s.position));
  33833. (u = s.input.slice(o, s.position)),
  33834. Fr.test(u) && throwError(s, 'tag suffix cannot contain flow indicator characters');
  33835. }
  33836. u && !$r.test(u) && throwError(s, 'tag name cannot contain such characters: ' + u);
  33837. try {
  33838. u = decodeURIComponent(u);
  33839. } catch (o) {
  33840. throwError(s, 'tag name is malformed: ' + u);
  33841. }
  33842. return (
  33843. w
  33844. ? (s.tag = u)
  33845. : Dr.call(s.tagMap, i)
  33846. ? (s.tag = s.tagMap[i] + u)
  33847. : '!' === i
  33848. ? (s.tag = '!' + u)
  33849. : '!!' === i
  33850. ? (s.tag = 'tag:yaml.org,2002:' + u)
  33851. : throwError(s, 'undeclared tag handle "' + i + '"'),
  33852. !0
  33853. );
  33854. }
  33855. function readAnchorProperty(s) {
  33856. var o, i;
  33857. if (38 !== (i = s.input.charCodeAt(s.position))) return !1;
  33858. for (
  33859. null !== s.anchor && throwError(s, 'duplication of an anchor property'),
  33860. i = s.input.charCodeAt(++s.position),
  33861. o = s.position;
  33862. 0 !== i && !is_WS_OR_EOL(i) && !is_FLOW_INDICATOR(i);
  33863. )
  33864. i = s.input.charCodeAt(++s.position);
  33865. return (
  33866. s.position === o &&
  33867. throwError(s, 'name of an anchor node must contain at least one character'),
  33868. (s.anchor = s.input.slice(o, s.position)),
  33869. !0
  33870. );
  33871. }
  33872. function composeNode(s, o, i, u, _) {
  33873. var w,
  33874. x,
  33875. C,
  33876. j,
  33877. L,
  33878. B,
  33879. $,
  33880. V,
  33881. U,
  33882. z = 1,
  33883. Y = !1,
  33884. Z = !1;
  33885. if (
  33886. (null !== s.listener && s.listener('open', s),
  33887. (s.tag = null),
  33888. (s.anchor = null),
  33889. (s.kind = null),
  33890. (s.result = null),
  33891. (w = x = C = 4 === i || 3 === i),
  33892. u &&
  33893. skipSeparationSpace(s, !0, -1) &&
  33894. ((Y = !0),
  33895. s.lineIndent > o
  33896. ? (z = 1)
  33897. : s.lineIndent === o
  33898. ? (z = 0)
  33899. : s.lineIndent < o && (z = -1)),
  33900. 1 === z)
  33901. )
  33902. for (; readTagProperty(s) || readAnchorProperty(s); )
  33903. skipSeparationSpace(s, !0, -1)
  33904. ? ((Y = !0),
  33905. (C = w),
  33906. s.lineIndent > o
  33907. ? (z = 1)
  33908. : s.lineIndent === o
  33909. ? (z = 0)
  33910. : s.lineIndent < o && (z = -1))
  33911. : (C = !1);
  33912. if (
  33913. (C && (C = Y || _),
  33914. (1 !== z && 4 !== i) ||
  33915. ((V = 1 === i || 2 === i ? o : o + 1),
  33916. (U = s.position - s.lineStart),
  33917. 1 === z
  33918. ? (C &&
  33919. (readBlockSequence(s, U) ||
  33920. (function readBlockMapping(s, o, i) {
  33921. var u,
  33922. _,
  33923. w,
  33924. x,
  33925. C,
  33926. j,
  33927. L,
  33928. B = s.tag,
  33929. $ = s.anchor,
  33930. V = {},
  33931. U = Object.create(null),
  33932. z = null,
  33933. Y = null,
  33934. Z = null,
  33935. ee = !1,
  33936. ie = !1;
  33937. if (-1 !== s.firstTabInLine) return !1;
  33938. for (
  33939. null !== s.anchor && (s.anchorMap[s.anchor] = V),
  33940. L = s.input.charCodeAt(s.position);
  33941. 0 !== L;
  33942. ) {
  33943. if (
  33944. (ee ||
  33945. -1 === s.firstTabInLine ||
  33946. ((s.position = s.firstTabInLine),
  33947. throwError(s, 'tab characters must not be used in indentation')),
  33948. (u = s.input.charCodeAt(s.position + 1)),
  33949. (w = s.line),
  33950. (63 !== L && 58 !== L) || !is_WS_OR_EOL(u))
  33951. ) {
  33952. if (
  33953. ((x = s.line),
  33954. (C = s.lineStart),
  33955. (j = s.position),
  33956. !composeNode(s, i, 2, !1, !0))
  33957. )
  33958. break;
  33959. if (s.line === w) {
  33960. for (L = s.input.charCodeAt(s.position); is_WHITE_SPACE(L); )
  33961. L = s.input.charCodeAt(++s.position);
  33962. if (58 === L)
  33963. is_WS_OR_EOL((L = s.input.charCodeAt(++s.position))) ||
  33964. throwError(
  33965. s,
  33966. 'a whitespace character is expected after the key-value separator within a block mapping'
  33967. ),
  33968. ee &&
  33969. (storeMappingPair(s, V, U, z, Y, null, x, C, j),
  33970. (z = Y = Z = null)),
  33971. (ie = !0),
  33972. (ee = !1),
  33973. (_ = !1),
  33974. (z = s.tag),
  33975. (Y = s.result);
  33976. else {
  33977. if (!ie) return (s.tag = B), (s.anchor = $), !0;
  33978. throwError(
  33979. s,
  33980. 'can not read an implicit mapping pair; a colon is missed'
  33981. );
  33982. }
  33983. } else {
  33984. if (!ie) return (s.tag = B), (s.anchor = $), !0;
  33985. throwError(
  33986. s,
  33987. 'can not read a block mapping entry; a multiline key may not be an implicit key'
  33988. );
  33989. }
  33990. } else
  33991. 63 === L
  33992. ? (ee &&
  33993. (storeMappingPair(s, V, U, z, Y, null, x, C, j),
  33994. (z = Y = Z = null)),
  33995. (ie = !0),
  33996. (ee = !0),
  33997. (_ = !0))
  33998. : ee
  33999. ? ((ee = !1), (_ = !0))
  34000. : throwError(
  34001. s,
  34002. 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'
  34003. ),
  34004. (s.position += 1),
  34005. (L = u);
  34006. if (
  34007. ((s.line === w || s.lineIndent > o) &&
  34008. (ee && ((x = s.line), (C = s.lineStart), (j = s.position)),
  34009. composeNode(s, o, 4, !0, _) && (ee ? (Y = s.result) : (Z = s.result)),
  34010. ee ||
  34011. (storeMappingPair(s, V, U, z, Y, Z, x, C, j), (z = Y = Z = null)),
  34012. skipSeparationSpace(s, !0, -1),
  34013. (L = s.input.charCodeAt(s.position))),
  34014. (s.line === w || s.lineIndent > o) && 0 !== L)
  34015. )
  34016. throwError(s, 'bad indentation of a mapping entry');
  34017. else if (s.lineIndent < o) break;
  34018. }
  34019. return (
  34020. ee && storeMappingPair(s, V, U, z, Y, null, x, C, j),
  34021. ie && ((s.tag = B), (s.anchor = $), (s.kind = 'mapping'), (s.result = V)),
  34022. ie
  34023. );
  34024. })(s, U, V))) ||
  34025. (function readFlowCollection(s, o) {
  34026. var i,
  34027. u,
  34028. _,
  34029. w,
  34030. x,
  34031. C,
  34032. j,
  34033. L,
  34034. B,
  34035. $,
  34036. V,
  34037. U,
  34038. z = !0,
  34039. Y = s.tag,
  34040. Z = s.anchor,
  34041. ee = Object.create(null);
  34042. if (91 === (U = s.input.charCodeAt(s.position))) (x = 93), (L = !1), (w = []);
  34043. else {
  34044. if (123 !== U) return !1;
  34045. (x = 125), (L = !0), (w = {});
  34046. }
  34047. for (
  34048. null !== s.anchor && (s.anchorMap[s.anchor] = w),
  34049. U = s.input.charCodeAt(++s.position);
  34050. 0 !== U;
  34051. ) {
  34052. if (
  34053. (skipSeparationSpace(s, !0, o), (U = s.input.charCodeAt(s.position)) === x)
  34054. )
  34055. return (
  34056. s.position++,
  34057. (s.tag = Y),
  34058. (s.anchor = Z),
  34059. (s.kind = L ? 'mapping' : 'sequence'),
  34060. (s.result = w),
  34061. !0
  34062. );
  34063. z
  34064. ? 44 === U && throwError(s, "expected the node content, but found ','")
  34065. : throwError(s, 'missed comma between flow collection entries'),
  34066. (V = null),
  34067. (C = j = !1),
  34068. 63 === U &&
  34069. is_WS_OR_EOL(s.input.charCodeAt(s.position + 1)) &&
  34070. ((C = j = !0), s.position++, skipSeparationSpace(s, !0, o)),
  34071. (i = s.line),
  34072. (u = s.lineStart),
  34073. (_ = s.position),
  34074. composeNode(s, o, 1, !1, !0),
  34075. ($ = s.tag),
  34076. (B = s.result),
  34077. skipSeparationSpace(s, !0, o),
  34078. (U = s.input.charCodeAt(s.position)),
  34079. (!j && s.line !== i) ||
  34080. 58 !== U ||
  34081. ((C = !0),
  34082. (U = s.input.charCodeAt(++s.position)),
  34083. skipSeparationSpace(s, !0, o),
  34084. composeNode(s, o, 1, !1, !0),
  34085. (V = s.result)),
  34086. L
  34087. ? storeMappingPair(s, w, ee, $, B, V, i, u, _)
  34088. : C
  34089. ? w.push(storeMappingPair(s, null, ee, $, B, V, i, u, _))
  34090. : w.push(B),
  34091. skipSeparationSpace(s, !0, o),
  34092. 44 === (U = s.input.charCodeAt(s.position))
  34093. ? ((z = !0), (U = s.input.charCodeAt(++s.position)))
  34094. : (z = !1);
  34095. }
  34096. throwError(s, 'unexpected end of the stream within a flow collection');
  34097. })(s, V)
  34098. ? (Z = !0)
  34099. : ((x &&
  34100. (function readBlockScalar(s, o) {
  34101. var i,
  34102. u,
  34103. _,
  34104. w,
  34105. x,
  34106. C = 1,
  34107. j = !1,
  34108. L = !1,
  34109. B = o,
  34110. $ = 0,
  34111. V = !1;
  34112. if (124 === (w = s.input.charCodeAt(s.position))) u = !1;
  34113. else {
  34114. if (62 !== w) return !1;
  34115. u = !0;
  34116. }
  34117. for (s.kind = 'scalar', s.result = ''; 0 !== w; )
  34118. if (43 === (w = s.input.charCodeAt(++s.position)) || 45 === w)
  34119. 1 === C
  34120. ? (C = 43 === w ? 3 : 2)
  34121. : throwError(s, 'repeat of a chomping mode identifier');
  34122. else {
  34123. if (!((_ = 48 <= (x = w) && x <= 57 ? x - 48 : -1) >= 0)) break;
  34124. 0 === _
  34125. ? throwError(
  34126. s,
  34127. 'bad explicit indentation width of a block scalar; it cannot be less than one'
  34128. )
  34129. : L
  34130. ? throwError(s, 'repeat of an indentation width identifier')
  34131. : ((B = o + _ - 1), (L = !0));
  34132. }
  34133. if (is_WHITE_SPACE(w)) {
  34134. do {
  34135. w = s.input.charCodeAt(++s.position);
  34136. } while (is_WHITE_SPACE(w));
  34137. if (35 === w)
  34138. do {
  34139. w = s.input.charCodeAt(++s.position);
  34140. } while (!is_EOL(w) && 0 !== w);
  34141. }
  34142. for (; 0 !== w; ) {
  34143. for (
  34144. readLineBreak(s), s.lineIndent = 0, w = s.input.charCodeAt(s.position);
  34145. (!L || s.lineIndent < B) && 32 === w;
  34146. )
  34147. s.lineIndent++, (w = s.input.charCodeAt(++s.position));
  34148. if ((!L && s.lineIndent > B && (B = s.lineIndent), is_EOL(w))) $++;
  34149. else {
  34150. if (s.lineIndent < B) {
  34151. 3 === C
  34152. ? (s.result += tr.repeat('\n', j ? 1 + $ : $))
  34153. : 1 === C && j && (s.result += '\n');
  34154. break;
  34155. }
  34156. for (
  34157. u
  34158. ? is_WHITE_SPACE(w)
  34159. ? ((V = !0), (s.result += tr.repeat('\n', j ? 1 + $ : $)))
  34160. : V
  34161. ? ((V = !1), (s.result += tr.repeat('\n', $ + 1)))
  34162. : 0 === $
  34163. ? j && (s.result += ' ')
  34164. : (s.result += tr.repeat('\n', $))
  34165. : (s.result += tr.repeat('\n', j ? 1 + $ : $)),
  34166. j = !0,
  34167. L = !0,
  34168. $ = 0,
  34169. i = s.position;
  34170. !is_EOL(w) && 0 !== w;
  34171. )
  34172. w = s.input.charCodeAt(++s.position);
  34173. captureSegment(s, i, s.position, !1);
  34174. }
  34175. }
  34176. return !0;
  34177. })(s, V)) ||
  34178. (function readSingleQuotedScalar(s, o) {
  34179. var i, u, _;
  34180. if (39 !== (i = s.input.charCodeAt(s.position))) return !1;
  34181. for (
  34182. s.kind = 'scalar', s.result = '', s.position++, u = _ = s.position;
  34183. 0 !== (i = s.input.charCodeAt(s.position));
  34184. )
  34185. if (39 === i) {
  34186. if (
  34187. (captureSegment(s, u, s.position, !0),
  34188. 39 !== (i = s.input.charCodeAt(++s.position)))
  34189. )
  34190. return !0;
  34191. (u = s.position), s.position++, (_ = s.position);
  34192. } else
  34193. is_EOL(i)
  34194. ? (captureSegment(s, u, _, !0),
  34195. writeFoldedLines(s, skipSeparationSpace(s, !1, o)),
  34196. (u = _ = s.position))
  34197. : s.position === s.lineStart && testDocumentSeparator(s)
  34198. ? throwError(
  34199. s,
  34200. 'unexpected end of the document within a single quoted scalar'
  34201. )
  34202. : (s.position++, (_ = s.position));
  34203. throwError(s, 'unexpected end of the stream within a single quoted scalar');
  34204. })(s, V) ||
  34205. (function readDoubleQuotedScalar(s, o) {
  34206. var i, u, _, w, x, C, j;
  34207. if (34 !== (C = s.input.charCodeAt(s.position))) return !1;
  34208. for (
  34209. s.kind = 'scalar', s.result = '', s.position++, i = u = s.position;
  34210. 0 !== (C = s.input.charCodeAt(s.position));
  34211. ) {
  34212. if (34 === C) return captureSegment(s, i, s.position, !0), s.position++, !0;
  34213. if (92 === C) {
  34214. if (
  34215. (captureSegment(s, i, s.position, !0),
  34216. is_EOL((C = s.input.charCodeAt(++s.position))))
  34217. )
  34218. skipSeparationSpace(s, !1, o);
  34219. else if (C < 256 && Vr[C]) (s.result += Ur[C]), s.position++;
  34220. else if (
  34221. (x = 120 === (j = C) ? 2 : 117 === j ? 4 : 85 === j ? 8 : 0) > 0
  34222. ) {
  34223. for (_ = x, w = 0; _ > 0; _--)
  34224. (x = fromHexCode((C = s.input.charCodeAt(++s.position)))) >= 0
  34225. ? (w = (w << 4) + x)
  34226. : throwError(s, 'expected hexadecimal character');
  34227. (s.result += charFromCodepoint(w)), s.position++;
  34228. } else throwError(s, 'unknown escape sequence');
  34229. i = u = s.position;
  34230. } else
  34231. is_EOL(C)
  34232. ? (captureSegment(s, i, u, !0),
  34233. writeFoldedLines(s, skipSeparationSpace(s, !1, o)),
  34234. (i = u = s.position))
  34235. : s.position === s.lineStart && testDocumentSeparator(s)
  34236. ? throwError(
  34237. s,
  34238. 'unexpected end of the document within a double quoted scalar'
  34239. )
  34240. : (s.position++, (u = s.position));
  34241. }
  34242. throwError(s, 'unexpected end of the stream within a double quoted scalar');
  34243. })(s, V)
  34244. ? (Z = !0)
  34245. : !(function readAlias(s) {
  34246. var o, i, u;
  34247. if (42 !== (u = s.input.charCodeAt(s.position))) return !1;
  34248. for (
  34249. u = s.input.charCodeAt(++s.position), o = s.position;
  34250. 0 !== u && !is_WS_OR_EOL(u) && !is_FLOW_INDICATOR(u);
  34251. )
  34252. u = s.input.charCodeAt(++s.position);
  34253. return (
  34254. s.position === o &&
  34255. throwError(
  34256. s,
  34257. 'name of an alias node must contain at least one character'
  34258. ),
  34259. (i = s.input.slice(o, s.position)),
  34260. Dr.call(s.anchorMap, i) ||
  34261. throwError(s, 'unidentified alias "' + i + '"'),
  34262. (s.result = s.anchorMap[i]),
  34263. skipSeparationSpace(s, !0, -1),
  34264. !0
  34265. );
  34266. })(s)
  34267. ? (function readPlainScalar(s, o, i) {
  34268. var u,
  34269. _,
  34270. w,
  34271. x,
  34272. C,
  34273. j,
  34274. L,
  34275. B,
  34276. $ = s.kind,
  34277. V = s.result;
  34278. if (
  34279. is_WS_OR_EOL((B = s.input.charCodeAt(s.position))) ||
  34280. is_FLOW_INDICATOR(B) ||
  34281. 35 === B ||
  34282. 38 === B ||
  34283. 42 === B ||
  34284. 33 === B ||
  34285. 124 === B ||
  34286. 62 === B ||
  34287. 39 === B ||
  34288. 34 === B ||
  34289. 37 === B ||
  34290. 64 === B ||
  34291. 96 === B
  34292. )
  34293. return !1;
  34294. if (
  34295. (63 === B || 45 === B) &&
  34296. (is_WS_OR_EOL((u = s.input.charCodeAt(s.position + 1))) ||
  34297. (i && is_FLOW_INDICATOR(u)))
  34298. )
  34299. return !1;
  34300. for (
  34301. s.kind = 'scalar', s.result = '', _ = w = s.position, x = !1;
  34302. 0 !== B;
  34303. ) {
  34304. if (58 === B) {
  34305. if (
  34306. is_WS_OR_EOL((u = s.input.charCodeAt(s.position + 1))) ||
  34307. (i && is_FLOW_INDICATOR(u))
  34308. )
  34309. break;
  34310. } else if (35 === B) {
  34311. if (is_WS_OR_EOL(s.input.charCodeAt(s.position - 1))) break;
  34312. } else {
  34313. if (
  34314. (s.position === s.lineStart && testDocumentSeparator(s)) ||
  34315. (i && is_FLOW_INDICATOR(B))
  34316. )
  34317. break;
  34318. if (is_EOL(B)) {
  34319. if (
  34320. ((C = s.line),
  34321. (j = s.lineStart),
  34322. (L = s.lineIndent),
  34323. skipSeparationSpace(s, !1, -1),
  34324. s.lineIndent >= o)
  34325. ) {
  34326. (x = !0), (B = s.input.charCodeAt(s.position));
  34327. continue;
  34328. }
  34329. (s.position = w),
  34330. (s.line = C),
  34331. (s.lineStart = j),
  34332. (s.lineIndent = L);
  34333. break;
  34334. }
  34335. }
  34336. x &&
  34337. (captureSegment(s, _, w, !1),
  34338. writeFoldedLines(s, s.line - C),
  34339. (_ = w = s.position),
  34340. (x = !1)),
  34341. is_WHITE_SPACE(B) || (w = s.position + 1),
  34342. (B = s.input.charCodeAt(++s.position));
  34343. }
  34344. return (
  34345. captureSegment(s, _, w, !1),
  34346. !!s.result || ((s.kind = $), (s.result = V), !1)
  34347. );
  34348. })(s, V, 1 === i) && ((Z = !0), null === s.tag && (s.tag = '?'))
  34349. : ((Z = !0),
  34350. (null === s.tag && null === s.anchor) ||
  34351. throwError(s, 'alias node should not have any properties')),
  34352. null !== s.anchor && (s.anchorMap[s.anchor] = s.result))
  34353. : 0 === z && (Z = C && readBlockSequence(s, U))),
  34354. null === s.tag)
  34355. )
  34356. null !== s.anchor && (s.anchorMap[s.anchor] = s.result);
  34357. else if ('?' === s.tag) {
  34358. for (
  34359. null !== s.result &&
  34360. 'scalar' !== s.kind &&
  34361. throwError(
  34362. s,
  34363. 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + s.kind + '"'
  34364. ),
  34365. j = 0,
  34366. L = s.implicitTypes.length;
  34367. j < L;
  34368. j += 1
  34369. )
  34370. if (($ = s.implicitTypes[j]).resolve(s.result)) {
  34371. (s.result = $.construct(s.result)),
  34372. (s.tag = $.tag),
  34373. null !== s.anchor && (s.anchorMap[s.anchor] = s.result);
  34374. break;
  34375. }
  34376. } else if ('!' !== s.tag) {
  34377. if (Dr.call(s.typeMap[s.kind || 'fallback'], s.tag))
  34378. $ = s.typeMap[s.kind || 'fallback'][s.tag];
  34379. else
  34380. for (
  34381. $ = null, j = 0, L = (B = s.typeMap.multi[s.kind || 'fallback']).length;
  34382. j < L;
  34383. j += 1
  34384. )
  34385. if (s.tag.slice(0, B[j].tag.length) === B[j].tag) {
  34386. $ = B[j];
  34387. break;
  34388. }
  34389. $ || throwError(s, 'unknown tag !<' + s.tag + '>'),
  34390. null !== s.result &&
  34391. $.kind !== s.kind &&
  34392. throwError(
  34393. s,
  34394. 'unacceptable node kind for !<' +
  34395. s.tag +
  34396. '> tag; it should be "' +
  34397. $.kind +
  34398. '", not "' +
  34399. s.kind +
  34400. '"'
  34401. ),
  34402. $.resolve(s.result, s.tag)
  34403. ? ((s.result = $.construct(s.result, s.tag)),
  34404. null !== s.anchor && (s.anchorMap[s.anchor] = s.result))
  34405. : throwError(s, 'cannot resolve a node with !<' + s.tag + '> explicit tag');
  34406. }
  34407. return (
  34408. null !== s.listener && s.listener('close', s), null !== s.tag || null !== s.anchor || Z
  34409. );
  34410. }
  34411. function readDocument(s) {
  34412. var o,
  34413. i,
  34414. u,
  34415. _,
  34416. w = s.position,
  34417. x = !1;
  34418. for (
  34419. s.version = null,
  34420. s.checkLineBreaks = s.legacy,
  34421. s.tagMap = Object.create(null),
  34422. s.anchorMap = Object.create(null);
  34423. 0 !== (_ = s.input.charCodeAt(s.position)) &&
  34424. (skipSeparationSpace(s, !0, -1),
  34425. (_ = s.input.charCodeAt(s.position)),
  34426. !(s.lineIndent > 0 || 37 !== _));
  34427. ) {
  34428. for (
  34429. x = !0, _ = s.input.charCodeAt(++s.position), o = s.position;
  34430. 0 !== _ && !is_WS_OR_EOL(_);
  34431. )
  34432. _ = s.input.charCodeAt(++s.position);
  34433. for (
  34434. u = [],
  34435. (i = s.input.slice(o, s.position)).length < 1 &&
  34436. throwError(s, 'directive name must not be less than one character in length');
  34437. 0 !== _;
  34438. ) {
  34439. for (; is_WHITE_SPACE(_); ) _ = s.input.charCodeAt(++s.position);
  34440. if (35 === _) {
  34441. do {
  34442. _ = s.input.charCodeAt(++s.position);
  34443. } while (0 !== _ && !is_EOL(_));
  34444. break;
  34445. }
  34446. if (is_EOL(_)) break;
  34447. for (o = s.position; 0 !== _ && !is_WS_OR_EOL(_); )
  34448. _ = s.input.charCodeAt(++s.position);
  34449. u.push(s.input.slice(o, s.position));
  34450. }
  34451. 0 !== _ && readLineBreak(s),
  34452. Dr.call(Wr, i)
  34453. ? Wr[i](s, i, u)
  34454. : throwWarning(s, 'unknown document directive "' + i + '"');
  34455. }
  34456. skipSeparationSpace(s, !0, -1),
  34457. 0 === s.lineIndent &&
  34458. 45 === s.input.charCodeAt(s.position) &&
  34459. 45 === s.input.charCodeAt(s.position + 1) &&
  34460. 45 === s.input.charCodeAt(s.position + 2)
  34461. ? ((s.position += 3), skipSeparationSpace(s, !0, -1))
  34462. : x && throwError(s, 'directives end mark is expected'),
  34463. composeNode(s, s.lineIndent - 1, 4, !1, !0),
  34464. skipSeparationSpace(s, !0, -1),
  34465. s.checkLineBreaks &&
  34466. Br.test(s.input.slice(w, s.position)) &&
  34467. throwWarning(s, 'non-ASCII line breaks are interpreted as content'),
  34468. s.documents.push(s.result),
  34469. s.position === s.lineStart && testDocumentSeparator(s)
  34470. ? 46 === s.input.charCodeAt(s.position) &&
  34471. ((s.position += 3), skipSeparationSpace(s, !0, -1))
  34472. : s.position < s.length - 1 &&
  34473. throwError(s, 'end of the stream or a document separator is expected');
  34474. }
  34475. function loadDocuments(s, o) {
  34476. (o = o || {}),
  34477. 0 !== (s = String(s)).length &&
  34478. (10 !== s.charCodeAt(s.length - 1) &&
  34479. 13 !== s.charCodeAt(s.length - 1) &&
  34480. (s += '\n'),
  34481. 65279 === s.charCodeAt(0) && (s = s.slice(1)));
  34482. var i = new State$1(s, o),
  34483. u = s.indexOf('\0');
  34484. for (
  34485. -1 !== u && ((i.position = u), throwError(i, 'null byte is not allowed in input')),
  34486. i.input += '\0';
  34487. 32 === i.input.charCodeAt(i.position);
  34488. )
  34489. (i.lineIndent += 1), (i.position += 1);
  34490. for (; i.position < i.length - 1; ) readDocument(i);
  34491. return i.documents;
  34492. }
  34493. var Kr = {
  34494. loadAll: function loadAll$1(s, o, i) {
  34495. null !== o && 'object' == typeof o && void 0 === i && ((i = o), (o = null));
  34496. var u = loadDocuments(s, i);
  34497. if ('function' != typeof o) return u;
  34498. for (var _ = 0, w = u.length; _ < w; _ += 1) o(u[_]);
  34499. },
  34500. load: function load$1(s, o) {
  34501. var i = loadDocuments(s, o);
  34502. if (0 !== i.length) {
  34503. if (1 === i.length) return i[0];
  34504. throw new rr('expected a single document in the stream, but found more');
  34505. }
  34506. }
  34507. },
  34508. Hr = Object.prototype.toString,
  34509. Jr = Object.prototype.hasOwnProperty,
  34510. Gr = 65279,
  34511. Yr = {
  34512. 0: '\\0',
  34513. 7: '\\a',
  34514. 8: '\\b',
  34515. 9: '\\t',
  34516. 10: '\\n',
  34517. 11: '\\v',
  34518. 12: '\\f',
  34519. 13: '\\r',
  34520. 27: '\\e',
  34521. 34: '\\"',
  34522. 92: '\\\\',
  34523. 133: '\\N',
  34524. 160: '\\_',
  34525. 8232: '\\L',
  34526. 8233: '\\P'
  34527. },
  34528. Xr = [
  34529. 'y',
  34530. 'Y',
  34531. 'yes',
  34532. 'Yes',
  34533. 'YES',
  34534. 'on',
  34535. 'On',
  34536. 'ON',
  34537. 'n',
  34538. 'N',
  34539. 'no',
  34540. 'No',
  34541. 'NO',
  34542. 'off',
  34543. 'Off',
  34544. 'OFF'
  34545. ],
  34546. Zr = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
  34547. function encodeHex(s) {
  34548. var o, i, u;
  34549. if (((o = s.toString(16).toUpperCase()), s <= 255)) (i = 'x'), (u = 2);
  34550. else if (s <= 65535) (i = 'u'), (u = 4);
  34551. else {
  34552. if (!(s <= 4294967295))
  34553. throw new rr('code point within a string may not be greater than 0xFFFFFFFF');
  34554. (i = 'U'), (u = 8);
  34555. }
  34556. return '\\' + i + tr.repeat('0', u - o.length) + o;
  34557. }
  34558. function State(s) {
  34559. (this.schema = s.schema || Rr),
  34560. (this.indent = Math.max(1, s.indent || 2)),
  34561. (this.noArrayIndent = s.noArrayIndent || !1),
  34562. (this.skipInvalid = s.skipInvalid || !1),
  34563. (this.flowLevel = tr.isNothing(s.flowLevel) ? -1 : s.flowLevel),
  34564. (this.styleMap = (function compileStyleMap(s, o) {
  34565. var i, u, _, w, x, C, j;
  34566. if (null === o) return {};
  34567. for (i = {}, _ = 0, w = (u = Object.keys(o)).length; _ < w; _ += 1)
  34568. (x = u[_]),
  34569. (C = String(o[x])),
  34570. '!!' === x.slice(0, 2) && (x = 'tag:yaml.org,2002:' + x.slice(2)),
  34571. (j = s.compiledTypeMap.fallback[x]) &&
  34572. Jr.call(j.styleAliases, C) &&
  34573. (C = j.styleAliases[C]),
  34574. (i[x] = C);
  34575. return i;
  34576. })(this.schema, s.styles || null)),
  34577. (this.sortKeys = s.sortKeys || !1),
  34578. (this.lineWidth = s.lineWidth || 80),
  34579. (this.noRefs = s.noRefs || !1),
  34580. (this.noCompatMode = s.noCompatMode || !1),
  34581. (this.condenseFlow = s.condenseFlow || !1),
  34582. (this.quotingType = '"' === s.quotingType ? 2 : 1),
  34583. (this.forceQuotes = s.forceQuotes || !1),
  34584. (this.replacer = 'function' == typeof s.replacer ? s.replacer : null),
  34585. (this.implicitTypes = this.schema.compiledImplicit),
  34586. (this.explicitTypes = this.schema.compiledExplicit),
  34587. (this.tag = null),
  34588. (this.result = ''),
  34589. (this.duplicates = []),
  34590. (this.usedDuplicates = null);
  34591. }
  34592. function indentString(s, o) {
  34593. for (var i, u = tr.repeat(' ', o), _ = 0, w = -1, x = '', C = s.length; _ < C; )
  34594. -1 === (w = s.indexOf('\n', _))
  34595. ? ((i = s.slice(_)), (_ = C))
  34596. : ((i = s.slice(_, w + 1)), (_ = w + 1)),
  34597. i.length && '\n' !== i && (x += u),
  34598. (x += i);
  34599. return x;
  34600. }
  34601. function generateNextLine(s, o) {
  34602. return '\n' + tr.repeat(' ', s.indent * o);
  34603. }
  34604. function isWhitespace(s) {
  34605. return 32 === s || 9 === s;
  34606. }
  34607. function isPrintable(s) {
  34608. return (
  34609. (32 <= s && s <= 126) ||
  34610. (161 <= s && s <= 55295 && 8232 !== s && 8233 !== s) ||
  34611. (57344 <= s && s <= 65533 && s !== Gr) ||
  34612. (65536 <= s && s <= 1114111)
  34613. );
  34614. }
  34615. function isNsCharOrWhitespace(s) {
  34616. return isPrintable(s) && s !== Gr && 13 !== s && 10 !== s;
  34617. }
  34618. function isPlainSafe(s, o, i) {
  34619. var u = isNsCharOrWhitespace(s),
  34620. _ = u && !isWhitespace(s);
  34621. return (
  34622. ((i ? u : u && 44 !== s && 91 !== s && 93 !== s && 123 !== s && 125 !== s) &&
  34623. 35 !== s &&
  34624. !(58 === o && !_)) ||
  34625. (isNsCharOrWhitespace(o) && !isWhitespace(o) && 35 === s) ||
  34626. (58 === o && _)
  34627. );
  34628. }
  34629. function codePointAt(s, o) {
  34630. var i,
  34631. u = s.charCodeAt(o);
  34632. return u >= 55296 &&
  34633. u <= 56319 &&
  34634. o + 1 < s.length &&
  34635. (i = s.charCodeAt(o + 1)) >= 56320 &&
  34636. i <= 57343
  34637. ? 1024 * (u - 55296) + i - 56320 + 65536
  34638. : u;
  34639. }
  34640. function needIndentIndicator(s) {
  34641. return /^\n* /.test(s);
  34642. }
  34643. function chooseScalarStyle(s, o, i, u, _, w, x, C) {
  34644. var j,
  34645. L = 0,
  34646. B = null,
  34647. $ = !1,
  34648. V = !1,
  34649. U = -1 !== u,
  34650. z = -1,
  34651. Y =
  34652. (function isPlainSafeFirst(s) {
  34653. return (
  34654. isPrintable(s) &&
  34655. s !== Gr &&
  34656. !isWhitespace(s) &&
  34657. 45 !== s &&
  34658. 63 !== s &&
  34659. 58 !== s &&
  34660. 44 !== s &&
  34661. 91 !== s &&
  34662. 93 !== s &&
  34663. 123 !== s &&
  34664. 125 !== s &&
  34665. 35 !== s &&
  34666. 38 !== s &&
  34667. 42 !== s &&
  34668. 33 !== s &&
  34669. 124 !== s &&
  34670. 61 !== s &&
  34671. 62 !== s &&
  34672. 39 !== s &&
  34673. 34 !== s &&
  34674. 37 !== s &&
  34675. 64 !== s &&
  34676. 96 !== s
  34677. );
  34678. })(codePointAt(s, 0)) &&
  34679. (function isPlainSafeLast(s) {
  34680. return !isWhitespace(s) && 58 !== s;
  34681. })(codePointAt(s, s.length - 1));
  34682. if (o || x)
  34683. for (j = 0; j < s.length; L >= 65536 ? (j += 2) : j++) {
  34684. if (!isPrintable((L = codePointAt(s, j)))) return 5;
  34685. (Y = Y && isPlainSafe(L, B, C)), (B = L);
  34686. }
  34687. else {
  34688. for (j = 0; j < s.length; L >= 65536 ? (j += 2) : j++) {
  34689. if (10 === (L = codePointAt(s, j)))
  34690. ($ = !0), U && ((V = V || (j - z - 1 > u && ' ' !== s[z + 1])), (z = j));
  34691. else if (!isPrintable(L)) return 5;
  34692. (Y = Y && isPlainSafe(L, B, C)), (B = L);
  34693. }
  34694. V = V || (U && j - z - 1 > u && ' ' !== s[z + 1]);
  34695. }
  34696. return $ || V
  34697. ? i > 9 && needIndentIndicator(s)
  34698. ? 5
  34699. : x
  34700. ? 2 === w
  34701. ? 5
  34702. : 2
  34703. : V
  34704. ? 4
  34705. : 3
  34706. : !Y || x || _(s)
  34707. ? 2 === w
  34708. ? 5
  34709. : 2
  34710. : 1;
  34711. }
  34712. function writeScalar(s, o, i, u, _) {
  34713. s.dump = (function () {
  34714. if (0 === o.length) return 2 === s.quotingType ? '""' : "''";
  34715. if (!s.noCompatMode && (-1 !== Xr.indexOf(o) || Zr.test(o)))
  34716. return 2 === s.quotingType ? '"' + o + '"' : "'" + o + "'";
  34717. var w = s.indent * Math.max(1, i),
  34718. x = -1 === s.lineWidth ? -1 : Math.max(Math.min(s.lineWidth, 40), s.lineWidth - w),
  34719. C = u || (s.flowLevel > -1 && i >= s.flowLevel);
  34720. switch (
  34721. chooseScalarStyle(
  34722. o,
  34723. C,
  34724. s.indent,
  34725. x,
  34726. function testAmbiguity(o) {
  34727. return (function testImplicitResolving(s, o) {
  34728. var i, u;
  34729. for (i = 0, u = s.implicitTypes.length; i < u; i += 1)
  34730. if (s.implicitTypes[i].resolve(o)) return !0;
  34731. return !1;
  34732. })(s, o);
  34733. },
  34734. s.quotingType,
  34735. s.forceQuotes && !u,
  34736. _
  34737. )
  34738. ) {
  34739. case 1:
  34740. return o;
  34741. case 2:
  34742. return "'" + o.replace(/'/g, "''") + "'";
  34743. case 3:
  34744. return '|' + blockHeader(o, s.indent) + dropEndingNewline(indentString(o, w));
  34745. case 4:
  34746. return (
  34747. '>' +
  34748. blockHeader(o, s.indent) +
  34749. dropEndingNewline(
  34750. indentString(
  34751. (function foldString(s, o) {
  34752. var i,
  34753. u,
  34754. _ = /(\n+)([^\n]*)/g,
  34755. w =
  34756. ((C = s.indexOf('\n')),
  34757. (C = -1 !== C ? C : s.length),
  34758. (_.lastIndex = C),
  34759. foldLine(s.slice(0, C), o)),
  34760. x = '\n' === s[0] || ' ' === s[0];
  34761. var C;
  34762. for (; (u = _.exec(s)); ) {
  34763. var j = u[1],
  34764. L = u[2];
  34765. (i = ' ' === L[0]),
  34766. (w += j + (x || i || '' === L ? '' : '\n') + foldLine(L, o)),
  34767. (x = i);
  34768. }
  34769. return w;
  34770. })(o, x),
  34771. w
  34772. )
  34773. )
  34774. );
  34775. case 5:
  34776. return (
  34777. '"' +
  34778. (function escapeString(s) {
  34779. for (var o, i = '', u = 0, _ = 0; _ < s.length; u >= 65536 ? (_ += 2) : _++)
  34780. (u = codePointAt(s, _)),
  34781. !(o = Yr[u]) && isPrintable(u)
  34782. ? ((i += s[_]), u >= 65536 && (i += s[_ + 1]))
  34783. : (i += o || encodeHex(u));
  34784. return i;
  34785. })(o) +
  34786. '"'
  34787. );
  34788. default:
  34789. throw new rr('impossible error: invalid scalar style');
  34790. }
  34791. })();
  34792. }
  34793. function blockHeader(s, o) {
  34794. var i = needIndentIndicator(s) ? String(o) : '',
  34795. u = '\n' === s[s.length - 1];
  34796. return i + (u && ('\n' === s[s.length - 2] || '\n' === s) ? '+' : u ? '' : '-') + '\n';
  34797. }
  34798. function dropEndingNewline(s) {
  34799. return '\n' === s[s.length - 1] ? s.slice(0, -1) : s;
  34800. }
  34801. function foldLine(s, o) {
  34802. if ('' === s || ' ' === s[0]) return s;
  34803. for (var i, u, _ = / [^ ]/g, w = 0, x = 0, C = 0, j = ''; (i = _.exec(s)); )
  34804. (C = i.index) - w > o &&
  34805. ((u = x > w ? x : C), (j += '\n' + s.slice(w, u)), (w = u + 1)),
  34806. (x = C);
  34807. return (
  34808. (j += '\n'),
  34809. s.length - w > o && x > w
  34810. ? (j += s.slice(w, x) + '\n' + s.slice(x + 1))
  34811. : (j += s.slice(w)),
  34812. j.slice(1)
  34813. );
  34814. }
  34815. function writeBlockSequence(s, o, i, u) {
  34816. var _,
  34817. w,
  34818. x,
  34819. C = '',
  34820. j = s.tag;
  34821. for (_ = 0, w = i.length; _ < w; _ += 1)
  34822. (x = i[_]),
  34823. s.replacer && (x = s.replacer.call(i, String(_), x)),
  34824. (writeNode(s, o + 1, x, !0, !0, !1, !0) ||
  34825. (void 0 === x && writeNode(s, o + 1, null, !0, !0, !1, !0))) &&
  34826. ((u && '' === C) || (C += generateNextLine(s, o)),
  34827. s.dump && 10 === s.dump.charCodeAt(0) ? (C += '-') : (C += '- '),
  34828. (C += s.dump));
  34829. (s.tag = j), (s.dump = C || '[]');
  34830. }
  34831. function detectType(s, o, i) {
  34832. var u, _, w, x, C, j;
  34833. for (w = 0, x = (_ = i ? s.explicitTypes : s.implicitTypes).length; w < x; w += 1)
  34834. if (
  34835. ((C = _[w]).instanceOf || C.predicate) &&
  34836. (!C.instanceOf || ('object' == typeof o && o instanceof C.instanceOf)) &&
  34837. (!C.predicate || C.predicate(o))
  34838. ) {
  34839. if (
  34840. (i
  34841. ? C.multi && C.representName
  34842. ? (s.tag = C.representName(o))
  34843. : (s.tag = C.tag)
  34844. : (s.tag = '?'),
  34845. C.represent)
  34846. ) {
  34847. if (
  34848. ((j = s.styleMap[C.tag] || C.defaultStyle),
  34849. '[object Function]' === Hr.call(C.represent))
  34850. )
  34851. u = C.represent(o, j);
  34852. else {
  34853. if (!Jr.call(C.represent, j))
  34854. throw new rr('!<' + C.tag + '> tag resolver accepts not "' + j + '" style');
  34855. u = C.represent[j](o, j);
  34856. }
  34857. s.dump = u;
  34858. }
  34859. return !0;
  34860. }
  34861. return !1;
  34862. }
  34863. function writeNode(s, o, i, u, _, w, x) {
  34864. (s.tag = null), (s.dump = i), detectType(s, i, !1) || detectType(s, i, !0);
  34865. var C,
  34866. j = Hr.call(s.dump),
  34867. L = u;
  34868. u && (u = s.flowLevel < 0 || s.flowLevel > o);
  34869. var B,
  34870. $,
  34871. V = '[object Object]' === j || '[object Array]' === j;
  34872. if (
  34873. (V && ($ = -1 !== (B = s.duplicates.indexOf(i))),
  34874. ((null !== s.tag && '?' !== s.tag) || $ || (2 !== s.indent && o > 0)) && (_ = !1),
  34875. $ && s.usedDuplicates[B])
  34876. )
  34877. s.dump = '*ref_' + B;
  34878. else {
  34879. if (
  34880. (V && $ && !s.usedDuplicates[B] && (s.usedDuplicates[B] = !0),
  34881. '[object Object]' === j)
  34882. )
  34883. u && 0 !== Object.keys(s.dump).length
  34884. ? (!(function writeBlockMapping(s, o, i, u) {
  34885. var _,
  34886. w,
  34887. x,
  34888. C,
  34889. j,
  34890. L,
  34891. B = '',
  34892. $ = s.tag,
  34893. V = Object.keys(i);
  34894. if (!0 === s.sortKeys) V.sort();
  34895. else if ('function' == typeof s.sortKeys) V.sort(s.sortKeys);
  34896. else if (s.sortKeys) throw new rr('sortKeys must be a boolean or a function');
  34897. for (_ = 0, w = V.length; _ < w; _ += 1)
  34898. (L = ''),
  34899. (u && '' === B) || (L += generateNextLine(s, o)),
  34900. (C = i[(x = V[_])]),
  34901. s.replacer && (C = s.replacer.call(i, x, C)),
  34902. writeNode(s, o + 1, x, !0, !0, !0) &&
  34903. ((j =
  34904. (null !== s.tag && '?' !== s.tag) ||
  34905. (s.dump && s.dump.length > 1024)) &&
  34906. (s.dump && 10 === s.dump.charCodeAt(0) ? (L += '?') : (L += '? ')),
  34907. (L += s.dump),
  34908. j && (L += generateNextLine(s, o)),
  34909. writeNode(s, o + 1, C, !0, j) &&
  34910. (s.dump && 10 === s.dump.charCodeAt(0) ? (L += ':') : (L += ': '),
  34911. (B += L += s.dump)));
  34912. (s.tag = $), (s.dump = B || '{}');
  34913. })(s, o, s.dump, _),
  34914. $ && (s.dump = '&ref_' + B + s.dump))
  34915. : (!(function writeFlowMapping(s, o, i) {
  34916. var u,
  34917. _,
  34918. w,
  34919. x,
  34920. C,
  34921. j = '',
  34922. L = s.tag,
  34923. B = Object.keys(i);
  34924. for (u = 0, _ = B.length; u < _; u += 1)
  34925. (C = ''),
  34926. '' !== j && (C += ', '),
  34927. s.condenseFlow && (C += '"'),
  34928. (x = i[(w = B[u])]),
  34929. s.replacer && (x = s.replacer.call(i, w, x)),
  34930. writeNode(s, o, w, !1, !1) &&
  34931. (s.dump.length > 1024 && (C += '? '),
  34932. (C +=
  34933. s.dump +
  34934. (s.condenseFlow ? '"' : '') +
  34935. ':' +
  34936. (s.condenseFlow ? '' : ' ')),
  34937. writeNode(s, o, x, !1, !1) && (j += C += s.dump));
  34938. (s.tag = L), (s.dump = '{' + j + '}');
  34939. })(s, o, s.dump),
  34940. $ && (s.dump = '&ref_' + B + ' ' + s.dump));
  34941. else if ('[object Array]' === j)
  34942. u && 0 !== s.dump.length
  34943. ? (s.noArrayIndent && !x && o > 0
  34944. ? writeBlockSequence(s, o - 1, s.dump, _)
  34945. : writeBlockSequence(s, o, s.dump, _),
  34946. $ && (s.dump = '&ref_' + B + s.dump))
  34947. : (!(function writeFlowSequence(s, o, i) {
  34948. var u,
  34949. _,
  34950. w,
  34951. x = '',
  34952. C = s.tag;
  34953. for (u = 0, _ = i.length; u < _; u += 1)
  34954. (w = i[u]),
  34955. s.replacer && (w = s.replacer.call(i, String(u), w)),
  34956. (writeNode(s, o, w, !1, !1) ||
  34957. (void 0 === w && writeNode(s, o, null, !1, !1))) &&
  34958. ('' !== x && (x += ',' + (s.condenseFlow ? '' : ' ')), (x += s.dump));
  34959. (s.tag = C), (s.dump = '[' + x + ']');
  34960. })(s, o, s.dump),
  34961. $ && (s.dump = '&ref_' + B + ' ' + s.dump));
  34962. else {
  34963. if ('[object String]' !== j) {
  34964. if ('[object Undefined]' === j) return !1;
  34965. if (s.skipInvalid) return !1;
  34966. throw new rr('unacceptable kind of an object to dump ' + j);
  34967. }
  34968. '?' !== s.tag && writeScalar(s, s.dump, o, w, L);
  34969. }
  34970. null !== s.tag &&
  34971. '?' !== s.tag &&
  34972. ((C = encodeURI('!' === s.tag[0] ? s.tag.slice(1) : s.tag).replace(/!/g, '%21')),
  34973. (C =
  34974. '!' === s.tag[0]
  34975. ? '!' + C
  34976. : 'tag:yaml.org,2002:' === C.slice(0, 18)
  34977. ? '!!' + C.slice(18)
  34978. : '!<' + C + '>'),
  34979. (s.dump = C + ' ' + s.dump));
  34980. }
  34981. return !0;
  34982. }
  34983. function getDuplicateReferences(s, o) {
  34984. var i,
  34985. u,
  34986. _ = [],
  34987. w = [];
  34988. for (inspectNode(s, _, w), i = 0, u = w.length; i < u; i += 1) o.duplicates.push(_[w[i]]);
  34989. o.usedDuplicates = new Array(u);
  34990. }
  34991. function inspectNode(s, o, i) {
  34992. var u, _, w;
  34993. if (null !== s && 'object' == typeof s)
  34994. if (-1 !== (_ = o.indexOf(s))) -1 === i.indexOf(_) && i.push(_);
  34995. else if ((o.push(s), Array.isArray(s)))
  34996. for (_ = 0, w = s.length; _ < w; _ += 1) inspectNode(s[_], o, i);
  34997. else
  34998. for (_ = 0, w = (u = Object.keys(s)).length; _ < w; _ += 1)
  34999. inspectNode(s[u[_]], o, i);
  35000. }
  35001. var Qr = function dump$1(s, o) {
  35002. var i = new State((o = o || {}));
  35003. i.noRefs || getDuplicateReferences(s, i);
  35004. var u = s;
  35005. return (
  35006. i.replacer && (u = i.replacer.call({ '': u }, '', u)),
  35007. writeNode(i, 0, u, !0, !0) ? i.dump + '\n' : ''
  35008. );
  35009. };
  35010. function renamed(s, o) {
  35011. return function () {
  35012. throw new Error(
  35013. 'Function yaml.' +
  35014. s +
  35015. ' is removed in js-yaml 4. Use yaml.' +
  35016. o +
  35017. ' instead, which is now safe by default.'
  35018. );
  35019. };
  35020. }
  35021. var en = ar,
  35022. tn = lr,
  35023. rn = dr,
  35024. nn = _r,
  35025. sn = Er,
  35026. on = Rr,
  35027. an = Kr.load,
  35028. ln = Kr.loadAll,
  35029. cn = { dump: Qr }.dump,
  35030. un = rr,
  35031. pn = {
  35032. binary: Or,
  35033. float: br,
  35034. map: pr,
  35035. null: fr,
  35036. pairs: Mr,
  35037. set: Nr,
  35038. timestamp: xr,
  35039. bool: mr,
  35040. int: gr,
  35041. merge: kr,
  35042. omap: Ir,
  35043. seq: ur,
  35044. str: cr
  35045. },
  35046. hn = renamed('safeLoad', 'load'),
  35047. dn = renamed('safeLoadAll', 'loadAll'),
  35048. fn = renamed('safeDump', 'dump');
  35049. const mn = {
  35050. Type: en,
  35051. Schema: tn,
  35052. FAILSAFE_SCHEMA: rn,
  35053. JSON_SCHEMA: nn,
  35054. CORE_SCHEMA: sn,
  35055. DEFAULT_SCHEMA: on,
  35056. load: an,
  35057. loadAll: ln,
  35058. dump: cn,
  35059. YAMLException: un,
  35060. types: pn,
  35061. safeLoad: hn,
  35062. safeLoadAll: dn,
  35063. safeDump: fn
  35064. },
  35065. gn = 'configs_update',
  35066. yn = 'configs_toggle';
  35067. function update(s, o) {
  35068. return { type: gn, payload: { [s]: o } };
  35069. }
  35070. function toggle(s) {
  35071. return { type: yn, payload: s };
  35072. }
  35073. const actions_loaded = () => () => {},
  35074. downloadConfig = (s) => (o) => {
  35075. const {
  35076. fn: { fetch: i }
  35077. } = o;
  35078. return i(s);
  35079. },
  35080. getConfigByUrl = (s, o) => (i) => {
  35081. const { specActions: u, configsActions: _ } = i;
  35082. if (s) return _.downloadConfig(s).then(next, next);
  35083. function next(_) {
  35084. _ instanceof Error || _.status >= 400
  35085. ? (u.updateLoadingStatus('failedConfig'),
  35086. u.updateLoadingStatus('failedConfig'),
  35087. u.updateUrl(''),
  35088. console.error(_.statusText + ' ' + s.url),
  35089. o(null))
  35090. : o(
  35091. ((s, o) => {
  35092. try {
  35093. return mn.load(s);
  35094. } catch (s) {
  35095. return o && o.errActions.newThrownErr(new Error(s)), {};
  35096. }
  35097. })(_.text, i)
  35098. );
  35099. }
  35100. },
  35101. get = (s, o) => s.getIn(Array.isArray(o) ? o : [o]),
  35102. vn = {
  35103. [gn]: (s, o) => s.merge((0, qe.fromJS)(o.payload)),
  35104. [yn]: (s, o) => {
  35105. const i = o.payload,
  35106. u = s.get(i);
  35107. return s.set(i, !u);
  35108. }
  35109. };
  35110. function configsPlugin() {
  35111. return { statePlugins: { configs: { reducers: vn, actions: u, selectors: w } } };
  35112. }
  35113. const setHash = (s) =>
  35114. s ? history.pushState(null, null, `#${s}`) : (window.location.hash = '');
  35115. var bn = __webpack_require__(86215),
  35116. _n = __webpack_require__.n(bn);
  35117. const En = 'layout_scroll_to',
  35118. wn = 'layout_clear_scroll';
  35119. const Sn = {
  35120. fn: {
  35121. getScrollParent: function getScrollParent(s, o) {
  35122. const i = document.documentElement;
  35123. let u = getComputedStyle(s);
  35124. const _ = 'absolute' === u.position,
  35125. w = o ? /(auto|scroll|hidden)/ : /(auto|scroll)/;
  35126. if ('fixed' === u.position) return i;
  35127. for (let o = s; (o = o.parentElement); )
  35128. if (
  35129. ((u = getComputedStyle(o)),
  35130. (!_ || 'static' !== u.position) && w.test(u.overflow + u.overflowY + u.overflowX))
  35131. )
  35132. return o;
  35133. return i;
  35134. }
  35135. },
  35136. statePlugins: {
  35137. layout: {
  35138. actions: {
  35139. scrollToElement: (s, o) => (i) => {
  35140. try {
  35141. (o = o || i.fn.getScrollParent(s)), _n().createScroller(o).to(s);
  35142. } catch (s) {
  35143. console.error(s);
  35144. }
  35145. },
  35146. scrollTo: (s) => ({ type: En, payload: Array.isArray(s) ? s : [s] }),
  35147. clearScrollTo: () => ({ type: wn }),
  35148. readyToScroll: (s, o) => (i) => {
  35149. const u = i.layoutSelectors.getScrollToKey();
  35150. $e().is(u, (0, qe.fromJS)(s)) &&
  35151. (i.layoutActions.scrollToElement(o), i.layoutActions.clearScrollTo());
  35152. },
  35153. parseDeepLinkHash:
  35154. (s) =>
  35155. ({ layoutActions: o, layoutSelectors: i, getConfigs: u }) => {
  35156. if (u().deepLinking && s) {
  35157. let u = s.slice(1);
  35158. '!' === u[0] && (u = u.slice(1)), '/' === u[0] && (u = u.slice(1));
  35159. const _ = u.split('/').map((s) => s || ''),
  35160. w = i.isShownKeyFromUrlHashArray(_),
  35161. [x, C = '', j = ''] = w;
  35162. if ('operations' === x) {
  35163. const s = i.isShownKeyFromUrlHashArray([C]);
  35164. C.indexOf('_') > -1 &&
  35165. (console.warn(
  35166. 'Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.'
  35167. ),
  35168. o.show(
  35169. s.map((s) => s.replace(/_/g, ' ')),
  35170. !0
  35171. )),
  35172. o.show(s, !0);
  35173. }
  35174. (C.indexOf('_') > -1 || j.indexOf('_') > -1) &&
  35175. (console.warn(
  35176. 'Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.'
  35177. ),
  35178. o.show(
  35179. w.map((s) => s.replace(/_/g, ' ')),
  35180. !0
  35181. )),
  35182. o.show(w, !0),
  35183. o.scrollTo(w);
  35184. }
  35185. }
  35186. },
  35187. selectors: {
  35188. getScrollToKey: (s) => s.get('scrollToKey'),
  35189. isShownKeyFromUrlHashArray(s, o) {
  35190. const [i, u] = o;
  35191. return u ? ['operations', i, u] : i ? ['operations-tag', i] : [];
  35192. },
  35193. urlHashArrayFromIsShownKey(s, o) {
  35194. let [i, u, _] = o;
  35195. return 'operations' == i ? [u, _] : 'operations-tag' == i ? [u] : [];
  35196. }
  35197. },
  35198. reducers: {
  35199. [En]: (s, o) => s.set('scrollToKey', $e().fromJS(o.payload)),
  35200. [wn]: (s) => s.delete('scrollToKey')
  35201. },
  35202. wrapActions: {
  35203. show:
  35204. (s, { getConfigs: o, layoutSelectors: i }) =>
  35205. (...u) => {
  35206. if ((s(...u), o().deepLinking))
  35207. try {
  35208. let [s, o] = u;
  35209. s = Array.isArray(s) ? s : [s];
  35210. const _ = i.urlHashArrayFromIsShownKey(s);
  35211. if (!_.length) return;
  35212. const [w, x] = _;
  35213. if (!o) return setHash('/');
  35214. 2 === _.length
  35215. ? setHash(
  35216. createDeepLinkPath(
  35217. `/${encodeURIComponent(w)}/${encodeURIComponent(x)}`
  35218. )
  35219. )
  35220. : 1 === _.length &&
  35221. setHash(createDeepLinkPath(`/${encodeURIComponent(w)}`));
  35222. } catch (s) {
  35223. console.error(s);
  35224. }
  35225. }
  35226. }
  35227. }
  35228. }
  35229. };
  35230. var xn = __webpack_require__(2209),
  35231. kn = __webpack_require__.n(xn);
  35232. const operation_wrapper = (s, o) =>
  35233. class OperationWrapper extends Pe.Component {
  35234. onLoad = (s) => {
  35235. const { operation: i } = this.props,
  35236. { tag: u, operationId: _ } = i.toObject();
  35237. let { isShownKey: w } = i.toObject();
  35238. (w = w || ['operations', u, _]), o.layoutActions.readyToScroll(w, s);
  35239. };
  35240. render() {
  35241. return Pe.createElement(
  35242. 'span',
  35243. { ref: this.onLoad },
  35244. Pe.createElement(s, this.props)
  35245. );
  35246. }
  35247. },
  35248. operation_tag_wrapper = (s, o) =>
  35249. class OperationTagWrapper extends Pe.Component {
  35250. onLoad = (s) => {
  35251. const { tag: i } = this.props,
  35252. u = ['operations-tag', i];
  35253. o.layoutActions.readyToScroll(u, s);
  35254. };
  35255. render() {
  35256. return Pe.createElement(
  35257. 'span',
  35258. { ref: this.onLoad },
  35259. Pe.createElement(s, this.props)
  35260. );
  35261. }
  35262. };
  35263. function deep_linking() {
  35264. return [
  35265. Sn,
  35266. {
  35267. statePlugins: {
  35268. configs: {
  35269. wrapActions: {
  35270. loaded:
  35271. (s, o) =>
  35272. (...i) => {
  35273. s(...i);
  35274. const u = decodeURIComponent(window.location.hash);
  35275. o.layoutActions.parseDeepLinkHash(u);
  35276. }
  35277. }
  35278. }
  35279. },
  35280. wrapComponents: { operation: operation_wrapper, OperationTag: operation_tag_wrapper }
  35281. }
  35282. ];
  35283. }
  35284. var Cn = __webpack_require__(40860),
  35285. On = __webpack_require__.n(Cn);
  35286. function transform(s) {
  35287. return s.map((s) => {
  35288. let o = 'is not of a type(s)',
  35289. i = s.get('message').indexOf(o);
  35290. if (i > -1) {
  35291. let o = s
  35292. .get('message')
  35293. .slice(i + 19)
  35294. .split(',');
  35295. return s.set(
  35296. 'message',
  35297. s.get('message').slice(0, i) +
  35298. (function makeNewMessage(s) {
  35299. return s.reduce(
  35300. (s, o, i, u) =>
  35301. i === u.length - 1 && u.length > 1
  35302. ? s + 'or ' + o
  35303. : u[i + 1] && u.length > 2
  35304. ? s + o + ', '
  35305. : u[i + 1]
  35306. ? s + o + ' '
  35307. : s + o,
  35308. 'should be a'
  35309. );
  35310. })(o)
  35311. );
  35312. }
  35313. return s;
  35314. });
  35315. }
  35316. var An = __webpack_require__(58156),
  35317. jn = __webpack_require__.n(An);
  35318. function parameter_oneof_transform(s, { jsSpec: o }) {
  35319. return s;
  35320. }
  35321. const In = [x, C];
  35322. function transformErrors(s) {
  35323. let o = { jsSpec: {} },
  35324. i = On()(
  35325. In,
  35326. (s, i) => {
  35327. try {
  35328. return i.transform(s, o).filter((s) => !!s);
  35329. } catch (o) {
  35330. return console.error('Transformer error:', o), s;
  35331. }
  35332. },
  35333. s
  35334. );
  35335. return i.filter((s) => !!s).map((s) => (!s.get('line') && s.get('path'), s));
  35336. }
  35337. let Pn = { line: 0, level: 'error', message: 'Unknown error' };
  35338. const Mn = Ut(
  35339. (s) => s,
  35340. (s) => s.get('errors', (0, qe.List)())
  35341. ),
  35342. Tn = Ut(Mn, (s) => s.last());
  35343. function err(o) {
  35344. return {
  35345. statePlugins: {
  35346. err: {
  35347. reducers: {
  35348. [et]: (s, { payload: o }) => {
  35349. let i = Object.assign(Pn, o, { type: 'thrown' });
  35350. return s
  35351. .update('errors', (s) => (s || (0, qe.List)()).push((0, qe.fromJS)(i)))
  35352. .update('errors', (s) => transformErrors(s));
  35353. },
  35354. [tt]: (s, { payload: o }) => (
  35355. (o = o.map((s) => (0, qe.fromJS)(Object.assign(Pn, s, { type: 'thrown' })))),
  35356. s
  35357. .update('errors', (s) => (s || (0, qe.List)()).concat((0, qe.fromJS)(o)))
  35358. .update('errors', (s) => transformErrors(s))
  35359. ),
  35360. [rt]: (s, { payload: o }) => {
  35361. let i = (0, qe.fromJS)(o);
  35362. return (
  35363. (i = i.set('type', 'spec')),
  35364. s
  35365. .update('errors', (s) =>
  35366. (s || (0, qe.List)()).push((0, qe.fromJS)(i)).sortBy((s) => s.get('line'))
  35367. )
  35368. .update('errors', (s) => transformErrors(s))
  35369. );
  35370. },
  35371. [nt]: (s, { payload: o }) => (
  35372. (o = o.map((s) => (0, qe.fromJS)(Object.assign(Pn, s, { type: 'spec' })))),
  35373. s
  35374. .update('errors', (s) => (s || (0, qe.List)()).concat((0, qe.fromJS)(o)))
  35375. .update('errors', (s) => transformErrors(s))
  35376. ),
  35377. [st]: (s, { payload: o }) => {
  35378. let i = (0, qe.fromJS)(Object.assign({}, o));
  35379. return (
  35380. (i = i.set('type', 'auth')),
  35381. s
  35382. .update('errors', (s) => (s || (0, qe.List)()).push((0, qe.fromJS)(i)))
  35383. .update('errors', (s) => transformErrors(s))
  35384. );
  35385. },
  35386. [ot]: (s, { payload: o }) => {
  35387. if (!o || !s.get('errors')) return s;
  35388. let i = s.get('errors').filter((s) =>
  35389. s.keySeq().every((i) => {
  35390. const u = s.get(i),
  35391. _ = o[i];
  35392. return !_ || u !== _;
  35393. })
  35394. );
  35395. return s.merge({ errors: i });
  35396. },
  35397. [it]: (s, { payload: o }) => {
  35398. if (!o || 'function' != typeof o) return s;
  35399. let i = s.get('errors').filter((s) => o(s));
  35400. return s.merge({ errors: i });
  35401. }
  35402. },
  35403. actions: s,
  35404. selectors: j
  35405. }
  35406. }
  35407. };
  35408. }
  35409. function opsFilter(s, o) {
  35410. return s.filter((s, i) => -1 !== i.indexOf(o));
  35411. }
  35412. function filter() {
  35413. return { fn: { opsFilter } };
  35414. }
  35415. var Nn = __webpack_require__(7666),
  35416. Rn = __webpack_require__.n(Nn);
  35417. const arrow_up = ({ className: s = null, width: o = 20, height: i = 20, ...u }) =>
  35418. Pe.createElement(
  35419. 'svg',
  35420. Rn()(
  35421. {
  35422. xmlns: 'http://www.w3.org/2000/svg',
  35423. viewBox: '0 0 20 20',
  35424. className: s,
  35425. width: o,
  35426. height: i,
  35427. 'aria-hidden': 'true',
  35428. focusable: 'false'
  35429. },
  35430. u
  35431. ),
  35432. Pe.createElement('path', {
  35433. d: 'M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z'
  35434. })
  35435. ),
  35436. arrow_down = ({ className: s = null, width: o = 20, height: i = 20, ...u }) =>
  35437. Pe.createElement(
  35438. 'svg',
  35439. Rn()(
  35440. {
  35441. xmlns: 'http://www.w3.org/2000/svg',
  35442. viewBox: '0 0 20 20',
  35443. className: s,
  35444. width: o,
  35445. height: i,
  35446. 'aria-hidden': 'true',
  35447. focusable: 'false'
  35448. },
  35449. u
  35450. ),
  35451. Pe.createElement('path', {
  35452. d: 'M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z'
  35453. })
  35454. ),
  35455. arrow = ({ className: s = null, width: o = 20, height: i = 20, ...u }) =>
  35456. Pe.createElement(
  35457. 'svg',
  35458. Rn()(
  35459. {
  35460. xmlns: 'http://www.w3.org/2000/svg',
  35461. viewBox: '0 0 20 20',
  35462. className: s,
  35463. width: o,
  35464. height: i,
  35465. 'aria-hidden': 'true',
  35466. focusable: 'false'
  35467. },
  35468. u
  35469. ),
  35470. Pe.createElement('path', {
  35471. d: 'M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z'
  35472. })
  35473. ),
  35474. components_close = ({ className: s = null, width: o = 20, height: i = 20, ...u }) =>
  35475. Pe.createElement(
  35476. 'svg',
  35477. Rn()(
  35478. {
  35479. xmlns: 'http://www.w3.org/2000/svg',
  35480. viewBox: '0 0 20 20',
  35481. className: s,
  35482. width: o,
  35483. height: i,
  35484. 'aria-hidden': 'true',
  35485. focusable: 'false'
  35486. },
  35487. u
  35488. ),
  35489. Pe.createElement('path', {
  35490. d: 'M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z'
  35491. })
  35492. ),
  35493. copy = ({ className: s = null, width: o = 15, height: i = 16, ...u }) =>
  35494. Pe.createElement(
  35495. 'svg',
  35496. Rn()(
  35497. {
  35498. xmlns: 'http://www.w3.org/2000/svg',
  35499. viewBox: '0 0 15 16',
  35500. className: s,
  35501. width: o,
  35502. height: i,
  35503. 'aria-hidden': 'true',
  35504. focusable: 'false'
  35505. },
  35506. u
  35507. ),
  35508. Pe.createElement(
  35509. 'g',
  35510. { transform: 'translate(2, -1)' },
  35511. Pe.createElement('path', {
  35512. fill: '#ffffff',
  35513. fillRule: 'evenodd',
  35514. d: 'M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z'
  35515. })
  35516. )
  35517. ),
  35518. lock = ({ className: s = null, width: o = 20, height: i = 20, ...u }) =>
  35519. Pe.createElement(
  35520. 'svg',
  35521. Rn()(
  35522. {
  35523. xmlns: 'http://www.w3.org/2000/svg',
  35524. viewBox: '0 0 20 20',
  35525. className: s,
  35526. width: o,
  35527. height: i,
  35528. 'aria-hidden': 'true',
  35529. focusable: 'false'
  35530. },
  35531. u
  35532. ),
  35533. Pe.createElement('path', {
  35534. d: 'M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z'
  35535. })
  35536. ),
  35537. unlock = ({ className: s = null, width: o = 20, height: i = 20, ...u }) =>
  35538. Pe.createElement(
  35539. 'svg',
  35540. Rn()(
  35541. {
  35542. xmlns: 'http://www.w3.org/2000/svg',
  35543. viewBox: '0 0 20 20',
  35544. className: s,
  35545. width: o,
  35546. height: i,
  35547. 'aria-hidden': 'true',
  35548. focusable: 'false'
  35549. },
  35550. u
  35551. ),
  35552. Pe.createElement('path', {
  35553. d: 'M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z'
  35554. })
  35555. ),
  35556. icons = () => ({
  35557. components: {
  35558. ArrowUpIcon: arrow_up,
  35559. ArrowDownIcon: arrow_down,
  35560. ArrowIcon: arrow,
  35561. CloseIcon: components_close,
  35562. CopyIcon: copy,
  35563. LockIcon: lock,
  35564. UnlockIcon: unlock
  35565. }
  35566. }),
  35567. Dn = 'layout_update_layout',
  35568. Ln = 'layout_update_filter',
  35569. Bn = 'layout_update_mode',
  35570. Fn = 'layout_show';
  35571. function updateLayout(s) {
  35572. return { type: Dn, payload: s };
  35573. }
  35574. function updateFilter(s) {
  35575. return { type: Ln, payload: s };
  35576. }
  35577. function actions_show(s, o = !0) {
  35578. return (s = normalizeArray(s)), { type: Fn, payload: { thing: s, shown: o } };
  35579. }
  35580. function changeMode(s, o = '') {
  35581. return (s = normalizeArray(s)), { type: Bn, payload: { thing: s, mode: o } };
  35582. }
  35583. const qn = {
  35584. [Dn]: (s, o) => s.set('layout', o.payload),
  35585. [Ln]: (s, o) => s.set('filter', o.payload),
  35586. [Fn]: (s, o) => {
  35587. const i = o.payload.shown,
  35588. u = (0, qe.fromJS)(o.payload.thing);
  35589. return s.update('shown', (0, qe.fromJS)({}), (s) => s.set(u, i));
  35590. },
  35591. [Bn]: (s, o) => {
  35592. let i = o.payload.thing,
  35593. u = o.payload.mode;
  35594. return s.setIn(['modes'].concat(i), (u || '') + '');
  35595. }
  35596. },
  35597. current = (s) => s.get('layout'),
  35598. currentFilter = (s) => s.get('filter'),
  35599. isShown = (s, o, i) => (
  35600. (o = normalizeArray(o)), s.get('shown', (0, qe.fromJS)({})).get((0, qe.fromJS)(o), i)
  35601. ),
  35602. whatMode = (s, o, i = '') => ((o = normalizeArray(o)), s.getIn(['modes', ...o], i)),
  35603. $n = Ut(
  35604. (s) => s,
  35605. (s) => !isShown(s, 'editor')
  35606. ),
  35607. taggedOperations =
  35608. (s, o) =>
  35609. (i, ...u) => {
  35610. let _ = s(i, ...u);
  35611. const { fn: w, layoutSelectors: x, getConfigs: C } = o.getSystem(),
  35612. j = C(),
  35613. { maxDisplayedTags: L } = j;
  35614. let B = x.currentFilter();
  35615. return B && !0 !== B && (_ = w.opsFilter(_, B)), L >= 0 && (_ = _.slice(0, L)), _;
  35616. };
  35617. function plugins_layout() {
  35618. return {
  35619. statePlugins: {
  35620. layout: { reducers: qn, actions: L, selectors: B },
  35621. spec: { wrapSelectors: $ }
  35622. }
  35623. };
  35624. }
  35625. function logs({ configs: s }) {
  35626. const o = { debug: 0, info: 1, log: 2, warn: 3, error: 4 },
  35627. getLevel = (s) => o[s] || -1;
  35628. let { logLevel: i } = s,
  35629. u = getLevel(i);
  35630. function log(s, ...o) {
  35631. getLevel(s) >= u && console[s](...o);
  35632. }
  35633. return (
  35634. (log.warn = log.bind(null, 'warn')),
  35635. (log.error = log.bind(null, 'error')),
  35636. (log.info = log.bind(null, 'info')),
  35637. (log.debug = log.bind(null, 'debug')),
  35638. { rootInjects: { log } }
  35639. );
  35640. }
  35641. let Vn = !1;
  35642. function on_complete() {
  35643. return {
  35644. statePlugins: {
  35645. spec: {
  35646. wrapActions: {
  35647. updateSpec:
  35648. (s) =>
  35649. (...o) => ((Vn = !0), s(...o)),
  35650. updateJsonSpec:
  35651. (s, o) =>
  35652. (...i) => {
  35653. const u = o.getConfigs().onComplete;
  35654. return Vn && 'function' == typeof u && (setTimeout(u, 0), (Vn = !1)), s(...i);
  35655. }
  35656. }
  35657. }
  35658. }
  35659. };
  35660. }
  35661. const extractKey = (s) => {
  35662. const o = '_**[]';
  35663. return s.indexOf(o) < 0 ? s : s.split(o)[0].trim();
  35664. },
  35665. escapeShell = (s) =>
  35666. '-d ' === s || /^[_\/-]/g.test(s) ? s : "'" + s.replace(/'/g, "'\\''") + "'",
  35667. escapeCMD = (s) =>
  35668. '-d ' ===
  35669. (s = s
  35670. .replace(/\^/g, '^^')
  35671. .replace(/\\"/g, '\\\\"')
  35672. .replace(/"/g, '""')
  35673. .replace(/\n/g, '^\n'))
  35674. ? s.replace(/-d /g, '-d ^\n')
  35675. : /^[_\/-]/g.test(s)
  35676. ? s
  35677. : '"' + s + '"',
  35678. escapePowershell = (s) => {
  35679. if ('-d ' === s) return s;
  35680. if (/\n/.test(s)) {
  35681. return `@"\n${s.replace(/`/g, '``').replace(/\$/g, '`$')}\n"@`;
  35682. }
  35683. if (!/^[_\/-]/.test(s)) {
  35684. return `'${s.replace(/'/g, "''")}'`;
  35685. }
  35686. return s;
  35687. };
  35688. const curlify = (s, o, i, u = '') => {
  35689. let _ = !1,
  35690. w = '';
  35691. const addWords = (...s) => (w += ' ' + s.map(o).join(' ')),
  35692. addWordsWithoutLeadingSpace = (...s) => (w += s.map(o).join(' ')),
  35693. addNewLine = () => (w += ` ${i}`),
  35694. addIndent = (s = 1) => (w += ' '.repeat(s));
  35695. let x = s.get('headers');
  35696. w += 'curl' + u;
  35697. const C = s.get('curlOptions');
  35698. if (
  35699. (qe.List.isList(C) && !C.isEmpty() && addWords(...s.get('curlOptions')),
  35700. addWords('-X', s.get('method')),
  35701. addNewLine(),
  35702. addIndent(),
  35703. addWordsWithoutLeadingSpace(`${s.get('url')}`),
  35704. x && x.size)
  35705. )
  35706. for (let o of s.get('headers').entries()) {
  35707. addNewLine(), addIndent();
  35708. let [s, i] = o;
  35709. addWordsWithoutLeadingSpace('-H', `${s}: ${i}`),
  35710. (_ = _ || (/^content-type$/i.test(s) && /^multipart\/form-data$/i.test(i)));
  35711. }
  35712. const j = s.get('body');
  35713. if (j)
  35714. if (_ && ['POST', 'PUT', 'PATCH'].includes(s.get('method')))
  35715. for (let [s, o] of j.entrySeq()) {
  35716. let i = extractKey(s);
  35717. addNewLine(),
  35718. addIndent(),
  35719. addWordsWithoutLeadingSpace('-F'),
  35720. o instanceof at.File && 'string' == typeof o.valueOf()
  35721. ? addWords(`${i}=${o.data}${o.type ? `;type=${o.type}` : ''}`)
  35722. : o instanceof at.File
  35723. ? addWords(`${i}=@${o.name}${o.type ? `;type=${o.type}` : ''}`)
  35724. : addWords(`${i}=${o}`);
  35725. }
  35726. else if (j instanceof at.File)
  35727. addNewLine(),
  35728. addIndent(),
  35729. addWordsWithoutLeadingSpace(`--data-binary '@${j.name}'`);
  35730. else {
  35731. addNewLine(), addIndent(), addWordsWithoutLeadingSpace('-d ');
  35732. let o = j;
  35733. qe.Map.isMap(o)
  35734. ? addWordsWithoutLeadingSpace(
  35735. (function getStringBodyOfMap(s) {
  35736. let o = [];
  35737. for (let [i, u] of s.get('body').entrySeq()) {
  35738. let s = extractKey(i);
  35739. u instanceof at.File
  35740. ? o.push(
  35741. ` "${s}": {\n "name": "${u.name}"${u.type ? `,\n "type": "${u.type}"` : ''}\n }`
  35742. )
  35743. : o.push(
  35744. ` "${s}": ${JSON.stringify(u, null, 2).replace(/(\r\n|\r|\n)/g, '\n ')}`
  35745. );
  35746. }
  35747. return `{\n${o.join(',\n')}\n}`;
  35748. })(s)
  35749. )
  35750. : ('string' != typeof o && (o = JSON.stringify(o)),
  35751. addWordsWithoutLeadingSpace(o));
  35752. }
  35753. else
  35754. j ||
  35755. 'POST' !== s.get('method') ||
  35756. (addNewLine(), addIndent(), addWordsWithoutLeadingSpace("-d ''"));
  35757. return w;
  35758. },
  35759. requestSnippetGenerator_curl_powershell = (s) =>
  35760. curlify(s, escapePowershell, '`\n', '.exe'),
  35761. requestSnippetGenerator_curl_bash = (s) => curlify(s, escapeShell, '\\\n'),
  35762. requestSnippetGenerator_curl_cmd = (s) => curlify(s, escapeCMD, '^\n'),
  35763. request_snippets_selectors_state = (s) => s || (0, qe.Map)(),
  35764. Un = Ut(request_snippets_selectors_state, (s) => {
  35765. const o = s.get('languages'),
  35766. i = s.get('generators', (0, qe.Map)());
  35767. return !o || o.isEmpty() ? i : i.filter((s, i) => o.includes(i));
  35768. }),
  35769. getSnippetGenerators =
  35770. (s) =>
  35771. ({ fn: o }) =>
  35772. Un(s)
  35773. .map((s, i) => {
  35774. const u = ((s) => o[`requestSnippetGenerator_${s}`])(i);
  35775. return 'function' != typeof u ? null : s.set('fn', u);
  35776. })
  35777. .filter((s) => s),
  35778. zn = Ut(request_snippets_selectors_state, (s) => s.get('activeLanguage')),
  35779. Wn = Ut(request_snippets_selectors_state, (s) => s.get('defaultExpanded'));
  35780. var Kn = __webpack_require__(46942),
  35781. Hn = __webpack_require__.n(Kn),
  35782. Jn = __webpack_require__(59399);
  35783. const Gn = {
  35784. cursor: 'pointer',
  35785. lineHeight: 1,
  35786. display: 'inline-flex',
  35787. backgroundColor: 'rgb(250, 250, 250)',
  35788. paddingBottom: '0',
  35789. paddingTop: '0',
  35790. border: '1px solid rgb(51, 51, 51)',
  35791. borderRadius: '4px 4px 0 0',
  35792. boxShadow: 'none',
  35793. borderBottom: 'none'
  35794. },
  35795. Yn = {
  35796. cursor: 'pointer',
  35797. lineHeight: 1,
  35798. display: 'inline-flex',
  35799. backgroundColor: 'rgb(51, 51, 51)',
  35800. boxShadow: 'none',
  35801. border: '1px solid rgb(51, 51, 51)',
  35802. paddingBottom: '0',
  35803. paddingTop: '0',
  35804. borderRadius: '4px 4px 0 0',
  35805. marginTop: '-5px',
  35806. marginRight: '-5px',
  35807. marginLeft: '-5px',
  35808. zIndex: '9999',
  35809. borderBottom: 'none'
  35810. },
  35811. request_snippets = ({ request: s, requestSnippetsSelectors: o, getComponent: i }) => {
  35812. const u = (0, Pe.useRef)(null),
  35813. _ = i('ArrowUpIcon'),
  35814. w = i('ArrowDownIcon'),
  35815. x = i('SyntaxHighlighter', !0),
  35816. [C, j] = (0, Pe.useState)(o.getSnippetGenerators()?.keySeq().first()),
  35817. [L, B] = (0, Pe.useState)(o?.getDefaultExpanded()),
  35818. $ = o.getSnippetGenerators(),
  35819. V = $.get(C),
  35820. U = V.get('fn')(s),
  35821. handleSetIsExpanded = () => {
  35822. B(!L);
  35823. },
  35824. handleGetBtnStyle = (s) => (s === C ? Yn : Gn),
  35825. handlePreventYScrollingBeyondElement = (s) => {
  35826. const { target: o, deltaY: i } = s,
  35827. { scrollHeight: u, offsetHeight: _, scrollTop: w } = o;
  35828. u > _ && ((0 === w && i < 0) || (_ + w >= u && i > 0)) && s.preventDefault();
  35829. };
  35830. return (
  35831. (0, Pe.useEffect)(() => {}, []),
  35832. (0, Pe.useEffect)(() => {
  35833. const s = Array.from(u.current.childNodes).filter(
  35834. (s) => !!s.nodeType && s.classList?.contains('curl-command')
  35835. );
  35836. return (
  35837. s.forEach((s) =>
  35838. s.addEventListener('mousewheel', handlePreventYScrollingBeyondElement, {
  35839. passive: !1
  35840. })
  35841. ),
  35842. () => {
  35843. s.forEach((s) =>
  35844. s.removeEventListener('mousewheel', handlePreventYScrollingBeyondElement)
  35845. );
  35846. }
  35847. );
  35848. }, [s]),
  35849. Pe.createElement(
  35850. 'div',
  35851. { className: 'request-snippets', ref: u },
  35852. Pe.createElement(
  35853. 'div',
  35854. {
  35855. style: {
  35856. width: '100%',
  35857. display: 'flex',
  35858. justifyContent: 'flex-start',
  35859. alignItems: 'center',
  35860. marginBottom: '15px'
  35861. }
  35862. },
  35863. Pe.createElement(
  35864. 'h4',
  35865. { onClick: () => handleSetIsExpanded(), style: { cursor: 'pointer' } },
  35866. 'Snippets'
  35867. ),
  35868. Pe.createElement(
  35869. 'button',
  35870. {
  35871. onClick: () => handleSetIsExpanded(),
  35872. style: { border: 'none', background: 'none' },
  35873. title: L ? 'Collapse operation' : 'Expand operation'
  35874. },
  35875. L
  35876. ? Pe.createElement(w, { className: 'arrow', width: '10', height: '10' })
  35877. : Pe.createElement(_, { className: 'arrow', width: '10', height: '10' })
  35878. )
  35879. ),
  35880. L &&
  35881. Pe.createElement(
  35882. 'div',
  35883. { className: 'curl-command' },
  35884. Pe.createElement(
  35885. 'div',
  35886. {
  35887. style: {
  35888. paddingLeft: '15px',
  35889. paddingRight: '10px',
  35890. width: '100%',
  35891. display: 'flex'
  35892. }
  35893. },
  35894. $.entrySeq().map(([s, o]) =>
  35895. Pe.createElement(
  35896. 'div',
  35897. {
  35898. className: Hn()('btn', { active: s === C }),
  35899. style: handleGetBtnStyle(s),
  35900. key: s,
  35901. onClick: () =>
  35902. ((s) => {
  35903. C !== s && j(s);
  35904. })(s)
  35905. },
  35906. Pe.createElement(
  35907. 'h4',
  35908. { style: s === C ? { color: 'white' } : {} },
  35909. o.get('title')
  35910. )
  35911. )
  35912. )
  35913. ),
  35914. Pe.createElement(
  35915. 'div',
  35916. { className: 'copy-to-clipboard' },
  35917. Pe.createElement(
  35918. Jn.CopyToClipboard,
  35919. { text: U },
  35920. Pe.createElement('button', null)
  35921. )
  35922. ),
  35923. Pe.createElement(
  35924. 'div',
  35925. null,
  35926. Pe.createElement(
  35927. x,
  35928. {
  35929. language: V.get('syntax'),
  35930. className: 'curl microlight',
  35931. renderPlainText: ({ children: s, PlainTextViewer: o }) =>
  35932. Pe.createElement(o, { className: 'curl' }, s)
  35933. },
  35934. U
  35935. )
  35936. )
  35937. )
  35938. )
  35939. );
  35940. },
  35941. plugins_request_snippets = () => ({
  35942. components: { RequestSnippets: request_snippets },
  35943. fn: V,
  35944. statePlugins: { requestSnippets: { selectors: U } }
  35945. });
  35946. class ModelCollapse extends Pe.Component {
  35947. static defaultProps = {
  35948. collapsedContent: '{...}',
  35949. expanded: !1,
  35950. title: null,
  35951. onToggle: () => {},
  35952. hideSelfOnExpand: !1,
  35953. specPath: $e().List([])
  35954. };
  35955. constructor(s, o) {
  35956. super(s, o);
  35957. let { expanded: i, collapsedContent: u } = this.props;
  35958. this.state = {
  35959. expanded: i,
  35960. collapsedContent: u || ModelCollapse.defaultProps.collapsedContent
  35961. };
  35962. }
  35963. componentDidMount() {
  35964. const { hideSelfOnExpand: s, expanded: o, modelName: i } = this.props;
  35965. s && o && this.props.onToggle(i, o);
  35966. }
  35967. UNSAFE_componentWillReceiveProps(s) {
  35968. this.props.expanded !== s.expanded && this.setState({ expanded: s.expanded });
  35969. }
  35970. toggleCollapsed = () => {
  35971. this.props.onToggle && this.props.onToggle(this.props.modelName, !this.state.expanded),
  35972. this.setState({ expanded: !this.state.expanded });
  35973. };
  35974. onLoad = (s) => {
  35975. if (s && this.props.layoutSelectors) {
  35976. const o = this.props.layoutSelectors.getScrollToKey();
  35977. $e().is(o, this.props.specPath) && this.toggleCollapsed(),
  35978. this.props.layoutActions.readyToScroll(this.props.specPath, s.parentElement);
  35979. }
  35980. };
  35981. render() {
  35982. const { title: s, classes: o } = this.props;
  35983. return this.state.expanded && this.props.hideSelfOnExpand
  35984. ? Pe.createElement('span', { className: o || '' }, this.props.children)
  35985. : Pe.createElement(
  35986. 'span',
  35987. { className: o || '', ref: this.onLoad },
  35988. Pe.createElement(
  35989. 'button',
  35990. {
  35991. 'aria-expanded': this.state.expanded,
  35992. className: 'model-box-control',
  35993. onClick: this.toggleCollapsed
  35994. },
  35995. s && Pe.createElement('span', { className: 'pointer' }, s),
  35996. Pe.createElement('span', {
  35997. className: 'model-toggle' + (this.state.expanded ? '' : ' collapsed')
  35998. }),
  35999. !this.state.expanded &&
  36000. Pe.createElement('span', null, this.state.collapsedContent)
  36001. ),
  36002. this.state.expanded && this.props.children
  36003. );
  36004. }
  36005. }
  36006. const useTabs = ({ initialTab: s, isExecute: o, schema: i, example: u }) => {
  36007. const _ = (0, Pe.useMemo)(() => ({ example: 'example', model: 'model' }), []),
  36008. w = (0, Pe.useMemo)(() => Object.keys(_), [_]).includes(s) && i && !o ? s : _.example,
  36009. x = ((s) => {
  36010. const o = (0, Pe.useRef)();
  36011. return (
  36012. (0, Pe.useEffect)(() => {
  36013. o.current = s;
  36014. }),
  36015. o.current
  36016. );
  36017. })(o),
  36018. [C, j] = (0, Pe.useState)(w),
  36019. L = (0, Pe.useCallback)((s) => {
  36020. j(s.target.dataset.name);
  36021. }, []);
  36022. return (
  36023. (0, Pe.useEffect)(() => {
  36024. x && !o && u && j(_.example);
  36025. }, [x, o, u]),
  36026. { activeTab: C, onTabChange: L, tabs: _ }
  36027. );
  36028. },
  36029. model_example = ({
  36030. schema: s,
  36031. example: o,
  36032. isExecute: i = !1,
  36033. specPath: u,
  36034. includeWriteOnly: _ = !1,
  36035. includeReadOnly: w = !1,
  36036. getComponent: x,
  36037. getConfigs: C,
  36038. specSelectors: j
  36039. }) => {
  36040. const { defaultModelRendering: L, defaultModelExpandDepth: B } = C(),
  36041. $ = x('ModelWrapper'),
  36042. V = x('HighlightCode', !0),
  36043. U = St()(5).toString('base64'),
  36044. z = St()(5).toString('base64'),
  36045. Y = St()(5).toString('base64'),
  36046. Z = St()(5).toString('base64'),
  36047. ee = j.isOAS3(),
  36048. {
  36049. activeTab: ie,
  36050. tabs: ae,
  36051. onTabChange: le
  36052. } = useTabs({ initialTab: L, isExecute: i, schema: s, example: o });
  36053. return Pe.createElement(
  36054. 'div',
  36055. { className: 'model-example' },
  36056. Pe.createElement(
  36057. 'ul',
  36058. { className: 'tab', role: 'tablist' },
  36059. Pe.createElement(
  36060. 'li',
  36061. {
  36062. className: Hn()('tabitem', { active: ie === ae.example }),
  36063. role: 'presentation'
  36064. },
  36065. Pe.createElement(
  36066. 'button',
  36067. {
  36068. 'aria-controls': z,
  36069. 'aria-selected': ie === ae.example,
  36070. className: 'tablinks',
  36071. 'data-name': 'example',
  36072. id: U,
  36073. onClick: le,
  36074. role: 'tab'
  36075. },
  36076. i ? 'Edit Value' : 'Example Value'
  36077. )
  36078. ),
  36079. s &&
  36080. Pe.createElement(
  36081. 'li',
  36082. {
  36083. className: Hn()('tabitem', { active: ie === ae.model }),
  36084. role: 'presentation'
  36085. },
  36086. Pe.createElement(
  36087. 'button',
  36088. {
  36089. 'aria-controls': Z,
  36090. 'aria-selected': ie === ae.model,
  36091. className: Hn()('tablinks', { inactive: i }),
  36092. 'data-name': 'model',
  36093. id: Y,
  36094. onClick: le,
  36095. role: 'tab'
  36096. },
  36097. ee ? 'Schema' : 'Model'
  36098. )
  36099. )
  36100. ),
  36101. ie === ae.example &&
  36102. Pe.createElement(
  36103. 'div',
  36104. {
  36105. 'aria-hidden': ie !== ae.example,
  36106. 'aria-labelledby': U,
  36107. 'data-name': 'examplePanel',
  36108. id: z,
  36109. role: 'tabpanel',
  36110. tabIndex: '0'
  36111. },
  36112. o || Pe.createElement(V, null, '(no example available')
  36113. ),
  36114. ie === ae.model &&
  36115. Pe.createElement(
  36116. 'div',
  36117. {
  36118. 'aria-hidden': ie === ae.example,
  36119. 'aria-labelledby': Y,
  36120. 'data-name': 'modelPanel',
  36121. id: Z,
  36122. role: 'tabpanel',
  36123. tabIndex: '0'
  36124. },
  36125. Pe.createElement($, {
  36126. schema: s,
  36127. getComponent: x,
  36128. getConfigs: C,
  36129. specSelectors: j,
  36130. expandDepth: B,
  36131. specPath: u,
  36132. includeReadOnly: w,
  36133. includeWriteOnly: _
  36134. })
  36135. )
  36136. );
  36137. };
  36138. class ModelWrapper extends Pe.Component {
  36139. onToggle = (s, o) => {
  36140. this.props.layoutActions && this.props.layoutActions.show(this.props.fullPath, o);
  36141. };
  36142. render() {
  36143. let { getComponent: s, getConfigs: o } = this.props;
  36144. const i = s('Model');
  36145. let u;
  36146. return (
  36147. this.props.layoutSelectors &&
  36148. (u = this.props.layoutSelectors.isShown(this.props.fullPath)),
  36149. Pe.createElement(
  36150. 'div',
  36151. { className: 'model-box' },
  36152. Pe.createElement(
  36153. i,
  36154. Rn()({}, this.props, {
  36155. getConfigs: o,
  36156. expanded: u,
  36157. depth: 1,
  36158. onToggle: this.onToggle,
  36159. expandDepth: this.props.expandDepth || 0
  36160. })
  36161. )
  36162. )
  36163. );
  36164. }
  36165. }
  36166. function _typeof(s) {
  36167. return (
  36168. (_typeof =
  36169. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  36170. ? function (s) {
  36171. return typeof s;
  36172. }
  36173. : function (s) {
  36174. return s &&
  36175. 'function' == typeof Symbol &&
  36176. s.constructor === Symbol &&
  36177. s !== Symbol.prototype
  36178. ? 'symbol'
  36179. : typeof s;
  36180. }),
  36181. _typeof(s)
  36182. );
  36183. }
  36184. function _defineProperties(s, o) {
  36185. for (var i = 0; i < o.length; i++) {
  36186. var u = o[i];
  36187. (u.enumerable = u.enumerable || !1),
  36188. (u.configurable = !0),
  36189. 'value' in u && (u.writable = !0),
  36190. Object.defineProperty(s, u.key, u);
  36191. }
  36192. }
  36193. function _defineProperty(s, o, i) {
  36194. return (
  36195. o in s
  36196. ? Object.defineProperty(s, o, {
  36197. value: i,
  36198. enumerable: !0,
  36199. configurable: !0,
  36200. writable: !0
  36201. })
  36202. : (s[o] = i),
  36203. s
  36204. );
  36205. }
  36206. function ownKeys(s, o) {
  36207. var i = Object.keys(s);
  36208. if (Object.getOwnPropertySymbols) {
  36209. var u = Object.getOwnPropertySymbols(s);
  36210. o &&
  36211. (u = u.filter(function (o) {
  36212. return Object.getOwnPropertyDescriptor(s, o).enumerable;
  36213. })),
  36214. i.push.apply(i, u);
  36215. }
  36216. return i;
  36217. }
  36218. function _getPrototypeOf(s) {
  36219. return (
  36220. (_getPrototypeOf = Object.setPrototypeOf
  36221. ? Object.getPrototypeOf
  36222. : function _getPrototypeOf(s) {
  36223. return s.__proto__ || Object.getPrototypeOf(s);
  36224. }),
  36225. _getPrototypeOf(s)
  36226. );
  36227. }
  36228. function _setPrototypeOf(s, o) {
  36229. return (
  36230. (_setPrototypeOf =
  36231. Object.setPrototypeOf ||
  36232. function _setPrototypeOf(s, o) {
  36233. return (s.__proto__ = o), s;
  36234. }),
  36235. _setPrototypeOf(s, o)
  36236. );
  36237. }
  36238. function _possibleConstructorReturn(s, o) {
  36239. return !o || ('object' != typeof o && 'function' != typeof o)
  36240. ? (function _assertThisInitialized(s) {
  36241. if (void 0 === s)
  36242. throw new ReferenceError(
  36243. "this hasn't been initialised - super() hasn't been called"
  36244. );
  36245. return s;
  36246. })(s)
  36247. : o;
  36248. }
  36249. var Xn = {};
  36250. function react_immutable_pure_component_es_get(s, o, i) {
  36251. return (function isInvalid(s) {
  36252. return null == s;
  36253. })(s)
  36254. ? i
  36255. : (function isMapLike(s) {
  36256. return (
  36257. null !== s &&
  36258. 'object' === _typeof(s) &&
  36259. 'function' == typeof s.get &&
  36260. 'function' == typeof s.has
  36261. );
  36262. })(s)
  36263. ? s.has(o)
  36264. ? s.get(o)
  36265. : i
  36266. : hasOwnProperty.call(s, o)
  36267. ? s[o]
  36268. : i;
  36269. }
  36270. function getIn(s, o, i) {
  36271. for (var u = 0; u !== o.length; )
  36272. if ((s = react_immutable_pure_component_es_get(s, o[u++], Xn)) === Xn) return i;
  36273. return s;
  36274. }
  36275. function check(s) {
  36276. var o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  36277. i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
  36278. u = (function createChecker(s, o) {
  36279. return function (i) {
  36280. if ('string' == typeof i) return (0, qe.is)(o[i], s[i]);
  36281. if (Array.isArray(i)) return (0, qe.is)(getIn(o, i), getIn(s, i));
  36282. throw new TypeError('Invalid key: expected Array or string: ' + i);
  36283. };
  36284. })(o, i),
  36285. _ =
  36286. s ||
  36287. Object.keys(
  36288. (function _objectSpread2(s) {
  36289. for (var o = 1; o < arguments.length; o++) {
  36290. var i = null != arguments[o] ? arguments[o] : {};
  36291. o % 2
  36292. ? ownKeys(i, !0).forEach(function (o) {
  36293. _defineProperty(s, o, i[o]);
  36294. })
  36295. : Object.getOwnPropertyDescriptors
  36296. ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(i))
  36297. : ownKeys(i).forEach(function (o) {
  36298. Object.defineProperty(s, o, Object.getOwnPropertyDescriptor(i, o));
  36299. });
  36300. }
  36301. return s;
  36302. })({}, i, {}, o)
  36303. );
  36304. return _.every(u);
  36305. }
  36306. const Zn = (function (s) {
  36307. function ImmutablePureComponent() {
  36308. return (
  36309. (function _classCallCheck(s, o) {
  36310. if (!(s instanceof o)) throw new TypeError('Cannot call a class as a function');
  36311. })(this, ImmutablePureComponent),
  36312. _possibleConstructorReturn(
  36313. this,
  36314. _getPrototypeOf(ImmutablePureComponent).apply(this, arguments)
  36315. )
  36316. );
  36317. }
  36318. return (
  36319. (function _inherits(s, o) {
  36320. if ('function' != typeof o && null !== o)
  36321. throw new TypeError('Super expression must either be null or a function');
  36322. (s.prototype = Object.create(o && o.prototype, {
  36323. constructor: { value: s, writable: !0, configurable: !0 }
  36324. })),
  36325. o && _setPrototypeOf(s, o);
  36326. })(ImmutablePureComponent, s),
  36327. (function _createClass(s, o, i) {
  36328. return o && _defineProperties(s.prototype, o), i && _defineProperties(s, i), s;
  36329. })(ImmutablePureComponent, [
  36330. {
  36331. key: 'shouldComponentUpdate',
  36332. value: function shouldComponentUpdate(s) {
  36333. var o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  36334. return (
  36335. !check(this.updateOnProps, this.props, s, 'updateOnProps') ||
  36336. !check(this.updateOnStates, this.state, o, 'updateOnStates')
  36337. );
  36338. }
  36339. }
  36340. ]),
  36341. ImmutablePureComponent
  36342. );
  36343. })(Pe.Component);
  36344. var Qn,
  36345. es = __webpack_require__(5556),
  36346. ts = __webpack_require__.n(es);
  36347. function _extends() {
  36348. return (
  36349. (_extends = Object.assign
  36350. ? Object.assign.bind()
  36351. : function (s) {
  36352. for (var o = 1; o < arguments.length; o++) {
  36353. var i = arguments[o];
  36354. for (var u in i) ({}).hasOwnProperty.call(i, u) && (s[u] = i[u]);
  36355. }
  36356. return s;
  36357. }),
  36358. _extends.apply(null, arguments)
  36359. );
  36360. }
  36361. const rolling_load = (s) =>
  36362. Pe.createElement(
  36363. 'svg',
  36364. _extends(
  36365. {
  36366. xmlns: 'http://www.w3.org/2000/svg',
  36367. width: 200,
  36368. height: 200,
  36369. className: 'rolling-load_svg__lds-rolling',
  36370. preserveAspectRatio: 'xMidYMid',
  36371. style: {
  36372. backgroundImage: 'none',
  36373. backgroundPosition: 'initial initial',
  36374. backgroundRepeat: 'initial initial'
  36375. },
  36376. viewBox: '0 0 100 100'
  36377. },
  36378. s
  36379. ),
  36380. Qn ||
  36381. (Qn = Pe.createElement(
  36382. 'circle',
  36383. {
  36384. cx: 50,
  36385. cy: 50,
  36386. r: 35,
  36387. fill: 'none',
  36388. stroke: '#555',
  36389. strokeDasharray: '164.93361431346415 56.97787143782138',
  36390. strokeWidth: 10
  36391. },
  36392. Pe.createElement('animateTransform', {
  36393. attributeName: 'transform',
  36394. begin: '0s',
  36395. calcMode: 'linear',
  36396. dur: '1s',
  36397. keyTimes: '0;1',
  36398. repeatCount: 'indefinite',
  36399. type: 'rotate',
  36400. values: '0 50 50;360 50 50'
  36401. })
  36402. ))
  36403. ),
  36404. decodeRefName = (s) => {
  36405. const o = s.replace(/~1/g, '/').replace(/~0/g, '~');
  36406. try {
  36407. return decodeURIComponent(o);
  36408. } catch {
  36409. return o;
  36410. }
  36411. };
  36412. class Model extends Zn {
  36413. static propTypes = {
  36414. schema: kn().map.isRequired,
  36415. getComponent: ts().func.isRequired,
  36416. getConfigs: ts().func.isRequired,
  36417. specSelectors: ts().object.isRequired,
  36418. name: ts().string,
  36419. displayName: ts().string,
  36420. isRef: ts().bool,
  36421. required: ts().bool,
  36422. expandDepth: ts().number,
  36423. depth: ts().number,
  36424. specPath: kn().list.isRequired,
  36425. includeReadOnly: ts().bool,
  36426. includeWriteOnly: ts().bool
  36427. };
  36428. getModelName = (s) =>
  36429. -1 !== s.indexOf('#/definitions/')
  36430. ? decodeRefName(s.replace(/^.*#\/definitions\//, ''))
  36431. : -1 !== s.indexOf('#/components/schemas/')
  36432. ? decodeRefName(s.replace(/^.*#\/components\/schemas\//, ''))
  36433. : void 0;
  36434. getRefSchema = (s) => {
  36435. let { specSelectors: o } = this.props;
  36436. return o.findDefinition(s);
  36437. };
  36438. render() {
  36439. let {
  36440. getComponent: s,
  36441. getConfigs: o,
  36442. specSelectors: i,
  36443. schema: u,
  36444. required: _,
  36445. name: w,
  36446. isRef: x,
  36447. specPath: C,
  36448. displayName: j,
  36449. includeReadOnly: L,
  36450. includeWriteOnly: B
  36451. } = this.props;
  36452. const $ = s('ObjectModel'),
  36453. V = s('ArrayModel'),
  36454. U = s('PrimitiveModel');
  36455. let z = 'object',
  36456. Y = u && u.get('$$ref'),
  36457. Z = u && u.get('$ref');
  36458. if ((!w && Y && (w = this.getModelName(Y)), Z)) {
  36459. const s = this.getModelName(Z),
  36460. o = this.getRefSchema(s);
  36461. qe.Map.isMap(o)
  36462. ? ((u = o.mergeDeep(u)), Y || ((u = u.set('$$ref', Z)), (Y = Z)))
  36463. : qe.Map.isMap(u) && 1 === u.size && ((u = null), (w = Z));
  36464. }
  36465. if (!u)
  36466. return Pe.createElement(
  36467. 'span',
  36468. { className: 'model model-title' },
  36469. Pe.createElement('span', { className: 'model-title__text' }, j || w),
  36470. !Z && Pe.createElement(rolling_load, { height: '20px', width: '20px' })
  36471. );
  36472. const ee = i.isOAS3() && u.get('deprecated');
  36473. switch (((x = void 0 !== x ? x : !!Y), (z = (u && u.get('type')) || z), z)) {
  36474. case 'object':
  36475. return Pe.createElement(
  36476. $,
  36477. Rn()({ className: 'object' }, this.props, {
  36478. specPath: C,
  36479. getConfigs: o,
  36480. schema: u,
  36481. name: w,
  36482. deprecated: ee,
  36483. isRef: x,
  36484. includeReadOnly: L,
  36485. includeWriteOnly: B
  36486. })
  36487. );
  36488. case 'array':
  36489. return Pe.createElement(
  36490. V,
  36491. Rn()({ className: 'array' }, this.props, {
  36492. getConfigs: o,
  36493. schema: u,
  36494. name: w,
  36495. deprecated: ee,
  36496. required: _,
  36497. includeReadOnly: L,
  36498. includeWriteOnly: B
  36499. })
  36500. );
  36501. default:
  36502. return Pe.createElement(
  36503. U,
  36504. Rn()({}, this.props, {
  36505. getComponent: s,
  36506. getConfigs: o,
  36507. schema: u,
  36508. name: w,
  36509. deprecated: ee,
  36510. required: _
  36511. })
  36512. );
  36513. }
  36514. }
  36515. }
  36516. class Models extends Pe.Component {
  36517. getSchemaBasePath = () =>
  36518. this.props.specSelectors.isOAS3() ? ['components', 'schemas'] : ['definitions'];
  36519. getCollapsedContent = () => ' ';
  36520. handleToggle = (s, o) => {
  36521. const { layoutActions: i } = this.props;
  36522. i.show([...this.getSchemaBasePath(), s], o),
  36523. o && this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(), s]);
  36524. };
  36525. onLoadModels = (s) => {
  36526. s && this.props.layoutActions.readyToScroll(this.getSchemaBasePath(), s);
  36527. };
  36528. onLoadModel = (s) => {
  36529. if (s) {
  36530. const o = s.getAttribute('data-name');
  36531. this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(), o], s);
  36532. }
  36533. };
  36534. render() {
  36535. let {
  36536. specSelectors: s,
  36537. getComponent: o,
  36538. layoutSelectors: i,
  36539. layoutActions: u,
  36540. getConfigs: _
  36541. } = this.props,
  36542. w = s.definitions(),
  36543. { docExpansion: x, defaultModelsExpandDepth: C } = _();
  36544. if (!w.size || C < 0) return null;
  36545. const j = this.getSchemaBasePath();
  36546. let L = i.isShown(j, C > 0 && 'none' !== x);
  36547. const B = s.isOAS3(),
  36548. $ = o('ModelWrapper'),
  36549. V = o('Collapse'),
  36550. U = o('ModelCollapse'),
  36551. z = o('JumpToPath', !0),
  36552. Y = o('ArrowUpIcon'),
  36553. Z = o('ArrowDownIcon');
  36554. return Pe.createElement(
  36555. 'section',
  36556. { className: L ? 'models is-open' : 'models', ref: this.onLoadModels },
  36557. Pe.createElement(
  36558. 'h4',
  36559. null,
  36560. Pe.createElement(
  36561. 'button',
  36562. { 'aria-expanded': L, className: 'models-control', onClick: () => u.show(j, !L) },
  36563. Pe.createElement('span', null, B ? 'Schemas' : 'Models'),
  36564. L ? Pe.createElement(Y, null) : Pe.createElement(Z, null)
  36565. )
  36566. ),
  36567. Pe.createElement(
  36568. V,
  36569. { isOpened: L },
  36570. w
  36571. .entrySeq()
  36572. .map(([w]) => {
  36573. const x = [...j, w],
  36574. L = $e().List(x),
  36575. B = s.specResolvedSubtree(x),
  36576. V = s.specJson().getIn(x),
  36577. Y = qe.Map.isMap(B) ? B : $e().Map(),
  36578. Z = qe.Map.isMap(V) ? V : $e().Map(),
  36579. ee = Y.get('title') || Z.get('title') || w,
  36580. ie = i.isShown(x, !1);
  36581. ie &&
  36582. 0 === Y.size &&
  36583. Z.size > 0 &&
  36584. this.props.specActions.requestResolvedSubtree(x);
  36585. const ae = Pe.createElement($, {
  36586. name: w,
  36587. expandDepth: C,
  36588. schema: Y || $e().Map(),
  36589. displayName: ee,
  36590. fullPath: x,
  36591. specPath: L,
  36592. getComponent: o,
  36593. specSelectors: s,
  36594. getConfigs: _,
  36595. layoutSelectors: i,
  36596. layoutActions: u,
  36597. includeReadOnly: !0,
  36598. includeWriteOnly: !0
  36599. }),
  36600. le = Pe.createElement(
  36601. 'span',
  36602. { className: 'model-box' },
  36603. Pe.createElement('span', { className: 'model model-title' }, ee)
  36604. );
  36605. return Pe.createElement(
  36606. 'div',
  36607. {
  36608. id: `model-${w}`,
  36609. className: 'model-container',
  36610. key: `models-section-${w}`,
  36611. 'data-name': w,
  36612. ref: this.onLoadModel
  36613. },
  36614. Pe.createElement(
  36615. 'span',
  36616. { className: 'models-jump-to-path' },
  36617. Pe.createElement(z, { specPath: L })
  36618. ),
  36619. Pe.createElement(
  36620. U,
  36621. {
  36622. classes: 'model-box',
  36623. collapsedContent: this.getCollapsedContent(w),
  36624. onToggle: this.handleToggle,
  36625. title: le,
  36626. displayName: ee,
  36627. modelName: w,
  36628. specPath: L,
  36629. layoutSelectors: i,
  36630. layoutActions: u,
  36631. hideSelfOnExpand: !0,
  36632. expanded: C > 0 && ie
  36633. },
  36634. ae
  36635. )
  36636. );
  36637. })
  36638. .toArray()
  36639. )
  36640. );
  36641. }
  36642. }
  36643. const enum_model = ({ value: s, getComponent: o }) => {
  36644. let i = o('ModelCollapse'),
  36645. u = Pe.createElement('span', null, 'Array [ ', s.count(), ' ]');
  36646. return Pe.createElement(
  36647. 'span',
  36648. { className: 'prop-enum' },
  36649. 'Enum:',
  36650. Pe.createElement('br', null),
  36651. Pe.createElement(i, { collapsedContent: u }, '[ ', s.map(String).join(', '), ' ]')
  36652. );
  36653. };
  36654. class ObjectModel extends Pe.Component {
  36655. render() {
  36656. let {
  36657. schema: s,
  36658. name: o,
  36659. displayName: i,
  36660. isRef: u,
  36661. getComponent: _,
  36662. getConfigs: w,
  36663. depth: x,
  36664. onToggle: C,
  36665. expanded: j,
  36666. specPath: L,
  36667. ...B
  36668. } = this.props,
  36669. { specSelectors: $, expandDepth: V, includeReadOnly: U, includeWriteOnly: z } = B;
  36670. const { isOAS3: Y } = $;
  36671. if (!s) return null;
  36672. const { showExtensions: Z } = w();
  36673. let ee = s.get('description'),
  36674. ie = s.get('properties'),
  36675. ae = s.get('additionalProperties'),
  36676. le = s.get('title') || i || o,
  36677. ce = s.get('required'),
  36678. pe = s.filter(
  36679. (s, o) =>
  36680. -1 !== ['maxProperties', 'minProperties', 'nullable', 'example'].indexOf(o)
  36681. ),
  36682. de = s.get('deprecated'),
  36683. fe = s.getIn(['externalDocs', 'url']),
  36684. ye = s.getIn(['externalDocs', 'description']);
  36685. const be = _('JumpToPath', !0),
  36686. _e = _('Markdown', !0),
  36687. we = _('Model'),
  36688. Se = _('ModelCollapse'),
  36689. xe = _('Property'),
  36690. Te = _('Link'),
  36691. JumpToPathSection = () =>
  36692. Pe.createElement(
  36693. 'span',
  36694. { className: 'model-jump-to-path' },
  36695. Pe.createElement(be, { specPath: L })
  36696. ),
  36697. Re = Pe.createElement(
  36698. 'span',
  36699. null,
  36700. Pe.createElement('span', null, '{'),
  36701. '...',
  36702. Pe.createElement('span', null, '}'),
  36703. u ? Pe.createElement(JumpToPathSection, null) : ''
  36704. ),
  36705. $e = $.isOAS3() ? s.get('allOf') : null,
  36706. ze = $.isOAS3() ? s.get('anyOf') : null,
  36707. We = $.isOAS3() ? s.get('oneOf') : null,
  36708. He = $.isOAS3() ? s.get('not') : null,
  36709. Ye =
  36710. le &&
  36711. Pe.createElement(
  36712. 'span',
  36713. { className: 'model-title' },
  36714. u &&
  36715. s.get('$$ref') &&
  36716. Pe.createElement('span', { className: 'model-hint' }, s.get('$$ref')),
  36717. Pe.createElement('span', { className: 'model-title__text' }, le)
  36718. );
  36719. return Pe.createElement(
  36720. 'span',
  36721. { className: 'model' },
  36722. Pe.createElement(
  36723. Se,
  36724. {
  36725. modelName: o,
  36726. title: Ye,
  36727. onToggle: C,
  36728. expanded: !!j || x <= V,
  36729. collapsedContent: Re
  36730. },
  36731. Pe.createElement('span', { className: 'brace-open object' }, '{'),
  36732. u ? Pe.createElement(JumpToPathSection, null) : null,
  36733. Pe.createElement(
  36734. 'span',
  36735. { className: 'inner-object' },
  36736. Pe.createElement(
  36737. 'table',
  36738. { className: 'model' },
  36739. Pe.createElement(
  36740. 'tbody',
  36741. null,
  36742. ee
  36743. ? Pe.createElement(
  36744. 'tr',
  36745. { className: 'description' },
  36746. Pe.createElement('td', null, 'description:'),
  36747. Pe.createElement('td', null, Pe.createElement(_e, { source: ee }))
  36748. )
  36749. : null,
  36750. fe &&
  36751. Pe.createElement(
  36752. 'tr',
  36753. { className: 'external-docs' },
  36754. Pe.createElement('td', null, 'externalDocs:'),
  36755. Pe.createElement(
  36756. 'td',
  36757. null,
  36758. Pe.createElement(
  36759. Te,
  36760. { target: '_blank', href: sanitizeUrl(fe) },
  36761. ye || fe
  36762. )
  36763. )
  36764. ),
  36765. de
  36766. ? Pe.createElement(
  36767. 'tr',
  36768. { className: 'property' },
  36769. Pe.createElement('td', null, 'deprecated:'),
  36770. Pe.createElement('td', null, 'true')
  36771. )
  36772. : null,
  36773. ie && ie.size
  36774. ? ie
  36775. .entrySeq()
  36776. .filter(
  36777. ([, s]) => (!s.get('readOnly') || U) && (!s.get('writeOnly') || z)
  36778. )
  36779. .map(([s, i]) => {
  36780. let u = Y() && i.get('deprecated'),
  36781. C = qe.List.isList(ce) && ce.contains(s),
  36782. j = ['property-row'];
  36783. return (
  36784. u && j.push('deprecated'),
  36785. C && j.push('required'),
  36786. Pe.createElement(
  36787. 'tr',
  36788. { key: s, className: j.join(' ') },
  36789. Pe.createElement(
  36790. 'td',
  36791. null,
  36792. s,
  36793. C && Pe.createElement('span', { className: 'star' }, '*')
  36794. ),
  36795. Pe.createElement(
  36796. 'td',
  36797. null,
  36798. Pe.createElement(
  36799. we,
  36800. Rn()({ key: `object-${o}-${s}_${i}` }, B, {
  36801. required: C,
  36802. getComponent: _,
  36803. specPath: L.push('properties', s),
  36804. getConfigs: w,
  36805. schema: i,
  36806. depth: x + 1
  36807. })
  36808. )
  36809. )
  36810. )
  36811. );
  36812. })
  36813. .toArray()
  36814. : null,
  36815. Z ? Pe.createElement('tr', null, Pe.createElement('td', null, ' ')) : null,
  36816. Z
  36817. ? s
  36818. .entrySeq()
  36819. .map(([s, o]) => {
  36820. if ('x-' !== s.slice(0, 2)) return;
  36821. const i = o ? (o.toJS ? o.toJS() : o) : null;
  36822. return Pe.createElement(
  36823. 'tr',
  36824. { key: s, className: 'extension' },
  36825. Pe.createElement('td', null, s),
  36826. Pe.createElement('td', null, JSON.stringify(i))
  36827. );
  36828. })
  36829. .toArray()
  36830. : null,
  36831. ae && ae.size
  36832. ? Pe.createElement(
  36833. 'tr',
  36834. null,
  36835. Pe.createElement('td', null, '< * >:'),
  36836. Pe.createElement(
  36837. 'td',
  36838. null,
  36839. Pe.createElement(
  36840. we,
  36841. Rn()({}, B, {
  36842. required: !1,
  36843. getComponent: _,
  36844. specPath: L.push('additionalProperties'),
  36845. getConfigs: w,
  36846. schema: ae,
  36847. depth: x + 1
  36848. })
  36849. )
  36850. )
  36851. )
  36852. : null,
  36853. $e
  36854. ? Pe.createElement(
  36855. 'tr',
  36856. null,
  36857. Pe.createElement('td', null, 'allOf ->'),
  36858. Pe.createElement(
  36859. 'td',
  36860. null,
  36861. $e.map((s, o) =>
  36862. Pe.createElement(
  36863. 'div',
  36864. { key: o },
  36865. Pe.createElement(
  36866. we,
  36867. Rn()({}, B, {
  36868. required: !1,
  36869. getComponent: _,
  36870. specPath: L.push('allOf', o),
  36871. getConfigs: w,
  36872. schema: s,
  36873. depth: x + 1
  36874. })
  36875. )
  36876. )
  36877. )
  36878. )
  36879. )
  36880. : null,
  36881. ze
  36882. ? Pe.createElement(
  36883. 'tr',
  36884. null,
  36885. Pe.createElement('td', null, 'anyOf ->'),
  36886. Pe.createElement(
  36887. 'td',
  36888. null,
  36889. ze.map((s, o) =>
  36890. Pe.createElement(
  36891. 'div',
  36892. { key: o },
  36893. Pe.createElement(
  36894. we,
  36895. Rn()({}, B, {
  36896. required: !1,
  36897. getComponent: _,
  36898. specPath: L.push('anyOf', o),
  36899. getConfigs: w,
  36900. schema: s,
  36901. depth: x + 1
  36902. })
  36903. )
  36904. )
  36905. )
  36906. )
  36907. )
  36908. : null,
  36909. We
  36910. ? Pe.createElement(
  36911. 'tr',
  36912. null,
  36913. Pe.createElement('td', null, 'oneOf ->'),
  36914. Pe.createElement(
  36915. 'td',
  36916. null,
  36917. We.map((s, o) =>
  36918. Pe.createElement(
  36919. 'div',
  36920. { key: o },
  36921. Pe.createElement(
  36922. we,
  36923. Rn()({}, B, {
  36924. required: !1,
  36925. getComponent: _,
  36926. specPath: L.push('oneOf', o),
  36927. getConfigs: w,
  36928. schema: s,
  36929. depth: x + 1
  36930. })
  36931. )
  36932. )
  36933. )
  36934. )
  36935. )
  36936. : null,
  36937. He
  36938. ? Pe.createElement(
  36939. 'tr',
  36940. null,
  36941. Pe.createElement('td', null, 'not ->'),
  36942. Pe.createElement(
  36943. 'td',
  36944. null,
  36945. Pe.createElement(
  36946. 'div',
  36947. null,
  36948. Pe.createElement(
  36949. we,
  36950. Rn()({}, B, {
  36951. required: !1,
  36952. getComponent: _,
  36953. specPath: L.push('not'),
  36954. getConfigs: w,
  36955. schema: He,
  36956. depth: x + 1
  36957. })
  36958. )
  36959. )
  36960. )
  36961. )
  36962. : null
  36963. )
  36964. )
  36965. ),
  36966. Pe.createElement('span', { className: 'brace-close' }, '}')
  36967. ),
  36968. pe.size
  36969. ? pe.entrySeq().map(([s, o]) =>
  36970. Pe.createElement(xe, {
  36971. key: `${s}-${o}`,
  36972. propKey: s,
  36973. propVal: o,
  36974. propClass: 'property'
  36975. })
  36976. )
  36977. : null
  36978. );
  36979. }
  36980. }
  36981. class ArrayModel extends Pe.Component {
  36982. render() {
  36983. let {
  36984. getComponent: s,
  36985. getConfigs: o,
  36986. schema: i,
  36987. depth: u,
  36988. expandDepth: _,
  36989. name: w,
  36990. displayName: x,
  36991. specPath: C
  36992. } = this.props,
  36993. j = i.get('description'),
  36994. L = i.get('items'),
  36995. B = i.get('title') || x || w,
  36996. $ = i.filter(
  36997. (s, o) =>
  36998. -1 === ['type', 'items', 'description', '$$ref', 'externalDocs'].indexOf(o)
  36999. ),
  37000. V = i.getIn(['externalDocs', 'url']),
  37001. U = i.getIn(['externalDocs', 'description']);
  37002. const z = s('Markdown', !0),
  37003. Y = s('ModelCollapse'),
  37004. Z = s('Model'),
  37005. ee = s('Property'),
  37006. ie = s('Link'),
  37007. ae =
  37008. B &&
  37009. Pe.createElement(
  37010. 'span',
  37011. { className: 'model-title' },
  37012. Pe.createElement('span', { className: 'model-title__text' }, B)
  37013. );
  37014. return Pe.createElement(
  37015. 'span',
  37016. { className: 'model' },
  37017. Pe.createElement(
  37018. Y,
  37019. { title: ae, expanded: u <= _, collapsedContent: '[...]' },
  37020. '[',
  37021. $.size
  37022. ? $.entrySeq().map(([s, o]) =>
  37023. Pe.createElement(ee, {
  37024. key: `${s}-${o}`,
  37025. propKey: s,
  37026. propVal: o,
  37027. propClass: 'property'
  37028. })
  37029. )
  37030. : null,
  37031. j
  37032. ? Pe.createElement(z, { source: j })
  37033. : $.size
  37034. ? Pe.createElement('div', { className: 'markdown' })
  37035. : null,
  37036. V &&
  37037. Pe.createElement(
  37038. 'div',
  37039. { className: 'external-docs' },
  37040. Pe.createElement(ie, { target: '_blank', href: sanitizeUrl(V) }, U || V)
  37041. ),
  37042. Pe.createElement(
  37043. 'span',
  37044. null,
  37045. Pe.createElement(
  37046. Z,
  37047. Rn()({}, this.props, {
  37048. getConfigs: o,
  37049. specPath: C.push('items'),
  37050. name: null,
  37051. schema: L,
  37052. required: !1,
  37053. depth: u + 1
  37054. })
  37055. )
  37056. ),
  37057. ']'
  37058. )
  37059. );
  37060. }
  37061. }
  37062. const rs = 'property primitive';
  37063. class Primitive extends Pe.Component {
  37064. render() {
  37065. let {
  37066. schema: s,
  37067. getComponent: o,
  37068. getConfigs: i,
  37069. name: u,
  37070. displayName: _,
  37071. depth: w,
  37072. expandDepth: x
  37073. } = this.props;
  37074. const { showExtensions: C } = i();
  37075. if (!s || !s.get) return Pe.createElement('div', null);
  37076. let j = s.get('type'),
  37077. L = s.get('format'),
  37078. B = s.get('xml'),
  37079. $ = s.get('enum'),
  37080. V = s.get('title') || _ || u,
  37081. U = s.get('description'),
  37082. z = getExtensions(s),
  37083. Y = s
  37084. .filter(
  37085. (s, o) =>
  37086. -1 ===
  37087. ['enum', 'type', 'format', 'description', '$$ref', 'externalDocs'].indexOf(o)
  37088. )
  37089. .filterNot((s, o) => z.has(o)),
  37090. Z = s.getIn(['externalDocs', 'url']),
  37091. ee = s.getIn(['externalDocs', 'description']);
  37092. const ie = o('Markdown', !0),
  37093. ae = o('EnumModel'),
  37094. le = o('Property'),
  37095. ce = o('ModelCollapse'),
  37096. pe = o('Link'),
  37097. de =
  37098. V &&
  37099. Pe.createElement(
  37100. 'span',
  37101. { className: 'model-title' },
  37102. Pe.createElement('span', { className: 'model-title__text' }, V)
  37103. );
  37104. return Pe.createElement(
  37105. 'span',
  37106. { className: 'model' },
  37107. Pe.createElement(
  37108. ce,
  37109. { title: de, expanded: w <= x, collapsedContent: '[...]' },
  37110. Pe.createElement(
  37111. 'span',
  37112. { className: 'prop' },
  37113. u && w > 1 && Pe.createElement('span', { className: 'prop-name' }, V),
  37114. Pe.createElement('span', { className: 'prop-type' }, j),
  37115. L && Pe.createElement('span', { className: 'prop-format' }, '($', L, ')'),
  37116. Y.size
  37117. ? Y.entrySeq().map(([s, o]) =>
  37118. Pe.createElement(le, {
  37119. key: `${s}-${o}`,
  37120. propKey: s,
  37121. propVal: o,
  37122. propClass: rs
  37123. })
  37124. )
  37125. : null,
  37126. C && z.size
  37127. ? z.entrySeq().map(([s, o]) =>
  37128. Pe.createElement(le, {
  37129. key: `${s}-${o}`,
  37130. propKey: s,
  37131. propVal: o,
  37132. propClass: rs
  37133. })
  37134. )
  37135. : null,
  37136. U ? Pe.createElement(ie, { source: U }) : null,
  37137. Z &&
  37138. Pe.createElement(
  37139. 'div',
  37140. { className: 'external-docs' },
  37141. Pe.createElement(pe, { target: '_blank', href: sanitizeUrl(Z) }, ee || Z)
  37142. ),
  37143. B && B.size
  37144. ? Pe.createElement(
  37145. 'span',
  37146. null,
  37147. Pe.createElement('br', null),
  37148. Pe.createElement('span', { className: rs }, 'xml:'),
  37149. B.entrySeq()
  37150. .map(([s, o]) =>
  37151. Pe.createElement(
  37152. 'span',
  37153. { key: `${s}-${o}`, className: rs },
  37154. Pe.createElement('br', null),
  37155. '   ',
  37156. s,
  37157. ': ',
  37158. String(o)
  37159. )
  37160. )
  37161. .toArray()
  37162. )
  37163. : null,
  37164. $ && Pe.createElement(ae, { value: $, getComponent: o })
  37165. )
  37166. )
  37167. );
  37168. }
  37169. }
  37170. class Schemes extends Pe.Component {
  37171. UNSAFE_componentWillMount() {
  37172. let { schemes: s } = this.props;
  37173. this.setScheme(s.first());
  37174. }
  37175. UNSAFE_componentWillReceiveProps(s) {
  37176. (this.props.currentScheme && s.schemes.includes(this.props.currentScheme)) ||
  37177. this.setScheme(s.schemes.first());
  37178. }
  37179. onChange = (s) => {
  37180. this.setScheme(s.target.value);
  37181. };
  37182. setScheme = (s) => {
  37183. let { path: o, method: i, specActions: u } = this.props;
  37184. u.setScheme(s, o, i);
  37185. };
  37186. render() {
  37187. let { schemes: s, currentScheme: o } = this.props;
  37188. return Pe.createElement(
  37189. 'label',
  37190. { htmlFor: 'schemes' },
  37191. Pe.createElement('span', { className: 'schemes-title' }, 'Schemes'),
  37192. Pe.createElement(
  37193. 'select',
  37194. { onChange: this.onChange, value: o, id: 'schemes' },
  37195. s
  37196. .valueSeq()
  37197. .map((s) => Pe.createElement('option', { value: s, key: s }, s))
  37198. .toArray()
  37199. )
  37200. );
  37201. }
  37202. }
  37203. class SchemesContainer extends Pe.Component {
  37204. render() {
  37205. const { specActions: s, specSelectors: o, getComponent: i } = this.props,
  37206. u = o.operationScheme(),
  37207. _ = o.schemes(),
  37208. w = i('schemes');
  37209. return _ && _.size
  37210. ? Pe.createElement(w, { currentScheme: u, schemes: _, specActions: s })
  37211. : null;
  37212. }
  37213. }
  37214. var ns = __webpack_require__(24677),
  37215. ss = __webpack_require__.n(ns);
  37216. const os = {
  37217. value: '',
  37218. onChange: () => {},
  37219. schema: {},
  37220. keyName: '',
  37221. required: !1,
  37222. errors: (0, qe.List)()
  37223. };
  37224. class JsonSchemaForm extends Pe.Component {
  37225. static defaultProps = os;
  37226. componentDidMount() {
  37227. const { dispatchInitialValue: s, value: o, onChange: i } = this.props;
  37228. s ? i(o) : !1 === s && i('');
  37229. }
  37230. render() {
  37231. let {
  37232. schema: s,
  37233. errors: o,
  37234. value: i,
  37235. onChange: u,
  37236. getComponent: _,
  37237. fn: w,
  37238. disabled: x
  37239. } = this.props;
  37240. const C = s && s.get ? s.get('format') : null,
  37241. j = s && s.get ? s.get('type') : null;
  37242. let getComponentSilently = (s) => _(s, !1, { failSilently: !0 }),
  37243. L = j
  37244. ? getComponentSilently(C ? `JsonSchema_${j}_${C}` : `JsonSchema_${j}`)
  37245. : _('JsonSchema_string');
  37246. return (
  37247. L || (L = _('JsonSchema_string')),
  37248. Pe.createElement(
  37249. L,
  37250. Rn()({}, this.props, {
  37251. errors: o,
  37252. fn: w,
  37253. getComponent: _,
  37254. value: i,
  37255. onChange: u,
  37256. schema: s,
  37257. disabled: x
  37258. })
  37259. )
  37260. );
  37261. }
  37262. }
  37263. class JsonSchema_string extends Pe.Component {
  37264. static defaultProps = os;
  37265. onChange = (s) => {
  37266. const o =
  37267. this.props.schema && 'file' === this.props.schema.get('type')
  37268. ? s.target.files[0]
  37269. : s.target.value;
  37270. this.props.onChange(o, this.props.keyName);
  37271. };
  37272. onEnumChange = (s) => this.props.onChange(s);
  37273. render() {
  37274. let {
  37275. getComponent: s,
  37276. value: o,
  37277. schema: i,
  37278. errors: u,
  37279. required: _,
  37280. description: w,
  37281. disabled: x
  37282. } = this.props;
  37283. const C = i && i.get ? i.get('enum') : null,
  37284. j = i && i.get ? i.get('format') : null,
  37285. L = i && i.get ? i.get('type') : null,
  37286. B = i && i.get ? i.get('in') : null;
  37287. if ((o || (o = ''), (u = u.toJS ? u.toJS() : []), C)) {
  37288. const i = s('Select');
  37289. return Pe.createElement(i, {
  37290. className: u.length ? 'invalid' : '',
  37291. title: u.length ? u : '',
  37292. allowedValues: [...C],
  37293. value: o,
  37294. allowEmptyValue: !_,
  37295. disabled: x,
  37296. onChange: this.onEnumChange
  37297. });
  37298. }
  37299. const $ = x || (B && 'formData' === B && !('FormData' in window)),
  37300. V = s('Input');
  37301. return L && 'file' === L
  37302. ? Pe.createElement(V, {
  37303. type: 'file',
  37304. className: u.length ? 'invalid' : '',
  37305. title: u.length ? u : '',
  37306. onChange: this.onChange,
  37307. disabled: $
  37308. })
  37309. : Pe.createElement(ss(), {
  37310. type: j && 'password' === j ? 'password' : 'text',
  37311. className: u.length ? 'invalid' : '',
  37312. title: u.length ? u : '',
  37313. value: o,
  37314. minLength: 0,
  37315. debounceTimeout: 350,
  37316. placeholder: w,
  37317. onChange: this.onChange,
  37318. disabled: $
  37319. });
  37320. }
  37321. }
  37322. class JsonSchema_array extends Pe.PureComponent {
  37323. static defaultProps = os;
  37324. constructor(s, o) {
  37325. super(s, o), (this.state = { value: valueOrEmptyList(s.value), schema: s.schema });
  37326. }
  37327. UNSAFE_componentWillReceiveProps(s) {
  37328. const o = valueOrEmptyList(s.value);
  37329. o !== this.state.value && this.setState({ value: o }),
  37330. s.schema !== this.state.schema && this.setState({ schema: s.schema });
  37331. }
  37332. onChange = () => {
  37333. this.props.onChange(this.state.value);
  37334. };
  37335. onItemChange = (s, o) => {
  37336. this.setState(({ value: i }) => ({ value: i.set(o, s) }), this.onChange);
  37337. };
  37338. removeItem = (s) => {
  37339. this.setState(({ value: o }) => ({ value: o.delete(s) }), this.onChange);
  37340. };
  37341. addItem = () => {
  37342. const { fn: s } = this.props;
  37343. let o = valueOrEmptyList(this.state.value);
  37344. this.setState(
  37345. () => ({
  37346. value: o.push(
  37347. s.getSampleSchema(this.state.schema.get('items'), !1, { includeWriteOnly: !0 })
  37348. )
  37349. }),
  37350. this.onChange
  37351. );
  37352. };
  37353. onEnumChange = (s) => {
  37354. this.setState(() => ({ value: s }), this.onChange);
  37355. };
  37356. render() {
  37357. let {
  37358. getComponent: s,
  37359. required: o,
  37360. schema: i,
  37361. errors: u,
  37362. fn: _,
  37363. disabled: w
  37364. } = this.props;
  37365. u = u.toJS ? u.toJS() : Array.isArray(u) ? u : [];
  37366. const x = u.filter((s) => 'string' == typeof s),
  37367. C = u.filter((s) => void 0 !== s.needRemove).map((s) => s.error),
  37368. j = this.state.value,
  37369. L = !!(j && j.count && j.count() > 0),
  37370. B = i.getIn(['items', 'enum']),
  37371. $ = i.getIn(['items', 'type']),
  37372. V = i.getIn(['items', 'format']),
  37373. U = i.get('items');
  37374. let z,
  37375. Y = !1,
  37376. Z = 'file' === $ || ('string' === $ && 'binary' === V);
  37377. if (
  37378. ($ && V
  37379. ? (z = s(`JsonSchema_${$}_${V}`))
  37380. : ('boolean' !== $ && 'array' !== $ && 'object' !== $) ||
  37381. (z = s(`JsonSchema_${$}`)),
  37382. z || Z || (Y = !0),
  37383. B)
  37384. ) {
  37385. const i = s('Select');
  37386. return Pe.createElement(i, {
  37387. className: u.length ? 'invalid' : '',
  37388. title: u.length ? u : '',
  37389. multiple: !0,
  37390. value: j,
  37391. disabled: w,
  37392. allowedValues: B,
  37393. allowEmptyValue: !o,
  37394. onChange: this.onEnumChange
  37395. });
  37396. }
  37397. const ee = s('Button');
  37398. return Pe.createElement(
  37399. 'div',
  37400. { className: 'json-schema-array' },
  37401. L
  37402. ? j.map((o, i) => {
  37403. const x = (0, qe.fromJS)([
  37404. ...u.filter((s) => s.index === i).map((s) => s.error)
  37405. ]);
  37406. return Pe.createElement(
  37407. 'div',
  37408. { key: i, className: 'json-schema-form-item' },
  37409. Z
  37410. ? Pe.createElement(JsonSchemaArrayItemFile, {
  37411. value: o,
  37412. onChange: (s) => this.onItemChange(s, i),
  37413. disabled: w,
  37414. errors: x,
  37415. getComponent: s
  37416. })
  37417. : Y
  37418. ? Pe.createElement(JsonSchemaArrayItemText, {
  37419. value: o,
  37420. onChange: (s) => this.onItemChange(s, i),
  37421. disabled: w,
  37422. errors: x
  37423. })
  37424. : Pe.createElement(
  37425. z,
  37426. Rn()({}, this.props, {
  37427. value: o,
  37428. onChange: (s) => this.onItemChange(s, i),
  37429. disabled: w,
  37430. errors: x,
  37431. schema: U,
  37432. getComponent: s,
  37433. fn: _
  37434. })
  37435. ),
  37436. w
  37437. ? null
  37438. : Pe.createElement(
  37439. ee,
  37440. {
  37441. className: `btn btn-sm json-schema-form-item-remove ${C.length ? 'invalid' : null}`,
  37442. title: C.length ? C : '',
  37443. onClick: () => this.removeItem(i)
  37444. },
  37445. ' - '
  37446. )
  37447. );
  37448. })
  37449. : null,
  37450. w
  37451. ? null
  37452. : Pe.createElement(
  37453. ee,
  37454. {
  37455. className: `btn btn-sm json-schema-form-item-add ${x.length ? 'invalid' : null}`,
  37456. title: x.length ? x : '',
  37457. onClick: this.addItem
  37458. },
  37459. 'Add ',
  37460. $ ? `${$} ` : '',
  37461. 'item'
  37462. )
  37463. );
  37464. }
  37465. }
  37466. class JsonSchemaArrayItemText extends Pe.Component {
  37467. static defaultProps = os;
  37468. onChange = (s) => {
  37469. const o = s.target.value;
  37470. this.props.onChange(o, this.props.keyName);
  37471. };
  37472. render() {
  37473. let { value: s, errors: o, description: i, disabled: u } = this.props;
  37474. return (
  37475. s || (s = ''),
  37476. (o = o.toJS ? o.toJS() : []),
  37477. Pe.createElement(ss(), {
  37478. type: 'text',
  37479. className: o.length ? 'invalid' : '',
  37480. title: o.length ? o : '',
  37481. value: s,
  37482. minLength: 0,
  37483. debounceTimeout: 350,
  37484. placeholder: i,
  37485. onChange: this.onChange,
  37486. disabled: u
  37487. })
  37488. );
  37489. }
  37490. }
  37491. class JsonSchemaArrayItemFile extends Pe.Component {
  37492. static defaultProps = os;
  37493. onFileChange = (s) => {
  37494. const o = s.target.files[0];
  37495. this.props.onChange(o, this.props.keyName);
  37496. };
  37497. render() {
  37498. let { getComponent: s, errors: o, disabled: i } = this.props;
  37499. const u = s('Input'),
  37500. _ = i || !('FormData' in window);
  37501. return Pe.createElement(u, {
  37502. type: 'file',
  37503. className: o.length ? 'invalid' : '',
  37504. title: o.length ? o : '',
  37505. onChange: this.onFileChange,
  37506. disabled: _
  37507. });
  37508. }
  37509. }
  37510. class JsonSchema_boolean extends Pe.Component {
  37511. static defaultProps = os;
  37512. onEnumChange = (s) => this.props.onChange(s);
  37513. render() {
  37514. let {
  37515. getComponent: s,
  37516. value: o,
  37517. errors: i,
  37518. schema: u,
  37519. required: _,
  37520. disabled: w
  37521. } = this.props;
  37522. i = i.toJS ? i.toJS() : [];
  37523. let x = u && u.get ? u.get('enum') : null,
  37524. C = !x || !_,
  37525. j = !x && ['true', 'false'];
  37526. const L = s('Select');
  37527. return Pe.createElement(L, {
  37528. className: i.length ? 'invalid' : '',
  37529. title: i.length ? i : '',
  37530. value: String(o),
  37531. disabled: w,
  37532. allowedValues: x ? [...x] : j,
  37533. allowEmptyValue: C,
  37534. onChange: this.onEnumChange
  37535. });
  37536. }
  37537. }
  37538. const stringifyObjectErrors = (s) =>
  37539. s.map((s) => {
  37540. const o = void 0 !== s.propKey ? s.propKey : s.index;
  37541. let i = 'string' == typeof s ? s : 'string' == typeof s.error ? s.error : null;
  37542. if (!o && i) return i;
  37543. let u = s.error,
  37544. _ = `/${s.propKey}`;
  37545. for (; 'object' == typeof u; ) {
  37546. const s = void 0 !== u.propKey ? u.propKey : u.index;
  37547. if (void 0 === s) break;
  37548. if (((_ += `/${s}`), !u.error)) break;
  37549. u = u.error;
  37550. }
  37551. return `${_}: ${u}`;
  37552. });
  37553. class JsonSchema_object extends Pe.PureComponent {
  37554. constructor() {
  37555. super();
  37556. }
  37557. static defaultProps = os;
  37558. onChange = (s) => {
  37559. this.props.onChange(s);
  37560. };
  37561. handleOnChange = (s) => {
  37562. const o = s.target.value;
  37563. this.onChange(o);
  37564. };
  37565. render() {
  37566. let { getComponent: s, value: o, errors: i, disabled: u } = this.props;
  37567. const _ = s('TextArea');
  37568. return (
  37569. (i = i.toJS ? i.toJS() : Array.isArray(i) ? i : []),
  37570. Pe.createElement(
  37571. 'div',
  37572. null,
  37573. Pe.createElement(_, {
  37574. className: Hn()({ invalid: i.length }),
  37575. title: i.length ? stringifyObjectErrors(i).join(', ') : '',
  37576. value: stringify(o),
  37577. disabled: u,
  37578. onChange: this.handleOnChange
  37579. })
  37580. )
  37581. );
  37582. }
  37583. }
  37584. function valueOrEmptyList(s) {
  37585. return qe.List.isList(s) ? s : Array.isArray(s) ? (0, qe.fromJS)(s) : (0, qe.List)();
  37586. }
  37587. const json_schema_5 = () => ({
  37588. components: {
  37589. modelExample: model_example,
  37590. ModelWrapper,
  37591. ModelCollapse,
  37592. Model,
  37593. Models,
  37594. EnumModel: enum_model,
  37595. ObjectModel,
  37596. ArrayModel,
  37597. PrimitiveModel: Primitive,
  37598. schemes: Schemes,
  37599. SchemesContainer,
  37600. ...z
  37601. }
  37602. });
  37603. var as = __webpack_require__(19123),
  37604. ls = __webpack_require__.n(as),
  37605. cs = __webpack_require__(41859),
  37606. us = __webpack_require__.n(cs),
  37607. ps = __webpack_require__(62193),
  37608. hs = __webpack_require__.n(ps);
  37609. const shallowArrayEquals = (s) => (o) =>
  37610. Array.isArray(s) &&
  37611. Array.isArray(o) &&
  37612. s.length === o.length &&
  37613. s.every((s, i) => s === o[i]),
  37614. list = (...s) => s;
  37615. class Cache extends Map {
  37616. delete(s) {
  37617. const o = Array.from(this.keys()).find(shallowArrayEquals(s));
  37618. return super.delete(o);
  37619. }
  37620. get(s) {
  37621. const o = Array.from(this.keys()).find(shallowArrayEquals(s));
  37622. return super.get(o);
  37623. }
  37624. has(s) {
  37625. return -1 !== Array.from(this.keys()).findIndex(shallowArrayEquals(s));
  37626. }
  37627. }
  37628. const utils_memoizeN = (s, o = list) => {
  37629. const { Cache: i } = ut();
  37630. ut().Cache = Cache;
  37631. const u = ut()(s, o);
  37632. return (ut().Cache = i), u;
  37633. },
  37634. ds = {
  37635. string: (s) =>
  37636. s.pattern
  37637. ? ((s) => {
  37638. try {
  37639. return new (us())(s).gen();
  37640. } catch (s) {
  37641. return 'string';
  37642. }
  37643. })(s.pattern)
  37644. : 'string',
  37645. string_email: () => 'user@example.com',
  37646. 'string_date-time': () => new Date().toISOString(),
  37647. string_date: () => new Date().toISOString().substring(0, 10),
  37648. string_uuid: () => '3fa85f64-5717-4562-b3fc-2c963f66afa6',
  37649. string_hostname: () => 'example.com',
  37650. string_ipv4: () => '198.51.100.42',
  37651. string_ipv6: () => '2001:0db8:5b96:0000:0000:426f:8e17:642a',
  37652. number: () => 0,
  37653. number_float: () => 0,
  37654. integer: () => 0,
  37655. boolean: (s) => 'boolean' != typeof s.default || s.default
  37656. },
  37657. primitive = (s) => {
  37658. s = objectify(s);
  37659. let { type: o, format: i } = s,
  37660. u = ds[`${o}_${i}`] || ds[o];
  37661. return isFunc(u) ? u(s) : 'Unknown Type: ' + s.type;
  37662. },
  37663. sanitizeRef = (s) =>
  37664. deeplyStripKey(s, '$$ref', (s) => 'string' == typeof s && s.indexOf('#') > -1),
  37665. fs = ['maxProperties', 'minProperties'],
  37666. ms = ['minItems', 'maxItems'],
  37667. gs = ['minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum'],
  37668. ys = ['minLength', 'maxLength'],
  37669. mergeJsonSchema = (s, o, i = {}) => {
  37670. const u = { ...s };
  37671. if (
  37672. (['example', 'default', 'enum', 'xml', 'type', ...fs, ...ms, ...gs, ...ys].forEach(
  37673. (s) =>
  37674. ((s) => {
  37675. void 0 === u[s] && void 0 !== o[s] && (u[s] = o[s]);
  37676. })(s)
  37677. ),
  37678. void 0 !== o.required &&
  37679. Array.isArray(o.required) &&
  37680. ((void 0 !== u.required && u.required.length) || (u.required = []),
  37681. o.required.forEach((s) => {
  37682. u.required.includes(s) || u.required.push(s);
  37683. })),
  37684. o.properties)
  37685. ) {
  37686. u.properties || (u.properties = {});
  37687. let s = objectify(o.properties);
  37688. for (let _ in s)
  37689. Object.prototype.hasOwnProperty.call(s, _) &&
  37690. ((s[_] && s[_].deprecated) ||
  37691. (s[_] && s[_].readOnly && !i.includeReadOnly) ||
  37692. (s[_] && s[_].writeOnly && !i.includeWriteOnly) ||
  37693. u.properties[_] ||
  37694. ((u.properties[_] = s[_]),
  37695. !o.required &&
  37696. Array.isArray(o.required) &&
  37697. -1 !== o.required.indexOf(_) &&
  37698. (u.required ? u.required.push(_) : (u.required = [_]))));
  37699. }
  37700. return (
  37701. o.items &&
  37702. (u.items || (u.items = {}), (u.items = mergeJsonSchema(u.items, o.items, i))),
  37703. u
  37704. );
  37705. },
  37706. sampleFromSchemaGeneric = (s, o = {}, i = void 0, u = !1) => {
  37707. s && isFunc(s.toJS) && (s = s.toJS());
  37708. let _ = void 0 !== i || (s && void 0 !== s.example) || (s && void 0 !== s.default);
  37709. const w = !_ && s && s.oneOf && s.oneOf.length > 0,
  37710. x = !_ && s && s.anyOf && s.anyOf.length > 0;
  37711. if (!_ && (w || x)) {
  37712. const i = objectify(w ? s.oneOf[0] : s.anyOf[0]);
  37713. if (
  37714. (!(s = mergeJsonSchema(s, i, o)).xml && i.xml && (s.xml = i.xml),
  37715. void 0 !== s.example && void 0 !== i.example)
  37716. )
  37717. _ = !0;
  37718. else if (i.properties) {
  37719. s.properties || (s.properties = {});
  37720. let u = objectify(i.properties);
  37721. for (let _ in u)
  37722. Object.prototype.hasOwnProperty.call(u, _) &&
  37723. ((u[_] && u[_].deprecated) ||
  37724. (u[_] && u[_].readOnly && !o.includeReadOnly) ||
  37725. (u[_] && u[_].writeOnly && !o.includeWriteOnly) ||
  37726. s.properties[_] ||
  37727. ((s.properties[_] = u[_]),
  37728. !i.required &&
  37729. Array.isArray(i.required) &&
  37730. -1 !== i.required.indexOf(_) &&
  37731. (s.required ? s.required.push(_) : (s.required = [_]))));
  37732. }
  37733. }
  37734. const C = {};
  37735. let {
  37736. xml: j,
  37737. type: L,
  37738. example: B,
  37739. properties: $,
  37740. additionalProperties: V,
  37741. items: U
  37742. } = s || {},
  37743. { includeReadOnly: z, includeWriteOnly: Y } = o;
  37744. j = j || {};
  37745. let Z,
  37746. { name: ee, prefix: ie, namespace: ae } = j,
  37747. le = {};
  37748. if (u && ((ee = ee || 'notagname'), (Z = (ie ? ie + ':' : '') + ee), ae)) {
  37749. C[ie ? 'xmlns:' + ie : 'xmlns'] = ae;
  37750. }
  37751. u && (le[Z] = []);
  37752. const schemaHasAny = (o) => o.some((o) => Object.prototype.hasOwnProperty.call(s, o));
  37753. s &&
  37754. !L &&
  37755. ($ || V || schemaHasAny(fs)
  37756. ? (L = 'object')
  37757. : U || schemaHasAny(ms)
  37758. ? (L = 'array')
  37759. : schemaHasAny(gs)
  37760. ? ((L = 'number'), (s.type = 'number'))
  37761. : _ || s.enum || ((L = 'string'), (s.type = 'string')));
  37762. const handleMinMaxItems = (o) => {
  37763. if ((null != s?.maxItems && (o = o.slice(0, s?.maxItems)), null != s?.minItems)) {
  37764. let i = 0;
  37765. for (; o.length < s?.minItems; ) o.push(o[i++ % o.length]);
  37766. }
  37767. return o;
  37768. },
  37769. ce = objectify($);
  37770. let pe,
  37771. de = 0;
  37772. const hasExceededMaxProperties = () =>
  37773. s &&
  37774. null !== s.maxProperties &&
  37775. void 0 !== s.maxProperties &&
  37776. de >= s.maxProperties,
  37777. canAddProperty = (o) =>
  37778. !s ||
  37779. null === s.maxProperties ||
  37780. void 0 === s.maxProperties ||
  37781. (!hasExceededMaxProperties() &&
  37782. (!((o) => !(s && s.required && s.required.length && s.required.includes(o)))(o) ||
  37783. s.maxProperties -
  37784. de -
  37785. (() => {
  37786. if (!s || !s.required) return 0;
  37787. let o = 0;
  37788. return (
  37789. u
  37790. ? s.required.forEach((s) => (o += void 0 === le[s] ? 0 : 1))
  37791. : s.required.forEach(
  37792. (s) => (o += void 0 === le[Z]?.find((o) => void 0 !== o[s]) ? 0 : 1)
  37793. ),
  37794. s.required.length - o
  37795. );
  37796. })() >
  37797. 0));
  37798. if (
  37799. ((pe = u
  37800. ? (i, _ = void 0) => {
  37801. if (s && ce[i]) {
  37802. if (((ce[i].xml = ce[i].xml || {}), ce[i].xml.attribute)) {
  37803. const s = Array.isArray(ce[i].enum) ? ce[i].enum[0] : void 0,
  37804. o = ce[i].example,
  37805. u = ce[i].default;
  37806. return void (C[ce[i].xml.name || i] =
  37807. void 0 !== o
  37808. ? o
  37809. : void 0 !== u
  37810. ? u
  37811. : void 0 !== s
  37812. ? s
  37813. : primitive(ce[i]));
  37814. }
  37815. ce[i].xml.name = ce[i].xml.name || i;
  37816. } else ce[i] || !1 === V || (ce[i] = { xml: { name: i } });
  37817. let w = sampleFromSchemaGeneric((s && ce[i]) || void 0, o, _, u);
  37818. canAddProperty(i) &&
  37819. (de++, Array.isArray(w) ? (le[Z] = le[Z].concat(w)) : le[Z].push(w));
  37820. }
  37821. : (i, _) => {
  37822. if (canAddProperty(i)) {
  37823. if (
  37824. Object.prototype.hasOwnProperty.call(s, 'discriminator') &&
  37825. s.discriminator &&
  37826. Object.prototype.hasOwnProperty.call(s.discriminator, 'mapping') &&
  37827. s.discriminator.mapping &&
  37828. Object.prototype.hasOwnProperty.call(s, '$$ref') &&
  37829. s.$$ref &&
  37830. s.discriminator.propertyName === i
  37831. ) {
  37832. for (let o in s.discriminator.mapping)
  37833. if (-1 !== s.$$ref.search(s.discriminator.mapping[o])) {
  37834. le[i] = o;
  37835. break;
  37836. }
  37837. } else le[i] = sampleFromSchemaGeneric(ce[i], o, _, u);
  37838. de++;
  37839. }
  37840. }),
  37841. _)
  37842. ) {
  37843. let _;
  37844. if (((_ = sanitizeRef(void 0 !== i ? i : void 0 !== B ? B : s.default)), !u)) {
  37845. if ('number' == typeof _ && 'string' === L) return `${_}`;
  37846. if ('string' != typeof _ || 'string' === L) return _;
  37847. try {
  37848. return JSON.parse(_);
  37849. } catch (s) {
  37850. return _;
  37851. }
  37852. }
  37853. if ((s || (L = Array.isArray(_) ? 'array' : typeof _), 'array' === L)) {
  37854. if (!Array.isArray(_)) {
  37855. if ('string' == typeof _) return _;
  37856. _ = [_];
  37857. }
  37858. const i = s ? s.items : void 0;
  37859. i && ((i.xml = i.xml || j || {}), (i.xml.name = i.xml.name || j.name));
  37860. let w = _.map((s) => sampleFromSchemaGeneric(i, o, s, u));
  37861. return (
  37862. (w = handleMinMaxItems(w)),
  37863. j.wrapped ? ((le[Z] = w), hs()(C) || le[Z].push({ _attr: C })) : (le = w),
  37864. le
  37865. );
  37866. }
  37867. if ('object' === L) {
  37868. if ('string' == typeof _) return _;
  37869. for (let o in _)
  37870. Object.prototype.hasOwnProperty.call(_, o) &&
  37871. ((s && ce[o] && ce[o].readOnly && !z) ||
  37872. (s && ce[o] && ce[o].writeOnly && !Y) ||
  37873. (s && ce[o] && ce[o].xml && ce[o].xml.attribute
  37874. ? (C[ce[o].xml.name || o] = _[o])
  37875. : pe(o, _[o])));
  37876. return hs()(C) || le[Z].push({ _attr: C }), le;
  37877. }
  37878. return (le[Z] = hs()(C) ? _ : [{ _attr: C }, _]), le;
  37879. }
  37880. if ('object' === L) {
  37881. for (let s in ce)
  37882. Object.prototype.hasOwnProperty.call(ce, s) &&
  37883. ((ce[s] && ce[s].deprecated) ||
  37884. (ce[s] && ce[s].readOnly && !z) ||
  37885. (ce[s] && ce[s].writeOnly && !Y) ||
  37886. pe(s));
  37887. if ((u && C && le[Z].push({ _attr: C }), hasExceededMaxProperties())) return le;
  37888. if (!0 === V)
  37889. u
  37890. ? le[Z].push({ additionalProp: 'Anything can be here' })
  37891. : (le.additionalProp1 = {}),
  37892. de++;
  37893. else if (V) {
  37894. const i = objectify(V),
  37895. _ = sampleFromSchemaGeneric(i, o, void 0, u);
  37896. if (u && i.xml && i.xml.name && 'notagname' !== i.xml.name) le[Z].push(_);
  37897. else {
  37898. const o =
  37899. null !== s.minProperties && void 0 !== s.minProperties && de < s.minProperties
  37900. ? s.minProperties - de
  37901. : 3;
  37902. for (let s = 1; s <= o; s++) {
  37903. if (hasExceededMaxProperties()) return le;
  37904. if (u) {
  37905. const o = {};
  37906. (o['additionalProp' + s] = _.notagname), le[Z].push(o);
  37907. } else le['additionalProp' + s] = _;
  37908. de++;
  37909. }
  37910. }
  37911. }
  37912. return le;
  37913. }
  37914. if ('array' === L) {
  37915. if (!U) return;
  37916. let i;
  37917. if (
  37918. (u && ((U.xml = U.xml || s?.xml || {}), (U.xml.name = U.xml.name || j.name)),
  37919. Array.isArray(U.anyOf))
  37920. )
  37921. i = U.anyOf.map((s) =>
  37922. sampleFromSchemaGeneric(mergeJsonSchema(s, U, o), o, void 0, u)
  37923. );
  37924. else if (Array.isArray(U.oneOf))
  37925. i = U.oneOf.map((s) =>
  37926. sampleFromSchemaGeneric(mergeJsonSchema(s, U, o), o, void 0, u)
  37927. );
  37928. else {
  37929. if (!(!u || (u && j.wrapped))) return sampleFromSchemaGeneric(U, o, void 0, u);
  37930. i = [sampleFromSchemaGeneric(U, o, void 0, u)];
  37931. }
  37932. return (
  37933. (i = handleMinMaxItems(i)),
  37934. u && j.wrapped ? ((le[Z] = i), hs()(C) || le[Z].push({ _attr: C }), le) : i
  37935. );
  37936. }
  37937. let fe;
  37938. if (s && Array.isArray(s.enum)) fe = normalizeArray(s.enum)[0];
  37939. else {
  37940. if (!s) return;
  37941. if (((fe = primitive(s)), 'number' == typeof fe)) {
  37942. let o = s.minimum;
  37943. null != o && (s.exclusiveMinimum && o++, (fe = o));
  37944. let i = s.maximum;
  37945. null != i && (s.exclusiveMaximum && i--, (fe = i));
  37946. }
  37947. if (
  37948. 'string' == typeof fe &&
  37949. (null !== s.maxLength && void 0 !== s.maxLength && (fe = fe.slice(0, s.maxLength)),
  37950. null !== s.minLength && void 0 !== s.minLength)
  37951. ) {
  37952. let o = 0;
  37953. for (; fe.length < s.minLength; ) fe += fe[o++ % fe.length];
  37954. }
  37955. }
  37956. if ('file' !== L) return u ? ((le[Z] = hs()(C) ? fe : [{ _attr: C }, fe]), le) : fe;
  37957. },
  37958. inferSchema = (s) => (s.schema && (s = s.schema), s.properties && (s.type = 'object'), s),
  37959. createXMLExample = (s, o, i) => {
  37960. const u = sampleFromSchemaGeneric(s, o, i, !0);
  37961. if (u) return 'string' == typeof u ? u : ls()(u, { declaration: !0, indent: '\t' });
  37962. },
  37963. sampleFromSchema = (s, o, i) => sampleFromSchemaGeneric(s, o, i, !1),
  37964. resolver = (s, o, i) => [s, JSON.stringify(o), JSON.stringify(i)],
  37965. vs = utils_memoizeN(createXMLExample, resolver),
  37966. bs = utils_memoizeN(sampleFromSchema, resolver),
  37967. _s = [{ when: /json/, shouldStringifyTypes: ['string'] }],
  37968. Es = ['object'],
  37969. get_json_sample_schema = (s) => (o, i, u, _) => {
  37970. const { fn: w } = s(),
  37971. x = w.memoizedSampleFromSchema(o, i, _),
  37972. C = typeof x,
  37973. j = _s.reduce((s, o) => (o.when.test(u) ? [...s, ...o.shouldStringifyTypes] : s), Es);
  37974. return mt()(j, (s) => s === C) ? JSON.stringify(x, null, 2) : x;
  37975. },
  37976. get_yaml_sample_schema = (s) => (o, i, u, _) => {
  37977. const { fn: w } = s(),
  37978. x = w.getJsonSampleSchema(o, i, u, _);
  37979. let C;
  37980. try {
  37981. (C = mn.dump(mn.load(x), { lineWidth: -1 }, { schema: nn })),
  37982. '\n' === C[C.length - 1] && (C = C.slice(0, C.length - 1));
  37983. } catch (s) {
  37984. return console.error(s), 'error: could not generate yaml example';
  37985. }
  37986. return C.replace(/\t/g, ' ');
  37987. },
  37988. get_xml_sample_schema = (s) => (o, i, u) => {
  37989. const { fn: _ } = s();
  37990. if ((o && !o.xml && (o.xml = {}), o && !o.xml.name)) {
  37991. if (!o.$$ref && (o.type || o.items || o.properties || o.additionalProperties))
  37992. return '<?xml version="1.0" encoding="UTF-8"?>\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e';
  37993. if (o.$$ref) {
  37994. let s = o.$$ref.match(/\S*\/(\S+)$/);
  37995. o.xml.name = s[1];
  37996. }
  37997. }
  37998. return _.memoizedCreateXMLExample(o, i, u);
  37999. },
  38000. get_sample_schema =
  38001. (s) =>
  38002. (o, i = '', u = {}, _ = void 0) => {
  38003. const { fn: w } = s();
  38004. return (
  38005. 'function' == typeof o?.toJS && (o = o.toJS()),
  38006. 'function' == typeof _?.toJS && (_ = _.toJS()),
  38007. /xml/.test(i)
  38008. ? w.getXmlSampleSchema(o, u, _)
  38009. : /(yaml|yml)/.test(i)
  38010. ? w.getYamlSampleSchema(o, u, i, _)
  38011. : w.getJsonSampleSchema(o, u, i, _)
  38012. );
  38013. },
  38014. json_schema_5_samples = ({ getSystem: s }) => {
  38015. const o = get_json_sample_schema(s),
  38016. i = get_yaml_sample_schema(s),
  38017. u = get_xml_sample_schema(s),
  38018. _ = get_sample_schema(s);
  38019. return {
  38020. fn: {
  38021. jsonSchema5: {
  38022. inferSchema,
  38023. sampleFromSchema,
  38024. sampleFromSchemaGeneric,
  38025. createXMLExample,
  38026. memoizedSampleFromSchema: bs,
  38027. memoizedCreateXMLExample: vs,
  38028. getJsonSampleSchema: o,
  38029. getYamlSampleSchema: i,
  38030. getXmlSampleSchema: u,
  38031. getSampleSchema: _,
  38032. mergeJsonSchema
  38033. },
  38034. inferSchema,
  38035. sampleFromSchema,
  38036. sampleFromSchemaGeneric,
  38037. createXMLExample,
  38038. memoizedSampleFromSchema: bs,
  38039. memoizedCreateXMLExample: vs,
  38040. getJsonSampleSchema: o,
  38041. getYamlSampleSchema: i,
  38042. getXmlSampleSchema: u,
  38043. getSampleSchema: _,
  38044. mergeJsonSchema
  38045. }
  38046. };
  38047. };
  38048. var ws = __webpack_require__(37334),
  38049. Ss = __webpack_require__.n(ws);
  38050. const xs = ['get', 'put', 'post', 'delete', 'options', 'head', 'patch', 'trace'],
  38051. spec_selectors_state = (s) => s || (0, qe.Map)(),
  38052. ks = Ut(spec_selectors_state, (s) => s.get('lastError')),
  38053. Cs = Ut(spec_selectors_state, (s) => s.get('url')),
  38054. Os = Ut(spec_selectors_state, (s) => s.get('spec') || ''),
  38055. As = Ut(spec_selectors_state, (s) => s.get('specSource') || 'not-editor'),
  38056. js = Ut(spec_selectors_state, (s) => s.get('json', (0, qe.Map)())),
  38057. Is = Ut(js, (s) => s.toJS()),
  38058. Ps = Ut(spec_selectors_state, (s) => s.get('resolved', (0, qe.Map)())),
  38059. specResolvedSubtree = (s, o) => s.getIn(['resolvedSubtrees', ...o], void 0),
  38060. mergerFn = (s, o) =>
  38061. qe.Map.isMap(s) && qe.Map.isMap(o)
  38062. ? o.get('$$ref')
  38063. ? o
  38064. : (0, qe.OrderedMap)().mergeWith(mergerFn, s, o)
  38065. : o,
  38066. Ms = Ut(spec_selectors_state, (s) =>
  38067. (0, qe.OrderedMap)().mergeWith(mergerFn, s.get('json'), s.get('resolvedSubtrees'))
  38068. ),
  38069. spec = (s) => js(s),
  38070. Ts = Ut(spec, () => !1),
  38071. Ns = Ut(spec, (s) => returnSelfOrNewMap(s && s.get('info'))),
  38072. Rs = Ut(spec, (s) => returnSelfOrNewMap(s && s.get('externalDocs'))),
  38073. Ds = Ut(Ns, (s) => s && s.get('version')),
  38074. Ls = Ut(Ds, (s) => /v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(s).slice(1)),
  38075. Bs = Ut(Ms, (s) => s.get('paths')),
  38076. Fs = Ss()(['get', 'put', 'post', 'delete', 'options', 'head', 'patch']),
  38077. qs = Ut(Bs, (s) => {
  38078. if (!s || s.size < 1) return (0, qe.List)();
  38079. let o = (0, qe.List)();
  38080. return s && s.forEach
  38081. ? (s.forEach((s, i) => {
  38082. if (!s || !s.forEach) return {};
  38083. s.forEach((s, u) => {
  38084. xs.indexOf(u) < 0 ||
  38085. (o = o.push(
  38086. (0, qe.fromJS)({ path: i, method: u, operation: s, id: `${u}-${i}` })
  38087. ));
  38088. });
  38089. }),
  38090. o)
  38091. : (0, qe.List)();
  38092. }),
  38093. $s = Ut(spec, (s) => (0, qe.Set)(s.get('consumes'))),
  38094. Vs = Ut(spec, (s) => (0, qe.Set)(s.get('produces'))),
  38095. Us = Ut(spec, (s) => s.get('security', (0, qe.List)())),
  38096. zs = Ut(spec, (s) => s.get('securityDefinitions')),
  38097. findDefinition = (s, o) => {
  38098. const i = s.getIn(['resolvedSubtrees', 'definitions', o], null),
  38099. u = s.getIn(['json', 'definitions', o], null);
  38100. return i || u || null;
  38101. },
  38102. Ws = Ut(spec, (s) => {
  38103. const o = s.get('definitions');
  38104. return qe.Map.isMap(o) ? o : (0, qe.Map)();
  38105. }),
  38106. Ks = Ut(spec, (s) => s.get('basePath')),
  38107. Hs = Ut(spec, (s) => s.get('host')),
  38108. Js = Ut(spec, (s) => s.get('schemes', (0, qe.Map)())),
  38109. Gs = Ut([qs, $s, Vs], (s, o, i) =>
  38110. s.map((s) =>
  38111. s.update('operation', (s) => {
  38112. if (s) {
  38113. if (!qe.Map.isMap(s)) return;
  38114. return s.withMutations(
  38115. (s) => (
  38116. s.get('consumes') || s.update('consumes', (s) => (0, qe.Set)(s).merge(o)),
  38117. s.get('produces') || s.update('produces', (s) => (0, qe.Set)(s).merge(i)),
  38118. s
  38119. )
  38120. );
  38121. }
  38122. return (0, qe.Map)();
  38123. })
  38124. )
  38125. ),
  38126. Ys = Ut(spec, (s) => {
  38127. const o = s.get('tags', (0, qe.List)());
  38128. return qe.List.isList(o) ? o.filter((s) => qe.Map.isMap(s)) : (0, qe.List)();
  38129. }),
  38130. tagDetails = (s, o) =>
  38131. (Ys(s) || (0, qe.List)())
  38132. .filter(qe.Map.isMap)
  38133. .find((s) => s.get('name') === o, (0, qe.Map)()),
  38134. Xs = Ut(Gs, Ys, (s, o) =>
  38135. s.reduce(
  38136. (s, o) => {
  38137. let i = (0, qe.Set)(o.getIn(['operation', 'tags']));
  38138. return i.count() < 1
  38139. ? s.update('default', (0, qe.List)(), (s) => s.push(o))
  38140. : i.reduce((s, i) => s.update(i, (0, qe.List)(), (s) => s.push(o)), s);
  38141. },
  38142. o.reduce((s, o) => s.set(o.get('name'), (0, qe.List)()), (0, qe.OrderedMap)())
  38143. )
  38144. ),
  38145. selectors_taggedOperations =
  38146. (s) =>
  38147. ({ getConfigs: o }) => {
  38148. let { tagsSorter: i, operationsSorter: u } = o();
  38149. return Xs(s)
  38150. .sortBy(
  38151. (s, o) => o,
  38152. (s, o) => {
  38153. let u = 'function' == typeof i ? i : It.tagsSorter[i];
  38154. return u ? u(s, o) : null;
  38155. }
  38156. )
  38157. .map((o, i) => {
  38158. let _ = 'function' == typeof u ? u : It.operationsSorter[u],
  38159. w = _ ? o.sort(_) : o;
  38160. return (0, qe.Map)({ tagDetails: tagDetails(s, i), operations: w });
  38161. });
  38162. },
  38163. Zs = Ut(spec_selectors_state, (s) => s.get('responses', (0, qe.Map)())),
  38164. Qs = Ut(spec_selectors_state, (s) => s.get('requests', (0, qe.Map)())),
  38165. eo = Ut(spec_selectors_state, (s) => s.get('mutatedRequests', (0, qe.Map)())),
  38166. responseFor = (s, o, i) => Zs(s).getIn([o, i], null),
  38167. requestFor = (s, o, i) => Qs(s).getIn([o, i], null),
  38168. mutatedRequestFor = (s, o, i) => eo(s).getIn([o, i], null),
  38169. allowTryItOutFor = () => !0,
  38170. parameterWithMetaByIdentity = (s, o, i) => {
  38171. const u = Ms(s).getIn(['paths', ...o, 'parameters'], (0, qe.OrderedMap)()),
  38172. _ = s.getIn(['meta', 'paths', ...o, 'parameters'], (0, qe.OrderedMap)());
  38173. return u
  38174. .map((s) => {
  38175. const o = _.get(`${i.get('in')}.${i.get('name')}`),
  38176. u = _.get(`${i.get('in')}.${i.get('name')}.hash-${i.hashCode()}`);
  38177. return (0, qe.OrderedMap)().merge(s, o, u);
  38178. })
  38179. .find(
  38180. (s) => s.get('in') === i.get('in') && s.get('name') === i.get('name'),
  38181. (0, qe.OrderedMap)()
  38182. );
  38183. },
  38184. parameterInclusionSettingFor = (s, o, i, u) => {
  38185. const _ = `${u}.${i}`;
  38186. return s.getIn(['meta', 'paths', ...o, 'parameter_inclusions', _], !1);
  38187. },
  38188. parameterWithMeta = (s, o, i, u) => {
  38189. const _ = Ms(s)
  38190. .getIn(['paths', ...o, 'parameters'], (0, qe.OrderedMap)())
  38191. .find((s) => s.get('in') === u && s.get('name') === i, (0, qe.OrderedMap)());
  38192. return parameterWithMetaByIdentity(s, o, _);
  38193. },
  38194. operationWithMeta = (s, o, i) => {
  38195. const u = Ms(s).getIn(['paths', o, i], (0, qe.OrderedMap)()),
  38196. _ = s.getIn(['meta', 'paths', o, i], (0, qe.OrderedMap)()),
  38197. w = u
  38198. .get('parameters', (0, qe.List)())
  38199. .map((u) => parameterWithMetaByIdentity(s, [o, i], u));
  38200. return (0, qe.OrderedMap)().merge(u, _).set('parameters', w);
  38201. };
  38202. function getParameter(s, o, i, u) {
  38203. return (
  38204. (o = o || []),
  38205. s
  38206. .getIn(['meta', 'paths', ...o, 'parameters'], (0, qe.fromJS)([]))
  38207. .find((s) => qe.Map.isMap(s) && s.get('name') === i && s.get('in') === u) ||
  38208. (0, qe.Map)()
  38209. );
  38210. }
  38211. const to = Ut(spec, (s) => {
  38212. const o = s.get('host');
  38213. return 'string' == typeof o && o.length > 0 && '/' !== o[0];
  38214. });
  38215. function parameterValues(s, o, i) {
  38216. return (
  38217. (o = o || []),
  38218. operationWithMeta(s, ...o)
  38219. .get('parameters', (0, qe.List)())
  38220. .reduce(
  38221. (s, o) => {
  38222. let u = i && 'body' === o.get('in') ? o.get('value_xml') : o.get('value');
  38223. return (
  38224. qe.List.isList(u) && (u = u.filter((s) => '' !== s)),
  38225. s.set(paramToIdentifier(o, { allowHashes: !1 }), u)
  38226. );
  38227. },
  38228. (0, qe.fromJS)({})
  38229. )
  38230. );
  38231. }
  38232. function parametersIncludeIn(s, o = '') {
  38233. if (qe.List.isList(s)) return s.some((s) => qe.Map.isMap(s) && s.get('in') === o);
  38234. }
  38235. function parametersIncludeType(s, o = '') {
  38236. if (qe.List.isList(s)) return s.some((s) => qe.Map.isMap(s) && s.get('type') === o);
  38237. }
  38238. function contentTypeValues(s, o) {
  38239. o = o || [];
  38240. let i = Ms(s).getIn(['paths', ...o], (0, qe.fromJS)({})),
  38241. u = s.getIn(['meta', 'paths', ...o], (0, qe.fromJS)({})),
  38242. _ = currentProducesFor(s, o);
  38243. const w = i.get('parameters') || new qe.List(),
  38244. x = u.get('consumes_value')
  38245. ? u.get('consumes_value')
  38246. : parametersIncludeType(w, 'file')
  38247. ? 'multipart/form-data'
  38248. : parametersIncludeType(w, 'formData')
  38249. ? 'application/x-www-form-urlencoded'
  38250. : void 0;
  38251. return (0, qe.fromJS)({ requestContentType: x, responseContentType: _ });
  38252. }
  38253. function currentProducesFor(s, o) {
  38254. o = o || [];
  38255. const i = Ms(s).getIn(['paths', ...o], null);
  38256. if (null === i) return;
  38257. const u = s.getIn(['meta', 'paths', ...o, 'produces_value'], null),
  38258. _ = i.getIn(['produces', 0], null);
  38259. return u || _ || 'application/json';
  38260. }
  38261. function producesOptionsFor(s, o) {
  38262. o = o || [];
  38263. const i = Ms(s),
  38264. u = i.getIn(['paths', ...o], null);
  38265. if (null === u) return;
  38266. const [_] = o,
  38267. w = u.get('produces', null),
  38268. x = i.getIn(['paths', _, 'produces'], null),
  38269. C = i.getIn(['produces'], null);
  38270. return w || x || C;
  38271. }
  38272. function consumesOptionsFor(s, o) {
  38273. o = o || [];
  38274. const i = Ms(s),
  38275. u = i.getIn(['paths', ...o], null);
  38276. if (null === u) return;
  38277. const [_] = o,
  38278. w = u.get('consumes', null),
  38279. x = i.getIn(['paths', _, 'consumes'], null),
  38280. C = i.getIn(['consumes'], null);
  38281. return w || x || C;
  38282. }
  38283. const operationScheme = (s, o, i) => {
  38284. let u = s.get('url').match(/^([a-z][a-z0-9+\-.]*):/),
  38285. _ = Array.isArray(u) ? u[1] : null;
  38286. return s.getIn(['scheme', o, i]) || s.getIn(['scheme', '_defaultScheme']) || _ || '';
  38287. },
  38288. canExecuteScheme = (s, o, i) => ['http', 'https'].indexOf(operationScheme(s, o, i)) > -1,
  38289. validationErrors = (s, o) => {
  38290. o = o || [];
  38291. const i = s.getIn(['meta', 'paths', ...o, 'parameters'], (0, qe.fromJS)([])),
  38292. u = [];
  38293. if (0 === i.length) return u;
  38294. const getErrorsWithPaths = (s, o = []) => {
  38295. const getNestedErrorsWithPaths = (s, o) => {
  38296. const i = [...o, s.get('propKey') || s.get('index')];
  38297. return qe.Map.isMap(s.get('error'))
  38298. ? getErrorsWithPaths(s.get('error'), i)
  38299. : { error: s.get('error'), path: i };
  38300. };
  38301. return qe.List.isList(s)
  38302. ? s.map((s) =>
  38303. qe.Map.isMap(s) ? getNestedErrorsWithPaths(s, o) : { error: s, path: o }
  38304. )
  38305. : getNestedErrorsWithPaths(s, o);
  38306. };
  38307. return (
  38308. i.forEach((s, o) => {
  38309. const i = o.split('.').slice(1, -1).join('.'),
  38310. _ = s.get('errors');
  38311. if (_ && _.count()) {
  38312. getErrorsWithPaths(_).forEach(({ error: s, path: o }) => {
  38313. u.push(
  38314. ((s, o, i) =>
  38315. `For '${i}'${(o = o.reduce((s, o) => ('number' == typeof o ? `${s}[${o}]` : s ? `${s}.${o}` : o), '')) ? ` at path '${o}'` : ''}: ${s}.`)(
  38316. s,
  38317. o,
  38318. i
  38319. )
  38320. );
  38321. });
  38322. }
  38323. }),
  38324. u
  38325. );
  38326. },
  38327. validateBeforeExecute = (s, o) => 0 === validationErrors(s, o).length,
  38328. getOAS3RequiredRequestBodyContentType = (s, o) => {
  38329. let i = { requestBody: !1, requestContentType: {} },
  38330. u = s.getIn(['resolvedSubtrees', 'paths', ...o, 'requestBody'], (0, qe.fromJS)([]));
  38331. return (
  38332. u.size < 1 ||
  38333. (u.getIn(['required']) && (i.requestBody = u.getIn(['required'])),
  38334. u
  38335. .getIn(['content'])
  38336. .entrySeq()
  38337. .forEach((s) => {
  38338. const o = s[0];
  38339. if (s[1].getIn(['schema', 'required'])) {
  38340. const u = s[1].getIn(['schema', 'required']).toJS();
  38341. i.requestContentType[o] = u;
  38342. }
  38343. })),
  38344. i
  38345. );
  38346. },
  38347. isMediaTypeSchemaPropertiesEqual = (s, o, i, u) => {
  38348. if ((i || u) && i === u) return !0;
  38349. let _ = s.getIn(
  38350. ['resolvedSubtrees', 'paths', ...o, 'requestBody', 'content'],
  38351. (0, qe.fromJS)([])
  38352. );
  38353. if (_.size < 2 || !i || !u) return !1;
  38354. let w = _.getIn([i, 'schema', 'properties'], (0, qe.fromJS)([])),
  38355. x = _.getIn([u, 'schema', 'properties'], (0, qe.fromJS)([]));
  38356. return !!w.equals(x);
  38357. };
  38358. function returnSelfOrNewMap(s) {
  38359. return qe.Map.isMap(s) ? s : new qe.Map();
  38360. }
  38361. var ro = __webpack_require__(85015),
  38362. no = __webpack_require__.n(ro),
  38363. so = __webpack_require__(38221),
  38364. oo = __webpack_require__.n(so),
  38365. io = __webpack_require__(63560),
  38366. ao = __webpack_require__.n(io),
  38367. lo = __webpack_require__(56367),
  38368. co = __webpack_require__.n(lo);
  38369. const uo = 'spec_update_spec',
  38370. po = 'spec_update_url',
  38371. ho = 'spec_update_json',
  38372. fo = 'spec_update_param',
  38373. mo = 'spec_update_empty_param_inclusion',
  38374. go = 'spec_validate_param',
  38375. yo = 'spec_set_response',
  38376. vo = 'spec_set_request',
  38377. bo = 'spec_set_mutated_request',
  38378. _o = 'spec_log_request',
  38379. Eo = 'spec_clear_response',
  38380. wo = 'spec_clear_request',
  38381. So = 'spec_clear_validate_param',
  38382. xo = 'spec_update_operation_meta_value',
  38383. ko = 'spec_update_resolved',
  38384. Co = 'spec_update_resolved_subtree',
  38385. Oo = 'set_scheme',
  38386. toStr = (s) => (no()(s) ? s : '');
  38387. function updateSpec(s) {
  38388. const o = toStr(s).replace(/\t/g, ' ');
  38389. if ('string' == typeof s) return { type: uo, payload: o };
  38390. }
  38391. function updateResolved(s) {
  38392. return { type: ko, payload: s };
  38393. }
  38394. function updateUrl(s) {
  38395. return { type: po, payload: s };
  38396. }
  38397. function updateJsonSpec(s) {
  38398. return { type: ho, payload: s };
  38399. }
  38400. const parseToJson =
  38401. (s) =>
  38402. ({ specActions: o, specSelectors: i, errActions: u }) => {
  38403. let { specStr: _ } = i,
  38404. w = null;
  38405. try {
  38406. (s = s || _()), u.clear({ source: 'parser' }), (w = mn.load(s, { schema: nn }));
  38407. } catch (s) {
  38408. return (
  38409. console.error(s),
  38410. u.newSpecErr({
  38411. source: 'parser',
  38412. level: 'error',
  38413. message: s.reason,
  38414. line: s.mark && s.mark.line ? s.mark.line + 1 : void 0
  38415. })
  38416. );
  38417. }
  38418. return w && 'object' == typeof w ? o.updateJsonSpec(w) : {};
  38419. };
  38420. let Ao = !1;
  38421. const resolveSpec =
  38422. (s, o) =>
  38423. ({
  38424. specActions: i,
  38425. specSelectors: u,
  38426. errActions: _,
  38427. fn: { fetch: w, resolve: x, AST: C = {} },
  38428. getConfigs: j
  38429. }) => {
  38430. Ao ||
  38431. (console.warn(
  38432. 'specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!'
  38433. ),
  38434. (Ao = !0));
  38435. const {
  38436. modelPropertyMacro: L,
  38437. parameterMacro: B,
  38438. requestInterceptor: $,
  38439. responseInterceptor: V
  38440. } = j();
  38441. void 0 === s && (s = u.specJson()), void 0 === o && (o = u.url());
  38442. let U = C.getLineNumberForPath ? C.getLineNumberForPath : () => {},
  38443. z = u.specStr();
  38444. return x({
  38445. fetch: w,
  38446. spec: s,
  38447. baseDoc: String(new URL(o, document.baseURI)),
  38448. modelPropertyMacro: L,
  38449. parameterMacro: B,
  38450. requestInterceptor: $,
  38451. responseInterceptor: V
  38452. }).then(({ spec: s, errors: o }) => {
  38453. if ((_.clear({ type: 'thrown' }), Array.isArray(o) && o.length > 0)) {
  38454. let s = o.map(
  38455. (s) => (
  38456. console.error(s),
  38457. (s.line = s.fullPath ? U(z, s.fullPath) : null),
  38458. (s.path = s.fullPath ? s.fullPath.join('.') : null),
  38459. (s.level = 'error'),
  38460. (s.type = 'thrown'),
  38461. (s.source = 'resolver'),
  38462. Object.defineProperty(s, 'message', { enumerable: !0, value: s.message }),
  38463. s
  38464. )
  38465. );
  38466. _.newThrownErrBatch(s);
  38467. }
  38468. return i.updateResolved(s);
  38469. });
  38470. };
  38471. let jo = [];
  38472. const Io = oo()(() => {
  38473. const s = jo.reduce(
  38474. (s, { path: o, system: i }) => (s.has(i) || s.set(i, []), s.get(i).push(o), s),
  38475. new Map()
  38476. );
  38477. (jo = []),
  38478. s.forEach(async (s, o) => {
  38479. if (!o)
  38480. return void console.error(
  38481. "debResolveSubtrees: don't have a system to operate on, aborting."
  38482. );
  38483. if (!o.fn.resolveSubtree)
  38484. return void console.error(
  38485. 'Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.'
  38486. );
  38487. const {
  38488. errActions: i,
  38489. errSelectors: u,
  38490. fn: { resolveSubtree: _, fetch: w, AST: x = {} },
  38491. specSelectors: C,
  38492. specActions: j
  38493. } = o,
  38494. L = x.getLineNumberForPath ?? Ss()(void 0),
  38495. B = C.specStr(),
  38496. {
  38497. modelPropertyMacro: $,
  38498. parameterMacro: V,
  38499. requestInterceptor: U,
  38500. responseInterceptor: z
  38501. } = o.getConfigs();
  38502. try {
  38503. const o = await s.reduce(
  38504. async (s, o) => {
  38505. let { resultMap: x, specWithCurrentSubtrees: j } = await s;
  38506. const { errors: Y, spec: Z } = await _(j, o, {
  38507. baseDoc: String(new URL(C.url(), document.baseURI)),
  38508. modelPropertyMacro: $,
  38509. parameterMacro: V,
  38510. requestInterceptor: U,
  38511. responseInterceptor: z
  38512. });
  38513. if (
  38514. (u.allErrors().size &&
  38515. i.clearBy(
  38516. (s) =>
  38517. 'thrown' !== s.get('type') ||
  38518. 'resolver' !== s.get('source') ||
  38519. !s.get('fullPath').every((s, i) => s === o[i] || void 0 === o[i])
  38520. ),
  38521. Array.isArray(Y) && Y.length > 0)
  38522. ) {
  38523. let s = Y.map(
  38524. (s) => (
  38525. (s.line = s.fullPath ? L(B, s.fullPath) : null),
  38526. (s.path = s.fullPath ? s.fullPath.join('.') : null),
  38527. (s.level = 'error'),
  38528. (s.type = 'thrown'),
  38529. (s.source = 'resolver'),
  38530. Object.defineProperty(s, 'message', {
  38531. enumerable: !0,
  38532. value: s.message
  38533. }),
  38534. s
  38535. )
  38536. );
  38537. i.newThrownErrBatch(s);
  38538. }
  38539. return (
  38540. Z &&
  38541. C.isOAS3() &&
  38542. 'components' === o[0] &&
  38543. 'securitySchemes' === o[1] &&
  38544. (await Promise.all(
  38545. Object.values(Z)
  38546. .filter((s) => 'openIdConnect' === s.type)
  38547. .map(async (s) => {
  38548. const o = {
  38549. url: s.openIdConnectUrl,
  38550. requestInterceptor: U,
  38551. responseInterceptor: z
  38552. };
  38553. try {
  38554. const i = await w(o);
  38555. i instanceof Error || i.status >= 400
  38556. ? console.error(i.statusText + ' ' + o.url)
  38557. : (s.openIdConnectData = JSON.parse(i.text));
  38558. } catch (s) {
  38559. console.error(s);
  38560. }
  38561. })
  38562. )),
  38563. ao()(x, o, Z),
  38564. (j = co()(o, Z, j)),
  38565. { resultMap: x, specWithCurrentSubtrees: j }
  38566. );
  38567. },
  38568. Promise.resolve({
  38569. resultMap: (C.specResolvedSubtree([]) || (0, qe.Map)()).toJS(),
  38570. specWithCurrentSubtrees: C.specJS()
  38571. })
  38572. );
  38573. j.updateResolvedSubtree([], o.resultMap);
  38574. } catch (s) {
  38575. console.error(s);
  38576. }
  38577. });
  38578. }, 35),
  38579. requestResolvedSubtree = (s) => (o) => {
  38580. jo.find(({ path: i, system: u }) => u === o && i.toString() === s.toString()) ||
  38581. (jo.push({ path: s, system: o }), Io());
  38582. };
  38583. function changeParam(s, o, i, u, _) {
  38584. return { type: fo, payload: { path: s, value: u, paramName: o, paramIn: i, isXml: _ } };
  38585. }
  38586. function changeParamByIdentity(s, o, i, u) {
  38587. return { type: fo, payload: { path: s, param: o, value: i, isXml: u } };
  38588. }
  38589. const updateResolvedSubtree = (s, o) => ({ type: Co, payload: { path: s, value: o } }),
  38590. invalidateResolvedSubtreeCache = () => ({
  38591. type: Co,
  38592. payload: { path: [], value: (0, qe.Map)() }
  38593. }),
  38594. validateParams = (s, o) => ({ type: go, payload: { pathMethod: s, isOAS3: o } }),
  38595. updateEmptyParamInclusion = (s, o, i, u) => ({
  38596. type: mo,
  38597. payload: { pathMethod: s, paramName: o, paramIn: i, includeEmptyValue: u }
  38598. });
  38599. function clearValidateParams(s) {
  38600. return { type: So, payload: { pathMethod: s } };
  38601. }
  38602. function changeConsumesValue(s, o) {
  38603. return { type: xo, payload: { path: s, value: o, key: 'consumes_value' } };
  38604. }
  38605. function changeProducesValue(s, o) {
  38606. return { type: xo, payload: { path: s, value: o, key: 'produces_value' } };
  38607. }
  38608. const setResponse = (s, o, i) => ({ payload: { path: s, method: o, res: i }, type: yo }),
  38609. setRequest = (s, o, i) => ({ payload: { path: s, method: o, req: i }, type: vo }),
  38610. setMutatedRequest = (s, o, i) => ({ payload: { path: s, method: o, req: i }, type: bo }),
  38611. logRequest = (s) => ({ payload: s, type: _o }),
  38612. executeRequest =
  38613. (s) =>
  38614. ({ fn: o, specActions: i, specSelectors: u, getConfigs: _, oas3Selectors: w }) => {
  38615. let { pathName: x, method: C, operation: j } = s,
  38616. { requestInterceptor: L, responseInterceptor: B } = _(),
  38617. $ = j.toJS();
  38618. if (
  38619. (j &&
  38620. j.get('parameters') &&
  38621. j
  38622. .get('parameters')
  38623. .filter((s) => s && !0 === s.get('allowEmptyValue'))
  38624. .forEach((o) => {
  38625. if (u.parameterInclusionSettingFor([x, C], o.get('name'), o.get('in'))) {
  38626. s.parameters = s.parameters || {};
  38627. const i = paramToValue(o, s.parameters);
  38628. (!i || (i && 0 === i.size)) && (s.parameters[o.get('name')] = '');
  38629. }
  38630. }),
  38631. (s.contextUrl = Mt()(u.url()).toString()),
  38632. $ && $.operationId
  38633. ? (s.operationId = $.operationId)
  38634. : $ && x && C && (s.operationId = o.opId($, x, C)),
  38635. u.isOAS3())
  38636. ) {
  38637. const o = `${x}:${C}`;
  38638. s.server = w.selectedServer(o) || w.selectedServer();
  38639. const i = w.serverVariables({ server: s.server, namespace: o }).toJS(),
  38640. u = w.serverVariables({ server: s.server }).toJS();
  38641. (s.serverVariables = Object.keys(i).length ? i : u),
  38642. (s.requestContentType = w.requestContentType(x, C)),
  38643. (s.responseContentType = w.responseContentType(x, C) || '*/*');
  38644. const _ = w.requestBodyValue(x, C),
  38645. j = w.requestBodyInclusionSetting(x, C);
  38646. _ && _.toJS
  38647. ? (s.requestBody = _.map((s) => (qe.Map.isMap(s) ? s.get('value') : s))
  38648. .filter(
  38649. (s, o) => (Array.isArray(s) ? 0 !== s.length : !isEmptyValue(s)) || j.get(o)
  38650. )
  38651. .toJS())
  38652. : (s.requestBody = _);
  38653. }
  38654. let V = Object.assign({}, s);
  38655. (V = o.buildRequest(V)), i.setRequest(s.pathName, s.method, V);
  38656. (s.requestInterceptor = async (o) => {
  38657. let u = await L.apply(void 0, [o]),
  38658. _ = Object.assign({}, u);
  38659. return i.setMutatedRequest(s.pathName, s.method, _), u;
  38660. }),
  38661. (s.responseInterceptor = B);
  38662. const U = Date.now();
  38663. return o
  38664. .execute(s)
  38665. .then((o) => {
  38666. (o.duration = Date.now() - U), i.setResponse(s.pathName, s.method, o);
  38667. })
  38668. .catch((o) => {
  38669. 'Failed to fetch' === o.message &&
  38670. ((o.name = ''),
  38671. (o.message =
  38672. '**Failed to fetch.** \n**Possible Reasons:** \n - CORS \n - Network Failure \n - URL scheme must be "http" or "https" for CORS request.')),
  38673. i.setResponse(s.pathName, s.method, { error: !0, err: o });
  38674. });
  38675. },
  38676. actions_execute =
  38677. ({ path: s, method: o, ...i } = {}) =>
  38678. (u) => {
  38679. let {
  38680. fn: { fetch: _ },
  38681. specSelectors: w,
  38682. specActions: x
  38683. } = u,
  38684. C = w.specJsonWithResolvedSubtrees().toJS(),
  38685. j = w.operationScheme(s, o),
  38686. { requestContentType: L, responseContentType: B } = w
  38687. .contentTypeValues([s, o])
  38688. .toJS(),
  38689. $ = /xml/i.test(L),
  38690. V = w.parameterValues([s, o], $).toJS();
  38691. return x.executeRequest({
  38692. ...i,
  38693. fetch: _,
  38694. spec: C,
  38695. pathName: s,
  38696. method: o,
  38697. parameters: V,
  38698. requestContentType: L,
  38699. scheme: j,
  38700. responseContentType: B
  38701. });
  38702. };
  38703. function clearResponse(s, o) {
  38704. return { type: Eo, payload: { path: s, method: o } };
  38705. }
  38706. function clearRequest(s, o) {
  38707. return { type: wo, payload: { path: s, method: o } };
  38708. }
  38709. function setScheme(s, o, i) {
  38710. return { type: Oo, payload: { scheme: s, path: o, method: i } };
  38711. }
  38712. const Po = {
  38713. [uo]: (s, o) => ('string' == typeof o.payload ? s.set('spec', o.payload) : s),
  38714. [po]: (s, o) => s.set('url', o.payload + ''),
  38715. [ho]: (s, o) => s.set('json', fromJSOrdered(o.payload)),
  38716. [ko]: (s, o) => s.setIn(['resolved'], fromJSOrdered(o.payload)),
  38717. [Co]: (s, o) => {
  38718. const { value: i, path: u } = o.payload;
  38719. return s.setIn(['resolvedSubtrees', ...u], fromJSOrdered(i));
  38720. },
  38721. [fo]: (s, { payload: o }) => {
  38722. let { path: i, paramName: u, paramIn: _, param: w, value: x, isXml: C } = o,
  38723. j = w ? paramToIdentifier(w) : `${_}.${u}`;
  38724. const L = C ? 'value_xml' : 'value';
  38725. return s.setIn(['meta', 'paths', ...i, 'parameters', j, L], (0, qe.fromJS)(x));
  38726. },
  38727. [mo]: (s, { payload: o }) => {
  38728. let { pathMethod: i, paramName: u, paramIn: _, includeEmptyValue: w } = o;
  38729. if (!u || !_)
  38730. return (
  38731. console.warn(
  38732. 'Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey.'
  38733. ),
  38734. s
  38735. );
  38736. const x = `${_}.${u}`;
  38737. return s.setIn(['meta', 'paths', ...i, 'parameter_inclusions', x], w);
  38738. },
  38739. [go]: (s, { payload: { pathMethod: o, isOAS3: i } }) => {
  38740. const u = Ms(s).getIn(['paths', ...o]),
  38741. _ = parameterValues(s, o).toJS();
  38742. return s.updateIn(['meta', 'paths', ...o, 'parameters'], (0, qe.fromJS)({}), (w) =>
  38743. u.get('parameters', (0, qe.List)()).reduce((u, w) => {
  38744. const x = paramToValue(w, _),
  38745. C = parameterInclusionSettingFor(s, o, w.get('name'), w.get('in')),
  38746. j = ((s, o, { isOAS3: i = !1, bypassRequiredCheck: u = !1 } = {}) => {
  38747. let _ = s.get('required'),
  38748. { schema: w, parameterContentMediaType: x } = getParameterSchema(s, {
  38749. isOAS3: i
  38750. });
  38751. return validateValueBySchema(o, w, _, u, x);
  38752. })(w, x, { bypassRequiredCheck: C, isOAS3: i });
  38753. return u.setIn([paramToIdentifier(w), 'errors'], (0, qe.fromJS)(j));
  38754. }, w)
  38755. );
  38756. },
  38757. [So]: (s, { payload: { pathMethod: o } }) =>
  38758. s.updateIn(['meta', 'paths', ...o, 'parameters'], (0, qe.fromJS)([]), (s) =>
  38759. s.map((s) => s.set('errors', (0, qe.fromJS)([])))
  38760. ),
  38761. [yo]: (s, { payload: { res: o, path: i, method: u } }) => {
  38762. let _;
  38763. (_ = o.error
  38764. ? Object.assign(
  38765. {
  38766. error: !0,
  38767. name: o.err.name,
  38768. message: o.err.message,
  38769. statusCode: o.err.statusCode
  38770. },
  38771. o.err.response
  38772. )
  38773. : o),
  38774. (_.headers = _.headers || {});
  38775. let w = s.setIn(['responses', i, u], fromJSOrdered(_));
  38776. return (
  38777. at.Blob &&
  38778. _.data instanceof at.Blob &&
  38779. (w = w.setIn(['responses', i, u, 'text'], _.data)),
  38780. w
  38781. );
  38782. },
  38783. [vo]: (s, { payload: { req: o, path: i, method: u } }) =>
  38784. s.setIn(['requests', i, u], fromJSOrdered(o)),
  38785. [bo]: (s, { payload: { req: o, path: i, method: u } }) =>
  38786. s.setIn(['mutatedRequests', i, u], fromJSOrdered(o)),
  38787. [xo]: (s, { payload: { path: o, value: i, key: u } }) => {
  38788. let _ = ['paths', ...o],
  38789. w = ['meta', 'paths', ...o];
  38790. return s.getIn(['json', ..._]) ||
  38791. s.getIn(['resolved', ..._]) ||
  38792. s.getIn(['resolvedSubtrees', ..._])
  38793. ? s.setIn([...w, u], (0, qe.fromJS)(i))
  38794. : s;
  38795. },
  38796. [Eo]: (s, { payload: { path: o, method: i } }) => s.deleteIn(['responses', o, i]),
  38797. [wo]: (s, { payload: { path: o, method: i } }) => s.deleteIn(['requests', o, i]),
  38798. [Oo]: (s, { payload: { scheme: o, path: i, method: u } }) =>
  38799. i && u
  38800. ? s.setIn(['scheme', i, u], o)
  38801. : i || u
  38802. ? void 0
  38803. : s.setIn(['scheme', '_defaultScheme'], o)
  38804. },
  38805. wrap_actions_updateSpec =
  38806. (s, { specActions: o }) =>
  38807. (...i) => {
  38808. s(...i), o.parseToJson(...i);
  38809. },
  38810. wrap_actions_updateJsonSpec =
  38811. (s, { specActions: o }) =>
  38812. (...i) => {
  38813. s(...i), o.invalidateResolvedSubtreeCache();
  38814. const [u] = i,
  38815. _ = jn()(u, ['paths']) || {};
  38816. Object.keys(_).forEach((s) => {
  38817. jn()(_, [s]).$ref && o.requestResolvedSubtree(['paths', s]);
  38818. }),
  38819. o.requestResolvedSubtree(['components', 'securitySchemes']);
  38820. },
  38821. wrap_actions_executeRequest =
  38822. (s, { specActions: o }) =>
  38823. (i) => (o.logRequest(i), s(i)),
  38824. wrap_actions_validateParams =
  38825. (s, { specSelectors: o }) =>
  38826. (i) =>
  38827. s(i, o.isOAS3()),
  38828. plugins_spec = () => ({
  38829. statePlugins: {
  38830. spec: {
  38831. wrapActions: { ...ee },
  38832. reducers: { ...Po },
  38833. actions: { ...Z },
  38834. selectors: { ...Y }
  38835. }
  38836. }
  38837. });
  38838. var Mo = (function () {
  38839. var extendStatics = function (s, o) {
  38840. return (
  38841. (extendStatics =
  38842. Object.setPrototypeOf ||
  38843. ({ __proto__: [] } instanceof Array &&
  38844. function (s, o) {
  38845. s.__proto__ = o;
  38846. }) ||
  38847. function (s, o) {
  38848. for (var i in o) o.hasOwnProperty(i) && (s[i] = o[i]);
  38849. }),
  38850. extendStatics(s, o)
  38851. );
  38852. };
  38853. return function (s, o) {
  38854. function __() {
  38855. this.constructor = s;
  38856. }
  38857. extendStatics(s, o),
  38858. (s.prototype =
  38859. null === o ? Object.create(o) : ((__.prototype = o.prototype), new __()));
  38860. };
  38861. })(),
  38862. To = Object.prototype.hasOwnProperty;
  38863. function module_helpers_hasOwnProperty(s, o) {
  38864. return To.call(s, o);
  38865. }
  38866. function _objectKeys(s) {
  38867. if (Array.isArray(s)) {
  38868. for (var o = new Array(s.length), i = 0; i < o.length; i++) o[i] = '' + i;
  38869. return o;
  38870. }
  38871. if (Object.keys) return Object.keys(s);
  38872. var u = [];
  38873. for (var _ in s) module_helpers_hasOwnProperty(s, _) && u.push(_);
  38874. return u;
  38875. }
  38876. function _deepClone(s) {
  38877. switch (typeof s) {
  38878. case 'object':
  38879. return JSON.parse(JSON.stringify(s));
  38880. case 'undefined':
  38881. return null;
  38882. default:
  38883. return s;
  38884. }
  38885. }
  38886. function helpers_isInteger(s) {
  38887. for (var o, i = 0, u = s.length; i < u; ) {
  38888. if (!((o = s.charCodeAt(i)) >= 48 && o <= 57)) return !1;
  38889. i++;
  38890. }
  38891. return !0;
  38892. }
  38893. function escapePathComponent(s) {
  38894. return -1 === s.indexOf('/') && -1 === s.indexOf('~')
  38895. ? s
  38896. : s.replace(/~/g, '~0').replace(/\//g, '~1');
  38897. }
  38898. function unescapePathComponent(s) {
  38899. return s.replace(/~1/g, '/').replace(/~0/g, '~');
  38900. }
  38901. function hasUndefined(s) {
  38902. if (void 0 === s) return !0;
  38903. if (s)
  38904. if (Array.isArray(s)) {
  38905. for (var o = 0, i = s.length; o < i; o++) if (hasUndefined(s[o])) return !0;
  38906. } else if ('object' == typeof s)
  38907. for (var u = _objectKeys(s), _ = u.length, w = 0; w < _; w++)
  38908. if (hasUndefined(s[u[w]])) return !0;
  38909. return !1;
  38910. }
  38911. function patchErrorMessageFormatter(s, o) {
  38912. var i = [s];
  38913. for (var u in o) {
  38914. var _ = 'object' == typeof o[u] ? JSON.stringify(o[u], null, 2) : o[u];
  38915. void 0 !== _ && i.push(u + ': ' + _);
  38916. }
  38917. return i.join('\n');
  38918. }
  38919. var No = (function (s) {
  38920. function PatchError(o, i, u, _, w) {
  38921. var x = this.constructor,
  38922. C =
  38923. s.call(
  38924. this,
  38925. patchErrorMessageFormatter(o, { name: i, index: u, operation: _, tree: w })
  38926. ) || this;
  38927. return (
  38928. (C.name = i),
  38929. (C.index = u),
  38930. (C.operation = _),
  38931. (C.tree = w),
  38932. Object.setPrototypeOf(C, x.prototype),
  38933. (C.message = patchErrorMessageFormatter(o, {
  38934. name: i,
  38935. index: u,
  38936. operation: _,
  38937. tree: w
  38938. })),
  38939. C
  38940. );
  38941. }
  38942. return Mo(PatchError, s), PatchError;
  38943. })(Error),
  38944. Ro = No,
  38945. Do = _deepClone,
  38946. Lo = {
  38947. add: function (s, o, i) {
  38948. return (s[o] = this.value), { newDocument: i };
  38949. },
  38950. remove: function (s, o, i) {
  38951. var u = s[o];
  38952. return delete s[o], { newDocument: i, removed: u };
  38953. },
  38954. replace: function (s, o, i) {
  38955. var u = s[o];
  38956. return (s[o] = this.value), { newDocument: i, removed: u };
  38957. },
  38958. move: function (s, o, i) {
  38959. var u = getValueByPointer(i, this.path);
  38960. u && (u = _deepClone(u));
  38961. var _ = applyOperation(i, { op: 'remove', path: this.from }).removed;
  38962. return (
  38963. applyOperation(i, { op: 'add', path: this.path, value: _ }),
  38964. { newDocument: i, removed: u }
  38965. );
  38966. },
  38967. copy: function (s, o, i) {
  38968. var u = getValueByPointer(i, this.from);
  38969. return (
  38970. applyOperation(i, { op: 'add', path: this.path, value: _deepClone(u) }),
  38971. { newDocument: i }
  38972. );
  38973. },
  38974. test: function (s, o, i) {
  38975. return { newDocument: i, test: _areEquals(s[o], this.value) };
  38976. },
  38977. _get: function (s, o, i) {
  38978. return (this.value = s[o]), { newDocument: i };
  38979. }
  38980. },
  38981. Bo = {
  38982. add: function (s, o, i) {
  38983. return (
  38984. helpers_isInteger(o) ? s.splice(o, 0, this.value) : (s[o] = this.value),
  38985. { newDocument: i, index: o }
  38986. );
  38987. },
  38988. remove: function (s, o, i) {
  38989. return { newDocument: i, removed: s.splice(o, 1)[0] };
  38990. },
  38991. replace: function (s, o, i) {
  38992. var u = s[o];
  38993. return (s[o] = this.value), { newDocument: i, removed: u };
  38994. },
  38995. move: Lo.move,
  38996. copy: Lo.copy,
  38997. test: Lo.test,
  38998. _get: Lo._get
  38999. };
  39000. function getValueByPointer(s, o) {
  39001. if ('' == o) return s;
  39002. var i = { op: '_get', path: o };
  39003. return applyOperation(s, i), i.value;
  39004. }
  39005. function applyOperation(s, o, i, u, _, w) {
  39006. if (
  39007. (void 0 === i && (i = !1),
  39008. void 0 === u && (u = !0),
  39009. void 0 === _ && (_ = !0),
  39010. void 0 === w && (w = 0),
  39011. i && ('function' == typeof i ? i(o, 0, s, o.path) : validator(o, 0)),
  39012. '' === o.path)
  39013. ) {
  39014. var x = { newDocument: s };
  39015. if ('add' === o.op) return (x.newDocument = o.value), x;
  39016. if ('replace' === o.op) return (x.newDocument = o.value), (x.removed = s), x;
  39017. if ('move' === o.op || 'copy' === o.op)
  39018. return (
  39019. (x.newDocument = getValueByPointer(s, o.from)),
  39020. 'move' === o.op && (x.removed = s),
  39021. x
  39022. );
  39023. if ('test' === o.op) {
  39024. if (((x.test = _areEquals(s, o.value)), !1 === x.test))
  39025. throw new Ro('Test operation failed', 'TEST_OPERATION_FAILED', w, o, s);
  39026. return (x.newDocument = s), x;
  39027. }
  39028. if ('remove' === o.op) return (x.removed = s), (x.newDocument = null), x;
  39029. if ('_get' === o.op) return (o.value = s), x;
  39030. if (i)
  39031. throw new Ro(
  39032. 'Operation `op` property is not one of operations defined in RFC-6902',
  39033. 'OPERATION_OP_INVALID',
  39034. w,
  39035. o,
  39036. s
  39037. );
  39038. return x;
  39039. }
  39040. u || (s = _deepClone(s));
  39041. var C = (o.path || '').split('/'),
  39042. j = s,
  39043. L = 1,
  39044. B = C.length,
  39045. $ = void 0,
  39046. V = void 0,
  39047. U = void 0;
  39048. for (U = 'function' == typeof i ? i : validator; ; ) {
  39049. if (
  39050. ((V = C[L]) && -1 != V.indexOf('~') && (V = unescapePathComponent(V)),
  39051. _ && ('__proto__' == V || ('prototype' == V && L > 0 && 'constructor' == C[L - 1])))
  39052. )
  39053. throw new TypeError(
  39054. 'JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README'
  39055. );
  39056. if (
  39057. (i &&
  39058. void 0 === $ &&
  39059. (void 0 === j[V] ? ($ = C.slice(0, L).join('/')) : L == B - 1 && ($ = o.path),
  39060. void 0 !== $ && U(o, 0, s, $)),
  39061. L++,
  39062. Array.isArray(j))
  39063. ) {
  39064. if ('-' === V) V = j.length;
  39065. else {
  39066. if (i && !helpers_isInteger(V))
  39067. throw new Ro(
  39068. 'Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index',
  39069. 'OPERATION_PATH_ILLEGAL_ARRAY_INDEX',
  39070. w,
  39071. o,
  39072. s
  39073. );
  39074. helpers_isInteger(V) && (V = ~~V);
  39075. }
  39076. if (L >= B) {
  39077. if (i && 'add' === o.op && V > j.length)
  39078. throw new Ro(
  39079. 'The specified index MUST NOT be greater than the number of elements in the array',
  39080. 'OPERATION_VALUE_OUT_OF_BOUNDS',
  39081. w,
  39082. o,
  39083. s
  39084. );
  39085. if (!1 === (x = Bo[o.op].call(o, j, V, s)).test)
  39086. throw new Ro('Test operation failed', 'TEST_OPERATION_FAILED', w, o, s);
  39087. return x;
  39088. }
  39089. } else if (L >= B) {
  39090. if (!1 === (x = Lo[o.op].call(o, j, V, s)).test)
  39091. throw new Ro('Test operation failed', 'TEST_OPERATION_FAILED', w, o, s);
  39092. return x;
  39093. }
  39094. if (((j = j[V]), i && L < B && (!j || 'object' != typeof j)))
  39095. throw new Ro(
  39096. 'Cannot perform operation at the desired path',
  39097. 'OPERATION_PATH_UNRESOLVABLE',
  39098. w,
  39099. o,
  39100. s
  39101. );
  39102. }
  39103. }
  39104. function applyPatch(s, o, i, u, _) {
  39105. if ((void 0 === u && (u = !0), void 0 === _ && (_ = !0), i && !Array.isArray(o)))
  39106. throw new Ro('Patch sequence must be an array', 'SEQUENCE_NOT_AN_ARRAY');
  39107. u || (s = _deepClone(s));
  39108. for (var w = new Array(o.length), x = 0, C = o.length; x < C; x++)
  39109. (w[x] = applyOperation(s, o[x], i, !0, _, x)), (s = w[x].newDocument);
  39110. return (w.newDocument = s), w;
  39111. }
  39112. function applyReducer(s, o, i) {
  39113. var u = applyOperation(s, o);
  39114. if (!1 === u.test)
  39115. throw new Ro('Test operation failed', 'TEST_OPERATION_FAILED', i, o, s);
  39116. return u.newDocument;
  39117. }
  39118. function validator(s, o, i, u) {
  39119. if ('object' != typeof s || null === s || Array.isArray(s))
  39120. throw new Ro('Operation is not an object', 'OPERATION_NOT_AN_OBJECT', o, s, i);
  39121. if (!Lo[s.op])
  39122. throw new Ro(
  39123. 'Operation `op` property is not one of operations defined in RFC-6902',
  39124. 'OPERATION_OP_INVALID',
  39125. o,
  39126. s,
  39127. i
  39128. );
  39129. if ('string' != typeof s.path)
  39130. throw new Ro(
  39131. 'Operation `path` property is not a string',
  39132. 'OPERATION_PATH_INVALID',
  39133. o,
  39134. s,
  39135. i
  39136. );
  39137. if (0 !== s.path.indexOf('/') && s.path.length > 0)
  39138. throw new Ro(
  39139. 'Operation `path` property must start with "/"',
  39140. 'OPERATION_PATH_INVALID',
  39141. o,
  39142. s,
  39143. i
  39144. );
  39145. if (('move' === s.op || 'copy' === s.op) && 'string' != typeof s.from)
  39146. throw new Ro(
  39147. 'Operation `from` property is not present (applicable in `move` and `copy` operations)',
  39148. 'OPERATION_FROM_REQUIRED',
  39149. o,
  39150. s,
  39151. i
  39152. );
  39153. if (('add' === s.op || 'replace' === s.op || 'test' === s.op) && void 0 === s.value)
  39154. throw new Ro(
  39155. 'Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)',
  39156. 'OPERATION_VALUE_REQUIRED',
  39157. o,
  39158. s,
  39159. i
  39160. );
  39161. if (('add' === s.op || 'replace' === s.op || 'test' === s.op) && hasUndefined(s.value))
  39162. throw new Ro(
  39163. 'Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)',
  39164. 'OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED',
  39165. o,
  39166. s,
  39167. i
  39168. );
  39169. if (i)
  39170. if ('add' == s.op) {
  39171. var _ = s.path.split('/').length,
  39172. w = u.split('/').length;
  39173. if (_ !== w + 1 && _ !== w)
  39174. throw new Ro(
  39175. 'Cannot perform an `add` operation at the desired path',
  39176. 'OPERATION_PATH_CANNOT_ADD',
  39177. o,
  39178. s,
  39179. i
  39180. );
  39181. } else if ('replace' === s.op || 'remove' === s.op || '_get' === s.op) {
  39182. if (s.path !== u)
  39183. throw new Ro(
  39184. 'Cannot perform the operation at a path that does not exist',
  39185. 'OPERATION_PATH_UNRESOLVABLE',
  39186. o,
  39187. s,
  39188. i
  39189. );
  39190. } else if ('move' === s.op || 'copy' === s.op) {
  39191. var x = validate([{ op: '_get', path: s.from, value: void 0 }], i);
  39192. if (x && 'OPERATION_PATH_UNRESOLVABLE' === x.name)
  39193. throw new Ro(
  39194. 'Cannot perform the operation from a path that does not exist',
  39195. 'OPERATION_FROM_UNRESOLVABLE',
  39196. o,
  39197. s,
  39198. i
  39199. );
  39200. }
  39201. }
  39202. function validate(s, o, i) {
  39203. try {
  39204. if (!Array.isArray(s))
  39205. throw new Ro('Patch sequence must be an array', 'SEQUENCE_NOT_AN_ARRAY');
  39206. if (o) applyPatch(_deepClone(o), _deepClone(s), i || !0);
  39207. else {
  39208. i = i || validator;
  39209. for (var u = 0; u < s.length; u++) i(s[u], u, o, void 0);
  39210. }
  39211. } catch (s) {
  39212. if (s instanceof Ro) return s;
  39213. throw s;
  39214. }
  39215. }
  39216. function _areEquals(s, o) {
  39217. if (s === o) return !0;
  39218. if (s && o && 'object' == typeof s && 'object' == typeof o) {
  39219. var i,
  39220. u,
  39221. _,
  39222. w = Array.isArray(s),
  39223. x = Array.isArray(o);
  39224. if (w && x) {
  39225. if ((u = s.length) != o.length) return !1;
  39226. for (i = u; 0 != i--; ) if (!_areEquals(s[i], o[i])) return !1;
  39227. return !0;
  39228. }
  39229. if (w != x) return !1;
  39230. var C = Object.keys(s);
  39231. if ((u = C.length) !== Object.keys(o).length) return !1;
  39232. for (i = u; 0 != i--; ) if (!o.hasOwnProperty(C[i])) return !1;
  39233. for (i = u; 0 != i--; ) if (!_areEquals(s[(_ = C[i])], o[_])) return !1;
  39234. return !0;
  39235. }
  39236. return s != s && o != o;
  39237. }
  39238. var Fo = new WeakMap(),
  39239. qo = function qo(s) {
  39240. (this.observers = new Map()), (this.obj = s);
  39241. },
  39242. $o = function $o(s, o) {
  39243. (this.callback = s), (this.observer = o);
  39244. };
  39245. function unobserve(s, o) {
  39246. o.unobserve();
  39247. }
  39248. function observe(s, o) {
  39249. var i,
  39250. u = (function getMirror(s) {
  39251. return Fo.get(s);
  39252. })(s);
  39253. if (u) {
  39254. var _ = (function getObserverFromMirror(s, o) {
  39255. return s.observers.get(o);
  39256. })(u, o);
  39257. i = _ && _.observer;
  39258. } else (u = new qo(s)), Fo.set(s, u);
  39259. if (i) return i;
  39260. if (((i = {}), (u.value = _deepClone(s)), o)) {
  39261. (i.callback = o), (i.next = null);
  39262. var dirtyCheck = function () {
  39263. generate(i);
  39264. },
  39265. fastCheck = function () {
  39266. clearTimeout(i.next), (i.next = setTimeout(dirtyCheck));
  39267. };
  39268. 'undefined' != typeof window &&
  39269. (window.addEventListener('mouseup', fastCheck),
  39270. window.addEventListener('keyup', fastCheck),
  39271. window.addEventListener('mousedown', fastCheck),
  39272. window.addEventListener('keydown', fastCheck),
  39273. window.addEventListener('change', fastCheck));
  39274. }
  39275. return (
  39276. (i.patches = []),
  39277. (i.object = s),
  39278. (i.unobserve = function () {
  39279. generate(i),
  39280. clearTimeout(i.next),
  39281. (function removeObserverFromMirror(s, o) {
  39282. s.observers.delete(o.callback);
  39283. })(u, i),
  39284. 'undefined' != typeof window &&
  39285. (window.removeEventListener('mouseup', fastCheck),
  39286. window.removeEventListener('keyup', fastCheck),
  39287. window.removeEventListener('mousedown', fastCheck),
  39288. window.removeEventListener('keydown', fastCheck),
  39289. window.removeEventListener('change', fastCheck));
  39290. }),
  39291. u.observers.set(o, new $o(o, i)),
  39292. i
  39293. );
  39294. }
  39295. function generate(s, o) {
  39296. void 0 === o && (o = !1);
  39297. var i = Fo.get(s.object);
  39298. _generate(i.value, s.object, s.patches, '', o),
  39299. s.patches.length && applyPatch(i.value, s.patches);
  39300. var u = s.patches;
  39301. return u.length > 0 && ((s.patches = []), s.callback && s.callback(u)), u;
  39302. }
  39303. function _generate(s, o, i, u, _) {
  39304. if (o !== s) {
  39305. 'function' == typeof o.toJSON && (o = o.toJSON());
  39306. for (
  39307. var w = _objectKeys(o), x = _objectKeys(s), C = !1, j = x.length - 1;
  39308. j >= 0;
  39309. j--
  39310. ) {
  39311. var L = s[($ = x[j])];
  39312. if (
  39313. !module_helpers_hasOwnProperty(o, $) ||
  39314. (void 0 === o[$] && void 0 !== L && !1 === Array.isArray(o))
  39315. )
  39316. Array.isArray(s) === Array.isArray(o)
  39317. ? (_ &&
  39318. i.push({
  39319. op: 'test',
  39320. path: u + '/' + escapePathComponent($),
  39321. value: _deepClone(L)
  39322. }),
  39323. i.push({ op: 'remove', path: u + '/' + escapePathComponent($) }),
  39324. (C = !0))
  39325. : (_ && i.push({ op: 'test', path: u, value: s }),
  39326. i.push({ op: 'replace', path: u, value: o }),
  39327. !0);
  39328. else {
  39329. var B = o[$];
  39330. 'object' == typeof L &&
  39331. null != L &&
  39332. 'object' == typeof B &&
  39333. null != B &&
  39334. Array.isArray(L) === Array.isArray(B)
  39335. ? _generate(L, B, i, u + '/' + escapePathComponent($), _)
  39336. : L !== B &&
  39337. (_ &&
  39338. i.push({
  39339. op: 'test',
  39340. path: u + '/' + escapePathComponent($),
  39341. value: _deepClone(L)
  39342. }),
  39343. i.push({
  39344. op: 'replace',
  39345. path: u + '/' + escapePathComponent($),
  39346. value: _deepClone(B)
  39347. }));
  39348. }
  39349. }
  39350. if (C || w.length != x.length)
  39351. for (j = 0; j < w.length; j++) {
  39352. var $;
  39353. module_helpers_hasOwnProperty(s, ($ = w[j])) ||
  39354. void 0 === o[$] ||
  39355. i.push({
  39356. op: 'add',
  39357. path: u + '/' + escapePathComponent($),
  39358. value: _deepClone(o[$])
  39359. });
  39360. }
  39361. }
  39362. }
  39363. function compare(s, o, i) {
  39364. void 0 === i && (i = !1);
  39365. var u = [];
  39366. return _generate(s, o, u, '', i), u;
  39367. }
  39368. Object.assign({}, ie, ae, {
  39369. JsonPatchError: No,
  39370. deepClone: _deepClone,
  39371. escapePathComponent,
  39372. unescapePathComponent
  39373. });
  39374. var Vo = __webpack_require__(14744),
  39375. Uo = __webpack_require__.n(Vo);
  39376. const zo = {
  39377. add: function add(s, o) {
  39378. return { op: 'add', path: s, value: o };
  39379. },
  39380. replace,
  39381. remove: function remove(s) {
  39382. return { op: 'remove', path: s };
  39383. },
  39384. merge: function lib_merge(s, o) {
  39385. return { type: 'mutation', op: 'merge', path: s, value: o };
  39386. },
  39387. mergeDeep: function mergeDeep(s, o) {
  39388. return { type: 'mutation', op: 'mergeDeep', path: s, value: o };
  39389. },
  39390. context: function context(s, o) {
  39391. return { type: 'context', path: s, value: o };
  39392. },
  39393. getIn: function lib_getIn(s, o) {
  39394. return o.reduce((s, o) => (void 0 !== o && s ? s[o] : s), s);
  39395. },
  39396. applyPatch: function lib_applyPatch(s, o, i) {
  39397. if (
  39398. ((i = i || {}),
  39399. 'merge' === (o = { ...o, path: o.path && normalizeJSONPath(o.path) }).op)
  39400. ) {
  39401. const i = getInByJsonPath(s, o.path);
  39402. Object.assign(i, o.value), applyPatch(s, [replace(o.path, i)]);
  39403. } else if ('mergeDeep' === o.op) {
  39404. const i = getInByJsonPath(s, o.path),
  39405. u = Uo()(i, o.value);
  39406. s = applyPatch(s, [replace(o.path, u)]).newDocument;
  39407. } else if ('add' === o.op && '' === o.path && lib_isObject(o.value)) {
  39408. applyPatch(
  39409. s,
  39410. Object.keys(o.value).reduce(
  39411. (s, i) => (
  39412. s.push({ op: 'add', path: `/${normalizeJSONPath(i)}`, value: o.value[i] }), s
  39413. ),
  39414. []
  39415. )
  39416. );
  39417. } else if ('replace' === o.op && '' === o.path) {
  39418. let { value: u } = o;
  39419. i.allowMetaPatches &&
  39420. o.meta &&
  39421. isAdditiveMutation(o) &&
  39422. (Array.isArray(o.value) || lib_isObject(o.value)) &&
  39423. (u = { ...u, ...o.meta }),
  39424. (s = u);
  39425. } else if (
  39426. (applyPatch(s, [o]),
  39427. i.allowMetaPatches &&
  39428. o.meta &&
  39429. isAdditiveMutation(o) &&
  39430. (Array.isArray(o.value) || lib_isObject(o.value)))
  39431. ) {
  39432. const i = { ...getInByJsonPath(s, o.path), ...o.meta };
  39433. applyPatch(s, [replace(o.path, i)]);
  39434. }
  39435. return s;
  39436. },
  39437. parentPathMatch: function parentPathMatch(s, o) {
  39438. if (!Array.isArray(o)) return !1;
  39439. for (let i = 0, u = o.length; i < u; i += 1) if (o[i] !== s[i]) return !1;
  39440. return !0;
  39441. },
  39442. flatten,
  39443. fullyNormalizeArray: function fullyNormalizeArray(s) {
  39444. return cleanArray(flatten(lib_normalizeArray(s)));
  39445. },
  39446. normalizeArray: lib_normalizeArray,
  39447. isPromise: function isPromise(s) {
  39448. return lib_isObject(s) && lib_isFunction(s.then);
  39449. },
  39450. forEachNew: function forEachNew(s, o) {
  39451. try {
  39452. return forEachNewPatch(s, forEach, o);
  39453. } catch (s) {
  39454. return s;
  39455. }
  39456. },
  39457. forEachNewPrimitive: function forEachNewPrimitive(s, o) {
  39458. try {
  39459. return forEachNewPatch(s, forEachPrimitive, o);
  39460. } catch (s) {
  39461. return s;
  39462. }
  39463. },
  39464. isJsonPatch,
  39465. isContextPatch: function isContextPatch(s) {
  39466. return isPatch(s) && 'context' === s.type;
  39467. },
  39468. isPatch,
  39469. isMutation,
  39470. isAdditiveMutation,
  39471. isGenerator: function isGenerator(s) {
  39472. return '[object GeneratorFunction]' === Object.prototype.toString.call(s);
  39473. },
  39474. isFunction: lib_isFunction,
  39475. isObject: lib_isObject,
  39476. isError: function lib_isError(s) {
  39477. return s instanceof Error;
  39478. }
  39479. };
  39480. function normalizeJSONPath(s) {
  39481. return Array.isArray(s)
  39482. ? s.length < 1
  39483. ? ''
  39484. : `/${s.map((s) => (s + '').replace(/~/g, '~0').replace(/\//g, '~1')).join('/')}`
  39485. : s;
  39486. }
  39487. function replace(s, o, i) {
  39488. return { op: 'replace', path: s, value: o, meta: i };
  39489. }
  39490. function forEachNewPatch(s, o, i) {
  39491. return cleanArray(
  39492. flatten(s.filter(isAdditiveMutation).map((s) => o(s.value, i, s.path)) || [])
  39493. );
  39494. }
  39495. function forEachPrimitive(s, o, i) {
  39496. return (
  39497. (i = i || []),
  39498. Array.isArray(s)
  39499. ? s.map((s, u) => forEachPrimitive(s, o, i.concat(u)))
  39500. : lib_isObject(s)
  39501. ? Object.keys(s).map((u) => forEachPrimitive(s[u], o, i.concat(u)))
  39502. : o(s, i[i.length - 1], i)
  39503. );
  39504. }
  39505. function forEach(s, o, i) {
  39506. let u = [];
  39507. if ((i = i || []).length > 0) {
  39508. const _ = o(s, i[i.length - 1], i);
  39509. _ && (u = u.concat(_));
  39510. }
  39511. if (Array.isArray(s)) {
  39512. const _ = s.map((s, u) => forEach(s, o, i.concat(u)));
  39513. _ && (u = u.concat(_));
  39514. } else if (lib_isObject(s)) {
  39515. const _ = Object.keys(s).map((u) => forEach(s[u], o, i.concat(u)));
  39516. _ && (u = u.concat(_));
  39517. }
  39518. return (u = flatten(u)), u;
  39519. }
  39520. function lib_normalizeArray(s) {
  39521. return Array.isArray(s) ? s : [s];
  39522. }
  39523. function flatten(s) {
  39524. return [].concat(...s.map((s) => (Array.isArray(s) ? flatten(s) : s)));
  39525. }
  39526. function cleanArray(s) {
  39527. return s.filter((s) => void 0 !== s);
  39528. }
  39529. function lib_isObject(s) {
  39530. return s && 'object' == typeof s;
  39531. }
  39532. function lib_isFunction(s) {
  39533. return s && 'function' == typeof s;
  39534. }
  39535. function isJsonPatch(s) {
  39536. if (isPatch(s)) {
  39537. const { op: o } = s;
  39538. return 'add' === o || 'remove' === o || 'replace' === o;
  39539. }
  39540. return !1;
  39541. }
  39542. function isMutation(s) {
  39543. return isJsonPatch(s) || (isPatch(s) && 'mutation' === s.type);
  39544. }
  39545. function isAdditiveMutation(s) {
  39546. return (
  39547. isMutation(s) &&
  39548. ('add' === s.op || 'replace' === s.op || 'merge' === s.op || 'mergeDeep' === s.op)
  39549. );
  39550. }
  39551. function isPatch(s) {
  39552. return s && 'object' == typeof s;
  39553. }
  39554. function getInByJsonPath(s, o) {
  39555. try {
  39556. return getValueByPointer(s, o);
  39557. } catch (s) {
  39558. return console.error(s), {};
  39559. }
  39560. }
  39561. var Wo = __webpack_require__(48675);
  39562. const Ko = class ApiDOMAggregateError extends Wo {
  39563. constructor(s, o, i) {
  39564. if (
  39565. (super(s, o, i),
  39566. (this.name = this.constructor.name),
  39567. 'string' == typeof o && (this.message = o),
  39568. 'function' == typeof Error.captureStackTrace
  39569. ? Error.captureStackTrace(this, this.constructor)
  39570. : (this.stack = new Error(o).stack),
  39571. null != i && 'object' == typeof i && Object.hasOwn(i, 'cause') && !('cause' in this))
  39572. ) {
  39573. const { cause: s } = i;
  39574. (this.cause = s),
  39575. s instanceof Error &&
  39576. 'stack' in s &&
  39577. (this.stack = `${this.stack}\nCAUSE: ${s.stack}`);
  39578. }
  39579. }
  39580. };
  39581. class ApiDOMError extends Error {
  39582. static [Symbol.hasInstance](s) {
  39583. return (
  39584. super[Symbol.hasInstance](s) || Function.prototype[Symbol.hasInstance].call(Ko, s)
  39585. );
  39586. }
  39587. constructor(s, o) {
  39588. if (
  39589. (super(s, o),
  39590. (this.name = this.constructor.name),
  39591. 'string' == typeof s && (this.message = s),
  39592. 'function' == typeof Error.captureStackTrace
  39593. ? Error.captureStackTrace(this, this.constructor)
  39594. : (this.stack = new Error(s).stack),
  39595. null != o && 'object' == typeof o && Object.hasOwn(o, 'cause') && !('cause' in this))
  39596. ) {
  39597. const { cause: s } = o;
  39598. (this.cause = s),
  39599. s instanceof Error &&
  39600. 'stack' in s &&
  39601. (this.stack = `${this.stack}\nCAUSE: ${s.stack}`);
  39602. }
  39603. }
  39604. }
  39605. const Ho = ApiDOMError;
  39606. const Jo = class ApiDOMStructuredError extends Ho {
  39607. constructor(s, o) {
  39608. if ((super(s, o), null != o && 'object' == typeof o)) {
  39609. const { cause: s, ...i } = o;
  39610. Object.assign(this, i);
  39611. }
  39612. }
  39613. };
  39614. var Go = __webpack_require__(65606);
  39615. function _isPlaceholder(s) {
  39616. return null != s && 'object' == typeof s && !0 === s['@@functional/placeholder'];
  39617. }
  39618. function _curry1(s) {
  39619. return function f1(o) {
  39620. return 0 === arguments.length || _isPlaceholder(o) ? f1 : s.apply(this, arguments);
  39621. };
  39622. }
  39623. function _curry2(s) {
  39624. return function f2(o, i) {
  39625. switch (arguments.length) {
  39626. case 0:
  39627. return f2;
  39628. case 1:
  39629. return _isPlaceholder(o)
  39630. ? f2
  39631. : _curry1(function (i) {
  39632. return s(o, i);
  39633. });
  39634. default:
  39635. return _isPlaceholder(o) && _isPlaceholder(i)
  39636. ? f2
  39637. : _isPlaceholder(o)
  39638. ? _curry1(function (o) {
  39639. return s(o, i);
  39640. })
  39641. : _isPlaceholder(i)
  39642. ? _curry1(function (i) {
  39643. return s(o, i);
  39644. })
  39645. : s(o, i);
  39646. }
  39647. };
  39648. }
  39649. function _curry3(s) {
  39650. return function f3(o, i, u) {
  39651. switch (arguments.length) {
  39652. case 0:
  39653. return f3;
  39654. case 1:
  39655. return _isPlaceholder(o)
  39656. ? f3
  39657. : _curry2(function (i, u) {
  39658. return s(o, i, u);
  39659. });
  39660. case 2:
  39661. return _isPlaceholder(o) && _isPlaceholder(i)
  39662. ? f3
  39663. : _isPlaceholder(o)
  39664. ? _curry2(function (o, u) {
  39665. return s(o, i, u);
  39666. })
  39667. : _isPlaceholder(i)
  39668. ? _curry2(function (i, u) {
  39669. return s(o, i, u);
  39670. })
  39671. : _curry1(function (u) {
  39672. return s(o, i, u);
  39673. });
  39674. default:
  39675. return _isPlaceholder(o) && _isPlaceholder(i) && _isPlaceholder(u)
  39676. ? f3
  39677. : _isPlaceholder(o) && _isPlaceholder(i)
  39678. ? _curry2(function (o, i) {
  39679. return s(o, i, u);
  39680. })
  39681. : _isPlaceholder(o) && _isPlaceholder(u)
  39682. ? _curry2(function (o, u) {
  39683. return s(o, i, u);
  39684. })
  39685. : _isPlaceholder(i) && _isPlaceholder(u)
  39686. ? _curry2(function (i, u) {
  39687. return s(o, i, u);
  39688. })
  39689. : _isPlaceholder(o)
  39690. ? _curry1(function (o) {
  39691. return s(o, i, u);
  39692. })
  39693. : _isPlaceholder(i)
  39694. ? _curry1(function (i) {
  39695. return s(o, i, u);
  39696. })
  39697. : _isPlaceholder(u)
  39698. ? _curry1(function (u) {
  39699. return s(o, i, u);
  39700. })
  39701. : s(o, i, u);
  39702. }
  39703. };
  39704. }
  39705. const Yo =
  39706. Number.isInteger ||
  39707. function _isInteger(s) {
  39708. return (s | 0) === s;
  39709. };
  39710. function _isString(s) {
  39711. return '[object String]' === Object.prototype.toString.call(s);
  39712. }
  39713. function _nth(s, o) {
  39714. var i = s < 0 ? o.length + s : s;
  39715. return _isString(o) ? o.charAt(i) : o[i];
  39716. }
  39717. function _path(s, o) {
  39718. for (var i = o, u = 0; u < s.length; u += 1) {
  39719. if (null == i) return;
  39720. var _ = s[u];
  39721. i = Yo(_) ? _nth(_, i) : i[_];
  39722. }
  39723. return i;
  39724. }
  39725. const Xo = _curry3(function pathSatisfies(s, o, i) {
  39726. return s(_path(o, i));
  39727. });
  39728. function _cloneRegExp(s) {
  39729. return new RegExp(
  39730. s.source,
  39731. s.flags
  39732. ? s.flags
  39733. : (s.global ? 'g' : '') +
  39734. (s.ignoreCase ? 'i' : '') +
  39735. (s.multiline ? 'm' : '') +
  39736. (s.sticky ? 'y' : '') +
  39737. (s.unicode ? 'u' : '') +
  39738. (s.dotAll ? 's' : '')
  39739. );
  39740. }
  39741. function _arrayFromIterator(s) {
  39742. for (var o, i = []; !(o = s.next()).done; ) i.push(o.value);
  39743. return i;
  39744. }
  39745. function _includesWith(s, o, i) {
  39746. for (var u = 0, _ = i.length; u < _; ) {
  39747. if (s(o, i[u])) return !0;
  39748. u += 1;
  39749. }
  39750. return !1;
  39751. }
  39752. function _has(s, o) {
  39753. return Object.prototype.hasOwnProperty.call(o, s);
  39754. }
  39755. const Zo =
  39756. 'function' == typeof Object.is
  39757. ? Object.is
  39758. : function _objectIs(s, o) {
  39759. return s === o ? 0 !== s || 1 / s == 1 / o : s != s && o != o;
  39760. };
  39761. var Qo = Object.prototype.toString;
  39762. const _i = (function () {
  39763. return '[object Arguments]' === Qo.call(arguments)
  39764. ? function _isArguments(s) {
  39765. return '[object Arguments]' === Qo.call(s);
  39766. }
  39767. : function _isArguments(s) {
  39768. return _has('callee', s);
  39769. };
  39770. })();
  39771. var Ei = !{ toString: null }.propertyIsEnumerable('toString'),
  39772. Oi = [
  39773. 'constructor',
  39774. 'valueOf',
  39775. 'isPrototypeOf',
  39776. 'toString',
  39777. 'propertyIsEnumerable',
  39778. 'hasOwnProperty',
  39779. 'toLocaleString'
  39780. ],
  39781. Pi = (function () {
  39782. return arguments.propertyIsEnumerable('length');
  39783. })(),
  39784. Mi = function contains(s, o) {
  39785. for (var i = 0; i < s.length; ) {
  39786. if (s[i] === o) return !0;
  39787. i += 1;
  39788. }
  39789. return !1;
  39790. },
  39791. Ri =
  39792. 'function' != typeof Object.keys || Pi
  39793. ? _curry1(function keys(s) {
  39794. if (Object(s) !== s) return [];
  39795. var o,
  39796. i,
  39797. u = [],
  39798. _ = Pi && _i(s);
  39799. for (o in s) !_has(o, s) || (_ && 'length' === o) || (u[u.length] = o);
  39800. if (Ei)
  39801. for (i = Oi.length - 1; i >= 0; )
  39802. _has((o = Oi[i]), s) && !Mi(u, o) && (u[u.length] = o), (i -= 1);
  39803. return u;
  39804. })
  39805. : _curry1(function keys(s) {
  39806. return Object(s) !== s ? [] : Object.keys(s);
  39807. });
  39808. const Wi = Ri;
  39809. const ea = _curry1(function type(s) {
  39810. return null === s
  39811. ? 'Null'
  39812. : void 0 === s
  39813. ? 'Undefined'
  39814. : Object.prototype.toString.call(s).slice(8, -1);
  39815. });
  39816. function _uniqContentEquals(s, o, i, u) {
  39817. var _ = _arrayFromIterator(s);
  39818. function eq(s, o) {
  39819. return _equals(s, o, i.slice(), u.slice());
  39820. }
  39821. return !_includesWith(
  39822. function (s, o) {
  39823. return !_includesWith(eq, o, s);
  39824. },
  39825. _arrayFromIterator(o),
  39826. _
  39827. );
  39828. }
  39829. function _equals(s, o, i, u) {
  39830. if (Zo(s, o)) return !0;
  39831. var _ = ea(s);
  39832. if (_ !== ea(o)) return !1;
  39833. if (
  39834. 'function' == typeof s['fantasy-land/equals'] ||
  39835. 'function' == typeof o['fantasy-land/equals']
  39836. )
  39837. return (
  39838. 'function' == typeof s['fantasy-land/equals'] &&
  39839. s['fantasy-land/equals'](o) &&
  39840. 'function' == typeof o['fantasy-land/equals'] &&
  39841. o['fantasy-land/equals'](s)
  39842. );
  39843. if ('function' == typeof s.equals || 'function' == typeof o.equals)
  39844. return (
  39845. 'function' == typeof s.equals &&
  39846. s.equals(o) &&
  39847. 'function' == typeof o.equals &&
  39848. o.equals(s)
  39849. );
  39850. switch (_) {
  39851. case 'Arguments':
  39852. case 'Array':
  39853. case 'Object':
  39854. if (
  39855. 'function' == typeof s.constructor &&
  39856. 'Promise' ===
  39857. (function _functionName(s) {
  39858. var o = String(s).match(/^function (\w*)/);
  39859. return null == o ? '' : o[1];
  39860. })(s.constructor)
  39861. )
  39862. return s === o;
  39863. break;
  39864. case 'Boolean':
  39865. case 'Number':
  39866. case 'String':
  39867. if (typeof s != typeof o || !Zo(s.valueOf(), o.valueOf())) return !1;
  39868. break;
  39869. case 'Date':
  39870. if (!Zo(s.valueOf(), o.valueOf())) return !1;
  39871. break;
  39872. case 'Error':
  39873. return s.name === o.name && s.message === o.message;
  39874. case 'RegExp':
  39875. if (
  39876. s.source !== o.source ||
  39877. s.global !== o.global ||
  39878. s.ignoreCase !== o.ignoreCase ||
  39879. s.multiline !== o.multiline ||
  39880. s.sticky !== o.sticky ||
  39881. s.unicode !== o.unicode
  39882. )
  39883. return !1;
  39884. }
  39885. for (var w = i.length - 1; w >= 0; ) {
  39886. if (i[w] === s) return u[w] === o;
  39887. w -= 1;
  39888. }
  39889. switch (_) {
  39890. case 'Map':
  39891. return (
  39892. s.size === o.size &&
  39893. _uniqContentEquals(s.entries(), o.entries(), i.concat([s]), u.concat([o]))
  39894. );
  39895. case 'Set':
  39896. return (
  39897. s.size === o.size &&
  39898. _uniqContentEquals(s.values(), o.values(), i.concat([s]), u.concat([o]))
  39899. );
  39900. case 'Arguments':
  39901. case 'Array':
  39902. case 'Object':
  39903. case 'Boolean':
  39904. case 'Number':
  39905. case 'String':
  39906. case 'Date':
  39907. case 'Error':
  39908. case 'RegExp':
  39909. case 'Int8Array':
  39910. case 'Uint8Array':
  39911. case 'Uint8ClampedArray':
  39912. case 'Int16Array':
  39913. case 'Uint16Array':
  39914. case 'Int32Array':
  39915. case 'Uint32Array':
  39916. case 'Float32Array':
  39917. case 'Float64Array':
  39918. case 'ArrayBuffer':
  39919. break;
  39920. default:
  39921. return !1;
  39922. }
  39923. var x = Wi(s);
  39924. if (x.length !== Wi(o).length) return !1;
  39925. var C = i.concat([s]),
  39926. j = u.concat([o]);
  39927. for (w = x.length - 1; w >= 0; ) {
  39928. var L = x[w];
  39929. if (!_has(L, o) || !_equals(o[L], s[L], C, j)) return !1;
  39930. w -= 1;
  39931. }
  39932. return !0;
  39933. }
  39934. const ra = _curry2(function equals(s, o) {
  39935. return _equals(s, o, [], []);
  39936. });
  39937. function _includes(s, o) {
  39938. return (
  39939. (function _indexOf(s, o, i) {
  39940. var u, _;
  39941. if ('function' == typeof s.indexOf)
  39942. switch (typeof o) {
  39943. case 'number':
  39944. if (0 === o) {
  39945. for (u = 1 / o; i < s.length; ) {
  39946. if (0 === (_ = s[i]) && 1 / _ === u) return i;
  39947. i += 1;
  39948. }
  39949. return -1;
  39950. }
  39951. if (o != o) {
  39952. for (; i < s.length; ) {
  39953. if ('number' == typeof (_ = s[i]) && _ != _) return i;
  39954. i += 1;
  39955. }
  39956. return -1;
  39957. }
  39958. return s.indexOf(o, i);
  39959. case 'string':
  39960. case 'boolean':
  39961. case 'function':
  39962. case 'undefined':
  39963. return s.indexOf(o, i);
  39964. case 'object':
  39965. if (null === o) return s.indexOf(o, i);
  39966. }
  39967. for (; i < s.length; ) {
  39968. if (ra(s[i], o)) return i;
  39969. i += 1;
  39970. }
  39971. return -1;
  39972. })(o, s, 0) >= 0
  39973. );
  39974. }
  39975. function _map(s, o) {
  39976. for (var i = 0, u = o.length, _ = Array(u); i < u; ) (_[i] = s(o[i])), (i += 1);
  39977. return _;
  39978. }
  39979. function _quote(s) {
  39980. return (
  39981. '"' +
  39982. s
  39983. .replace(/\\/g, '\\\\')
  39984. .replace(/[\b]/g, '\\b')
  39985. .replace(/\f/g, '\\f')
  39986. .replace(/\n/g, '\\n')
  39987. .replace(/\r/g, '\\r')
  39988. .replace(/\t/g, '\\t')
  39989. .replace(/\v/g, '\\v')
  39990. .replace(/\0/g, '\\0')
  39991. .replace(/"/g, '\\"') +
  39992. '"'
  39993. );
  39994. }
  39995. var na = function pad(s) {
  39996. return (s < 10 ? '0' : '') + s;
  39997. };
  39998. const ia =
  39999. 'function' == typeof Date.prototype.toISOString
  40000. ? function _toISOString(s) {
  40001. return s.toISOString();
  40002. }
  40003. : function _toISOString(s) {
  40004. return (
  40005. s.getUTCFullYear() +
  40006. '-' +
  40007. na(s.getUTCMonth() + 1) +
  40008. '-' +
  40009. na(s.getUTCDate()) +
  40010. 'T' +
  40011. na(s.getUTCHours()) +
  40012. ':' +
  40013. na(s.getUTCMinutes()) +
  40014. ':' +
  40015. na(s.getUTCSeconds()) +
  40016. '.' +
  40017. (s.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) +
  40018. 'Z'
  40019. );
  40020. };
  40021. function _complement(s) {
  40022. return function () {
  40023. return !s.apply(this, arguments);
  40024. };
  40025. }
  40026. function _arrayReduce(s, o, i) {
  40027. for (var u = 0, _ = i.length; u < _; ) (o = s(o, i[u])), (u += 1);
  40028. return o;
  40029. }
  40030. const aa =
  40031. Array.isArray ||
  40032. function _isArray(s) {
  40033. return (
  40034. null != s && s.length >= 0 && '[object Array]' === Object.prototype.toString.call(s)
  40035. );
  40036. };
  40037. function _dispatchable(s, o, i) {
  40038. return function () {
  40039. if (0 === arguments.length) return i();
  40040. var u = arguments[arguments.length - 1];
  40041. if (!aa(u)) {
  40042. for (var _ = 0; _ < s.length; ) {
  40043. if ('function' == typeof u[s[_]])
  40044. return u[s[_]].apply(u, Array.prototype.slice.call(arguments, 0, -1));
  40045. _ += 1;
  40046. }
  40047. if (
  40048. (function _isTransformer(s) {
  40049. return null != s && 'function' == typeof s['@@transducer/step'];
  40050. })(u)
  40051. )
  40052. return o.apply(null, Array.prototype.slice.call(arguments, 0, -1))(u);
  40053. }
  40054. return i.apply(this, arguments);
  40055. };
  40056. }
  40057. function _isObject(s) {
  40058. return '[object Object]' === Object.prototype.toString.call(s);
  40059. }
  40060. const _xfBase_init = function () {
  40061. return this.xf['@@transducer/init']();
  40062. },
  40063. _xfBase_result = function (s) {
  40064. return this.xf['@@transducer/result'](s);
  40065. };
  40066. var la = (function () {
  40067. function XFilter(s, o) {
  40068. (this.xf = o), (this.f = s);
  40069. }
  40070. return (
  40071. (XFilter.prototype['@@transducer/init'] = _xfBase_init),
  40072. (XFilter.prototype['@@transducer/result'] = _xfBase_result),
  40073. (XFilter.prototype['@@transducer/step'] = function (s, o) {
  40074. return this.f(o) ? this.xf['@@transducer/step'](s, o) : s;
  40075. }),
  40076. XFilter
  40077. );
  40078. })();
  40079. function _xfilter(s) {
  40080. return function (o) {
  40081. return new la(s, o);
  40082. };
  40083. }
  40084. var ca = _curry2(
  40085. _dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (s, o) {
  40086. return _isObject(o)
  40087. ? _arrayReduce(
  40088. function (i, u) {
  40089. return s(o[u]) && (i[u] = o[u]), i;
  40090. },
  40091. {},
  40092. Wi(o)
  40093. )
  40094. : (function _filter(s, o) {
  40095. for (var i = 0, u = o.length, _ = []; i < u; )
  40096. s(o[i]) && (_[_.length] = o[i]), (i += 1);
  40097. return _;
  40098. })(s, o);
  40099. })
  40100. );
  40101. const ua = ca;
  40102. const da = _curry2(function reject(s, o) {
  40103. return ua(_complement(s), o);
  40104. });
  40105. function _toString_toString(s, o) {
  40106. var i = function recur(i) {
  40107. var u = o.concat([s]);
  40108. return _includes(i, u) ? '<Circular>' : _toString_toString(i, u);
  40109. },
  40110. mapPairs = function (s, o) {
  40111. return _map(function (o) {
  40112. return _quote(o) + ': ' + i(s[o]);
  40113. }, o.slice().sort());
  40114. };
  40115. switch (Object.prototype.toString.call(s)) {
  40116. case '[object Arguments]':
  40117. return '(function() { return arguments; }(' + _map(i, s).join(', ') + '))';
  40118. case '[object Array]':
  40119. return (
  40120. '[' +
  40121. _map(i, s)
  40122. .concat(
  40123. mapPairs(
  40124. s,
  40125. da(function (s) {
  40126. return /^\d+$/.test(s);
  40127. }, Wi(s))
  40128. )
  40129. )
  40130. .join(', ') +
  40131. ']'
  40132. );
  40133. case '[object Boolean]':
  40134. return 'object' == typeof s ? 'new Boolean(' + i(s.valueOf()) + ')' : s.toString();
  40135. case '[object Date]':
  40136. return 'new Date(' + (isNaN(s.valueOf()) ? i(NaN) : _quote(ia(s))) + ')';
  40137. case '[object Map]':
  40138. return 'new Map(' + i(Array.from(s)) + ')';
  40139. case '[object Null]':
  40140. return 'null';
  40141. case '[object Number]':
  40142. return 'object' == typeof s
  40143. ? 'new Number(' + i(s.valueOf()) + ')'
  40144. : 1 / s == -1 / 0
  40145. ? '-0'
  40146. : s.toString(10);
  40147. case '[object Set]':
  40148. return 'new Set(' + i(Array.from(s).sort()) + ')';
  40149. case '[object String]':
  40150. return 'object' == typeof s ? 'new String(' + i(s.valueOf()) + ')' : _quote(s);
  40151. case '[object Undefined]':
  40152. return 'undefined';
  40153. default:
  40154. if ('function' == typeof s.toString) {
  40155. var u = s.toString();
  40156. if ('[object Object]' !== u) return u;
  40157. }
  40158. return '{' + mapPairs(s, Wi(s)).join(', ') + '}';
  40159. }
  40160. }
  40161. const ma = _curry1(function toString(s) {
  40162. return _toString_toString(s, []);
  40163. });
  40164. var ga = _curry2(function test(s, o) {
  40165. if (
  40166. !(function _isRegExp(s) {
  40167. return '[object RegExp]' === Object.prototype.toString.call(s);
  40168. })(s)
  40169. )
  40170. throw new TypeError(
  40171. '‘test’ requires a value of type RegExp as its first argument; received ' + ma(s)
  40172. );
  40173. return _cloneRegExp(s).test(o);
  40174. });
  40175. const ya = ga;
  40176. function _arity(s, o) {
  40177. switch (s) {
  40178. case 0:
  40179. return function () {
  40180. return o.apply(this, arguments);
  40181. };
  40182. case 1:
  40183. return function (s) {
  40184. return o.apply(this, arguments);
  40185. };
  40186. case 2:
  40187. return function (s, i) {
  40188. return o.apply(this, arguments);
  40189. };
  40190. case 3:
  40191. return function (s, i, u) {
  40192. return o.apply(this, arguments);
  40193. };
  40194. case 4:
  40195. return function (s, i, u, _) {
  40196. return o.apply(this, arguments);
  40197. };
  40198. case 5:
  40199. return function (s, i, u, _, w) {
  40200. return o.apply(this, arguments);
  40201. };
  40202. case 6:
  40203. return function (s, i, u, _, w, x) {
  40204. return o.apply(this, arguments);
  40205. };
  40206. case 7:
  40207. return function (s, i, u, _, w, x, C) {
  40208. return o.apply(this, arguments);
  40209. };
  40210. case 8:
  40211. return function (s, i, u, _, w, x, C, j) {
  40212. return o.apply(this, arguments);
  40213. };
  40214. case 9:
  40215. return function (s, i, u, _, w, x, C, j, L) {
  40216. return o.apply(this, arguments);
  40217. };
  40218. case 10:
  40219. return function (s, i, u, _, w, x, C, j, L, B) {
  40220. return o.apply(this, arguments);
  40221. };
  40222. default:
  40223. throw new Error(
  40224. 'First argument to _arity must be a non-negative integer no greater than ten'
  40225. );
  40226. }
  40227. }
  40228. function _pipe(s, o) {
  40229. return function () {
  40230. return o.call(this, s.apply(this, arguments));
  40231. };
  40232. }
  40233. const va = _curry1(function isArrayLike(s) {
  40234. return (
  40235. !!aa(s) ||
  40236. (!!s &&
  40237. 'object' == typeof s &&
  40238. !_isString(s) &&
  40239. (0 === s.length ||
  40240. (s.length > 0 && s.hasOwnProperty(0) && s.hasOwnProperty(s.length - 1))))
  40241. );
  40242. });
  40243. var ba = 'undefined' != typeof Symbol ? Symbol.iterator : '@@iterator';
  40244. function _createReduce(s, o, i) {
  40245. return function _reduce(u, _, w) {
  40246. if (va(w)) return s(u, _, w);
  40247. if (null == w) return _;
  40248. if ('function' == typeof w['fantasy-land/reduce'])
  40249. return o(u, _, w, 'fantasy-land/reduce');
  40250. if (null != w[ba]) return i(u, _, w[ba]());
  40251. if ('function' == typeof w.next) return i(u, _, w);
  40252. if ('function' == typeof w.reduce) return o(u, _, w, 'reduce');
  40253. throw new TypeError('reduce: list must be array or iterable');
  40254. };
  40255. }
  40256. function _xArrayReduce(s, o, i) {
  40257. for (var u = 0, _ = i.length; u < _; ) {
  40258. if ((o = s['@@transducer/step'](o, i[u])) && o['@@transducer/reduced']) {
  40259. o = o['@@transducer/value'];
  40260. break;
  40261. }
  40262. u += 1;
  40263. }
  40264. return s['@@transducer/result'](o);
  40265. }
  40266. var _a = _curry2(function bind(s, o) {
  40267. return _arity(s.length, function () {
  40268. return s.apply(o, arguments);
  40269. });
  40270. });
  40271. const Ea = _a;
  40272. function _xIterableReduce(s, o, i) {
  40273. for (var u = i.next(); !u.done; ) {
  40274. if ((o = s['@@transducer/step'](o, u.value)) && o['@@transducer/reduced']) {
  40275. o = o['@@transducer/value'];
  40276. break;
  40277. }
  40278. u = i.next();
  40279. }
  40280. return s['@@transducer/result'](o);
  40281. }
  40282. function _xMethodReduce(s, o, i, u) {
  40283. return s['@@transducer/result'](i[u](Ea(s['@@transducer/step'], s), o));
  40284. }
  40285. const wa = _createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
  40286. var xa = (function () {
  40287. function XWrap(s) {
  40288. this.f = s;
  40289. }
  40290. return (
  40291. (XWrap.prototype['@@transducer/init'] = function () {
  40292. throw new Error('init not implemented on XWrap');
  40293. }),
  40294. (XWrap.prototype['@@transducer/result'] = function (s) {
  40295. return s;
  40296. }),
  40297. (XWrap.prototype['@@transducer/step'] = function (s, o) {
  40298. return this.f(s, o);
  40299. }),
  40300. XWrap
  40301. );
  40302. })();
  40303. function _xwrap(s) {
  40304. return new xa(s);
  40305. }
  40306. var ka = _curry3(function (s, o, i) {
  40307. return wa('function' == typeof s ? _xwrap(s) : s, o, i);
  40308. });
  40309. const Ca = ka;
  40310. function _checkForMethod(s, o) {
  40311. return function () {
  40312. var i = arguments.length;
  40313. if (0 === i) return o();
  40314. var u = arguments[i - 1];
  40315. return aa(u) || 'function' != typeof u[s]
  40316. ? o.apply(this, arguments)
  40317. : u[s].apply(u, Array.prototype.slice.call(arguments, 0, i - 1));
  40318. };
  40319. }
  40320. var Aa = _curry3(
  40321. _checkForMethod('slice', function slice(s, o, i) {
  40322. return Array.prototype.slice.call(i, s, o);
  40323. })
  40324. );
  40325. const ja = Aa;
  40326. const Ia = _curry1(_checkForMethod('tail', ja(1, 1 / 0)));
  40327. function pipe() {
  40328. if (0 === arguments.length) throw new Error('pipe requires at least one argument');
  40329. return _arity(arguments[0].length, Ca(_pipe, arguments[0], Ia(arguments)));
  40330. }
  40331. const Na = _curry2(function defaultTo(s, o) {
  40332. return null == o || o != o ? s : o;
  40333. });
  40334. const Da = _curry2(function prop(s, o) {
  40335. if (null != o) return Yo(s) ? _nth(s, o) : o[s];
  40336. });
  40337. const La = _curry3(function propOr(s, o, i) {
  40338. return Na(s, Da(o, i));
  40339. });
  40340. var Ba = _curry1(function (s) {
  40341. return _nth(-1, s);
  40342. });
  40343. const Fa = Ba;
  40344. function _curryN(s, o, i) {
  40345. return function () {
  40346. for (var u = [], _ = 0, w = s, x = 0, C = !1; x < o.length || _ < arguments.length; ) {
  40347. var j;
  40348. x < o.length && (!_isPlaceholder(o[x]) || _ >= arguments.length)
  40349. ? (j = o[x])
  40350. : ((j = arguments[_]), (_ += 1)),
  40351. (u[x] = j),
  40352. _isPlaceholder(j) ? (C = !0) : (w -= 1),
  40353. (x += 1);
  40354. }
  40355. return !C && w <= 0 ? i.apply(this, u) : _arity(Math.max(0, w), _curryN(s, u, i));
  40356. };
  40357. }
  40358. var $a = _curry2(function curryN(s, o) {
  40359. return 1 === s ? _curry1(o) : _arity(s, _curryN(s, [], o));
  40360. });
  40361. const za = $a;
  40362. var Ha = _curry1(function curry(s) {
  40363. return za(s.length, s);
  40364. });
  40365. const Ja = Ha;
  40366. function _isFunction(s) {
  40367. var o = Object.prototype.toString.call(s);
  40368. return (
  40369. '[object Function]' === o ||
  40370. '[object AsyncFunction]' === o ||
  40371. '[object GeneratorFunction]' === o ||
  40372. '[object AsyncGeneratorFunction]' === o
  40373. );
  40374. }
  40375. const Ga = _curry2(function invoker(s, o) {
  40376. return za(s + 1, function () {
  40377. var i = arguments[s];
  40378. if (null != i && _isFunction(i[o]))
  40379. return i[o].apply(i, Array.prototype.slice.call(arguments, 0, s));
  40380. throw new TypeError(ma(i) + ' does not have a method named "' + o + '"');
  40381. });
  40382. });
  40383. const tl = Ga(1, 'split');
  40384. function dropLastWhile(s, o) {
  40385. for (var i = o.length - 1; i >= 0 && s(o[i]); ) i -= 1;
  40386. return ja(0, i + 1, o);
  40387. }
  40388. var sl = (function () {
  40389. function XDropLastWhile(s, o) {
  40390. (this.f = s), (this.retained = []), (this.xf = o);
  40391. }
  40392. return (
  40393. (XDropLastWhile.prototype['@@transducer/init'] = _xfBase_init),
  40394. (XDropLastWhile.prototype['@@transducer/result'] = function (s) {
  40395. return (this.retained = null), this.xf['@@transducer/result'](s);
  40396. }),
  40397. (XDropLastWhile.prototype['@@transducer/step'] = function (s, o) {
  40398. return this.f(o) ? this.retain(s, o) : this.flush(s, o);
  40399. }),
  40400. (XDropLastWhile.prototype.flush = function (s, o) {
  40401. return (
  40402. (s = wa(this.xf, s, this.retained)),
  40403. (this.retained = []),
  40404. this.xf['@@transducer/step'](s, o)
  40405. );
  40406. }),
  40407. (XDropLastWhile.prototype.retain = function (s, o) {
  40408. return this.retained.push(o), s;
  40409. }),
  40410. XDropLastWhile
  40411. );
  40412. })();
  40413. function _xdropLastWhile(s) {
  40414. return function (o) {
  40415. return new sl(s, o);
  40416. };
  40417. }
  40418. const ul = _curry2(_dispatchable([], _xdropLastWhile, dropLastWhile));
  40419. const yl = Ga(1, 'join');
  40420. var vl = _curry1(function flip(s) {
  40421. return za(s.length, function (o, i) {
  40422. var u = Array.prototype.slice.call(arguments, 0);
  40423. return (u[0] = i), (u[1] = o), s.apply(this, u);
  40424. });
  40425. });
  40426. const _l = vl(_curry2(_includes));
  40427. const El = Ja(function (s, o) {
  40428. return pipe(tl(''), ul(_l(s)), yl(''))(o);
  40429. });
  40430. function _iterableReduce(s, o, i) {
  40431. for (var u = i.next(); !u.done; ) (o = s(o, u.value)), (u = i.next());
  40432. return o;
  40433. }
  40434. function _methodReduce(s, o, i, u) {
  40435. return i[u](s, o);
  40436. }
  40437. const wl = _createReduce(_arrayReduce, _methodReduce, _iterableReduce);
  40438. var Sl = (function () {
  40439. function XMap(s, o) {
  40440. (this.xf = o), (this.f = s);
  40441. }
  40442. return (
  40443. (XMap.prototype['@@transducer/init'] = _xfBase_init),
  40444. (XMap.prototype['@@transducer/result'] = _xfBase_result),
  40445. (XMap.prototype['@@transducer/step'] = function (s, o) {
  40446. return this.xf['@@transducer/step'](s, this.f(o));
  40447. }),
  40448. XMap
  40449. );
  40450. })();
  40451. var xl = _curry2(
  40452. _dispatchable(
  40453. ['fantasy-land/map', 'map'],
  40454. function _xmap(s) {
  40455. return function (o) {
  40456. return new Sl(s, o);
  40457. };
  40458. },
  40459. function map(s, o) {
  40460. switch (Object.prototype.toString.call(o)) {
  40461. case '[object Function]':
  40462. return za(o.length, function () {
  40463. return s.call(this, o.apply(this, arguments));
  40464. });
  40465. case '[object Object]':
  40466. return _arrayReduce(
  40467. function (i, u) {
  40468. return (i[u] = s(o[u])), i;
  40469. },
  40470. {},
  40471. Wi(o)
  40472. );
  40473. default:
  40474. return _map(s, o);
  40475. }
  40476. }
  40477. )
  40478. );
  40479. const kl = xl;
  40480. const Cl = _curry2(function ap(s, o) {
  40481. return 'function' == typeof o['fantasy-land/ap']
  40482. ? o['fantasy-land/ap'](s)
  40483. : 'function' == typeof s.ap
  40484. ? s.ap(o)
  40485. : 'function' == typeof s
  40486. ? function (i) {
  40487. return s(i)(o(i));
  40488. }
  40489. : wl(
  40490. function (s, i) {
  40491. return (function _concat(s, o) {
  40492. var i;
  40493. o = o || [];
  40494. var u = (s = s || []).length,
  40495. _ = o.length,
  40496. w = [];
  40497. for (i = 0; i < u; ) (w[w.length] = s[i]), (i += 1);
  40498. for (i = 0; i < _; ) (w[w.length] = o[i]), (i += 1);
  40499. return w;
  40500. })(s, kl(i, o));
  40501. },
  40502. [],
  40503. s
  40504. );
  40505. });
  40506. var Ol = _curry2(function liftN(s, o) {
  40507. var i = za(s, o);
  40508. return za(s, function () {
  40509. return _arrayReduce(Cl, kl(i, arguments[0]), Array.prototype.slice.call(arguments, 1));
  40510. });
  40511. });
  40512. const Al = Ol;
  40513. var Il = _curry1(function lift(s) {
  40514. return Al(s.length, s);
  40515. });
  40516. const Pl = Il;
  40517. const Ml = Pl(
  40518. _curry1(function not(s) {
  40519. return !s;
  40520. })
  40521. );
  40522. const Tl = _curry1(function always(s) {
  40523. return function () {
  40524. return s;
  40525. };
  40526. });
  40527. const Nl = Tl(void 0);
  40528. const Rl = ra(Nl());
  40529. const Dl = Ml(Rl);
  40530. const Ll = _curry2(function max(s, o) {
  40531. if (s === o) return o;
  40532. function safeMax(s, o) {
  40533. if (s > o != o > s) return o > s ? o : s;
  40534. }
  40535. var i = safeMax(s, o);
  40536. if (void 0 !== i) return i;
  40537. var u = safeMax(typeof s, typeof o);
  40538. if (void 0 !== u) return u === typeof s ? s : o;
  40539. var _ = ma(s),
  40540. w = safeMax(_, ma(o));
  40541. return void 0 !== w && w === _ ? s : o;
  40542. });
  40543. var Bl = _curry2(function pluck(s, o) {
  40544. return kl(Da(s), o);
  40545. });
  40546. const Fl = Bl;
  40547. const $l = _curry1(function anyPass(s) {
  40548. return za(Ca(Ll, 0, Fl('length', s)), function () {
  40549. for (var o = 0, i = s.length; o < i; ) {
  40550. if (s[o].apply(this, arguments)) return !0;
  40551. o += 1;
  40552. }
  40553. return !1;
  40554. });
  40555. });
  40556. var identical = function (s, o) {
  40557. switch (arguments.length) {
  40558. case 0:
  40559. return identical;
  40560. case 1:
  40561. return function unaryIdentical(o) {
  40562. return 0 === arguments.length ? unaryIdentical : Zo(s, o);
  40563. };
  40564. default:
  40565. return Zo(s, o);
  40566. }
  40567. };
  40568. const Vl = identical;
  40569. const Ul = za(1, pipe(ea, Vl('GeneratorFunction')));
  40570. const zl = za(1, pipe(ea, Vl('AsyncFunction')));
  40571. const Wl = $l([pipe(ea, Vl('Function')), Ul, zl]);
  40572. var Kl = _curry3(function replace(s, o, i) {
  40573. return i.replace(s, o);
  40574. });
  40575. const Hl = Kl;
  40576. const Jl = za(1, pipe(ea, Vl('RegExp')));
  40577. const Gl = _curry3(function when(s, o, i) {
  40578. return s(i) ? o(i) : i;
  40579. });
  40580. const Yl = za(1, pipe(ea, Vl('String')));
  40581. const Xl = Gl(Yl, Hl(/[.*+?^${}()|[\]\\-]/g, '\\$&'));
  40582. var Zl = function checkValue(s, o) {
  40583. if ('string' != typeof s && !(s instanceof String))
  40584. throw TypeError('`'.concat(o, '` must be a string'));
  40585. };
  40586. const Ql = function replaceAll(s, o, i) {
  40587. !(function checkArguments(s, o, i) {
  40588. if (null == i || null == s || null == o)
  40589. throw TypeError('Input values must not be `null` or `undefined`');
  40590. })(s, o, i),
  40591. Zl(i, 'str'),
  40592. Zl(o, 'replaceValue'),
  40593. (function checkSearchValue(s) {
  40594. if (!('string' == typeof s || s instanceof String || s instanceof RegExp))
  40595. throw TypeError('`searchValue` must be a string or an regexp');
  40596. })(s);
  40597. var u = new RegExp(Jl(s) ? s : Xl(s), 'g');
  40598. return Hl(u, o, i);
  40599. };
  40600. var ec = za(3, Ql),
  40601. rc = Ga(2, 'replaceAll');
  40602. const sc = Wl(String.prototype.replaceAll) ? rc : ec,
  40603. isWindows = () => Xo(ya(/^win/), ['platform'], Go),
  40604. getProtocol = (s) => {
  40605. try {
  40606. const o = new URL(s);
  40607. return El(':', o.protocol);
  40608. } catch {
  40609. return;
  40610. }
  40611. },
  40612. oc =
  40613. (pipe(getProtocol, Dl),
  40614. (s) => {
  40615. if (Go.browser) return !1;
  40616. const o = getProtocol(s);
  40617. return Rl(o) || 'file' === o || /^[a-zA-Z]$/.test(o);
  40618. }),
  40619. isHttpUrl = (s) => {
  40620. const o = getProtocol(s);
  40621. return 'http' === o || 'https' === o;
  40622. },
  40623. toFileSystemPath = (s, o) => {
  40624. const i = [/%23/g, '#', /%24/g, '$', /%26/g, '&', /%2C/g, ',', /%40/g, '@'],
  40625. u = La(!1, 'keepFileProtocol', o),
  40626. _ = La(isWindows, 'isWindows', o);
  40627. let w = decodeURI(s);
  40628. for (let s = 0; s < i.length; s += 2) w = w.replace(i[s], i[s + 1]);
  40629. let x = 'file://' === w.substring(0, 7).toLowerCase();
  40630. return (
  40631. x &&
  40632. ((w = '/' === w[7] ? w.substring(8) : w.substring(7)),
  40633. _() && '/' === w[1] && (w = `${w[0]}:${w.substring(1)}`),
  40634. u ? (w = `file:///${w}`) : ((x = !1), (w = _() ? w : `/${w}`))),
  40635. _() &&
  40636. !x &&
  40637. ((w = sc('/', '\\', w)),
  40638. ':\\' === w.substring(1, 3) && (w = w[0].toUpperCase() + w.substring(1))),
  40639. w
  40640. );
  40641. },
  40642. getHash = (s) => {
  40643. const o = s.indexOf('#');
  40644. return -1 !== o ? s.substring(o) : '#';
  40645. },
  40646. stripHash = (s) => {
  40647. const o = s.indexOf('#');
  40648. let i = s;
  40649. return o >= 0 && (i = s.substring(0, o)), i;
  40650. },
  40651. url_cwd = () => {
  40652. if (Go.browser) return stripHash(globalThis.location.href);
  40653. const s = Go.cwd(),
  40654. o = Fa(s);
  40655. return ['/', '\\'].includes(o) ? s : s + (isWindows() ? '\\' : '/');
  40656. },
  40657. resolve = (s, o) => {
  40658. const i = new URL(o, new URL(s, 'resolve://'));
  40659. if ('resolve:' === i.protocol) {
  40660. const { pathname: s, search: o, hash: u } = i;
  40661. return s + o + u;
  40662. }
  40663. return i.toString();
  40664. },
  40665. sanitize = (s) => {
  40666. if (oc(s))
  40667. return ((s) => {
  40668. const o = [/\?/g, '%3F', /#/g, '%23'];
  40669. let i = s;
  40670. isWindows() && (i = i.replace(/\\/g, '/')), (i = encodeURI(i));
  40671. for (let s = 0; s < o.length; s += 2) i = i.replace(o[s], o[s + 1]);
  40672. return i;
  40673. })(toFileSystemPath(s));
  40674. try {
  40675. return new URL(s).toString();
  40676. } catch {
  40677. return encodeURI(decodeURI(s)).replace(/%5B/g, '[').replace(/%5D/g, ']');
  40678. }
  40679. },
  40680. unsanitize = (s) => (oc(s) ? toFileSystemPath(s) : decodeURI(s)),
  40681. {
  40682. fetch: ic,
  40683. Response: ac,
  40684. Headers: lc,
  40685. Request: cc,
  40686. FormData: pc,
  40687. File: hc,
  40688. Blob: dc
  40689. } = globalThis;
  40690. function _array_like_to_array(s, o) {
  40691. (null == o || o > s.length) && (o = s.length);
  40692. for (var i = 0, u = new Array(o); i < o; i++) u[i] = s[i];
  40693. return u;
  40694. }
  40695. function legacy_defineProperties(s, o) {
  40696. for (var i = 0; i < o.length; i++) {
  40697. var u = o[i];
  40698. (u.enumerable = u.enumerable || !1),
  40699. (u.configurable = !0),
  40700. 'value' in u && (u.writable = !0),
  40701. Object.defineProperty(s, u.key, u);
  40702. }
  40703. }
  40704. function _instanceof(s, o) {
  40705. return null != o && 'undefined' != typeof Symbol && o[Symbol.hasInstance]
  40706. ? !!o[Symbol.hasInstance](s)
  40707. : s instanceof o;
  40708. }
  40709. function _sliced_to_array(s, o) {
  40710. return (
  40711. (function _array_with_holes(s) {
  40712. if (Array.isArray(s)) return s;
  40713. })(s) ||
  40714. (function _iterable_to_array_limit(s, o) {
  40715. var i =
  40716. null == s
  40717. ? null
  40718. : ('undefined' != typeof Symbol && s[Symbol.iterator]) || s['@@iterator'];
  40719. if (null != i) {
  40720. var u,
  40721. _,
  40722. w = [],
  40723. x = !0,
  40724. C = !1;
  40725. try {
  40726. for (
  40727. i = i.call(s);
  40728. !(x = (u = i.next()).done) && (w.push(u.value), !o || w.length !== o);
  40729. x = !0
  40730. );
  40731. } catch (s) {
  40732. (C = !0), (_ = s);
  40733. } finally {
  40734. try {
  40735. x || null == i.return || i.return();
  40736. } finally {
  40737. if (C) throw _;
  40738. }
  40739. }
  40740. return w;
  40741. }
  40742. })(s, o) ||
  40743. (function _unsupported_iterable_to_array(s, o) {
  40744. if (!s) return;
  40745. if ('string' == typeof s) return _array_like_to_array(s, o);
  40746. var i = Object.prototype.toString.call(s).slice(8, -1);
  40747. 'Object' === i && s.constructor && (i = s.constructor.name);
  40748. if ('Map' === i || 'Set' === i) return Array.from(i);
  40749. if ('Arguments' === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))
  40750. return _array_like_to_array(s, o);
  40751. })(s, o) ||
  40752. (function _non_iterable_rest() {
  40753. throw new TypeError(
  40754. 'Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  40755. );
  40756. })()
  40757. );
  40758. }
  40759. function _type_of(s) {
  40760. return s && 'undefined' != typeof Symbol && s.constructor === Symbol
  40761. ? 'symbol'
  40762. : typeof s;
  40763. }
  40764. void 0 === globalThis.fetch && (globalThis.fetch = ic),
  40765. void 0 === globalThis.Headers && (globalThis.Headers = lc),
  40766. void 0 === globalThis.Request && (globalThis.Request = cc),
  40767. void 0 === globalThis.Response && (globalThis.Response = ac),
  40768. void 0 === globalThis.FormData && (globalThis.FormData = pc),
  40769. void 0 === globalThis.File && (globalThis.File = hc),
  40770. void 0 === globalThis.Blob && (globalThis.Blob = dc);
  40771. var __typeError = function (s) {
  40772. throw TypeError(s);
  40773. },
  40774. __accessCheck = function (s, o, i) {
  40775. return o.has(s) || __typeError('Cannot ' + i);
  40776. },
  40777. __privateGet = function (s, o, i) {
  40778. return __accessCheck(s, o, 'read from private field'), i ? i.call(s) : o.get(s);
  40779. },
  40780. __privateAdd = function (s, o, i) {
  40781. return o.has(s)
  40782. ? __typeError('Cannot add the same private member more than once')
  40783. : _instanceof(o, WeakSet)
  40784. ? o.add(s)
  40785. : o.set(s, i);
  40786. },
  40787. __privateSet = function (s, o, i, u) {
  40788. return __accessCheck(s, o, 'write to private field'), u ? u.call(s, i) : o.set(s, i), i;
  40789. },
  40790. to_string = function (s) {
  40791. return Object.prototype.toString.call(s);
  40792. },
  40793. is_typed_array = function (s) {
  40794. return ArrayBuffer.isView(s) && !_instanceof(s, DataView);
  40795. },
  40796. fc = Array.isArray,
  40797. gc = Object.getOwnPropertyDescriptor,
  40798. bc = Object.prototype.propertyIsEnumerable,
  40799. _c = Object.getOwnPropertySymbols,
  40800. Ec = Object.prototype.hasOwnProperty;
  40801. function own_enumerable_keys(s) {
  40802. for (var o = Object.keys(s), i = _c(s), u = 0; u < i.length; u++)
  40803. bc.call(s, i[u]) && o.push(i[u]);
  40804. return o;
  40805. }
  40806. function is_writable(s, o) {
  40807. var i;
  40808. return !(null === (i = gc(s, o)) || void 0 === i ? void 0 : i.writable);
  40809. }
  40810. function legacy_copy(s, o) {
  40811. if ('object' === (void 0 === s ? 'undefined' : _type_of(s)) && null !== s) {
  40812. var i;
  40813. if (fc(s)) i = [];
  40814. else if ('[object Date]' === to_string(s)) i = new Date(s.getTime ? s.getTime() : s);
  40815. else if (
  40816. (function (s) {
  40817. return '[object RegExp]' === to_string(s);
  40818. })(s)
  40819. )
  40820. i = new RegExp(s);
  40821. else if (
  40822. (function (s) {
  40823. return '[object Error]' === to_string(s);
  40824. })(s)
  40825. )
  40826. i = { message: s.message };
  40827. else if (
  40828. (function (s) {
  40829. return '[object Boolean]' === to_string(s);
  40830. })(s) ||
  40831. (function (s) {
  40832. return '[object Number]' === to_string(s);
  40833. })(s) ||
  40834. (function (s) {
  40835. return '[object String]' === to_string(s);
  40836. })(s)
  40837. )
  40838. i = Object(s);
  40839. else {
  40840. if (is_typed_array(s)) return s.slice();
  40841. i = Object.create(Object.getPrototypeOf(s));
  40842. }
  40843. var u = o.includeSymbols ? own_enumerable_keys : Object.keys,
  40844. _ = !0,
  40845. w = !1,
  40846. x = void 0;
  40847. try {
  40848. for (var C, j = u(s)[Symbol.iterator](); !(_ = (C = j.next()).done); _ = !0) {
  40849. var L = C.value;
  40850. i[L] = s[L];
  40851. }
  40852. } catch (s) {
  40853. (w = !0), (x = s);
  40854. } finally {
  40855. try {
  40856. _ || null == j.return || j.return();
  40857. } finally {
  40858. if (w) throw x;
  40859. }
  40860. }
  40861. return i;
  40862. }
  40863. return s;
  40864. }
  40865. var kc,
  40866. Oc,
  40867. jc = { includeSymbols: !1, immutable: !1 };
  40868. function walk(s, o) {
  40869. var i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : jc,
  40870. u = [],
  40871. _ = [],
  40872. w = !0,
  40873. x = i.includeSymbols ? own_enumerable_keys : Object.keys,
  40874. C = !!i.immutable;
  40875. return (function walker(s) {
  40876. var j = C ? legacy_copy(s, i) : s,
  40877. L = {},
  40878. B = !0,
  40879. $ = {
  40880. node: j,
  40881. node_: s,
  40882. path: [].concat(u),
  40883. parent: _[_.length - 1],
  40884. parents: _,
  40885. key: u[u.length - 1],
  40886. isRoot: 0 === u.length,
  40887. level: u.length,
  40888. circular: void 0,
  40889. isLeaf: !1,
  40890. notLeaf: !0,
  40891. notRoot: !0,
  40892. isFirst: !1,
  40893. isLast: !1,
  40894. update: function update(s) {
  40895. var o = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
  40896. $.isRoot || ($.parent.node[$.key] = s), ($.node = s), o && (B = !1);
  40897. },
  40898. delete: function _delete(s) {
  40899. delete $.parent.node[$.key], s && (B = !1);
  40900. },
  40901. remove: function remove(s) {
  40902. fc($.parent.node) ? $.parent.node.splice($.key, 1) : delete $.parent.node[$.key],
  40903. s && (B = !1);
  40904. },
  40905. keys: null,
  40906. before: function before(s) {
  40907. L.before = s;
  40908. },
  40909. after: function after(s) {
  40910. L.after = s;
  40911. },
  40912. pre: function pre(s) {
  40913. L.pre = s;
  40914. },
  40915. post: function post(s) {
  40916. L.post = s;
  40917. },
  40918. stop: function stop() {
  40919. w = !1;
  40920. },
  40921. block: function block() {
  40922. B = !1;
  40923. }
  40924. };
  40925. if (!w) return $;
  40926. function update_state() {
  40927. if ('object' === _type_of($.node) && null !== $.node) {
  40928. ($.keys && $.node_ === $.node) || ($.keys = x($.node)),
  40929. ($.isLeaf = 0 === $.keys.length);
  40930. for (var o = 0; o < _.length; o++)
  40931. if (_[o].node_ === s) {
  40932. $.circular = _[o];
  40933. break;
  40934. }
  40935. } else ($.isLeaf = !0), ($.keys = null);
  40936. ($.notLeaf = !$.isLeaf), ($.notRoot = !$.isRoot);
  40937. }
  40938. update_state();
  40939. var V = o.call($, $.node);
  40940. if ((void 0 !== V && $.update && $.update(V), L.before && L.before.call($, $.node), !B))
  40941. return $;
  40942. if ('object' === _type_of($.node) && null !== $.node && !$.circular) {
  40943. var U;
  40944. _.push($), update_state();
  40945. var z = !0,
  40946. Y = !1,
  40947. Z = void 0;
  40948. try {
  40949. for (
  40950. var ee,
  40951. ie = Object.entries(null !== (U = $.keys) && void 0 !== U ? U : [])[
  40952. Symbol.iterator
  40953. ]();
  40954. !(z = (ee = ie.next()).done);
  40955. z = !0
  40956. ) {
  40957. var ae,
  40958. le = _sliced_to_array(ee.value, 2),
  40959. ce = le[0],
  40960. pe = le[1];
  40961. u.push(pe), L.pre && L.pre.call($, $.node[pe], pe);
  40962. var de = walker($.node[pe]);
  40963. C && Ec.call($.node, pe) && !is_writable($.node, pe) && ($.node[pe] = de.node),
  40964. (de.isLast =
  40965. !!(null === (ae = $.keys) || void 0 === ae ? void 0 : ae.length) &&
  40966. +ce == $.keys.length - 1),
  40967. (de.isFirst = 0 == +ce),
  40968. L.post && L.post.call($, de),
  40969. u.pop();
  40970. }
  40971. } catch (s) {
  40972. (Y = !0), (Z = s);
  40973. } finally {
  40974. try {
  40975. z || null == ie.return || ie.return();
  40976. } finally {
  40977. if (Y) throw Z;
  40978. }
  40979. }
  40980. _.pop();
  40981. }
  40982. return L.after && L.after.call($, $.node), $;
  40983. })(s).node;
  40984. }
  40985. var Ic = (function () {
  40986. function Traverse(s) {
  40987. var o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : jc;
  40988. !(function _class_call_check(s, o) {
  40989. if (!(s instanceof o)) throw new TypeError('Cannot call a class as a function');
  40990. })(this, Traverse),
  40991. __privateAdd(this, kc),
  40992. __privateAdd(this, Oc),
  40993. __privateSet(this, kc, s),
  40994. __privateSet(this, Oc, o);
  40995. }
  40996. return (
  40997. (function _create_class(s, o, i) {
  40998. return (
  40999. o && legacy_defineProperties(s.prototype, o), i && legacy_defineProperties(s, i), s
  41000. );
  41001. })(Traverse, [
  41002. {
  41003. key: 'get',
  41004. value: function get(s) {
  41005. for (var o = __privateGet(this, kc), i = 0; o && i < s.length; i++) {
  41006. var u = s[i];
  41007. if (
  41008. !Ec.call(o, u) ||
  41009. (!__privateGet(this, Oc).includeSymbols &&
  41010. 'symbol' === (void 0 === u ? 'undefined' : _type_of(u)))
  41011. )
  41012. return;
  41013. o = o[u];
  41014. }
  41015. return o;
  41016. }
  41017. },
  41018. {
  41019. key: 'has',
  41020. value: function has(s) {
  41021. for (var o = __privateGet(this, kc), i = 0; o && i < s.length; i++) {
  41022. var u = s[i];
  41023. if (
  41024. !Ec.call(o, u) ||
  41025. (!__privateGet(this, Oc).includeSymbols &&
  41026. 'symbol' === (void 0 === u ? 'undefined' : _type_of(u)))
  41027. )
  41028. return !1;
  41029. o = o[u];
  41030. }
  41031. return !0;
  41032. }
  41033. },
  41034. {
  41035. key: 'set',
  41036. value: function set(s, o) {
  41037. var i = __privateGet(this, kc),
  41038. u = 0;
  41039. for (u = 0; u < s.length - 1; u++) {
  41040. var _ = s[u];
  41041. Ec.call(i, _) || (i[_] = {}), (i = i[_]);
  41042. }
  41043. return (i[s[u]] = o), o;
  41044. }
  41045. },
  41046. {
  41047. key: 'map',
  41048. value: function map(s) {
  41049. return walk(__privateGet(this, kc), s, {
  41050. immutable: !0,
  41051. includeSymbols: !!__privateGet(this, Oc).includeSymbols
  41052. });
  41053. }
  41054. },
  41055. {
  41056. key: 'forEach',
  41057. value: function forEach(s) {
  41058. return (
  41059. __privateSet(this, kc, walk(__privateGet(this, kc), s, __privateGet(this, Oc))),
  41060. __privateGet(this, kc)
  41061. );
  41062. }
  41063. },
  41064. {
  41065. key: 'reduce',
  41066. value: function reduce(s, o) {
  41067. var i = 1 === arguments.length,
  41068. u = i ? __privateGet(this, kc) : o;
  41069. return (
  41070. this.forEach(function (o) {
  41071. (this.isRoot && i) || (u = s.call(this, u, o));
  41072. }),
  41073. u
  41074. );
  41075. }
  41076. },
  41077. {
  41078. key: 'paths',
  41079. value: function paths() {
  41080. var s = [];
  41081. return (
  41082. this.forEach(function () {
  41083. s.push(this.path);
  41084. }),
  41085. s
  41086. );
  41087. }
  41088. },
  41089. {
  41090. key: 'nodes',
  41091. value: function nodes() {
  41092. var s = [];
  41093. return (
  41094. this.forEach(function () {
  41095. s.push(this.node);
  41096. }),
  41097. s
  41098. );
  41099. }
  41100. },
  41101. {
  41102. key: 'clone',
  41103. value: function clone() {
  41104. var s = [],
  41105. o = [],
  41106. i = __privateGet(this, Oc);
  41107. return is_typed_array(__privateGet(this, kc))
  41108. ? __privateGet(this, kc).slice()
  41109. : (function clone(u) {
  41110. for (var _ = 0; _ < s.length; _++) if (s[_] === u) return o[_];
  41111. if ('object' === (void 0 === u ? 'undefined' : _type_of(u)) && null !== u) {
  41112. var w = legacy_copy(u, i);
  41113. s.push(u), o.push(w);
  41114. var x = i.includeSymbols ? own_enumerable_keys : Object.keys,
  41115. C = !0,
  41116. j = !1,
  41117. L = void 0;
  41118. try {
  41119. for (
  41120. var B, $ = x(u)[Symbol.iterator]();
  41121. !(C = (B = $.next()).done);
  41122. C = !0
  41123. ) {
  41124. var V = B.value;
  41125. w[V] = clone(u[V]);
  41126. }
  41127. } catch (s) {
  41128. (j = !0), (L = s);
  41129. } finally {
  41130. try {
  41131. C || null == $.return || $.return();
  41132. } finally {
  41133. if (j) throw L;
  41134. }
  41135. }
  41136. return s.pop(), o.pop(), w;
  41137. }
  41138. return u;
  41139. })(__privateGet(this, kc));
  41140. }
  41141. }
  41142. ]),
  41143. Traverse
  41144. );
  41145. })();
  41146. (kc = new WeakMap()), (Oc = new WeakMap());
  41147. var traverse = function (s, o) {
  41148. return new Ic(s, o);
  41149. };
  41150. (traverse.get = function (s, o, i) {
  41151. return new Ic(s, i).get(o);
  41152. }),
  41153. (traverse.set = function (s, o, i, u) {
  41154. return new Ic(s, u).set(o, i);
  41155. }),
  41156. (traverse.has = function (s, o, i) {
  41157. return new Ic(s, i).has(o);
  41158. }),
  41159. (traverse.map = function (s, o, i) {
  41160. return new Ic(s, i).map(o);
  41161. }),
  41162. (traverse.forEach = function (s, o, i) {
  41163. return new Ic(s, i).forEach(o);
  41164. }),
  41165. (traverse.reduce = function (s, o, i, u) {
  41166. return new Ic(s, u).reduce(o, i);
  41167. }),
  41168. (traverse.paths = function (s, o) {
  41169. return new Ic(s, o).paths();
  41170. }),
  41171. (traverse.nodes = function (s, o) {
  41172. return new Ic(s, o).nodes();
  41173. }),
  41174. (traverse.clone = function (s, o) {
  41175. return new Ic(s, o).clone();
  41176. });
  41177. var Pc = traverse;
  41178. const Mc = 'application/json, application/yaml',
  41179. Nc = 'https://swagger.io',
  41180. Rc = Object.freeze({ url: '/' }),
  41181. Lc = ['properties'],
  41182. Fc = ['properties'],
  41183. qc = [
  41184. 'definitions',
  41185. 'parameters',
  41186. 'responses',
  41187. 'securityDefinitions',
  41188. 'components/schemas',
  41189. 'components/responses',
  41190. 'components/parameters',
  41191. 'components/securitySchemes'
  41192. ],
  41193. Kc = ['schema/example', 'items/example'];
  41194. function isFreelyNamed(s) {
  41195. const o = s[s.length - 1],
  41196. i = s[s.length - 2],
  41197. u = s.join('/');
  41198. return (
  41199. (Lc.indexOf(o) > -1 && -1 === Fc.indexOf(i)) ||
  41200. qc.indexOf(u) > -1 ||
  41201. Kc.some((s) => u.indexOf(s) > -1)
  41202. );
  41203. }
  41204. function absolutifyPointer(s, o) {
  41205. const [i, u] = s.split('#'),
  41206. _ = null != o ? o : '',
  41207. w = null != i ? i : '';
  41208. let x;
  41209. if (isHttpUrl(_)) x = resolve(_, w);
  41210. else {
  41211. const s = resolve(Nc, _),
  41212. o = resolve(s, w).replace(Nc, '');
  41213. x = w.startsWith('/') ? o : o.substring(1);
  41214. }
  41215. return u ? `${x}#${u}` : x;
  41216. }
  41217. const Hc = /^([a-z]+:\/\/|\/\/)/i;
  41218. class JSONRefError extends Jo {}
  41219. const Jc = {},
  41220. Gc = new WeakMap(),
  41221. Qc = [
  41222. (s) => 'paths' === s[0] && 'responses' === s[3] && 'examples' === s[5],
  41223. (s) =>
  41224. 'paths' === s[0] && 'responses' === s[3] && 'content' === s[5] && 'example' === s[7],
  41225. (s) =>
  41226. 'paths' === s[0] &&
  41227. 'responses' === s[3] &&
  41228. 'content' === s[5] &&
  41229. 'examples' === s[7] &&
  41230. 'value' === s[9],
  41231. (s) =>
  41232. 'paths' === s[0] &&
  41233. 'requestBody' === s[3] &&
  41234. 'content' === s[4] &&
  41235. 'example' === s[6],
  41236. (s) =>
  41237. 'paths' === s[0] &&
  41238. 'requestBody' === s[3] &&
  41239. 'content' === s[4] &&
  41240. 'examples' === s[6] &&
  41241. 'value' === s[8],
  41242. (s) => 'paths' === s[0] && 'parameters' === s[2] && 'example' === s[4],
  41243. (s) => 'paths' === s[0] && 'parameters' === s[3] && 'example' === s[5],
  41244. (s) =>
  41245. 'paths' === s[0] && 'parameters' === s[2] && 'examples' === s[4] && 'value' === s[6],
  41246. (s) =>
  41247. 'paths' === s[0] && 'parameters' === s[3] && 'examples' === s[5] && 'value' === s[7],
  41248. (s) =>
  41249. 'paths' === s[0] && 'parameters' === s[2] && 'content' === s[4] && 'example' === s[6],
  41250. (s) =>
  41251. 'paths' === s[0] &&
  41252. 'parameters' === s[2] &&
  41253. 'content' === s[4] &&
  41254. 'examples' === s[6] &&
  41255. 'value' === s[8],
  41256. (s) =>
  41257. 'paths' === s[0] && 'parameters' === s[3] && 'content' === s[4] && 'example' === s[7],
  41258. (s) =>
  41259. 'paths' === s[0] &&
  41260. 'parameters' === s[3] &&
  41261. 'content' === s[5] &&
  41262. 'examples' === s[7] &&
  41263. 'value' === s[9]
  41264. ],
  41265. eu = {
  41266. key: '$ref',
  41267. plugin: (s, o, i, u) => {
  41268. const _ = u.getInstance(),
  41269. w = i.slice(0, -1);
  41270. if (isFreelyNamed(w) || ((s) => Qc.some((o) => o(s)))(w)) return;
  41271. const { baseDoc: x } = u.getContext(i);
  41272. if ('string' != typeof s)
  41273. return new JSONRefError('$ref: must be a string (JSON-Ref)', {
  41274. $ref: s,
  41275. baseDoc: x,
  41276. fullPath: i
  41277. });
  41278. const C = refs_split(s),
  41279. j = C[0],
  41280. L = C[1] || '';
  41281. let B, $, V;
  41282. try {
  41283. B = x || j ? absoluteify(j, x) : null;
  41284. } catch (o) {
  41285. return wrapError(o, { pointer: L, $ref: s, basePath: B, fullPath: i });
  41286. }
  41287. if (
  41288. (function pointerAlreadyInPath(s, o, i, u) {
  41289. let _ = Gc.get(u);
  41290. _ || ((_ = {}), Gc.set(u, _));
  41291. const w = (function arrayToJsonPointer(s) {
  41292. if (0 === s.length) return '';
  41293. return `/${s.map(escapeJsonPointerToken).join('/')}`;
  41294. })(i),
  41295. x = `${o || '<specmap-base>'}#${s}`,
  41296. C = w.replace(/allOf\/\d+\/?/g, ''),
  41297. j = u.contextTree.get([]).baseDoc;
  41298. if (o === j && pointerIsAParent(C, s)) return !0;
  41299. let L = '';
  41300. const B = i.some(
  41301. (s) => (
  41302. (L = `${L}/${escapeJsonPointerToken(s)}`),
  41303. _[L] && _[L].some((s) => pointerIsAParent(s, x) || pointerIsAParent(x, s))
  41304. )
  41305. );
  41306. if (B) return !0;
  41307. return void (_[C] = (_[C] || []).concat(x));
  41308. })(L, B, w, u) &&
  41309. !_.useCircularStructures
  41310. ) {
  41311. const o = absolutifyPointer(s, B);
  41312. return s === o ? null : zo.replace(i, o);
  41313. }
  41314. if (
  41315. (null == B
  41316. ? ((V = jsonPointerToArray(L)),
  41317. ($ = u.get(V)),
  41318. void 0 === $ &&
  41319. ($ = new JSONRefError(`Could not resolve reference: ${s}`, {
  41320. pointer: L,
  41321. $ref: s,
  41322. baseDoc: x,
  41323. fullPath: i
  41324. })))
  41325. : (($ = extractFromDoc(B, L)),
  41326. ($ =
  41327. null != $.__value
  41328. ? $.__value
  41329. : $.catch((o) => {
  41330. throw wrapError(o, { pointer: L, $ref: s, baseDoc: x, fullPath: i });
  41331. }))),
  41332. $ instanceof Error)
  41333. )
  41334. return [zo.remove(i), $];
  41335. const U = absolutifyPointer(s, B),
  41336. z = zo.replace(w, $, { $$ref: U });
  41337. if (B && B !== x) return [z, zo.context(w, { baseDoc: B })];
  41338. try {
  41339. if (
  41340. !(function patchValueAlreadyInPath(s, o) {
  41341. const i = [s];
  41342. return (
  41343. o.path.reduce((s, o) => (i.push(s[o]), s[o]), s), pointToAncestor(o.value)
  41344. );
  41345. function pointToAncestor(s) {
  41346. return (
  41347. zo.isObject(s) &&
  41348. (i.indexOf(s) >= 0 || Object.keys(s).some((o) => pointToAncestor(s[o])))
  41349. );
  41350. }
  41351. })(u.state, z) ||
  41352. _.useCircularStructures
  41353. )
  41354. return z;
  41355. } catch (s) {
  41356. return null;
  41357. }
  41358. }
  41359. },
  41360. tu = Object.assign(eu, {
  41361. docCache: Jc,
  41362. absoluteify,
  41363. clearCache: function clearCache(s) {
  41364. void 0 !== s
  41365. ? delete Jc[s]
  41366. : Object.keys(Jc).forEach((s) => {
  41367. delete Jc[s];
  41368. });
  41369. },
  41370. JSONRefError,
  41371. wrapError,
  41372. getDoc,
  41373. split: refs_split,
  41374. extractFromDoc,
  41375. fetchJSON: function fetchJSON(s) {
  41376. return fetch(s, { headers: { Accept: Mc }, loadSpec: !0 })
  41377. .then((s) => s.text())
  41378. .then((s) => mn.load(s));
  41379. },
  41380. extract,
  41381. jsonPointerToArray,
  41382. unescapeJsonPointerToken
  41383. }),
  41384. ru = tu;
  41385. function absoluteify(s, o) {
  41386. if (!Hc.test(s)) {
  41387. if (!o)
  41388. throw new JSONRefError(
  41389. `Tried to resolve a relative URL, without having a basePath. path: '${s}' basePath: '${o}'`
  41390. );
  41391. return resolve(o, s);
  41392. }
  41393. return s;
  41394. }
  41395. function wrapError(s, o) {
  41396. let i;
  41397. return (
  41398. (i =
  41399. s && s.response && s.response.body
  41400. ? `${s.response.body.code} ${s.response.body.message}`
  41401. : s.message),
  41402. new JSONRefError(`Could not resolve reference: ${i}`, { ...o, cause: s })
  41403. );
  41404. }
  41405. function refs_split(s) {
  41406. return (s + '').split('#');
  41407. }
  41408. function extractFromDoc(s, o) {
  41409. const i = Jc[s];
  41410. if (i && !zo.isPromise(i))
  41411. try {
  41412. const s = extract(o, i);
  41413. return Object.assign(Promise.resolve(s), { __value: s });
  41414. } catch (s) {
  41415. return Promise.reject(s);
  41416. }
  41417. return getDoc(s).then((s) => extract(o, s));
  41418. }
  41419. function getDoc(s) {
  41420. const o = Jc[s];
  41421. return o
  41422. ? zo.isPromise(o)
  41423. ? o
  41424. : Promise.resolve(o)
  41425. : ((Jc[s] = tu.fetchJSON(s).then((o) => ((Jc[s] = o), o))), Jc[s]);
  41426. }
  41427. function extract(s, o) {
  41428. const i = jsonPointerToArray(s);
  41429. if (i.length < 1) return o;
  41430. const u = zo.getIn(o, i);
  41431. if (void 0 === u)
  41432. throw new JSONRefError(`Could not resolve pointer: ${s} does not exist in document`, {
  41433. pointer: s
  41434. });
  41435. return u;
  41436. }
  41437. function jsonPointerToArray(s) {
  41438. if ('string' != typeof s) throw new TypeError('Expected a string, got a ' + typeof s);
  41439. return (
  41440. '/' === s[0] && (s = s.substr(1)),
  41441. '' === s ? [] : s.split('/').map(unescapeJsonPointerToken)
  41442. );
  41443. }
  41444. function unescapeJsonPointerToken(s) {
  41445. if ('string' != typeof s) return s;
  41446. return new URLSearchParams(`=${s.replace(/~1/g, '/').replace(/~0/g, '~')}`).get('');
  41447. }
  41448. function escapeJsonPointerToken(s) {
  41449. return new URLSearchParams([['', s.replace(/~/g, '~0').replace(/\//g, '~1')]])
  41450. .toString()
  41451. .slice(1);
  41452. }
  41453. const pointerBoundaryChar = (s) => !s || '/' === s || '#' === s;
  41454. function pointerIsAParent(s, o) {
  41455. if (pointerBoundaryChar(o)) return !0;
  41456. const i = s.charAt(o.length),
  41457. u = o.slice(-1);
  41458. return 0 === s.indexOf(o) && (!i || '/' === i || '#' === i) && '#' !== u;
  41459. }
  41460. const nu = {
  41461. key: 'allOf',
  41462. plugin: (s, o, i, u, _) => {
  41463. if (_.meta && _.meta.$$ref) return;
  41464. const w = i.slice(0, -1);
  41465. if (isFreelyNamed(w)) return;
  41466. if (!Array.isArray(s)) {
  41467. const s = new TypeError('allOf must be an array');
  41468. return (s.fullPath = i), s;
  41469. }
  41470. let x = !1,
  41471. C = _.value;
  41472. if (
  41473. (w.forEach((s) => {
  41474. C && (C = C[s]);
  41475. }),
  41476. (C = { ...C }),
  41477. 0 === Object.keys(C).length)
  41478. )
  41479. return;
  41480. delete C.allOf;
  41481. const j = [];
  41482. return (
  41483. j.push(u.replace(w, {})),
  41484. s.forEach((s, o) => {
  41485. if (!u.isObject(s)) {
  41486. if (x) return null;
  41487. x = !0;
  41488. const s = new TypeError('Elements in allOf must be objects');
  41489. return (s.fullPath = i), j.push(s);
  41490. }
  41491. j.push(u.mergeDeep(w, s));
  41492. const _ = (function generateAbsoluteRefPatches(
  41493. s,
  41494. o,
  41495. {
  41496. specmap: i,
  41497. getBaseUrlForNodePath: u = (s) => i.getContext([...o, ...s]).baseDoc,
  41498. targetKeys: _ = ['$ref', '$$ref']
  41499. } = {}
  41500. ) {
  41501. const w = [];
  41502. return (
  41503. Pc(s).forEach(function callback() {
  41504. if (_.includes(this.key) && 'string' == typeof this.node) {
  41505. const s = this.path,
  41506. _ = o.concat(this.path),
  41507. x = absolutifyPointer(this.node, u(s));
  41508. w.push(i.replace(_, x));
  41509. }
  41510. }),
  41511. w
  41512. );
  41513. })(s, i.slice(0, -1), {
  41514. getBaseUrlForNodePath: (s) => u.getContext([...i, o, ...s]).baseDoc,
  41515. specmap: u
  41516. });
  41517. j.push(..._);
  41518. }),
  41519. C.example && j.push(u.remove([].concat(w, 'example'))),
  41520. j.push(u.mergeDeep(w, C)),
  41521. C.$$ref || j.push(u.remove([].concat(w, '$$ref'))),
  41522. j
  41523. );
  41524. }
  41525. },
  41526. su = {
  41527. key: 'parameters',
  41528. plugin: (s, o, i, u) => {
  41529. if (Array.isArray(s) && s.length) {
  41530. const o = Object.assign([], s),
  41531. _ = i.slice(0, -1),
  41532. w = { ...zo.getIn(u.spec, _) };
  41533. for (let _ = 0; _ < s.length; _ += 1) {
  41534. const x = s[_];
  41535. try {
  41536. o[_].default = u.parameterMacro(w, x);
  41537. } catch (s) {
  41538. const o = new Error(s);
  41539. return (o.fullPath = i), o;
  41540. }
  41541. }
  41542. return zo.replace(i, o);
  41543. }
  41544. return zo.replace(i, s);
  41545. }
  41546. },
  41547. ou = {
  41548. key: 'properties',
  41549. plugin: (s, o, i, u) => {
  41550. const _ = { ...s };
  41551. for (const o in s)
  41552. try {
  41553. _[o].default = u.modelPropertyMacro(_[o]);
  41554. } catch (s) {
  41555. const o = new Error(s);
  41556. return (o.fullPath = i), o;
  41557. }
  41558. return zo.replace(i, _);
  41559. }
  41560. };
  41561. class ContextTree {
  41562. constructor(s) {
  41563. this.root = context_tree_createNode(s || {});
  41564. }
  41565. set(s, o) {
  41566. const i = this.getParent(s, !0);
  41567. if (!i) return void context_tree_updateNode(this.root, o, null);
  41568. const u = s[s.length - 1],
  41569. { children: _ } = i;
  41570. _[u] ? context_tree_updateNode(_[u], o, i) : (_[u] = context_tree_createNode(o, i));
  41571. }
  41572. get(s) {
  41573. if ((s = s || []).length < 1) return this.root.value;
  41574. let o,
  41575. i,
  41576. u = this.root;
  41577. for (let _ = 0; _ < s.length && ((i = s[_]), (o = u.children), o[i]); _ += 1) u = o[i];
  41578. return u && u.protoValue;
  41579. }
  41580. getParent(s, o) {
  41581. return !s || s.length < 1
  41582. ? null
  41583. : s.length < 2
  41584. ? this.root
  41585. : s.slice(0, -1).reduce((s, i) => {
  41586. if (!s) return s;
  41587. const { children: u } = s;
  41588. return !u[i] && o && (u[i] = context_tree_createNode(null, s)), u[i];
  41589. }, this.root);
  41590. }
  41591. }
  41592. function context_tree_createNode(s, o) {
  41593. return context_tree_updateNode({ children: {} }, s, o);
  41594. }
  41595. function context_tree_updateNode(s, o, i) {
  41596. return (
  41597. (s.value = o || {}),
  41598. (s.protoValue = i ? { ...i.protoValue, ...s.value } : s.value),
  41599. Object.keys(s.children).forEach((o) => {
  41600. const i = s.children[o];
  41601. s.children[o] = context_tree_updateNode(i, i.value, s);
  41602. }),
  41603. s
  41604. );
  41605. }
  41606. const specmap_noop = () => {};
  41607. class SpecMap {
  41608. static getPluginName(s) {
  41609. return s.pluginName;
  41610. }
  41611. static getPatchesOfType(s, o) {
  41612. return s.filter(o);
  41613. }
  41614. constructor(s) {
  41615. Object.assign(
  41616. this,
  41617. {
  41618. spec: '',
  41619. debugLevel: 'info',
  41620. plugins: [],
  41621. pluginHistory: {},
  41622. errors: [],
  41623. mutations: [],
  41624. promisedPatches: [],
  41625. state: {},
  41626. patches: [],
  41627. context: {},
  41628. contextTree: new ContextTree(),
  41629. showDebug: !1,
  41630. allPatches: [],
  41631. pluginProp: 'specMap',
  41632. libMethods: Object.assign(Object.create(this), zo, { getInstance: () => this }),
  41633. allowMetaPatches: !1
  41634. },
  41635. s
  41636. ),
  41637. (this.get = this._get.bind(this)),
  41638. (this.getContext = this._getContext.bind(this)),
  41639. (this.hasRun = this._hasRun.bind(this)),
  41640. (this.wrappedPlugins = this.plugins
  41641. .map(this.wrapPlugin.bind(this))
  41642. .filter(zo.isFunction)),
  41643. this.patches.push(zo.add([], this.spec)),
  41644. this.patches.push(zo.context([], this.context)),
  41645. this.updatePatches(this.patches);
  41646. }
  41647. debug(s, ...o) {
  41648. this.debugLevel === s && console.log(...o);
  41649. }
  41650. verbose(s, ...o) {
  41651. 'verbose' === this.debugLevel && console.log(`[${s}] `, ...o);
  41652. }
  41653. wrapPlugin(s, o) {
  41654. const { pathDiscriminator: i } = this;
  41655. let u,
  41656. _ = null;
  41657. return (
  41658. s[this.pluginProp]
  41659. ? ((_ = s), (u = s[this.pluginProp]))
  41660. : zo.isFunction(s)
  41661. ? (u = s)
  41662. : zo.isObject(s) &&
  41663. (u = (function createKeyBasedPlugin(s) {
  41664. const isSubPath = (s, o) =>
  41665. !Array.isArray(s) || s.every((s, i) => s === o[i]);
  41666. return function* generator(o, u) {
  41667. const _ = {};
  41668. for (const [s, i] of o.filter(zo.isAdditiveMutation).entries()) {
  41669. if (!(s < 3e3)) return;
  41670. yield* traverse(i.value, i.path, i);
  41671. }
  41672. function* traverse(o, w, x) {
  41673. if (zo.isObject(o)) {
  41674. const C = w.length - 1,
  41675. j = w[C],
  41676. L = w.indexOf('properties'),
  41677. B = 'properties' === j && C === L,
  41678. $ = u.allowMetaPatches && _[o.$$ref];
  41679. for (const C of Object.keys(o)) {
  41680. const j = o[C],
  41681. L = w.concat(C),
  41682. V = zo.isObject(j),
  41683. U = o.$$ref;
  41684. if (
  41685. ($ ||
  41686. (V &&
  41687. (u.allowMetaPatches && U && (_[U] = !0),
  41688. yield* traverse(j, L, x))),
  41689. !B && C === s.key)
  41690. ) {
  41691. const o = isSubPath(i, w);
  41692. (i && !o) || (yield s.plugin(j, C, L, u, x));
  41693. }
  41694. }
  41695. } else s.key === w[w.length - 1] && (yield s.plugin(o, s.key, w, u));
  41696. }
  41697. };
  41698. })(s)),
  41699. Object.assign(u.bind(_), { pluginName: s.name || o, isGenerator: zo.isGenerator(u) })
  41700. );
  41701. }
  41702. nextPlugin() {
  41703. return this.wrappedPlugins.find((s) => this.getMutationsForPlugin(s).length > 0);
  41704. }
  41705. nextPromisedPatch() {
  41706. if (this.promisedPatches.length > 0)
  41707. return Promise.race(this.promisedPatches.map((s) => s.value));
  41708. }
  41709. getPluginHistory(s) {
  41710. const o = this.constructor.getPluginName(s);
  41711. return this.pluginHistory[o] || [];
  41712. }
  41713. getPluginRunCount(s) {
  41714. return this.getPluginHistory(s).length;
  41715. }
  41716. getPluginHistoryTip(s) {
  41717. const o = this.getPluginHistory(s);
  41718. return (o && o[o.length - 1]) || {};
  41719. }
  41720. getPluginMutationIndex(s) {
  41721. const o = this.getPluginHistoryTip(s).mutationIndex;
  41722. return 'number' != typeof o ? -1 : o;
  41723. }
  41724. updatePluginHistory(s, o) {
  41725. const i = this.constructor.getPluginName(s);
  41726. (this.pluginHistory[i] = this.pluginHistory[i] || []), this.pluginHistory[i].push(o);
  41727. }
  41728. updatePatches(s) {
  41729. zo.normalizeArray(s).forEach((s) => {
  41730. if (s instanceof Error) this.errors.push(s);
  41731. else
  41732. try {
  41733. if (!zo.isObject(s))
  41734. return void this.debug('updatePatches', 'Got a non-object patch', s);
  41735. if ((this.showDebug && this.allPatches.push(s), zo.isPromise(s.value)))
  41736. return this.promisedPatches.push(s), void this.promisedPatchThen(s);
  41737. if (zo.isContextPatch(s)) return void this.setContext(s.path, s.value);
  41738. zo.isMutation(s) && this.updateMutations(s);
  41739. } catch (s) {
  41740. console.error(s), this.errors.push(s);
  41741. }
  41742. });
  41743. }
  41744. updateMutations(s) {
  41745. 'object' == typeof s.value &&
  41746. !Array.isArray(s.value) &&
  41747. this.allowMetaPatches &&
  41748. (s.value = { ...s.value });
  41749. const o = zo.applyPatch(this.state, s, { allowMetaPatches: this.allowMetaPatches });
  41750. o && (this.mutations.push(s), (this.state = o));
  41751. }
  41752. removePromisedPatch(s) {
  41753. const o = this.promisedPatches.indexOf(s);
  41754. o < 0
  41755. ? this.debug("Tried to remove a promisedPatch that isn't there!")
  41756. : this.promisedPatches.splice(o, 1);
  41757. }
  41758. promisedPatchThen(s) {
  41759. return (
  41760. (s.value = s.value
  41761. .then((o) => {
  41762. const i = { ...s, value: o };
  41763. this.removePromisedPatch(s), this.updatePatches(i);
  41764. })
  41765. .catch((o) => {
  41766. this.removePromisedPatch(s), this.updatePatches(o);
  41767. })),
  41768. s.value
  41769. );
  41770. }
  41771. getMutations(s, o) {
  41772. return (
  41773. (s = s || 0),
  41774. 'number' != typeof o && (o = this.mutations.length),
  41775. this.mutations.slice(s, o)
  41776. );
  41777. }
  41778. getCurrentMutations() {
  41779. return this.getMutationsForPlugin(this.getCurrentPlugin());
  41780. }
  41781. getMutationsForPlugin(s) {
  41782. const o = this.getPluginMutationIndex(s);
  41783. return this.getMutations(o + 1);
  41784. }
  41785. getCurrentPlugin() {
  41786. return this.currentPlugin;
  41787. }
  41788. getLib() {
  41789. return this.libMethods;
  41790. }
  41791. _get(s) {
  41792. return zo.getIn(this.state, s);
  41793. }
  41794. _getContext(s) {
  41795. return this.contextTree.get(s);
  41796. }
  41797. setContext(s, o) {
  41798. return this.contextTree.set(s, o);
  41799. }
  41800. _hasRun(s) {
  41801. return this.getPluginRunCount(this.getCurrentPlugin()) > (s || 0);
  41802. }
  41803. dispatch() {
  41804. const s = this,
  41805. o = this.nextPlugin();
  41806. if (!o) {
  41807. const s = this.nextPromisedPatch();
  41808. if (s) return s.then(() => this.dispatch()).catch(() => this.dispatch());
  41809. const o = { spec: this.state, errors: this.errors };
  41810. return this.showDebug && (o.patches = this.allPatches), Promise.resolve(o);
  41811. }
  41812. if (
  41813. ((s.pluginCount = s.pluginCount || new WeakMap()),
  41814. s.pluginCount.set(o, (s.pluginCount.get(o) || 0) + 1),
  41815. s.pluginCount[o] > 100)
  41816. )
  41817. return Promise.resolve({
  41818. spec: s.state,
  41819. errors: s.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))
  41820. });
  41821. if (o !== this.currentPlugin && this.promisedPatches.length) {
  41822. const s = this.promisedPatches.map((s) => s.value);
  41823. return Promise.all(s.map((s) => s.then(specmap_noop, specmap_noop))).then(() =>
  41824. this.dispatch()
  41825. );
  41826. }
  41827. return (function executePlugin() {
  41828. s.currentPlugin = o;
  41829. const i = s.getCurrentMutations(),
  41830. u = s.mutations.length - 1;
  41831. try {
  41832. if (o.isGenerator) for (const u of o(i, s.getLib())) updatePatches(u);
  41833. else {
  41834. updatePatches(o(i, s.getLib()));
  41835. }
  41836. } catch (s) {
  41837. console.error(s), updatePatches([Object.assign(Object.create(s), { plugin: o })]);
  41838. } finally {
  41839. s.updatePluginHistory(o, { mutationIndex: u });
  41840. }
  41841. return s.dispatch();
  41842. })();
  41843. function updatePatches(i) {
  41844. i && ((i = zo.fullyNormalizeArray(i)), s.updatePatches(i, o));
  41845. }
  41846. }
  41847. }
  41848. const iu = { refs: ru, allOf: nu, parameters: su, properties: ou };
  41849. function makeFetchJSON(s, o = {}) {
  41850. const { requestInterceptor: i, responseInterceptor: u } = o,
  41851. _ = s.withCredentials ? 'include' : 'same-origin';
  41852. return (o) =>
  41853. s({
  41854. url: o,
  41855. loadSpec: !0,
  41856. requestInterceptor: i,
  41857. responseInterceptor: u,
  41858. headers: { Accept: Mc },
  41859. credentials: _
  41860. }).then((s) => s.body);
  41861. }
  41862. function isFile(s, o) {
  41863. return (
  41864. o || 'undefined' == typeof navigator || (o = navigator),
  41865. o && 'ReactNative' === o.product
  41866. ? !(!s || 'object' != typeof s || 'string' != typeof s.uri)
  41867. : ('undefined' != typeof File && s instanceof File) ||
  41868. ('undefined' != typeof Blob && s instanceof Blob) ||
  41869. !!ArrayBuffer.isView(s) ||
  41870. (null !== s && 'object' == typeof s && 'function' == typeof s.pipe)
  41871. );
  41872. }
  41873. function isArrayOfFile(s, o) {
  41874. return Array.isArray(s) && s.some((s) => isFile(s, o));
  41875. }
  41876. class FileWithData extends File {
  41877. constructor(s, o = '', i = {}) {
  41878. super([s], o, i), (this.data = s);
  41879. }
  41880. valueOf() {
  41881. return this.data;
  41882. }
  41883. toString() {
  41884. return this.valueOf();
  41885. }
  41886. }
  41887. const isRfc3986Reserved = (s) => ":/?#[]@!$&'()*+,;=".indexOf(s) > -1,
  41888. isRfc3986Unreserved = (s) => /^[a-z0-9\-._~]+$/i.test(s);
  41889. function encodeCharacters(s, o = 'reserved') {
  41890. return [...s]
  41891. .map((s) => {
  41892. if (isRfc3986Unreserved(s)) return s;
  41893. if (isRfc3986Reserved(s) && 'unsafe' === o) return s;
  41894. const i = new TextEncoder();
  41895. return Array.from(i.encode(s))
  41896. .map((s) => `0${s.toString(16).toUpperCase()}`.slice(-2))
  41897. .map((s) => `%${s}`)
  41898. .join('');
  41899. })
  41900. .join('');
  41901. }
  41902. function stylize(s) {
  41903. const { value: o } = s;
  41904. return Array.isArray(o)
  41905. ? (function encodeArray({ key: s, value: o, style: i, explode: u, escape: _ }) {
  41906. if ('simple' === i) return o.map((s) => valueEncoder(s, _)).join(',');
  41907. if ('label' === i) return `.${o.map((s) => valueEncoder(s, _)).join('.')}`;
  41908. if ('matrix' === i)
  41909. return o
  41910. .map((s) => valueEncoder(s, _))
  41911. .reduce((o, i) => (!o || u ? `${o || ''};${s}=${i}` : `${o},${i}`), '');
  41912. if ('form' === i) {
  41913. const i = u ? `&${s}=` : ',';
  41914. return o.map((s) => valueEncoder(s, _)).join(i);
  41915. }
  41916. if ('spaceDelimited' === i) {
  41917. const i = u ? `${s}=` : '';
  41918. return o.map((s) => valueEncoder(s, _)).join(` ${i}`);
  41919. }
  41920. if ('pipeDelimited' === i) {
  41921. const i = u ? `${s}=` : '';
  41922. return o.map((s) => valueEncoder(s, _)).join(`|${i}`);
  41923. }
  41924. return;
  41925. })(s)
  41926. : 'object' == typeof o
  41927. ? (function encodeObject({ key: s, value: o, style: i, explode: u, escape: _ }) {
  41928. const w = Object.keys(o);
  41929. if ('simple' === i)
  41930. return w.reduce((s, i) => {
  41931. const w = valueEncoder(o[i], _);
  41932. return `${s ? `${s},` : ''}${i}${u ? '=' : ','}${w}`;
  41933. }, '');
  41934. if ('label' === i)
  41935. return w.reduce((s, i) => {
  41936. const w = valueEncoder(o[i], _);
  41937. return `${s ? `${s}.` : '.'}${i}${u ? '=' : '.'}${w}`;
  41938. }, '');
  41939. if ('matrix' === i && u)
  41940. return w.reduce(
  41941. (s, i) => `${s ? `${s};` : ';'}${i}=${valueEncoder(o[i], _)}`,
  41942. ''
  41943. );
  41944. if ('matrix' === i)
  41945. return w.reduce((i, u) => {
  41946. const w = valueEncoder(o[u], _);
  41947. return `${i ? `${i},` : `;${s}=`}${u},${w}`;
  41948. }, '');
  41949. if ('form' === i)
  41950. return w.reduce((s, i) => {
  41951. const w = valueEncoder(o[i], _);
  41952. return `${s ? `${s}${u ? '&' : ','}` : ''}${i}${u ? '=' : ','}${w}`;
  41953. }, '');
  41954. return;
  41955. })(s)
  41956. : (function encodePrimitive({ key: s, value: o, style: i, escape: u }) {
  41957. if ('simple' === i) return valueEncoder(o, u);
  41958. if ('label' === i) return `.${valueEncoder(o, u)}`;
  41959. if ('matrix' === i) return `;${s}=${valueEncoder(o, u)}`;
  41960. if ('form' === i) return valueEncoder(o, u);
  41961. if ('deepObject' === i) return valueEncoder(o, u);
  41962. return;
  41963. })(s);
  41964. }
  41965. function valueEncoder(s, o = !1) {
  41966. return (
  41967. Array.isArray(s) || (null !== s && 'object' == typeof s)
  41968. ? (s = JSON.stringify(s))
  41969. : ('number' != typeof s && 'boolean' != typeof s) || (s = String(s)),
  41970. o && s.length > 0 ? encodeCharacters(s, o) : s
  41971. );
  41972. }
  41973. const au = { form: ',', spaceDelimited: '%20', pipeDelimited: '|' },
  41974. lu = { csv: ',', ssv: '%20', tsv: '%09', pipes: '|' };
  41975. function formatKeyValue(s, o, i = !1) {
  41976. const {
  41977. collectionFormat: u,
  41978. allowEmptyValue: _,
  41979. serializationOption: w,
  41980. encoding: x
  41981. } = o,
  41982. C = 'object' != typeof o || Array.isArray(o) ? o : o.value,
  41983. j = i ? (s) => s.toString() : (s) => encodeURIComponent(s),
  41984. L = j(s);
  41985. if (void 0 === C && _) return [[L, '']];
  41986. if (isFile(C) || isArrayOfFile(C)) return [[L, C]];
  41987. if (w) return formatKeyValueBySerializationOption(s, C, i, w);
  41988. if (x) {
  41989. if (
  41990. [typeof x.style, typeof x.explode, typeof x.allowReserved].some(
  41991. (s) => 'undefined' !== s
  41992. )
  41993. ) {
  41994. const { style: o, explode: u, allowReserved: _ } = x;
  41995. return formatKeyValueBySerializationOption(s, C, i, {
  41996. style: o,
  41997. explode: u,
  41998. allowReserved: _
  41999. });
  42000. }
  42001. if ('string' == typeof x.contentType) {
  42002. if (x.contentType.startsWith('application/json')) {
  42003. const s = j('string' == typeof C ? C : JSON.stringify(C));
  42004. return [[L, new FileWithData(s, 'blob', { type: x.contentType })]];
  42005. }
  42006. const s = j(String(C));
  42007. return [[L, new FileWithData(s, 'blob', { type: x.contentType })]];
  42008. }
  42009. return 'object' != typeof C
  42010. ? [[L, j(C)]]
  42011. : Array.isArray(C) && C.every((s) => 'object' != typeof s)
  42012. ? [[L, C.map(j).join(',')]]
  42013. : [[L, j(JSON.stringify(C))]];
  42014. }
  42015. return 'object' != typeof C
  42016. ? [[L, j(C)]]
  42017. : Array.isArray(C)
  42018. ? 'multi' === u
  42019. ? [[L, C.map(j)]]
  42020. : [[L, C.map(j).join(lu[u || 'csv'])]]
  42021. : [[L, '']];
  42022. }
  42023. function formatKeyValueBySerializationOption(s, o, i, u) {
  42024. const _ = u.style || 'form',
  42025. w = void 0 === u.explode ? 'form' === _ : u.explode,
  42026. x = !i && (u && u.allowReserved ? 'unsafe' : 'reserved'),
  42027. encodeFn = (s) => valueEncoder(s, x),
  42028. C = i ? (s) => s : (s) => encodeFn(s);
  42029. return 'object' != typeof o
  42030. ? [[C(s), encodeFn(o)]]
  42031. : Array.isArray(o)
  42032. ? w
  42033. ? [[C(s), o.map(encodeFn)]]
  42034. : [[C(s), o.map(encodeFn).join(au[_])]]
  42035. : 'deepObject' === _
  42036. ? Object.keys(o).map((i) => [C(`${s}[${i}]`), encodeFn(o[i])])
  42037. : w
  42038. ? Object.keys(o).map((s) => [C(s), encodeFn(o[s])])
  42039. : [
  42040. [
  42041. C(s),
  42042. Object.keys(o)
  42043. .map((s) => [`${C(s)},${encodeFn(o[s])}`])
  42044. .join(',')
  42045. ]
  42046. ];
  42047. }
  42048. function encodeFormOrQuery(s) {
  42049. return ((s, { encode: o = !0 } = {}) => {
  42050. const buildNestedParams = (s, o, i) => (
  42051. null == i
  42052. ? s.append(o, '')
  42053. : Array.isArray(i)
  42054. ? i.reduce((i, u) => buildNestedParams(s, o, u), s)
  42055. : i instanceof Date
  42056. ? s.append(o, i.toISOString())
  42057. : 'object' == typeof i
  42058. ? Object.entries(i).reduce(
  42059. (i, [u, _]) => buildNestedParams(s, `${o}[${u}]`, _),
  42060. s
  42061. )
  42062. : s.append(o, i),
  42063. s
  42064. ),
  42065. i = Object.entries(s).reduce(
  42066. (s, [o, i]) => buildNestedParams(s, o, i),
  42067. new URLSearchParams()
  42068. ),
  42069. u = String(i);
  42070. return o ? u : decodeURIComponent(u);
  42071. })(
  42072. Object.keys(s).reduce((o, i) => {
  42073. for (const [u, _] of formatKeyValue(i, s[i]))
  42074. o[u] = _ instanceof FileWithData ? _.valueOf() : _;
  42075. return o;
  42076. }, {}),
  42077. { encode: !1 }
  42078. );
  42079. }
  42080. function serializeRequest(s = {}) {
  42081. const { url: o = '', query: i, form: u } = s;
  42082. if (u) {
  42083. const o = Object.keys(u).some((s) => {
  42084. const { value: o } = u[s];
  42085. return isFile(o) || isArrayOfFile(o);
  42086. }),
  42087. i = s.headers['content-type'] || s.headers['Content-Type'];
  42088. if (o || /multipart\/form-data/i.test(i)) {
  42089. const o = (function request_buildFormData(s) {
  42090. return Object.entries(s).reduce((s, [o, i]) => {
  42091. for (const [u, _] of formatKeyValue(o, i, !0))
  42092. if (Array.isArray(_))
  42093. for (const o of _)
  42094. if (ArrayBuffer.isView(o)) {
  42095. const i = new Blob([o]);
  42096. s.append(u, i);
  42097. } else s.append(u, o);
  42098. else if (ArrayBuffer.isView(_)) {
  42099. const o = new Blob([_]);
  42100. s.append(u, o);
  42101. } else s.append(u, _);
  42102. return s;
  42103. }, new FormData());
  42104. })(s.form);
  42105. (s.formdata = o), (s.body = o);
  42106. } else s.body = encodeFormOrQuery(u);
  42107. delete s.form;
  42108. }
  42109. if (i) {
  42110. const [u, _] = o.split('?');
  42111. let w = '';
  42112. if (_) {
  42113. const s = new URLSearchParams(_);
  42114. Object.keys(i).forEach((o) => s.delete(o)), (w = String(s));
  42115. }
  42116. const x = ((...s) => {
  42117. const o = s.filter((s) => s).join('&');
  42118. return o ? `?${o}` : '';
  42119. })(w, encodeFormOrQuery(i));
  42120. (s.url = u + x), delete s.query;
  42121. }
  42122. return s;
  42123. }
  42124. function serializeHeaders(s = {}) {
  42125. return 'function' != typeof s.entries
  42126. ? {}
  42127. : Array.from(s.entries()).reduce(
  42128. (s, [o, i]) => (
  42129. (s[o] = (function serializeHeaderValue(s) {
  42130. return s.includes(', ') ? s.split(', ') : s;
  42131. })(i)),
  42132. s
  42133. ),
  42134. {}
  42135. );
  42136. }
  42137. function serializeResponse(s, o, { loadSpec: i = !1 } = {}) {
  42138. const u = {
  42139. ok: s.ok,
  42140. url: s.url || o,
  42141. status: s.status,
  42142. statusText: s.statusText,
  42143. headers: serializeHeaders(s.headers)
  42144. },
  42145. _ = u.headers['content-type'],
  42146. w = i || ((s = '') => /(json|xml|yaml|text)\b/.test(s))(_);
  42147. return (w ? s.text : s.blob || s.buffer).call(s).then((s) => {
  42148. if (((u.text = s), (u.data = s), w))
  42149. try {
  42150. const o = (function parseBody(s, o) {
  42151. return o && (0 === o.indexOf('application/json') || o.indexOf('+json') > 0)
  42152. ? JSON.parse(s)
  42153. : mn.load(s);
  42154. })(s, _);
  42155. (u.body = o), (u.obj = o);
  42156. } catch (s) {
  42157. u.parseError = s;
  42158. }
  42159. return u;
  42160. });
  42161. }
  42162. async function http_http(s, o = {}) {
  42163. 'object' == typeof s && (s = (o = s).url),
  42164. (o.headers = o.headers || {}),
  42165. (o = serializeRequest(o)).headers &&
  42166. Object.keys(o.headers).forEach((s) => {
  42167. const i = o.headers[s];
  42168. 'string' == typeof i && (o.headers[s] = i.replace(/\n+/g, ' '));
  42169. }),
  42170. o.requestInterceptor && (o = (await o.requestInterceptor(o)) || o);
  42171. const i = o.headers['content-type'] || o.headers['Content-Type'];
  42172. let u;
  42173. /multipart\/form-data/i.test(i) &&
  42174. (delete o.headers['content-type'], delete o.headers['Content-Type']);
  42175. try {
  42176. (u = await (o.userFetch || fetch)(o.url, o)),
  42177. (u = await serializeResponse(u, s, o)),
  42178. o.responseInterceptor && (u = (await o.responseInterceptor(u)) || u);
  42179. } catch (s) {
  42180. if (!u) throw s;
  42181. const o = new Error(u.statusText || `response status is ${u.status}`);
  42182. throw ((o.status = u.status), (o.statusCode = u.status), (o.responseError = s), o);
  42183. }
  42184. if (!u.ok) {
  42185. const s = new Error(u.statusText || `response status is ${u.status}`);
  42186. throw ((s.status = u.status), (s.statusCode = u.status), (s.response = u), s);
  42187. }
  42188. return u;
  42189. }
  42190. const options_retrievalURI = (s) => {
  42191. var o, i;
  42192. const { baseDoc: u, url: _ } = s,
  42193. w = null !== (o = null != u ? u : _) && void 0 !== o ? o : '';
  42194. return 'string' ==
  42195. typeof (null === (i = globalThis.document) || void 0 === i ? void 0 : i.baseURI)
  42196. ? String(new URL(w, globalThis.document.baseURI))
  42197. : w;
  42198. },
  42199. options_httpClient = (s) => {
  42200. const { fetch: o, http: i } = s;
  42201. return o || i || http_http;
  42202. };
  42203. async function resolveGenericStrategy(s) {
  42204. const {
  42205. spec: o,
  42206. mode: i,
  42207. allowMetaPatches: u = !0,
  42208. pathDiscriminator: _,
  42209. modelPropertyMacro: w,
  42210. parameterMacro: x,
  42211. requestInterceptor: C,
  42212. responseInterceptor: j,
  42213. skipNormalization: L = !1,
  42214. useCircularStructures: B,
  42215. strategies: $
  42216. } = s,
  42217. V = options_retrievalURI(s),
  42218. U = options_httpClient(s),
  42219. z = $.find((s) => s.match(o));
  42220. return (async function doResolve(s) {
  42221. V && (iu.refs.docCache[V] = s);
  42222. iu.refs.fetchJSON = makeFetchJSON(U, { requestInterceptor: C, responseInterceptor: j });
  42223. const o = [iu.refs];
  42224. 'function' == typeof x && o.push(iu.parameters);
  42225. 'function' == typeof w && o.push(iu.properties);
  42226. 'strict' !== i && o.push(iu.allOf);
  42227. const $ = await (function mapSpec(s) {
  42228. return new SpecMap(s).dispatch();
  42229. })({
  42230. spec: s,
  42231. context: { baseDoc: V },
  42232. plugins: o,
  42233. allowMetaPatches: u,
  42234. pathDiscriminator: _,
  42235. parameterMacro: x,
  42236. modelPropertyMacro: w,
  42237. useCircularStructures: B
  42238. });
  42239. L || ($.spec = z.normalize($.spec));
  42240. return $;
  42241. })(o);
  42242. }
  42243. const replace_special_chars_with_underscore = (s) => s.replace(/\W/gi, '_');
  42244. function opId(s, o, i = '', { v2OperationIdCompatibilityMode: u } = {}) {
  42245. if (!s || 'object' != typeof s) return null;
  42246. return (s.operationId || '').replace(/\s/g, '').length
  42247. ? replace_special_chars_with_underscore(s.operationId)
  42248. : (function idFromPathMethod(s, o, { v2OperationIdCompatibilityMode: i } = {}) {
  42249. if (i) {
  42250. let i = `${o.toLowerCase()}_${s}`.replace(
  42251. /[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,
  42252. '_'
  42253. );
  42254. return (
  42255. (i = i || `${s.substring(1)}_${o}`),
  42256. i
  42257. .replace(/((_){2,})/g, '_')
  42258. .replace(/^(_)*/g, '')
  42259. .replace(/([_])*$/g, '')
  42260. );
  42261. }
  42262. return `${o.toLowerCase()}${replace_special_chars_with_underscore(s)}`;
  42263. })(o, i, { v2OperationIdCompatibilityMode: u });
  42264. }
  42265. function normalize(s) {
  42266. const { spec: o } = s,
  42267. { paths: i } = o,
  42268. u = {};
  42269. if (!i || o.$$normalized) return s;
  42270. for (const s in i) {
  42271. const _ = i[s];
  42272. if (null == _ || !['object', 'function'].includes(typeof _)) continue;
  42273. const w = _.parameters;
  42274. for (const i in _) {
  42275. const x = _[i];
  42276. if (null == x || !['object', 'function'].includes(typeof x)) continue;
  42277. const C = opId(x, s, i);
  42278. if (C) {
  42279. u[C] ? u[C].push(x) : (u[C] = [x]);
  42280. const s = u[C];
  42281. if (s.length > 1)
  42282. s.forEach((s, o) => {
  42283. (s.__originalOperationId = s.__originalOperationId || s.operationId),
  42284. (s.operationId = `${C}${o + 1}`);
  42285. });
  42286. else if (void 0 !== x.operationId) {
  42287. const o = s[0];
  42288. (o.__originalOperationId = o.__originalOperationId || x.operationId),
  42289. (o.operationId = C);
  42290. }
  42291. }
  42292. if ('parameters' !== i) {
  42293. const s = [],
  42294. i = {};
  42295. for (const u in o)
  42296. ('produces' !== u && 'consumes' !== u && 'security' !== u) ||
  42297. ((i[u] = o[u]), s.push(i));
  42298. if ((w && ((i.parameters = w), s.push(i)), s.length))
  42299. for (const o of s)
  42300. for (const s in o)
  42301. if (x[s]) {
  42302. if ('parameters' === s)
  42303. for (const i of o[s]) {
  42304. x[s].some(
  42305. (s) =>
  42306. (s.name && s.name === i.name) ||
  42307. (s.$ref && s.$ref === i.$ref) ||
  42308. (s.$$ref && s.$$ref === i.$$ref) ||
  42309. s === i
  42310. ) || x[s].push(i);
  42311. }
  42312. } else x[s] = o[s];
  42313. }
  42314. }
  42315. }
  42316. return (o.$$normalized = !0), s;
  42317. }
  42318. const cu = {
  42319. name: 'generic',
  42320. match: () => !0,
  42321. normalize(s) {
  42322. const { spec: o } = normalize({ spec: s });
  42323. return o;
  42324. },
  42325. resolve: async (s) => resolveGenericStrategy(s)
  42326. },
  42327. uu = cu;
  42328. const isOpenAPI30 = (s) => {
  42329. try {
  42330. const { openapi: o } = s;
  42331. return 'string' == typeof o && /^3\.0\.([0123])(?:-rc[012])?$/.test(o);
  42332. } catch {
  42333. return !1;
  42334. }
  42335. },
  42336. isOpenAPI31 = (s) => {
  42337. try {
  42338. const { openapi: o } = s;
  42339. return 'string' == typeof o && /^3\.1\.(?:[1-9]\d*|0)$/.test(o);
  42340. } catch {
  42341. return !1;
  42342. }
  42343. },
  42344. isOpenAPI3 = (s) => isOpenAPI30(s) || isOpenAPI31(s),
  42345. pu = {
  42346. name: 'openapi-2',
  42347. match: (s) =>
  42348. ((s) => {
  42349. try {
  42350. const { swagger: o } = s;
  42351. return '2.0' === o;
  42352. } catch {
  42353. return !1;
  42354. }
  42355. })(s),
  42356. normalize(s) {
  42357. const { spec: o } = normalize({ spec: s });
  42358. return o;
  42359. },
  42360. resolve: async (s) =>
  42361. (async function resolveOpenAPI2Strategy(s) {
  42362. return resolveGenericStrategy(s);
  42363. })(s)
  42364. },
  42365. hu = pu;
  42366. const du = {
  42367. name: 'openapi-3-0',
  42368. match: (s) => isOpenAPI30(s),
  42369. normalize(s) {
  42370. const { spec: o } = normalize({ spec: s });
  42371. return o;
  42372. },
  42373. resolve: async (s) =>
  42374. (async function resolveOpenAPI30Strategy(s) {
  42375. return resolveGenericStrategy(s);
  42376. })(s)
  42377. },
  42378. fu = du;
  42379. const mu = _curry2(function and(s, o) {
  42380. return s && o;
  42381. });
  42382. const gu = _curry2(function both(s, o) {
  42383. return _isFunction(s)
  42384. ? function _both() {
  42385. return s.apply(this, arguments) && o.apply(this, arguments);
  42386. }
  42387. : Pl(mu)(s, o);
  42388. });
  42389. const yu = ra(null);
  42390. const vu = Ml(yu);
  42391. function isOfTypeObject_typeof(s) {
  42392. return (
  42393. (isOfTypeObject_typeof =
  42394. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  42395. ? function (s) {
  42396. return typeof s;
  42397. }
  42398. : function (s) {
  42399. return s &&
  42400. 'function' == typeof Symbol &&
  42401. s.constructor === Symbol &&
  42402. s !== Symbol.prototype
  42403. ? 'symbol'
  42404. : typeof s;
  42405. }),
  42406. isOfTypeObject_typeof(s)
  42407. );
  42408. }
  42409. const bu = function isOfTypeObject(s) {
  42410. return 'object' === isOfTypeObject_typeof(s);
  42411. };
  42412. const _u = za(1, gu(vu, bu));
  42413. var Eu = pipe(ea, Vl('Object')),
  42414. wu = pipe(ma, ra(ma(Object))),
  42415. Su = Xo(gu(Wl, wu), ['constructor']),
  42416. xu = za(1, function (s) {
  42417. if (!_u(s) || !Eu(s)) return !1;
  42418. var o = Object.getPrototypeOf(s);
  42419. return !!yu(o) || Su(o);
  42420. });
  42421. const ku = xu;
  42422. var Cu = __webpack_require__(34035);
  42423. function _reduced(s) {
  42424. return s && s['@@transducer/reduced']
  42425. ? s
  42426. : { '@@transducer/value': s, '@@transducer/reduced': !0 };
  42427. }
  42428. var Ou = (function () {
  42429. function XAll(s, o) {
  42430. (this.xf = o), (this.f = s), (this.all = !0);
  42431. }
  42432. return (
  42433. (XAll.prototype['@@transducer/init'] = _xfBase_init),
  42434. (XAll.prototype['@@transducer/result'] = function (s) {
  42435. return (
  42436. this.all && (s = this.xf['@@transducer/step'](s, !0)),
  42437. this.xf['@@transducer/result'](s)
  42438. );
  42439. }),
  42440. (XAll.prototype['@@transducer/step'] = function (s, o) {
  42441. return (
  42442. this.f(o) || ((this.all = !1), (s = _reduced(this.xf['@@transducer/step'](s, !1)))),
  42443. s
  42444. );
  42445. }),
  42446. XAll
  42447. );
  42448. })();
  42449. function _xall(s) {
  42450. return function (o) {
  42451. return new Ou(s, o);
  42452. };
  42453. }
  42454. var Au = _curry2(
  42455. _dispatchable(['all'], _xall, function all(s, o) {
  42456. for (var i = 0; i < o.length; ) {
  42457. if (!s(o[i])) return !1;
  42458. i += 1;
  42459. }
  42460. return !0;
  42461. })
  42462. );
  42463. const ju = Au;
  42464. class Annotation extends Cu.Om {
  42465. constructor(s, o, i) {
  42466. super(s, o, i), (this.element = 'annotation');
  42467. }
  42468. get code() {
  42469. return this.attributes.get('code');
  42470. }
  42471. set code(s) {
  42472. this.attributes.set('code', s);
  42473. }
  42474. }
  42475. const Iu = Annotation;
  42476. class Comment extends Cu.Om {
  42477. constructor(s, o, i) {
  42478. super(s, o, i), (this.element = 'comment');
  42479. }
  42480. }
  42481. const Pu = Comment;
  42482. class ParseResult extends Cu.wE {
  42483. constructor(s, o, i) {
  42484. super(s, o, i), (this.element = 'parseResult');
  42485. }
  42486. get api() {
  42487. return this.children.filter((s) => s.classes.contains('api')).first;
  42488. }
  42489. get results() {
  42490. return this.children.filter((s) => s.classes.contains('result'));
  42491. }
  42492. get result() {
  42493. return this.results.first;
  42494. }
  42495. get annotations() {
  42496. return this.children.filter((s) => 'annotation' === s.element);
  42497. }
  42498. get warnings() {
  42499. return this.children.filter(
  42500. (s) => 'annotation' === s.element && s.classes.contains('warning')
  42501. );
  42502. }
  42503. get errors() {
  42504. return this.children.filter(
  42505. (s) => 'annotation' === s.element && s.classes.contains('error')
  42506. );
  42507. }
  42508. get isEmpty() {
  42509. return this.children.reject((s) => 'annotation' === s.element).isEmpty;
  42510. }
  42511. replaceResult(s) {
  42512. const { result: o } = this;
  42513. if (Rl(o)) return !1;
  42514. const i = this.content.findIndex((s) => s === o);
  42515. return -1 !== i && ((this.content[i] = s), !0);
  42516. }
  42517. }
  42518. const Mu = ParseResult;
  42519. class SourceMap extends Cu.wE {
  42520. constructor(s, o, i) {
  42521. super(s, o, i), (this.element = 'sourceMap');
  42522. }
  42523. get positionStart() {
  42524. return this.children.filter((s) => s.classes.contains('position')).get(0);
  42525. }
  42526. get positionEnd() {
  42527. return this.children.filter((s) => s.classes.contains('position')).get(1);
  42528. }
  42529. set position(s) {
  42530. if (void 0 === s) return;
  42531. const o = new Cu.wE([s.start.row, s.start.column, s.start.char]),
  42532. i = new Cu.wE([s.end.row, s.end.column, s.end.char]);
  42533. o.classes.push('position'), i.classes.push('position'), this.push(o).push(i);
  42534. }
  42535. }
  42536. const Tu = SourceMap,
  42537. hasMethod = (s, o) =>
  42538. 'object' == typeof o && null !== o && s in o && 'function' == typeof o[s],
  42539. hasBasicElementProps = (s) =>
  42540. 'object' == typeof s &&
  42541. null != s &&
  42542. '_storedElement' in s &&
  42543. 'string' == typeof s._storedElement &&
  42544. '_content' in s,
  42545. primitiveEq = (s, o) =>
  42546. 'object' == typeof o &&
  42547. null !== o &&
  42548. 'primitive' in o &&
  42549. 'function' == typeof o.primitive &&
  42550. o.primitive() === s,
  42551. hasClass = (s, o) =>
  42552. 'object' == typeof o &&
  42553. null !== o &&
  42554. 'classes' in o &&
  42555. (Array.isArray(o.classes) || o.classes instanceof Cu.wE) &&
  42556. o.classes.includes(s),
  42557. isElementType = (s, o) =>
  42558. 'object' == typeof o && null !== o && 'element' in o && o.element === s,
  42559. helpers = (s) =>
  42560. s({ hasMethod, hasBasicElementProps, primitiveEq, isElementType, hasClass }),
  42561. Nu = helpers(
  42562. ({ hasBasicElementProps: s, primitiveEq: o }) =>
  42563. (i) =>
  42564. i instanceof Cu.Hg || (s(i) && o(void 0, i))
  42565. ),
  42566. Ru = helpers(
  42567. ({ hasBasicElementProps: s, primitiveEq: o }) =>
  42568. (i) =>
  42569. i instanceof Cu.Om || (s(i) && o('string', i))
  42570. ),
  42571. Du = helpers(
  42572. ({ hasBasicElementProps: s, primitiveEq: o }) =>
  42573. (i) =>
  42574. i instanceof Cu.kT || (s(i) && o('number', i))
  42575. ),
  42576. Lu = helpers(
  42577. ({ hasBasicElementProps: s, primitiveEq: o }) =>
  42578. (i) =>
  42579. i instanceof Cu.Os || (s(i) && o('null', i))
  42580. ),
  42581. Bu = helpers(
  42582. ({ hasBasicElementProps: s, primitiveEq: o }) =>
  42583. (i) =>
  42584. i instanceof Cu.bd || (s(i) && o('boolean', i))
  42585. ),
  42586. Fu = helpers(
  42587. ({ hasBasicElementProps: s, primitiveEq: o, hasMethod: i }) =>
  42588. (u) =>
  42589. u instanceof Cu.Sh ||
  42590. (s(u) && o('object', u) && i('keys', u) && i('values', u) && i('items', u))
  42591. ),
  42592. qu = helpers(
  42593. ({ hasBasicElementProps: s, primitiveEq: o, hasMethod: i }) =>
  42594. (u) =>
  42595. (u instanceof Cu.wE && !(u instanceof Cu.Sh)) ||
  42596. (s(u) &&
  42597. o('array', u) &&
  42598. i('push', u) &&
  42599. i('unshift', u) &&
  42600. i('map', u) &&
  42601. i('reduce', u))
  42602. ),
  42603. $u = helpers(
  42604. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  42605. (u) =>
  42606. u instanceof Cu.Pr || (s(u) && o('member', u) && i(void 0, u))
  42607. ),
  42608. Vu = helpers(
  42609. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  42610. (u) =>
  42611. u instanceof Cu.Ft || (s(u) && o('link', u) && i(void 0, u))
  42612. ),
  42613. Uu = helpers(
  42614. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  42615. (u) =>
  42616. u instanceof Cu.sI || (s(u) && o('ref', u) && i(void 0, u))
  42617. ),
  42618. zu = helpers(
  42619. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  42620. (u) =>
  42621. u instanceof Iu || (s(u) && o('annotation', u) && i('array', u))
  42622. ),
  42623. Wu = helpers(
  42624. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  42625. (u) =>
  42626. u instanceof Pu || (s(u) && o('comment', u) && i('string', u))
  42627. ),
  42628. Ku = helpers(
  42629. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  42630. (u) =>
  42631. u instanceof Mu || (s(u) && o('parseResult', u) && i('array', u))
  42632. ),
  42633. Hu = helpers(
  42634. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  42635. (u) =>
  42636. u instanceof Tu || (s(u) && o('sourceMap', u) && i('array', u))
  42637. ),
  42638. isPrimitiveElement = (s) =>
  42639. isElementType('object', s) ||
  42640. isElementType('array', s) ||
  42641. isElementType('boolean', s) ||
  42642. isElementType('number', s) ||
  42643. isElementType('string', s) ||
  42644. isElementType('null', s) ||
  42645. isElementType('member', s),
  42646. hasElementSourceMap = (s) => Hu(s.meta.get('sourceMap')),
  42647. includesSymbols = (s, o) => {
  42648. if (0 === s.length) return !0;
  42649. const i = o.attributes.get('symbols');
  42650. return !!qu(i) && ju(_l(i.toValue()), s);
  42651. },
  42652. includesClasses = (s, o) => 0 === s.length || ju(_l(o.classes.toValue()), s);
  42653. const es_T = function () {
  42654. return !0;
  42655. };
  42656. const es_F = function () {
  42657. return !1;
  42658. },
  42659. getVisitFn = (s, o, i) => {
  42660. const u = s[o];
  42661. if (null != u) {
  42662. if (!i && 'function' == typeof u) return u;
  42663. const s = i ? u.leave : u.enter;
  42664. if ('function' == typeof s) return s;
  42665. } else {
  42666. const u = i ? s.leave : s.enter;
  42667. if (null != u) {
  42668. if ('function' == typeof u) return u;
  42669. const s = u[o];
  42670. if ('function' == typeof s) return s;
  42671. }
  42672. }
  42673. return null;
  42674. },
  42675. Ju = {},
  42676. getNodeType = (s) => (null == s ? void 0 : s.type),
  42677. isNode = (s) => 'string' == typeof getNodeType(s),
  42678. cloneNode = (s) =>
  42679. Object.create(Object.getPrototypeOf(s), Object.getOwnPropertyDescriptors(s)),
  42680. mergeAll = (
  42681. s,
  42682. {
  42683. visitFnGetter: o = getVisitFn,
  42684. nodeTypeGetter: i = getNodeType,
  42685. breakSymbol: u = Ju,
  42686. deleteNodeSymbol: _ = null,
  42687. skipVisitingNodeSymbol: w = !1,
  42688. exposeEdits: x = !1
  42689. } = {}
  42690. ) => {
  42691. const C = Symbol('skip'),
  42692. j = new Array(s.length).fill(C);
  42693. return {
  42694. enter(L, B, $, V, U, z) {
  42695. let Y = L,
  42696. Z = !1;
  42697. const ee = {
  42698. ...z,
  42699. replaceWith(s, o) {
  42700. z.replaceWith(s, o), (Y = s);
  42701. }
  42702. };
  42703. for (let L = 0; L < s.length; L += 1)
  42704. if (j[L] === C) {
  42705. const C = o(s[L], i(Y), !1);
  42706. if ('function' == typeof C) {
  42707. const o = C.call(s[L], Y, B, $, V, U, ee);
  42708. if ('function' == typeof (null == o ? void 0 : o.then))
  42709. throw new Jo('Async visitor not supported in sync mode', {
  42710. visitor: s[L],
  42711. visitFn: C
  42712. });
  42713. if (o === w) j[L] = Y;
  42714. else if (o === u) j[L] = u;
  42715. else {
  42716. if (o === _) return o;
  42717. if (void 0 !== o) {
  42718. if (!x) return o;
  42719. (Y = o), (Z = !0);
  42720. }
  42721. }
  42722. }
  42723. }
  42724. return Z ? Y : void 0;
  42725. },
  42726. leave(_, x, L, B, $, V) {
  42727. let U = _;
  42728. const z = {
  42729. ...V,
  42730. replaceWith(s, o) {
  42731. V.replaceWith(s, o), (U = s);
  42732. }
  42733. };
  42734. for (let _ = 0; _ < s.length; _ += 1)
  42735. if (j[_] === C) {
  42736. const C = o(s[_], i(U), !0);
  42737. if ('function' == typeof C) {
  42738. const o = C.call(s[_], U, x, L, B, $, z);
  42739. if ('function' == typeof (null == o ? void 0 : o.then))
  42740. throw new Jo('Async visitor not supported in sync mode', {
  42741. visitor: s[_],
  42742. visitFn: C
  42743. });
  42744. if (o === u) j[_] = u;
  42745. else if (void 0 !== o && o !== w) return o;
  42746. }
  42747. } else j[_] === U && (j[_] = C);
  42748. }
  42749. };
  42750. };
  42751. mergeAll[Symbol.for('nodejs.util.promisify.custom')] = (
  42752. s,
  42753. {
  42754. visitFnGetter: o = getVisitFn,
  42755. nodeTypeGetter: i = getNodeType,
  42756. breakSymbol: u = Ju,
  42757. deleteNodeSymbol: _ = null,
  42758. skipVisitingNodeSymbol: w = !1,
  42759. exposeEdits: x = !1
  42760. } = {}
  42761. ) => {
  42762. const C = Symbol('skip'),
  42763. j = new Array(s.length).fill(C);
  42764. return {
  42765. async enter(L, B, $, V, U, z) {
  42766. let Y = L,
  42767. Z = !1;
  42768. const ee = {
  42769. ...z,
  42770. replaceWith(s, o) {
  42771. z.replaceWith(s, o), (Y = s);
  42772. }
  42773. };
  42774. for (let L = 0; L < s.length; L += 1)
  42775. if (j[L] === C) {
  42776. const C = o(s[L], i(Y), !1);
  42777. if ('function' == typeof C) {
  42778. const o = await C.call(s[L], Y, B, $, V, U, ee);
  42779. if (o === w) j[L] = Y;
  42780. else if (o === u) j[L] = u;
  42781. else {
  42782. if (o === _) return o;
  42783. if (void 0 !== o) {
  42784. if (!x) return o;
  42785. (Y = o), (Z = !0);
  42786. }
  42787. }
  42788. }
  42789. }
  42790. return Z ? Y : void 0;
  42791. },
  42792. async leave(_, x, L, B, $, V) {
  42793. let U = _;
  42794. const z = {
  42795. ...V,
  42796. replaceWith(s, o) {
  42797. V.replaceWith(s, o), (U = s);
  42798. }
  42799. };
  42800. for (let _ = 0; _ < s.length; _ += 1)
  42801. if (j[_] === C) {
  42802. const C = o(s[_], i(U), !0);
  42803. if ('function' == typeof C) {
  42804. const o = await C.call(s[_], U, x, L, B, $, z);
  42805. if (o === u) j[_] = u;
  42806. else if (void 0 !== o && o !== w) return o;
  42807. }
  42808. } else j[_] === U && (j[_] = C);
  42809. }
  42810. };
  42811. };
  42812. const visit = (
  42813. s,
  42814. o,
  42815. {
  42816. keyMap: i = null,
  42817. state: u = {},
  42818. breakSymbol: _ = Ju,
  42819. deleteNodeSymbol: w = null,
  42820. skipVisitingNodeSymbol: x = !1,
  42821. visitFnGetter: C = getVisitFn,
  42822. nodeTypeGetter: j = getNodeType,
  42823. nodePredicate: L = isNode,
  42824. nodeCloneFn: B = cloneNode,
  42825. detectCycles: $ = !0
  42826. } = {}
  42827. ) => {
  42828. const V = i || {};
  42829. let U,
  42830. z,
  42831. Y = Array.isArray(s),
  42832. Z = [s],
  42833. ee = -1,
  42834. ie = [],
  42835. ae = s;
  42836. const le = [],
  42837. ce = [];
  42838. do {
  42839. ee += 1;
  42840. const s = ee === Z.length;
  42841. let i;
  42842. const fe = s && 0 !== ie.length;
  42843. if (s) {
  42844. if (((i = 0 === ce.length ? void 0 : le.pop()), (ae = z), (z = ce.pop()), fe))
  42845. if (Y) {
  42846. ae = ae.slice();
  42847. let s = 0;
  42848. for (const [o, i] of ie) {
  42849. const u = o - s;
  42850. i === w ? (ae.splice(u, 1), (s += 1)) : (ae[u] = i);
  42851. }
  42852. } else {
  42853. ae = B(ae);
  42854. for (const [s, o] of ie) ae[s] = o;
  42855. }
  42856. (ee = U.index), (Z = U.keys), (ie = U.edits), (Y = U.inArray), (U = U.prev);
  42857. } else if (z !== w && void 0 !== z) {
  42858. if (((i = Y ? ee : Z[ee]), (ae = z[i]), ae === w || void 0 === ae)) continue;
  42859. le.push(i);
  42860. }
  42861. let ye;
  42862. if (!Array.isArray(ae)) {
  42863. var pe;
  42864. if (!L(ae)) throw new Jo(`Invalid AST Node: ${String(ae)}`, { node: ae });
  42865. if ($ && ce.includes(ae)) {
  42866. le.pop();
  42867. continue;
  42868. }
  42869. const w = C(o, j(ae), s);
  42870. if (w) {
  42871. for (const [s, i] of Object.entries(u)) o[s] = i;
  42872. const _ = {
  42873. replaceWith(o, u) {
  42874. 'function' == typeof u ? u(o, ae, i, z, le, ce) : z && (z[i] = o),
  42875. s || (ae = o);
  42876. }
  42877. };
  42878. ye = w.call(o, ae, i, z, le, ce, _);
  42879. }
  42880. if ('function' == typeof (null === (pe = ye) || void 0 === pe ? void 0 : pe.then))
  42881. throw new Jo('Async visitor not supported in sync mode', {
  42882. visitor: o,
  42883. visitFn: w
  42884. });
  42885. if (ye === _) break;
  42886. if (ye === x) {
  42887. if (!s) {
  42888. le.pop();
  42889. continue;
  42890. }
  42891. } else if (void 0 !== ye && (ie.push([i, ye]), !s)) {
  42892. if (!L(ye)) {
  42893. le.pop();
  42894. continue;
  42895. }
  42896. ae = ye;
  42897. }
  42898. }
  42899. var de;
  42900. if ((void 0 === ye && fe && ie.push([i, ae]), !s))
  42901. (U = { inArray: Y, index: ee, keys: Z, edits: ie, prev: U }),
  42902. (Y = Array.isArray(ae)),
  42903. (Z = Y ? ae : null !== (de = V[j(ae)]) && void 0 !== de ? de : []),
  42904. (ee = -1),
  42905. (ie = []),
  42906. z !== w && void 0 !== z && ce.push(z),
  42907. (z = ae);
  42908. } while (void 0 !== U);
  42909. return 0 !== ie.length ? ie[ie.length - 1][1] : s;
  42910. };
  42911. visit[Symbol.for('nodejs.util.promisify.custom')] = async (
  42912. s,
  42913. o,
  42914. {
  42915. keyMap: i = null,
  42916. state: u = {},
  42917. breakSymbol: _ = Ju,
  42918. deleteNodeSymbol: w = null,
  42919. skipVisitingNodeSymbol: x = !1,
  42920. visitFnGetter: C = getVisitFn,
  42921. nodeTypeGetter: j = getNodeType,
  42922. nodePredicate: L = isNode,
  42923. nodeCloneFn: B = cloneNode,
  42924. detectCycles: $ = !0
  42925. } = {}
  42926. ) => {
  42927. const V = i || {};
  42928. let U,
  42929. z,
  42930. Y = Array.isArray(s),
  42931. Z = [s],
  42932. ee = -1,
  42933. ie = [],
  42934. ae = s;
  42935. const le = [],
  42936. ce = [];
  42937. do {
  42938. ee += 1;
  42939. const s = ee === Z.length;
  42940. let i;
  42941. const de = s && 0 !== ie.length;
  42942. if (s) {
  42943. if (((i = 0 === ce.length ? void 0 : le.pop()), (ae = z), (z = ce.pop()), de))
  42944. if (Y) {
  42945. ae = ae.slice();
  42946. let s = 0;
  42947. for (const [o, i] of ie) {
  42948. const u = o - s;
  42949. i === w ? (ae.splice(u, 1), (s += 1)) : (ae[u] = i);
  42950. }
  42951. } else {
  42952. ae = B(ae);
  42953. for (const [s, o] of ie) ae[s] = o;
  42954. }
  42955. (ee = U.index), (Z = U.keys), (ie = U.edits), (Y = U.inArray), (U = U.prev);
  42956. } else if (z !== w && void 0 !== z) {
  42957. if (((i = Y ? ee : Z[ee]), (ae = z[i]), ae === w || void 0 === ae)) continue;
  42958. le.push(i);
  42959. }
  42960. let fe;
  42961. if (!Array.isArray(ae)) {
  42962. if (!L(ae)) throw new Jo(`Invalid AST Node: ${String(ae)}`, { node: ae });
  42963. if ($ && ce.includes(ae)) {
  42964. le.pop();
  42965. continue;
  42966. }
  42967. const w = C(o, j(ae), s);
  42968. if (w) {
  42969. for (const [s, i] of Object.entries(u)) o[s] = i;
  42970. const _ = {
  42971. replaceWith(o, u) {
  42972. 'function' == typeof u ? u(o, ae, i, z, le, ce) : z && (z[i] = o),
  42973. s || (ae = o);
  42974. }
  42975. };
  42976. fe = await w.call(o, ae, i, z, le, ce, _);
  42977. }
  42978. if (fe === _) break;
  42979. if (fe === x) {
  42980. if (!s) {
  42981. le.pop();
  42982. continue;
  42983. }
  42984. } else if (void 0 !== fe && (ie.push([i, fe]), !s)) {
  42985. if (!L(fe)) {
  42986. le.pop();
  42987. continue;
  42988. }
  42989. ae = fe;
  42990. }
  42991. }
  42992. var pe;
  42993. if ((void 0 === fe && de && ie.push([i, ae]), !s))
  42994. (U = { inArray: Y, index: ee, keys: Z, edits: ie, prev: U }),
  42995. (Y = Array.isArray(ae)),
  42996. (Z = Y ? ae : null !== (pe = V[j(ae)]) && void 0 !== pe ? pe : []),
  42997. (ee = -1),
  42998. (ie = []),
  42999. z !== w && void 0 !== z && ce.push(z),
  43000. (z = ae);
  43001. } while (void 0 !== U);
  43002. return 0 !== ie.length ? ie[ie.length - 1][1] : s;
  43003. };
  43004. const Gu = class CloneError extends Jo {
  43005. value;
  43006. constructor(s, o) {
  43007. super(s, o), void 0 !== o && (this.value = o.value);
  43008. }
  43009. };
  43010. const Yu = class DeepCloneError extends Gu {};
  43011. const Xu = class ShallowCloneError extends Gu {},
  43012. cloneDeep = (s, o = {}) => {
  43013. const { visited: i = new WeakMap() } = o,
  43014. u = { ...o, visited: i };
  43015. if (i.has(s)) return i.get(s);
  43016. if (s instanceof Cu.KeyValuePair) {
  43017. const { key: o, value: _ } = s,
  43018. w = Nu(o) ? cloneDeep(o, u) : o,
  43019. x = Nu(_) ? cloneDeep(_, u) : _,
  43020. C = new Cu.KeyValuePair(w, x);
  43021. return i.set(s, C), C;
  43022. }
  43023. if (s instanceof Cu.ot) {
  43024. const mapper = (s) => cloneDeep(s, u),
  43025. o = [...s].map(mapper),
  43026. _ = new Cu.ot(o);
  43027. return i.set(s, _), _;
  43028. }
  43029. if (s instanceof Cu.G6) {
  43030. const mapper = (s) => cloneDeep(s, u),
  43031. o = [...s].map(mapper),
  43032. _ = new Cu.G6(o);
  43033. return i.set(s, _), _;
  43034. }
  43035. if (Nu(s)) {
  43036. const o = cloneShallow(s);
  43037. if ((i.set(s, o), s.content))
  43038. if (Nu(s.content)) o.content = cloneDeep(s.content, u);
  43039. else if (s.content instanceof Cu.KeyValuePair) o.content = cloneDeep(s.content, u);
  43040. else if (Array.isArray(s.content)) {
  43041. const mapper = (s) => cloneDeep(s, u);
  43042. o.content = s.content.map(mapper);
  43043. } else o.content = s.content;
  43044. else o.content = s.content;
  43045. return o;
  43046. }
  43047. throw new Yu("Value provided to cloneDeep function couldn't be cloned", { value: s });
  43048. };
  43049. cloneDeep.safe = (s) => {
  43050. try {
  43051. return cloneDeep(s);
  43052. } catch {
  43053. return s;
  43054. }
  43055. };
  43056. const cloneShallowKeyValuePair = (s) => {
  43057. const { key: o, value: i } = s;
  43058. return new Cu.KeyValuePair(o, i);
  43059. },
  43060. cloneShallowElement = (s) => {
  43061. const o = new s.constructor();
  43062. if (
  43063. ((o.element = s.element),
  43064. s.meta.length > 0 && (o._meta = cloneDeep(s.meta)),
  43065. s.attributes.length > 0 && (o._attributes = cloneDeep(s.attributes)),
  43066. Nu(s.content))
  43067. ) {
  43068. const i = s.content;
  43069. o.content = cloneShallowElement(i);
  43070. } else
  43071. Array.isArray(s.content)
  43072. ? (o.content = [...s.content])
  43073. : s.content instanceof Cu.KeyValuePair
  43074. ? (o.content = cloneShallowKeyValuePair(s.content))
  43075. : (o.content = s.content);
  43076. return o;
  43077. },
  43078. cloneShallow = (s) => {
  43079. if (s instanceof Cu.KeyValuePair) return cloneShallowKeyValuePair(s);
  43080. if (s instanceof Cu.ot)
  43081. return ((s) => {
  43082. const o = [...s];
  43083. return new Cu.ot(o);
  43084. })(s);
  43085. if (s instanceof Cu.G6)
  43086. return ((s) => {
  43087. const o = [...s];
  43088. return new Cu.G6(o);
  43089. })(s);
  43090. if (Nu(s)) return cloneShallowElement(s);
  43091. throw new Xu("Value provided to cloneShallow function couldn't be cloned", {
  43092. value: s
  43093. });
  43094. };
  43095. cloneShallow.safe = (s) => {
  43096. try {
  43097. return cloneShallow(s);
  43098. } catch {
  43099. return s;
  43100. }
  43101. };
  43102. const visitor_getNodeType = (s) =>
  43103. Fu(s)
  43104. ? 'ObjectElement'
  43105. : qu(s)
  43106. ? 'ArrayElement'
  43107. : $u(s)
  43108. ? 'MemberElement'
  43109. : Ru(s)
  43110. ? 'StringElement'
  43111. : Bu(s)
  43112. ? 'BooleanElement'
  43113. : Du(s)
  43114. ? 'NumberElement'
  43115. : Lu(s)
  43116. ? 'NullElement'
  43117. : Vu(s)
  43118. ? 'LinkElement'
  43119. : Uu(s)
  43120. ? 'RefElement'
  43121. : void 0,
  43122. visitor_cloneNode = (s) => (Nu(s) ? cloneShallow(s) : cloneNode(s)),
  43123. Zu = pipe(visitor_getNodeType, Yl),
  43124. Qu = {
  43125. ObjectElement: ['content'],
  43126. ArrayElement: ['content'],
  43127. MemberElement: ['key', 'value'],
  43128. StringElement: [],
  43129. BooleanElement: [],
  43130. NumberElement: [],
  43131. NullElement: [],
  43132. RefElement: [],
  43133. LinkElement: [],
  43134. Annotation: [],
  43135. Comment: [],
  43136. ParseResultElement: ['content'],
  43137. SourceMap: ['content']
  43138. };
  43139. class PredicateVisitor {
  43140. result;
  43141. predicate;
  43142. returnOnTrue;
  43143. returnOnFalse;
  43144. constructor({ predicate: s = es_F, returnOnTrue: o, returnOnFalse: i } = {}) {
  43145. (this.result = []),
  43146. (this.predicate = s),
  43147. (this.returnOnTrue = o),
  43148. (this.returnOnFalse = i);
  43149. }
  43150. enter(s) {
  43151. return this.predicate(s)
  43152. ? (this.result.push(s), this.returnOnTrue)
  43153. : this.returnOnFalse;
  43154. }
  43155. }
  43156. const visitor_visit = (s, o, { keyMap: i = Qu, ...u } = {}) =>
  43157. visit(s, o, {
  43158. keyMap: i,
  43159. nodeTypeGetter: visitor_getNodeType,
  43160. nodePredicate: Zu,
  43161. nodeCloneFn: visitor_cloneNode,
  43162. ...u
  43163. });
  43164. visitor_visit[Symbol.for('nodejs.util.promisify.custom')] = async (
  43165. s,
  43166. o,
  43167. { keyMap: i = Qu, ...u } = {}
  43168. ) =>
  43169. visit[Symbol.for('nodejs.util.promisify.custom')](s, o, {
  43170. keyMap: i,
  43171. nodeTypeGetter: visitor_getNodeType,
  43172. nodePredicate: Zu,
  43173. nodeCloneFn: visitor_cloneNode,
  43174. ...u
  43175. });
  43176. const nodeTypeGetter = (s) =>
  43177. 'string' == typeof (null == s ? void 0 : s.type) ? s.type : visitor_getNodeType(s),
  43178. ep = { EphemeralObject: ['content'], EphemeralArray: ['content'], ...Qu },
  43179. value_visitor_visit = (s, o, { keyMap: i = ep, ...u } = {}) =>
  43180. visitor_visit(s, o, {
  43181. keyMap: i,
  43182. nodeTypeGetter,
  43183. nodePredicate: es_T,
  43184. detectCycles: !1,
  43185. deleteNodeSymbol: Symbol.for('delete-node'),
  43186. skipVisitingNodeSymbol: Symbol.for('skip-visiting-node'),
  43187. ...u
  43188. });
  43189. value_visitor_visit[Symbol.for('nodejs.util.promisify.custom')] = async (
  43190. s,
  43191. { keyMap: o = ep, ...i } = {}
  43192. ) =>
  43193. visitor_visit[Symbol.for('nodejs.util.promisify.custom')](s, visitor, {
  43194. keyMap: o,
  43195. nodeTypeGetter,
  43196. nodePredicate: es_T,
  43197. detectCycles: !1,
  43198. deleteNodeSymbol: Symbol.for('delete-node'),
  43199. skipVisitingNodeSymbol: Symbol.for('skip-visiting-node'),
  43200. ...i
  43201. });
  43202. const tp = class EphemeralArray {
  43203. type = 'EphemeralArray';
  43204. content = [];
  43205. reference = void 0;
  43206. constructor(s) {
  43207. (this.content = s), (this.reference = []);
  43208. }
  43209. toReference() {
  43210. return this.reference;
  43211. }
  43212. toArray() {
  43213. return this.reference.push(...this.content), this.reference;
  43214. }
  43215. };
  43216. const rp = class EphemeralObject {
  43217. type = 'EphemeralObject';
  43218. content = [];
  43219. reference = void 0;
  43220. constructor(s) {
  43221. (this.content = s), (this.reference = {});
  43222. }
  43223. toReference() {
  43224. return this.reference;
  43225. }
  43226. toObject() {
  43227. return Object.assign(this.reference, Object.fromEntries(this.content));
  43228. }
  43229. };
  43230. class Visitor {
  43231. ObjectElement = {
  43232. enter: (s) => {
  43233. if (this.references.has(s)) return this.references.get(s).toReference();
  43234. const o = new rp(s.content);
  43235. return this.references.set(s, o), o;
  43236. }
  43237. };
  43238. EphemeralObject = { leave: (s) => s.toObject() };
  43239. MemberElement = { enter: (s) => [s.key, s.value] };
  43240. ArrayElement = {
  43241. enter: (s) => {
  43242. if (this.references.has(s)) return this.references.get(s).toReference();
  43243. const o = new tp(s.content);
  43244. return this.references.set(s, o), o;
  43245. }
  43246. };
  43247. EphemeralArray = { leave: (s) => s.toArray() };
  43248. references = new WeakMap();
  43249. BooleanElement(s) {
  43250. return s.toValue();
  43251. }
  43252. NumberElement(s) {
  43253. return s.toValue();
  43254. }
  43255. StringElement(s) {
  43256. return s.toValue();
  43257. }
  43258. NullElement() {
  43259. return null;
  43260. }
  43261. RefElement(s, ...o) {
  43262. var i;
  43263. const u = o[3];
  43264. return 'EphemeralObject' ===
  43265. (null === (i = u[u.length - 1]) || void 0 === i ? void 0 : i.type)
  43266. ? Symbol.for('delete-node')
  43267. : String(s.toValue());
  43268. }
  43269. LinkElement(s) {
  43270. return Ru(s.href) ? s.href.toValue() : '';
  43271. }
  43272. }
  43273. const serializers_value = (s) =>
  43274. Nu(s)
  43275. ? Ru(s) || Du(s) || Bu(s) || Lu(s)
  43276. ? s.toValue()
  43277. : value_visitor_visit(s, new Visitor())
  43278. : s;
  43279. var np = _curry3(function mergeWithKey(s, o, i) {
  43280. var u,
  43281. _ = {};
  43282. for (u in ((i = i || {}), (o = o || {})))
  43283. _has(u, o) && (_[u] = _has(u, i) ? s(u, o[u], i[u]) : o[u]);
  43284. for (u in i) _has(u, i) && !_has(u, _) && (_[u] = i[u]);
  43285. return _;
  43286. });
  43287. const sp = np;
  43288. var op = _curry3(function mergeDeepWithKey(s, o, i) {
  43289. return sp(
  43290. function (o, i, u) {
  43291. return _isObject(i) && _isObject(u) ? mergeDeepWithKey(s, i, u) : s(o, i, u);
  43292. },
  43293. o,
  43294. i
  43295. );
  43296. });
  43297. const ip = op;
  43298. const lp = _curry2(function mergeDeepRight(s, o) {
  43299. return ip(
  43300. function (s, o, i) {
  43301. return i;
  43302. },
  43303. s,
  43304. o
  43305. );
  43306. });
  43307. const cp = _curry2(_path);
  43308. const up = ja(0, -1);
  43309. var pp = _curry2(function apply(s, o) {
  43310. return s.apply(this, o);
  43311. });
  43312. const hp = pp;
  43313. const dp = Ml(Wl);
  43314. var fp = _curry1(function empty(s) {
  43315. return null != s && 'function' == typeof s['fantasy-land/empty']
  43316. ? s['fantasy-land/empty']()
  43317. : null != s &&
  43318. null != s.constructor &&
  43319. 'function' == typeof s.constructor['fantasy-land/empty']
  43320. ? s.constructor['fantasy-land/empty']()
  43321. : null != s && 'function' == typeof s.empty
  43322. ? s.empty()
  43323. : null != s && null != s.constructor && 'function' == typeof s.constructor.empty
  43324. ? s.constructor.empty()
  43325. : aa(s)
  43326. ? []
  43327. : _isString(s)
  43328. ? ''
  43329. : _isObject(s)
  43330. ? {}
  43331. : _i(s)
  43332. ? (function () {
  43333. return arguments;
  43334. })()
  43335. : (function _isTypedArray(s) {
  43336. var o = Object.prototype.toString.call(s);
  43337. return (
  43338. '[object Uint8ClampedArray]' === o ||
  43339. '[object Int8Array]' === o ||
  43340. '[object Uint8Array]' === o ||
  43341. '[object Int16Array]' === o ||
  43342. '[object Uint16Array]' === o ||
  43343. '[object Int32Array]' === o ||
  43344. '[object Uint32Array]' === o ||
  43345. '[object Float32Array]' === o ||
  43346. '[object Float64Array]' === o ||
  43347. '[object BigInt64Array]' === o ||
  43348. '[object BigUint64Array]' === o
  43349. );
  43350. })(s)
  43351. ? s.constructor.from('')
  43352. : void 0;
  43353. });
  43354. const mp = fp;
  43355. const gp = _curry1(function isEmpty(s) {
  43356. return null != s && ra(s, mp(s));
  43357. });
  43358. const yp = za(1, Wl(Array.isArray) ? Array.isArray : pipe(ea, Vl('Array')));
  43359. const vp = gu(yp, gp);
  43360. var bp = za(3, function (s, o, i) {
  43361. var u = cp(s, i),
  43362. _ = cp(up(s), i);
  43363. if (!dp(u) && !vp(s)) {
  43364. var w = Ea(u, _);
  43365. return hp(w, o);
  43366. }
  43367. });
  43368. const _p = bp;
  43369. class Namespace extends Cu.g$ {
  43370. constructor() {
  43371. super(),
  43372. this.register('annotation', Iu),
  43373. this.register('comment', Pu),
  43374. this.register('parseResult', Mu),
  43375. this.register('sourceMap', Tu);
  43376. }
  43377. }
  43378. const Ep = new Namespace(),
  43379. createNamespace = (s) => {
  43380. const o = new Namespace();
  43381. return ku(s) && o.use(s), o;
  43382. },
  43383. wp = Ep,
  43384. toolbox = () => ({ predicates: { ...le }, namespace: wp }),
  43385. Sp = {
  43386. toolboxCreator: toolbox,
  43387. visitorOptions: { nodeTypeGetter: visitor_getNodeType, exposeEdits: !0 }
  43388. },
  43389. dispatchPluginsSync = (s, o, i = {}) => {
  43390. if (0 === o.length) return s;
  43391. const u = lp(Sp, i),
  43392. { toolboxCreator: _, visitorOptions: w } = u,
  43393. x = _(),
  43394. C = o.map((s) => s(x)),
  43395. j = mergeAll(C.map(La({}, 'visitor')), { ...w });
  43396. C.forEach(_p(['pre'], []));
  43397. const L = visitor_visit(s, j, w);
  43398. return C.forEach(_p(['post'], [])), L;
  43399. };
  43400. dispatchPluginsSync[Symbol.for('nodejs.util.promisify.custom')] = async (s, o, i = {}) => {
  43401. if (0 === o.length) return s;
  43402. const u = lp(Sp, i),
  43403. { toolboxCreator: _, visitorOptions: w } = u,
  43404. x = _(),
  43405. C = o.map((s) => s(x)),
  43406. j = mergeAll[Symbol.for('nodejs.util.promisify.custom')],
  43407. L = visitor_visit[Symbol.for('nodejs.util.promisify.custom')],
  43408. B = j(C.map(La({}, 'visitor')), { ...w });
  43409. await Promise.allSettled(C.map(_p(['pre'], [])));
  43410. const $ = await L(s, B, w);
  43411. return await Promise.allSettled(C.map(_p(['post'], []))), $;
  43412. };
  43413. const refract = (s, { Type: o, plugins: i = [] }) => {
  43414. const u = new o(s);
  43415. return (
  43416. Nu(s) &&
  43417. (s.meta.length > 0 && (u.meta = cloneDeep(s.meta)),
  43418. s.attributes.length > 0 && (u.attributes = cloneDeep(s.attributes))),
  43419. dispatchPluginsSync(u, i, {
  43420. toolboxCreator: toolbox,
  43421. visitorOptions: { nodeTypeGetter: visitor_getNodeType }
  43422. })
  43423. );
  43424. },
  43425. createRefractor =
  43426. (s) =>
  43427. (o, i = {}) =>
  43428. refract(o, { ...i, Type: s });
  43429. (Cu.Sh.refract = createRefractor(Cu.Sh)),
  43430. (Cu.wE.refract = createRefractor(Cu.wE)),
  43431. (Cu.Om.refract = createRefractor(Cu.Om)),
  43432. (Cu.bd.refract = createRefractor(Cu.bd)),
  43433. (Cu.Os.refract = createRefractor(Cu.Os)),
  43434. (Cu.kT.refract = createRefractor(Cu.kT)),
  43435. (Cu.Ft.refract = createRefractor(Cu.Ft)),
  43436. (Cu.sI.refract = createRefractor(Cu.sI)),
  43437. (Iu.refract = createRefractor(Iu)),
  43438. (Pu.refract = createRefractor(Pu)),
  43439. (Mu.refract = createRefractor(Mu)),
  43440. (Tu.refract = createRefractor(Tu));
  43441. const computeEdges = (s, o = new WeakMap()) => (
  43442. $u(s)
  43443. ? (o.set(s.key, s), computeEdges(s.key, o), o.set(s.value, s), computeEdges(s.value, o))
  43444. : s.children.forEach((i) => {
  43445. o.set(i, s), computeEdges(i, o);
  43446. }),
  43447. o
  43448. );
  43449. const xp = class Transcluder_Transcluder {
  43450. element;
  43451. edges;
  43452. constructor({ element: s }) {
  43453. this.element = s;
  43454. }
  43455. transclude(s, o) {
  43456. var i;
  43457. if (s === this.element) return o;
  43458. if (s === o) return this.element;
  43459. this.edges =
  43460. null !== (i = this.edges) && void 0 !== i ? i : computeEdges(this.element);
  43461. const u = this.edges.get(s);
  43462. return Rl(u)
  43463. ? void 0
  43464. : (Fu(u)
  43465. ? ((s, o, i) => {
  43466. const u = i.get(s);
  43467. Fu(u) &&
  43468. (u.content = u.map((_, w, x) =>
  43469. x === s ? (i.delete(s), i.set(o, u), o) : x
  43470. ));
  43471. })(s, o, this.edges)
  43472. : qu(u)
  43473. ? ((s, o, i) => {
  43474. const u = i.get(s);
  43475. qu(u) &&
  43476. (u.content = u.map((_) =>
  43477. _ === s ? (i.delete(s), i.set(o, u), o) : _
  43478. ));
  43479. })(s, o, this.edges)
  43480. : $u(u) &&
  43481. ((s, o, i) => {
  43482. const u = i.get(s);
  43483. $u(u) &&
  43484. (u.key === s && ((u.key = o), i.delete(s), i.set(o, u)),
  43485. u.value === s && ((u.value = o), i.delete(s), i.set(o, u)));
  43486. })(s, o, this.edges),
  43487. this.element);
  43488. }
  43489. },
  43490. kp = pipe(Hl(/~/g, '~0'), Hl(/\//g, '~1'), encodeURIComponent);
  43491. const Cp = class JsonPointerError extends Jo {};
  43492. const Op = class CompilationJsonPointerError extends Cp {
  43493. tokens;
  43494. constructor(s, o) {
  43495. super(s, o), void 0 !== o && (this.tokens = [...o.tokens]);
  43496. }
  43497. },
  43498. es_compile = (s) => {
  43499. try {
  43500. return 0 === s.length ? '' : `/${s.map(kp).join('/')}`;
  43501. } catch (o) {
  43502. throw new Op('JSON Pointer compilation of tokens encountered an error.', {
  43503. tokens: s,
  43504. cause: o
  43505. });
  43506. }
  43507. };
  43508. var Ap = _curry2(function converge(s, o) {
  43509. return za(Ca(Ll, 0, Fl('length', o)), function () {
  43510. var i = arguments,
  43511. u = this;
  43512. return s.apply(
  43513. u,
  43514. _map(function (s) {
  43515. return s.apply(u, i);
  43516. }, o)
  43517. );
  43518. });
  43519. });
  43520. const jp = Ap;
  43521. function _identity(s) {
  43522. return s;
  43523. }
  43524. const Ip = _curry1(_identity);
  43525. var Pp = gu(za(1, pipe(ea, Vl('Number'))), isFinite);
  43526. var Mp = za(1, Pp);
  43527. var Tp = gu(
  43528. Wl(Number.isFinite) ? za(1, Ea(Number.isFinite, Number)) : Mp,
  43529. jp(ra, [Math.floor, Ip])
  43530. );
  43531. var Np = za(1, Tp);
  43532. const Rp = Wl(Number.isInteger) ? za(1, Ea(Number.isInteger, Number)) : Np;
  43533. var Dp = (function () {
  43534. function XTake(s, o) {
  43535. (this.xf = o), (this.n = s), (this.i = 0);
  43536. }
  43537. return (
  43538. (XTake.prototype['@@transducer/init'] = _xfBase_init),
  43539. (XTake.prototype['@@transducer/result'] = _xfBase_result),
  43540. (XTake.prototype['@@transducer/step'] = function (s, o) {
  43541. this.i += 1;
  43542. var i = 0 === this.n ? s : this.xf['@@transducer/step'](s, o);
  43543. return this.n >= 0 && this.i >= this.n ? _reduced(i) : i;
  43544. }),
  43545. XTake
  43546. );
  43547. })();
  43548. function _xtake(s) {
  43549. return function (o) {
  43550. return new Dp(s, o);
  43551. };
  43552. }
  43553. const Lp = _curry2(
  43554. _dispatchable(['take'], _xtake, function take(s, o) {
  43555. return ja(0, s < 0 ? 1 / 0 : s, o);
  43556. })
  43557. );
  43558. var Bp = _curry2(function (s, o) {
  43559. return ra(Lp(s.length, o), s);
  43560. });
  43561. const Fp = Bp;
  43562. const qp = ra('');
  43563. var $p = (function () {
  43564. function XDropWhile(s, o) {
  43565. (this.xf = o), (this.f = s);
  43566. }
  43567. return (
  43568. (XDropWhile.prototype['@@transducer/init'] = _xfBase_init),
  43569. (XDropWhile.prototype['@@transducer/result'] = _xfBase_result),
  43570. (XDropWhile.prototype['@@transducer/step'] = function (s, o) {
  43571. if (this.f) {
  43572. if (this.f(o)) return s;
  43573. this.f = null;
  43574. }
  43575. return this.xf['@@transducer/step'](s, o);
  43576. }),
  43577. XDropWhile
  43578. );
  43579. })();
  43580. function _xdropWhile(s) {
  43581. return function (o) {
  43582. return new $p(s, o);
  43583. };
  43584. }
  43585. const Vp = _curry2(
  43586. _dispatchable(['dropWhile'], _xdropWhile, function dropWhile(s, o) {
  43587. for (var i = 0, u = o.length; i < u && s(o[i]); ) i += 1;
  43588. return ja(i, 1 / 0, o);
  43589. })
  43590. );
  43591. const Up = Ja(function (s, o) {
  43592. return pipe(tl(''), Vp(_l(s)), yl(''))(o);
  43593. }),
  43594. zp = pipe(Hl(/~1/g, '/'), Hl(/~0/g, '~'), (s) => {
  43595. try {
  43596. return decodeURIComponent(s);
  43597. } catch {
  43598. return s;
  43599. }
  43600. });
  43601. const Wp = class InvalidJsonPointerError extends Cp {
  43602. pointer;
  43603. constructor(s, o) {
  43604. super(s, o), void 0 !== o && (this.pointer = o.pointer);
  43605. }
  43606. },
  43607. uriToPointer = (s) => {
  43608. const o = ((s) => {
  43609. const o = s.indexOf('#');
  43610. return -1 !== o ? s.substring(o) : '#';
  43611. })(s);
  43612. return Up('#', o);
  43613. },
  43614. es_parse = (s) => {
  43615. if (qp(s)) return [];
  43616. if (!Fp('/', s))
  43617. throw new Wp(`Invalid JSON Pointer "${s}". JSON Pointers must begin with "/"`, {
  43618. pointer: s
  43619. });
  43620. try {
  43621. const o = pipe(tl('/'), kl(zp))(s);
  43622. return Ia(o);
  43623. } catch (o) {
  43624. throw new Wp(`JSON Pointer parsing of "${s}" encountered an error.`, {
  43625. pointer: s,
  43626. cause: o
  43627. });
  43628. }
  43629. };
  43630. const Kp = class EvaluationJsonPointerError extends Cp {
  43631. pointer;
  43632. tokens;
  43633. failedToken;
  43634. failedTokenPosition;
  43635. element;
  43636. constructor(s, o) {
  43637. super(s, o),
  43638. void 0 !== o &&
  43639. ((this.pointer = o.pointer),
  43640. Array.isArray(o.tokens) && (this.tokens = [...o.tokens]),
  43641. (this.failedToken = o.failedToken),
  43642. (this.failedTokenPosition = o.failedTokenPosition),
  43643. (this.element = o.element));
  43644. }
  43645. },
  43646. es_evaluate = (s, o) => {
  43647. let i;
  43648. try {
  43649. i = es_parse(s);
  43650. } catch (i) {
  43651. throw new Kp(`JSON Pointer evaluation failed while parsing the pointer "${s}".`, {
  43652. pointer: s,
  43653. element: cloneDeep(o),
  43654. cause: i
  43655. });
  43656. }
  43657. return i.reduce((o, u, _) => {
  43658. if (Fu(o)) {
  43659. if (!o.hasKey(u))
  43660. throw new Kp(
  43661. `JSON Pointer evaluation failed while evaluating token "${u}" against an ObjectElement`,
  43662. {
  43663. pointer: s,
  43664. tokens: i,
  43665. failedToken: u,
  43666. failedTokenPosition: _,
  43667. element: cloneDeep(o)
  43668. }
  43669. );
  43670. return o.get(u);
  43671. }
  43672. if (qu(o)) {
  43673. if (!(u in o.content) || !Rp(Number(u)))
  43674. throw new Kp(
  43675. `JSON Pointer evaluation failed while evaluating token "${u}" against an ArrayElement`,
  43676. {
  43677. pointer: s,
  43678. tokens: i,
  43679. failedToken: u,
  43680. failedTokenPosition: _,
  43681. element: cloneDeep(o)
  43682. }
  43683. );
  43684. return o.get(Number(u));
  43685. }
  43686. throw new Kp(
  43687. `JSON Pointer evaluation failed while evaluating token "${u}" against an unexpected Element`,
  43688. {
  43689. pointer: s,
  43690. tokens: i,
  43691. failedToken: u,
  43692. failedTokenPosition: _,
  43693. element: cloneDeep(o)
  43694. }
  43695. );
  43696. }, o);
  43697. };
  43698. class Callback extends Cu.Sh {
  43699. constructor(s, o, i) {
  43700. super(s, o, i), (this.element = 'callback');
  43701. }
  43702. }
  43703. const Hp = Callback;
  43704. class Components extends Cu.Sh {
  43705. constructor(s, o, i) {
  43706. super(s, o, i), (this.element = 'components');
  43707. }
  43708. get schemas() {
  43709. return this.get('schemas');
  43710. }
  43711. set schemas(s) {
  43712. this.set('schemas', s);
  43713. }
  43714. get responses() {
  43715. return this.get('responses');
  43716. }
  43717. set responses(s) {
  43718. this.set('responses', s);
  43719. }
  43720. get parameters() {
  43721. return this.get('parameters');
  43722. }
  43723. set parameters(s) {
  43724. this.set('parameters', s);
  43725. }
  43726. get examples() {
  43727. return this.get('examples');
  43728. }
  43729. set examples(s) {
  43730. this.set('examples', s);
  43731. }
  43732. get requestBodies() {
  43733. return this.get('requestBodies');
  43734. }
  43735. set requestBodies(s) {
  43736. this.set('requestBodies', s);
  43737. }
  43738. get headers() {
  43739. return this.get('headers');
  43740. }
  43741. set headers(s) {
  43742. this.set('headers', s);
  43743. }
  43744. get securitySchemes() {
  43745. return this.get('securitySchemes');
  43746. }
  43747. set securitySchemes(s) {
  43748. this.set('securitySchemes', s);
  43749. }
  43750. get links() {
  43751. return this.get('links');
  43752. }
  43753. set links(s) {
  43754. this.set('links', s);
  43755. }
  43756. get callbacks() {
  43757. return this.get('callbacks');
  43758. }
  43759. set callbacks(s) {
  43760. this.set('callbacks', s);
  43761. }
  43762. }
  43763. const Jp = Components;
  43764. class Contact extends Cu.Sh {
  43765. constructor(s, o, i) {
  43766. super(s, o, i), (this.element = 'contact');
  43767. }
  43768. get name() {
  43769. return this.get('name');
  43770. }
  43771. set name(s) {
  43772. this.set('name', s);
  43773. }
  43774. get url() {
  43775. return this.get('url');
  43776. }
  43777. set url(s) {
  43778. this.set('url', s);
  43779. }
  43780. get email() {
  43781. return this.get('email');
  43782. }
  43783. set email(s) {
  43784. this.set('email', s);
  43785. }
  43786. }
  43787. const Gp = Contact;
  43788. class Discriminator extends Cu.Sh {
  43789. constructor(s, o, i) {
  43790. super(s, o, i), (this.element = 'discriminator');
  43791. }
  43792. get propertyName() {
  43793. return this.get('propertyName');
  43794. }
  43795. set propertyName(s) {
  43796. this.set('propertyName', s);
  43797. }
  43798. get mapping() {
  43799. return this.get('mapping');
  43800. }
  43801. set mapping(s) {
  43802. this.set('mapping', s);
  43803. }
  43804. }
  43805. const Yp = Discriminator;
  43806. class Encoding extends Cu.Sh {
  43807. constructor(s, o, i) {
  43808. super(s, o, i), (this.element = 'encoding');
  43809. }
  43810. get contentType() {
  43811. return this.get('contentType');
  43812. }
  43813. set contentType(s) {
  43814. this.set('contentType', s);
  43815. }
  43816. get headers() {
  43817. return this.get('headers');
  43818. }
  43819. set headers(s) {
  43820. this.set('headers', s);
  43821. }
  43822. get style() {
  43823. return this.get('style');
  43824. }
  43825. set style(s) {
  43826. this.set('style', s);
  43827. }
  43828. get explode() {
  43829. return this.get('explode');
  43830. }
  43831. set explode(s) {
  43832. this.set('explode', s);
  43833. }
  43834. get allowedReserved() {
  43835. return this.get('allowedReserved');
  43836. }
  43837. set allowedReserved(s) {
  43838. this.set('allowedReserved', s);
  43839. }
  43840. }
  43841. const Xp = Encoding;
  43842. class Example extends Cu.Sh {
  43843. constructor(s, o, i) {
  43844. super(s, o, i), (this.element = 'example');
  43845. }
  43846. get summary() {
  43847. return this.get('summary');
  43848. }
  43849. set summary(s) {
  43850. this.set('summary', s);
  43851. }
  43852. get description() {
  43853. return this.get('description');
  43854. }
  43855. set description(s) {
  43856. this.set('description', s);
  43857. }
  43858. get value() {
  43859. return this.get('value');
  43860. }
  43861. set value(s) {
  43862. this.set('value', s);
  43863. }
  43864. get externalValue() {
  43865. return this.get('externalValue');
  43866. }
  43867. set externalValue(s) {
  43868. this.set('externalValue', s);
  43869. }
  43870. }
  43871. const Zp = Example;
  43872. class ExternalDocumentation extends Cu.Sh {
  43873. constructor(s, o, i) {
  43874. super(s, o, i), (this.element = 'externalDocumentation');
  43875. }
  43876. get description() {
  43877. return this.get('description');
  43878. }
  43879. set description(s) {
  43880. this.set('description', s);
  43881. }
  43882. get url() {
  43883. return this.get('url');
  43884. }
  43885. set url(s) {
  43886. this.set('url', s);
  43887. }
  43888. }
  43889. const Qp = ExternalDocumentation;
  43890. class Header extends Cu.Sh {
  43891. constructor(s, o, i) {
  43892. super(s, o, i), (this.element = 'header');
  43893. }
  43894. get required() {
  43895. return this.hasKey('required') ? this.get('required') : new Cu.bd(!1);
  43896. }
  43897. set required(s) {
  43898. this.set('required', s);
  43899. }
  43900. get deprecated() {
  43901. return this.hasKey('deprecated') ? this.get('deprecated') : new Cu.bd(!1);
  43902. }
  43903. set deprecated(s) {
  43904. this.set('deprecated', s);
  43905. }
  43906. get allowEmptyValue() {
  43907. return this.get('allowEmptyValue');
  43908. }
  43909. set allowEmptyValue(s) {
  43910. this.set('allowEmptyValue', s);
  43911. }
  43912. get style() {
  43913. return this.get('style');
  43914. }
  43915. set style(s) {
  43916. this.set('style', s);
  43917. }
  43918. get explode() {
  43919. return this.get('explode');
  43920. }
  43921. set explode(s) {
  43922. this.set('explode', s);
  43923. }
  43924. get allowReserved() {
  43925. return this.get('allowReserved');
  43926. }
  43927. set allowReserved(s) {
  43928. this.set('allowReserved', s);
  43929. }
  43930. get schema() {
  43931. return this.get('schema');
  43932. }
  43933. set schema(s) {
  43934. this.set('schema', s);
  43935. }
  43936. get example() {
  43937. return this.get('example');
  43938. }
  43939. set example(s) {
  43940. this.set('example', s);
  43941. }
  43942. get examples() {
  43943. return this.get('examples');
  43944. }
  43945. set examples(s) {
  43946. this.set('examples', s);
  43947. }
  43948. get contentProp() {
  43949. return this.get('content');
  43950. }
  43951. set contentProp(s) {
  43952. this.set('content', s);
  43953. }
  43954. }
  43955. Object.defineProperty(Header.prototype, 'description', {
  43956. get() {
  43957. return this.get('description');
  43958. },
  43959. set(s) {
  43960. this.set('description', s);
  43961. },
  43962. enumerable: !0
  43963. });
  43964. const th = Header;
  43965. class Info extends Cu.Sh {
  43966. constructor(s, o, i) {
  43967. super(s, o, i), (this.element = 'info'), this.classes.push('info');
  43968. }
  43969. get title() {
  43970. return this.get('title');
  43971. }
  43972. set title(s) {
  43973. this.set('title', s);
  43974. }
  43975. get description() {
  43976. return this.get('description');
  43977. }
  43978. set description(s) {
  43979. this.set('description', s);
  43980. }
  43981. get termsOfService() {
  43982. return this.get('termsOfService');
  43983. }
  43984. set termsOfService(s) {
  43985. this.set('termsOfService', s);
  43986. }
  43987. get contact() {
  43988. return this.get('contact');
  43989. }
  43990. set contact(s) {
  43991. this.set('contact', s);
  43992. }
  43993. get license() {
  43994. return this.get('license');
  43995. }
  43996. set license(s) {
  43997. this.set('license', s);
  43998. }
  43999. get version() {
  44000. return this.get('version');
  44001. }
  44002. set version(s) {
  44003. this.set('version', s);
  44004. }
  44005. }
  44006. const rh = Info;
  44007. class License extends Cu.Sh {
  44008. constructor(s, o, i) {
  44009. super(s, o, i), (this.element = 'license');
  44010. }
  44011. get name() {
  44012. return this.get('name');
  44013. }
  44014. set name(s) {
  44015. this.set('name', s);
  44016. }
  44017. get url() {
  44018. return this.get('url');
  44019. }
  44020. set url(s) {
  44021. this.set('url', s);
  44022. }
  44023. }
  44024. const uh = License;
  44025. class Link extends Cu.Sh {
  44026. constructor(s, o, i) {
  44027. super(s, o, i), (this.element = 'link');
  44028. }
  44029. get operationRef() {
  44030. return this.get('operationRef');
  44031. }
  44032. set operationRef(s) {
  44033. this.set('operationRef', s);
  44034. }
  44035. get operationId() {
  44036. return this.get('operationId');
  44037. }
  44038. set operationId(s) {
  44039. this.set('operationId', s);
  44040. }
  44041. get operation() {
  44042. var s, o;
  44043. return Ru(this.operationRef)
  44044. ? null === (s = this.operationRef) || void 0 === s
  44045. ? void 0
  44046. : s.meta.get('operation')
  44047. : Ru(this.operationId)
  44048. ? null === (o = this.operationId) || void 0 === o
  44049. ? void 0
  44050. : o.meta.get('operation')
  44051. : void 0;
  44052. }
  44053. set operation(s) {
  44054. this.set('operation', s);
  44055. }
  44056. get parameters() {
  44057. return this.get('parameters');
  44058. }
  44059. set parameters(s) {
  44060. this.set('parameters', s);
  44061. }
  44062. get requestBody() {
  44063. return this.get('requestBody');
  44064. }
  44065. set requestBody(s) {
  44066. this.set('requestBody', s);
  44067. }
  44068. get description() {
  44069. return this.get('description');
  44070. }
  44071. set description(s) {
  44072. this.set('description', s);
  44073. }
  44074. get server() {
  44075. return this.get('server');
  44076. }
  44077. set server(s) {
  44078. this.set('server', s);
  44079. }
  44080. }
  44081. const dh = Link;
  44082. class MediaType extends Cu.Sh {
  44083. constructor(s, o, i) {
  44084. super(s, o, i), (this.element = 'mediaType');
  44085. }
  44086. get schema() {
  44087. return this.get('schema');
  44088. }
  44089. set schema(s) {
  44090. this.set('schema', s);
  44091. }
  44092. get example() {
  44093. return this.get('example');
  44094. }
  44095. set example(s) {
  44096. this.set('example', s);
  44097. }
  44098. get examples() {
  44099. return this.get('examples');
  44100. }
  44101. set examples(s) {
  44102. this.set('examples', s);
  44103. }
  44104. get encoding() {
  44105. return this.get('encoding');
  44106. }
  44107. set encoding(s) {
  44108. this.set('encoding', s);
  44109. }
  44110. }
  44111. const fh = MediaType;
  44112. class OAuthFlow extends Cu.Sh {
  44113. constructor(s, o, i) {
  44114. super(s, o, i), (this.element = 'oAuthFlow');
  44115. }
  44116. get authorizationUrl() {
  44117. return this.get('authorizationUrl');
  44118. }
  44119. set authorizationUrl(s) {
  44120. this.set('authorizationUrl', s);
  44121. }
  44122. get tokenUrl() {
  44123. return this.get('tokenUrl');
  44124. }
  44125. set tokenUrl(s) {
  44126. this.set('tokenUrl', s);
  44127. }
  44128. get refreshUrl() {
  44129. return this.get('refreshUrl');
  44130. }
  44131. set refreshUrl(s) {
  44132. this.set('refreshUrl', s);
  44133. }
  44134. get scopes() {
  44135. return this.get('scopes');
  44136. }
  44137. set scopes(s) {
  44138. this.set('scopes', s);
  44139. }
  44140. }
  44141. const vh = OAuthFlow;
  44142. class OAuthFlows extends Cu.Sh {
  44143. constructor(s, o, i) {
  44144. super(s, o, i), (this.element = 'oAuthFlows');
  44145. }
  44146. get implicit() {
  44147. return this.get('implicit');
  44148. }
  44149. set implicit(s) {
  44150. this.set('implicit', s);
  44151. }
  44152. get password() {
  44153. return this.get('password');
  44154. }
  44155. set password(s) {
  44156. this.set('password', s);
  44157. }
  44158. get clientCredentials() {
  44159. return this.get('clientCredentials');
  44160. }
  44161. set clientCredentials(s) {
  44162. this.set('clientCredentials', s);
  44163. }
  44164. get authorizationCode() {
  44165. return this.get('authorizationCode');
  44166. }
  44167. set authorizationCode(s) {
  44168. this.set('authorizationCode', s);
  44169. }
  44170. }
  44171. const _h = OAuthFlows;
  44172. class Openapi extends Cu.Om {
  44173. constructor(s, o, i) {
  44174. super(s, o, i),
  44175. (this.element = 'openapi'),
  44176. this.classes.push('spec-version'),
  44177. this.classes.push('version');
  44178. }
  44179. }
  44180. const wh = Openapi;
  44181. class OpenApi3_0 extends Cu.Sh {
  44182. constructor(s, o, i) {
  44183. super(s, o, i), (this.element = 'openApi3_0'), this.classes.push('api');
  44184. }
  44185. get openapi() {
  44186. return this.get('openapi');
  44187. }
  44188. set openapi(s) {
  44189. this.set('openapi', s);
  44190. }
  44191. get info() {
  44192. return this.get('info');
  44193. }
  44194. set info(s) {
  44195. this.set('info', s);
  44196. }
  44197. get servers() {
  44198. return this.get('servers');
  44199. }
  44200. set servers(s) {
  44201. this.set('servers', s);
  44202. }
  44203. get paths() {
  44204. return this.get('paths');
  44205. }
  44206. set paths(s) {
  44207. this.set('paths', s);
  44208. }
  44209. get components() {
  44210. return this.get('components');
  44211. }
  44212. set components(s) {
  44213. this.set('components', s);
  44214. }
  44215. get security() {
  44216. return this.get('security');
  44217. }
  44218. set security(s) {
  44219. this.set('security', s);
  44220. }
  44221. get tags() {
  44222. return this.get('tags');
  44223. }
  44224. set tags(s) {
  44225. this.set('tags', s);
  44226. }
  44227. get externalDocs() {
  44228. return this.get('externalDocs');
  44229. }
  44230. set externalDocs(s) {
  44231. this.set('externalDocs', s);
  44232. }
  44233. }
  44234. const Oh = OpenApi3_0;
  44235. class Operation extends Cu.Sh {
  44236. constructor(s, o, i) {
  44237. super(s, o, i), (this.element = 'operation');
  44238. }
  44239. get tags() {
  44240. return this.get('tags');
  44241. }
  44242. set tags(s) {
  44243. this.set('tags', s);
  44244. }
  44245. get summary() {
  44246. return this.get('summary');
  44247. }
  44248. set summary(s) {
  44249. this.set('summary', s);
  44250. }
  44251. get description() {
  44252. return this.get('description');
  44253. }
  44254. set description(s) {
  44255. this.set('description', s);
  44256. }
  44257. set externalDocs(s) {
  44258. this.set('externalDocs', s);
  44259. }
  44260. get externalDocs() {
  44261. return this.get('externalDocs');
  44262. }
  44263. get operationId() {
  44264. return this.get('operationId');
  44265. }
  44266. set operationId(s) {
  44267. this.set('operationId', s);
  44268. }
  44269. get parameters() {
  44270. return this.get('parameters');
  44271. }
  44272. set parameters(s) {
  44273. this.set('parameters', s);
  44274. }
  44275. get requestBody() {
  44276. return this.get('requestBody');
  44277. }
  44278. set requestBody(s) {
  44279. this.set('requestBody', s);
  44280. }
  44281. get responses() {
  44282. return this.get('responses');
  44283. }
  44284. set responses(s) {
  44285. this.set('responses', s);
  44286. }
  44287. get callbacks() {
  44288. return this.get('callbacks');
  44289. }
  44290. set callbacks(s) {
  44291. this.set('callbacks', s);
  44292. }
  44293. get deprecated() {
  44294. return this.hasKey('deprecated') ? this.get('deprecated') : new Cu.bd(!1);
  44295. }
  44296. set deprecated(s) {
  44297. this.set('deprecated', s);
  44298. }
  44299. get security() {
  44300. return this.get('security');
  44301. }
  44302. set security(s) {
  44303. this.set('security', s);
  44304. }
  44305. get servers() {
  44306. return this.get('severs');
  44307. }
  44308. set servers(s) {
  44309. this.set('servers', s);
  44310. }
  44311. }
  44312. const jh = Operation;
  44313. class Parameter extends Cu.Sh {
  44314. constructor(s, o, i) {
  44315. super(s, o, i), (this.element = 'parameter');
  44316. }
  44317. get name() {
  44318. return this.get('name');
  44319. }
  44320. set name(s) {
  44321. this.set('name', s);
  44322. }
  44323. get in() {
  44324. return this.get('in');
  44325. }
  44326. set in(s) {
  44327. this.set('in', s);
  44328. }
  44329. get required() {
  44330. return this.hasKey('required') ? this.get('required') : new Cu.bd(!1);
  44331. }
  44332. set required(s) {
  44333. this.set('required', s);
  44334. }
  44335. get deprecated() {
  44336. return this.hasKey('deprecated') ? this.get('deprecated') : new Cu.bd(!1);
  44337. }
  44338. set deprecated(s) {
  44339. this.set('deprecated', s);
  44340. }
  44341. get allowEmptyValue() {
  44342. return this.get('allowEmptyValue');
  44343. }
  44344. set allowEmptyValue(s) {
  44345. this.set('allowEmptyValue', s);
  44346. }
  44347. get style() {
  44348. return this.get('style');
  44349. }
  44350. set style(s) {
  44351. this.set('style', s);
  44352. }
  44353. get explode() {
  44354. return this.get('explode');
  44355. }
  44356. set explode(s) {
  44357. this.set('explode', s);
  44358. }
  44359. get allowReserved() {
  44360. return this.get('allowReserved');
  44361. }
  44362. set allowReserved(s) {
  44363. this.set('allowReserved', s);
  44364. }
  44365. get schema() {
  44366. return this.get('schema');
  44367. }
  44368. set schema(s) {
  44369. this.set('schema', s);
  44370. }
  44371. get example() {
  44372. return this.get('example');
  44373. }
  44374. set example(s) {
  44375. this.set('example', s);
  44376. }
  44377. get examples() {
  44378. return this.get('examples');
  44379. }
  44380. set examples(s) {
  44381. this.set('examples', s);
  44382. }
  44383. get contentProp() {
  44384. return this.get('content');
  44385. }
  44386. set contentProp(s) {
  44387. this.set('content', s);
  44388. }
  44389. }
  44390. Object.defineProperty(Parameter.prototype, 'description', {
  44391. get() {
  44392. return this.get('description');
  44393. },
  44394. set(s) {
  44395. this.set('description', s);
  44396. },
  44397. enumerable: !0
  44398. });
  44399. const Ih = Parameter;
  44400. class PathItem extends Cu.Sh {
  44401. constructor(s, o, i) {
  44402. super(s, o, i), (this.element = 'pathItem');
  44403. }
  44404. get $ref() {
  44405. return this.get('$ref');
  44406. }
  44407. set $ref(s) {
  44408. this.set('$ref', s);
  44409. }
  44410. get summary() {
  44411. return this.get('summary');
  44412. }
  44413. set summary(s) {
  44414. this.set('summary', s);
  44415. }
  44416. get description() {
  44417. return this.get('description');
  44418. }
  44419. set description(s) {
  44420. this.set('description', s);
  44421. }
  44422. get GET() {
  44423. return this.get('get');
  44424. }
  44425. set GET(s) {
  44426. this.set('GET', s);
  44427. }
  44428. get PUT() {
  44429. return this.get('put');
  44430. }
  44431. set PUT(s) {
  44432. this.set('PUT', s);
  44433. }
  44434. get POST() {
  44435. return this.get('post');
  44436. }
  44437. set POST(s) {
  44438. this.set('POST', s);
  44439. }
  44440. get DELETE() {
  44441. return this.get('delete');
  44442. }
  44443. set DELETE(s) {
  44444. this.set('DELETE', s);
  44445. }
  44446. get OPTIONS() {
  44447. return this.get('options');
  44448. }
  44449. set OPTIONS(s) {
  44450. this.set('OPTIONS', s);
  44451. }
  44452. get HEAD() {
  44453. return this.get('head');
  44454. }
  44455. set HEAD(s) {
  44456. this.set('HEAD', s);
  44457. }
  44458. get PATCH() {
  44459. return this.get('patch');
  44460. }
  44461. set PATCH(s) {
  44462. this.set('PATCH', s);
  44463. }
  44464. get TRACE() {
  44465. return this.get('trace');
  44466. }
  44467. set TRACE(s) {
  44468. this.set('TRACE', s);
  44469. }
  44470. get servers() {
  44471. return this.get('servers');
  44472. }
  44473. set servers(s) {
  44474. this.set('servers', s);
  44475. }
  44476. get parameters() {
  44477. return this.get('parameters');
  44478. }
  44479. set parameters(s) {
  44480. this.set('parameters', s);
  44481. }
  44482. }
  44483. const Ph = PathItem;
  44484. class Paths extends Cu.Sh {
  44485. constructor(s, o, i) {
  44486. super(s, o, i), (this.element = 'paths');
  44487. }
  44488. }
  44489. const Rh = Paths;
  44490. class Reference extends Cu.Sh {
  44491. constructor(s, o, i) {
  44492. super(s, o, i), (this.element = 'reference'), this.classes.push('openapi-reference');
  44493. }
  44494. get $ref() {
  44495. return this.get('$ref');
  44496. }
  44497. set $ref(s) {
  44498. this.set('$ref', s);
  44499. }
  44500. }
  44501. const Dh = Reference;
  44502. class RequestBody extends Cu.Sh {
  44503. constructor(s, o, i) {
  44504. super(s, o, i), (this.element = 'requestBody');
  44505. }
  44506. get description() {
  44507. return this.get('description');
  44508. }
  44509. set description(s) {
  44510. this.set('description', s);
  44511. }
  44512. get contentProp() {
  44513. return this.get('content');
  44514. }
  44515. set contentProp(s) {
  44516. this.set('content', s);
  44517. }
  44518. get required() {
  44519. return this.hasKey('required') ? this.get('required') : new Cu.bd(!1);
  44520. }
  44521. set required(s) {
  44522. this.set('required', s);
  44523. }
  44524. }
  44525. const Lh = RequestBody;
  44526. class Response_Response extends Cu.Sh {
  44527. constructor(s, o, i) {
  44528. super(s, o, i), (this.element = 'response');
  44529. }
  44530. get description() {
  44531. return this.get('description');
  44532. }
  44533. set description(s) {
  44534. this.set('description', s);
  44535. }
  44536. get headers() {
  44537. return this.get('headers');
  44538. }
  44539. set headers(s) {
  44540. this.set('headers', s);
  44541. }
  44542. get contentProp() {
  44543. return this.get('content');
  44544. }
  44545. set contentProp(s) {
  44546. this.set('content', s);
  44547. }
  44548. get links() {
  44549. return this.get('links');
  44550. }
  44551. set links(s) {
  44552. this.set('links', s);
  44553. }
  44554. }
  44555. const Fh = Response_Response;
  44556. class Responses extends Cu.Sh {
  44557. constructor(s, o, i) {
  44558. super(s, o, i), (this.element = 'responses');
  44559. }
  44560. get default() {
  44561. return this.get('default');
  44562. }
  44563. set default(s) {
  44564. this.set('default', s);
  44565. }
  44566. }
  44567. const Kh = Responses;
  44568. const Hh = class UnsupportedOperationError extends Ho {};
  44569. class JSONSchema extends Cu.Sh {
  44570. constructor(s, o, i) {
  44571. super(s, o, i), (this.element = 'JSONSchemaDraft4');
  44572. }
  44573. get idProp() {
  44574. return this.get('id');
  44575. }
  44576. set idProp(s) {
  44577. this.set('id', s);
  44578. }
  44579. get $schema() {
  44580. return this.get('$schema');
  44581. }
  44582. set $schema(s) {
  44583. this.set('$schema', s);
  44584. }
  44585. get multipleOf() {
  44586. return this.get('multipleOf');
  44587. }
  44588. set multipleOf(s) {
  44589. this.set('multipleOf', s);
  44590. }
  44591. get maximum() {
  44592. return this.get('maximum');
  44593. }
  44594. set maximum(s) {
  44595. this.set('maximum', s);
  44596. }
  44597. get exclusiveMaximum() {
  44598. return this.get('exclusiveMaximum');
  44599. }
  44600. set exclusiveMaximum(s) {
  44601. this.set('exclusiveMaximum', s);
  44602. }
  44603. get minimum() {
  44604. return this.get('minimum');
  44605. }
  44606. set minimum(s) {
  44607. this.set('minimum', s);
  44608. }
  44609. get exclusiveMinimum() {
  44610. return this.get('exclusiveMinimum');
  44611. }
  44612. set exclusiveMinimum(s) {
  44613. this.set('exclusiveMinimum', s);
  44614. }
  44615. get maxLength() {
  44616. return this.get('maxLength');
  44617. }
  44618. set maxLength(s) {
  44619. this.set('maxLength', s);
  44620. }
  44621. get minLength() {
  44622. return this.get('minLength');
  44623. }
  44624. set minLength(s) {
  44625. this.set('minLength', s);
  44626. }
  44627. get pattern() {
  44628. return this.get('pattern');
  44629. }
  44630. set pattern(s) {
  44631. this.set('pattern', s);
  44632. }
  44633. get additionalItems() {
  44634. return this.get('additionalItems');
  44635. }
  44636. set additionalItems(s) {
  44637. this.set('additionalItems', s);
  44638. }
  44639. get items() {
  44640. return this.get('items');
  44641. }
  44642. set items(s) {
  44643. this.set('items', s);
  44644. }
  44645. get maxItems() {
  44646. return this.get('maxItems');
  44647. }
  44648. set maxItems(s) {
  44649. this.set('maxItems', s);
  44650. }
  44651. get minItems() {
  44652. return this.get('minItems');
  44653. }
  44654. set minItems(s) {
  44655. this.set('minItems', s);
  44656. }
  44657. get uniqueItems() {
  44658. return this.get('uniqueItems');
  44659. }
  44660. set uniqueItems(s) {
  44661. this.set('uniqueItems', s);
  44662. }
  44663. get maxProperties() {
  44664. return this.get('maxProperties');
  44665. }
  44666. set maxProperties(s) {
  44667. this.set('maxProperties', s);
  44668. }
  44669. get minProperties() {
  44670. return this.get('minProperties');
  44671. }
  44672. set minProperties(s) {
  44673. this.set('minProperties', s);
  44674. }
  44675. get required() {
  44676. return this.get('required');
  44677. }
  44678. set required(s) {
  44679. this.set('required', s);
  44680. }
  44681. get properties() {
  44682. return this.get('properties');
  44683. }
  44684. set properties(s) {
  44685. this.set('properties', s);
  44686. }
  44687. get additionalProperties() {
  44688. return this.get('additionalProperties');
  44689. }
  44690. set additionalProperties(s) {
  44691. this.set('additionalProperties', s);
  44692. }
  44693. get patternProperties() {
  44694. return this.get('patternProperties');
  44695. }
  44696. set patternProperties(s) {
  44697. this.set('patternProperties', s);
  44698. }
  44699. get dependencies() {
  44700. return this.get('dependencies');
  44701. }
  44702. set dependencies(s) {
  44703. this.set('dependencies', s);
  44704. }
  44705. get enum() {
  44706. return this.get('enum');
  44707. }
  44708. set enum(s) {
  44709. this.set('enum', s);
  44710. }
  44711. get type() {
  44712. return this.get('type');
  44713. }
  44714. set type(s) {
  44715. this.set('type', s);
  44716. }
  44717. get allOf() {
  44718. return this.get('allOf');
  44719. }
  44720. set allOf(s) {
  44721. this.set('allOf', s);
  44722. }
  44723. get anyOf() {
  44724. return this.get('anyOf');
  44725. }
  44726. set anyOf(s) {
  44727. this.set('anyOf', s);
  44728. }
  44729. get oneOf() {
  44730. return this.get('oneOf');
  44731. }
  44732. set oneOf(s) {
  44733. this.set('oneOf', s);
  44734. }
  44735. get not() {
  44736. return this.get('not');
  44737. }
  44738. set not(s) {
  44739. this.set('not', s);
  44740. }
  44741. get definitions() {
  44742. return this.get('definitions');
  44743. }
  44744. set definitions(s) {
  44745. this.set('definitions', s);
  44746. }
  44747. get title() {
  44748. return this.get('title');
  44749. }
  44750. set title(s) {
  44751. this.set('title', s);
  44752. }
  44753. get description() {
  44754. return this.get('description');
  44755. }
  44756. set description(s) {
  44757. this.set('description', s);
  44758. }
  44759. get default() {
  44760. return this.get('default');
  44761. }
  44762. set default(s) {
  44763. this.set('default', s);
  44764. }
  44765. get format() {
  44766. return this.get('format');
  44767. }
  44768. set format(s) {
  44769. this.set('format', s);
  44770. }
  44771. get base() {
  44772. return this.get('base');
  44773. }
  44774. set base(s) {
  44775. this.set('base', s);
  44776. }
  44777. get links() {
  44778. return this.get('links');
  44779. }
  44780. set links(s) {
  44781. this.set('links', s);
  44782. }
  44783. get media() {
  44784. return this.get('media');
  44785. }
  44786. set media(s) {
  44787. this.set('media', s);
  44788. }
  44789. get readOnly() {
  44790. return this.get('readOnly');
  44791. }
  44792. set readOnly(s) {
  44793. this.set('readOnly', s);
  44794. }
  44795. }
  44796. const Jh = JSONSchema;
  44797. class JSONReference extends Cu.Sh {
  44798. constructor(s, o, i) {
  44799. super(s, o, i), (this.element = 'JSONReference'), this.classes.push('json-reference');
  44800. }
  44801. get $ref() {
  44802. return this.get('$ref');
  44803. }
  44804. set $ref(s) {
  44805. this.set('$ref', s);
  44806. }
  44807. }
  44808. const Gh = JSONReference;
  44809. class Media extends Cu.Sh {
  44810. constructor(s, o, i) {
  44811. super(s, o, i), (this.element = 'media');
  44812. }
  44813. get binaryEncoding() {
  44814. return this.get('binaryEncoding');
  44815. }
  44816. set binaryEncoding(s) {
  44817. this.set('binaryEncoding', s);
  44818. }
  44819. get type() {
  44820. return this.get('type');
  44821. }
  44822. set type(s) {
  44823. this.set('type', s);
  44824. }
  44825. }
  44826. const Qh = Media;
  44827. class LinkDescription extends Cu.Sh {
  44828. constructor(s, o, i) {
  44829. super(s, o, i), (this.element = 'linkDescription');
  44830. }
  44831. get href() {
  44832. return this.get('href');
  44833. }
  44834. set href(s) {
  44835. this.set('href', s);
  44836. }
  44837. get rel() {
  44838. return this.get('rel');
  44839. }
  44840. set rel(s) {
  44841. this.set('rel', s);
  44842. }
  44843. get title() {
  44844. return this.get('title');
  44845. }
  44846. set title(s) {
  44847. this.set('title', s);
  44848. }
  44849. get targetSchema() {
  44850. return this.get('targetSchema');
  44851. }
  44852. set targetSchema(s) {
  44853. this.set('targetSchema', s);
  44854. }
  44855. get mediaType() {
  44856. return this.get('mediaType');
  44857. }
  44858. set mediaType(s) {
  44859. this.set('mediaType', s);
  44860. }
  44861. get method() {
  44862. return this.get('method');
  44863. }
  44864. set method(s) {
  44865. this.set('method', s);
  44866. }
  44867. get encType() {
  44868. return this.get('encType');
  44869. }
  44870. set encType(s) {
  44871. this.set('encType', s);
  44872. }
  44873. get schema() {
  44874. return this.get('schema');
  44875. }
  44876. set schema(s) {
  44877. this.set('schema', s);
  44878. }
  44879. }
  44880. const td = LinkDescription;
  44881. var sd = _curry2(function mapObjIndexed(s, o) {
  44882. return _arrayReduce(
  44883. function (i, u) {
  44884. return (i[u] = s(o[u], u, o)), i;
  44885. },
  44886. {},
  44887. Wi(o)
  44888. );
  44889. });
  44890. const id = sd;
  44891. const ld = _curry1(function isNil(s) {
  44892. return null == s;
  44893. });
  44894. var cd = _curry2(function hasPath(s, o) {
  44895. if (0 === s.length || ld(o)) return !1;
  44896. for (var i = o, u = 0; u < s.length; ) {
  44897. if (ld(i) || !_has(s[u], i)) return !1;
  44898. (i = i[s[u]]), (u += 1);
  44899. }
  44900. return !0;
  44901. });
  44902. const ud = cd;
  44903. var dd = _curry2(function has(s, o) {
  44904. return ud([s], o);
  44905. });
  44906. const md = dd;
  44907. const yd = _curry3(function propSatisfies(s, o, i) {
  44908. return s(Da(o, i));
  44909. }),
  44910. dereference = (s, o) => {
  44911. const i = Na(s, o);
  44912. return id((s) => {
  44913. if (ku(s) && md('$ref', s) && yd(Yl, '$ref', s)) {
  44914. const o = cp(['$ref'], s),
  44915. u = Up('#/', o);
  44916. return cp(u.split('/'), i);
  44917. }
  44918. return ku(s) ? dereference(s, i) : s;
  44919. }, s);
  44920. },
  44921. emptyElement = (s) => {
  44922. const o = s.meta.length > 0 ? cloneDeep(s.meta) : void 0,
  44923. i = s.attributes.length > 0 ? cloneDeep(s.attributes) : void 0;
  44924. return new s.constructor(void 0, o, i);
  44925. },
  44926. cloneUnlessOtherwiseSpecified = (s, o) =>
  44927. o.clone && o.isMergeableElement(s) ? deepmerge(emptyElement(s), s, o) : s,
  44928. getMetaMergeFunction = (s) =>
  44929. 'function' != typeof s.customMetaMerge ? (s) => cloneDeep(s) : s.customMetaMerge,
  44930. getAttributesMergeFunction = (s) =>
  44931. 'function' != typeof s.customAttributesMerge
  44932. ? (s) => cloneDeep(s)
  44933. : s.customAttributesMerge,
  44934. vd = {
  44935. clone: !0,
  44936. isMergeableElement: (s) => Fu(s) || qu(s),
  44937. arrayElementMerge: (s, o, i) =>
  44938. s.concat(o)['fantasy-land/map']((s) => cloneUnlessOtherwiseSpecified(s, i)),
  44939. objectElementMerge: (s, o, i) => {
  44940. const u = Fu(s) ? emptyElement(s) : emptyElement(o);
  44941. return (
  44942. Fu(s) &&
  44943. s.forEach((s, o, _) => {
  44944. const w = cloneShallow(_);
  44945. (w.value = cloneUnlessOtherwiseSpecified(s, i)), u.content.push(w);
  44946. }),
  44947. o.forEach((o, _, w) => {
  44948. const x = serializers_value(_);
  44949. let C;
  44950. if (Fu(s) && s.hasKey(x) && i.isMergeableElement(o)) {
  44951. const u = s.get(x);
  44952. (C = cloneShallow(w)),
  44953. (C.value = ((s, o) => {
  44954. if ('function' != typeof o.customMerge) return deepmerge;
  44955. const i = o.customMerge(s, o);
  44956. return 'function' == typeof i ? i : deepmerge;
  44957. })(_, i)(u, o));
  44958. } else (C = cloneShallow(w)), (C.value = cloneUnlessOtherwiseSpecified(o, i));
  44959. u.remove(x), u.content.push(C);
  44960. }),
  44961. u
  44962. );
  44963. },
  44964. customMerge: void 0,
  44965. customMetaMerge: void 0,
  44966. customAttributesMerge: void 0
  44967. };
  44968. function deepmerge(s, o, i) {
  44969. var u, _, w;
  44970. const x = { ...vd, ...i };
  44971. (x.isMergeableElement =
  44972. null !== (u = x.isMergeableElement) && void 0 !== u ? u : vd.isMergeableElement),
  44973. (x.arrayElementMerge =
  44974. null !== (_ = x.arrayElementMerge) && void 0 !== _ ? _ : vd.arrayElementMerge),
  44975. (x.objectElementMerge =
  44976. null !== (w = x.objectElementMerge) && void 0 !== w ? w : vd.objectElementMerge);
  44977. const C = qu(o);
  44978. if (!(C === qu(s))) return cloneUnlessOtherwiseSpecified(o, x);
  44979. const j =
  44980. C && 'function' == typeof x.arrayElementMerge
  44981. ? x.arrayElementMerge(s, o, x)
  44982. : x.objectElementMerge(s, o, x);
  44983. return (
  44984. (j.meta = getMetaMergeFunction(x)(s.meta, o.meta)),
  44985. (j.attributes = getAttributesMergeFunction(x)(s.attributes, o.attributes)),
  44986. j
  44987. );
  44988. }
  44989. deepmerge.all = (s, o) => {
  44990. if (!Array.isArray(s))
  44991. throw new TypeError('First argument of deepmerge should be an array.');
  44992. return 0 === s.length
  44993. ? new Cu.Sh()
  44994. : s.reduce((s, i) => deepmerge(s, i, o), emptyElement(s[0]));
  44995. };
  44996. const _d = class Visitor_Visitor {
  44997. element;
  44998. constructor(s) {
  44999. Object.assign(this, s);
  45000. }
  45001. copyMetaAndAttributes(s, o) {
  45002. (s.meta.length > 0 || o.meta.length > 0) &&
  45003. ((o.meta = deepmerge(o.meta, s.meta)),
  45004. hasElementSourceMap(s) && o.meta.set('sourceMap', s.meta.get('sourceMap'))),
  45005. (s.attributes.length > 0 || s.meta.length > 0) &&
  45006. (o.attributes = deepmerge(o.attributes, s.attributes));
  45007. }
  45008. };
  45009. const Ed = class FallbackVisitor extends _d {
  45010. enter(s) {
  45011. return (this.element = cloneDeep(s)), Ju;
  45012. }
  45013. },
  45014. copyProps = (s, o, i = []) => {
  45015. const u = Object.getOwnPropertyDescriptors(o);
  45016. for (let s of i) delete u[s];
  45017. Object.defineProperties(s, u);
  45018. },
  45019. protoChain = (s, o = [s]) => {
  45020. const i = Object.getPrototypeOf(s);
  45021. return null === i ? o : protoChain(i, [...o, i]);
  45022. },
  45023. hardMixProtos = (s, o, i = []) => {
  45024. var u;
  45025. const _ =
  45026. null !==
  45027. (u = ((...s) => {
  45028. if (0 === s.length) return;
  45029. let o;
  45030. const i = s.map((s) => protoChain(s));
  45031. for (; i.every((s) => s.length > 0); ) {
  45032. const s = i.map((s) => s.pop()),
  45033. u = s[0];
  45034. if (!s.every((s) => s === u)) break;
  45035. o = u;
  45036. }
  45037. return o;
  45038. })(...s)) && void 0 !== u
  45039. ? u
  45040. : Object.prototype,
  45041. w = Object.create(_),
  45042. x = protoChain(_);
  45043. for (let o of s) {
  45044. let s = protoChain(o);
  45045. for (let o = s.length - 1; o >= 0; o--) {
  45046. let u = s[o];
  45047. -1 === x.indexOf(u) && (copyProps(w, u, ['constructor', ...i]), x.push(u));
  45048. }
  45049. }
  45050. return (w.constructor = o), w;
  45051. },
  45052. unique = (s) => s.filter((o, i) => s.indexOf(o) == i),
  45053. getIngredientWithProp = (s, o) => {
  45054. const i = o.map((s) => protoChain(s));
  45055. let u = 0,
  45056. _ = !0;
  45057. for (; _; ) {
  45058. _ = !1;
  45059. for (let w = o.length - 1; w >= 0; w--) {
  45060. const o = i[w][u];
  45061. if (null != o && ((_ = !0), null != Object.getOwnPropertyDescriptor(o, s)))
  45062. return i[w][0];
  45063. }
  45064. u++;
  45065. }
  45066. },
  45067. proxyMix = (s, o = Object.prototype) =>
  45068. new Proxy(
  45069. {},
  45070. {
  45071. getPrototypeOf: () => o,
  45072. setPrototypeOf() {
  45073. throw Error('Cannot set prototype of Proxies created by ts-mixer');
  45074. },
  45075. getOwnPropertyDescriptor: (o, i) =>
  45076. Object.getOwnPropertyDescriptor(getIngredientWithProp(i, s) || {}, i),
  45077. defineProperty() {
  45078. throw new Error('Cannot define new properties on Proxies created by ts-mixer');
  45079. },
  45080. has: (i, u) => void 0 !== getIngredientWithProp(u, s) || void 0 !== o[u],
  45081. get: (i, u) => (getIngredientWithProp(u, s) || o)[u],
  45082. set(o, i, u) {
  45083. const _ = getIngredientWithProp(i, s);
  45084. if (void 0 === _)
  45085. throw new Error('Cannot set new properties on Proxies created by ts-mixer');
  45086. return (_[i] = u), !0;
  45087. },
  45088. deleteProperty() {
  45089. throw new Error('Cannot delete properties on Proxies created by ts-mixer');
  45090. },
  45091. ownKeys: () =>
  45092. s
  45093. .map(Object.getOwnPropertyNames)
  45094. .reduce((s, o) => o.concat(s.filter((s) => o.indexOf(s) < 0)))
  45095. }
  45096. ),
  45097. wd = null,
  45098. Sd = 'copy',
  45099. xd = 'copy',
  45100. kd = 'deep',
  45101. Cd = new WeakMap(),
  45102. getMixinsForClass = (s) => Cd.get(s),
  45103. mergeObjectsOfDecorators = (s, o) => {
  45104. var i, u;
  45105. const _ = unique([...Object.getOwnPropertyNames(s), ...Object.getOwnPropertyNames(o)]),
  45106. w = {};
  45107. for (let x of _)
  45108. w[x] = unique([
  45109. ...(null !== (i = null == s ? void 0 : s[x]) && void 0 !== i ? i : []),
  45110. ...(null !== (u = null == o ? void 0 : o[x]) && void 0 !== u ? u : [])
  45111. ]);
  45112. return w;
  45113. },
  45114. mergePropertyAndMethodDecorators = (s, o) => {
  45115. var i, u, _, w;
  45116. return {
  45117. property: mergeObjectsOfDecorators(
  45118. null !== (i = null == s ? void 0 : s.property) && void 0 !== i ? i : {},
  45119. null !== (u = null == o ? void 0 : o.property) && void 0 !== u ? u : {}
  45120. ),
  45121. method: mergeObjectsOfDecorators(
  45122. null !== (_ = null == s ? void 0 : s.method) && void 0 !== _ ? _ : {},
  45123. null !== (w = null == o ? void 0 : o.method) && void 0 !== w ? w : {}
  45124. )
  45125. };
  45126. },
  45127. mergeDecorators = (s, o) => {
  45128. var i, u, _, w, x, C;
  45129. return {
  45130. class: unique([
  45131. ...(null !== (i = null == s ? void 0 : s.class) && void 0 !== i ? i : []),
  45132. ...(null !== (u = null == o ? void 0 : o.class) && void 0 !== u ? u : [])
  45133. ]),
  45134. static: mergePropertyAndMethodDecorators(
  45135. null !== (_ = null == s ? void 0 : s.static) && void 0 !== _ ? _ : {},
  45136. null !== (w = null == o ? void 0 : o.static) && void 0 !== w ? w : {}
  45137. ),
  45138. instance: mergePropertyAndMethodDecorators(
  45139. null !== (x = null == s ? void 0 : s.instance) && void 0 !== x ? x : {},
  45140. null !== (C = null == o ? void 0 : o.instance) && void 0 !== C ? C : {}
  45141. )
  45142. };
  45143. },
  45144. Od = new Map(),
  45145. deepDecoratorSearch = (...s) => {
  45146. const o = ((...s) => {
  45147. var o;
  45148. const i = new Set(),
  45149. u = new Set([...s]);
  45150. for (; u.size > 0; )
  45151. for (let s of u) {
  45152. const _ = protoChain(s.prototype).map((s) => s.constructor),
  45153. w = [
  45154. ..._,
  45155. ...(null !== (o = getMixinsForClass(s)) && void 0 !== o ? o : [])
  45156. ].filter((s) => !i.has(s));
  45157. for (let s of w) u.add(s);
  45158. i.add(s), u.delete(s);
  45159. }
  45160. return [...i];
  45161. })(...s)
  45162. .map((s) => Od.get(s))
  45163. .filter((s) => !!s);
  45164. return 0 == o.length
  45165. ? {}
  45166. : 1 == o.length
  45167. ? o[0]
  45168. : o.reduce((s, o) => mergeDecorators(s, o));
  45169. },
  45170. getDecoratorsForClass = (s) => {
  45171. let o = Od.get(s);
  45172. return o || ((o = {}), Od.set(s, o)), o;
  45173. };
  45174. function Mixin(...s) {
  45175. var o, i, u;
  45176. const _ = s.map((s) => s.prototype),
  45177. w = wd;
  45178. if (null !== w) {
  45179. const s = _.map((s) => s[w]).filter((s) => 'function' == typeof s),
  45180. combinedInitFunction = function (...o) {
  45181. for (let i of s) i.apply(this, o);
  45182. },
  45183. o = { [w]: combinedInitFunction };
  45184. _.push(o);
  45185. }
  45186. function MixedClass(...o) {
  45187. for (const i of s) copyProps(this, new i(...o));
  45188. null !== w && 'function' == typeof this[w] && this[w].apply(this, o);
  45189. }
  45190. var x, C;
  45191. (MixedClass.prototype =
  45192. 'copy' === xd
  45193. ? hardMixProtos(_, MixedClass)
  45194. : ((x = _), (C = MixedClass), proxyMix([...x, { constructor: C }]))),
  45195. Object.setPrototypeOf(
  45196. MixedClass,
  45197. 'copy' === Sd
  45198. ? hardMixProtos(s, null, ['prototype'])
  45199. : proxyMix(s, Function.prototype)
  45200. );
  45201. let j = MixedClass;
  45202. if ('none' !== kd) {
  45203. const _ =
  45204. 'deep' === kd
  45205. ? deepDecoratorSearch(...s)
  45206. : ((...s) => {
  45207. const o = s.map((s) => getDecoratorsForClass(s));
  45208. return 0 === o.length
  45209. ? {}
  45210. : 1 === o.length
  45211. ? o[0]
  45212. : o.reduce((s, o) => mergeDecorators(s, o));
  45213. })(...s);
  45214. for (let s of null !== (o = null == _ ? void 0 : _.class) && void 0 !== o ? o : []) {
  45215. const o = s(j);
  45216. o && (j = o);
  45217. }
  45218. applyPropAndMethodDecorators(
  45219. null !== (i = null == _ ? void 0 : _.static) && void 0 !== i ? i : {},
  45220. j
  45221. ),
  45222. applyPropAndMethodDecorators(
  45223. null !== (u = null == _ ? void 0 : _.instance) && void 0 !== u ? u : {},
  45224. j.prototype
  45225. );
  45226. }
  45227. var L, B;
  45228. return (L = j), (B = s), Cd.set(L, B), j;
  45229. }
  45230. const applyPropAndMethodDecorators = (s, o) => {
  45231. const i = s.property,
  45232. u = s.method;
  45233. if (i) for (let s in i) for (let u of i[s]) u(o, s);
  45234. if (u)
  45235. for (let s in u) for (let i of u[s]) i(o, s, Object.getOwnPropertyDescriptor(o, s));
  45236. };
  45237. const Ad = _curry2(function pick(s, o) {
  45238. for (var i = {}, u = 0; u < s.length; ) s[u] in o && (i[s[u]] = o[s[u]]), (u += 1);
  45239. return i;
  45240. });
  45241. const Id = class SpecificationVisitor extends _d {
  45242. specObj;
  45243. passingOptionsNames = ['specObj'];
  45244. constructor({ specObj: s, ...o }) {
  45245. super({ ...o }), (this.specObj = s);
  45246. }
  45247. retrievePassingOptions() {
  45248. return Ad(this.passingOptionsNames, this);
  45249. }
  45250. retrieveFixedFields(s) {
  45251. const o = cp(['visitors', ...s, 'fixedFields'], this.specObj);
  45252. return 'object' == typeof o && null !== o ? Object.keys(o) : [];
  45253. }
  45254. retrieveVisitor(s) {
  45255. return Xo(Wl, ['visitors', ...s], this.specObj)
  45256. ? cp(['visitors', ...s], this.specObj)
  45257. : cp(['visitors', ...s, '$visitor'], this.specObj);
  45258. }
  45259. retrieveVisitorInstance(s, o = {}) {
  45260. const i = this.retrievePassingOptions();
  45261. return new (this.retrieveVisitor(s))({ ...i, ...o });
  45262. }
  45263. toRefractedElement(s, o, i = {}) {
  45264. const u = this.retrieveVisitorInstance(s, i);
  45265. return u instanceof Ed && (null == u ? void 0 : u.constructor) === Ed
  45266. ? cloneDeep(o)
  45267. : (visitor_visit(o, u, i), u.element);
  45268. }
  45269. };
  45270. const Md = class FixedFieldsVisitor extends Id {
  45271. specPath;
  45272. ignoredFields;
  45273. constructor({ specPath: s, ignoredFields: o, ...i }) {
  45274. super({ ...i }), (this.specPath = s), (this.ignoredFields = o || []);
  45275. }
  45276. ObjectElement(s) {
  45277. const o = this.specPath(s),
  45278. i = this.retrieveFixedFields(o);
  45279. return (
  45280. s.forEach((s, u, _) => {
  45281. if (
  45282. Ru(u) &&
  45283. i.includes(serializers_value(u)) &&
  45284. !this.ignoredFields.includes(serializers_value(u))
  45285. ) {
  45286. const i = this.toRefractedElement([...o, 'fixedFields', serializers_value(u)], s),
  45287. w = new Cu.Pr(cloneDeep(u), i);
  45288. this.copyMetaAndAttributes(_, w),
  45289. w.classes.push('fixed-field'),
  45290. this.element.content.push(w);
  45291. } else
  45292. this.ignoredFields.includes(serializers_value(u)) ||
  45293. this.element.content.push(cloneDeep(_));
  45294. }),
  45295. this.copyMetaAndAttributes(s, this.element),
  45296. Ju
  45297. );
  45298. }
  45299. };
  45300. class JSONSchemaVisitor extends Mixin(Md, Ed) {
  45301. constructor(s) {
  45302. super(s),
  45303. (this.element = new Jh()),
  45304. (this.specPath = Tl(['document', 'objects', 'JSONSchema']));
  45305. }
  45306. }
  45307. const Td = JSONSchemaVisitor;
  45308. const Nd = class ParentSchemaAwareVisitor {
  45309. parent;
  45310. constructor({ parent: s }) {
  45311. this.parent = s;
  45312. }
  45313. },
  45314. isJSONReferenceLikeElement = (s) => Fu(s) && s.hasKey('$ref');
  45315. class ItemsVisitor extends Mixin(Id, Nd, Ed) {
  45316. ObjectElement(s) {
  45317. const o = isJSONReferenceLikeElement(s)
  45318. ? ['document', 'objects', 'JSONReference']
  45319. : ['document', 'objects', 'JSONSchema'];
  45320. return (this.element = this.toRefractedElement(o, s)), Ju;
  45321. }
  45322. ArrayElement(s) {
  45323. return (
  45324. (this.element = new Cu.wE()),
  45325. this.element.classes.push('json-schema-items'),
  45326. s.forEach((s) => {
  45327. const o = isJSONReferenceLikeElement(s)
  45328. ? ['document', 'objects', 'JSONReference']
  45329. : ['document', 'objects', 'JSONSchema'],
  45330. i = this.toRefractedElement(o, s);
  45331. this.element.push(i);
  45332. }),
  45333. this.copyMetaAndAttributes(s, this.element),
  45334. Ju
  45335. );
  45336. }
  45337. }
  45338. const Rd = ItemsVisitor;
  45339. const Dd = class RequiredVisitor extends Ed {
  45340. ArrayElement(s) {
  45341. const o = this.enter(s);
  45342. return this.element.classes.push('json-schema-required'), o;
  45343. }
  45344. };
  45345. const Ld = _curry1(function allPass(s) {
  45346. return za(Ca(Ll, 0, Fl('length', s)), function () {
  45347. for (var o = 0, i = s.length; o < i; ) {
  45348. if (!s[o].apply(this, arguments)) return !1;
  45349. o += 1;
  45350. }
  45351. return !0;
  45352. });
  45353. });
  45354. const Bd = _curry1(function isNotEmpty(s) {
  45355. return !gp(s);
  45356. });
  45357. const Fd = _curry2(function or(s, o) {
  45358. return s || o;
  45359. });
  45360. var $d = Ml(
  45361. za(
  45362. 1,
  45363. gu(
  45364. vu,
  45365. _curry2(function either(s, o) {
  45366. return _isFunction(s)
  45367. ? function _either() {
  45368. return s.apply(this, arguments) || o.apply(this, arguments);
  45369. }
  45370. : Pl(Fd)(s, o);
  45371. })(bu, Wl)
  45372. )
  45373. )
  45374. );
  45375. const Vd = Ld([Yl, $d, Bd]);
  45376. const Ud = class PatternedFieldsVisitor extends Id {
  45377. specPath;
  45378. ignoredFields;
  45379. fieldPatternPredicate = es_F;
  45380. constructor({ specPath: s, ignoredFields: o, fieldPatternPredicate: i, ...u }) {
  45381. super({ ...u }),
  45382. (this.specPath = s),
  45383. (this.ignoredFields = o || []),
  45384. 'function' == typeof i && (this.fieldPatternPredicate = i);
  45385. }
  45386. ObjectElement(s) {
  45387. return (
  45388. s.forEach((s, o, i) => {
  45389. if (
  45390. !this.ignoredFields.includes(serializers_value(o)) &&
  45391. this.fieldPatternPredicate(serializers_value(o))
  45392. ) {
  45393. const u = this.specPath(s),
  45394. _ = this.toRefractedElement(u, s),
  45395. w = new Cu.Pr(cloneDeep(o), _);
  45396. this.copyMetaAndAttributes(i, w),
  45397. w.classes.push('patterned-field'),
  45398. this.element.content.push(w);
  45399. } else
  45400. this.ignoredFields.includes(serializers_value(o)) ||
  45401. this.element.content.push(cloneDeep(i));
  45402. }),
  45403. this.copyMetaAndAttributes(s, this.element),
  45404. Ju
  45405. );
  45406. }
  45407. };
  45408. const Wd = class MapVisitor extends Ud {
  45409. constructor(s) {
  45410. super(s), (this.fieldPatternPredicate = Vd);
  45411. }
  45412. };
  45413. class PropertiesVisitor extends Mixin(Wd, Nd, Ed) {
  45414. constructor(s) {
  45415. super(s),
  45416. (this.element = new Cu.Sh()),
  45417. this.element.classes.push('json-schema-properties'),
  45418. (this.specPath = (s) =>
  45419. isJSONReferenceLikeElement(s)
  45420. ? ['document', 'objects', 'JSONReference']
  45421. : ['document', 'objects', 'JSONSchema']);
  45422. }
  45423. }
  45424. const Kd = PropertiesVisitor;
  45425. class PatternPropertiesVisitor extends Mixin(Wd, Nd, Ed) {
  45426. constructor(s) {
  45427. super(s),
  45428. (this.element = new Cu.Sh()),
  45429. this.element.classes.push('json-schema-patternProperties'),
  45430. (this.specPath = (s) =>
  45431. isJSONReferenceLikeElement(s)
  45432. ? ['document', 'objects', 'JSONReference']
  45433. : ['document', 'objects', 'JSONSchema']);
  45434. }
  45435. }
  45436. const Hd = PatternPropertiesVisitor;
  45437. class DependenciesVisitor extends Mixin(Wd, Nd, Ed) {
  45438. constructor(s) {
  45439. super(s),
  45440. (this.element = new Cu.Sh()),
  45441. this.element.classes.push('json-schema-dependencies'),
  45442. (this.specPath = (s) =>
  45443. isJSONReferenceLikeElement(s)
  45444. ? ['document', 'objects', 'JSONReference']
  45445. : ['document', 'objects', 'JSONSchema']);
  45446. }
  45447. }
  45448. const Jd = DependenciesVisitor;
  45449. const Gd = class EnumVisitor extends Ed {
  45450. ArrayElement(s) {
  45451. const o = this.enter(s);
  45452. return this.element.classes.push('json-schema-enum'), o;
  45453. }
  45454. };
  45455. const Yd = class TypeVisitor extends Ed {
  45456. StringElement(s) {
  45457. const o = this.enter(s);
  45458. return this.element.classes.push('json-schema-type'), o;
  45459. }
  45460. ArrayElement(s) {
  45461. const o = this.enter(s);
  45462. return this.element.classes.push('json-schema-type'), o;
  45463. }
  45464. };
  45465. class AllOfVisitor extends Mixin(Id, Nd, Ed) {
  45466. constructor(s) {
  45467. super(s), (this.element = new Cu.wE()), this.element.classes.push('json-schema-allOf');
  45468. }
  45469. ArrayElement(s) {
  45470. return (
  45471. s.forEach((s) => {
  45472. const o = isJSONReferenceLikeElement(s)
  45473. ? ['document', 'objects', 'JSONReference']
  45474. : ['document', 'objects', 'JSONSchema'],
  45475. i = this.toRefractedElement(o, s);
  45476. this.element.push(i);
  45477. }),
  45478. this.copyMetaAndAttributes(s, this.element),
  45479. Ju
  45480. );
  45481. }
  45482. }
  45483. const Xd = AllOfVisitor;
  45484. class AnyOfVisitor extends Mixin(Id, Nd, Ed) {
  45485. constructor(s) {
  45486. super(s), (this.element = new Cu.wE()), this.element.classes.push('json-schema-anyOf');
  45487. }
  45488. ArrayElement(s) {
  45489. return (
  45490. s.forEach((s) => {
  45491. const o = isJSONReferenceLikeElement(s)
  45492. ? ['document', 'objects', 'JSONReference']
  45493. : ['document', 'objects', 'JSONSchema'],
  45494. i = this.toRefractedElement(o, s);
  45495. this.element.push(i);
  45496. }),
  45497. this.copyMetaAndAttributes(s, this.element),
  45498. Ju
  45499. );
  45500. }
  45501. }
  45502. const Zd = AnyOfVisitor;
  45503. class OneOfVisitor extends Mixin(Id, Nd, Ed) {
  45504. constructor(s) {
  45505. super(s), (this.element = new Cu.wE()), this.element.classes.push('json-schema-oneOf');
  45506. }
  45507. ArrayElement(s) {
  45508. return (
  45509. s.forEach((s) => {
  45510. const o = isJSONReferenceLikeElement(s)
  45511. ? ['document', 'objects', 'JSONReference']
  45512. : ['document', 'objects', 'JSONSchema'],
  45513. i = this.toRefractedElement(o, s);
  45514. this.element.push(i);
  45515. }),
  45516. this.copyMetaAndAttributes(s, this.element),
  45517. Ju
  45518. );
  45519. }
  45520. }
  45521. const Qd = OneOfVisitor;
  45522. class DefinitionsVisitor extends Mixin(Wd, Nd, Ed) {
  45523. constructor(s) {
  45524. super(s),
  45525. (this.element = new Cu.Sh()),
  45526. this.element.classes.push('json-schema-definitions'),
  45527. (this.specPath = (s) =>
  45528. isJSONReferenceLikeElement(s)
  45529. ? ['document', 'objects', 'JSONReference']
  45530. : ['document', 'objects', 'JSONSchema']);
  45531. }
  45532. }
  45533. const ef = DefinitionsVisitor;
  45534. class LinksVisitor extends Mixin(Id, Nd, Ed) {
  45535. constructor(s) {
  45536. super(s), (this.element = new Cu.wE()), this.element.classes.push('json-schema-links');
  45537. }
  45538. ArrayElement(s) {
  45539. return (
  45540. s.forEach((s) => {
  45541. const o = this.toRefractedElement(['document', 'objects', 'LinkDescription'], s);
  45542. this.element.push(o);
  45543. }),
  45544. this.copyMetaAndAttributes(s, this.element),
  45545. Ju
  45546. );
  45547. }
  45548. }
  45549. const rf = LinksVisitor;
  45550. class JSONReferenceVisitor extends Mixin(Md, Ed) {
  45551. constructor(s) {
  45552. super(s),
  45553. (this.element = new Gh()),
  45554. (this.specPath = Tl(['document', 'objects', 'JSONReference']));
  45555. }
  45556. ObjectElement(s) {
  45557. const o = Md.prototype.ObjectElement.call(this, s);
  45558. return Ru(this.element.$ref) && this.element.classes.push('reference-element'), o;
  45559. }
  45560. }
  45561. const of = JSONReferenceVisitor;
  45562. const af = class $RefVisitor extends Ed {
  45563. StringElement(s) {
  45564. const o = this.enter(s);
  45565. return this.element.classes.push('reference-value'), o;
  45566. }
  45567. };
  45568. const lf = _curry3(function ifElse(s, o, i) {
  45569. return za(Math.max(s.length, o.length, i.length), function _ifElse() {
  45570. return s.apply(this, arguments) ? o.apply(this, arguments) : i.apply(this, arguments);
  45571. });
  45572. });
  45573. const cf = _curry1(function comparator(s) {
  45574. return function (o, i) {
  45575. return s(o, i) ? -1 : s(i, o) ? 1 : 0;
  45576. };
  45577. });
  45578. var uf = _curry2(function sort(s, o) {
  45579. return Array.prototype.slice.call(o, 0).sort(s);
  45580. });
  45581. const hf = uf;
  45582. var df = _curry1(function (s) {
  45583. return _nth(0, s);
  45584. });
  45585. const mf = df;
  45586. const gf = _curry1(_reduced);
  45587. const yf = Ml(ld);
  45588. const bf = gu(yp, Bd);
  45589. function _toConsumableArray(s) {
  45590. return (
  45591. (function _arrayWithoutHoles(s) {
  45592. if (Array.isArray(s)) return _arrayLikeToArray(s);
  45593. })(s) ||
  45594. (function _iterableToArray(s) {
  45595. if (
  45596. ('undefined' != typeof Symbol && null != s[Symbol.iterator]) ||
  45597. null != s['@@iterator']
  45598. )
  45599. return Array.from(s);
  45600. })(s) ||
  45601. (function _unsupportedIterableToArray(s, o) {
  45602. if (s) {
  45603. if ('string' == typeof s) return _arrayLikeToArray(s, o);
  45604. var i = {}.toString.call(s).slice(8, -1);
  45605. return (
  45606. 'Object' === i && s.constructor && (i = s.constructor.name),
  45607. 'Map' === i || 'Set' === i
  45608. ? Array.from(s)
  45609. : 'Arguments' === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)
  45610. ? _arrayLikeToArray(s, o)
  45611. : void 0
  45612. );
  45613. }
  45614. })(s) ||
  45615. (function _nonIterableSpread() {
  45616. throw new TypeError(
  45617. 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  45618. );
  45619. })()
  45620. );
  45621. }
  45622. function _arrayLikeToArray(s, o) {
  45623. (null == o || o > s.length) && (o = s.length);
  45624. for (var i = 0, u = Array(o); i < o; i++) u[i] = s[i];
  45625. return u;
  45626. }
  45627. var _f = pipe(
  45628. hf(
  45629. cf(function (s, o) {
  45630. return s.length > o.length;
  45631. })
  45632. ),
  45633. mf,
  45634. Da('length')
  45635. ),
  45636. Sf = Ja(function (s, o, i) {
  45637. var u = i.apply(void 0, _toConsumableArray(s));
  45638. return yf(u) ? gf(u) : o;
  45639. });
  45640. const xf = lf(
  45641. bf,
  45642. function dispatchImpl(s) {
  45643. var o = _f(s);
  45644. return za(o, function () {
  45645. for (var o = arguments.length, i = new Array(o), u = 0; u < o; u++)
  45646. i[u] = arguments[u];
  45647. return Ca(Sf(i), void 0, s);
  45648. });
  45649. },
  45650. Nl
  45651. );
  45652. const kf = class AlternatingVisitor extends Id {
  45653. alternator;
  45654. constructor({ alternator: s, ...o }) {
  45655. super({ ...o }), (this.alternator = s);
  45656. }
  45657. enter(s) {
  45658. const o = this.alternator.map(({ predicate: s, specPath: o }) => lf(s, Tl(o), Nl)),
  45659. i = xf(o)(s);
  45660. return (this.element = this.toRefractedElement(i, s)), Ju;
  45661. }
  45662. };
  45663. const Cf = class SchemaOrReferenceVisitor extends kf {
  45664. constructor(s) {
  45665. super(s),
  45666. (this.alternator = [
  45667. {
  45668. predicate: isJSONReferenceLikeElement,
  45669. specPath: ['document', 'objects', 'JSONReference']
  45670. },
  45671. { predicate: es_T, specPath: ['document', 'objects', 'JSONSchema'] }
  45672. ]);
  45673. }
  45674. };
  45675. class MediaVisitor extends Mixin(Md, Ed) {
  45676. constructor(s) {
  45677. super(s),
  45678. (this.element = new Qh()),
  45679. (this.specPath = Tl(['document', 'objects', 'Media']));
  45680. }
  45681. }
  45682. const Of = MediaVisitor;
  45683. class LinkDescriptionVisitor extends Mixin(Md, Ed) {
  45684. constructor(s) {
  45685. super(s),
  45686. (this.element = new td()),
  45687. (this.specPath = Tl(['document', 'objects', 'LinkDescription']));
  45688. }
  45689. }
  45690. const jf = {
  45691. visitors: {
  45692. value: Ed,
  45693. JSONSchemaOrJSONReferenceVisitor: Cf,
  45694. document: {
  45695. objects: {
  45696. JSONSchema: {
  45697. $visitor: Td,
  45698. fixedFields: {
  45699. id: { $ref: '#/visitors/value' },
  45700. $schema: { $ref: '#/visitors/value' },
  45701. multipleOf: { $ref: '#/visitors/value' },
  45702. maximum: { $ref: '#/visitors/value' },
  45703. exclusiveMaximum: { $ref: '#/visitors/value' },
  45704. minimum: { $ref: '#/visitors/value' },
  45705. exclusiveMinimum: { $ref: '#/visitors/value' },
  45706. maxLength: { $ref: '#/visitors/value' },
  45707. minLength: { $ref: '#/visitors/value' },
  45708. pattern: { $ref: '#/visitors/value' },
  45709. additionalItems: Cf,
  45710. items: Rd,
  45711. maxItems: { $ref: '#/visitors/value' },
  45712. minItems: { $ref: '#/visitors/value' },
  45713. uniqueItems: { $ref: '#/visitors/value' },
  45714. maxProperties: { $ref: '#/visitors/value' },
  45715. minProperties: { $ref: '#/visitors/value' },
  45716. required: Dd,
  45717. properties: Kd,
  45718. additionalProperties: Cf,
  45719. patternProperties: Hd,
  45720. dependencies: Jd,
  45721. enum: Gd,
  45722. type: Yd,
  45723. allOf: Xd,
  45724. anyOf: Zd,
  45725. oneOf: Qd,
  45726. not: Cf,
  45727. definitions: ef,
  45728. title: { $ref: '#/visitors/value' },
  45729. description: { $ref: '#/visitors/value' },
  45730. default: { $ref: '#/visitors/value' },
  45731. format: { $ref: '#/visitors/value' },
  45732. base: { $ref: '#/visitors/value' },
  45733. links: rf,
  45734. media: { $ref: '#/visitors/document/objects/Media' },
  45735. readOnly: { $ref: '#/visitors/value' }
  45736. }
  45737. },
  45738. JSONReference: { $visitor: of, fixedFields: { $ref: af } },
  45739. Media: {
  45740. $visitor: Of,
  45741. fixedFields: {
  45742. binaryEncoding: { $ref: '#/visitors/value' },
  45743. type: { $ref: '#/visitors/value' }
  45744. }
  45745. },
  45746. LinkDescription: {
  45747. $visitor: LinkDescriptionVisitor,
  45748. fixedFields: {
  45749. href: { $ref: '#/visitors/value' },
  45750. rel: { $ref: '#/visitors/value' },
  45751. title: { $ref: '#/visitors/value' },
  45752. targetSchema: Cf,
  45753. mediaType: { $ref: '#/visitors/value' },
  45754. method: { $ref: '#/visitors/value' },
  45755. encType: { $ref: '#/visitors/value' },
  45756. schema: Cf
  45757. }
  45758. }
  45759. }
  45760. }
  45761. }
  45762. },
  45763. traversal_visitor_getNodeType = (s) => {
  45764. if (Nu(s)) return `${s.element.charAt(0).toUpperCase() + s.element.slice(1)}Element`;
  45765. },
  45766. Pf = {
  45767. JSONSchemaDraft4Element: ['content'],
  45768. JSONReferenceElement: ['content'],
  45769. MediaElement: ['content'],
  45770. LinkDescriptionElement: ['content'],
  45771. ...Qu
  45772. },
  45773. Tf = helpers(
  45774. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  45775. (u) =>
  45776. u instanceof Jh || (s(u) && o('JSONSchemaDraft4', u) && i('object', u))
  45777. ),
  45778. Nf = helpers(
  45779. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  45780. (u) =>
  45781. u instanceof Gh || (s(u) && o('JSONReference', u) && i('object', u))
  45782. ),
  45783. Rf = helpers(
  45784. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  45785. (u) =>
  45786. u instanceof Qh || (s(u) && o('media', u) && i('object', u))
  45787. ),
  45788. Df = helpers(
  45789. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  45790. (u) =>
  45791. u instanceof td || (s(u) && o('linkDescription', u) && i('object', u))
  45792. ),
  45793. Ff = {
  45794. namespace: (s) => {
  45795. const { base: o } = s;
  45796. return (
  45797. o.register('jSONSchemaDraft4', Jh),
  45798. o.register('jSONReference', Gh),
  45799. o.register('media', Qh),
  45800. o.register('linkDescription', td),
  45801. o
  45802. );
  45803. }
  45804. },
  45805. Vf = Ff,
  45806. refractor_toolbox = () => {
  45807. const s = createNamespace(Vf);
  45808. return { predicates: { ...ce, isStringElement: Ru }, namespace: s };
  45809. },
  45810. refractor_refract = (
  45811. s,
  45812. {
  45813. specPath: o = ['visitors', 'document', 'objects', 'JSONSchema', '$visitor'],
  45814. plugins: i = [],
  45815. specificationObj: u = jf
  45816. } = {}
  45817. ) => {
  45818. const _ = (0, Cu.e)(s),
  45819. w = dereference(u),
  45820. x = new (cp(o, w))({ specObj: w });
  45821. return (
  45822. visitor_visit(_, x),
  45823. dispatchPluginsSync(x.element, i, {
  45824. toolboxCreator: refractor_toolbox,
  45825. visitorOptions: { keyMap: Pf, nodeTypeGetter: traversal_visitor_getNodeType }
  45826. })
  45827. );
  45828. },
  45829. refractor_createRefractor =
  45830. (s) =>
  45831. (o, i = {}) =>
  45832. refractor_refract(o, { specPath: s, ...i });
  45833. (Jh.refract = refractor_createRefractor([
  45834. 'visitors',
  45835. 'document',
  45836. 'objects',
  45837. 'JSONSchema',
  45838. '$visitor'
  45839. ])),
  45840. (Gh.refract = refractor_createRefractor([
  45841. 'visitors',
  45842. 'document',
  45843. 'objects',
  45844. 'JSONReference',
  45845. '$visitor'
  45846. ])),
  45847. (Qh.refract = refractor_createRefractor([
  45848. 'visitors',
  45849. 'document',
  45850. 'objects',
  45851. 'Media',
  45852. '$visitor'
  45853. ])),
  45854. (td.refract = refractor_createRefractor([
  45855. 'visitors',
  45856. 'document',
  45857. 'objects',
  45858. 'LinkDescription',
  45859. '$visitor'
  45860. ]));
  45861. const Wf = class Schema_Schema extends Jh {
  45862. constructor(s, o, i) {
  45863. super(s, o, i), (this.element = 'schema'), this.classes.push('json-schema-draft-4');
  45864. }
  45865. get idProp() {
  45866. throw new Hh('idProp getter in Schema class is not not supported.');
  45867. }
  45868. set idProp(s) {
  45869. throw new Hh('idProp setter in Schema class is not not supported.');
  45870. }
  45871. get $schema() {
  45872. throw new Hh('$schema getter in Schema class is not not supported.');
  45873. }
  45874. set $schema(s) {
  45875. throw new Hh('$schema setter in Schema class is not not supported.');
  45876. }
  45877. get additionalItems() {
  45878. return this.get('additionalItems');
  45879. }
  45880. set additionalItems(s) {
  45881. this.set('additionalItems', s);
  45882. }
  45883. get items() {
  45884. return this.get('items');
  45885. }
  45886. set items(s) {
  45887. this.set('items', s);
  45888. }
  45889. get additionalProperties() {
  45890. return this.get('additionalProperties');
  45891. }
  45892. set additionalProperties(s) {
  45893. this.set('additionalProperties', s);
  45894. }
  45895. get patternProperties() {
  45896. throw new Hh('patternProperties getter in Schema class is not not supported.');
  45897. }
  45898. set patternProperties(s) {
  45899. throw new Hh('patternProperties setter in Schema class is not not supported.');
  45900. }
  45901. get dependencies() {
  45902. throw new Hh('dependencies getter in Schema class is not not supported.');
  45903. }
  45904. set dependencies(s) {
  45905. throw new Hh('dependencies setter in Schema class is not not supported.');
  45906. }
  45907. get type() {
  45908. return this.get('type');
  45909. }
  45910. set type(s) {
  45911. this.set('type', s);
  45912. }
  45913. get not() {
  45914. return this.get('not');
  45915. }
  45916. set not(s) {
  45917. this.set('not', s);
  45918. }
  45919. get definitions() {
  45920. throw new Hh('definitions getter in Schema class is not not supported.');
  45921. }
  45922. set definitions(s) {
  45923. throw new Hh('definitions setter in Schema class is not not supported.');
  45924. }
  45925. get base() {
  45926. throw new Hh('base getter in Schema class is not not supported.');
  45927. }
  45928. set base(s) {
  45929. throw new Hh('base setter in Schema class is not not supported.');
  45930. }
  45931. get links() {
  45932. throw new Hh('links getter in Schema class is not not supported.');
  45933. }
  45934. set links(s) {
  45935. throw new Hh('links setter in Schema class is not not supported.');
  45936. }
  45937. get media() {
  45938. throw new Hh('media getter in Schema class is not not supported.');
  45939. }
  45940. set media(s) {
  45941. throw new Hh('media setter in Schema class is not not supported.');
  45942. }
  45943. get nullable() {
  45944. return this.get('nullable');
  45945. }
  45946. set nullable(s) {
  45947. this.set('nullable', s);
  45948. }
  45949. get discriminator() {
  45950. return this.get('discriminator');
  45951. }
  45952. set discriminator(s) {
  45953. this.set('discriminator', s);
  45954. }
  45955. get writeOnly() {
  45956. return this.get('writeOnly');
  45957. }
  45958. set writeOnly(s) {
  45959. this.set('writeOnly', s);
  45960. }
  45961. get xml() {
  45962. return this.get('xml');
  45963. }
  45964. set xml(s) {
  45965. this.set('xml', s);
  45966. }
  45967. get externalDocs() {
  45968. return this.get('externalDocs');
  45969. }
  45970. set externalDocs(s) {
  45971. this.set('externalDocs', s);
  45972. }
  45973. get example() {
  45974. return this.get('example');
  45975. }
  45976. set example(s) {
  45977. this.set('example', s);
  45978. }
  45979. get deprecated() {
  45980. return this.get('deprecated');
  45981. }
  45982. set deprecated(s) {
  45983. this.set('deprecated', s);
  45984. }
  45985. };
  45986. class SecurityRequirement extends Cu.Sh {
  45987. constructor(s, o, i) {
  45988. super(s, o, i), (this.element = 'securityRequirement');
  45989. }
  45990. }
  45991. const Hf = SecurityRequirement;
  45992. class SecurityScheme extends Cu.Sh {
  45993. constructor(s, o, i) {
  45994. super(s, o, i), (this.element = 'securityScheme');
  45995. }
  45996. get type() {
  45997. return this.get('type');
  45998. }
  45999. set type(s) {
  46000. this.set('type', s);
  46001. }
  46002. get description() {
  46003. return this.get('description');
  46004. }
  46005. set description(s) {
  46006. this.set('description', s);
  46007. }
  46008. get name() {
  46009. return this.get('name');
  46010. }
  46011. set name(s) {
  46012. this.set('name', s);
  46013. }
  46014. get in() {
  46015. return this.get('in');
  46016. }
  46017. set in(s) {
  46018. this.set('in', s);
  46019. }
  46020. get scheme() {
  46021. return this.get('scheme');
  46022. }
  46023. set scheme(s) {
  46024. this.set('scheme', s);
  46025. }
  46026. get bearerFormat() {
  46027. return this.get('bearerFormat');
  46028. }
  46029. set bearerFormat(s) {
  46030. this.set('bearerFormat', s);
  46031. }
  46032. get flows() {
  46033. return this.get('flows');
  46034. }
  46035. set flows(s) {
  46036. this.set('flows', s);
  46037. }
  46038. get openIdConnectUrl() {
  46039. return this.get('openIdConnectUrl');
  46040. }
  46041. set openIdConnectUrl(s) {
  46042. this.set('openIdConnectUrl', s);
  46043. }
  46044. }
  46045. const Jf = SecurityScheme;
  46046. class Server extends Cu.Sh {
  46047. constructor(s, o, i) {
  46048. super(s, o, i), (this.element = 'server');
  46049. }
  46050. get url() {
  46051. return this.get('url');
  46052. }
  46053. set url(s) {
  46054. this.set('url', s);
  46055. }
  46056. get description() {
  46057. return this.get('description');
  46058. }
  46059. set description(s) {
  46060. this.set('description', s);
  46061. }
  46062. get variables() {
  46063. return this.get('variables');
  46064. }
  46065. set variables(s) {
  46066. this.set('variables', s);
  46067. }
  46068. }
  46069. const Gf = Server;
  46070. class ServerVariable extends Cu.Sh {
  46071. constructor(s, o, i) {
  46072. super(s, o, i), (this.element = 'serverVariable');
  46073. }
  46074. get enum() {
  46075. return this.get('enum');
  46076. }
  46077. set enum(s) {
  46078. this.set('enum', s);
  46079. }
  46080. get default() {
  46081. return this.get('default');
  46082. }
  46083. set default(s) {
  46084. this.set('default', s);
  46085. }
  46086. get description() {
  46087. return this.get('description');
  46088. }
  46089. set description(s) {
  46090. this.set('description', s);
  46091. }
  46092. }
  46093. const Xf = ServerVariable;
  46094. class Tag extends Cu.Sh {
  46095. constructor(s, o, i) {
  46096. super(s, o, i), (this.element = 'tag');
  46097. }
  46098. get name() {
  46099. return this.get('name');
  46100. }
  46101. set name(s) {
  46102. this.set('name', s);
  46103. }
  46104. get description() {
  46105. return this.get('description');
  46106. }
  46107. set description(s) {
  46108. this.set('description', s);
  46109. }
  46110. get externalDocs() {
  46111. return this.get('externalDocs');
  46112. }
  46113. set externalDocs(s) {
  46114. this.set('externalDocs', s);
  46115. }
  46116. }
  46117. const Qf = Tag;
  46118. class Xml extends Cu.Sh {
  46119. constructor(s, o, i) {
  46120. super(s, o, i), (this.element = 'xml');
  46121. }
  46122. get name() {
  46123. return this.get('name');
  46124. }
  46125. set name(s) {
  46126. this.set('name', s);
  46127. }
  46128. get namespace() {
  46129. return this.get('namespace');
  46130. }
  46131. set namespace(s) {
  46132. this.set('namespace', s);
  46133. }
  46134. get prefix() {
  46135. return this.get('prefix');
  46136. }
  46137. set prefix(s) {
  46138. this.set('prefix', s);
  46139. }
  46140. get attribute() {
  46141. return this.get('attribute');
  46142. }
  46143. set attribute(s) {
  46144. this.set('attribute', s);
  46145. }
  46146. get wrapped() {
  46147. return this.get('wrapped');
  46148. }
  46149. set wrapped(s) {
  46150. this.set('wrapped', s);
  46151. }
  46152. }
  46153. const em = Xml;
  46154. const tm = class visitors_Visitor_Visitor {
  46155. element;
  46156. constructor(s = {}) {
  46157. Object.assign(this, s);
  46158. }
  46159. copyMetaAndAttributes(s, o) {
  46160. (s.meta.length > 0 || o.meta.length > 0) &&
  46161. ((o.meta = deepmerge(o.meta, s.meta)),
  46162. hasElementSourceMap(s) && o.meta.set('sourceMap', s.meta.get('sourceMap'))),
  46163. (s.attributes.length > 0 || s.meta.length > 0) &&
  46164. (o.attributes = deepmerge(o.attributes, s.attributes));
  46165. }
  46166. };
  46167. const rm = class FallbackVisitor_FallbackVisitor extends tm {
  46168. enter(s) {
  46169. return (this.element = cloneDeep(s)), Ju;
  46170. }
  46171. };
  46172. const nm = class SpecificationVisitor_SpecificationVisitor extends tm {
  46173. specObj;
  46174. passingOptionsNames = ['specObj', 'openApiGenericElement', 'openApiSemanticElement'];
  46175. openApiGenericElement;
  46176. openApiSemanticElement;
  46177. constructor({
  46178. specObj: s,
  46179. passingOptionsNames: o,
  46180. openApiGenericElement: i,
  46181. openApiSemanticElement: u,
  46182. ..._
  46183. }) {
  46184. super({ ..._ }),
  46185. (this.specObj = s),
  46186. (this.openApiGenericElement = i),
  46187. (this.openApiSemanticElement = u),
  46188. Array.isArray(o) && (this.passingOptionsNames = o);
  46189. }
  46190. retrievePassingOptions() {
  46191. return Ad(this.passingOptionsNames, this);
  46192. }
  46193. retrieveFixedFields(s) {
  46194. const o = cp(['visitors', ...s, 'fixedFields'], this.specObj);
  46195. return 'object' == typeof o && null !== o ? Object.keys(o) : [];
  46196. }
  46197. retrieveVisitor(s) {
  46198. return Xo(Wl, ['visitors', ...s], this.specObj)
  46199. ? cp(['visitors', ...s], this.specObj)
  46200. : cp(['visitors', ...s, '$visitor'], this.specObj);
  46201. }
  46202. retrieveVisitorInstance(s, o = {}) {
  46203. const i = this.retrievePassingOptions();
  46204. return new (this.retrieveVisitor(s))({ ...i, ...o });
  46205. }
  46206. toRefractedElement(s, o, i = {}) {
  46207. const u = this.retrieveVisitorInstance(s, i);
  46208. return u instanceof rm && (null == u ? void 0 : u.constructor) === rm
  46209. ? cloneDeep(o)
  46210. : (visitor_visit(o, u, i), u.element);
  46211. }
  46212. },
  46213. isReferenceLikeElement = (s) => Fu(s) && s.hasKey('$ref'),
  46214. sm = Fu,
  46215. om = Fu,
  46216. isOpenApiExtension = (s) => Ru(s.key) && Fp('x-', serializers_value(s.key));
  46217. const im = class FixedFieldsVisitor_FixedFieldsVisitor extends nm {
  46218. specPath;
  46219. ignoredFields;
  46220. canSupportSpecificationExtensions = !0;
  46221. specificationExtensionPredicate = isOpenApiExtension;
  46222. constructor({
  46223. specPath: s,
  46224. ignoredFields: o,
  46225. canSupportSpecificationExtensions: i,
  46226. specificationExtensionPredicate: u,
  46227. ..._
  46228. }) {
  46229. super({ ..._ }),
  46230. (this.specPath = s),
  46231. (this.ignoredFields = o || []),
  46232. 'boolean' == typeof i && (this.canSupportSpecificationExtensions = i),
  46233. 'function' == typeof u && (this.specificationExtensionPredicate = u);
  46234. }
  46235. ObjectElement(s) {
  46236. const o = this.specPath(s),
  46237. i = this.retrieveFixedFields(o);
  46238. return (
  46239. s.forEach((s, u, _) => {
  46240. if (
  46241. Ru(u) &&
  46242. i.includes(serializers_value(u)) &&
  46243. !this.ignoredFields.includes(serializers_value(u))
  46244. ) {
  46245. const i = this.toRefractedElement([...o, 'fixedFields', serializers_value(u)], s),
  46246. w = new Cu.Pr(cloneDeep(u), i);
  46247. this.copyMetaAndAttributes(_, w),
  46248. w.classes.push('fixed-field'),
  46249. this.element.content.push(w);
  46250. } else if (
  46251. this.canSupportSpecificationExtensions &&
  46252. this.specificationExtensionPredicate(_)
  46253. ) {
  46254. const s = this.toRefractedElement(['document', 'extension'], _);
  46255. this.element.content.push(s);
  46256. } else
  46257. this.ignoredFields.includes(serializers_value(u)) ||
  46258. this.element.content.push(cloneDeep(_));
  46259. }),
  46260. this.copyMetaAndAttributes(s, this.element),
  46261. Ju
  46262. );
  46263. }
  46264. };
  46265. class OpenApi3_0Visitor extends Mixin(im, rm) {
  46266. constructor(s) {
  46267. super(s),
  46268. (this.element = new Oh()),
  46269. (this.specPath = Tl(['document', 'objects', 'OpenApi'])),
  46270. (this.canSupportSpecificationExtensions = !0);
  46271. }
  46272. ObjectElement(s) {
  46273. return im.prototype.ObjectElement.call(this, s);
  46274. }
  46275. }
  46276. const am = OpenApi3_0Visitor;
  46277. class OpenapiVisitor extends Mixin(nm, rm) {
  46278. StringElement(s) {
  46279. const o = new wh(serializers_value(s));
  46280. return this.copyMetaAndAttributes(s, o), (this.element = o), Ju;
  46281. }
  46282. }
  46283. const lm = OpenapiVisitor;
  46284. const cm = class SpecificationExtensionVisitor extends nm {
  46285. MemberElement(s) {
  46286. return (
  46287. (this.element = cloneDeep(s)),
  46288. this.element.classes.push('specification-extension'),
  46289. Ju
  46290. );
  46291. }
  46292. };
  46293. class InfoVisitor extends Mixin(im, rm) {
  46294. constructor(s) {
  46295. super(s),
  46296. (this.element = new rh()),
  46297. (this.specPath = Tl(['document', 'objects', 'Info'])),
  46298. (this.canSupportSpecificationExtensions = !0);
  46299. }
  46300. }
  46301. const um = InfoVisitor;
  46302. const pm = class VersionVisitor extends rm {
  46303. StringElement(s) {
  46304. const o = super.enter(s);
  46305. return (
  46306. this.element.classes.push('api-version'), this.element.classes.push('version'), o
  46307. );
  46308. }
  46309. };
  46310. class ContactVisitor extends Mixin(im, rm) {
  46311. constructor(s) {
  46312. super(s),
  46313. (this.element = new Gp()),
  46314. (this.specPath = Tl(['document', 'objects', 'Contact'])),
  46315. (this.canSupportSpecificationExtensions = !0);
  46316. }
  46317. }
  46318. const hm = ContactVisitor;
  46319. class LicenseVisitor extends Mixin(im, rm) {
  46320. constructor(s) {
  46321. super(s),
  46322. (this.element = new uh()),
  46323. (this.specPath = Tl(['document', 'objects', 'License'])),
  46324. (this.canSupportSpecificationExtensions = !0);
  46325. }
  46326. }
  46327. const dm = LicenseVisitor;
  46328. class LinkVisitor extends Mixin(im, rm) {
  46329. constructor(s) {
  46330. super(s),
  46331. (this.element = new dh()),
  46332. (this.specPath = Tl(['document', 'objects', 'Link'])),
  46333. (this.canSupportSpecificationExtensions = !0);
  46334. }
  46335. ObjectElement(s) {
  46336. const o = im.prototype.ObjectElement.call(this, s);
  46337. return (
  46338. (Ru(this.element.operationId) || Ru(this.element.operationRef)) &&
  46339. this.element.classes.push('reference-element'),
  46340. o
  46341. );
  46342. }
  46343. }
  46344. const fm = LinkVisitor;
  46345. const mm = class OperationRefVisitor extends rm {
  46346. StringElement(s) {
  46347. const o = super.enter(s);
  46348. return this.element.classes.push('reference-value'), o;
  46349. }
  46350. };
  46351. const gm = class OperationIdVisitor extends rm {
  46352. StringElement(s) {
  46353. const o = super.enter(s);
  46354. return this.element.classes.push('reference-value'), o;
  46355. }
  46356. };
  46357. const ym = class PatternedFieldsVisitor_PatternedFieldsVisitor extends nm {
  46358. specPath;
  46359. ignoredFields;
  46360. fieldPatternPredicate = es_F;
  46361. canSupportSpecificationExtensions = !1;
  46362. specificationExtensionPredicate = isOpenApiExtension;
  46363. constructor({
  46364. specPath: s,
  46365. ignoredFields: o,
  46366. fieldPatternPredicate: i,
  46367. canSupportSpecificationExtensions: u,
  46368. specificationExtensionPredicate: _,
  46369. ...w
  46370. }) {
  46371. super({ ...w }),
  46372. (this.specPath = s),
  46373. (this.ignoredFields = o || []),
  46374. 'function' == typeof i && (this.fieldPatternPredicate = i),
  46375. 'boolean' == typeof u && (this.canSupportSpecificationExtensions = u),
  46376. 'function' == typeof _ && (this.specificationExtensionPredicate = _);
  46377. }
  46378. ObjectElement(s) {
  46379. return (
  46380. s.forEach((s, o, i) => {
  46381. if (
  46382. this.canSupportSpecificationExtensions &&
  46383. this.specificationExtensionPredicate(i)
  46384. ) {
  46385. const s = this.toRefractedElement(['document', 'extension'], i);
  46386. this.element.content.push(s);
  46387. } else if (
  46388. !this.ignoredFields.includes(serializers_value(o)) &&
  46389. this.fieldPatternPredicate(serializers_value(o))
  46390. ) {
  46391. const u = this.specPath(s),
  46392. _ = this.toRefractedElement(u, s),
  46393. w = new Cu.Pr(cloneDeep(o), _);
  46394. this.copyMetaAndAttributes(i, w),
  46395. w.classes.push('patterned-field'),
  46396. this.element.content.push(w);
  46397. } else
  46398. this.ignoredFields.includes(serializers_value(o)) ||
  46399. this.element.content.push(cloneDeep(i));
  46400. }),
  46401. this.copyMetaAndAttributes(s, this.element),
  46402. Ju
  46403. );
  46404. }
  46405. };
  46406. const vm = class MapVisitor_MapVisitor extends ym {
  46407. constructor(s) {
  46408. super(s), (this.fieldPatternPredicate = Vd);
  46409. }
  46410. };
  46411. class LinkParameters extends Cu.Sh {
  46412. static primaryClass = 'link-parameters';
  46413. constructor(s, o, i) {
  46414. super(s, o, i), this.classes.push(LinkParameters.primaryClass);
  46415. }
  46416. }
  46417. const bm = LinkParameters;
  46418. class ParametersVisitor extends Mixin(vm, rm) {
  46419. constructor(s) {
  46420. super(s), (this.element = new bm()), (this.specPath = Tl(['value']));
  46421. }
  46422. }
  46423. const _m = ParametersVisitor;
  46424. class ServerVisitor extends Mixin(im, rm) {
  46425. constructor(s) {
  46426. super(s),
  46427. (this.element = new Gf()),
  46428. (this.specPath = Tl(['document', 'objects', 'Server'])),
  46429. (this.canSupportSpecificationExtensions = !0);
  46430. }
  46431. }
  46432. const Em = ServerVisitor;
  46433. const wm = class UrlVisitor extends rm {
  46434. StringElement(s) {
  46435. const o = super.enter(s);
  46436. return this.element.classes.push('server-url'), o;
  46437. }
  46438. };
  46439. class Servers extends Cu.wE {
  46440. static primaryClass = 'servers';
  46441. constructor(s, o, i) {
  46442. super(s, o, i), this.classes.push(Servers.primaryClass);
  46443. }
  46444. }
  46445. const Sm = Servers;
  46446. class ServersVisitor extends Mixin(nm, rm) {
  46447. constructor(s) {
  46448. super(s), (this.element = new Sm());
  46449. }
  46450. ArrayElement(s) {
  46451. return (
  46452. s.forEach((s) => {
  46453. const o = sm(s) ? ['document', 'objects', 'Server'] : ['value'],
  46454. i = this.toRefractedElement(o, s);
  46455. this.element.push(i);
  46456. }),
  46457. this.copyMetaAndAttributes(s, this.element),
  46458. Ju
  46459. );
  46460. }
  46461. }
  46462. const xm = ServersVisitor;
  46463. class ServerVariableVisitor extends Mixin(im, rm) {
  46464. constructor(s) {
  46465. super(s),
  46466. (this.element = new Xf()),
  46467. (this.specPath = Tl(['document', 'objects', 'ServerVariable'])),
  46468. (this.canSupportSpecificationExtensions = !0);
  46469. }
  46470. }
  46471. const km = ServerVariableVisitor;
  46472. class ServerVariables extends Cu.Sh {
  46473. static primaryClass = 'server-variables';
  46474. constructor(s, o, i) {
  46475. super(s, o, i), this.classes.push(ServerVariables.primaryClass);
  46476. }
  46477. }
  46478. const Cm = ServerVariables;
  46479. class VariablesVisitor extends Mixin(vm, rm) {
  46480. constructor(s) {
  46481. super(s),
  46482. (this.element = new Cm()),
  46483. (this.specPath = Tl(['document', 'objects', 'ServerVariable']));
  46484. }
  46485. }
  46486. const Om = VariablesVisitor;
  46487. class MediaTypeVisitor extends Mixin(im, rm) {
  46488. constructor(s) {
  46489. super(s),
  46490. (this.element = new fh()),
  46491. (this.specPath = Tl(['document', 'objects', 'MediaType'])),
  46492. (this.canSupportSpecificationExtensions = !0);
  46493. }
  46494. }
  46495. const Am = MediaTypeVisitor;
  46496. const jm = class AlternatingVisitor_AlternatingVisitor extends nm {
  46497. alternator;
  46498. constructor({ alternator: s, ...o }) {
  46499. super({ ...o }), (this.alternator = s || []);
  46500. }
  46501. enter(s) {
  46502. const o = this.alternator.map(({ predicate: s, specPath: o }) => lf(s, Tl(o), Nl)),
  46503. i = xf(o)(s);
  46504. return (this.element = this.toRefractedElement(i, s)), Ju;
  46505. }
  46506. },
  46507. Im = helpers(
  46508. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46509. (u) =>
  46510. u instanceof Hp || (s(u) && o('callback', u) && i('object', u))
  46511. ),
  46512. Pm = helpers(
  46513. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46514. (u) =>
  46515. u instanceof Jp || (s(u) && o('components', u) && i('object', u))
  46516. ),
  46517. Mm = helpers(
  46518. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46519. (u) =>
  46520. u instanceof Gp || (s(u) && o('contact', u) && i('object', u))
  46521. ),
  46522. Tm = helpers(
  46523. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46524. (u) =>
  46525. u instanceof Zp || (s(u) && o('example', u) && i('object', u))
  46526. ),
  46527. Nm = helpers(
  46528. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46529. (u) =>
  46530. u instanceof Qp || (s(u) && o('externalDocumentation', u) && i('object', u))
  46531. ),
  46532. Rm = helpers(
  46533. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46534. (u) =>
  46535. u instanceof th || (s(u) && o('header', u) && i('object', u))
  46536. ),
  46537. Dm = helpers(
  46538. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46539. (u) =>
  46540. u instanceof rh || (s(u) && o('info', u) && i('object', u))
  46541. ),
  46542. Lm = helpers(
  46543. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46544. (u) =>
  46545. u instanceof uh || (s(u) && o('license', u) && i('object', u))
  46546. ),
  46547. Bm = helpers(
  46548. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46549. (u) =>
  46550. u instanceof dh || (s(u) && o('link', u) && i('object', u))
  46551. ),
  46552. Fm = helpers(
  46553. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46554. (u) =>
  46555. u instanceof wh || (s(u) && o('openapi', u) && i('string', u))
  46556. ),
  46557. qm = helpers(
  46558. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i, hasClass: u }) =>
  46559. (_) =>
  46560. _ instanceof Oh || (s(_) && o('openApi3_0', _) && i('object', _) && u('api', _))
  46561. ),
  46562. $m = helpers(
  46563. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46564. (u) =>
  46565. u instanceof jh || (s(u) && o('operation', u) && i('object', u))
  46566. ),
  46567. Vm = helpers(
  46568. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46569. (u) =>
  46570. u instanceof Ih || (s(u) && o('parameter', u) && i('object', u))
  46571. ),
  46572. Um = helpers(
  46573. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46574. (u) =>
  46575. u instanceof Ph || (s(u) && o('pathItem', u) && i('object', u))
  46576. ),
  46577. zm = helpers(
  46578. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46579. (u) =>
  46580. u instanceof Rh || (s(u) && o('paths', u) && i('object', u))
  46581. ),
  46582. Wm = helpers(
  46583. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46584. (u) =>
  46585. u instanceof Dh || (s(u) && o('reference', u) && i('object', u))
  46586. ),
  46587. Km = helpers(
  46588. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46589. (u) =>
  46590. u instanceof Lh || (s(u) && o('requestBody', u) && i('object', u))
  46591. ),
  46592. Hm = helpers(
  46593. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46594. (u) =>
  46595. u instanceof Fh || (s(u) && o('response', u) && i('object', u))
  46596. ),
  46597. Jm = helpers(
  46598. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46599. (u) =>
  46600. u instanceof Kh || (s(u) && o('responses', u) && i('object', u))
  46601. ),
  46602. Gm = helpers(
  46603. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46604. (u) =>
  46605. u instanceof Wf || (s(u) && o('schema', u) && i('object', u))
  46606. ),
  46607. isBooleanJsonSchemaElement = (s) => Bu(s) && s.classes.includes('boolean-json-schema'),
  46608. Ym = helpers(
  46609. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46610. (u) =>
  46611. u instanceof Hf || (s(u) && o('securityRequirement', u) && i('object', u))
  46612. ),
  46613. Xm = helpers(
  46614. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46615. (u) =>
  46616. u instanceof Jf || (s(u) && o('securityScheme', u) && i('object', u))
  46617. ),
  46618. Zm = helpers(
  46619. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46620. (u) =>
  46621. u instanceof Gf || (s(u) && o('server', u) && i('object', u))
  46622. ),
  46623. Qm = helpers(
  46624. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46625. (u) =>
  46626. u instanceof Xf || (s(u) && o('serverVariable', u) && i('object', u))
  46627. ),
  46628. eg = helpers(
  46629. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  46630. (u) =>
  46631. u instanceof fh || (s(u) && o('mediaType', u) && i('object', u))
  46632. ),
  46633. rg = helpers(
  46634. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i, hasClass: u }) =>
  46635. (_) =>
  46636. _ instanceof Sm || (s(_) && o('array', _) && i('array', _) && u('servers', _))
  46637. );
  46638. class SchemaVisitor extends Mixin(jm, rm) {
  46639. constructor(s) {
  46640. super(s),
  46641. (this.alternator = [
  46642. {
  46643. predicate: isReferenceLikeElement,
  46644. specPath: ['document', 'objects', 'Reference']
  46645. },
  46646. { predicate: es_T, specPath: ['document', 'objects', 'Schema'] }
  46647. ]);
  46648. }
  46649. ObjectElement(s) {
  46650. const o = jm.prototype.enter.call(this, s);
  46651. return (
  46652. Wm(this.element) && this.element.setMetaProperty('referenced-element', 'schema'), o
  46653. );
  46654. }
  46655. }
  46656. const ng = SchemaVisitor;
  46657. class ExamplesVisitor extends Mixin(vm, rm) {
  46658. constructor(s) {
  46659. super(s),
  46660. (this.element = new Cu.Sh()),
  46661. this.element.classes.push('examples'),
  46662. (this.specPath = (s) =>
  46663. isReferenceLikeElement(s)
  46664. ? ['document', 'objects', 'Reference']
  46665. : ['document', 'objects', 'Example']),
  46666. (this.canSupportSpecificationExtensions = !0);
  46667. }
  46668. ObjectElement(s) {
  46669. const o = vm.prototype.ObjectElement.call(this, s);
  46670. return (
  46671. this.element.filter(Wm).forEach((s) => {
  46672. s.setMetaProperty('referenced-element', 'example');
  46673. }),
  46674. o
  46675. );
  46676. }
  46677. }
  46678. const sg = ExamplesVisitor;
  46679. class MediaTypeExamples extends Cu.Sh {
  46680. static primaryClass = 'media-type-examples';
  46681. constructor(s, o, i) {
  46682. super(s, o, i),
  46683. this.classes.push(MediaTypeExamples.primaryClass),
  46684. this.classes.push('examples');
  46685. }
  46686. }
  46687. const og = MediaTypeExamples;
  46688. const lg = class ExamplesVisitor_ExamplesVisitor extends sg {
  46689. constructor(s) {
  46690. super(s), (this.element = new og());
  46691. }
  46692. };
  46693. class MediaTypeEncoding extends Cu.Sh {
  46694. static primaryClass = 'media-type-encoding';
  46695. constructor(s, o, i) {
  46696. super(s, o, i), this.classes.push(MediaTypeEncoding.primaryClass);
  46697. }
  46698. }
  46699. const pg = MediaTypeEncoding;
  46700. class EncodingVisitor extends Mixin(vm, rm) {
  46701. constructor(s) {
  46702. super(s),
  46703. (this.element = new pg()),
  46704. (this.specPath = Tl(['document', 'objects', 'Encoding']));
  46705. }
  46706. }
  46707. const fg = EncodingVisitor;
  46708. class SecurityRequirementVisitor extends Mixin(vm, rm) {
  46709. constructor(s) {
  46710. super(s), (this.element = new Hf()), (this.specPath = Tl(['value']));
  46711. }
  46712. }
  46713. const mg = SecurityRequirementVisitor;
  46714. class Security extends Cu.wE {
  46715. static primaryClass = 'security';
  46716. constructor(s, o, i) {
  46717. super(s, o, i), this.classes.push(Security.primaryClass);
  46718. }
  46719. }
  46720. const gg = Security;
  46721. class SecurityVisitor extends Mixin(nm, rm) {
  46722. constructor(s) {
  46723. super(s), (this.element = new gg());
  46724. }
  46725. ArrayElement(s) {
  46726. return (
  46727. s.forEach((s) => {
  46728. if (Fu(s)) {
  46729. const o = this.toRefractedElement(
  46730. ['document', 'objects', 'SecurityRequirement'],
  46731. s
  46732. );
  46733. this.element.push(o);
  46734. } else this.element.push(cloneDeep(s));
  46735. }),
  46736. this.copyMetaAndAttributes(s, this.element),
  46737. Ju
  46738. );
  46739. }
  46740. }
  46741. const yg = SecurityVisitor;
  46742. class ComponentsVisitor extends Mixin(im, rm) {
  46743. constructor(s) {
  46744. super(s),
  46745. (this.element = new Jp()),
  46746. (this.specPath = Tl(['document', 'objects', 'Components'])),
  46747. (this.canSupportSpecificationExtensions = !0);
  46748. }
  46749. }
  46750. const _g = ComponentsVisitor;
  46751. class TagVisitor extends Mixin(im, rm) {
  46752. constructor(s) {
  46753. super(s),
  46754. (this.element = new Qf()),
  46755. (this.specPath = Tl(['document', 'objects', 'Tag'])),
  46756. (this.canSupportSpecificationExtensions = !0);
  46757. }
  46758. }
  46759. const xg = TagVisitor;
  46760. class ReferenceVisitor extends Mixin(im, rm) {
  46761. constructor(s) {
  46762. super(s),
  46763. (this.element = new Dh()),
  46764. (this.specPath = Tl(['document', 'objects', 'Reference'])),
  46765. (this.canSupportSpecificationExtensions = !1);
  46766. }
  46767. ObjectElement(s) {
  46768. const o = im.prototype.ObjectElement.call(this, s);
  46769. return Ru(this.element.$ref) && this.element.classes.push('reference-element'), o;
  46770. }
  46771. }
  46772. const kg = ReferenceVisitor;
  46773. const qg = class $RefVisitor_$RefVisitor extends rm {
  46774. StringElement(s) {
  46775. const o = super.enter(s);
  46776. return this.element.classes.push('reference-value'), o;
  46777. }
  46778. };
  46779. class ParameterVisitor extends Mixin(im, rm) {
  46780. constructor(s) {
  46781. super(s),
  46782. (this.element = new Ih()),
  46783. (this.specPath = Tl(['document', 'objects', 'Parameter'])),
  46784. (this.canSupportSpecificationExtensions = !0);
  46785. }
  46786. ObjectElement(s) {
  46787. const o = im.prototype.ObjectElement.call(this, s);
  46788. return (
  46789. Fu(this.element.contentProp) &&
  46790. this.element.contentProp.filter(eg).forEach((s, o) => {
  46791. s.setMetaProperty('media-type', serializers_value(o));
  46792. }),
  46793. o
  46794. );
  46795. }
  46796. }
  46797. const Vg = ParameterVisitor;
  46798. class SchemaVisitor_SchemaVisitor extends Mixin(jm, rm) {
  46799. constructor(s) {
  46800. super(s),
  46801. (this.alternator = [
  46802. {
  46803. predicate: isReferenceLikeElement,
  46804. specPath: ['document', 'objects', 'Reference']
  46805. },
  46806. { predicate: es_T, specPath: ['document', 'objects', 'Schema'] }
  46807. ]);
  46808. }
  46809. ObjectElement(s) {
  46810. const o = jm.prototype.enter.call(this, s);
  46811. return (
  46812. Wm(this.element) && this.element.setMetaProperty('referenced-element', 'schema'), o
  46813. );
  46814. }
  46815. }
  46816. const Ug = SchemaVisitor_SchemaVisitor;
  46817. class HeaderVisitor extends Mixin(im, rm) {
  46818. constructor(s) {
  46819. super(s),
  46820. (this.element = new th()),
  46821. (this.specPath = Tl(['document', 'objects', 'Header'])),
  46822. (this.canSupportSpecificationExtensions = !0);
  46823. }
  46824. }
  46825. const zg = HeaderVisitor;
  46826. class header_SchemaVisitor_SchemaVisitor extends Mixin(jm, rm) {
  46827. constructor(s) {
  46828. super(s),
  46829. (this.alternator = [
  46830. {
  46831. predicate: isReferenceLikeElement,
  46832. specPath: ['document', 'objects', 'Reference']
  46833. },
  46834. { predicate: es_T, specPath: ['document', 'objects', 'Schema'] }
  46835. ]);
  46836. }
  46837. ObjectElement(s) {
  46838. const o = jm.prototype.enter.call(this, s);
  46839. return (
  46840. Wm(this.element) && this.element.setMetaProperty('referenced-element', 'schema'), o
  46841. );
  46842. }
  46843. }
  46844. const Wg = header_SchemaVisitor_SchemaVisitor;
  46845. class HeaderExamples extends Cu.Sh {
  46846. static primaryClass = 'header-examples';
  46847. constructor(s, o, i) {
  46848. super(s, o, i),
  46849. this.classes.push(HeaderExamples.primaryClass),
  46850. this.classes.push('examples');
  46851. }
  46852. }
  46853. const Kg = HeaderExamples;
  46854. const Yg = class header_ExamplesVisitor_ExamplesVisitor extends sg {
  46855. constructor(s) {
  46856. super(s), (this.element = new Kg());
  46857. }
  46858. };
  46859. class ContentVisitor extends Mixin(vm, rm) {
  46860. constructor(s) {
  46861. super(s),
  46862. (this.element = new Cu.Sh()),
  46863. this.element.classes.push('content'),
  46864. (this.specPath = Tl(['document', 'objects', 'MediaType']));
  46865. }
  46866. }
  46867. const Xg = ContentVisitor;
  46868. class HeaderContent extends Cu.Sh {
  46869. static primaryClass = 'header-content';
  46870. constructor(s, o, i) {
  46871. super(s, o, i),
  46872. this.classes.push(HeaderContent.primaryClass),
  46873. this.classes.push('content');
  46874. }
  46875. }
  46876. const Zg = HeaderContent;
  46877. const ey = class ContentVisitor_ContentVisitor extends Xg {
  46878. constructor(s) {
  46879. super(s), (this.element = new Zg());
  46880. }
  46881. };
  46882. class schema_SchemaVisitor extends Mixin(im, rm) {
  46883. constructor(s) {
  46884. super(s),
  46885. (this.element = new Wf()),
  46886. (this.specPath = Tl(['document', 'objects', 'Schema'])),
  46887. (this.canSupportSpecificationExtensions = !0);
  46888. }
  46889. }
  46890. const ty = schema_SchemaVisitor,
  46891. { allOf: ry } = jf.visitors.document.objects.JSONSchema.fixedFields;
  46892. const ny = class AllOfVisitor_AllOfVisitor extends ry {
  46893. ArrayElement(s) {
  46894. const o = ry.prototype.ArrayElement.call(this, s);
  46895. return (
  46896. this.element.filter(Wm).forEach((s) => {
  46897. s.setMetaProperty('referenced-element', 'schema');
  46898. }),
  46899. o
  46900. );
  46901. }
  46902. },
  46903. { anyOf: sy } = jf.visitors.document.objects.JSONSchema.fixedFields;
  46904. const oy = class AnyOfVisitor_AnyOfVisitor extends sy {
  46905. ArrayElement(s) {
  46906. const o = sy.prototype.ArrayElement.call(this, s);
  46907. return (
  46908. this.element.filter(Wm).forEach((s) => {
  46909. s.setMetaProperty('referenced-element', 'schema');
  46910. }),
  46911. o
  46912. );
  46913. }
  46914. },
  46915. { oneOf: iy } = jf.visitors.document.objects.JSONSchema.fixedFields;
  46916. const ay = class OneOfVisitor_OneOfVisitor extends iy {
  46917. ArrayElement(s) {
  46918. const o = iy.prototype.ArrayElement.call(this, s);
  46919. return (
  46920. this.element.filter(Wm).forEach((s) => {
  46921. s.setMetaProperty('referenced-element', 'schema');
  46922. }),
  46923. o
  46924. );
  46925. }
  46926. },
  46927. { items: ly } = jf.visitors.document.objects.JSONSchema.fixedFields;
  46928. const cy = class ItemsVisitor_ItemsVisitor extends ly {
  46929. ObjectElement(s) {
  46930. const o = ly.prototype.ObjectElement.call(this, s);
  46931. return (
  46932. Wm(this.element) && this.element.setMetaProperty('referenced-element', 'schema'), o
  46933. );
  46934. }
  46935. ArrayElement(s) {
  46936. return this.enter(s);
  46937. }
  46938. },
  46939. { properties: uy } = jf.visitors.document.objects.JSONSchema.fixedFields;
  46940. const py = class PropertiesVisitor_PropertiesVisitor extends uy {
  46941. ObjectElement(s) {
  46942. const o = uy.prototype.ObjectElement.call(this, s);
  46943. return (
  46944. this.element.filter(Wm).forEach((s) => {
  46945. s.setMetaProperty('referenced-element', 'schema');
  46946. }),
  46947. o
  46948. );
  46949. }
  46950. },
  46951. { type: hy } = jf.visitors.document.objects.JSONSchema.fixedFields;
  46952. const dy = class TypeVisitor_TypeVisitor extends hy {
  46953. ArrayElement(s) {
  46954. return this.enter(s);
  46955. }
  46956. },
  46957. { JSONSchemaOrJSONReferenceVisitor: fy } = jf.visitors;
  46958. const my = class SchemaOrReferenceVisitor_SchemaOrReferenceVisitor extends fy {
  46959. ObjectElement(s) {
  46960. const o = fy.prototype.enter.call(this, s);
  46961. return (
  46962. Wm(this.element) && this.element.setMetaProperty('referenced-element', 'schema'), o
  46963. );
  46964. }
  46965. };
  46966. class DiscriminatorVisitor extends Mixin(im, rm) {
  46967. constructor(s) {
  46968. super(s),
  46969. (this.element = new Yp()),
  46970. (this.specPath = Tl(['document', 'objects', 'Discriminator'])),
  46971. (this.canSupportSpecificationExtensions = !1);
  46972. }
  46973. }
  46974. const gy = DiscriminatorVisitor;
  46975. class DiscriminatorMapping extends Cu.Sh {
  46976. static primaryClass = 'discriminator-mapping';
  46977. constructor(s, o, i) {
  46978. super(s, o, i), this.classes.push(DiscriminatorMapping.primaryClass);
  46979. }
  46980. }
  46981. const yy = DiscriminatorMapping;
  46982. class MappingVisitor extends Mixin(vm, rm) {
  46983. constructor(s) {
  46984. super(s), (this.element = new yy()), (this.specPath = Tl(['value']));
  46985. }
  46986. }
  46987. const vy = MappingVisitor;
  46988. class XmlVisitor extends Mixin(im, rm) {
  46989. constructor(s) {
  46990. super(s),
  46991. (this.element = new em()),
  46992. (this.specPath = Tl(['document', 'objects', 'XML'])),
  46993. (this.canSupportSpecificationExtensions = !0);
  46994. }
  46995. }
  46996. const by = XmlVisitor;
  46997. class ParameterExamples extends Cu.Sh {
  46998. static primaryClass = 'parameter-examples';
  46999. constructor(s, o, i) {
  47000. super(s, o, i),
  47001. this.classes.push(ParameterExamples.primaryClass),
  47002. this.classes.push('examples');
  47003. }
  47004. }
  47005. const _y = ParameterExamples;
  47006. const Ey = class parameter_ExamplesVisitor_ExamplesVisitor extends sg {
  47007. constructor(s) {
  47008. super(s), (this.element = new _y());
  47009. }
  47010. };
  47011. class ParameterContent extends Cu.Sh {
  47012. static primaryClass = 'parameter-content';
  47013. constructor(s, o, i) {
  47014. super(s, o, i),
  47015. this.classes.push(ParameterContent.primaryClass),
  47016. this.classes.push('content');
  47017. }
  47018. }
  47019. const wy = ParameterContent;
  47020. const Sy = class parameter_ContentVisitor_ContentVisitor extends Xg {
  47021. constructor(s) {
  47022. super(s), (this.element = new wy());
  47023. }
  47024. };
  47025. class ComponentsSchemas extends Cu.Sh {
  47026. static primaryClass = 'components-schemas';
  47027. constructor(s, o, i) {
  47028. super(s, o, i), this.classes.push(ComponentsSchemas.primaryClass);
  47029. }
  47030. }
  47031. const xy = ComponentsSchemas;
  47032. class SchemasVisitor extends Mixin(vm, rm) {
  47033. constructor(s) {
  47034. super(s),
  47035. (this.element = new xy()),
  47036. (this.specPath = (s) =>
  47037. isReferenceLikeElement(s)
  47038. ? ['document', 'objects', 'Reference']
  47039. : ['document', 'objects', 'Schema']);
  47040. }
  47041. ObjectElement(s) {
  47042. const o = vm.prototype.ObjectElement.call(this, s);
  47043. return (
  47044. this.element.filter(Wm).forEach((s) => {
  47045. s.setMetaProperty('referenced-element', 'schema');
  47046. }),
  47047. o
  47048. );
  47049. }
  47050. }
  47051. const ky = SchemasVisitor;
  47052. class ComponentsResponses extends Cu.Sh {
  47053. static primaryClass = 'components-responses';
  47054. constructor(s, o, i) {
  47055. super(s, o, i), this.classes.push(ComponentsResponses.primaryClass);
  47056. }
  47057. }
  47058. const Cy = ComponentsResponses;
  47059. class ResponsesVisitor extends Mixin(vm, rm) {
  47060. constructor(s) {
  47061. super(s),
  47062. (this.element = new Cy()),
  47063. (this.specPath = (s) =>
  47064. isReferenceLikeElement(s)
  47065. ? ['document', 'objects', 'Reference']
  47066. : ['document', 'objects', 'Response']);
  47067. }
  47068. ObjectElement(s) {
  47069. const o = vm.prototype.ObjectElement.call(this, s);
  47070. return (
  47071. this.element.filter(Wm).forEach((s) => {
  47072. s.setMetaProperty('referenced-element', 'response');
  47073. }),
  47074. this.element.filter(Hm).forEach((s, o) => {
  47075. s.setMetaProperty('http-status-code', serializers_value(o));
  47076. }),
  47077. o
  47078. );
  47079. }
  47080. }
  47081. const Oy = ResponsesVisitor;
  47082. class ComponentsParameters extends Cu.Sh {
  47083. static primaryClass = 'components-parameters';
  47084. constructor(s, o, i) {
  47085. super(s, o, i),
  47086. this.classes.push(ComponentsParameters.primaryClass),
  47087. this.classes.push('parameters');
  47088. }
  47089. }
  47090. const Ay = ComponentsParameters;
  47091. class ParametersVisitor_ParametersVisitor extends Mixin(vm, rm) {
  47092. constructor(s) {
  47093. super(s),
  47094. (this.element = new Ay()),
  47095. (this.specPath = (s) =>
  47096. isReferenceLikeElement(s)
  47097. ? ['document', 'objects', 'Reference']
  47098. : ['document', 'objects', 'Parameter']);
  47099. }
  47100. ObjectElement(s) {
  47101. const o = vm.prototype.ObjectElement.call(this, s);
  47102. return (
  47103. this.element.filter(Wm).forEach((s) => {
  47104. s.setMetaProperty('referenced-element', 'parameter');
  47105. }),
  47106. o
  47107. );
  47108. }
  47109. }
  47110. const jy = ParametersVisitor_ParametersVisitor;
  47111. class ComponentsExamples extends Cu.Sh {
  47112. static primaryClass = 'components-examples';
  47113. constructor(s, o, i) {
  47114. super(s, o, i),
  47115. this.classes.push(ComponentsExamples.primaryClass),
  47116. this.classes.push('examples');
  47117. }
  47118. }
  47119. const Iy = ComponentsExamples;
  47120. class components_ExamplesVisitor_ExamplesVisitor extends Mixin(vm, rm) {
  47121. constructor(s) {
  47122. super(s),
  47123. (this.element = new Iy()),
  47124. (this.specPath = (s) =>
  47125. isReferenceLikeElement(s)
  47126. ? ['document', 'objects', 'Reference']
  47127. : ['document', 'objects', 'Example']);
  47128. }
  47129. ObjectElement(s) {
  47130. const o = vm.prototype.ObjectElement.call(this, s);
  47131. return (
  47132. this.element.filter(Wm).forEach((s) => {
  47133. s.setMetaProperty('referenced-element', 'example');
  47134. }),
  47135. o
  47136. );
  47137. }
  47138. }
  47139. const Py = components_ExamplesVisitor_ExamplesVisitor;
  47140. class ComponentsRequestBodies extends Cu.Sh {
  47141. static primaryClass = 'components-request-bodies';
  47142. constructor(s, o, i) {
  47143. super(s, o, i), this.classes.push(ComponentsRequestBodies.primaryClass);
  47144. }
  47145. }
  47146. const My = ComponentsRequestBodies;
  47147. class RequestBodiesVisitor extends Mixin(vm, rm) {
  47148. constructor(s) {
  47149. super(s),
  47150. (this.element = new My()),
  47151. (this.specPath = (s) =>
  47152. isReferenceLikeElement(s)
  47153. ? ['document', 'objects', 'Reference']
  47154. : ['document', 'objects', 'RequestBody']);
  47155. }
  47156. ObjectElement(s) {
  47157. const o = vm.prototype.ObjectElement.call(this, s);
  47158. return (
  47159. this.element.filter(Wm).forEach((s) => {
  47160. s.setMetaProperty('referenced-element', 'requestBody');
  47161. }),
  47162. o
  47163. );
  47164. }
  47165. }
  47166. const Ty = RequestBodiesVisitor;
  47167. class ComponentsHeaders extends Cu.Sh {
  47168. static primaryClass = 'components-headers';
  47169. constructor(s, o, i) {
  47170. super(s, o, i), this.classes.push(ComponentsHeaders.primaryClass);
  47171. }
  47172. }
  47173. const Ny = ComponentsHeaders;
  47174. class HeadersVisitor extends Mixin(vm, rm) {
  47175. constructor(s) {
  47176. super(s),
  47177. (this.element = new Ny()),
  47178. (this.specPath = (s) =>
  47179. isReferenceLikeElement(s)
  47180. ? ['document', 'objects', 'Reference']
  47181. : ['document', 'objects', 'Header']);
  47182. }
  47183. ObjectElement(s) {
  47184. const o = vm.prototype.ObjectElement.call(this, s);
  47185. return (
  47186. this.element.filter(Wm).forEach((s) => {
  47187. s.setMetaProperty('referenced-element', 'header');
  47188. }),
  47189. this.element.filter(Rm).forEach((s, o) => {
  47190. s.setMetaProperty('header-name', serializers_value(o));
  47191. }),
  47192. o
  47193. );
  47194. }
  47195. }
  47196. const Ry = HeadersVisitor;
  47197. class ComponentsSecuritySchemes extends Cu.Sh {
  47198. static primaryClass = 'components-security-schemes';
  47199. constructor(s, o, i) {
  47200. super(s, o, i), this.classes.push(ComponentsSecuritySchemes.primaryClass);
  47201. }
  47202. }
  47203. const Dy = ComponentsSecuritySchemes;
  47204. class SecuritySchemesVisitor extends Mixin(vm, rm) {
  47205. constructor(s) {
  47206. super(s),
  47207. (this.element = new Dy()),
  47208. (this.specPath = (s) =>
  47209. isReferenceLikeElement(s)
  47210. ? ['document', 'objects', 'Reference']
  47211. : ['document', 'objects', 'SecurityScheme']);
  47212. }
  47213. ObjectElement(s) {
  47214. const o = vm.prototype.ObjectElement.call(this, s);
  47215. return (
  47216. this.element.filter(Wm).forEach((s) => {
  47217. s.setMetaProperty('referenced-element', 'securityScheme');
  47218. }),
  47219. o
  47220. );
  47221. }
  47222. }
  47223. const Ly = SecuritySchemesVisitor;
  47224. class ComponentsLinks extends Cu.Sh {
  47225. static primaryClass = 'components-links';
  47226. constructor(s, o, i) {
  47227. super(s, o, i), this.classes.push(ComponentsLinks.primaryClass);
  47228. }
  47229. }
  47230. const By = ComponentsLinks;
  47231. class LinksVisitor_LinksVisitor extends Mixin(vm, rm) {
  47232. constructor(s) {
  47233. super(s),
  47234. (this.element = new By()),
  47235. (this.specPath = (s) =>
  47236. isReferenceLikeElement(s)
  47237. ? ['document', 'objects', 'Reference']
  47238. : ['document', 'objects', 'Link']);
  47239. }
  47240. ObjectElement(s) {
  47241. const o = vm.prototype.ObjectElement.call(this, s);
  47242. return (
  47243. this.element.filter(Wm).forEach((s) => {
  47244. s.setMetaProperty('referenced-element', 'link');
  47245. }),
  47246. o
  47247. );
  47248. }
  47249. }
  47250. const Fy = LinksVisitor_LinksVisitor;
  47251. class ComponentsCallbacks extends Cu.Sh {
  47252. static primaryClass = 'components-callbacks';
  47253. constructor(s, o, i) {
  47254. super(s, o, i), this.classes.push(ComponentsCallbacks.primaryClass);
  47255. }
  47256. }
  47257. const qy = ComponentsCallbacks;
  47258. class CallbacksVisitor extends Mixin(vm, rm) {
  47259. constructor(s) {
  47260. super(s),
  47261. (this.element = new qy()),
  47262. (this.specPath = (s) =>
  47263. isReferenceLikeElement(s)
  47264. ? ['document', 'objects', 'Reference']
  47265. : ['document', 'objects', 'Callback']);
  47266. }
  47267. ObjectElement(s) {
  47268. const o = vm.prototype.ObjectElement.call(this, s);
  47269. return (
  47270. this.element.filter(Wm).forEach((s) => {
  47271. s.setMetaProperty('referenced-element', 'callback');
  47272. }),
  47273. o
  47274. );
  47275. }
  47276. }
  47277. const $y = CallbacksVisitor;
  47278. class ExampleVisitor extends Mixin(im, rm) {
  47279. constructor(s) {
  47280. super(s),
  47281. (this.element = new Zp()),
  47282. (this.specPath = Tl(['document', 'objects', 'Example'])),
  47283. (this.canSupportSpecificationExtensions = !0);
  47284. }
  47285. ObjectElement(s) {
  47286. const o = im.prototype.ObjectElement.call(this, s);
  47287. return (
  47288. Ru(this.element.externalValue) && this.element.classes.push('reference-element'), o
  47289. );
  47290. }
  47291. }
  47292. const Vy = ExampleVisitor;
  47293. const Uy = class ExternalValueVisitor extends rm {
  47294. StringElement(s) {
  47295. const o = super.enter(s);
  47296. return this.element.classes.push('reference-value'), o;
  47297. }
  47298. };
  47299. class ExternalDocumentationVisitor extends Mixin(im, rm) {
  47300. constructor(s) {
  47301. super(s),
  47302. (this.element = new Qp()),
  47303. (this.specPath = Tl(['document', 'objects', 'ExternalDocumentation'])),
  47304. (this.canSupportSpecificationExtensions = !0);
  47305. }
  47306. }
  47307. const zy = ExternalDocumentationVisitor;
  47308. class encoding_EncodingVisitor extends Mixin(im, rm) {
  47309. constructor(s) {
  47310. super(s),
  47311. (this.element = new Xp()),
  47312. (this.specPath = Tl(['document', 'objects', 'Encoding'])),
  47313. (this.canSupportSpecificationExtensions = !0);
  47314. }
  47315. ObjectElement(s) {
  47316. const o = im.prototype.ObjectElement.call(this, s);
  47317. return (
  47318. Fu(this.element.headers) &&
  47319. this.element.headers.filter(Rm).forEach((s, o) => {
  47320. s.setMetaProperty('header-name', serializers_value(o));
  47321. }),
  47322. o
  47323. );
  47324. }
  47325. }
  47326. const Wy = encoding_EncodingVisitor;
  47327. class EncodingHeaders extends Cu.Sh {
  47328. static primaryClass = 'encoding-headers';
  47329. constructor(s, o, i) {
  47330. super(s, o, i), this.classes.push(EncodingHeaders.primaryClass);
  47331. }
  47332. }
  47333. const Ky = EncodingHeaders;
  47334. class HeadersVisitor_HeadersVisitor extends Mixin(vm, rm) {
  47335. constructor(s) {
  47336. super(s),
  47337. (this.element = new Ky()),
  47338. (this.specPath = (s) =>
  47339. isReferenceLikeElement(s)
  47340. ? ['document', 'objects', 'Reference']
  47341. : ['document', 'objects', 'Header']);
  47342. }
  47343. ObjectElement(s) {
  47344. const o = vm.prototype.ObjectElement.call(this, s);
  47345. return (
  47346. this.element.filter(Wm).forEach((s) => {
  47347. s.setMetaProperty('referenced-element', 'header');
  47348. }),
  47349. this.element.forEach((s, o) => {
  47350. if (!Rm(s)) return;
  47351. const i = serializers_value(o);
  47352. s.setMetaProperty('headerName', i);
  47353. }),
  47354. o
  47355. );
  47356. }
  47357. }
  47358. const Hy = HeadersVisitor_HeadersVisitor;
  47359. class PathsVisitor extends Mixin(ym, rm) {
  47360. constructor(s) {
  47361. super(s),
  47362. (this.element = new Rh()),
  47363. (this.specPath = Tl(['document', 'objects', 'PathItem'])),
  47364. (this.canSupportSpecificationExtensions = !0),
  47365. (this.fieldPatternPredicate = es_T);
  47366. }
  47367. ObjectElement(s) {
  47368. const o = ym.prototype.ObjectElement.call(this, s);
  47369. return (
  47370. this.element.filter(Um).forEach((s, o) => {
  47371. o.classes.push('openapi-path-template'),
  47372. o.classes.push('path-template'),
  47373. s.setMetaProperty('path', cloneDeep(o));
  47374. }),
  47375. o
  47376. );
  47377. }
  47378. }
  47379. const Jy = PathsVisitor;
  47380. class RequestBodyVisitor extends Mixin(im, rm) {
  47381. constructor(s) {
  47382. super(s),
  47383. (this.element = new Lh()),
  47384. (this.specPath = Tl(['document', 'objects', 'RequestBody']));
  47385. }
  47386. ObjectElement(s) {
  47387. const o = im.prototype.ObjectElement.call(this, s);
  47388. return (
  47389. Fu(this.element.contentProp) &&
  47390. this.element.contentProp.filter(eg).forEach((s, o) => {
  47391. s.setMetaProperty('media-type', serializers_value(o));
  47392. }),
  47393. o
  47394. );
  47395. }
  47396. }
  47397. const Gy = RequestBodyVisitor;
  47398. class RequestBodyContent extends Cu.Sh {
  47399. static primaryClass = 'request-body-content';
  47400. constructor(s, o, i) {
  47401. super(s, o, i),
  47402. this.classes.push(RequestBodyContent.primaryClass),
  47403. this.classes.push('content');
  47404. }
  47405. }
  47406. const Yy = RequestBodyContent;
  47407. const Xy = class request_body_ContentVisitor_ContentVisitor extends Xg {
  47408. constructor(s) {
  47409. super(s), (this.element = new Yy());
  47410. }
  47411. };
  47412. class CallbackVisitor extends Mixin(ym, rm) {
  47413. constructor(s) {
  47414. super(s),
  47415. (this.element = new Hp()),
  47416. (this.specPath = Tl(['document', 'objects', 'PathItem'])),
  47417. (this.canSupportSpecificationExtensions = !0),
  47418. (this.fieldPatternPredicate = (s) => /{(?<expression>[^}]{1,2083})}/.test(String(s)));
  47419. }
  47420. ObjectElement(s) {
  47421. const o = vm.prototype.ObjectElement.call(this, s);
  47422. return (
  47423. this.element.filter(Um).forEach((s, o) => {
  47424. s.setMetaProperty('runtime-expression', serializers_value(o));
  47425. }),
  47426. o
  47427. );
  47428. }
  47429. }
  47430. const Zy = CallbackVisitor;
  47431. class ResponseVisitor extends Mixin(im, rm) {
  47432. constructor(s) {
  47433. super(s),
  47434. (this.element = new Fh()),
  47435. (this.specPath = Tl(['document', 'objects', 'Response']));
  47436. }
  47437. ObjectElement(s) {
  47438. const o = im.prototype.ObjectElement.call(this, s);
  47439. return (
  47440. Fu(this.element.contentProp) &&
  47441. this.element.contentProp.filter(eg).forEach((s, o) => {
  47442. s.setMetaProperty('media-type', serializers_value(o));
  47443. }),
  47444. Fu(this.element.headers) &&
  47445. this.element.headers.filter(Rm).forEach((s, o) => {
  47446. s.setMetaProperty('header-name', serializers_value(o));
  47447. }),
  47448. o
  47449. );
  47450. }
  47451. }
  47452. const Qy = ResponseVisitor;
  47453. class ResponseHeaders extends Cu.Sh {
  47454. static primaryClass = 'response-headers';
  47455. constructor(s, o, i) {
  47456. super(s, o, i), this.classes.push(ResponseHeaders.primaryClass);
  47457. }
  47458. }
  47459. const ev = ResponseHeaders;
  47460. class response_HeadersVisitor_HeadersVisitor extends Mixin(vm, rm) {
  47461. constructor(s) {
  47462. super(s),
  47463. (this.element = new ev()),
  47464. (this.specPath = (s) =>
  47465. isReferenceLikeElement(s)
  47466. ? ['document', 'objects', 'Reference']
  47467. : ['document', 'objects', 'Header']);
  47468. }
  47469. ObjectElement(s) {
  47470. const o = vm.prototype.ObjectElement.call(this, s);
  47471. return (
  47472. this.element.filter(Wm).forEach((s) => {
  47473. s.setMetaProperty('referenced-element', 'header');
  47474. }),
  47475. this.element.forEach((s, o) => {
  47476. if (!Rm(s)) return;
  47477. const i = serializers_value(o);
  47478. s.setMetaProperty('header-name', i);
  47479. }),
  47480. o
  47481. );
  47482. }
  47483. }
  47484. const tv = response_HeadersVisitor_HeadersVisitor;
  47485. class ResponseContent extends Cu.Sh {
  47486. static primaryClass = 'response-content';
  47487. constructor(s, o, i) {
  47488. super(s, o, i),
  47489. this.classes.push(ResponseContent.primaryClass),
  47490. this.classes.push('content');
  47491. }
  47492. }
  47493. const rv = ResponseContent;
  47494. const nv = class response_ContentVisitor_ContentVisitor extends Xg {
  47495. constructor(s) {
  47496. super(s), (this.element = new rv());
  47497. }
  47498. };
  47499. class ResponseLinks extends Cu.Sh {
  47500. static primaryClass = 'response-links';
  47501. constructor(s, o, i) {
  47502. super(s, o, i), this.classes.push(ResponseLinks.primaryClass);
  47503. }
  47504. }
  47505. const sv = ResponseLinks;
  47506. class response_LinksVisitor_LinksVisitor extends Mixin(vm, rm) {
  47507. constructor(s) {
  47508. super(s),
  47509. (this.element = new sv()),
  47510. (this.specPath = (s) =>
  47511. isReferenceLikeElement(s)
  47512. ? ['document', 'objects', 'Reference']
  47513. : ['document', 'objects', 'Link']);
  47514. }
  47515. ObjectElement(s) {
  47516. const o = vm.prototype.ObjectElement.call(this, s);
  47517. return (
  47518. this.element.filter(Wm).forEach((s) => {
  47519. s.setMetaProperty('referenced-element', 'link');
  47520. }),
  47521. o
  47522. );
  47523. }
  47524. }
  47525. const ov = response_LinksVisitor_LinksVisitor;
  47526. function _isNumber(s) {
  47527. return '[object Number]' === Object.prototype.toString.call(s);
  47528. }
  47529. var iv = _curry2(function range(s, o) {
  47530. if (!_isNumber(s) || !_isNumber(o))
  47531. throw new TypeError('Both arguments to range must be numbers');
  47532. for (
  47533. var i = Array(s < o ? o - s : 0), u = s < 0 ? o + Math.abs(s) : o - s, _ = 0;
  47534. _ < u;
  47535. )
  47536. (i[_] = _ + s), (_ += 1);
  47537. return i;
  47538. });
  47539. const av = iv;
  47540. function hasOrAdd(s, o, i) {
  47541. var u,
  47542. _ = typeof s;
  47543. switch (_) {
  47544. case 'string':
  47545. case 'number':
  47546. return 0 === s && 1 / s == -1 / 0
  47547. ? !!i._items['-0'] || (o && (i._items['-0'] = !0), !1)
  47548. : null !== i._nativeSet
  47549. ? o
  47550. ? ((u = i._nativeSet.size), i._nativeSet.add(s), i._nativeSet.size === u)
  47551. : i._nativeSet.has(s)
  47552. : _ in i._items
  47553. ? s in i._items[_] || (o && (i._items[_][s] = !0), !1)
  47554. : (o && ((i._items[_] = {}), (i._items[_][s] = !0)), !1);
  47555. case 'boolean':
  47556. if (_ in i._items) {
  47557. var w = s ? 1 : 0;
  47558. return !!i._items[_][w] || (o && (i._items[_][w] = !0), !1);
  47559. }
  47560. return o && (i._items[_] = s ? [!1, !0] : [!0, !1]), !1;
  47561. case 'function':
  47562. return null !== i._nativeSet
  47563. ? o
  47564. ? ((u = i._nativeSet.size), i._nativeSet.add(s), i._nativeSet.size === u)
  47565. : i._nativeSet.has(s)
  47566. : _ in i._items
  47567. ? !!_includes(s, i._items[_]) || (o && i._items[_].push(s), !1)
  47568. : (o && (i._items[_] = [s]), !1);
  47569. case 'undefined':
  47570. return !!i._items[_] || (o && (i._items[_] = !0), !1);
  47571. case 'object':
  47572. if (null === s) return !!i._items.null || (o && (i._items.null = !0), !1);
  47573. default:
  47574. return (_ = Object.prototype.toString.call(s)) in i._items
  47575. ? !!_includes(s, i._items[_]) || (o && i._items[_].push(s), !1)
  47576. : (o && (i._items[_] = [s]), !1);
  47577. }
  47578. }
  47579. const lv = (function () {
  47580. function _Set() {
  47581. (this._nativeSet = 'function' == typeof Set ? new Set() : null), (this._items = {});
  47582. }
  47583. return (
  47584. (_Set.prototype.add = function (s) {
  47585. return !hasOrAdd(s, !0, this);
  47586. }),
  47587. (_Set.prototype.has = function (s) {
  47588. return hasOrAdd(s, !1, this);
  47589. }),
  47590. _Set
  47591. );
  47592. })();
  47593. var cv = _curry2(function difference(s, o) {
  47594. for (var i = [], u = 0, _ = s.length, w = o.length, x = new lv(), C = 0; C < w; C += 1)
  47595. x.add(o[C]);
  47596. for (; u < _; ) x.add(s[u]) && (i[i.length] = s[u]), (u += 1);
  47597. return i;
  47598. });
  47599. const uv = cv;
  47600. class MixedFieldsVisitor extends Mixin(im, ym) {
  47601. specPathFixedFields;
  47602. specPathPatternedFields;
  47603. constructor({ specPathFixedFields: s, specPathPatternedFields: o, ...i }) {
  47604. super({ ...i }), (this.specPathFixedFields = s), (this.specPathPatternedFields = o);
  47605. }
  47606. ObjectElement(s) {
  47607. const { specPath: o, ignoredFields: i } = this;
  47608. try {
  47609. this.specPath = this.specPathFixedFields;
  47610. const o = this.retrieveFixedFields(this.specPath(s));
  47611. (this.ignoredFields = [...i, ...uv(s.keys(), o)]),
  47612. im.prototype.ObjectElement.call(this, s),
  47613. (this.specPath = this.specPathPatternedFields),
  47614. (this.ignoredFields = o),
  47615. ym.prototype.ObjectElement.call(this, s);
  47616. } catch (s) {
  47617. throw ((this.specPath = o), s);
  47618. }
  47619. return Ju;
  47620. }
  47621. }
  47622. const pv = MixedFieldsVisitor;
  47623. class responses_ResponsesVisitor extends Mixin(pv, rm) {
  47624. constructor(s) {
  47625. super(s),
  47626. (this.element = new Kh()),
  47627. (this.specPathFixedFields = Tl(['document', 'objects', 'Responses'])),
  47628. (this.canSupportSpecificationExtensions = !0),
  47629. (this.specPathPatternedFields = (s) =>
  47630. isReferenceLikeElement(s)
  47631. ? ['document', 'objects', 'Reference']
  47632. : ['document', 'objects', 'Response']),
  47633. (this.fieldPatternPredicate = (s) =>
  47634. new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${av(100, 600).join('|')})$`).test(String(s)));
  47635. }
  47636. ObjectElement(s) {
  47637. const o = pv.prototype.ObjectElement.call(this, s);
  47638. return (
  47639. this.element.filter(Wm).forEach((s) => {
  47640. s.setMetaProperty('referenced-element', 'response');
  47641. }),
  47642. this.element.filter(Hm).forEach((s, o) => {
  47643. const i = cloneDeep(o);
  47644. this.fieldPatternPredicate(serializers_value(i)) &&
  47645. s.setMetaProperty('http-status-code', i);
  47646. }),
  47647. o
  47648. );
  47649. }
  47650. }
  47651. const hv = responses_ResponsesVisitor;
  47652. class DefaultVisitor extends Mixin(jm, rm) {
  47653. constructor(s) {
  47654. super(s),
  47655. (this.alternator = [
  47656. {
  47657. predicate: isReferenceLikeElement,
  47658. specPath: ['document', 'objects', 'Reference']
  47659. },
  47660. { predicate: es_T, specPath: ['document', 'objects', 'Response'] }
  47661. ]);
  47662. }
  47663. ObjectElement(s) {
  47664. const o = jm.prototype.enter.call(this, s);
  47665. return (
  47666. Wm(this.element)
  47667. ? this.element.setMetaProperty('referenced-element', 'response')
  47668. : Hm(this.element) && this.element.setMetaProperty('http-status-code', 'default'),
  47669. o
  47670. );
  47671. }
  47672. }
  47673. const dv = DefaultVisitor;
  47674. class OperationVisitor extends Mixin(im, rm) {
  47675. constructor(s) {
  47676. super(s),
  47677. (this.element = new jh()),
  47678. (this.specPath = Tl(['document', 'objects', 'Operation']));
  47679. }
  47680. }
  47681. const fv = OperationVisitor;
  47682. class OperationTags extends Cu.wE {
  47683. static primaryClass = 'operation-tags';
  47684. constructor(s, o, i) {
  47685. super(s, o, i), this.classes.push(OperationTags.primaryClass);
  47686. }
  47687. }
  47688. const mv = OperationTags;
  47689. const gv = class TagsVisitor extends rm {
  47690. constructor(s) {
  47691. super(s), (this.element = new mv());
  47692. }
  47693. ArrayElement(s) {
  47694. return (this.element = this.element.concat(cloneDeep(s))), Ju;
  47695. }
  47696. };
  47697. class OperationParameters extends Cu.wE {
  47698. static primaryClass = 'operation-parameters';
  47699. constructor(s, o, i) {
  47700. super(s, o, i),
  47701. this.classes.push(OperationParameters.primaryClass),
  47702. this.classes.push('parameters');
  47703. }
  47704. }
  47705. const yv = OperationParameters;
  47706. class open_api_3_0_ParametersVisitor_ParametersVisitor extends Mixin(nm, rm) {
  47707. constructor(s) {
  47708. super(s), (this.element = new Cu.wE()), this.element.classes.push('parameters');
  47709. }
  47710. ArrayElement(s) {
  47711. return (
  47712. s.forEach((s) => {
  47713. const o = isReferenceLikeElement(s)
  47714. ? ['document', 'objects', 'Reference']
  47715. : ['document', 'objects', 'Parameter'],
  47716. i = this.toRefractedElement(o, s);
  47717. Wm(i) && i.setMetaProperty('referenced-element', 'parameter'), this.element.push(i);
  47718. }),
  47719. this.copyMetaAndAttributes(s, this.element),
  47720. Ju
  47721. );
  47722. }
  47723. }
  47724. const vv = open_api_3_0_ParametersVisitor_ParametersVisitor;
  47725. const bv = class operation_ParametersVisitor_ParametersVisitor extends vv {
  47726. constructor(s) {
  47727. super(s), (this.element = new yv());
  47728. }
  47729. };
  47730. const _v = class RequestBodyVisitor_RequestBodyVisitor extends jm {
  47731. constructor(s) {
  47732. super(s),
  47733. (this.alternator = [
  47734. {
  47735. predicate: isReferenceLikeElement,
  47736. specPath: ['document', 'objects', 'Reference']
  47737. },
  47738. { predicate: es_T, specPath: ['document', 'objects', 'RequestBody'] }
  47739. ]);
  47740. }
  47741. ObjectElement(s) {
  47742. const o = jm.prototype.enter.call(this, s);
  47743. return (
  47744. Wm(this.element) && this.element.setMetaProperty('referenced-element', 'requestBody'),
  47745. o
  47746. );
  47747. }
  47748. };
  47749. class OperationCallbacks extends Cu.Sh {
  47750. static primaryClass = 'operation-callbacks';
  47751. constructor(s, o, i) {
  47752. super(s, o, i), this.classes.push(OperationCallbacks.primaryClass);
  47753. }
  47754. }
  47755. const Ev = OperationCallbacks;
  47756. class CallbacksVisitor_CallbacksVisitor extends Mixin(vm, rm) {
  47757. specPath;
  47758. constructor(s) {
  47759. super(s),
  47760. (this.element = new Ev()),
  47761. (this.specPath = (s) =>
  47762. isReferenceLikeElement(s)
  47763. ? ['document', 'objects', 'Reference']
  47764. : ['document', 'objects', 'Callback']);
  47765. }
  47766. ObjectElement(s) {
  47767. const o = vm.prototype.ObjectElement.call(this, s);
  47768. return (
  47769. this.element.filter(Wm).forEach((s) => {
  47770. s.setMetaProperty('referenced-element', 'callback');
  47771. }),
  47772. o
  47773. );
  47774. }
  47775. }
  47776. const wv = CallbacksVisitor_CallbacksVisitor;
  47777. class OperationSecurity extends Cu.wE {
  47778. static primaryClass = 'operation-security';
  47779. constructor(s, o, i) {
  47780. super(s, o, i),
  47781. this.classes.push(OperationSecurity.primaryClass),
  47782. this.classes.push('security');
  47783. }
  47784. }
  47785. const Sv = OperationSecurity;
  47786. class SecurityVisitor_SecurityVisitor extends Mixin(nm, rm) {
  47787. constructor(s) {
  47788. super(s), (this.element = new Sv());
  47789. }
  47790. ArrayElement(s) {
  47791. return (
  47792. s.forEach((s) => {
  47793. const o = Fu(s) ? ['document', 'objects', 'SecurityRequirement'] : ['value'],
  47794. i = this.toRefractedElement(o, s);
  47795. this.element.push(i);
  47796. }),
  47797. this.copyMetaAndAttributes(s, this.element),
  47798. Ju
  47799. );
  47800. }
  47801. }
  47802. const xv = SecurityVisitor_SecurityVisitor;
  47803. class OperationServers extends Cu.wE {
  47804. static primaryClass = 'operation-servers';
  47805. constructor(s, o, i) {
  47806. super(s, o, i),
  47807. this.classes.push(OperationServers.primaryClass),
  47808. this.classes.push('servers');
  47809. }
  47810. }
  47811. const kv = OperationServers;
  47812. const Cv = class ServersVisitor_ServersVisitor extends xm {
  47813. constructor(s) {
  47814. super(s), (this.element = new kv());
  47815. }
  47816. };
  47817. class PathItemVisitor extends Mixin(im, rm) {
  47818. constructor(s) {
  47819. super(s),
  47820. (this.element = new Ph()),
  47821. (this.specPath = Tl(['document', 'objects', 'PathItem']));
  47822. }
  47823. ObjectElement(s) {
  47824. const o = im.prototype.ObjectElement.call(this, s);
  47825. return (
  47826. this.element.filter($m).forEach((s, o) => {
  47827. const i = cloneDeep(o);
  47828. (i.content = serializers_value(i).toUpperCase()),
  47829. s.setMetaProperty('http-method', i);
  47830. }),
  47831. Ru(this.element.$ref) && this.element.classes.push('reference-element'),
  47832. o
  47833. );
  47834. }
  47835. }
  47836. const Ov = PathItemVisitor;
  47837. const Av = class path_item_$RefVisitor_$RefVisitor extends rm {
  47838. StringElement(s) {
  47839. const o = super.enter(s);
  47840. return this.element.classes.push('reference-value'), o;
  47841. }
  47842. };
  47843. class PathItemServers extends Cu.wE {
  47844. static primaryClass = 'path-item-servers';
  47845. constructor(s, o, i) {
  47846. super(s, o, i),
  47847. this.classes.push(PathItemServers.primaryClass),
  47848. this.classes.push('servers');
  47849. }
  47850. }
  47851. const jv = PathItemServers;
  47852. const Iv = class path_item_ServersVisitor_ServersVisitor extends xm {
  47853. constructor(s) {
  47854. super(s), (this.element = new jv());
  47855. }
  47856. };
  47857. class PathItemParameters extends Cu.wE {
  47858. static primaryClass = 'path-item-parameters';
  47859. constructor(s, o, i) {
  47860. super(s, o, i),
  47861. this.classes.push(PathItemParameters.primaryClass),
  47862. this.classes.push('parameters');
  47863. }
  47864. }
  47865. const Pv = PathItemParameters;
  47866. const Mv = class path_item_ParametersVisitor_ParametersVisitor extends vv {
  47867. constructor(s) {
  47868. super(s), (this.element = new Pv());
  47869. }
  47870. };
  47871. class SecuritySchemeVisitor extends Mixin(im, rm) {
  47872. constructor(s) {
  47873. super(s),
  47874. (this.element = new Jf()),
  47875. (this.specPath = Tl(['document', 'objects', 'SecurityScheme'])),
  47876. (this.canSupportSpecificationExtensions = !0);
  47877. }
  47878. }
  47879. const Tv = SecuritySchemeVisitor;
  47880. class OAuthFlowsVisitor extends Mixin(im, rm) {
  47881. constructor(s) {
  47882. super(s),
  47883. (this.element = new _h()),
  47884. (this.specPath = Tl(['document', 'objects', 'OAuthFlows'])),
  47885. (this.canSupportSpecificationExtensions = !0);
  47886. }
  47887. }
  47888. const Nv = OAuthFlowsVisitor;
  47889. class OAuthFlowVisitor extends Mixin(im, rm) {
  47890. constructor(s) {
  47891. super(s),
  47892. (this.element = new vh()),
  47893. (this.specPath = Tl(['document', 'objects', 'OAuthFlow'])),
  47894. (this.canSupportSpecificationExtensions = !0);
  47895. }
  47896. }
  47897. const Rv = OAuthFlowVisitor;
  47898. class OAuthFlowScopes extends Cu.Sh {
  47899. static primaryClass = 'oauth-flow-scopes';
  47900. constructor(s, o, i) {
  47901. super(s, o, i), this.classes.push(OAuthFlowScopes.primaryClass);
  47902. }
  47903. }
  47904. const Dv = OAuthFlowScopes;
  47905. class ScopesVisitor extends Mixin(vm, rm) {
  47906. constructor(s) {
  47907. super(s), (this.element = new Dv()), (this.specPath = Tl(['value']));
  47908. }
  47909. }
  47910. const Lv = ScopesVisitor;
  47911. class Tags extends Cu.wE {
  47912. static primaryClass = 'tags';
  47913. constructor(s, o, i) {
  47914. super(s, o, i), this.classes.push(Tags.primaryClass);
  47915. }
  47916. }
  47917. const Bv = Tags;
  47918. class TagsVisitor_TagsVisitor extends Mixin(nm, rm) {
  47919. constructor(s) {
  47920. super(s), (this.element = new Bv());
  47921. }
  47922. ArrayElement(s) {
  47923. return (
  47924. s.forEach((s) => {
  47925. const o = om(s) ? ['document', 'objects', 'Tag'] : ['value'],
  47926. i = this.toRefractedElement(o, s);
  47927. this.element.push(i);
  47928. }),
  47929. this.copyMetaAndAttributes(s, this.element),
  47930. Ju
  47931. );
  47932. }
  47933. }
  47934. const Fv = TagsVisitor_TagsVisitor,
  47935. { fixedFields: qv } = jf.visitors.document.objects.JSONSchema,
  47936. $v = {
  47937. visitors: {
  47938. value: rm,
  47939. document: {
  47940. objects: {
  47941. OpenApi: {
  47942. $visitor: am,
  47943. fixedFields: {
  47944. openapi: lm,
  47945. info: { $ref: '#/visitors/document/objects/Info' },
  47946. servers: xm,
  47947. paths: { $ref: '#/visitors/document/objects/Paths' },
  47948. components: { $ref: '#/visitors/document/objects/Components' },
  47949. security: yg,
  47950. tags: Fv,
  47951. externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' }
  47952. }
  47953. },
  47954. Info: {
  47955. $visitor: um,
  47956. fixedFields: {
  47957. title: { $ref: '#/visitors/value' },
  47958. description: { $ref: '#/visitors/value' },
  47959. termsOfService: { $ref: '#/visitors/value' },
  47960. contact: { $ref: '#/visitors/document/objects/Contact' },
  47961. license: { $ref: '#/visitors/document/objects/License' },
  47962. version: pm
  47963. }
  47964. },
  47965. Contact: {
  47966. $visitor: hm,
  47967. fixedFields: {
  47968. name: { $ref: '#/visitors/value' },
  47969. url: { $ref: '#/visitors/value' },
  47970. email: { $ref: '#/visitors/value' }
  47971. }
  47972. },
  47973. License: {
  47974. $visitor: dm,
  47975. fixedFields: {
  47976. name: { $ref: '#/visitors/value' },
  47977. url: { $ref: '#/visitors/value' }
  47978. }
  47979. },
  47980. Server: {
  47981. $visitor: Em,
  47982. fixedFields: {
  47983. url: wm,
  47984. description: { $ref: '#/visitors/value' },
  47985. variables: Om
  47986. }
  47987. },
  47988. ServerVariable: {
  47989. $visitor: km,
  47990. fixedFields: {
  47991. enum: { $ref: '#/visitors/value' },
  47992. default: { $ref: '#/visitors/value' },
  47993. description: { $ref: '#/visitors/value' }
  47994. }
  47995. },
  47996. Components: {
  47997. $visitor: _g,
  47998. fixedFields: {
  47999. schemas: ky,
  48000. responses: Oy,
  48001. parameters: jy,
  48002. examples: Py,
  48003. requestBodies: Ty,
  48004. headers: Ry,
  48005. securitySchemes: Ly,
  48006. links: Fy,
  48007. callbacks: $y
  48008. }
  48009. },
  48010. Paths: { $visitor: Jy },
  48011. PathItem: {
  48012. $visitor: Ov,
  48013. fixedFields: {
  48014. $ref: Av,
  48015. summary: { $ref: '#/visitors/value' },
  48016. description: { $ref: '#/visitors/value' },
  48017. get: { $ref: '#/visitors/document/objects/Operation' },
  48018. put: { $ref: '#/visitors/document/objects/Operation' },
  48019. post: { $ref: '#/visitors/document/objects/Operation' },
  48020. delete: { $ref: '#/visitors/document/objects/Operation' },
  48021. options: { $ref: '#/visitors/document/objects/Operation' },
  48022. head: { $ref: '#/visitors/document/objects/Operation' },
  48023. patch: { $ref: '#/visitors/document/objects/Operation' },
  48024. trace: { $ref: '#/visitors/document/objects/Operation' },
  48025. servers: Iv,
  48026. parameters: Mv
  48027. }
  48028. },
  48029. Operation: {
  48030. $visitor: fv,
  48031. fixedFields: {
  48032. tags: gv,
  48033. summary: { $ref: '#/visitors/value' },
  48034. description: { $ref: '#/visitors/value' },
  48035. externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
  48036. operationId: { $ref: '#/visitors/value' },
  48037. parameters: bv,
  48038. requestBody: _v,
  48039. responses: { $ref: '#/visitors/document/objects/Responses' },
  48040. callbacks: wv,
  48041. deprecated: { $ref: '#/visitors/value' },
  48042. security: xv,
  48043. servers: Cv
  48044. }
  48045. },
  48046. ExternalDocumentation: {
  48047. $visitor: zy,
  48048. fixedFields: {
  48049. description: { $ref: '#/visitors/value' },
  48050. url: { $ref: '#/visitors/value' }
  48051. }
  48052. },
  48053. Parameter: {
  48054. $visitor: Vg,
  48055. fixedFields: {
  48056. name: { $ref: '#/visitors/value' },
  48057. in: { $ref: '#/visitors/value' },
  48058. description: { $ref: '#/visitors/value' },
  48059. required: { $ref: '#/visitors/value' },
  48060. deprecated: { $ref: '#/visitors/value' },
  48061. allowEmptyValue: { $ref: '#/visitors/value' },
  48062. style: { $ref: '#/visitors/value' },
  48063. explode: { $ref: '#/visitors/value' },
  48064. allowReserved: { $ref: '#/visitors/value' },
  48065. schema: Ug,
  48066. example: { $ref: '#/visitors/value' },
  48067. examples: Ey,
  48068. content: Sy
  48069. }
  48070. },
  48071. RequestBody: {
  48072. $visitor: Gy,
  48073. fixedFields: {
  48074. description: { $ref: '#/visitors/value' },
  48075. content: Xy,
  48076. required: { $ref: '#/visitors/value' }
  48077. }
  48078. },
  48079. MediaType: {
  48080. $visitor: Am,
  48081. fixedFields: {
  48082. schema: ng,
  48083. example: { $ref: '#/visitors/value' },
  48084. examples: lg,
  48085. encoding: fg
  48086. }
  48087. },
  48088. Encoding: {
  48089. $visitor: Wy,
  48090. fixedFields: {
  48091. contentType: { $ref: '#/visitors/value' },
  48092. headers: Hy,
  48093. style: { $ref: '#/visitors/value' },
  48094. explode: { $ref: '#/visitors/value' },
  48095. allowReserved: { $ref: '#/visitors/value' }
  48096. }
  48097. },
  48098. Responses: { $visitor: hv, fixedFields: { default: dv } },
  48099. Response: {
  48100. $visitor: Qy,
  48101. fixedFields: {
  48102. description: { $ref: '#/visitors/value' },
  48103. headers: tv,
  48104. content: nv,
  48105. links: ov
  48106. }
  48107. },
  48108. Callback: { $visitor: Zy },
  48109. Example: {
  48110. $visitor: Vy,
  48111. fixedFields: {
  48112. summary: { $ref: '#/visitors/value' },
  48113. description: { $ref: '#/visitors/value' },
  48114. value: { $ref: '#/visitors/value' },
  48115. externalValue: Uy
  48116. }
  48117. },
  48118. Link: {
  48119. $visitor: fm,
  48120. fixedFields: {
  48121. operationRef: mm,
  48122. operationId: gm,
  48123. parameters: _m,
  48124. requestBody: { $ref: '#/visitors/value' },
  48125. description: { $ref: '#/visitors/value' },
  48126. server: { $ref: '#/visitors/document/objects/Server' }
  48127. }
  48128. },
  48129. Header: {
  48130. $visitor: zg,
  48131. fixedFields: {
  48132. description: { $ref: '#/visitors/value' },
  48133. required: { $ref: '#/visitors/value' },
  48134. deprecated: { $ref: '#/visitors/value' },
  48135. allowEmptyValue: { $ref: '#/visitors/value' },
  48136. style: { $ref: '#/visitors/value' },
  48137. explode: { $ref: '#/visitors/value' },
  48138. allowReserved: { $ref: '#/visitors/value' },
  48139. schema: Wg,
  48140. example: { $ref: '#/visitors/value' },
  48141. examples: Yg,
  48142. content: ey
  48143. }
  48144. },
  48145. Tag: {
  48146. $visitor: xg,
  48147. fixedFields: {
  48148. name: { $ref: '#/visitors/value' },
  48149. description: { $ref: '#/visitors/value' },
  48150. externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' }
  48151. }
  48152. },
  48153. Reference: { $visitor: kg, fixedFields: { $ref: qg } },
  48154. JSONSchema: { $ref: '#/visitors/document/objects/Schema' },
  48155. JSONReference: { $ref: '#/visitors/document/objects/Reference' },
  48156. Schema: {
  48157. $visitor: ty,
  48158. fixedFields: {
  48159. title: qv.title,
  48160. multipleOf: qv.multipleOf,
  48161. maximum: qv.maximum,
  48162. exclusiveMaximum: qv.exclusiveMaximum,
  48163. minimum: qv.minimum,
  48164. exclusiveMinimum: qv.exclusiveMinimum,
  48165. maxLength: qv.maxLength,
  48166. minLength: qv.minLength,
  48167. pattern: qv.pattern,
  48168. maxItems: qv.maxItems,
  48169. minItems: qv.minItems,
  48170. uniqueItems: qv.uniqueItems,
  48171. maxProperties: qv.maxProperties,
  48172. minProperties: qv.minProperties,
  48173. required: qv.required,
  48174. enum: qv.enum,
  48175. type: dy,
  48176. allOf: ny,
  48177. anyOf: oy,
  48178. oneOf: ay,
  48179. not: my,
  48180. items: cy,
  48181. properties: py,
  48182. additionalProperties: my,
  48183. description: qv.description,
  48184. format: qv.format,
  48185. default: qv.default,
  48186. nullable: { $ref: '#/visitors/value' },
  48187. discriminator: { $ref: '#/visitors/document/objects/Discriminator' },
  48188. writeOnly: { $ref: '#/visitors/value' },
  48189. xml: { $ref: '#/visitors/document/objects/XML' },
  48190. externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
  48191. example: { $ref: '#/visitors/value' },
  48192. deprecated: { $ref: '#/visitors/value' }
  48193. }
  48194. },
  48195. Discriminator: {
  48196. $visitor: gy,
  48197. fixedFields: { propertyName: { $ref: '#/visitors/value' }, mapping: vy }
  48198. },
  48199. XML: {
  48200. $visitor: by,
  48201. fixedFields: {
  48202. name: { $ref: '#/visitors/value' },
  48203. namespace: { $ref: '#/visitors/value' },
  48204. prefix: { $ref: '#/visitors/value' },
  48205. attribute: { $ref: '#/visitors/value' },
  48206. wrapped: { $ref: '#/visitors/value' }
  48207. }
  48208. },
  48209. SecurityScheme: {
  48210. $visitor: Tv,
  48211. fixedFields: {
  48212. type: { $ref: '#/visitors/value' },
  48213. description: { $ref: '#/visitors/value' },
  48214. name: { $ref: '#/visitors/value' },
  48215. in: { $ref: '#/visitors/value' },
  48216. scheme: { $ref: '#/visitors/value' },
  48217. bearerFormat: { $ref: '#/visitors/value' },
  48218. flows: { $ref: '#/visitors/document/objects/OAuthFlows' },
  48219. openIdConnectUrl: { $ref: '#/visitors/value' }
  48220. }
  48221. },
  48222. OAuthFlows: {
  48223. $visitor: Nv,
  48224. fixedFields: {
  48225. implicit: { $ref: '#/visitors/document/objects/OAuthFlow' },
  48226. password: { $ref: '#/visitors/document/objects/OAuthFlow' },
  48227. clientCredentials: { $ref: '#/visitors/document/objects/OAuthFlow' },
  48228. authorizationCode: { $ref: '#/visitors/document/objects/OAuthFlow' }
  48229. }
  48230. },
  48231. OAuthFlow: {
  48232. $visitor: Rv,
  48233. fixedFields: {
  48234. authorizationUrl: { $ref: '#/visitors/value' },
  48235. tokenUrl: { $ref: '#/visitors/value' },
  48236. refreshUrl: { $ref: '#/visitors/value' },
  48237. scopes: Lv
  48238. }
  48239. },
  48240. SecurityRequirement: { $visitor: mg }
  48241. },
  48242. extension: { $visitor: cm }
  48243. }
  48244. }
  48245. },
  48246. es_traversal_visitor_getNodeType = (s) => {
  48247. if (Nu(s)) return `${s.element.charAt(0).toUpperCase() + s.element.slice(1)}Element`;
  48248. },
  48249. Vv = {
  48250. CallbackElement: ['content'],
  48251. ComponentsElement: ['content'],
  48252. ContactElement: ['content'],
  48253. DiscriminatorElement: ['content'],
  48254. Encoding: ['content'],
  48255. Example: ['content'],
  48256. ExternalDocumentationElement: ['content'],
  48257. HeaderElement: ['content'],
  48258. InfoElement: ['content'],
  48259. LicenseElement: ['content'],
  48260. MediaTypeElement: ['content'],
  48261. OAuthFlowElement: ['content'],
  48262. OAuthFlowsElement: ['content'],
  48263. OpenApi3_0Element: ['content'],
  48264. OperationElement: ['content'],
  48265. ParameterElement: ['content'],
  48266. PathItemElement: ['content'],
  48267. PathsElement: ['content'],
  48268. ReferenceElement: ['content'],
  48269. RequestBodyElement: ['content'],
  48270. ResponseElement: ['content'],
  48271. ResponsesElement: ['content'],
  48272. SchemaElement: ['content'],
  48273. SecurityRequirementElement: ['content'],
  48274. SecuritySchemeElement: ['content'],
  48275. ServerElement: ['content'],
  48276. ServerVariableElement: ['content'],
  48277. TagElement: ['content'],
  48278. ...Qu
  48279. },
  48280. Uv = {
  48281. namespace: (s) => {
  48282. const { base: o } = s;
  48283. return (
  48284. o.register('callback', Hp),
  48285. o.register('components', Jp),
  48286. o.register('contact', Gp),
  48287. o.register('discriminator', Yp),
  48288. o.register('encoding', Xp),
  48289. o.register('example', Zp),
  48290. o.register('externalDocumentation', Qp),
  48291. o.register('header', th),
  48292. o.register('info', rh),
  48293. o.register('license', uh),
  48294. o.register('link', dh),
  48295. o.register('mediaType', fh),
  48296. o.register('oAuthFlow', vh),
  48297. o.register('oAuthFlows', _h),
  48298. o.register('openapi', wh),
  48299. o.register('openApi3_0', Oh),
  48300. o.register('operation', jh),
  48301. o.register('parameter', Ih),
  48302. o.register('pathItem', Ph),
  48303. o.register('paths', Rh),
  48304. o.register('reference', Dh),
  48305. o.register('requestBody', Lh),
  48306. o.register('response', Fh),
  48307. o.register('responses', Kh),
  48308. o.register('schema', Wf),
  48309. o.register('securityRequirement', Hf),
  48310. o.register('securityScheme', Jf),
  48311. o.register('server', Gf),
  48312. o.register('serverVariable', Xf),
  48313. o.register('tag', Qf),
  48314. o.register('xml', em),
  48315. o
  48316. );
  48317. }
  48318. },
  48319. zv = Uv,
  48320. es_refractor_toolbox = () => {
  48321. const s = createNamespace(zv);
  48322. return {
  48323. predicates: {
  48324. ...pe,
  48325. isElement: Nu,
  48326. isStringElement: Ru,
  48327. isArrayElement: qu,
  48328. isObjectElement: Fu,
  48329. isMemberElement: $u,
  48330. includesClasses,
  48331. hasElementSourceMap
  48332. },
  48333. namespace: s
  48334. };
  48335. },
  48336. es_refractor_refract = (
  48337. s,
  48338. {
  48339. specPath: o = ['visitors', 'document', 'objects', 'OpenApi', '$visitor'],
  48340. plugins: i = []
  48341. } = {}
  48342. ) => {
  48343. const u = (0, Cu.e)(s),
  48344. _ = dereference($v),
  48345. w = new (cp(o, _))({ specObj: _ });
  48346. return (
  48347. visitor_visit(u, w),
  48348. dispatchPluginsSync(w.element, i, {
  48349. toolboxCreator: es_refractor_toolbox,
  48350. visitorOptions: { keyMap: Vv, nodeTypeGetter: es_traversal_visitor_getNodeType }
  48351. })
  48352. );
  48353. },
  48354. es_refractor_createRefractor =
  48355. (s) =>
  48356. (o, i = {}) =>
  48357. es_refractor_refract(o, { specPath: s, ...i });
  48358. (Hp.refract = es_refractor_createRefractor([
  48359. 'visitors',
  48360. 'document',
  48361. 'objects',
  48362. 'Callback',
  48363. '$visitor'
  48364. ])),
  48365. (Jp.refract = es_refractor_createRefractor([
  48366. 'visitors',
  48367. 'document',
  48368. 'objects',
  48369. 'Components',
  48370. '$visitor'
  48371. ])),
  48372. (Gp.refract = es_refractor_createRefractor([
  48373. 'visitors',
  48374. 'document',
  48375. 'objects',
  48376. 'Contact',
  48377. '$visitor'
  48378. ])),
  48379. (Zp.refract = es_refractor_createRefractor([
  48380. 'visitors',
  48381. 'document',
  48382. 'objects',
  48383. 'Example',
  48384. '$visitor'
  48385. ])),
  48386. (Yp.refract = es_refractor_createRefractor([
  48387. 'visitors',
  48388. 'document',
  48389. 'objects',
  48390. 'Discriminator',
  48391. '$visitor'
  48392. ])),
  48393. (Xp.refract = es_refractor_createRefractor([
  48394. 'visitors',
  48395. 'document',
  48396. 'objects',
  48397. 'Encoding',
  48398. '$visitor'
  48399. ])),
  48400. (Qp.refract = es_refractor_createRefractor([
  48401. 'visitors',
  48402. 'document',
  48403. 'objects',
  48404. 'ExternalDocumentation',
  48405. '$visitor'
  48406. ])),
  48407. (th.refract = es_refractor_createRefractor([
  48408. 'visitors',
  48409. 'document',
  48410. 'objects',
  48411. 'Header',
  48412. '$visitor'
  48413. ])),
  48414. (rh.refract = es_refractor_createRefractor([
  48415. 'visitors',
  48416. 'document',
  48417. 'objects',
  48418. 'Info',
  48419. '$visitor'
  48420. ])),
  48421. (uh.refract = es_refractor_createRefractor([
  48422. 'visitors',
  48423. 'document',
  48424. 'objects',
  48425. 'License',
  48426. '$visitor'
  48427. ])),
  48428. (dh.refract = es_refractor_createRefractor([
  48429. 'visitors',
  48430. 'document',
  48431. 'objects',
  48432. 'Link',
  48433. '$visitor'
  48434. ])),
  48435. (fh.refract = es_refractor_createRefractor([
  48436. 'visitors',
  48437. 'document',
  48438. 'objects',
  48439. 'MediaType',
  48440. '$visitor'
  48441. ])),
  48442. (vh.refract = es_refractor_createRefractor([
  48443. 'visitors',
  48444. 'document',
  48445. 'objects',
  48446. 'OAuthFlow',
  48447. '$visitor'
  48448. ])),
  48449. (_h.refract = es_refractor_createRefractor([
  48450. 'visitors',
  48451. 'document',
  48452. 'objects',
  48453. 'OAuthFlows',
  48454. '$visitor'
  48455. ])),
  48456. (wh.refract = es_refractor_createRefractor([
  48457. 'visitors',
  48458. 'document',
  48459. 'objects',
  48460. 'OpenApi',
  48461. 'fixedFields',
  48462. 'openapi'
  48463. ])),
  48464. (Oh.refract = es_refractor_createRefractor([
  48465. 'visitors',
  48466. 'document',
  48467. 'objects',
  48468. 'OpenApi',
  48469. '$visitor'
  48470. ])),
  48471. (jh.refract = es_refractor_createRefractor([
  48472. 'visitors',
  48473. 'document',
  48474. 'objects',
  48475. 'Operation',
  48476. '$visitor'
  48477. ])),
  48478. (Ih.refract = es_refractor_createRefractor([
  48479. 'visitors',
  48480. 'document',
  48481. 'objects',
  48482. 'Parameter',
  48483. '$visitor'
  48484. ])),
  48485. (Ph.refract = es_refractor_createRefractor([
  48486. 'visitors',
  48487. 'document',
  48488. 'objects',
  48489. 'PathItem',
  48490. '$visitor'
  48491. ])),
  48492. (Rh.refract = es_refractor_createRefractor([
  48493. 'visitors',
  48494. 'document',
  48495. 'objects',
  48496. 'Paths',
  48497. '$visitor'
  48498. ])),
  48499. (Dh.refract = es_refractor_createRefractor([
  48500. 'visitors',
  48501. 'document',
  48502. 'objects',
  48503. 'Reference',
  48504. '$visitor'
  48505. ])),
  48506. (Lh.refract = es_refractor_createRefractor([
  48507. 'visitors',
  48508. 'document',
  48509. 'objects',
  48510. 'RequestBody',
  48511. '$visitor'
  48512. ])),
  48513. (Fh.refract = es_refractor_createRefractor([
  48514. 'visitors',
  48515. 'document',
  48516. 'objects',
  48517. 'Response',
  48518. '$visitor'
  48519. ])),
  48520. (Kh.refract = es_refractor_createRefractor([
  48521. 'visitors',
  48522. 'document',
  48523. 'objects',
  48524. 'Responses',
  48525. '$visitor'
  48526. ])),
  48527. (Wf.refract = es_refractor_createRefractor([
  48528. 'visitors',
  48529. 'document',
  48530. 'objects',
  48531. 'Schema',
  48532. '$visitor'
  48533. ])),
  48534. (Hf.refract = es_refractor_createRefractor([
  48535. 'visitors',
  48536. 'document',
  48537. 'objects',
  48538. 'SecurityRequirement',
  48539. '$visitor'
  48540. ])),
  48541. (Jf.refract = es_refractor_createRefractor([
  48542. 'visitors',
  48543. 'document',
  48544. 'objects',
  48545. 'SecurityScheme',
  48546. '$visitor'
  48547. ])),
  48548. (Gf.refract = es_refractor_createRefractor([
  48549. 'visitors',
  48550. 'document',
  48551. 'objects',
  48552. 'Server',
  48553. '$visitor'
  48554. ])),
  48555. (Xf.refract = es_refractor_createRefractor([
  48556. 'visitors',
  48557. 'document',
  48558. 'objects',
  48559. 'ServerVariable',
  48560. '$visitor'
  48561. ])),
  48562. (Qf.refract = es_refractor_createRefractor([
  48563. 'visitors',
  48564. 'document',
  48565. 'objects',
  48566. 'Tag',
  48567. '$visitor'
  48568. ])),
  48569. (em.refract = es_refractor_createRefractor([
  48570. 'visitors',
  48571. 'document',
  48572. 'objects',
  48573. 'XML',
  48574. '$visitor'
  48575. ]));
  48576. const Wv = class Callback_Callback extends Hp {};
  48577. const Kv = class Components_Components extends Jp {
  48578. get pathItems() {
  48579. return this.get('pathItems');
  48580. }
  48581. set pathItems(s) {
  48582. this.set('pathItems', s);
  48583. }
  48584. };
  48585. const Hv = class Contact_Contact extends Gp {};
  48586. const Jv = class Discriminator_Discriminator extends Yp {};
  48587. const Gv = class Encoding_Encoding extends Xp {};
  48588. const Yv = class Example_Example extends Zp {};
  48589. const Xv = class ExternalDocumentation_ExternalDocumentation extends Qp {};
  48590. const Zv = class Header_Header extends th {
  48591. get schema() {
  48592. return this.get('schema');
  48593. }
  48594. set schema(s) {
  48595. this.set('schema', s);
  48596. }
  48597. };
  48598. const Qv = class Info_Info extends rh {
  48599. get license() {
  48600. return this.get('license');
  48601. }
  48602. set license(s) {
  48603. this.set('license', s);
  48604. }
  48605. get summary() {
  48606. return this.get('summary');
  48607. }
  48608. set summary(s) {
  48609. this.set('summary', s);
  48610. }
  48611. };
  48612. class JsonSchemaDialect extends Cu.Om {
  48613. static default = new JsonSchemaDialect('https://spec.openapis.org/oas/3.1/dialect/base');
  48614. constructor(s, o, i) {
  48615. super(s, o, i), (this.element = 'jsonSchemaDialect');
  48616. }
  48617. }
  48618. const eb = JsonSchemaDialect;
  48619. const tb = class License_License extends uh {
  48620. get identifier() {
  48621. return this.get('identifier');
  48622. }
  48623. set identifier(s) {
  48624. this.set('identifier', s);
  48625. }
  48626. };
  48627. const nb = class Link_Link extends dh {};
  48628. const pb = class MediaType_MediaType extends fh {
  48629. get schema() {
  48630. return this.get('schema');
  48631. }
  48632. set schema(s) {
  48633. this.set('schema', s);
  48634. }
  48635. };
  48636. const mb = class OAuthFlow_OAuthFlow extends vh {};
  48637. const yb = class OAuthFlows_OAuthFlows extends _h {};
  48638. const _b = class Openapi_Openapi extends wh {};
  48639. class OpenApi3_1 extends Cu.Sh {
  48640. constructor(s, o, i) {
  48641. super(s, o, i), (this.element = 'openApi3_1'), this.classes.push('api');
  48642. }
  48643. get openapi() {
  48644. return this.get('openapi');
  48645. }
  48646. set openapi(s) {
  48647. this.set('openapi', s);
  48648. }
  48649. get info() {
  48650. return this.get('info');
  48651. }
  48652. set info(s) {
  48653. this.set('info', s);
  48654. }
  48655. get jsonSchemaDialect() {
  48656. return this.get('jsonSchemaDialect');
  48657. }
  48658. set jsonSchemaDialect(s) {
  48659. this.set('jsonSchemaDialect', s);
  48660. }
  48661. get servers() {
  48662. return this.get('servers');
  48663. }
  48664. set servers(s) {
  48665. this.set('servers', s);
  48666. }
  48667. get paths() {
  48668. return this.get('paths');
  48669. }
  48670. set paths(s) {
  48671. this.set('paths', s);
  48672. }
  48673. get components() {
  48674. return this.get('components');
  48675. }
  48676. set components(s) {
  48677. this.set('components', s);
  48678. }
  48679. get security() {
  48680. return this.get('security');
  48681. }
  48682. set security(s) {
  48683. this.set('security', s);
  48684. }
  48685. get tags() {
  48686. return this.get('tags');
  48687. }
  48688. set tags(s) {
  48689. this.set('tags', s);
  48690. }
  48691. get externalDocs() {
  48692. return this.get('externalDocs');
  48693. }
  48694. set externalDocs(s) {
  48695. this.set('externalDocs', s);
  48696. }
  48697. get webhooks() {
  48698. return this.get('webhooks');
  48699. }
  48700. set webhooks(s) {
  48701. this.set('webhooks', s);
  48702. }
  48703. }
  48704. const wb = OpenApi3_1;
  48705. const Sb = class Operation_Operation extends jh {
  48706. get requestBody() {
  48707. return this.get('requestBody');
  48708. }
  48709. set requestBody(s) {
  48710. this.set('requestBody', s);
  48711. }
  48712. };
  48713. const Ob = class Parameter_Parameter extends Ih {
  48714. get schema() {
  48715. return this.get('schema');
  48716. }
  48717. set schema(s) {
  48718. this.set('schema', s);
  48719. }
  48720. };
  48721. const Ab = class PathItem_PathItem extends Ph {
  48722. get GET() {
  48723. return this.get('get');
  48724. }
  48725. set GET(s) {
  48726. this.set('GET', s);
  48727. }
  48728. get PUT() {
  48729. return this.get('put');
  48730. }
  48731. set PUT(s) {
  48732. this.set('PUT', s);
  48733. }
  48734. get POST() {
  48735. return this.get('post');
  48736. }
  48737. set POST(s) {
  48738. this.set('POST', s);
  48739. }
  48740. get DELETE() {
  48741. return this.get('delete');
  48742. }
  48743. set DELETE(s) {
  48744. this.set('DELETE', s);
  48745. }
  48746. get OPTIONS() {
  48747. return this.get('options');
  48748. }
  48749. set OPTIONS(s) {
  48750. this.set('OPTIONS', s);
  48751. }
  48752. get HEAD() {
  48753. return this.get('head');
  48754. }
  48755. set HEAD(s) {
  48756. this.set('HEAD', s);
  48757. }
  48758. get PATCH() {
  48759. return this.get('patch');
  48760. }
  48761. set PATCH(s) {
  48762. this.set('PATCH', s);
  48763. }
  48764. get TRACE() {
  48765. return this.get('trace');
  48766. }
  48767. set TRACE(s) {
  48768. this.set('TRACE', s);
  48769. }
  48770. };
  48771. const Ib = class Paths_Paths extends Rh {};
  48772. class Reference_Reference extends Dh {}
  48773. Object.defineProperty(Reference_Reference.prototype, 'description', {
  48774. get() {
  48775. return this.get('description');
  48776. },
  48777. set(s) {
  48778. this.set('description', s);
  48779. },
  48780. enumerable: !0
  48781. }),
  48782. Object.defineProperty(Reference_Reference.prototype, 'summary', {
  48783. get() {
  48784. return this.get('summary');
  48785. },
  48786. set(s) {
  48787. this.set('summary', s);
  48788. },
  48789. enumerable: !0
  48790. });
  48791. const Pb = Reference_Reference;
  48792. const Mb = class RequestBody_RequestBody extends Lh {};
  48793. const Rb = class elements_Response_Response extends Fh {};
  48794. const Lb = class Responses_Responses extends Kh {};
  48795. class elements_Schema_Schema extends Cu.Sh {
  48796. constructor(s, o, i) {
  48797. super(s, o, i), (this.element = 'schema');
  48798. }
  48799. get $schema() {
  48800. return this.get('$schema');
  48801. }
  48802. set $schema(s) {
  48803. this.set('$schema', s);
  48804. }
  48805. get $vocabulary() {
  48806. return this.get('$vocabulary');
  48807. }
  48808. set $vocabulary(s) {
  48809. this.set('$vocabulary', s);
  48810. }
  48811. get $id() {
  48812. return this.get('$id');
  48813. }
  48814. set $id(s) {
  48815. this.set('$id', s);
  48816. }
  48817. get $anchor() {
  48818. return this.get('$anchor');
  48819. }
  48820. set $anchor(s) {
  48821. this.set('$anchor', s);
  48822. }
  48823. get $dynamicAnchor() {
  48824. return this.get('$dynamicAnchor');
  48825. }
  48826. set $dynamicAnchor(s) {
  48827. this.set('$dynamicAnchor', s);
  48828. }
  48829. get $dynamicRef() {
  48830. return this.get('$dynamicRef');
  48831. }
  48832. set $dynamicRef(s) {
  48833. this.set('$dynamicRef', s);
  48834. }
  48835. get $ref() {
  48836. return this.get('$ref');
  48837. }
  48838. set $ref(s) {
  48839. this.set('$ref', s);
  48840. }
  48841. get $defs() {
  48842. return this.get('$defs');
  48843. }
  48844. set $defs(s) {
  48845. this.set('$defs', s);
  48846. }
  48847. get $comment() {
  48848. return this.get('$comment');
  48849. }
  48850. set $comment(s) {
  48851. this.set('$comment', s);
  48852. }
  48853. get allOf() {
  48854. return this.get('allOf');
  48855. }
  48856. set allOf(s) {
  48857. this.set('allOf', s);
  48858. }
  48859. get anyOf() {
  48860. return this.get('anyOf');
  48861. }
  48862. set anyOf(s) {
  48863. this.set('anyOf', s);
  48864. }
  48865. get oneOf() {
  48866. return this.get('oneOf');
  48867. }
  48868. set oneOf(s) {
  48869. this.set('oneOf', s);
  48870. }
  48871. get not() {
  48872. return this.get('not');
  48873. }
  48874. set not(s) {
  48875. this.set('not', s);
  48876. }
  48877. get if() {
  48878. return this.get('if');
  48879. }
  48880. set if(s) {
  48881. this.set('if', s);
  48882. }
  48883. get then() {
  48884. return this.get('then');
  48885. }
  48886. set then(s) {
  48887. this.set('then', s);
  48888. }
  48889. get else() {
  48890. return this.get('else');
  48891. }
  48892. set else(s) {
  48893. this.set('else', s);
  48894. }
  48895. get dependentSchemas() {
  48896. return this.get('dependentSchemas');
  48897. }
  48898. set dependentSchemas(s) {
  48899. this.set('dependentSchemas', s);
  48900. }
  48901. get prefixItems() {
  48902. return this.get('prefixItems');
  48903. }
  48904. set prefixItems(s) {
  48905. this.set('prefixItems', s);
  48906. }
  48907. get items() {
  48908. return this.get('items');
  48909. }
  48910. set items(s) {
  48911. this.set('items', s);
  48912. }
  48913. get containsProp() {
  48914. return this.get('contains');
  48915. }
  48916. set containsProp(s) {
  48917. this.set('contains', s);
  48918. }
  48919. get properties() {
  48920. return this.get('properties');
  48921. }
  48922. set properties(s) {
  48923. this.set('properties', s);
  48924. }
  48925. get patternProperties() {
  48926. return this.get('patternProperties');
  48927. }
  48928. set patternProperties(s) {
  48929. this.set('patternProperties', s);
  48930. }
  48931. get additionalProperties() {
  48932. return this.get('additionalProperties');
  48933. }
  48934. set additionalProperties(s) {
  48935. this.set('additionalProperties', s);
  48936. }
  48937. get propertyNames() {
  48938. return this.get('propertyNames');
  48939. }
  48940. set propertyNames(s) {
  48941. this.set('propertyNames', s);
  48942. }
  48943. get unevaluatedItems() {
  48944. return this.get('unevaluatedItems');
  48945. }
  48946. set unevaluatedItems(s) {
  48947. this.set('unevaluatedItems', s);
  48948. }
  48949. get unevaluatedProperties() {
  48950. return this.get('unevaluatedProperties');
  48951. }
  48952. set unevaluatedProperties(s) {
  48953. this.set('unevaluatedProperties', s);
  48954. }
  48955. get type() {
  48956. return this.get('type');
  48957. }
  48958. set type(s) {
  48959. this.set('type', s);
  48960. }
  48961. get enum() {
  48962. return this.get('enum');
  48963. }
  48964. set enum(s) {
  48965. this.set('enum', s);
  48966. }
  48967. get const() {
  48968. return this.get('const');
  48969. }
  48970. set const(s) {
  48971. this.set('const', s);
  48972. }
  48973. get multipleOf() {
  48974. return this.get('multipleOf');
  48975. }
  48976. set multipleOf(s) {
  48977. this.set('multipleOf', s);
  48978. }
  48979. get maximum() {
  48980. return this.get('maximum');
  48981. }
  48982. set maximum(s) {
  48983. this.set('maximum', s);
  48984. }
  48985. get exclusiveMaximum() {
  48986. return this.get('exclusiveMaximum');
  48987. }
  48988. set exclusiveMaximum(s) {
  48989. this.set('exclusiveMaximum', s);
  48990. }
  48991. get minimum() {
  48992. return this.get('minimum');
  48993. }
  48994. set minimum(s) {
  48995. this.set('minimum', s);
  48996. }
  48997. get exclusiveMinimum() {
  48998. return this.get('exclusiveMinimum');
  48999. }
  49000. set exclusiveMinimum(s) {
  49001. this.set('exclusiveMinimum', s);
  49002. }
  49003. get maxLength() {
  49004. return this.get('maxLength');
  49005. }
  49006. set maxLength(s) {
  49007. this.set('maxLength', s);
  49008. }
  49009. get minLength() {
  49010. return this.get('minLength');
  49011. }
  49012. set minLength(s) {
  49013. this.set('minLength', s);
  49014. }
  49015. get pattern() {
  49016. return this.get('pattern');
  49017. }
  49018. set pattern(s) {
  49019. this.set('pattern', s);
  49020. }
  49021. get maxItems() {
  49022. return this.get('maxItems');
  49023. }
  49024. set maxItems(s) {
  49025. this.set('maxItems', s);
  49026. }
  49027. get minItems() {
  49028. return this.get('minItems');
  49029. }
  49030. set minItems(s) {
  49031. this.set('minItems', s);
  49032. }
  49033. get uniqueItems() {
  49034. return this.get('uniqueItems');
  49035. }
  49036. set uniqueItems(s) {
  49037. this.set('uniqueItems', s);
  49038. }
  49039. get maxContains() {
  49040. return this.get('maxContains');
  49041. }
  49042. set maxContains(s) {
  49043. this.set('maxContains', s);
  49044. }
  49045. get minContains() {
  49046. return this.get('minContains');
  49047. }
  49048. set minContains(s) {
  49049. this.set('minContains', s);
  49050. }
  49051. get maxProperties() {
  49052. return this.get('maxProperties');
  49053. }
  49054. set maxProperties(s) {
  49055. this.set('maxProperties', s);
  49056. }
  49057. get minProperties() {
  49058. return this.get('minProperties');
  49059. }
  49060. set minProperties(s) {
  49061. this.set('minProperties', s);
  49062. }
  49063. get required() {
  49064. return this.get('required');
  49065. }
  49066. set required(s) {
  49067. this.set('required', s);
  49068. }
  49069. get dependentRequired() {
  49070. return this.get('dependentRequired');
  49071. }
  49072. set dependentRequired(s) {
  49073. this.set('dependentRequired', s);
  49074. }
  49075. get title() {
  49076. return this.get('title');
  49077. }
  49078. set title(s) {
  49079. this.set('title', s);
  49080. }
  49081. get description() {
  49082. return this.get('description');
  49083. }
  49084. set description(s) {
  49085. this.set('description', s);
  49086. }
  49087. get default() {
  49088. return this.get('default');
  49089. }
  49090. set default(s) {
  49091. this.set('default', s);
  49092. }
  49093. get deprecated() {
  49094. return this.get('deprecated');
  49095. }
  49096. set deprecated(s) {
  49097. this.set('deprecated', s);
  49098. }
  49099. get readOnly() {
  49100. return this.get('readOnly');
  49101. }
  49102. set readOnly(s) {
  49103. this.set('readOnly', s);
  49104. }
  49105. get writeOnly() {
  49106. return this.get('writeOnly');
  49107. }
  49108. set writeOnly(s) {
  49109. this.set('writeOnly', s);
  49110. }
  49111. get examples() {
  49112. return this.get('examples');
  49113. }
  49114. set examples(s) {
  49115. this.set('examples', s);
  49116. }
  49117. get format() {
  49118. return this.get('format');
  49119. }
  49120. set format(s) {
  49121. this.set('format', s);
  49122. }
  49123. get contentEncoding() {
  49124. return this.get('contentEncoding');
  49125. }
  49126. set contentEncoding(s) {
  49127. this.set('contentEncoding', s);
  49128. }
  49129. get contentMediaType() {
  49130. return this.get('contentMediaType');
  49131. }
  49132. set contentMediaType(s) {
  49133. this.set('contentMediaType', s);
  49134. }
  49135. get contentSchema() {
  49136. return this.get('contentSchema');
  49137. }
  49138. set contentSchema(s) {
  49139. this.set('contentSchema', s);
  49140. }
  49141. get discriminator() {
  49142. return this.get('discriminator');
  49143. }
  49144. set discriminator(s) {
  49145. this.set('discriminator', s);
  49146. }
  49147. get xml() {
  49148. return this.get('xml');
  49149. }
  49150. set xml(s) {
  49151. this.set('xml', s);
  49152. }
  49153. get externalDocs() {
  49154. return this.get('externalDocs');
  49155. }
  49156. set externalDocs(s) {
  49157. this.set('externalDocs', s);
  49158. }
  49159. get example() {
  49160. return this.get('example');
  49161. }
  49162. set example(s) {
  49163. this.set('example', s);
  49164. }
  49165. }
  49166. const qb = elements_Schema_Schema;
  49167. const zb = class SecurityRequirement_SecurityRequirement extends Hf {};
  49168. const Qb = class SecurityScheme_SecurityScheme extends Jf {};
  49169. const e_ = class Server_Server extends Gf {};
  49170. const t_ = class ServerVariable_ServerVariable extends Xf {};
  49171. const r_ = class Tag_Tag extends Qf {};
  49172. const n_ = class Xml_Xml extends em {};
  49173. class OpenApi3_1Visitor extends Mixin(im, rm) {
  49174. constructor(s) {
  49175. super(s),
  49176. (this.element = new wb()),
  49177. (this.specPath = Tl(['document', 'objects', 'OpenApi'])),
  49178. (this.canSupportSpecificationExtensions = !0),
  49179. (this.openApiSemanticElement = this.element);
  49180. }
  49181. ObjectElement(s) {
  49182. return (this.openApiGenericElement = s), im.prototype.ObjectElement.call(this, s);
  49183. }
  49184. }
  49185. const s_ = OpenApi3_1Visitor,
  49186. {
  49187. visitors: {
  49188. document: {
  49189. objects: {
  49190. Info: { $visitor: o_ }
  49191. }
  49192. }
  49193. }
  49194. } = $v;
  49195. const i_ = class info_InfoVisitor extends o_ {
  49196. constructor(s) {
  49197. super(s), (this.element = new Qv());
  49198. }
  49199. },
  49200. {
  49201. visitors: {
  49202. document: {
  49203. objects: {
  49204. Contact: { $visitor: a_ }
  49205. }
  49206. }
  49207. }
  49208. } = $v;
  49209. const l_ = class contact_ContactVisitor extends a_ {
  49210. constructor(s) {
  49211. super(s), (this.element = new Hv());
  49212. }
  49213. },
  49214. {
  49215. visitors: {
  49216. document: {
  49217. objects: {
  49218. License: { $visitor: c_ }
  49219. }
  49220. }
  49221. }
  49222. } = $v;
  49223. const u_ = class license_LicenseVisitor extends c_ {
  49224. constructor(s) {
  49225. super(s), (this.element = new tb());
  49226. }
  49227. },
  49228. {
  49229. visitors: {
  49230. document: {
  49231. objects: {
  49232. Link: { $visitor: p_ }
  49233. }
  49234. }
  49235. }
  49236. } = $v;
  49237. const h_ = class link_LinkVisitor extends p_ {
  49238. constructor(s) {
  49239. super(s), (this.element = new nb());
  49240. }
  49241. };
  49242. class JsonSchemaDialectVisitor extends Mixin(nm, rm) {
  49243. StringElement(s) {
  49244. const o = new eb(serializers_value(s));
  49245. return this.copyMetaAndAttributes(s, o), (this.element = o), Ju;
  49246. }
  49247. }
  49248. const d_ = JsonSchemaDialectVisitor,
  49249. {
  49250. visitors: {
  49251. document: {
  49252. objects: {
  49253. Server: { $visitor: f_ }
  49254. }
  49255. }
  49256. }
  49257. } = $v;
  49258. const m_ = class server_ServerVisitor extends f_ {
  49259. constructor(s) {
  49260. super(s), (this.element = new e_());
  49261. }
  49262. },
  49263. {
  49264. visitors: {
  49265. document: {
  49266. objects: {
  49267. ServerVariable: { $visitor: g_ }
  49268. }
  49269. }
  49270. }
  49271. } = $v;
  49272. const y_ = class server_variable_ServerVariableVisitor extends g_ {
  49273. constructor(s) {
  49274. super(s), (this.element = new t_());
  49275. }
  49276. },
  49277. {
  49278. visitors: {
  49279. document: {
  49280. objects: {
  49281. MediaType: { $visitor: v_ }
  49282. }
  49283. }
  49284. }
  49285. } = $v;
  49286. const b_ = class media_type_MediaTypeVisitor extends v_ {
  49287. constructor(s) {
  49288. super(s), (this.element = new pb());
  49289. }
  49290. },
  49291. {
  49292. visitors: {
  49293. document: {
  49294. objects: {
  49295. SecurityRequirement: { $visitor: E_ }
  49296. }
  49297. }
  49298. }
  49299. } = $v;
  49300. const w_ = class security_requirement_SecurityRequirementVisitor extends E_ {
  49301. constructor(s) {
  49302. super(s), (this.element = new zb());
  49303. }
  49304. },
  49305. {
  49306. visitors: {
  49307. document: {
  49308. objects: {
  49309. Components: { $visitor: S_ }
  49310. }
  49311. }
  49312. }
  49313. } = $v;
  49314. const x_ = class components_ComponentsVisitor extends S_ {
  49315. constructor(s) {
  49316. super(s), (this.element = new Kv());
  49317. }
  49318. },
  49319. {
  49320. visitors: {
  49321. document: {
  49322. objects: {
  49323. Tag: { $visitor: k_ }
  49324. }
  49325. }
  49326. }
  49327. } = $v;
  49328. const C_ = class tag_TagVisitor extends k_ {
  49329. constructor(s) {
  49330. super(s), (this.element = new r_());
  49331. }
  49332. },
  49333. {
  49334. visitors: {
  49335. document: {
  49336. objects: {
  49337. Reference: { $visitor: O_ }
  49338. }
  49339. }
  49340. }
  49341. } = $v;
  49342. const A_ = class reference_ReferenceVisitor extends O_ {
  49343. constructor(s) {
  49344. super(s), (this.element = new Pb());
  49345. }
  49346. },
  49347. {
  49348. visitors: {
  49349. document: {
  49350. objects: {
  49351. Parameter: { $visitor: j_ }
  49352. }
  49353. }
  49354. }
  49355. } = $v;
  49356. const I_ = class parameter_ParameterVisitor extends j_ {
  49357. constructor(s) {
  49358. super(s), (this.element = new Ob());
  49359. }
  49360. },
  49361. {
  49362. visitors: {
  49363. document: {
  49364. objects: {
  49365. Header: { $visitor: P_ }
  49366. }
  49367. }
  49368. }
  49369. } = $v;
  49370. const M_ = class header_HeaderVisitor extends P_ {
  49371. constructor(s) {
  49372. super(s), (this.element = new Zv());
  49373. }
  49374. },
  49375. T_ = helpers(
  49376. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49377. (u) =>
  49378. u instanceof Wv || (s(u) && o('callback', u) && i('object', u))
  49379. ),
  49380. N_ = helpers(
  49381. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49382. (u) =>
  49383. u instanceof Kv || (s(u) && o('components', u) && i('object', u))
  49384. ),
  49385. R_ = helpers(
  49386. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49387. (u) =>
  49388. u instanceof Hv || (s(u) && o('contact', u) && i('object', u))
  49389. ),
  49390. D_ = helpers(
  49391. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49392. (u) =>
  49393. u instanceof Yv || (s(u) && o('example', u) && i('object', u))
  49394. ),
  49395. L_ = helpers(
  49396. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49397. (u) =>
  49398. u instanceof Xv || (s(u) && o('externalDocumentation', u) && i('object', u))
  49399. ),
  49400. B_ = helpers(
  49401. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49402. (u) =>
  49403. u instanceof Zv || (s(u) && o('header', u) && i('object', u))
  49404. ),
  49405. F_ = helpers(
  49406. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49407. (u) =>
  49408. u instanceof Qv || (s(u) && o('info', u) && i('object', u))
  49409. ),
  49410. q_ = helpers(
  49411. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49412. (u) =>
  49413. u instanceof eb || (s(u) && o('jsonSchemaDialect', u) && i('string', u))
  49414. ),
  49415. $_ = helpers(
  49416. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49417. (u) =>
  49418. u instanceof tb || (s(u) && o('license', u) && i('object', u))
  49419. ),
  49420. V_ = helpers(
  49421. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49422. (u) =>
  49423. u instanceof nb || (s(u) && o('link', u) && i('object', u))
  49424. ),
  49425. U_ = helpers(
  49426. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49427. (u) =>
  49428. u instanceof _b || (s(u) && o('openapi', u) && i('string', u))
  49429. ),
  49430. z_ = helpers(
  49431. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i, hasClass: u }) =>
  49432. (_) =>
  49433. _ instanceof wb || (s(_) && o('openApi3_1', _) && i('object', _) && u('api', _))
  49434. ),
  49435. W_ = helpers(
  49436. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49437. (u) =>
  49438. u instanceof Sb || (s(u) && o('operation', u) && i('object', u))
  49439. ),
  49440. K_ = helpers(
  49441. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49442. (u) =>
  49443. u instanceof Ob || (s(u) && o('parameter', u) && i('object', u))
  49444. ),
  49445. H_ = helpers(
  49446. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49447. (u) =>
  49448. u instanceof Ab || (s(u) && o('pathItem', u) && i('object', u))
  49449. ),
  49450. isPathItemElementExternal = (s) => {
  49451. if (!H_(s)) return !1;
  49452. if (!Ru(s.$ref)) return !1;
  49453. const o = serializers_value(s.$ref);
  49454. return 'string' == typeof o && o.length > 0 && !o.startsWith('#');
  49455. },
  49456. J_ = helpers(
  49457. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49458. (u) =>
  49459. u instanceof Ib || (s(u) && o('paths', u) && i('object', u))
  49460. ),
  49461. G_ = helpers(
  49462. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49463. (u) =>
  49464. u instanceof Pb || (s(u) && o('reference', u) && i('object', u))
  49465. ),
  49466. isReferenceElementExternal = (s) => {
  49467. if (!G_(s)) return !1;
  49468. if (!Ru(s.$ref)) return !1;
  49469. const o = serializers_value(s.$ref);
  49470. return 'string' == typeof o && o.length > 0 && !o.startsWith('#');
  49471. },
  49472. Y_ = helpers(
  49473. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49474. (u) =>
  49475. u instanceof Mb || (s(u) && o('requestBody', u) && i('object', u))
  49476. ),
  49477. X_ = helpers(
  49478. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49479. (u) =>
  49480. u instanceof Rb || (s(u) && o('response', u) && i('object', u))
  49481. ),
  49482. Z_ = helpers(
  49483. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49484. (u) =>
  49485. u instanceof Lb || (s(u) && o('responses', u) && i('object', u))
  49486. ),
  49487. Q_ = helpers(
  49488. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49489. (u) =>
  49490. u instanceof qb || (s(u) && o('schema', u) && i('object', u))
  49491. ),
  49492. predicates_isBooleanJsonSchemaElement = (s) =>
  49493. Bu(s) && s.classes.includes('boolean-json-schema'),
  49494. eE = helpers(
  49495. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49496. (u) =>
  49497. u instanceof zb || (s(u) && o('securityRequirement', u) && i('object', u))
  49498. ),
  49499. tE = helpers(
  49500. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49501. (u) =>
  49502. u instanceof Qb || (s(u) && o('securityScheme', u) && i('object', u))
  49503. ),
  49504. rE = helpers(
  49505. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49506. (u) =>
  49507. u instanceof e_ || (s(u) && o('server', u) && i('object', u))
  49508. ),
  49509. nE = helpers(
  49510. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49511. (u) =>
  49512. u instanceof t_ || (s(u) && o('serverVariable', u) && i('object', u))
  49513. ),
  49514. sE = helpers(
  49515. ({ hasBasicElementProps: s, isElementType: o, primitiveEq: i }) =>
  49516. (u) =>
  49517. u instanceof pb || (s(u) && o('mediaType', u) && i('object', u))
  49518. );
  49519. const oE = class ParentSchemaAwareVisitor_ParentSchemaAwareVisitor {
  49520. parent;
  49521. constructor({ parent: s }) {
  49522. this.parent = s;
  49523. }
  49524. };
  49525. class open_api_3_1_schema_SchemaVisitor extends Mixin(im, oE, rm) {
  49526. constructor(s) {
  49527. super(s),
  49528. (this.element = new qb()),
  49529. (this.specPath = Tl(['document', 'objects', 'Schema'])),
  49530. (this.canSupportSpecificationExtensions = !0),
  49531. (this.jsonSchemaDefaultDialect = eb.default),
  49532. this.passingOptionsNames.push('parent');
  49533. }
  49534. ObjectElement(s) {
  49535. this.handle$schema(s), this.handle$id(s), (this.parent = this.element);
  49536. const o = im.prototype.ObjectElement.call(this, s);
  49537. return (
  49538. Ru(this.element.$ref) &&
  49539. (this.element.classes.push('reference-element'),
  49540. this.element.setMetaProperty('referenced-element', 'schema')),
  49541. o
  49542. );
  49543. }
  49544. BooleanElement(s) {
  49545. const o = super.enter(s);
  49546. return this.element.classes.push('boolean-json-schema'), o;
  49547. }
  49548. getJsonSchemaDialect() {
  49549. let s;
  49550. return (
  49551. (s =
  49552. void 0 !== this.openApiSemanticElement &&
  49553. q_(this.openApiSemanticElement.jsonSchemaDialect)
  49554. ? serializers_value(this.openApiSemanticElement.jsonSchemaDialect)
  49555. : void 0 !== this.openApiGenericElement &&
  49556. Ru(this.openApiGenericElement.get('jsonSchemaDialect'))
  49557. ? serializers_value(this.openApiGenericElement.get('jsonSchemaDialect'))
  49558. : serializers_value(this.jsonSchemaDefaultDialect)),
  49559. s
  49560. );
  49561. }
  49562. handle$schema(s) {
  49563. if (Rl(this.parent) && !Ru(s.get('$schema')))
  49564. this.element.setMetaProperty('inherited$schema', this.getJsonSchemaDialect());
  49565. else if (Q_(this.parent) && !Ru(s.get('$schema'))) {
  49566. const s = Na(
  49567. serializers_value(this.parent.meta.get('inherited$schema')),
  49568. serializers_value(this.parent.$schema)
  49569. );
  49570. this.element.setMetaProperty('inherited$schema', s);
  49571. }
  49572. }
  49573. handle$id(s) {
  49574. const o =
  49575. void 0 !== this.parent
  49576. ? cloneDeep(this.parent.getMetaProperty('inherited$id', []))
  49577. : new Cu.wE(),
  49578. i = serializers_value(s.get('$id'));
  49579. Vd(i) && o.push(i), this.element.setMetaProperty('inherited$id', o);
  49580. }
  49581. }
  49582. const iE = open_api_3_1_schema_SchemaVisitor;
  49583. const aE = class $vocabularyVisitor extends rm {
  49584. ObjectElement(s) {
  49585. const o = super.enter(s);
  49586. return this.element.classes.push('json-schema-$vocabulary'), o;
  49587. }
  49588. };
  49589. const lE = class $refVisitor extends rm {
  49590. StringElement(s) {
  49591. const o = super.enter(s);
  49592. return this.element.classes.push('reference-value'), o;
  49593. }
  49594. };
  49595. class $defsVisitor extends Mixin(vm, oE, rm) {
  49596. constructor(s) {
  49597. super(s),
  49598. (this.element = new Cu.Sh()),
  49599. this.element.classes.push('json-schema-$defs'),
  49600. (this.specPath = Tl(['document', 'objects', 'Schema'])),
  49601. this.passingOptionsNames.push('parent');
  49602. }
  49603. }
  49604. const cE = $defsVisitor;
  49605. class schema_AllOfVisitor_AllOfVisitor extends Mixin(nm, oE, rm) {
  49606. constructor(s) {
  49607. super(s),
  49608. (this.element = new Cu.wE()),
  49609. this.element.classes.push('json-schema-allOf'),
  49610. this.passingOptionsNames.push('parent');
  49611. }
  49612. ArrayElement(s) {
  49613. return (
  49614. s.forEach((s) => {
  49615. if (Fu(s)) {
  49616. const o = this.toRefractedElement(['document', 'objects', 'Schema'], s);
  49617. this.element.push(o);
  49618. } else {
  49619. const o = cloneDeep(s);
  49620. this.element.push(o);
  49621. }
  49622. }),
  49623. this.copyMetaAndAttributes(s, this.element),
  49624. Ju
  49625. );
  49626. }
  49627. }
  49628. const uE = schema_AllOfVisitor_AllOfVisitor;
  49629. class schema_AnyOfVisitor_AnyOfVisitor extends Mixin(nm, oE, rm) {
  49630. constructor(s) {
  49631. super(s),
  49632. (this.element = new Cu.wE()),
  49633. this.element.classes.push('json-schema-anyOf'),
  49634. this.passingOptionsNames.push('parent');
  49635. }
  49636. ArrayElement(s) {
  49637. return (
  49638. s.forEach((s) => {
  49639. if (Fu(s)) {
  49640. const o = this.toRefractedElement(['document', 'objects', 'Schema'], s);
  49641. this.element.push(o);
  49642. } else {
  49643. const o = cloneDeep(s);
  49644. this.element.push(o);
  49645. }
  49646. }),
  49647. this.copyMetaAndAttributes(s, this.element),
  49648. Ju
  49649. );
  49650. }
  49651. }
  49652. const pE = schema_AnyOfVisitor_AnyOfVisitor;
  49653. class schema_OneOfVisitor_OneOfVisitor extends Mixin(nm, oE, rm) {
  49654. constructor(s) {
  49655. super(s),
  49656. (this.element = new Cu.wE()),
  49657. this.element.classes.push('json-schema-oneOf'),
  49658. this.passingOptionsNames.push('parent');
  49659. }
  49660. ArrayElement(s) {
  49661. return (
  49662. s.forEach((s) => {
  49663. if (Fu(s)) {
  49664. const o = this.toRefractedElement(['document', 'objects', 'Schema'], s);
  49665. this.element.push(o);
  49666. } else {
  49667. const o = cloneDeep(s);
  49668. this.element.push(o);
  49669. }
  49670. }),
  49671. this.copyMetaAndAttributes(s, this.element),
  49672. Ju
  49673. );
  49674. }
  49675. }
  49676. const hE = schema_OneOfVisitor_OneOfVisitor;
  49677. class DependentSchemasVisitor extends Mixin(vm, oE, rm) {
  49678. constructor(s) {
  49679. super(s),
  49680. (this.element = new Cu.Sh()),
  49681. this.element.classes.push('json-schema-dependentSchemas'),
  49682. (this.specPath = Tl(['document', 'objects', 'Schema'])),
  49683. this.passingOptionsNames.push('parent');
  49684. }
  49685. }
  49686. const dE = DependentSchemasVisitor;
  49687. class PrefixItemsVisitor extends Mixin(nm, oE, rm) {
  49688. constructor(s) {
  49689. super(s),
  49690. (this.element = new Cu.wE()),
  49691. this.element.classes.push('json-schema-prefixItems'),
  49692. this.passingOptionsNames.push('parent');
  49693. }
  49694. ArrayElement(s) {
  49695. return (
  49696. s.forEach((s) => {
  49697. if (Fu(s)) {
  49698. const o = this.toRefractedElement(['document', 'objects', 'Schema'], s);
  49699. this.element.push(o);
  49700. } else {
  49701. const o = cloneDeep(s);
  49702. this.element.push(o);
  49703. }
  49704. }),
  49705. this.copyMetaAndAttributes(s, this.element),
  49706. Ju
  49707. );
  49708. }
  49709. }
  49710. const fE = PrefixItemsVisitor;
  49711. class schema_PropertiesVisitor_PropertiesVisitor extends Mixin(vm, oE, rm) {
  49712. constructor(s) {
  49713. super(s),
  49714. (this.element = new Cu.Sh()),
  49715. this.element.classes.push('json-schema-properties'),
  49716. (this.specPath = Tl(['document', 'objects', 'Schema'])),
  49717. this.passingOptionsNames.push('parent');
  49718. }
  49719. }
  49720. const mE = schema_PropertiesVisitor_PropertiesVisitor;
  49721. class PatternPropertiesVisitor_PatternPropertiesVisitor extends Mixin(vm, oE, rm) {
  49722. constructor(s) {
  49723. super(s),
  49724. (this.element = new Cu.Sh()),
  49725. this.element.classes.push('json-schema-patternProperties'),
  49726. (this.specPath = Tl(['document', 'objects', 'Schema'])),
  49727. this.passingOptionsNames.push('parent');
  49728. }
  49729. }
  49730. const gE = PatternPropertiesVisitor_PatternPropertiesVisitor;
  49731. const yE = class schema_TypeVisitor_TypeVisitor extends rm {
  49732. StringElement(s) {
  49733. const o = super.enter(s);
  49734. return this.element.classes.push('json-schema-type'), o;
  49735. }
  49736. ArrayElement(s) {
  49737. const o = super.enter(s);
  49738. return this.element.classes.push('json-schema-type'), o;
  49739. }
  49740. };
  49741. const vE = class EnumVisitor_EnumVisitor extends rm {
  49742. ArrayElement(s) {
  49743. const o = super.enter(s);
  49744. return this.element.classes.push('json-schema-enum'), o;
  49745. }
  49746. };
  49747. const bE = class DependentRequiredVisitor extends rm {
  49748. ObjectElement(s) {
  49749. const o = super.enter(s);
  49750. return this.element.classes.push('json-schema-dependentRequired'), o;
  49751. }
  49752. };
  49753. const _E = class schema_ExamplesVisitor_ExamplesVisitor extends rm {
  49754. ArrayElement(s) {
  49755. const o = super.enter(s);
  49756. return this.element.classes.push('json-schema-examples'), o;
  49757. }
  49758. },
  49759. {
  49760. visitors: {
  49761. document: {
  49762. objects: {
  49763. Discriminator: { $visitor: EE }
  49764. }
  49765. }
  49766. }
  49767. } = $v;
  49768. const wE = class distriminator_DiscriminatorVisitor extends EE {
  49769. constructor(s) {
  49770. super(s), (this.element = new Jv()), (this.canSupportSpecificationExtensions = !0);
  49771. }
  49772. },
  49773. {
  49774. visitors: {
  49775. document: {
  49776. objects: {
  49777. XML: { $visitor: SE }
  49778. }
  49779. }
  49780. }
  49781. } = $v;
  49782. const xE = class xml_XmlVisitor extends SE {
  49783. constructor(s) {
  49784. super(s), (this.element = new n_());
  49785. }
  49786. };
  49787. class SchemasVisitor_SchemasVisitor extends Mixin(vm, rm) {
  49788. constructor(s) {
  49789. super(s),
  49790. (this.element = new xy()),
  49791. (this.specPath = Tl(['document', 'objects', 'Schema']));
  49792. }
  49793. }
  49794. const kE = SchemasVisitor_SchemasVisitor;
  49795. class ComponentsPathItems extends Cu.Sh {
  49796. static primaryClass = 'components-path-items';
  49797. constructor(s, o, i) {
  49798. super(s, o, i), this.classes.push(ComponentsPathItems.primaryClass);
  49799. }
  49800. }
  49801. const CE = ComponentsPathItems;
  49802. class PathItemsVisitor extends Mixin(vm, rm) {
  49803. constructor(s) {
  49804. super(s),
  49805. (this.element = new CE()),
  49806. (this.specPath = (s) =>
  49807. isReferenceLikeElement(s)
  49808. ? ['document', 'objects', 'Reference']
  49809. : ['document', 'objects', 'PathItem']);
  49810. }
  49811. ObjectElement(s) {
  49812. const o = vm.prototype.ObjectElement.call(this, s);
  49813. return (
  49814. this.element.filter(G_).forEach((s) => {
  49815. s.setMetaProperty('referenced-element', 'pathItem');
  49816. }),
  49817. o
  49818. );
  49819. }
  49820. }
  49821. const OE = PathItemsVisitor,
  49822. {
  49823. visitors: {
  49824. document: {
  49825. objects: {
  49826. Example: { $visitor: AE }
  49827. }
  49828. }
  49829. }
  49830. } = $v;
  49831. const jE = class example_ExampleVisitor extends AE {
  49832. constructor(s) {
  49833. super(s), (this.element = new Yv());
  49834. }
  49835. },
  49836. {
  49837. visitors: {
  49838. document: {
  49839. objects: {
  49840. ExternalDocumentation: { $visitor: IE }
  49841. }
  49842. }
  49843. }
  49844. } = $v;
  49845. const PE = class external_documentation_ExternalDocumentationVisitor extends IE {
  49846. constructor(s) {
  49847. super(s), (this.element = new Xv());
  49848. }
  49849. },
  49850. {
  49851. visitors: {
  49852. document: {
  49853. objects: {
  49854. Encoding: { $visitor: ME }
  49855. }
  49856. }
  49857. }
  49858. } = $v;
  49859. const TE = class open_api_3_1_encoding_EncodingVisitor extends ME {
  49860. constructor(s) {
  49861. super(s), (this.element = new Gv());
  49862. }
  49863. },
  49864. {
  49865. visitors: {
  49866. document: {
  49867. objects: {
  49868. Paths: { $visitor: NE }
  49869. }
  49870. }
  49871. }
  49872. } = $v;
  49873. const RE = class paths_PathsVisitor extends NE {
  49874. constructor(s) {
  49875. super(s), (this.element = new Ib());
  49876. }
  49877. },
  49878. {
  49879. visitors: {
  49880. document: {
  49881. objects: {
  49882. RequestBody: { $visitor: DE }
  49883. }
  49884. }
  49885. }
  49886. } = $v;
  49887. const LE = class request_body_RequestBodyVisitor extends DE {
  49888. constructor(s) {
  49889. super(s), (this.element = new Mb());
  49890. }
  49891. },
  49892. {
  49893. visitors: {
  49894. document: {
  49895. objects: {
  49896. Callback: { $visitor: BE }
  49897. }
  49898. }
  49899. }
  49900. } = $v;
  49901. const FE = class callback_CallbackVisitor extends BE {
  49902. constructor(s) {
  49903. super(s),
  49904. (this.element = new Wv()),
  49905. (this.specPath = (s) =>
  49906. isReferenceLikeElement(s)
  49907. ? ['document', 'objects', 'Reference']
  49908. : ['document', 'objects', 'PathItem']);
  49909. }
  49910. ObjectElement(s) {
  49911. const o = BE.prototype.ObjectElement.call(this, s);
  49912. return (
  49913. this.element.filter(G_).forEach((s) => {
  49914. s.setMetaProperty('referenced-element', 'pathItem');
  49915. }),
  49916. o
  49917. );
  49918. }
  49919. },
  49920. {
  49921. visitors: {
  49922. document: {
  49923. objects: {
  49924. Response: { $visitor: qE }
  49925. }
  49926. }
  49927. }
  49928. } = $v;
  49929. const $E = class response_ResponseVisitor extends qE {
  49930. constructor(s) {
  49931. super(s), (this.element = new Rb());
  49932. }
  49933. },
  49934. {
  49935. visitors: {
  49936. document: {
  49937. objects: {
  49938. Responses: { $visitor: VE }
  49939. }
  49940. }
  49941. }
  49942. } = $v;
  49943. const UE = class open_api_3_1_responses_ResponsesVisitor extends VE {
  49944. constructor(s) {
  49945. super(s), (this.element = new Lb());
  49946. }
  49947. },
  49948. {
  49949. visitors: {
  49950. document: {
  49951. objects: {
  49952. Operation: { $visitor: zE }
  49953. }
  49954. }
  49955. }
  49956. } = $v;
  49957. const WE = class operation_OperationVisitor extends zE {
  49958. constructor(s) {
  49959. super(s), (this.element = new Sb());
  49960. }
  49961. },
  49962. {
  49963. visitors: {
  49964. document: {
  49965. objects: {
  49966. PathItem: { $visitor: KE }
  49967. }
  49968. }
  49969. }
  49970. } = $v;
  49971. const HE = class path_item_PathItemVisitor extends KE {
  49972. constructor(s) {
  49973. super(s), (this.element = new Ab());
  49974. }
  49975. },
  49976. {
  49977. visitors: {
  49978. document: {
  49979. objects: {
  49980. SecurityScheme: { $visitor: JE }
  49981. }
  49982. }
  49983. }
  49984. } = $v;
  49985. const GE = class security_scheme_SecuritySchemeVisitor extends JE {
  49986. constructor(s) {
  49987. super(s), (this.element = new Qb());
  49988. }
  49989. },
  49990. {
  49991. visitors: {
  49992. document: {
  49993. objects: {
  49994. OAuthFlows: { $visitor: YE }
  49995. }
  49996. }
  49997. }
  49998. } = $v;
  49999. const XE = class oauth_flows_OAuthFlowsVisitor extends YE {
  50000. constructor(s) {
  50001. super(s), (this.element = new yb());
  50002. }
  50003. },
  50004. {
  50005. visitors: {
  50006. document: {
  50007. objects: {
  50008. OAuthFlow: { $visitor: ZE }
  50009. }
  50010. }
  50011. }
  50012. } = $v;
  50013. const QE = class oauth_flow_OAuthFlowVisitor extends ZE {
  50014. constructor(s) {
  50015. super(s), (this.element = new mb());
  50016. }
  50017. };
  50018. class Webhooks extends Cu.Sh {
  50019. static primaryClass = 'webhooks';
  50020. constructor(s, o, i) {
  50021. super(s, o, i), this.classes.push(Webhooks.primaryClass);
  50022. }
  50023. }
  50024. const ew = Webhooks;
  50025. class WebhooksVisitor extends Mixin(vm, rm) {
  50026. constructor(s) {
  50027. super(s),
  50028. (this.element = new ew()),
  50029. (this.specPath = (s) =>
  50030. isReferenceLikeElement(s)
  50031. ? ['document', 'objects', 'Reference']
  50032. : ['document', 'objects', 'PathItem']);
  50033. }
  50034. ObjectElement(s) {
  50035. const o = vm.prototype.ObjectElement.call(this, s);
  50036. return (
  50037. this.element.filter(G_).forEach((s) => {
  50038. s.setMetaProperty('referenced-element', 'pathItem');
  50039. }),
  50040. this.element.filter(H_).forEach((s, o) => {
  50041. s.setMetaProperty('webhook-name', serializers_value(o));
  50042. }),
  50043. o
  50044. );
  50045. }
  50046. }
  50047. const tw = WebhooksVisitor,
  50048. rw = {
  50049. visitors: {
  50050. value: $v.visitors.value,
  50051. document: {
  50052. objects: {
  50053. OpenApi: {
  50054. $visitor: s_,
  50055. fixedFields: {
  50056. openapi: $v.visitors.document.objects.OpenApi.fixedFields.openapi,
  50057. info: { $ref: '#/visitors/document/objects/Info' },
  50058. jsonSchemaDialect: d_,
  50059. servers: $v.visitors.document.objects.OpenApi.fixedFields.servers,
  50060. paths: { $ref: '#/visitors/document/objects/Paths' },
  50061. webhooks: tw,
  50062. components: { $ref: '#/visitors/document/objects/Components' },
  50063. security: $v.visitors.document.objects.OpenApi.fixedFields.security,
  50064. tags: $v.visitors.document.objects.OpenApi.fixedFields.tags,
  50065. externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' }
  50066. }
  50067. },
  50068. Info: {
  50069. $visitor: i_,
  50070. fixedFields: {
  50071. title: $v.visitors.document.objects.Info.fixedFields.title,
  50072. description: $v.visitors.document.objects.Info.fixedFields.description,
  50073. summary: { $ref: '#/visitors/value' },
  50074. termsOfService: $v.visitors.document.objects.Info.fixedFields.termsOfService,
  50075. contact: { $ref: '#/visitors/document/objects/Contact' },
  50076. license: { $ref: '#/visitors/document/objects/License' },
  50077. version: $v.visitors.document.objects.Info.fixedFields.version
  50078. }
  50079. },
  50080. Contact: {
  50081. $visitor: l_,
  50082. fixedFields: {
  50083. name: $v.visitors.document.objects.Contact.fixedFields.name,
  50084. url: $v.visitors.document.objects.Contact.fixedFields.url,
  50085. email: $v.visitors.document.objects.Contact.fixedFields.email
  50086. }
  50087. },
  50088. License: {
  50089. $visitor: u_,
  50090. fixedFields: {
  50091. name: $v.visitors.document.objects.License.fixedFields.name,
  50092. identifier: { $ref: '#/visitors/value' },
  50093. url: $v.visitors.document.objects.License.fixedFields.url
  50094. }
  50095. },
  50096. Server: {
  50097. $visitor: m_,
  50098. fixedFields: {
  50099. url: $v.visitors.document.objects.Server.fixedFields.url,
  50100. description: $v.visitors.document.objects.Server.fixedFields.description,
  50101. variables: $v.visitors.document.objects.Server.fixedFields.variables
  50102. }
  50103. },
  50104. ServerVariable: {
  50105. $visitor: y_,
  50106. fixedFields: {
  50107. enum: $v.visitors.document.objects.ServerVariable.fixedFields.enum,
  50108. default: $v.visitors.document.objects.ServerVariable.fixedFields.default,
  50109. description:
  50110. $v.visitors.document.objects.ServerVariable.fixedFields.description
  50111. }
  50112. },
  50113. Components: {
  50114. $visitor: x_,
  50115. fixedFields: {
  50116. schemas: kE,
  50117. responses: $v.visitors.document.objects.Components.fixedFields.responses,
  50118. parameters: $v.visitors.document.objects.Components.fixedFields.parameters,
  50119. examples: $v.visitors.document.objects.Components.fixedFields.examples,
  50120. requestBodies:
  50121. $v.visitors.document.objects.Components.fixedFields.requestBodies,
  50122. headers: $v.visitors.document.objects.Components.fixedFields.headers,
  50123. securitySchemes:
  50124. $v.visitors.document.objects.Components.fixedFields.securitySchemes,
  50125. links: $v.visitors.document.objects.Components.fixedFields.links,
  50126. callbacks: $v.visitors.document.objects.Components.fixedFields.callbacks,
  50127. pathItems: OE
  50128. }
  50129. },
  50130. Paths: { $visitor: RE },
  50131. PathItem: {
  50132. $visitor: HE,
  50133. fixedFields: {
  50134. $ref: $v.visitors.document.objects.PathItem.fixedFields.$ref,
  50135. summary: $v.visitors.document.objects.PathItem.fixedFields.summary,
  50136. description: $v.visitors.document.objects.PathItem.fixedFields.description,
  50137. get: { $ref: '#/visitors/document/objects/Operation' },
  50138. put: { $ref: '#/visitors/document/objects/Operation' },
  50139. post: { $ref: '#/visitors/document/objects/Operation' },
  50140. delete: { $ref: '#/visitors/document/objects/Operation' },
  50141. options: { $ref: '#/visitors/document/objects/Operation' },
  50142. head: { $ref: '#/visitors/document/objects/Operation' },
  50143. patch: { $ref: '#/visitors/document/objects/Operation' },
  50144. trace: { $ref: '#/visitors/document/objects/Operation' },
  50145. servers: $v.visitors.document.objects.PathItem.fixedFields.servers,
  50146. parameters: $v.visitors.document.objects.PathItem.fixedFields.parameters
  50147. }
  50148. },
  50149. Operation: {
  50150. $visitor: WE,
  50151. fixedFields: {
  50152. tags: $v.visitors.document.objects.Operation.fixedFields.tags,
  50153. summary: $v.visitors.document.objects.Operation.fixedFields.summary,
  50154. description: $v.visitors.document.objects.Operation.fixedFields.description,
  50155. externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
  50156. operationId: $v.visitors.document.objects.Operation.fixedFields.operationId,
  50157. parameters: $v.visitors.document.objects.Operation.fixedFields.parameters,
  50158. requestBody: $v.visitors.document.objects.Operation.fixedFields.requestBody,
  50159. responses: { $ref: '#/visitors/document/objects/Responses' },
  50160. callbacks: $v.visitors.document.objects.Operation.fixedFields.callbacks,
  50161. deprecated: $v.visitors.document.objects.Operation.fixedFields.deprecated,
  50162. security: $v.visitors.document.objects.Operation.fixedFields.security,
  50163. servers: $v.visitors.document.objects.Operation.fixedFields.servers
  50164. }
  50165. },
  50166. ExternalDocumentation: {
  50167. $visitor: PE,
  50168. fixedFields: {
  50169. description:
  50170. $v.visitors.document.objects.ExternalDocumentation.fixedFields.description,
  50171. url: $v.visitors.document.objects.ExternalDocumentation.fixedFields.url
  50172. }
  50173. },
  50174. Parameter: {
  50175. $visitor: I_,
  50176. fixedFields: {
  50177. name: $v.visitors.document.objects.Parameter.fixedFields.name,
  50178. in: $v.visitors.document.objects.Parameter.fixedFields.in,
  50179. description: $v.visitors.document.objects.Parameter.fixedFields.description,
  50180. required: $v.visitors.document.objects.Parameter.fixedFields.required,
  50181. deprecated: $v.visitors.document.objects.Parameter.fixedFields.deprecated,
  50182. allowEmptyValue:
  50183. $v.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,
  50184. style: $v.visitors.document.objects.Parameter.fixedFields.style,
  50185. explode: $v.visitors.document.objects.Parameter.fixedFields.explode,
  50186. allowReserved:
  50187. $v.visitors.document.objects.Parameter.fixedFields.allowReserved,
  50188. schema: { $ref: '#/visitors/document/objects/Schema' },
  50189. example: $v.visitors.document.objects.Parameter.fixedFields.example,
  50190. examples: $v.visitors.document.objects.Parameter.fixedFields.examples,
  50191. content: $v.visitors.document.objects.Parameter.fixedFields.content
  50192. }
  50193. },
  50194. RequestBody: {
  50195. $visitor: LE,
  50196. fixedFields: {
  50197. description: $v.visitors.document.objects.RequestBody.fixedFields.description,
  50198. content: $v.visitors.document.objects.RequestBody.fixedFields.content,
  50199. required: $v.visitors.document.objects.RequestBody.fixedFields.required
  50200. }
  50201. },
  50202. MediaType: {
  50203. $visitor: b_,
  50204. fixedFields: {
  50205. schema: { $ref: '#/visitors/document/objects/Schema' },
  50206. example: $v.visitors.document.objects.MediaType.fixedFields.example,
  50207. examples: $v.visitors.document.objects.MediaType.fixedFields.examples,
  50208. encoding: $v.visitors.document.objects.MediaType.fixedFields.encoding
  50209. }
  50210. },
  50211. Encoding: {
  50212. $visitor: TE,
  50213. fixedFields: {
  50214. contentType: $v.visitors.document.objects.Encoding.fixedFields.contentType,
  50215. headers: $v.visitors.document.objects.Encoding.fixedFields.headers,
  50216. style: $v.visitors.document.objects.Encoding.fixedFields.style,
  50217. explode: $v.visitors.document.objects.Encoding.fixedFields.explode,
  50218. allowReserved: $v.visitors.document.objects.Encoding.fixedFields.allowReserved
  50219. }
  50220. },
  50221. Responses: {
  50222. $visitor: UE,
  50223. fixedFields: {
  50224. default: $v.visitors.document.objects.Responses.fixedFields.default
  50225. }
  50226. },
  50227. Response: {
  50228. $visitor: $E,
  50229. fixedFields: {
  50230. description: $v.visitors.document.objects.Response.fixedFields.description,
  50231. headers: $v.visitors.document.objects.Response.fixedFields.headers,
  50232. content: $v.visitors.document.objects.Response.fixedFields.content,
  50233. links: $v.visitors.document.objects.Response.fixedFields.links
  50234. }
  50235. },
  50236. Callback: { $visitor: FE },
  50237. Example: {
  50238. $visitor: jE,
  50239. fixedFields: {
  50240. summary: $v.visitors.document.objects.Example.fixedFields.summary,
  50241. description: $v.visitors.document.objects.Example.fixedFields.description,
  50242. value: $v.visitors.document.objects.Example.fixedFields.value,
  50243. externalValue: $v.visitors.document.objects.Example.fixedFields.externalValue
  50244. }
  50245. },
  50246. Link: {
  50247. $visitor: h_,
  50248. fixedFields: {
  50249. operationRef: $v.visitors.document.objects.Link.fixedFields.operationRef,
  50250. operationId: $v.visitors.document.objects.Link.fixedFields.operationId,
  50251. parameters: $v.visitors.document.objects.Link.fixedFields.parameters,
  50252. requestBody: $v.visitors.document.objects.Link.fixedFields.requestBody,
  50253. description: $v.visitors.document.objects.Link.fixedFields.description,
  50254. server: { $ref: '#/visitors/document/objects/Server' }
  50255. }
  50256. },
  50257. Header: {
  50258. $visitor: M_,
  50259. fixedFields: {
  50260. description: $v.visitors.document.objects.Header.fixedFields.description,
  50261. required: $v.visitors.document.objects.Header.fixedFields.required,
  50262. deprecated: $v.visitors.document.objects.Header.fixedFields.deprecated,
  50263. allowEmptyValue:
  50264. $v.visitors.document.objects.Header.fixedFields.allowEmptyValue,
  50265. style: $v.visitors.document.objects.Header.fixedFields.style,
  50266. explode: $v.visitors.document.objects.Header.fixedFields.explode,
  50267. allowReserved: $v.visitors.document.objects.Header.fixedFields.allowReserved,
  50268. schema: { $ref: '#/visitors/document/objects/Schema' },
  50269. example: $v.visitors.document.objects.Header.fixedFields.example,
  50270. examples: $v.visitors.document.objects.Header.fixedFields.examples,
  50271. content: $v.visitors.document.objects.Header.fixedFields.content
  50272. }
  50273. },
  50274. Tag: {
  50275. $visitor: C_,
  50276. fixedFields: {
  50277. name: $v.visitors.document.objects.Tag.fixedFields.name,
  50278. description: $v.visitors.document.objects.Tag.fixedFields.description,
  50279. externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' }
  50280. }
  50281. },
  50282. Reference: {
  50283. $visitor: A_,
  50284. fixedFields: {
  50285. $ref: $v.visitors.document.objects.Reference.fixedFields.$ref,
  50286. summary: { $ref: '#/visitors/value' },
  50287. description: { $ref: '#/visitors/value' }
  50288. }
  50289. },
  50290. Schema: {
  50291. $visitor: iE,
  50292. fixedFields: {
  50293. $schema: { $ref: '#/visitors/value' },
  50294. $vocabulary: aE,
  50295. $id: { $ref: '#/visitors/value' },
  50296. $anchor: { $ref: '#/visitors/value' },
  50297. $dynamicAnchor: { $ref: '#/visitors/value' },
  50298. $dynamicRef: { $ref: '#/visitors/value' },
  50299. $ref: lE,
  50300. $defs: cE,
  50301. $comment: { $ref: '#/visitors/value' },
  50302. allOf: uE,
  50303. anyOf: pE,
  50304. oneOf: hE,
  50305. not: { $ref: '#/visitors/document/objects/Schema' },
  50306. if: { $ref: '#/visitors/document/objects/Schema' },
  50307. then: { $ref: '#/visitors/document/objects/Schema' },
  50308. else: { $ref: '#/visitors/document/objects/Schema' },
  50309. dependentSchemas: dE,
  50310. prefixItems: fE,
  50311. items: { $ref: '#/visitors/document/objects/Schema' },
  50312. contains: { $ref: '#/visitors/document/objects/Schema' },
  50313. properties: mE,
  50314. patternProperties: gE,
  50315. additionalProperties: { $ref: '#/visitors/document/objects/Schema' },
  50316. propertyNames: { $ref: '#/visitors/document/objects/Schema' },
  50317. unevaluatedItems: { $ref: '#/visitors/document/objects/Schema' },
  50318. unevaluatedProperties: { $ref: '#/visitors/document/objects/Schema' },
  50319. type: yE,
  50320. enum: vE,
  50321. const: { $ref: '#/visitors/value' },
  50322. multipleOf: { $ref: '#/visitors/value' },
  50323. maximum: { $ref: '#/visitors/value' },
  50324. exclusiveMaximum: { $ref: '#/visitors/value' },
  50325. minimum: { $ref: '#/visitors/value' },
  50326. exclusiveMinimum: { $ref: '#/visitors/value' },
  50327. maxLength: { $ref: '#/visitors/value' },
  50328. minLength: { $ref: '#/visitors/value' },
  50329. pattern: { $ref: '#/visitors/value' },
  50330. maxItems: { $ref: '#/visitors/value' },
  50331. minItems: { $ref: '#/visitors/value' },
  50332. uniqueItems: { $ref: '#/visitors/value' },
  50333. maxContains: { $ref: '#/visitors/value' },
  50334. minContains: { $ref: '#/visitors/value' },
  50335. maxProperties: { $ref: '#/visitors/value' },
  50336. minProperties: { $ref: '#/visitors/value' },
  50337. required: { $ref: '#/visitors/value' },
  50338. dependentRequired: bE,
  50339. title: { $ref: '#/visitors/value' },
  50340. description: { $ref: '#/visitors/value' },
  50341. default: { $ref: '#/visitors/value' },
  50342. deprecated: { $ref: '#/visitors/value' },
  50343. readOnly: { $ref: '#/visitors/value' },
  50344. writeOnly: { $ref: '#/visitors/value' },
  50345. examples: _E,
  50346. format: { $ref: '#/visitors/value' },
  50347. contentEncoding: { $ref: '#/visitors/value' },
  50348. contentMediaType: { $ref: '#/visitors/value' },
  50349. contentSchema: { $ref: '#/visitors/document/objects/Schema' },
  50350. discriminator: { $ref: '#/visitors/document/objects/Discriminator' },
  50351. xml: { $ref: '#/visitors/document/objects/XML' },
  50352. externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
  50353. example: { $ref: '#/visitors/value' }
  50354. }
  50355. },
  50356. Discriminator: {
  50357. $visitor: wE,
  50358. fixedFields: {
  50359. propertyName:
  50360. $v.visitors.document.objects.Discriminator.fixedFields.propertyName,
  50361. mapping: $v.visitors.document.objects.Discriminator.fixedFields.mapping
  50362. }
  50363. },
  50364. XML: {
  50365. $visitor: xE,
  50366. fixedFields: {
  50367. name: $v.visitors.document.objects.XML.fixedFields.name,
  50368. namespace: $v.visitors.document.objects.XML.fixedFields.namespace,
  50369. prefix: $v.visitors.document.objects.XML.fixedFields.prefix,
  50370. attribute: $v.visitors.document.objects.XML.fixedFields.attribute,
  50371. wrapped: $v.visitors.document.objects.XML.fixedFields.wrapped
  50372. }
  50373. },
  50374. SecurityScheme: {
  50375. $visitor: GE,
  50376. fixedFields: {
  50377. type: $v.visitors.document.objects.SecurityScheme.fixedFields.type,
  50378. description:
  50379. $v.visitors.document.objects.SecurityScheme.fixedFields.description,
  50380. name: $v.visitors.document.objects.SecurityScheme.fixedFields.name,
  50381. in: $v.visitors.document.objects.SecurityScheme.fixedFields.in,
  50382. scheme: $v.visitors.document.objects.SecurityScheme.fixedFields.scheme,
  50383. bearerFormat:
  50384. $v.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,
  50385. flows: { $ref: '#/visitors/document/objects/OAuthFlows' },
  50386. openIdConnectUrl:
  50387. $v.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl
  50388. }
  50389. },
  50390. OAuthFlows: {
  50391. $visitor: XE,
  50392. fixedFields: {
  50393. implicit: { $ref: '#/visitors/document/objects/OAuthFlow' },
  50394. password: { $ref: '#/visitors/document/objects/OAuthFlow' },
  50395. clientCredentials: { $ref: '#/visitors/document/objects/OAuthFlow' },
  50396. authorizationCode: { $ref: '#/visitors/document/objects/OAuthFlow' }
  50397. }
  50398. },
  50399. OAuthFlow: {
  50400. $visitor: QE,
  50401. fixedFields: {
  50402. authorizationUrl:
  50403. $v.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,
  50404. tokenUrl: $v.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,
  50405. refreshUrl: $v.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,
  50406. scopes: $v.visitors.document.objects.OAuthFlow.fixedFields.scopes
  50407. }
  50408. },
  50409. SecurityRequirement: { $visitor: w_ }
  50410. },
  50411. extension: { $visitor: $v.visitors.document.extension.$visitor }
  50412. }
  50413. }
  50414. },
  50415. apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType = (s) => {
  50416. if (Nu(s)) return `${s.element.charAt(0).toUpperCase() + s.element.slice(1)}Element`;
  50417. },
  50418. nw = {
  50419. CallbackElement: ['content'],
  50420. ComponentsElement: ['content'],
  50421. ContactElement: ['content'],
  50422. DiscriminatorElement: ['content'],
  50423. Encoding: ['content'],
  50424. Example: ['content'],
  50425. ExternalDocumentationElement: ['content'],
  50426. HeaderElement: ['content'],
  50427. InfoElement: ['content'],
  50428. LicenseElement: ['content'],
  50429. MediaTypeElement: ['content'],
  50430. OAuthFlowElement: ['content'],
  50431. OAuthFlowsElement: ['content'],
  50432. OpenApi3_1Element: ['content'],
  50433. OperationElement: ['content'],
  50434. ParameterElement: ['content'],
  50435. PathItemElement: ['content'],
  50436. PathsElement: ['content'],
  50437. ReferenceElement: ['content'],
  50438. RequestBodyElement: ['content'],
  50439. ResponseElement: ['content'],
  50440. ResponsesElement: ['content'],
  50441. SchemaElement: ['content'],
  50442. SecurityRequirementElement: ['content'],
  50443. SecuritySchemeElement: ['content'],
  50444. ServerElement: ['content'],
  50445. ServerVariableElement: ['content'],
  50446. TagElement: ['content'],
  50447. ...Qu
  50448. },
  50449. sw = {
  50450. namespace: (s) => {
  50451. const { base: o } = s;
  50452. return (
  50453. o.register('callback', Wv),
  50454. o.register('components', Kv),
  50455. o.register('contact', Hv),
  50456. o.register('discriminator', Jv),
  50457. o.register('encoding', Gv),
  50458. o.register('example', Yv),
  50459. o.register('externalDocumentation', Xv),
  50460. o.register('header', Zv),
  50461. o.register('info', Qv),
  50462. o.register('jsonSchemaDialect', eb),
  50463. o.register('license', tb),
  50464. o.register('link', nb),
  50465. o.register('mediaType', pb),
  50466. o.register('oAuthFlow', mb),
  50467. o.register('oAuthFlows', yb),
  50468. o.register('openapi', _b),
  50469. o.register('openApi3_1', wb),
  50470. o.register('operation', Sb),
  50471. o.register('parameter', Ob),
  50472. o.register('pathItem', Ab),
  50473. o.register('paths', Ib),
  50474. o.register('reference', Pb),
  50475. o.register('requestBody', Mb),
  50476. o.register('response', Rb),
  50477. o.register('responses', Lb),
  50478. o.register('schema', qb),
  50479. o.register('securityRequirement', zb),
  50480. o.register('securityScheme', Qb),
  50481. o.register('server', e_),
  50482. o.register('serverVariable', t_),
  50483. o.register('tag', r_),
  50484. o.register('xml', n_),
  50485. o
  50486. );
  50487. }
  50488. },
  50489. ow = sw,
  50490. ancestorLineageToJSONPointer = (s) => {
  50491. const o = s.reduce((o, i, u) => {
  50492. if ($u(i)) {
  50493. const s = String(serializers_value(i.key));
  50494. o.push(s);
  50495. } else if (qu(s[u - 2])) {
  50496. const _ = String(s[u - 2].content.indexOf(i));
  50497. o.push(_);
  50498. }
  50499. return o;
  50500. }, []);
  50501. return es_compile(o);
  50502. },
  50503. apidom_ns_openapi_3_1_es_refractor_toolbox = () => {
  50504. const s = createNamespace(ow);
  50505. return {
  50506. predicates: {
  50507. ...de,
  50508. isElement: Nu,
  50509. isStringElement: Ru,
  50510. isArrayElement: qu,
  50511. isObjectElement: Fu,
  50512. isMemberElement: $u,
  50513. isServersElement: rg,
  50514. includesClasses,
  50515. hasElementSourceMap
  50516. },
  50517. ancestorLineageToJSONPointer,
  50518. namespace: s
  50519. };
  50520. },
  50521. apidom_ns_openapi_3_1_es_refractor_refract = (
  50522. s,
  50523. {
  50524. specPath: o = ['visitors', 'document', 'objects', 'OpenApi', '$visitor'],
  50525. plugins: i = []
  50526. } = {}
  50527. ) => {
  50528. const u = (0, Cu.e)(s),
  50529. _ = dereference(rw),
  50530. w = new (cp(o, _))({ specObj: _ });
  50531. return (
  50532. visitor_visit(u, w),
  50533. dispatchPluginsSync(w.element, i, {
  50534. toolboxCreator: apidom_ns_openapi_3_1_es_refractor_toolbox,
  50535. visitorOptions: {
  50536. keyMap: nw,
  50537. nodeTypeGetter: apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType
  50538. }
  50539. })
  50540. );
  50541. },
  50542. apidom_ns_openapi_3_1_es_refractor_createRefractor =
  50543. (s) =>
  50544. (o, i = {}) =>
  50545. apidom_ns_openapi_3_1_es_refractor_refract(o, { specPath: s, ...i });
  50546. (Wv.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50547. 'visitors',
  50548. 'document',
  50549. 'objects',
  50550. 'Callback',
  50551. '$visitor'
  50552. ])),
  50553. (Kv.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50554. 'visitors',
  50555. 'document',
  50556. 'objects',
  50557. 'Components',
  50558. '$visitor'
  50559. ])),
  50560. (Hv.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50561. 'visitors',
  50562. 'document',
  50563. 'objects',
  50564. 'Contact',
  50565. '$visitor'
  50566. ])),
  50567. (Yv.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50568. 'visitors',
  50569. 'document',
  50570. 'objects',
  50571. 'Example',
  50572. '$visitor'
  50573. ])),
  50574. (Jv.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50575. 'visitors',
  50576. 'document',
  50577. 'objects',
  50578. 'Discriminator',
  50579. '$visitor'
  50580. ])),
  50581. (Gv.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50582. 'visitors',
  50583. 'document',
  50584. 'objects',
  50585. 'Encoding',
  50586. '$visitor'
  50587. ])),
  50588. (Xv.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50589. 'visitors',
  50590. 'document',
  50591. 'objects',
  50592. 'ExternalDocumentation',
  50593. '$visitor'
  50594. ])),
  50595. (Zv.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50596. 'visitors',
  50597. 'document',
  50598. 'objects',
  50599. 'Header',
  50600. '$visitor'
  50601. ])),
  50602. (Qv.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50603. 'visitors',
  50604. 'document',
  50605. 'objects',
  50606. 'Info',
  50607. '$visitor'
  50608. ])),
  50609. (eb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50610. 'visitors',
  50611. 'document',
  50612. 'objects',
  50613. 'OpenApi',
  50614. 'fixedFields',
  50615. 'jsonSchemaDialect'
  50616. ])),
  50617. (tb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50618. 'visitors',
  50619. 'document',
  50620. 'objects',
  50621. 'License',
  50622. '$visitor'
  50623. ])),
  50624. (nb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50625. 'visitors',
  50626. 'document',
  50627. 'objects',
  50628. 'Link',
  50629. '$visitor'
  50630. ])),
  50631. (pb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50632. 'visitors',
  50633. 'document',
  50634. 'objects',
  50635. 'MediaType',
  50636. '$visitor'
  50637. ])),
  50638. (mb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50639. 'visitors',
  50640. 'document',
  50641. 'objects',
  50642. 'OAuthFlow',
  50643. '$visitor'
  50644. ])),
  50645. (yb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50646. 'visitors',
  50647. 'document',
  50648. 'objects',
  50649. 'OAuthFlows',
  50650. '$visitor'
  50651. ])),
  50652. (_b.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50653. 'visitors',
  50654. 'document',
  50655. 'objects',
  50656. 'OpenApi',
  50657. 'fixedFields',
  50658. 'openapi'
  50659. ])),
  50660. (wb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50661. 'visitors',
  50662. 'document',
  50663. 'objects',
  50664. 'OpenApi',
  50665. '$visitor'
  50666. ])),
  50667. (Sb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50668. 'visitors',
  50669. 'document',
  50670. 'objects',
  50671. 'Operation',
  50672. '$visitor'
  50673. ])),
  50674. (Ob.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50675. 'visitors',
  50676. 'document',
  50677. 'objects',
  50678. 'Parameter',
  50679. '$visitor'
  50680. ])),
  50681. (Ab.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50682. 'visitors',
  50683. 'document',
  50684. 'objects',
  50685. 'PathItem',
  50686. '$visitor'
  50687. ])),
  50688. (Ib.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50689. 'visitors',
  50690. 'document',
  50691. 'objects',
  50692. 'Paths',
  50693. '$visitor'
  50694. ])),
  50695. (Pb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50696. 'visitors',
  50697. 'document',
  50698. 'objects',
  50699. 'Reference',
  50700. '$visitor'
  50701. ])),
  50702. (Mb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50703. 'visitors',
  50704. 'document',
  50705. 'objects',
  50706. 'RequestBody',
  50707. '$visitor'
  50708. ])),
  50709. (Rb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50710. 'visitors',
  50711. 'document',
  50712. 'objects',
  50713. 'Response',
  50714. '$visitor'
  50715. ])),
  50716. (Lb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50717. 'visitors',
  50718. 'document',
  50719. 'objects',
  50720. 'Responses',
  50721. '$visitor'
  50722. ])),
  50723. (qb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50724. 'visitors',
  50725. 'document',
  50726. 'objects',
  50727. 'Schema',
  50728. '$visitor'
  50729. ])),
  50730. (zb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50731. 'visitors',
  50732. 'document',
  50733. 'objects',
  50734. 'SecurityRequirement',
  50735. '$visitor'
  50736. ])),
  50737. (Qb.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50738. 'visitors',
  50739. 'document',
  50740. 'objects',
  50741. 'SecurityScheme',
  50742. '$visitor'
  50743. ])),
  50744. (e_.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50745. 'visitors',
  50746. 'document',
  50747. 'objects',
  50748. 'Server',
  50749. '$visitor'
  50750. ])),
  50751. (t_.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50752. 'visitors',
  50753. 'document',
  50754. 'objects',
  50755. 'ServerVariable',
  50756. '$visitor'
  50757. ])),
  50758. (r_.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50759. 'visitors',
  50760. 'document',
  50761. 'objects',
  50762. 'Tag',
  50763. '$visitor'
  50764. ])),
  50765. (n_.refract = apidom_ns_openapi_3_1_es_refractor_createRefractor([
  50766. 'visitors',
  50767. 'document',
  50768. 'objects',
  50769. 'XML',
  50770. '$visitor'
  50771. ]));
  50772. const iw = class NotImplementedError extends Hh {};
  50773. const aw = class MediaTypes extends Array {
  50774. unknownMediaType = 'application/octet-stream';
  50775. filterByFormat() {
  50776. throw new iw('filterByFormat method in MediaTypes class is not yet implemented.');
  50777. }
  50778. findBy() {
  50779. throw new iw('findBy method in MediaTypes class is not yet implemented.');
  50780. }
  50781. latest() {
  50782. throw new iw('latest method in MediaTypes class is not yet implemented.');
  50783. }
  50784. };
  50785. class OpenAPIMediaTypes extends aw {
  50786. filterByFormat(s = 'generic') {
  50787. const o = 'generic' === s ? 'openapi;version' : s;
  50788. return this.filter((s) => s.includes(o));
  50789. }
  50790. findBy(s = '3.1.0', o = 'generic') {
  50791. const i =
  50792. 'generic' === o
  50793. ? `vnd.oai.openapi;version=${s}`
  50794. : `vnd.oai.openapi+${o};version=${s}`;
  50795. return this.find((s) => s.includes(i)) || this.unknownMediaType;
  50796. }
  50797. latest(s = 'generic') {
  50798. return Fa(this.filterByFormat(s));
  50799. }
  50800. }
  50801. const lw = new OpenAPIMediaTypes(
  50802. 'application/vnd.oai.openapi;version=3.1.0',
  50803. 'application/vnd.oai.openapi+json;version=3.1.0',
  50804. 'application/vnd.oai.openapi+yaml;version=3.1.0'
  50805. );
  50806. const cw = class es_Reference_Reference {
  50807. uri;
  50808. depth;
  50809. value;
  50810. refSet;
  50811. errors;
  50812. constructor({ uri: s, depth: o = 0, refSet: i, value: u }) {
  50813. (this.uri = s),
  50814. (this.value = u),
  50815. (this.depth = o),
  50816. (this.refSet = i),
  50817. (this.errors = []);
  50818. }
  50819. };
  50820. const uw = class ReferenceSet {
  50821. rootRef;
  50822. refs;
  50823. circular;
  50824. constructor({ refs: s = [], circular: o = !1 } = {}) {
  50825. (this.refs = []), (this.circular = o), s.forEach(this.add.bind(this));
  50826. }
  50827. get size() {
  50828. return this.refs.length;
  50829. }
  50830. add(s) {
  50831. return (
  50832. this.has(s) ||
  50833. (this.refs.push(s),
  50834. (this.rootRef = void 0 === this.rootRef ? s : this.rootRef),
  50835. (s.refSet = this)),
  50836. this
  50837. );
  50838. }
  50839. merge(s) {
  50840. for (const o of s.values()) this.add(o);
  50841. return this;
  50842. }
  50843. has(s) {
  50844. const o = Yl(s) ? s : s.uri;
  50845. return Dl(this.find((s) => s.uri === o));
  50846. }
  50847. find(s) {
  50848. return this.refs.find(s);
  50849. }
  50850. *values() {
  50851. yield* this.refs;
  50852. }
  50853. clean() {
  50854. this.refs.forEach((s) => {
  50855. s.refSet = void 0;
  50856. }),
  50857. (this.rootRef = void 0),
  50858. (this.refs.length = 0);
  50859. }
  50860. },
  50861. pw = {
  50862. parse: { mediaType: 'text/plain', parsers: [], parserOpts: {} },
  50863. resolve: {
  50864. baseURI: '',
  50865. resolvers: [],
  50866. resolverOpts: {},
  50867. strategies: [],
  50868. strategyOpts: {},
  50869. internal: !0,
  50870. external: !0,
  50871. maxDepth: 1 / 0
  50872. },
  50873. dereference: {
  50874. strategies: [],
  50875. strategyOpts: {},
  50876. refSet: null,
  50877. maxDepth: 1 / 0,
  50878. circular: 'ignore',
  50879. circularReplacer: Ip,
  50880. immutable: !0
  50881. },
  50882. bundle: { strategies: [], refSet: null, maxDepth: 1 / 0 }
  50883. };
  50884. const hw = _curry2(function lens(s, o) {
  50885. return function (i) {
  50886. return function (u) {
  50887. return kl(
  50888. function (s) {
  50889. return o(s, u);
  50890. },
  50891. i(s(u))
  50892. );
  50893. };
  50894. };
  50895. });
  50896. var dw = _curry3(function assocPath(s, o, i) {
  50897. if (0 === s.length) return o;
  50898. var u = s[0];
  50899. if (s.length > 1) {
  50900. var _ = !ld(i) && _has(u, i) && 'object' == typeof i[u] ? i[u] : Yo(s[1]) ? [] : {};
  50901. o = assocPath(Array.prototype.slice.call(s, 1), o, _);
  50902. }
  50903. return (function _assoc(s, o, i) {
  50904. if (Yo(s) && aa(i)) {
  50905. var u = [].concat(i);
  50906. return (u[s] = o), u;
  50907. }
  50908. var _ = {};
  50909. for (var w in i) _[w] = i[w];
  50910. return (_[s] = o), _;
  50911. })(u, o, i);
  50912. });
  50913. const fw = dw;
  50914. var Identity = function (s) {
  50915. return {
  50916. value: s,
  50917. map: function (o) {
  50918. return Identity(o(s));
  50919. }
  50920. };
  50921. },
  50922. mw = _curry3(function over(s, o, i) {
  50923. return s(function (s) {
  50924. return Identity(o(s));
  50925. })(i).value;
  50926. });
  50927. const gw = mw,
  50928. yw = hw(cp(['resolve', 'baseURI']), fw(['resolve', 'baseURI'])),
  50929. baseURIDefault = (s) => (qp(s) ? url_cwd() : s),
  50930. util_merge = (s, o) => {
  50931. const i = lp(s, o);
  50932. return gw(yw, baseURIDefault, i);
  50933. };
  50934. const vw = class File_File {
  50935. uri;
  50936. mediaType;
  50937. data;
  50938. parseResult;
  50939. constructor({ uri: s, mediaType: o = 'text/plain', data: i, parseResult: u }) {
  50940. (this.uri = s), (this.mediaType = o), (this.data = i), (this.parseResult = u);
  50941. }
  50942. get extension() {
  50943. return Yl(this.uri)
  50944. ? ((s) => {
  50945. const o = s.lastIndexOf('.');
  50946. return o >= 0 ? s.substring(o).toLowerCase() : '';
  50947. })(this.uri)
  50948. : '';
  50949. }
  50950. toString() {
  50951. if ('string' == typeof this.data) return this.data;
  50952. if (
  50953. this.data instanceof ArrayBuffer ||
  50954. ['ArrayBuffer'].includes(ea(this.data)) ||
  50955. ArrayBuffer.isView(this.data)
  50956. ) {
  50957. return new TextDecoder('utf-8').decode(this.data);
  50958. }
  50959. return String(this.data);
  50960. }
  50961. };
  50962. const bw = class PluginError extends Ho {
  50963. plugin;
  50964. constructor(s, o) {
  50965. super(s, { cause: o.cause }), (this.plugin = o.plugin);
  50966. }
  50967. },
  50968. plugins_filter = async (s, o, i) => {
  50969. const u = await Promise.all(i.map(_p([s], o)));
  50970. return i.filter((s, o) => u[o]);
  50971. },
  50972. run = async (s, o, i) => {
  50973. let u;
  50974. for (const _ of i)
  50975. try {
  50976. const i = await _[s].call(_, ...o);
  50977. return { plugin: _, result: i };
  50978. } catch (s) {
  50979. u = new bw('Error while running plugin', { cause: s, plugin: _ });
  50980. }
  50981. return Promise.reject(u);
  50982. };
  50983. const _w = class DereferenceError extends Ho {};
  50984. const Ew = class UnmatchedDereferenceStrategyError extends _w {},
  50985. dereferenceApiDOM = async (s, o) => {
  50986. let i = s,
  50987. u = !1;
  50988. if (!Ku(s)) {
  50989. const o = cloneShallow(s);
  50990. o.classes.push('result'), (i = new Mu([o])), (u = !0);
  50991. }
  50992. const _ = new vw({
  50993. uri: o.resolve.baseURI,
  50994. parseResult: i,
  50995. mediaType: o.parse.mediaType
  50996. }),
  50997. w = await plugins_filter('canDereference', [_, o], o.dereference.strategies);
  50998. if (gp(w)) throw new Ew(_.uri);
  50999. try {
  51000. const { result: s } = await run('dereference', [_, o], w);
  51001. return u ? s.get(0) : s;
  51002. } catch (s) {
  51003. throw new _w(`Error while dereferencing file "${_.uri}"`, { cause: s });
  51004. }
  51005. };
  51006. const ww = class ParseError extends Ho {};
  51007. const Sw = class ParserError extends ww {};
  51008. const xw = class Parser {
  51009. name;
  51010. allowEmpty;
  51011. sourceMap;
  51012. fileExtensions;
  51013. mediaTypes;
  51014. constructor({
  51015. name: s,
  51016. allowEmpty: o = !0,
  51017. sourceMap: i = !1,
  51018. fileExtensions: u = [],
  51019. mediaTypes: _ = []
  51020. }) {
  51021. (this.name = s),
  51022. (this.allowEmpty = o),
  51023. (this.sourceMap = i),
  51024. (this.fileExtensions = u),
  51025. (this.mediaTypes = _);
  51026. }
  51027. };
  51028. const kw = class BinaryParser extends xw {
  51029. constructor(s) {
  51030. super({ ...(null != s ? s : {}), name: 'binary' });
  51031. }
  51032. canParse(s) {
  51033. return 0 === this.fileExtensions.length || this.fileExtensions.includes(s.extension);
  51034. }
  51035. parse(s) {
  51036. try {
  51037. const o = unescape(encodeURIComponent(s.toString())),
  51038. i = btoa(o),
  51039. u = new Mu();
  51040. if (0 !== i.length) {
  51041. const s = new Cu.Om(i);
  51042. s.classes.push('result'), u.push(s);
  51043. }
  51044. return u;
  51045. } catch (o) {
  51046. throw new Sw(`Error parsing "${s.uri}"`, { cause: o });
  51047. }
  51048. }
  51049. };
  51050. const Cw = class ResolveStrategy {
  51051. name;
  51052. constructor({ name: s }) {
  51053. this.name = s;
  51054. }
  51055. };
  51056. const Ow = class OpenAPI3_1ResolveStrategy extends Cw {
  51057. constructor(s) {
  51058. super({ ...(null != s ? s : {}), name: 'openapi-3-1' });
  51059. }
  51060. canResolve(s, o) {
  51061. const i = o.dereference.strategies.find((s) => 'openapi-3-1' === s.name);
  51062. return void 0 !== i && i.canDereference(s, o);
  51063. }
  51064. async resolve(s, o) {
  51065. const i = o.dereference.strategies.find((s) => 'openapi-3-1' === s.name);
  51066. if (void 0 === i) throw new Ew('"openapi-3-1" dereference strategy is not available.');
  51067. const u = new uw(),
  51068. _ = util_merge(o, { resolve: { internal: !1 }, dereference: { refSet: u } });
  51069. return await i.dereference(s, _), u;
  51070. }
  51071. };
  51072. const Aw = class Resolver {
  51073. name;
  51074. constructor({ name: s }) {
  51075. this.name = s;
  51076. }
  51077. };
  51078. const jw = class HTTPResolver extends Aw {
  51079. timeout;
  51080. redirects;
  51081. withCredentials;
  51082. constructor(s) {
  51083. const {
  51084. name: o = 'http-resolver',
  51085. timeout: i = 5e3,
  51086. redirects: u = 5,
  51087. withCredentials: _ = !1
  51088. } = null != s ? s : {};
  51089. super({ name: o }),
  51090. (this.timeout = i),
  51091. (this.redirects = u),
  51092. (this.withCredentials = _);
  51093. }
  51094. canRead(s) {
  51095. return isHttpUrl(s.uri);
  51096. }
  51097. };
  51098. const Iw = class ResolveError extends Ho {};
  51099. const Pw = class ResolverError extends Iw {},
  51100. { AbortController: Mw, AbortSignal: Tw } = globalThis;
  51101. void 0 === globalThis.AbortController && (globalThis.AbortController = Mw),
  51102. void 0 === globalThis.AbortSignal && (globalThis.AbortSignal = Tw);
  51103. const Nw = class HTTPResolverSwaggerClient extends jw {
  51104. swaggerHTTPClient = http_http;
  51105. swaggerHTTPClientConfig;
  51106. constructor({
  51107. swaggerHTTPClient: s = http_http,
  51108. swaggerHTTPClientConfig: o = {},
  51109. ...i
  51110. } = {}) {
  51111. super({ ...i, name: 'http-swagger-client' }),
  51112. (this.swaggerHTTPClient = s),
  51113. (this.swaggerHTTPClientConfig = o);
  51114. }
  51115. getHttpClient() {
  51116. return this.swaggerHTTPClient;
  51117. }
  51118. async read(s) {
  51119. const o = this.getHttpClient(),
  51120. i = new AbortController(),
  51121. { signal: u } = i,
  51122. _ = setTimeout(() => {
  51123. i.abort();
  51124. }, this.timeout),
  51125. w =
  51126. this.getHttpClient().withCredentials || this.withCredentials
  51127. ? 'include'
  51128. : 'same-origin',
  51129. x = 0 === this.redirects ? 'error' : 'follow',
  51130. C = this.redirects > 0 ? this.redirects : void 0;
  51131. try {
  51132. return (
  51133. await o({
  51134. url: s.uri,
  51135. signal: u,
  51136. userFetch: async (s, o) => {
  51137. let i = await fetch(s, o);
  51138. try {
  51139. i.headers.delete('Content-Type');
  51140. } catch {
  51141. (i = new Response(i.body, { ...i, headers: new Headers(i.headers) })),
  51142. i.headers.delete('Content-Type');
  51143. }
  51144. return i;
  51145. },
  51146. credentials: w,
  51147. redirect: x,
  51148. follow: C,
  51149. ...this.swaggerHTTPClientConfig
  51150. })
  51151. ).text.arrayBuffer();
  51152. } catch (o) {
  51153. throw new Pw(`Error downloading "${s.uri}"`, { cause: o });
  51154. } finally {
  51155. clearTimeout(_);
  51156. }
  51157. }
  51158. },
  51159. from = (s, o = wp) => {
  51160. if (Yl(s))
  51161. try {
  51162. return o.fromRefract(JSON.parse(s));
  51163. } catch {}
  51164. return ku(s) && md('element', s) ? o.fromRefract(s) : o.toElement(s);
  51165. };
  51166. const Rw = class JSONParser extends xw {
  51167. constructor(s = {}) {
  51168. super({ name: 'json-swagger-client', mediaTypes: ['application/json'], ...s });
  51169. }
  51170. async canParse(s) {
  51171. const o = 0 === this.fileExtensions.length || this.fileExtensions.includes(s.extension),
  51172. i = this.mediaTypes.includes(s.mediaType);
  51173. if (!o) return !1;
  51174. if (i) return !0;
  51175. if (!i)
  51176. try {
  51177. return JSON.parse(s.toString()), !0;
  51178. } catch (s) {
  51179. return !1;
  51180. }
  51181. return !1;
  51182. }
  51183. async parse(s) {
  51184. if (this.sourceMap)
  51185. throw new Sw("json-swagger-client parser plugin doesn't support sourceMaps option");
  51186. const o = new Mu(),
  51187. i = s.toString();
  51188. if (this.allowEmpty && '' === i.trim()) return o;
  51189. try {
  51190. const s = from(JSON.parse(i));
  51191. return s.classes.push('result'), o.push(s), o;
  51192. } catch (o) {
  51193. throw new Sw(`Error parsing "${s.uri}"`, { cause: o });
  51194. }
  51195. }
  51196. };
  51197. const Dw = class YAMLParser extends xw {
  51198. constructor(s = {}) {
  51199. super({
  51200. name: 'yaml-1-2-swagger-client',
  51201. mediaTypes: ['text/yaml', 'application/yaml'],
  51202. ...s
  51203. });
  51204. }
  51205. async canParse(s) {
  51206. const o = 0 === this.fileExtensions.length || this.fileExtensions.includes(s.extension),
  51207. i = this.mediaTypes.includes(s.mediaType);
  51208. if (!o) return !1;
  51209. if (i) return !0;
  51210. if (!i)
  51211. try {
  51212. return mn.load(s.toString(), { schema: nn }), !0;
  51213. } catch (s) {
  51214. return !1;
  51215. }
  51216. return !1;
  51217. }
  51218. async parse(s) {
  51219. if (this.sourceMap)
  51220. throw new Sw(
  51221. "yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option"
  51222. );
  51223. const o = new Mu(),
  51224. i = s.toString();
  51225. try {
  51226. const s = mn.load(i, { schema: nn });
  51227. if (this.allowEmpty && void 0 === s) return o;
  51228. const u = from(s);
  51229. return u.classes.push('result'), o.push(u), o;
  51230. } catch (o) {
  51231. throw new Sw(`Error parsing "${s.uri}"`, { cause: o });
  51232. }
  51233. }
  51234. };
  51235. const Lw = class OpenAPIJSON3_1Parser extends xw {
  51236. detectionRegExp = /"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;
  51237. constructor(s = {}) {
  51238. super({
  51239. name: 'openapi-json-3-1-swagger-client',
  51240. mediaTypes: new OpenAPIMediaTypes(
  51241. ...lw.filterByFormat('generic'),
  51242. ...lw.filterByFormat('json')
  51243. ),
  51244. ...s
  51245. });
  51246. }
  51247. async canParse(s) {
  51248. const o = 0 === this.fileExtensions.length || this.fileExtensions.includes(s.extension),
  51249. i = this.mediaTypes.includes(s.mediaType);
  51250. if (!o) return !1;
  51251. if (i) return !0;
  51252. if (!i)
  51253. try {
  51254. const o = s.toString();
  51255. return JSON.parse(o), this.detectionRegExp.test(o);
  51256. } catch (s) {
  51257. return !1;
  51258. }
  51259. return !1;
  51260. }
  51261. async parse(s) {
  51262. if (this.sourceMap)
  51263. throw new Sw(
  51264. "openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option"
  51265. );
  51266. const o = new Mu(),
  51267. i = s.toString();
  51268. if (this.allowEmpty && '' === i.trim()) return o;
  51269. try {
  51270. const s = JSON.parse(i),
  51271. u = wb.refract(s, this.refractorOpts);
  51272. return u.classes.push('result'), o.push(u), o;
  51273. } catch (o) {
  51274. throw new Sw(`Error parsing "${s.uri}"`, { cause: o });
  51275. }
  51276. }
  51277. };
  51278. const Bw = class OpenAPIYAML31Parser extends xw {
  51279. detectionRegExp =
  51280. /(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;
  51281. constructor(s = {}) {
  51282. super({
  51283. name: 'openapi-yaml-3-1-swagger-client',
  51284. mediaTypes: new OpenAPIMediaTypes(
  51285. ...lw.filterByFormat('generic'),
  51286. ...lw.filterByFormat('yaml')
  51287. ),
  51288. ...s
  51289. });
  51290. }
  51291. async canParse(s) {
  51292. const o = 0 === this.fileExtensions.length || this.fileExtensions.includes(s.extension),
  51293. i = this.mediaTypes.includes(s.mediaType);
  51294. if (!o) return !1;
  51295. if (i) return !0;
  51296. if (!i)
  51297. try {
  51298. const o = s.toString();
  51299. return mn.load(o), this.detectionRegExp.test(o);
  51300. } catch (s) {
  51301. return !1;
  51302. }
  51303. return !1;
  51304. }
  51305. async parse(s) {
  51306. if (this.sourceMap)
  51307. throw new Sw(
  51308. "openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option"
  51309. );
  51310. const o = new Mu(),
  51311. i = s.toString();
  51312. try {
  51313. const s = mn.load(i, { schema: nn });
  51314. if (this.allowEmpty && void 0 === s) return o;
  51315. const u = wb.refract(s, this.refractorOpts);
  51316. return u.classes.push('result'), o.push(u), o;
  51317. } catch (o) {
  51318. throw new Sw(`Error parsing "${s.uri}"`, { cause: o });
  51319. }
  51320. }
  51321. };
  51322. const Fw = _curry3(function propEq(s, o, i) {
  51323. return ra(s, Da(o, i));
  51324. });
  51325. const qw = class DereferenceStrategy {
  51326. name;
  51327. constructor({ name: s }) {
  51328. this.name = s;
  51329. }
  51330. };
  51331. var $w = _curry2(function none(s, o) {
  51332. return ju(_complement(s), o);
  51333. });
  51334. const Vw = $w;
  51335. var Uw = __webpack_require__(8068);
  51336. const zw = class ElementIdentityError extends Jo {
  51337. value;
  51338. constructor(s, o) {
  51339. super(s, o), void 0 !== o && (this.value = o.value);
  51340. }
  51341. };
  51342. class IdentityManager {
  51343. uuid;
  51344. identityMap;
  51345. constructor({ length: s = 6 } = {}) {
  51346. (this.uuid = new Uw({ length: s })), (this.identityMap = new WeakMap());
  51347. }
  51348. identify(s) {
  51349. if (!Nu(s))
  51350. throw new zw(
  51351. 'Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.',
  51352. { value: s }
  51353. );
  51354. if (s.meta.hasKey('id') && Ru(s.meta.get('id')) && !s.meta.get('id').equals(''))
  51355. return s.id;
  51356. if (this.identityMap.has(s)) return this.identityMap.get(s);
  51357. const o = new Cu.Om(this.generateId());
  51358. return this.identityMap.set(s, o), o;
  51359. }
  51360. forget(s) {
  51361. return !!this.identityMap.has(s) && (this.identityMap.delete(s), !0);
  51362. }
  51363. generateId() {
  51364. return this.uuid.randomUUID();
  51365. }
  51366. }
  51367. new IdentityManager();
  51368. const Ww = _curry3(function pathOr(s, o, i) {
  51369. return Na(s, _path(o, i));
  51370. }),
  51371. traversal_find = (s, o) => {
  51372. const i = new PredicateVisitor({ predicate: s, returnOnTrue: Ju });
  51373. return visitor_visit(o, i), Ww(void 0, [0], i.result);
  51374. };
  51375. const Kw = class JsonSchema$anchorError extends Ho {};
  51376. const Hw = class EvaluationJsonSchema$anchorError extends Kw {};
  51377. const Jw = class InvalidJsonSchema$anchorError extends Kw {
  51378. constructor(s) {
  51379. super(`Invalid JSON Schema $anchor "${s}".`);
  51380. }
  51381. },
  51382. isAnchor = (s) => /^[A-Za-z_][A-Za-z_0-9.-]*$/.test(s),
  51383. uriToAnchor = (s) => {
  51384. const o = getHash(s);
  51385. return Up('#', o);
  51386. },
  51387. $anchor_evaluate = (s, o) => {
  51388. const i = ((s) => {
  51389. if (!isAnchor(s)) throw new Jw(s);
  51390. return s;
  51391. })(s),
  51392. u = traversal_find((s) => Q_(s) && serializers_value(s.$anchor) === i, o);
  51393. if (Rl(u)) throw new Hw(`Evaluation failed on token: "${i}"`);
  51394. return u;
  51395. },
  51396. traversal_filter = (s, o) => {
  51397. const i = new PredicateVisitor({ predicate: s });
  51398. return visitor_visit(o, i), new Cu.G6(i.result);
  51399. };
  51400. const Gw = class JsonSchemaUriError extends Ho {};
  51401. const Yw = class EvaluationJsonSchemaUriError extends Gw {},
  51402. resolveSchema$refField = (s, o) => {
  51403. if (void 0 === o.$ref) return;
  51404. const i = getHash(serializers_value(o.$ref)),
  51405. u = serializers_value(o.meta.get('inherited$id')),
  51406. _ = Ca((s, o) => resolve(s, sanitize(stripHash(o))), s, [
  51407. ...u,
  51408. serializers_value(o.$ref)
  51409. ]);
  51410. return `${_}${'#' === i ? '' : i}`;
  51411. },
  51412. refractToSchemaElement = (s) => {
  51413. if (refractToSchemaElement.cache.has(s)) return refractToSchemaElement.cache.get(s);
  51414. const o = qb.refract(s);
  51415. return refractToSchemaElement.cache.set(s, o), o;
  51416. };
  51417. refractToSchemaElement.cache = new WeakMap();
  51418. const maybeRefractToSchemaElement = (s) =>
  51419. isPrimitiveElement(s) ? refractToSchemaElement(s) : s,
  51420. uri_evaluate = (s, o) => {
  51421. const { cache: i } = uri_evaluate,
  51422. u = stripHash(s),
  51423. isSchemaElementWith$id = (s) => Q_(s) && void 0 !== s.$id;
  51424. if (!i.has(o)) {
  51425. const s = traversal_filter(isSchemaElementWith$id, o);
  51426. i.set(o, Array.from(s));
  51427. }
  51428. const _ = i.get(o).find((s) => {
  51429. const o = ((s, o) => {
  51430. if (void 0 === o.$id) return;
  51431. const i = serializers_value(o.meta.get('inherited$id'));
  51432. return Ca((s, o) => resolve(s, sanitize(stripHash(o))), s, [
  51433. ...i,
  51434. serializers_value(o.$id)
  51435. ]);
  51436. })(u, s);
  51437. return o === u;
  51438. });
  51439. if (Rl(_)) throw new Yw(`Evaluation failed on URI: "${s}"`);
  51440. let w, x;
  51441. return (
  51442. isAnchor(uriToAnchor(s))
  51443. ? ((w = $anchor_evaluate), (x = uriToAnchor(s)))
  51444. : ((w = es_evaluate), (x = uriToPointer(s))),
  51445. w(x, _)
  51446. );
  51447. };
  51448. uri_evaluate.cache = new WeakMap();
  51449. const Xw = class MaximumDereferenceDepthError extends _w {};
  51450. const Zw = class MaximumResolveDepthError extends Iw {};
  51451. const Qw = class UnmatchedResolverError extends Pw {},
  51452. _swagger_api_apidom_reference_es_parse = async (s, o) => {
  51453. const i = new vw({ uri: sanitize(stripHash(s)), mediaType: o.parse.mediaType }),
  51454. u = await (async (s, o) => {
  51455. const i = o.resolve.resolvers.map((s) => {
  51456. const i = Object.create(s);
  51457. return Object.assign(i, o.resolve.resolverOpts);
  51458. }),
  51459. u = await plugins_filter('canRead', [s, o], i);
  51460. if (gp(u)) throw new Qw(s.uri);
  51461. try {
  51462. const { result: o } = await run('read', [s], u);
  51463. return o;
  51464. } catch (o) {
  51465. throw new Iw(`Error while reading file "${s.uri}"`, { cause: o });
  51466. }
  51467. })(i, o);
  51468. return (async (s, o) => {
  51469. const i = o.parse.parsers.map((s) => {
  51470. const i = Object.create(s);
  51471. return Object.assign(i, o.parse.parserOpts);
  51472. }),
  51473. u = await plugins_filter('canParse', [s, o], i);
  51474. if (gp(u)) throw new Qw(s.uri);
  51475. try {
  51476. const { plugin: i, result: _ } = await run('parse', [s, o], u);
  51477. return !i.allowEmpty && _.isEmpty
  51478. ? Promise.reject(new ww(`Error while parsing file "${s.uri}". File is empty.`))
  51479. : _;
  51480. } catch (o) {
  51481. throw new ww(`Error while parsing file "${s.uri}"`, { cause: o });
  51482. }
  51483. })(new vw({ ...i, data: u }), o);
  51484. };
  51485. class AncestorLineage extends Array {
  51486. includesCycle(s) {
  51487. return this.filter((o) => o.has(s)).length > 1;
  51488. }
  51489. includes(s, o) {
  51490. return s instanceof Set ? super.includes(s, o) : this.some((o) => o.has(s));
  51491. }
  51492. findItem(s) {
  51493. for (const o of this) for (const i of o) if (Nu(i) && s(i)) return i;
  51494. }
  51495. }
  51496. const eS = visitor_visit[Symbol.for('nodejs.util.promisify.custom')],
  51497. tS = new IdentityManager(),
  51498. mutationReplacer = (s, o, i, u) => {
  51499. $u(u) ? (u.value = s) : Array.isArray(u) && (u[i] = s);
  51500. };
  51501. class OpenAPI3_1DereferenceVisitor {
  51502. indirections;
  51503. namespace;
  51504. reference;
  51505. options;
  51506. ancestors;
  51507. refractCache;
  51508. constructor({
  51509. reference: s,
  51510. namespace: o,
  51511. options: i,
  51512. indirections: u = [],
  51513. ancestors: _ = new AncestorLineage(),
  51514. refractCache: w = new Map()
  51515. }) {
  51516. (this.indirections = u),
  51517. (this.namespace = o),
  51518. (this.reference = s),
  51519. (this.options = i),
  51520. (this.ancestors = new AncestorLineage(..._)),
  51521. (this.refractCache = w);
  51522. }
  51523. toBaseURI(s) {
  51524. return resolve(this.reference.uri, sanitize(stripHash(s)));
  51525. }
  51526. async toReference(s) {
  51527. if (this.reference.depth >= this.options.resolve.maxDepth)
  51528. throw new Zw(
  51529. `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`
  51530. );
  51531. const o = this.toBaseURI(s),
  51532. { refSet: i } = this.reference;
  51533. if (i.has(o)) return i.find(Fw(o, 'uri'));
  51534. const u = await _swagger_api_apidom_reference_es_parse(unsanitize(o), {
  51535. ...this.options,
  51536. parse: { ...this.options.parse, mediaType: 'text/plain' }
  51537. }),
  51538. _ = new cw({ uri: o, value: cloneDeep(u), depth: this.reference.depth + 1 });
  51539. if ((i.add(_), this.options.dereference.immutable)) {
  51540. const s = new cw({
  51541. uri: `immutable://${o}`,
  51542. value: u,
  51543. depth: this.reference.depth + 1
  51544. });
  51545. i.add(s);
  51546. }
  51547. return _;
  51548. }
  51549. toAncestorLineage(s) {
  51550. const o = new Set(s.filter(Nu));
  51551. return [new AncestorLineage(...this.ancestors, o), o];
  51552. }
  51553. async ReferenceElement(s, o, i, u, _, w) {
  51554. if (this.indirections.includes(s)) return !1;
  51555. const [x, C] = this.toAncestorLineage([..._, i]),
  51556. j = this.toBaseURI(serializers_value(s.$ref)),
  51557. L = stripHash(this.reference.uri) === j,
  51558. B = !L;
  51559. if (!this.options.resolve.internal && L) return !1;
  51560. if (!this.options.resolve.external && B) return !1;
  51561. const $ = await this.toReference(serializers_value(s.$ref)),
  51562. V = resolve(j, serializers_value(s.$ref));
  51563. this.indirections.push(s);
  51564. const U = uriToPointer(V);
  51565. let z = es_evaluate(U, $.value.result);
  51566. if (((z.id = tS.identify(z)), isPrimitiveElement(z))) {
  51567. const o = serializers_value(s.meta.get('referenced-element')),
  51568. i = `${o}-${serializers_value(tS.identify(z))}`;
  51569. if (this.refractCache.has(i)) z = this.refractCache.get(i);
  51570. else if (isReferenceLikeElement(z))
  51571. (z = Pb.refract(z)),
  51572. z.setMetaProperty('referenced-element', o),
  51573. this.refractCache.set(i, z);
  51574. else {
  51575. (z = this.namespace.getElementClass(o).refract(z)), this.refractCache.set(i, z);
  51576. }
  51577. }
  51578. if (s === z) throw new Ho('Recursive Reference Object detected');
  51579. if (this.indirections.length > this.options.dereference.maxDepth)
  51580. throw new Xw(
  51581. `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
  51582. );
  51583. if (x.includes(z)) {
  51584. if ((($.refSet.circular = !0), 'error' === this.options.dereference.circular))
  51585. throw new Ho('Circular reference detected');
  51586. if ('replace' === this.options.dereference.circular) {
  51587. var Y, Z;
  51588. const o = new Cu.sI(z.id, {
  51589. type: 'reference',
  51590. uri: $.uri,
  51591. $ref: serializers_value(s.$ref)
  51592. }),
  51593. u = (
  51594. null !==
  51595. (Y =
  51596. null === (Z = this.options.dereference.strategyOpts['openapi-3-1']) ||
  51597. void 0 === Z
  51598. ? void 0
  51599. : Z.circularReplacer) && void 0 !== Y
  51600. ? Y
  51601. : this.options.dereference.circularReplacer
  51602. )(o);
  51603. return w.replaceWith(u, mutationReplacer), !i && u;
  51604. }
  51605. }
  51606. const ee = stripHash($.refSet.rootRef.uri) !== $.uri,
  51607. ie = ['error', 'replace'].includes(this.options.dereference.circular);
  51608. if ((B || ee || G_(z) || ie) && !x.includesCycle(z)) {
  51609. C.add(s);
  51610. const o = new OpenAPI3_1DereferenceVisitor({
  51611. reference: $,
  51612. namespace: this.namespace,
  51613. indirections: [...this.indirections],
  51614. options: this.options,
  51615. refractCache: this.refractCache,
  51616. ancestors: x
  51617. });
  51618. (z = await eS(z, o, {
  51619. keyMap: nw,
  51620. nodeTypeGetter: apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType
  51621. })),
  51622. C.delete(s);
  51623. }
  51624. this.indirections.pop();
  51625. const ae = cloneShallow(z);
  51626. return (
  51627. ae.setMetaProperty('id', tS.generateId()),
  51628. ae.setMetaProperty('ref-fields', {
  51629. $ref: serializers_value(s.$ref),
  51630. description: serializers_value(s.description),
  51631. summary: serializers_value(s.summary)
  51632. }),
  51633. ae.setMetaProperty('ref-origin', $.uri),
  51634. ae.setMetaProperty('ref-referencing-element-id', cloneDeep(tS.identify(s))),
  51635. Fu(z) &&
  51636. Fu(ae) &&
  51637. (s.hasKey('description') &&
  51638. 'description' in z &&
  51639. (ae.remove('description'), ae.set('description', s.get('description'))),
  51640. s.hasKey('summary') &&
  51641. 'summary' in z &&
  51642. (ae.remove('summary'), ae.set('summary', s.get('summary')))),
  51643. w.replaceWith(ae, mutationReplacer),
  51644. !i && ae
  51645. );
  51646. }
  51647. async PathItemElement(s, o, i, u, _, w) {
  51648. if (!Ru(s.$ref)) return;
  51649. if (this.indirections.includes(s)) return !1;
  51650. const [x, C] = this.toAncestorLineage([..._, i]),
  51651. j = this.toBaseURI(serializers_value(s.$ref)),
  51652. L = stripHash(this.reference.uri) === j,
  51653. B = !L;
  51654. if (!this.options.resolve.internal && L) return;
  51655. if (!this.options.resolve.external && B) return;
  51656. const $ = await this.toReference(serializers_value(s.$ref)),
  51657. V = resolve(j, serializers_value(s.$ref));
  51658. this.indirections.push(s);
  51659. const U = uriToPointer(V);
  51660. let z = es_evaluate(U, $.value.result);
  51661. if (((z.id = tS.identify(z)), isPrimitiveElement(z))) {
  51662. const s = `path-item-${serializers_value(tS.identify(z))}`;
  51663. this.refractCache.has(s)
  51664. ? (z = this.refractCache.get(s))
  51665. : ((z = Ab.refract(z)), this.refractCache.set(s, z));
  51666. }
  51667. if (s === z) throw new Ho('Recursive Path Item Object reference detected');
  51668. if (this.indirections.length > this.options.dereference.maxDepth)
  51669. throw new Xw(
  51670. `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
  51671. );
  51672. if (x.includes(z)) {
  51673. if ((($.refSet.circular = !0), 'error' === this.options.dereference.circular))
  51674. throw new Ho('Circular reference detected');
  51675. if ('replace' === this.options.dereference.circular) {
  51676. var Y, Z;
  51677. const o = new Cu.sI(z.id, {
  51678. type: 'path-item',
  51679. uri: $.uri,
  51680. $ref: serializers_value(s.$ref)
  51681. }),
  51682. u = (
  51683. null !==
  51684. (Y =
  51685. null === (Z = this.options.dereference.strategyOpts['openapi-3-1']) ||
  51686. void 0 === Z
  51687. ? void 0
  51688. : Z.circularReplacer) && void 0 !== Y
  51689. ? Y
  51690. : this.options.dereference.circularReplacer
  51691. )(o);
  51692. return w.replaceWith(u, mutationReplacer), !i && u;
  51693. }
  51694. }
  51695. const ee = stripHash($.refSet.rootRef.uri) !== $.uri,
  51696. ie = ['error', 'replace'].includes(this.options.dereference.circular);
  51697. if ((B || ee || (H_(z) && Ru(z.$ref)) || ie) && !x.includesCycle(z)) {
  51698. C.add(s);
  51699. const o = new OpenAPI3_1DereferenceVisitor({
  51700. reference: $,
  51701. namespace: this.namespace,
  51702. indirections: [...this.indirections],
  51703. options: this.options,
  51704. refractCache: this.refractCache,
  51705. ancestors: x
  51706. });
  51707. (z = await eS(z, o, {
  51708. keyMap: nw,
  51709. nodeTypeGetter: apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType
  51710. })),
  51711. C.delete(s);
  51712. }
  51713. if ((this.indirections.pop(), H_(z))) {
  51714. const o = new Ab([...z.content], cloneDeep(z.meta), cloneDeep(z.attributes));
  51715. o.setMetaProperty('id', tS.generateId()),
  51716. s.forEach((s, i, u) => {
  51717. o.remove(serializers_value(i)), o.content.push(u);
  51718. }),
  51719. o.remove('$ref'),
  51720. o.setMetaProperty('ref-fields', { $ref: serializers_value(s.$ref) }),
  51721. o.setMetaProperty('ref-origin', $.uri),
  51722. o.setMetaProperty('ref-referencing-element-id', cloneDeep(tS.identify(s))),
  51723. (z = o);
  51724. }
  51725. return w.replaceWith(z, mutationReplacer), i ? void 0 : z;
  51726. }
  51727. async LinkElement(s, o, i, u, _, w) {
  51728. if (!Ru(s.operationRef) && !Ru(s.operationId)) return;
  51729. if (Ru(s.operationRef) && Ru(s.operationId))
  51730. throw new Ho(
  51731. 'LinkElement operationRef and operationId fields are mutually exclusive.'
  51732. );
  51733. let x;
  51734. if (Ru(s.operationRef)) {
  51735. var C;
  51736. const o = uriToPointer(serializers_value(s.operationRef)),
  51737. u = this.toBaseURI(serializers_value(s.operationRef)),
  51738. _ = stripHash(this.reference.uri) === u,
  51739. j = !_;
  51740. if (!this.options.resolve.internal && _) return;
  51741. if (!this.options.resolve.external && j) return;
  51742. const L = await this.toReference(serializers_value(s.operationRef));
  51743. if (((x = es_evaluate(o, L.value.result)), isPrimitiveElement(x))) {
  51744. const s = `operation-${serializers_value(tS.identify(x))}`;
  51745. this.refractCache.has(s)
  51746. ? (x = this.refractCache.get(s))
  51747. : ((x = Sb.refract(x)), this.refractCache.set(s, x));
  51748. }
  51749. (x = cloneShallow(x)), x.setMetaProperty('ref-origin', L.uri);
  51750. const B = cloneShallow(s);
  51751. return (
  51752. null === (C = B.operationRef) || void 0 === C || C.meta.set('operation', x),
  51753. w.replaceWith(B, mutationReplacer),
  51754. i ? void 0 : B
  51755. );
  51756. }
  51757. if (Ru(s.operationId)) {
  51758. var j;
  51759. const o = serializers_value(s.operationId),
  51760. u = await this.toReference(unsanitize(this.reference.uri));
  51761. if (
  51762. ((x = traversal_find(
  51763. (s) => W_(s) && Nu(s.operationId) && s.operationId.equals(o),
  51764. u.value.result
  51765. )),
  51766. Rl(x))
  51767. )
  51768. throw new Ho(`OperationElement(operationId=${o}) not found.`);
  51769. const _ = cloneShallow(s);
  51770. return (
  51771. null === (j = _.operationId) || void 0 === j || j.meta.set('operation', x),
  51772. w.replaceWith(_, mutationReplacer),
  51773. i ? void 0 : _
  51774. );
  51775. }
  51776. }
  51777. async ExampleElement(s, o, i, u, _, w) {
  51778. if (!Ru(s.externalValue)) return;
  51779. if (s.hasKey('value') && Ru(s.externalValue))
  51780. throw new Ho('ExampleElement value and externalValue fields are mutually exclusive.');
  51781. const x = this.toBaseURI(serializers_value(s.externalValue)),
  51782. C = stripHash(this.reference.uri) === x,
  51783. j = !C;
  51784. if (!this.options.resolve.internal && C) return;
  51785. if (!this.options.resolve.external && j) return;
  51786. const L = await this.toReference(serializers_value(s.externalValue)),
  51787. B = cloneShallow(L.value.result);
  51788. B.setMetaProperty('ref-origin', L.uri);
  51789. const $ = cloneShallow(s);
  51790. return ($.value = B), w.replaceWith($, mutationReplacer), i ? void 0 : $;
  51791. }
  51792. async SchemaElement(s, o, i, u, _, w) {
  51793. if (!Ru(s.$ref)) return;
  51794. if (this.indirections.includes(s)) return !1;
  51795. const [x, C] = this.toAncestorLineage([..._, i]);
  51796. let j = await this.toReference(unsanitize(this.reference.uri)),
  51797. { uri: L } = j;
  51798. const B = resolveSchema$refField(L, s),
  51799. $ = stripHash(B),
  51800. V = new vw({ uri: $ }),
  51801. U = Vw((s) => s.canRead(V), this.options.resolve.resolvers),
  51802. z = !U;
  51803. let Y,
  51804. Z = stripHash(this.reference.uri) === B,
  51805. ee = !Z;
  51806. this.indirections.push(s);
  51807. try {
  51808. if (U || z) {
  51809. L = this.toBaseURI(B);
  51810. const s = B,
  51811. o = maybeRefractToSchemaElement(j.value.result);
  51812. if (
  51813. ((Y = uri_evaluate(s, o)),
  51814. (Y = maybeRefractToSchemaElement(Y)),
  51815. (Y.id = tS.identify(Y)),
  51816. !this.options.resolve.internal && Z)
  51817. )
  51818. return;
  51819. if (!this.options.resolve.external && ee) return;
  51820. } else {
  51821. if (
  51822. ((L = this.toBaseURI(B)),
  51823. (Z = stripHash(this.reference.uri) === L),
  51824. (ee = !Z),
  51825. !this.options.resolve.internal && Z)
  51826. )
  51827. return;
  51828. if (!this.options.resolve.external && ee) return;
  51829. j = await this.toReference(unsanitize(B));
  51830. const s = uriToPointer(B),
  51831. o = maybeRefractToSchemaElement(j.value.result);
  51832. (Y = es_evaluate(s, o)),
  51833. (Y = maybeRefractToSchemaElement(Y)),
  51834. (Y.id = tS.identify(Y));
  51835. }
  51836. } catch (s) {
  51837. if (!(z && s instanceof Yw)) throw s;
  51838. if (isAnchor(uriToAnchor(B))) {
  51839. if (
  51840. ((Z = stripHash(this.reference.uri) === L),
  51841. (ee = !Z),
  51842. !this.options.resolve.internal && Z)
  51843. )
  51844. return;
  51845. if (!this.options.resolve.external && ee) return;
  51846. j = await this.toReference(unsanitize(B));
  51847. const s = uriToAnchor(B),
  51848. o = maybeRefractToSchemaElement(j.value.result);
  51849. (Y = $anchor_evaluate(s, o)),
  51850. (Y = maybeRefractToSchemaElement(Y)),
  51851. (Y.id = tS.identify(Y));
  51852. } else {
  51853. if (
  51854. ((L = this.toBaseURI(B)),
  51855. (Z = stripHash(this.reference.uri) === L),
  51856. (ee = !Z),
  51857. !this.options.resolve.internal && Z)
  51858. )
  51859. return;
  51860. if (!this.options.resolve.external && ee) return;
  51861. j = await this.toReference(unsanitize(B));
  51862. const s = uriToPointer(B),
  51863. o = maybeRefractToSchemaElement(j.value.result);
  51864. (Y = es_evaluate(s, o)),
  51865. (Y = maybeRefractToSchemaElement(Y)),
  51866. (Y.id = tS.identify(Y));
  51867. }
  51868. }
  51869. if (s === Y) throw new Ho('Recursive Schema Object reference detected');
  51870. if (this.indirections.length > this.options.dereference.maxDepth)
  51871. throw new Xw(
  51872. `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
  51873. );
  51874. if (x.includes(Y)) {
  51875. if (((j.refSet.circular = !0), 'error' === this.options.dereference.circular))
  51876. throw new Ho('Circular reference detected');
  51877. if ('replace' === this.options.dereference.circular) {
  51878. var ie, ae;
  51879. const o = new Cu.sI(Y.id, {
  51880. type: 'json-schema',
  51881. uri: j.uri,
  51882. $ref: serializers_value(s.$ref)
  51883. }),
  51884. u = (
  51885. null !==
  51886. (ie =
  51887. null === (ae = this.options.dereference.strategyOpts['openapi-3-1']) ||
  51888. void 0 === ae
  51889. ? void 0
  51890. : ae.circularReplacer) && void 0 !== ie
  51891. ? ie
  51892. : this.options.dereference.circularReplacer
  51893. )(o);
  51894. return w.replaceWith(u, mutationReplacer), !i && u;
  51895. }
  51896. }
  51897. const le = stripHash(j.refSet.rootRef.uri) !== j.uri,
  51898. ce = ['error', 'replace'].includes(this.options.dereference.circular);
  51899. if ((ee || le || (Q_(Y) && Ru(Y.$ref)) || ce) && !x.includesCycle(Y)) {
  51900. C.add(s);
  51901. const o = new OpenAPI3_1DereferenceVisitor({
  51902. reference: j,
  51903. namespace: this.namespace,
  51904. indirections: [...this.indirections],
  51905. options: this.options,
  51906. refractCache: this.refractCache,
  51907. ancestors: x
  51908. });
  51909. (Y = await eS(Y, o, {
  51910. keyMap: nw,
  51911. nodeTypeGetter: apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType
  51912. })),
  51913. C.delete(s);
  51914. }
  51915. if ((this.indirections.pop(), predicates_isBooleanJsonSchemaElement(Y))) {
  51916. const o = cloneDeep(Y);
  51917. return (
  51918. o.setMetaProperty('id', tS.generateId()),
  51919. o.setMetaProperty('ref-fields', { $ref: serializers_value(s.$ref) }),
  51920. o.setMetaProperty('ref-origin', j.uri),
  51921. o.setMetaProperty('ref-referencing-element-id', cloneDeep(tS.identify(s))),
  51922. w.replaceWith(o, mutationReplacer),
  51923. !i && o
  51924. );
  51925. }
  51926. if (Q_(Y)) {
  51927. const o = new qb([...Y.content], cloneDeep(Y.meta), cloneDeep(Y.attributes));
  51928. o.setMetaProperty('id', tS.generateId()),
  51929. s.forEach((s, i, u) => {
  51930. o.remove(serializers_value(i)), o.content.push(u);
  51931. }),
  51932. o.remove('$ref'),
  51933. o.setMetaProperty('ref-fields', { $ref: serializers_value(s.$ref) }),
  51934. o.setMetaProperty('ref-origin', j.uri),
  51935. o.setMetaProperty('ref-referencing-element-id', cloneDeep(tS.identify(s))),
  51936. (Y = o);
  51937. }
  51938. return w.replaceWith(Y, mutationReplacer), i ? void 0 : Y;
  51939. }
  51940. }
  51941. const rS = OpenAPI3_1DereferenceVisitor,
  51942. nS = visitor_visit[Symbol.for('nodejs.util.promisify.custom')];
  51943. const sS = class OpenAPI3_1DereferenceStrategy extends qw {
  51944. constructor(s) {
  51945. super({ ...(null != s ? s : {}), name: 'openapi-3-1' });
  51946. }
  51947. canDereference(s) {
  51948. var o;
  51949. return 'text/plain' !== s.mediaType
  51950. ? lw.includes(s.mediaType)
  51951. : z_(null === (o = s.parseResult) || void 0 === o ? void 0 : o.result);
  51952. }
  51953. async dereference(s, o) {
  51954. var i;
  51955. const u = createNamespace(ow),
  51956. _ = null !== (i = o.dereference.refSet) && void 0 !== i ? i : new uw(),
  51957. w = new uw();
  51958. let x,
  51959. C = _;
  51960. _.has(s.uri)
  51961. ? (x = _.find(Fw(s.uri, 'uri')))
  51962. : ((x = new cw({ uri: s.uri, value: s.parseResult })), _.add(x)),
  51963. o.dereference.immutable &&
  51964. (_.refs
  51965. .map((s) => new cw({ ...s, value: cloneDeep(s.value) }))
  51966. .forEach((s) => w.add(s)),
  51967. (x = w.find((o) => o.uri === s.uri)),
  51968. (C = w));
  51969. const j = new rS({ reference: x, namespace: u, options: o }),
  51970. L = await nS(C.rootRef.value, j, {
  51971. keyMap: nw,
  51972. nodeTypeGetter: apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType
  51973. });
  51974. return (
  51975. o.dereference.immutable &&
  51976. w.refs
  51977. .filter((s) => s.uri.startsWith('immutable://'))
  51978. .map((s) => new cw({ ...s, uri: s.uri.replace(/^immutable:\/\//, '') }))
  51979. .forEach((s) => _.add(s)),
  51980. null === o.dereference.refSet && _.clean(),
  51981. w.clean(),
  51982. L
  51983. );
  51984. }
  51985. },
  51986. to_path = (s) => {
  51987. const o = ((s) => s.slice(2))(s);
  51988. return o.reduce((s, i, u) => {
  51989. if ($u(i)) {
  51990. const o = String(serializers_value(i.key));
  51991. s.push(o);
  51992. } else if (qu(o[u - 2])) {
  51993. const _ = o[u - 2].content.indexOf(i);
  51994. s.push(_);
  51995. }
  51996. return s;
  51997. }, []);
  51998. };
  51999. const oS = class ModelPropertyMacroVisitor {
  52000. modelPropertyMacro;
  52001. options;
  52002. SchemaElement = {
  52003. leave: (s, o, i, u, _) => {
  52004. void 0 !== s.properties &&
  52005. Fu(s.properties) &&
  52006. s.properties.forEach((o) => {
  52007. if (Fu(o))
  52008. try {
  52009. const s = this.modelPropertyMacro(serializers_value(o));
  52010. o.set('default', s);
  52011. } catch (o) {
  52012. var u, w;
  52013. const x = new Error(o, { cause: o });
  52014. (x.fullPath = [...to_path([..._, i, s]), 'properties']),
  52015. null === (u = this.options.dereference.dereferenceOpts) ||
  52016. void 0 === u ||
  52017. null === (u = u.errors) ||
  52018. void 0 === u ||
  52019. null === (w = u.push) ||
  52020. void 0 === w ||
  52021. w.call(u, x);
  52022. }
  52023. });
  52024. }
  52025. };
  52026. constructor({ modelPropertyMacro: s, options: o }) {
  52027. (this.modelPropertyMacro = s), (this.options = o);
  52028. }
  52029. };
  52030. const iS = class all_of_AllOfVisitor {
  52031. options;
  52032. SchemaElement = {
  52033. leave(s, o, i, u, _) {
  52034. if (void 0 === s.allOf) return;
  52035. if (!qu(s.allOf)) {
  52036. var w, x;
  52037. const o = new TypeError('allOf must be an array');
  52038. return (
  52039. (o.fullPath = [...to_path([..._, i, s]), 'allOf']),
  52040. void (
  52041. null === (w = this.options.dereference.dereferenceOpts) ||
  52042. void 0 === w ||
  52043. null === (w = w.errors) ||
  52044. void 0 === w ||
  52045. null === (x = w.push) ||
  52046. void 0 === x ||
  52047. x.call(w, o)
  52048. )
  52049. );
  52050. }
  52051. if (s.allOf.isEmpty) return void s.remove('allOf');
  52052. if (!s.allOf.content.every(Q_)) {
  52053. var C, j;
  52054. const o = new TypeError('Elements in allOf must be objects');
  52055. return (
  52056. (o.fullPath = [...to_path([..._, i, s]), 'allOf']),
  52057. void (
  52058. null === (C = this.options.dereference.dereferenceOpts) ||
  52059. void 0 === C ||
  52060. null === (C = C.errors) ||
  52061. void 0 === C ||
  52062. null === (j = C.push) ||
  52063. void 0 === j ||
  52064. j.call(C, o)
  52065. )
  52066. );
  52067. }
  52068. for (; s.hasKey('allOf'); ) {
  52069. const { allOf: o } = s;
  52070. s.remove('allOf');
  52071. const i = deepmerge.all([...o.content, s]);
  52072. if ((s.hasKey('$$ref') || i.remove('$$ref'), s.hasKey('example'))) {
  52073. const o = i.getMember('example');
  52074. o && (o.value = s.get('example'));
  52075. }
  52076. if (s.hasKey('examples')) {
  52077. const o = i.getMember('examples');
  52078. o && (o.value = s.get('examples'));
  52079. }
  52080. s.content = i.content;
  52081. }
  52082. }
  52083. };
  52084. constructor({ options: s }) {
  52085. this.options = s;
  52086. }
  52087. };
  52088. const aS = class ParameterMacroVisitor {
  52089. parameterMacro;
  52090. options;
  52091. #e;
  52092. OperationElement = {
  52093. enter: (s) => {
  52094. this.#e = s;
  52095. },
  52096. leave: () => {
  52097. this.#e = void 0;
  52098. }
  52099. };
  52100. ParameterElement = {
  52101. leave: (s, o, i, u, _) => {
  52102. const w = this.#e ? serializers_value(this.#e) : null,
  52103. x = serializers_value(s);
  52104. try {
  52105. const o = this.parameterMacro(w, x);
  52106. s.set('default', o);
  52107. } catch (s) {
  52108. var C, j;
  52109. const o = new Error(s, { cause: s });
  52110. (o.fullPath = to_path([..._, i])),
  52111. null === (C = this.options.dereference.dereferenceOpts) ||
  52112. void 0 === C ||
  52113. null === (C = C.errors) ||
  52114. void 0 === C ||
  52115. null === (j = C.push) ||
  52116. void 0 === j ||
  52117. j.call(C, o);
  52118. }
  52119. }
  52120. };
  52121. constructor({ parameterMacro: s, options: o }) {
  52122. (this.parameterMacro = s), (this.options = o);
  52123. }
  52124. },
  52125. get_root_cause = (s) => {
  52126. if (null == s.cause) return s;
  52127. let { cause: o } = s;
  52128. for (; null != o.cause; ) o = o.cause;
  52129. return o;
  52130. };
  52131. const lS = class SchemaRefError extends Jo {},
  52132. { wrapError: cS } = ru,
  52133. uS = visitor_visit[Symbol.for('nodejs.util.promisify.custom')],
  52134. pS = new IdentityManager(),
  52135. dereference_mutationReplacer = (s, o, i, u) => {
  52136. $u(u) ? (u.value = s) : Array.isArray(u) && (u[i] = s);
  52137. };
  52138. class OpenAPI3_1SwaggerClientDereferenceVisitor extends rS {
  52139. useCircularStructures;
  52140. allowMetaPatches;
  52141. basePath;
  52142. constructor({
  52143. allowMetaPatches: s = !0,
  52144. useCircularStructures: o = !1,
  52145. basePath: i = null,
  52146. ...u
  52147. }) {
  52148. super(u),
  52149. (this.allowMetaPatches = s),
  52150. (this.useCircularStructures = o),
  52151. (this.basePath = i);
  52152. }
  52153. async ReferenceElement(s, o, i, u, _, w) {
  52154. try {
  52155. if (this.indirections.includes(s)) return !1;
  52156. const [o, u] = this.toAncestorLineage([..._, i]),
  52157. L = this.toBaseURI(serializers_value(s.$ref)),
  52158. B = stripHash(this.reference.uri) === L,
  52159. $ = !B;
  52160. if (!this.options.resolve.internal && B) return !1;
  52161. if (!this.options.resolve.external && $) return !1;
  52162. const V = await this.toReference(serializers_value(s.$ref)),
  52163. U = resolve(L, serializers_value(s.$ref));
  52164. this.indirections.push(s);
  52165. const z = uriToPointer(U);
  52166. let Y = es_evaluate(z, V.value.result);
  52167. if (((Y.id = pS.identify(Y)), isPrimitiveElement(Y))) {
  52168. const o = serializers_value(s.meta.get('referenced-element')),
  52169. i = `${o}-${serializers_value(pS.identify(Y))}`;
  52170. if (this.refractCache.has(i)) Y = this.refractCache.get(i);
  52171. else if (isReferenceLikeElement(Y))
  52172. (Y = Pb.refract(Y)),
  52173. Y.setMetaProperty('referenced-element', o),
  52174. this.refractCache.set(i, Y);
  52175. else {
  52176. (Y = this.namespace.getElementClass(o).refract(Y)), this.refractCache.set(i, Y);
  52177. }
  52178. }
  52179. if (s === Y) throw new Ho('Recursive Reference Object detected');
  52180. if (this.indirections.length > this.options.dereference.maxDepth)
  52181. throw new Xw(
  52182. `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
  52183. );
  52184. if (o.includes(Y)) {
  52185. if (((V.refSet.circular = !0), 'error' === this.options.dereference.circular))
  52186. throw new Ho('Circular reference detected');
  52187. if ('replace' === this.options.dereference.circular) {
  52188. var x, C;
  52189. const o = new Cu.sI(Y.id, {
  52190. type: 'reference',
  52191. uri: V.uri,
  52192. $ref: serializers_value(s.$ref),
  52193. baseURI: U,
  52194. referencingElement: s
  52195. }),
  52196. u = (
  52197. null !==
  52198. (x =
  52199. null === (C = this.options.dereference.strategyOpts['openapi-3-1']) ||
  52200. void 0 === C
  52201. ? void 0
  52202. : C.circularReplacer) && void 0 !== x
  52203. ? x
  52204. : this.options.dereference.circularReplacer
  52205. )(o);
  52206. return w.replaceWith(o, dereference_mutationReplacer), !i && u;
  52207. }
  52208. }
  52209. const Z = stripHash(V.refSet.rootRef.uri) !== V.uri,
  52210. ee = ['error', 'replace'].includes(this.options.dereference.circular);
  52211. if (($ || Z || G_(Y) || ee) && !o.includesCycle(Y)) {
  52212. var j;
  52213. u.add(s);
  52214. const w = new OpenAPI3_1SwaggerClientDereferenceVisitor({
  52215. reference: V,
  52216. namespace: this.namespace,
  52217. indirections: [...this.indirections],
  52218. options: this.options,
  52219. refractCache: this.refractCache,
  52220. ancestors: o,
  52221. allowMetaPatches: this.allowMetaPatches,
  52222. useCircularStructures: this.useCircularStructures,
  52223. basePath:
  52224. null !== (j = this.basePath) && void 0 !== j
  52225. ? j
  52226. : [...to_path([..._, i, s]), '$ref']
  52227. });
  52228. (Y = await uS(Y, w, {
  52229. keyMap: nw,
  52230. nodeTypeGetter: apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType
  52231. })),
  52232. u.delete(s);
  52233. }
  52234. this.indirections.pop();
  52235. const ie = cloneShallow(Y);
  52236. if (
  52237. (ie.setMetaProperty('ref-fields', {
  52238. $ref: serializers_value(s.$ref),
  52239. description: serializers_value(s.description),
  52240. summary: serializers_value(s.summary)
  52241. }),
  52242. ie.setMetaProperty('ref-origin', V.uri),
  52243. ie.setMetaProperty('ref-referencing-element-id', cloneDeep(pS.identify(s))),
  52244. Fu(Y) &&
  52245. (s.hasKey('description') &&
  52246. 'description' in Y &&
  52247. (ie.remove('description'), ie.set('description', s.get('description'))),
  52248. s.hasKey('summary') &&
  52249. 'summary' in Y &&
  52250. (ie.remove('summary'), ie.set('summary', s.get('summary')))),
  52251. this.allowMetaPatches && Fu(ie) && !ie.hasKey('$$ref'))
  52252. ) {
  52253. const s = resolve(L, U);
  52254. ie.set('$$ref', s);
  52255. }
  52256. return w.replaceWith(ie, dereference_mutationReplacer), !i && ie;
  52257. } catch (o) {
  52258. var L, B, $;
  52259. const u = get_root_cause(o),
  52260. w = cS(u, {
  52261. baseDoc: this.reference.uri,
  52262. $ref: serializers_value(s.$ref),
  52263. pointer: uriToPointer(serializers_value(s.$ref)),
  52264. fullPath:
  52265. null !== (L = this.basePath) && void 0 !== L
  52266. ? L
  52267. : [...to_path([..._, i, s]), '$ref']
  52268. });
  52269. return void (
  52270. null === (B = this.options.dereference.dereferenceOpts) ||
  52271. void 0 === B ||
  52272. null === (B = B.errors) ||
  52273. void 0 === B ||
  52274. null === ($ = B.push) ||
  52275. void 0 === $ ||
  52276. $.call(B, w)
  52277. );
  52278. }
  52279. }
  52280. async PathItemElement(s, o, i, u, _, w) {
  52281. try {
  52282. if (!Ru(s.$ref)) return;
  52283. if (this.indirections.includes(s)) return !1;
  52284. if (includesClasses(['cycle'], s.$ref)) return !1;
  52285. const [o, u] = this.toAncestorLineage([..._, i]),
  52286. L = this.toBaseURI(serializers_value(s.$ref)),
  52287. B = stripHash(this.reference.uri) === L,
  52288. $ = !B;
  52289. if (!this.options.resolve.internal && B) return;
  52290. if (!this.options.resolve.external && $) return;
  52291. const V = await this.toReference(serializers_value(s.$ref)),
  52292. U = resolve(L, serializers_value(s.$ref));
  52293. this.indirections.push(s);
  52294. const z = uriToPointer(U);
  52295. let Y = es_evaluate(z, V.value.result);
  52296. if (((Y.id = pS.identify(Y)), isPrimitiveElement(Y))) {
  52297. const s = `path-item-${serializers_value(pS.identify(Y))}`;
  52298. this.refractCache.has(s)
  52299. ? (Y = this.refractCache.get(s))
  52300. : ((Y = Ab.refract(Y)), this.refractCache.set(s, Y));
  52301. }
  52302. if (s === Y) throw new Ho('Recursive Path Item Object reference detected');
  52303. if (this.indirections.length > this.options.dereference.maxDepth)
  52304. throw new Xw(
  52305. `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
  52306. );
  52307. if (o.includes(Y)) {
  52308. if (((V.refSet.circular = !0), 'error' === this.options.dereference.circular))
  52309. throw new Ho('Circular reference detected');
  52310. if ('replace' === this.options.dereference.circular) {
  52311. var x, C;
  52312. const o = new Cu.sI(Y.id, {
  52313. type: 'path-item',
  52314. uri: V.uri,
  52315. $ref: serializers_value(s.$ref),
  52316. baseURI: U,
  52317. referencingElement: s
  52318. }),
  52319. u = (
  52320. null !==
  52321. (x =
  52322. null === (C = this.options.dereference.strategyOpts['openapi-3-1']) ||
  52323. void 0 === C
  52324. ? void 0
  52325. : C.circularReplacer) && void 0 !== x
  52326. ? x
  52327. : this.options.dereference.circularReplacer
  52328. )(o);
  52329. return w.replaceWith(o, dereference_mutationReplacer), !i && u;
  52330. }
  52331. }
  52332. const Z = stripHash(V.refSet.rootRef.uri) !== V.uri,
  52333. ee = ['error', 'replace'].includes(this.options.dereference.circular);
  52334. if (($ || Z || (H_(Y) && Ru(Y.$ref)) || ee) && !o.includesCycle(Y)) {
  52335. var j;
  52336. u.add(s);
  52337. const w = new OpenAPI3_1SwaggerClientDereferenceVisitor({
  52338. reference: V,
  52339. namespace: this.namespace,
  52340. indirections: [...this.indirections],
  52341. options: this.options,
  52342. ancestors: o,
  52343. allowMetaPatches: this.allowMetaPatches,
  52344. useCircularStructures: this.useCircularStructures,
  52345. basePath:
  52346. null !== (j = this.basePath) && void 0 !== j
  52347. ? j
  52348. : [...to_path([..._, i, s]), '$ref']
  52349. });
  52350. (Y = await uS(Y, w, {
  52351. keyMap: nw,
  52352. nodeTypeGetter: apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType
  52353. })),
  52354. u.delete(s);
  52355. }
  52356. if ((this.indirections.pop(), H_(Y))) {
  52357. const o = new Ab([...Y.content], cloneDeep(Y.meta), cloneDeep(Y.attributes));
  52358. if (
  52359. (s.forEach((s, i, u) => {
  52360. o.remove(serializers_value(i)), o.content.push(u);
  52361. }),
  52362. o.remove('$ref'),
  52363. o.setMetaProperty('ref-fields', { $ref: serializers_value(s.$ref) }),
  52364. o.setMetaProperty('ref-origin', V.uri),
  52365. o.setMetaProperty('ref-referencing-element-id', cloneDeep(pS.identify(s))),
  52366. this.allowMetaPatches && void 0 === o.get('$$ref'))
  52367. ) {
  52368. const s = resolve(L, U);
  52369. o.set('$$ref', s);
  52370. }
  52371. Y = o;
  52372. }
  52373. return w.replaceWith(Y, dereference_mutationReplacer), i ? void 0 : Y;
  52374. } catch (o) {
  52375. var L, B, $;
  52376. const u = get_root_cause(o),
  52377. w = cS(u, {
  52378. baseDoc: this.reference.uri,
  52379. $ref: serializers_value(s.$ref),
  52380. pointer: uriToPointer(serializers_value(s.$ref)),
  52381. fullPath:
  52382. null !== (L = this.basePath) && void 0 !== L
  52383. ? L
  52384. : [...to_path([..._, i, s]), '$ref']
  52385. });
  52386. return void (
  52387. null === (B = this.options.dereference.dereferenceOpts) ||
  52388. void 0 === B ||
  52389. null === (B = B.errors) ||
  52390. void 0 === B ||
  52391. null === ($ = B.push) ||
  52392. void 0 === $ ||
  52393. $.call(B, w)
  52394. );
  52395. }
  52396. }
  52397. async SchemaElement(s, o, i, u, _, w) {
  52398. try {
  52399. if (!Ru(s.$ref)) return;
  52400. if (this.indirections.includes(s)) return !1;
  52401. const [o, u] = this.toAncestorLineage([..._, i]);
  52402. let L = await this.toReference(unsanitize(this.reference.uri)),
  52403. { uri: B } = L;
  52404. const $ = resolveSchema$refField(B, s),
  52405. V = stripHash($),
  52406. U = new vw({ uri: V }),
  52407. z = !this.options.resolve.resolvers.some((s) => s.canRead(U)),
  52408. Y = !z;
  52409. let Z,
  52410. ee = stripHash(this.reference.uri) === $,
  52411. ie = !ee;
  52412. this.indirections.push(s);
  52413. try {
  52414. if (z || Y) {
  52415. B = this.toBaseURI($);
  52416. const s = $,
  52417. o = maybeRefractToSchemaElement(L.value.result);
  52418. if (
  52419. ((Z = uri_evaluate(s, o)),
  52420. (Z = maybeRefractToSchemaElement(Z)),
  52421. (Z.id = pS.identify(Z)),
  52422. !this.options.resolve.internal && ee)
  52423. )
  52424. return;
  52425. if (!this.options.resolve.external && ie) return;
  52426. } else {
  52427. if (
  52428. ((B = this.toBaseURI($)),
  52429. (ee = stripHash(this.reference.uri) === B),
  52430. (ie = !ee),
  52431. !this.options.resolve.internal && ee)
  52432. )
  52433. return;
  52434. if (!this.options.resolve.external && ie) return;
  52435. L = await this.toReference(unsanitize($));
  52436. const s = uriToPointer($),
  52437. o = maybeRefractToSchemaElement(L.value.result);
  52438. (Z = es_evaluate(s, o)),
  52439. (Z = maybeRefractToSchemaElement(Z)),
  52440. (Z.id = pS.identify(Z));
  52441. }
  52442. } catch (s) {
  52443. if (!(Y && s instanceof Yw)) throw s;
  52444. if (isAnchor(uriToAnchor($))) {
  52445. if (
  52446. ((ee = stripHash(this.reference.uri) === B),
  52447. (ie = !ee),
  52448. !this.options.resolve.internal && ee)
  52449. )
  52450. return;
  52451. if (!this.options.resolve.external && ie) return;
  52452. L = await this.toReference(unsanitize($));
  52453. const s = uriToAnchor($),
  52454. o = maybeRefractToSchemaElement(L.value.result);
  52455. (Z = $anchor_evaluate(s, o)),
  52456. (Z = maybeRefractToSchemaElement(Z)),
  52457. (Z.id = pS.identify(Z));
  52458. } else {
  52459. if (
  52460. ((B = this.toBaseURI(serializers_value($))),
  52461. (ee = stripHash(this.reference.uri) === B),
  52462. (ie = !ee),
  52463. !this.options.resolve.internal && ee)
  52464. )
  52465. return;
  52466. if (!this.options.resolve.external && ie) return;
  52467. L = await this.toReference(unsanitize($));
  52468. const s = uriToPointer($),
  52469. o = maybeRefractToSchemaElement(L.value.result);
  52470. (Z = es_evaluate(s, o)),
  52471. (Z = maybeRefractToSchemaElement(Z)),
  52472. (Z.id = pS.identify(Z));
  52473. }
  52474. }
  52475. if (s === Z) throw new Ho('Recursive Schema Object reference detected');
  52476. if (this.indirections.length > this.options.dereference.maxDepth)
  52477. throw new Xw(
  52478. `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
  52479. );
  52480. if (o.includes(Z)) {
  52481. if (((L.refSet.circular = !0), 'error' === this.options.dereference.circular))
  52482. throw new Ho('Circular reference detected');
  52483. if ('replace' === this.options.dereference.circular) {
  52484. var x, C;
  52485. const o = new Cu.sI(Z.id, {
  52486. type: 'json-schema',
  52487. uri: L.uri,
  52488. $ref: serializers_value(s.$ref),
  52489. baseURI: resolve(B, $),
  52490. referencingElement: s
  52491. }),
  52492. u = (
  52493. null !==
  52494. (x =
  52495. null === (C = this.options.dereference.strategyOpts['openapi-3-1']) ||
  52496. void 0 === C
  52497. ? void 0
  52498. : C.circularReplacer) && void 0 !== x
  52499. ? x
  52500. : this.options.dereference.circularReplacer
  52501. )(o);
  52502. return w.replaceWith(u, dereference_mutationReplacer), !i && u;
  52503. }
  52504. }
  52505. const ae = stripHash(L.refSet.rootRef.uri) !== L.uri,
  52506. le = ['error', 'replace'].includes(this.options.dereference.circular);
  52507. if ((ie || ae || (Q_(Z) && Ru(Z.$ref)) || le) && !o.includesCycle(Z)) {
  52508. var j;
  52509. u.add(s);
  52510. const w = new OpenAPI3_1SwaggerClientDereferenceVisitor({
  52511. reference: L,
  52512. namespace: this.namespace,
  52513. indirections: [...this.indirections],
  52514. options: this.options,
  52515. useCircularStructures: this.useCircularStructures,
  52516. allowMetaPatches: this.allowMetaPatches,
  52517. ancestors: o,
  52518. basePath:
  52519. null !== (j = this.basePath) && void 0 !== j
  52520. ? j
  52521. : [...to_path([..._, i, s]), '$ref']
  52522. });
  52523. (Z = await uS(Z, w, {
  52524. keyMap: nw,
  52525. nodeTypeGetter: apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType
  52526. })),
  52527. u.delete(s);
  52528. }
  52529. if ((this.indirections.pop(), predicates_isBooleanJsonSchemaElement(Z))) {
  52530. const o = cloneDeep(Z);
  52531. return (
  52532. o.setMetaProperty('ref-fields', { $ref: serializers_value(s.$ref) }),
  52533. o.setMetaProperty('ref-origin', L.uri),
  52534. o.setMetaProperty('ref-referencing-element-id', cloneDeep(pS.identify(s))),
  52535. w.replaceWith(o, dereference_mutationReplacer),
  52536. !i && o
  52537. );
  52538. }
  52539. if (Q_(Z)) {
  52540. const o = new qb([...Z.content], cloneDeep(Z.meta), cloneDeep(Z.attributes));
  52541. if (
  52542. (s.forEach((s, i, u) => {
  52543. o.remove(serializers_value(i)), o.content.push(u);
  52544. }),
  52545. o.remove('$ref'),
  52546. o.setMetaProperty('ref-fields', { $ref: serializers_value(s.$ref) }),
  52547. o.setMetaProperty('ref-origin', L.uri),
  52548. o.setMetaProperty('ref-referencing-element-id', cloneDeep(pS.identify(s))),
  52549. this.allowMetaPatches && void 0 === o.get('$$ref'))
  52550. ) {
  52551. const s = resolve(B, $);
  52552. o.set('$$ref', s);
  52553. }
  52554. Z = o;
  52555. }
  52556. return w.replaceWith(Z, dereference_mutationReplacer), i ? void 0 : Z;
  52557. } catch (o) {
  52558. var L, B, $;
  52559. const u = get_root_cause(o),
  52560. w = new lS(`Could not resolve reference: ${u.message}`, {
  52561. baseDoc: this.reference.uri,
  52562. $ref: serializers_value(s.$ref),
  52563. fullPath:
  52564. null !== (L = this.basePath) && void 0 !== L
  52565. ? L
  52566. : [...to_path([..._, i, s]), '$ref'],
  52567. cause: u
  52568. });
  52569. return void (
  52570. null === (B = this.options.dereference.dereferenceOpts) ||
  52571. void 0 === B ||
  52572. null === (B = B.errors) ||
  52573. void 0 === B ||
  52574. null === ($ = B.push) ||
  52575. void 0 === $ ||
  52576. $.call(B, w)
  52577. );
  52578. }
  52579. }
  52580. async LinkElement() {}
  52581. async ExampleElement(s, o, i, u, _, w) {
  52582. try {
  52583. return await super.ExampleElement(s, o, i, u, _, w);
  52584. } catch (o) {
  52585. var x, C, j;
  52586. const u = get_root_cause(o),
  52587. w = cS(u, {
  52588. baseDoc: this.reference.uri,
  52589. externalValue: serializers_value(s.externalValue),
  52590. fullPath:
  52591. null !== (x = this.basePath) && void 0 !== x
  52592. ? x
  52593. : [...to_path([..._, i, s]), 'externalValue']
  52594. });
  52595. return void (
  52596. null === (C = this.options.dereference.dereferenceOpts) ||
  52597. void 0 === C ||
  52598. null === (C = C.errors) ||
  52599. void 0 === C ||
  52600. null === (j = C.push) ||
  52601. void 0 === j ||
  52602. j.call(C, w)
  52603. );
  52604. }
  52605. }
  52606. }
  52607. const hS = OpenAPI3_1SwaggerClientDereferenceVisitor,
  52608. dS = mergeAll[Symbol.for('nodejs.util.promisify.custom')];
  52609. const fS = class RootVisitor {
  52610. constructor({ parameterMacro: s, modelPropertyMacro: o, mode: i, options: u, ..._ }) {
  52611. const w = [];
  52612. w.push(new hS({ ..._, options: u })),
  52613. 'function' == typeof o && w.push(new oS({ modelPropertyMacro: o, options: u })),
  52614. 'strict' !== i && w.push(new iS({ options: u })),
  52615. 'function' == typeof s && w.push(new aS({ parameterMacro: s, options: u }));
  52616. const x = dS(w, {
  52617. nodeTypeGetter: apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType
  52618. });
  52619. Object.assign(this, x);
  52620. }
  52621. },
  52622. mS = visitor_visit[Symbol.for('nodejs.util.promisify.custom')];
  52623. const gS = class OpenAPI3_1SwaggerClientDereferenceStrategy extends sS {
  52624. allowMetaPatches;
  52625. parameterMacro;
  52626. modelPropertyMacro;
  52627. mode;
  52628. ancestors;
  52629. constructor({
  52630. allowMetaPatches: s = !1,
  52631. parameterMacro: o = null,
  52632. modelPropertyMacro: i = null,
  52633. mode: u = 'non-strict',
  52634. ancestors: _ = [],
  52635. ...w
  52636. } = {}) {
  52637. super({ ...w }),
  52638. (this.name = 'openapi-3-1-swagger-client'),
  52639. (this.allowMetaPatches = s),
  52640. (this.parameterMacro = o),
  52641. (this.modelPropertyMacro = i),
  52642. (this.mode = u),
  52643. (this.ancestors = [..._]);
  52644. }
  52645. async dereference(s, o) {
  52646. var i;
  52647. const u = createNamespace(ow),
  52648. _ = null !== (i = o.dereference.refSet) && void 0 !== i ? i : new uw(),
  52649. w = new uw();
  52650. let x,
  52651. C = _;
  52652. _.has(s.uri)
  52653. ? (x = _.find((o) => o.uri === s.uri))
  52654. : ((x = new cw({ uri: s.uri, value: s.parseResult })), _.add(x)),
  52655. o.dereference.immutable &&
  52656. (_.refs
  52657. .map((s) => new cw({ ...s, value: cloneDeep(s.value) }))
  52658. .forEach((s) => w.add(s)),
  52659. (x = w.find((o) => o.uri === s.uri)),
  52660. (C = w));
  52661. const j = new fS({
  52662. reference: x,
  52663. namespace: u,
  52664. options: o,
  52665. allowMetaPatches: this.allowMetaPatches,
  52666. ancestors: this.ancestors,
  52667. modelPropertyMacro: this.modelPropertyMacro,
  52668. mode: this.mode,
  52669. parameterMacro: this.parameterMacro
  52670. }),
  52671. L = await mS(C.rootRef.value, j, {
  52672. keyMap: nw,
  52673. nodeTypeGetter: apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType
  52674. });
  52675. return (
  52676. o.dereference.immutable &&
  52677. w.refs
  52678. .filter((s) => s.uri.startsWith('immutable://'))
  52679. .map((s) => new cw({ ...s, uri: s.uri.replace(/^immutable:\/\//, '') }))
  52680. .forEach((s) => _.add(s)),
  52681. null === o.dereference.refSet && _.clean(),
  52682. w.clean(),
  52683. L
  52684. );
  52685. }
  52686. },
  52687. circularReplacer = (s) => {
  52688. const o = serializers_value(s.meta.get('baseURI')),
  52689. i = s.meta.get('referencingElement');
  52690. return new Cu.Sh({ $ref: o }, cloneDeep(i.meta), cloneDeep(i.attributes));
  52691. },
  52692. resolveOpenAPI31Strategy = async (s) => {
  52693. const {
  52694. spec: o,
  52695. timeout: i,
  52696. redirects: u,
  52697. requestInterceptor: _,
  52698. responseInterceptor: w,
  52699. pathDiscriminator: x = [],
  52700. allowMetaPatches: C = !1,
  52701. useCircularStructures: j = !1,
  52702. skipNormalization: L = !1,
  52703. parameterMacro: B = null,
  52704. modelPropertyMacro: $ = null,
  52705. mode: V = 'non-strict',
  52706. strategies: U
  52707. } = s;
  52708. try {
  52709. const { cache: z } = resolveOpenAPI31Strategy,
  52710. Y = U.find((s) => s.match(o)),
  52711. Z = isHttpUrl(url_cwd()) ? url_cwd() : Nc,
  52712. ee = options_retrievalURI(s),
  52713. ie = resolve(Z, ee);
  52714. let ae;
  52715. z.has(o)
  52716. ? (ae = z.get(o))
  52717. : ((ae = wb.refract(o)), ae.classes.push('result'), z.set(o, ae));
  52718. const le = new Mu([ae]),
  52719. ce = es_compile(x),
  52720. pe = '' === ce ? '' : `#${ce}`,
  52721. de = es_evaluate(ce, ae),
  52722. fe = new cw({ uri: ie, value: le }),
  52723. ye = new uw({ refs: [fe] });
  52724. '' !== ce && (ye.rootRef = void 0);
  52725. const be = [new Set([de])],
  52726. _e = [],
  52727. we = await (async (s, o = {}) => {
  52728. const i = util_merge(pw, o);
  52729. return dereferenceApiDOM(s, i);
  52730. })(de, {
  52731. resolve: {
  52732. baseURI: `${ie}${pe}`,
  52733. resolvers: [new Nw({ timeout: i || 1e4, redirects: u || 10 })],
  52734. resolverOpts: {
  52735. swaggerHTTPClientConfig: { requestInterceptor: _, responseInterceptor: w }
  52736. },
  52737. strategies: [new Ow()]
  52738. },
  52739. parse: {
  52740. mediaType: lw.latest(),
  52741. parsers: [
  52742. new Lw({ allowEmpty: !1, sourceMap: !1 }),
  52743. new Bw({ allowEmpty: !1, sourceMap: !1 }),
  52744. new Rw({ allowEmpty: !1, sourceMap: !1 }),
  52745. new Dw({ allowEmpty: !1, sourceMap: !1 }),
  52746. new kw({ allowEmpty: !1, sourceMap: !1 })
  52747. ]
  52748. },
  52749. dereference: {
  52750. maxDepth: 100,
  52751. strategies: [
  52752. new gS({
  52753. allowMetaPatches: C,
  52754. useCircularStructures: j,
  52755. parameterMacro: B,
  52756. modelPropertyMacro: $,
  52757. mode: V,
  52758. ancestors: be
  52759. })
  52760. ],
  52761. refSet: ye,
  52762. dereferenceOpts: { errors: _e },
  52763. immutable: !1,
  52764. circular: j ? 'ignore' : 'replace',
  52765. circularReplacer: j ? pw.dereference.circularReplacer : circularReplacer
  52766. }
  52767. }),
  52768. Se = ((s, o, i) => new xp({ element: i }).transclude(s, o))(de, we, ae),
  52769. xe = L ? Se : Y.normalize(Se);
  52770. return { spec: serializers_value(xe), errors: _e };
  52771. } catch (s) {
  52772. if (s instanceof Wp || s instanceof Kp) return { spec: null, errors: [] };
  52773. throw s;
  52774. }
  52775. };
  52776. resolveOpenAPI31Strategy.cache = new WeakMap();
  52777. const yS = resolveOpenAPI31Strategy;
  52778. function _clone(s, o, i) {
  52779. if (
  52780. (i || (i = new vS()),
  52781. (function _isPrimitive(s) {
  52782. var o = typeof s;
  52783. return null == s || ('object' != o && 'function' != o);
  52784. })(s))
  52785. )
  52786. return s;
  52787. var u = function copy(u) {
  52788. var _ = i.get(s);
  52789. if (_) return _;
  52790. for (var w in (i.set(s, u), s))
  52791. Object.prototype.hasOwnProperty.call(s, w) && (u[w] = o ? _clone(s[w], !0, i) : s[w]);
  52792. return u;
  52793. };
  52794. switch (ea(s)) {
  52795. case 'Object':
  52796. return u(Object.create(Object.getPrototypeOf(s)));
  52797. case 'Array':
  52798. return u(Array(s.length));
  52799. case 'Date':
  52800. return new Date(s.valueOf());
  52801. case 'RegExp':
  52802. return _cloneRegExp(s);
  52803. case 'Int8Array':
  52804. case 'Uint8Array':
  52805. case 'Uint8ClampedArray':
  52806. case 'Int16Array':
  52807. case 'Uint16Array':
  52808. case 'Int32Array':
  52809. case 'Uint32Array':
  52810. case 'Float32Array':
  52811. case 'Float64Array':
  52812. case 'BigInt64Array':
  52813. case 'BigUint64Array':
  52814. return s.slice();
  52815. default:
  52816. return s;
  52817. }
  52818. }
  52819. var vS = (function () {
  52820. function _ObjectMap() {
  52821. (this.map = {}), (this.length = 0);
  52822. }
  52823. return (
  52824. (_ObjectMap.prototype.set = function (s, o) {
  52825. var i = this.hash(s),
  52826. u = this.map[i];
  52827. u || (this.map[i] = u = []), u.push([s, o]), (this.length += 1);
  52828. }),
  52829. (_ObjectMap.prototype.hash = function (s) {
  52830. var o = [];
  52831. for (var i in s) o.push(Object.prototype.toString.call(s[i]));
  52832. return o.join();
  52833. }),
  52834. (_ObjectMap.prototype.get = function (s) {
  52835. if (this.length <= 180)
  52836. for (var o in this.map)
  52837. for (var i = this.map[o], u = 0; u < i.length; u += 1) {
  52838. if ((w = i[u])[0] === s) return w[1];
  52839. }
  52840. else {
  52841. var _ = this.hash(s);
  52842. if ((i = this.map[_]))
  52843. for (u = 0; u < i.length; u += 1) {
  52844. var w;
  52845. if ((w = i[u])[0] === s) return w[1];
  52846. }
  52847. }
  52848. }),
  52849. _ObjectMap
  52850. );
  52851. })(),
  52852. bS = (function () {
  52853. function XReduceBy(s, o, i, u) {
  52854. (this.valueFn = s),
  52855. (this.valueAcc = o),
  52856. (this.keyFn = i),
  52857. (this.xf = u),
  52858. (this.inputs = {});
  52859. }
  52860. return (
  52861. (XReduceBy.prototype['@@transducer/init'] = _xfBase_init),
  52862. (XReduceBy.prototype['@@transducer/result'] = function (s) {
  52863. var o;
  52864. for (o in this.inputs)
  52865. if (
  52866. _has(o, this.inputs) &&
  52867. (s = this.xf['@@transducer/step'](s, this.inputs[o]))['@@transducer/reduced']
  52868. ) {
  52869. s = s['@@transducer/value'];
  52870. break;
  52871. }
  52872. return (this.inputs = null), this.xf['@@transducer/result'](s);
  52873. }),
  52874. (XReduceBy.prototype['@@transducer/step'] = function (s, o) {
  52875. var i = this.keyFn(o);
  52876. return (
  52877. (this.inputs[i] = this.inputs[i] || [i, _clone(this.valueAcc, !1)]),
  52878. (this.inputs[i][1] = this.valueFn(this.inputs[i][1], o)),
  52879. s
  52880. );
  52881. }),
  52882. XReduceBy
  52883. );
  52884. })();
  52885. function _xreduceBy(s, o, i) {
  52886. return function (u) {
  52887. return new bS(s, o, i, u);
  52888. };
  52889. }
  52890. var _S = _curryN(
  52891. 4,
  52892. [],
  52893. _dispatchable([], _xreduceBy, function reduceBy(s, o, i, u) {
  52894. var _ = _xwrap(function (u, _) {
  52895. var w = i(_),
  52896. x = s(_has(w, u) ? u[w] : _clone(o, !1), _);
  52897. return x && x['@@transducer/reduced'] ? _reduced(u) : ((u[w] = x), u);
  52898. });
  52899. return wa(_, {}, u);
  52900. })
  52901. );
  52902. const ES = _curry2(
  52903. _checkForMethod(
  52904. 'groupBy',
  52905. _S(function (s, o) {
  52906. return s.push(o), s;
  52907. }, [])
  52908. )
  52909. );
  52910. const wS = class NormalizeStorage {
  52911. internalStore;
  52912. constructor(s, o, i) {
  52913. (this.storageElement = s), (this.storageField = o), (this.storageSubField = i);
  52914. }
  52915. get store() {
  52916. if (!this.internalStore) {
  52917. let s = this.storageElement.get(this.storageField);
  52918. Fu(s) || ((s = new Cu.Sh()), this.storageElement.set(this.storageField, s));
  52919. let o = s.get(this.storageSubField);
  52920. qu(o) || ((o = new Cu.wE()), s.set(this.storageSubField, o)),
  52921. (this.internalStore = o);
  52922. }
  52923. return this.internalStore;
  52924. }
  52925. append(s) {
  52926. this.includes(s) || this.store.push(s);
  52927. }
  52928. includes(s) {
  52929. return this.store.includes(s);
  52930. }
  52931. },
  52932. removeSpaces = (s) => s.replace(/\s/g, ''),
  52933. normalize_operation_ids_replaceSpecialCharsWithUnderscore = (s) => s.replace(/\W/gi, '_'),
  52934. normalizeOperationId = (s, o, i) => {
  52935. const u = removeSpaces(s);
  52936. return u.length > 0
  52937. ? normalize_operation_ids_replaceSpecialCharsWithUnderscore(u)
  52938. : ((s, o) =>
  52939. `${normalize_operation_ids_replaceSpecialCharsWithUnderscore(removeSpaces(o.toLowerCase()))}${normalize_operation_ids_replaceSpecialCharsWithUnderscore(removeSpaces(s))}`)(
  52940. o,
  52941. i
  52942. );
  52943. },
  52944. normalize_operation_ids =
  52945. ({
  52946. storageField: s = 'x-normalized',
  52947. operationIdNormalizer: o = normalizeOperationId
  52948. } = {}) =>
  52949. (i) => {
  52950. const { predicates: u, ancestorLineageToJSONPointer: _, namespace: w } = i,
  52951. x = [],
  52952. C = [],
  52953. j = [];
  52954. let L;
  52955. return {
  52956. visitor: {
  52957. OpenApi3_1Element: {
  52958. enter(o) {
  52959. L = new wS(o, s, 'operation-ids');
  52960. },
  52961. leave() {
  52962. const s = ES((s) => serializers_value(s.operationId), C);
  52963. Object.entries(s).forEach(([s, o]) => {
  52964. Array.isArray(o) &&
  52965. (o.length <= 1 ||
  52966. o.forEach((o, i) => {
  52967. const u = `${s}${i + 1}`;
  52968. o.operationId = new w.elements.String(u);
  52969. }));
  52970. }),
  52971. j.forEach((s) => {
  52972. if (void 0 === s.operationId) return;
  52973. const o = String(serializers_value(s.operationId)),
  52974. i = C.find(
  52975. (s) => serializers_value(s.meta.get('originalOperationId')) === o
  52976. );
  52977. void 0 !== i &&
  52978. ((s.operationId = cloneDeep.safe(i.operationId)),
  52979. s.meta.set('originalOperationId', o),
  52980. s.set('__originalOperationId', o));
  52981. }),
  52982. (C.length = 0),
  52983. (j.length = 0),
  52984. (L = void 0);
  52985. }
  52986. },
  52987. PathItemElement: {
  52988. enter(s) {
  52989. const o = Na('path', serializers_value(s.meta.get('path')));
  52990. x.push(o);
  52991. },
  52992. leave() {
  52993. x.pop();
  52994. }
  52995. },
  52996. OperationElement: {
  52997. enter(s, i, u, j, B) {
  52998. if (void 0 === s.operationId) return;
  52999. const $ = _([...B, u, s]);
  53000. if (L.includes($)) return;
  53001. const V = String(serializers_value(s.operationId)),
  53002. U = Fa(x),
  53003. z = Na('method', serializers_value(s.meta.get('http-method'))),
  53004. Y = o(V, U, z);
  53005. V !== Y &&
  53006. ((s.operationId = new w.elements.String(Y)),
  53007. s.set('__originalOperationId', V),
  53008. s.meta.set('originalOperationId', V),
  53009. C.push(s),
  53010. L.append($));
  53011. }
  53012. },
  53013. LinkElement: {
  53014. leave(s) {
  53015. u.isLinkElement(s) && void 0 !== s.operationId && j.push(s);
  53016. }
  53017. }
  53018. }
  53019. };
  53020. };
  53021. var SS = (function () {
  53022. function XUniqWith(s, o) {
  53023. (this.xf = o), (this.pred = s), (this.items = []);
  53024. }
  53025. return (
  53026. (XUniqWith.prototype['@@transducer/init'] = _xfBase_init),
  53027. (XUniqWith.prototype['@@transducer/result'] = _xfBase_result),
  53028. (XUniqWith.prototype['@@transducer/step'] = function (s, o) {
  53029. return _includesWith(this.pred, o, this.items)
  53030. ? s
  53031. : (this.items.push(o), this.xf['@@transducer/step'](s, o));
  53032. }),
  53033. XUniqWith
  53034. );
  53035. })();
  53036. function _xuniqWith(s) {
  53037. return function (o) {
  53038. return new SS(s, o);
  53039. };
  53040. }
  53041. var xS = _curry2(
  53042. _dispatchable([], _xuniqWith, function (s, o) {
  53043. for (var i, u = 0, _ = o.length, w = []; u < _; )
  53044. _includesWith(s, (i = o[u]), w) || (w[w.length] = i), (u += 1);
  53045. return w;
  53046. })
  53047. );
  53048. const kS = xS,
  53049. normalize_parameters =
  53050. ({ storageField: s = 'x-normalized' } = {}) =>
  53051. (o) => {
  53052. const { predicates: i, ancestorLineageToJSONPointer: u } = o,
  53053. parameterEquals = (s, o) =>
  53054. !!i.isParameterElement(s) &&
  53055. !!i.isParameterElement(o) &&
  53056. !!i.isStringElement(s.name) &&
  53057. !!i.isStringElement(s.in) &&
  53058. !!i.isStringElement(o.name) &&
  53059. !!i.isStringElement(o.in) &&
  53060. serializers_value(s.name) === serializers_value(o.name) &&
  53061. serializers_value(s.in) === serializers_value(o.in),
  53062. _ = [];
  53063. let w;
  53064. return {
  53065. visitor: {
  53066. OpenApi3_1Element: {
  53067. enter(o) {
  53068. w = new wS(o, s, 'parameters');
  53069. },
  53070. leave() {
  53071. w = void 0;
  53072. }
  53073. },
  53074. PathItemElement: {
  53075. enter(s, o, u, w, x) {
  53076. if (x.some(i.isComponentsElement)) return;
  53077. const { parameters: C } = s;
  53078. i.isArrayElement(C) ? _.push([...C.content]) : _.push([]);
  53079. },
  53080. leave() {
  53081. _.pop();
  53082. }
  53083. },
  53084. OperationElement: {
  53085. leave(s, o, i, x, C) {
  53086. const j = Fa(_);
  53087. if (!Array.isArray(j) || 0 === j.length) return;
  53088. const L = u([...C, i, s]);
  53089. if (w.includes(L)) return;
  53090. const B = Ww([], ['parameters', 'content'], s),
  53091. $ = kS(parameterEquals, [...B, ...j]);
  53092. (s.parameters = new yv($)), w.append(L);
  53093. }
  53094. }
  53095. }
  53096. };
  53097. },
  53098. normalize_security_requirements =
  53099. ({ storageField: s = 'x-normalized' } = {}) =>
  53100. (o) => {
  53101. const { predicates: i, ancestorLineageToJSONPointer: u } = o;
  53102. let _, w;
  53103. return {
  53104. visitor: {
  53105. OpenApi3_1Element: {
  53106. enter(o) {
  53107. (w = new wS(o, s, 'security-requirements')),
  53108. i.isArrayElement(o.security) && (_ = o.security);
  53109. },
  53110. leave() {
  53111. (w = void 0), (_ = void 0);
  53112. }
  53113. },
  53114. OperationElement: {
  53115. leave(s, o, x, C, j) {
  53116. if (j.some(i.isComponentsElement)) return;
  53117. const L = u([...j, x, s]);
  53118. if (w.includes(L)) return;
  53119. var B;
  53120. void 0 === s.security &&
  53121. void 0 !== _ &&
  53122. ((s.security = new Sv(
  53123. null === (B = _) || void 0 === B ? void 0 : B.content
  53124. )),
  53125. w.append(L));
  53126. }
  53127. }
  53128. }
  53129. };
  53130. },
  53131. normalize_parameter_examples =
  53132. ({ storageField: s = 'x-normalized' } = {}) =>
  53133. (o) => {
  53134. const { predicates: i, ancestorLineageToJSONPointer: u } = o;
  53135. let _;
  53136. return {
  53137. visitor: {
  53138. OpenApi3_1Element: {
  53139. enter(o) {
  53140. _ = new wS(o, s, 'parameter-examples');
  53141. },
  53142. leave() {
  53143. _ = void 0;
  53144. }
  53145. },
  53146. ParameterElement: {
  53147. leave(s, o, w, x, C) {
  53148. var j, L;
  53149. if (C.some(i.isComponentsElement)) return;
  53150. if (void 0 === s.schema || !i.isSchemaElement(s.schema)) return;
  53151. if (
  53152. void 0 === (null === (j = s.schema) || void 0 === j ? void 0 : j.example) &&
  53153. void 0 === (null === (L = s.schema) || void 0 === L ? void 0 : L.examples)
  53154. )
  53155. return;
  53156. const B = u([...C, w, s]);
  53157. if (!_.includes(B)) {
  53158. if (void 0 !== s.examples && i.isObjectElement(s.examples)) {
  53159. const o = s.examples.map((s) => cloneDeep.safe(s.value));
  53160. return (
  53161. void 0 !== s.schema.examples &&
  53162. (s.schema.set('examples', o), _.append(B)),
  53163. void (
  53164. void 0 !== s.schema.example &&
  53165. (s.schema.set('example', o[0]), _.append(B))
  53166. )
  53167. );
  53168. }
  53169. void 0 !== s.example &&
  53170. (void 0 !== s.schema.examples &&
  53171. (s.schema.set('examples', [cloneDeep(s.example)]), _.append(B)),
  53172. void 0 !== s.schema.example &&
  53173. (s.schema.set('example', cloneDeep(s.example)), _.append(B)));
  53174. }
  53175. }
  53176. }
  53177. }
  53178. };
  53179. },
  53180. normalize_header_examples =
  53181. ({ storageField: s = 'x-normalized' } = {}) =>
  53182. (o) => {
  53183. const { predicates: i, ancestorLineageToJSONPointer: u } = o;
  53184. let _;
  53185. return {
  53186. visitor: {
  53187. OpenApi3_1Element: {
  53188. enter(o) {
  53189. _ = new wS(o, s, 'header-examples');
  53190. },
  53191. leave() {
  53192. _ = void 0;
  53193. }
  53194. },
  53195. HeaderElement: {
  53196. leave(s, o, w, x, C) {
  53197. var j, L;
  53198. if (C.some(i.isComponentsElement)) return;
  53199. if (void 0 === s.schema || !i.isSchemaElement(s.schema)) return;
  53200. if (
  53201. void 0 === (null === (j = s.schema) || void 0 === j ? void 0 : j.example) &&
  53202. void 0 === (null === (L = s.schema) || void 0 === L ? void 0 : L.examples)
  53203. )
  53204. return;
  53205. const B = u([...C, w, s]);
  53206. if (!_.includes(B)) {
  53207. if (void 0 !== s.examples && i.isObjectElement(s.examples)) {
  53208. const o = s.examples.map((s) => cloneDeep.safe(s.value));
  53209. return (
  53210. void 0 !== s.schema.examples &&
  53211. (s.schema.set('examples', o), _.append(B)),
  53212. void (
  53213. void 0 !== s.schema.example &&
  53214. (s.schema.set('example', o[0]), _.append(B))
  53215. )
  53216. );
  53217. }
  53218. void 0 !== s.example &&
  53219. (void 0 !== s.schema.examples &&
  53220. (s.schema.set('examples', [cloneDeep(s.example)]), _.append(B)),
  53221. void 0 !== s.schema.example &&
  53222. (s.schema.set('example', cloneDeep(s.example)), _.append(B)));
  53223. }
  53224. }
  53225. }
  53226. }
  53227. };
  53228. },
  53229. openapi_3_1_apidom_normalize = (s) => {
  53230. if (!Fu(s)) return s;
  53231. const o = [
  53232. normalize_operation_ids({
  53233. operationIdNormalizer: (s, o, i) =>
  53234. opId({ operationId: s }, o, i, { v2OperationIdCompatibilityMode: !1 })
  53235. }),
  53236. normalize_parameters(),
  53237. normalize_security_requirements(),
  53238. normalize_parameter_examples(),
  53239. normalize_header_examples()
  53240. ];
  53241. return dispatchPluginsSync(s, o, {
  53242. toolboxCreator: apidom_ns_openapi_3_1_es_refractor_toolbox,
  53243. visitorOptions: {
  53244. keyMap: nw,
  53245. nodeTypeGetter: apidom_ns_openapi_3_1_es_traversal_visitor_getNodeType
  53246. }
  53247. });
  53248. },
  53249. CS = {
  53250. name: 'openapi-3-1-apidom',
  53251. match: (s) => isOpenAPI31(s),
  53252. normalize(s) {
  53253. if (!Nu(s) && ku(s) && !s.$$normalized) {
  53254. const i = ((o = openapi_3_1_apidom_normalize),
  53255. (s) => {
  53256. const i = wb.refract(s);
  53257. i.classes.push('result');
  53258. const u = o(i),
  53259. _ = serializers_value(u);
  53260. return yS.cache.set(_, u), serializers_value(u);
  53261. })(s);
  53262. return (i.$$normalized = !0), i;
  53263. }
  53264. var o;
  53265. return Nu(s) ? openapi_3_1_apidom_normalize(s) : s;
  53266. },
  53267. resolve: async (s) => yS(s)
  53268. },
  53269. OS = CS,
  53270. makeResolve = (s) => async (o) =>
  53271. (async (s) => {
  53272. const { spec: o, requestInterceptor: i, responseInterceptor: u } = s,
  53273. _ = options_retrievalURI(s),
  53274. w = options_httpClient(s),
  53275. x =
  53276. o ||
  53277. (await makeFetchJSON(w, { requestInterceptor: i, responseInterceptor: u })(_)),
  53278. C = { ...s, spec: x };
  53279. return s.strategies.find((s) => s.match(x)).resolve(C);
  53280. })({ ...s, ...o }),
  53281. AS = makeResolve({ strategies: [fu, hu, uu] });
  53282. var jS = __webpack_require__(69883);
  53283. const IS = function fnparser() {
  53284. const s = TS,
  53285. o = MS,
  53286. i = this,
  53287. u = 'parser.js: Parser(): ';
  53288. (i.ast = void 0), (i.stats = void 0), (i.trace = void 0), (i.callbacks = []);
  53289. let _,
  53290. w,
  53291. x,
  53292. C,
  53293. j,
  53294. L,
  53295. B,
  53296. $ = 0,
  53297. V = 0,
  53298. U = 0,
  53299. z = 0,
  53300. Y = 0,
  53301. Z = new (function systemData() {
  53302. (this.state = s.ACTIVE),
  53303. (this.phraseLength = 0),
  53304. (this.refresh = () => {
  53305. (this.state = s.ACTIVE), (this.phraseLength = 0);
  53306. });
  53307. })();
  53308. i.parse = (ee, ie, ae, le) => {
  53309. const ce = `${u}parse(): `;
  53310. ($ = 0),
  53311. (V = 0),
  53312. (U = 0),
  53313. (z = 0),
  53314. (Y = 0),
  53315. (_ = void 0),
  53316. (w = void 0),
  53317. (x = void 0),
  53318. (C = void 0),
  53319. Z.refresh(),
  53320. (j = void 0),
  53321. (L = void 0),
  53322. (B = void 0),
  53323. (C = o.stringToChars(ae)),
  53324. (_ = ee.rules),
  53325. (w = ee.udts);
  53326. const pe = ie.toLowerCase();
  53327. let de;
  53328. for (const s in _)
  53329. if (_.hasOwnProperty(s) && pe === _[s].lower) {
  53330. de = _[s].index;
  53331. break;
  53332. }
  53333. if (void 0 === de)
  53334. throw new Error(`${ce}start rule name '${startRule}' not recognized`);
  53335. (() => {
  53336. const s = `${u}initializeCallbacks(): `;
  53337. let o, x;
  53338. for (j = [], L = [], o = 0; o < _.length; o += 1) j[o] = void 0;
  53339. for (o = 0; o < w.length; o += 1) L[o] = void 0;
  53340. const C = [];
  53341. for (o = 0; o < _.length; o += 1) C.push(_[o].lower);
  53342. for (o = 0; o < w.length; o += 1) C.push(w[o].lower);
  53343. for (const u in i.callbacks)
  53344. if (i.callbacks.hasOwnProperty(u)) {
  53345. if (((o = C.indexOf(u.toLowerCase())), o < 0))
  53346. throw new Error(`${s}syntax callback '${u}' not a rule or udt name`);
  53347. if (
  53348. ((x = i.callbacks[u] ? i.callbacks[u] : void 0),
  53349. 'function' != typeof x && void 0 !== x)
  53350. )
  53351. throw new Error(
  53352. `${s}syntax callback[${u}] must be function reference or falsy)`
  53353. );
  53354. o < _.length ? (j[o] = x) : (L[o - _.length] = x);
  53355. }
  53356. })(),
  53357. i.trace && i.trace.init(_, w, C),
  53358. i.stats && i.stats.init(_, w),
  53359. i.ast && i.ast.init(_, w, C),
  53360. (B = le),
  53361. (x = [{ type: s.RNM, index: de }]),
  53362. opExecute(0, 0),
  53363. (x = void 0);
  53364. let fe = !1;
  53365. switch (Z.state) {
  53366. case s.ACTIVE:
  53367. throw new Error(`${ce}final state should never be 'ACTIVE'`);
  53368. case s.NOMATCH:
  53369. fe = !1;
  53370. break;
  53371. case s.EMPTY:
  53372. case s.MATCH:
  53373. fe = Z.phraseLength === C.length;
  53374. break;
  53375. default:
  53376. throw new Error('unrecognized state');
  53377. }
  53378. return {
  53379. success: fe,
  53380. state: Z.state,
  53381. stateName: s.idName(Z.state),
  53382. length: C.length,
  53383. matched: Z.phraseLength,
  53384. maxMatched: Y,
  53385. maxTreeDepth: U,
  53386. nodeHits: z
  53387. };
  53388. };
  53389. const validateRnmCallbackResult = (o, i, _, w) => {
  53390. if (i.phraseLength > _) {
  53391. let s = `${u}opRNM(${o.name}): callback function error: `;
  53392. throw (
  53393. ((s += `sysData.phraseLength: ${i.phraseLength}`),
  53394. (s += ` must be <= remaining chars: ${_}`),
  53395. new Error(s))
  53396. );
  53397. }
  53398. switch (i.state) {
  53399. case s.ACTIVE:
  53400. if (!w)
  53401. throw new Error(
  53402. `${u}opRNM(${o.name}): callback function return error. ACTIVE state not allowed.`
  53403. );
  53404. break;
  53405. case s.EMPTY:
  53406. i.phraseLength = 0;
  53407. break;
  53408. case s.MATCH:
  53409. 0 === i.phraseLength && (i.state = s.EMPTY);
  53410. break;
  53411. case s.NOMATCH:
  53412. i.phraseLength = 0;
  53413. break;
  53414. default:
  53415. throw new Error(
  53416. `${u}opRNM(${o.name}): callback function return error. Unrecognized return state: ${i.state}`
  53417. );
  53418. }
  53419. },
  53420. opUDT = (o, j) => {
  53421. let V, U, z;
  53422. const Y = x[o],
  53423. ee = w[Y.index];
  53424. (Z.UdtIndex = ee.index),
  53425. $ ||
  53426. ((z = i.ast && i.ast.udtDefined(Y.index)),
  53427. z &&
  53428. ((U = _.length + Y.index), (V = i.ast.getLength()), i.ast.down(U, ee.name)));
  53429. const ie = C.length - j;
  53430. L[Y.index](Z, C, j, B),
  53431. ((o, i, _) => {
  53432. if (i.phraseLength > _) {
  53433. let s = `${u}opUDT(${o.name}): callback function error: `;
  53434. throw (
  53435. ((s += `sysData.phraseLength: ${i.phraseLength}`),
  53436. (s += ` must be <= remaining chars: ${_}`),
  53437. new Error(s))
  53438. );
  53439. }
  53440. switch (i.state) {
  53441. case s.ACTIVE:
  53442. throw new Error(`${u}opUDT(${o.name}) ACTIVE state return not allowed.`);
  53443. case s.EMPTY:
  53444. if (!o.empty) throw new Error(`${u}opUDT(${o.name}) may not return EMPTY.`);
  53445. i.phraseLength = 0;
  53446. break;
  53447. case s.MATCH:
  53448. if (0 === i.phraseLength) {
  53449. if (!o.empty)
  53450. throw new Error(`${u}opUDT(${o.name}) may not return EMPTY.`);
  53451. i.state = s.EMPTY;
  53452. }
  53453. break;
  53454. case s.NOMATCH:
  53455. i.phraseLength = 0;
  53456. break;
  53457. default:
  53458. throw new Error(
  53459. `${u}opUDT(${o.name}): callback function return error. Unrecognized return state: ${i.state}`
  53460. );
  53461. }
  53462. })(ee, Z, ie),
  53463. $ ||
  53464. (z &&
  53465. (Z.state === s.NOMATCH
  53466. ? i.ast.setLength(V)
  53467. : i.ast.up(U, ee.name, j, Z.phraseLength)));
  53468. },
  53469. opExecute = (o, w) => {
  53470. const L = `${u}opExecute(): `,
  53471. ee = x[o];
  53472. switch (
  53473. ((z += 1),
  53474. V > U && (U = V),
  53475. (V += 1),
  53476. Z.refresh(),
  53477. i.trace && i.trace.down(ee, w),
  53478. ee.type)
  53479. ) {
  53480. case s.ALT:
  53481. ((o, i) => {
  53482. const u = x[o];
  53483. for (
  53484. let o = 0;
  53485. o < u.children.length &&
  53486. (opExecute(u.children[o], i), Z.state === s.NOMATCH);
  53487. o += 1
  53488. );
  53489. })(o, w);
  53490. break;
  53491. case s.CAT:
  53492. ((o, u) => {
  53493. let _, w, C, j;
  53494. const L = x[o];
  53495. i.ast && (w = i.ast.getLength()), (_ = !0), (C = u), (j = 0);
  53496. for (let o = 0; o < L.children.length; o += 1) {
  53497. if ((opExecute(L.children[o], C), Z.state === s.NOMATCH)) {
  53498. _ = !1;
  53499. break;
  53500. }
  53501. (C += Z.phraseLength), (j += Z.phraseLength);
  53502. }
  53503. _
  53504. ? ((Z.state = 0 === j ? s.EMPTY : s.MATCH), (Z.phraseLength = j))
  53505. : ((Z.state = s.NOMATCH),
  53506. (Z.phraseLength = 0),
  53507. i.ast && i.ast.setLength(w));
  53508. })(o, w);
  53509. break;
  53510. case s.REP:
  53511. ((o, u) => {
  53512. let _, w, j, L;
  53513. const B = x[o];
  53514. if (0 === B.max) return (Z.state = s.EMPTY), void (Z.phraseLength = 0);
  53515. for (
  53516. w = u, j = 0, L = 0, i.ast && (_ = i.ast.getLength());
  53517. !(w >= C.length) &&
  53518. (opExecute(o + 1, w), Z.state !== s.NOMATCH) &&
  53519. Z.state !== s.EMPTY &&
  53520. ((L += 1), (j += Z.phraseLength), (w += Z.phraseLength), L !== B.max);
  53521. );
  53522. Z.state === s.EMPTY || L >= B.min
  53523. ? ((Z.state = 0 === j ? s.EMPTY : s.MATCH), (Z.phraseLength = j))
  53524. : ((Z.state = s.NOMATCH),
  53525. (Z.phraseLength = 0),
  53526. i.ast && i.ast.setLength(_));
  53527. })(o, w);
  53528. break;
  53529. case s.RNM:
  53530. ((o, u) => {
  53531. let w, L, V;
  53532. const U = x[o],
  53533. z = _[U.index],
  53534. Y = j[z.index];
  53535. if (
  53536. ($ ||
  53537. ((L = i.ast && i.ast.ruleDefined(U.index)),
  53538. L && ((w = i.ast.getLength()), i.ast.down(U.index, _[U.index].name))),
  53539. Y)
  53540. ) {
  53541. const o = C.length - u;
  53542. Y(Z, C, u, B),
  53543. validateRnmCallbackResult(z, Z, o, !0),
  53544. Z.state === s.ACTIVE &&
  53545. ((V = x),
  53546. (x = z.opcodes),
  53547. opExecute(0, u),
  53548. (x = V),
  53549. Y(Z, C, u, B),
  53550. validateRnmCallbackResult(z, Z, o, !1));
  53551. } else (V = x), (x = z.opcodes), opExecute(0, u, Z), (x = V);
  53552. $ ||
  53553. (L &&
  53554. (Z.state === s.NOMATCH
  53555. ? i.ast.setLength(w)
  53556. : i.ast.up(U.index, z.name, u, Z.phraseLength)));
  53557. })(o, w);
  53558. break;
  53559. case s.TRG:
  53560. ((o, i) => {
  53561. const u = x[o];
  53562. (Z.state = s.NOMATCH),
  53563. i < C.length &&
  53564. u.min <= C[i] &&
  53565. C[i] <= u.max &&
  53566. ((Z.state = s.MATCH), (Z.phraseLength = 1));
  53567. })(o, w);
  53568. break;
  53569. case s.TBS:
  53570. ((o, i) => {
  53571. const u = x[o],
  53572. _ = u.string.length;
  53573. if (((Z.state = s.NOMATCH), i + _ <= C.length)) {
  53574. for (let s = 0; s < _; s += 1) if (C[i + s] !== u.string[s]) return;
  53575. (Z.state = s.MATCH), (Z.phraseLength = _);
  53576. }
  53577. })(o, w);
  53578. break;
  53579. case s.TLS:
  53580. ((o, i) => {
  53581. let u;
  53582. const _ = x[o];
  53583. Z.state = s.NOMATCH;
  53584. const w = _.string.length;
  53585. if (0 !== w) {
  53586. if (i + w <= C.length) {
  53587. for (let s = 0; s < w; s += 1)
  53588. if (
  53589. ((u = C[i + s]), u >= 65 && u <= 90 && (u += 32), u !== _.string[s])
  53590. )
  53591. return;
  53592. (Z.state = s.MATCH), (Z.phraseLength = w);
  53593. }
  53594. } else Z.state = s.EMPTY;
  53595. })(o, w);
  53596. break;
  53597. case s.UDT:
  53598. opUDT(o, w);
  53599. break;
  53600. case s.AND:
  53601. ((o, i) => {
  53602. switch (
  53603. (($ += 1), opExecute(o + 1, i), ($ -= 1), (Z.phraseLength = 0), Z.state)
  53604. ) {
  53605. case s.EMPTY:
  53606. case s.MATCH:
  53607. Z.state = s.EMPTY;
  53608. break;
  53609. case s.NOMATCH:
  53610. Z.state = s.NOMATCH;
  53611. break;
  53612. default:
  53613. throw new Error(`opAND: invalid state ${Z.state}`);
  53614. }
  53615. })(o, w);
  53616. break;
  53617. case s.NOT:
  53618. ((o, i) => {
  53619. switch (
  53620. (($ += 1), opExecute(o + 1, i), ($ -= 1), (Z.phraseLength = 0), Z.state)
  53621. ) {
  53622. case s.EMPTY:
  53623. case s.MATCH:
  53624. Z.state = s.NOMATCH;
  53625. break;
  53626. case s.NOMATCH:
  53627. Z.state = s.EMPTY;
  53628. break;
  53629. default:
  53630. throw new Error(`opNOT: invalid state ${Z.state}`);
  53631. }
  53632. })(o, w);
  53633. break;
  53634. default:
  53635. throw new Error(`${L}unrecognized operator`);
  53636. }
  53637. $ || (w + Z.phraseLength > Y && (Y = w + Z.phraseLength)),
  53638. i.stats && i.stats.collect(ee, Z),
  53639. i.trace && i.trace.up(ee, Z.state, w, Z.phraseLength),
  53640. (V -= 1);
  53641. };
  53642. },
  53643. PS = function fnast() {
  53644. const s = TS,
  53645. o = MS,
  53646. i = this;
  53647. let u,
  53648. _,
  53649. w,
  53650. x = 0;
  53651. const C = [],
  53652. j = [],
  53653. L = [];
  53654. function indent(s) {
  53655. let o = '';
  53656. for (; s-- > 0; ) o += ' ';
  53657. return o;
  53658. }
  53659. (i.callbacks = []),
  53660. (i.init = (s, o, B) => {
  53661. let $;
  53662. (j.length = 0), (L.length = 0), (x = 0), (u = s), (_ = o), (w = B);
  53663. const V = [];
  53664. for ($ = 0; $ < u.length; $ += 1) V.push(u[$].lower);
  53665. for ($ = 0; $ < _.length; $ += 1) V.push(_[$].lower);
  53666. for (x = u.length + _.length, $ = 0; $ < x; $ += 1) C[$] = void 0;
  53667. for (const s in i.callbacks)
  53668. if (i.callbacks.hasOwnProperty(s)) {
  53669. const o = s.toLowerCase();
  53670. if ((($ = V.indexOf(o)), $ < 0))
  53671. throw new Error(
  53672. `parser.js: Ast()): init: node '${s}' not a rule or udt name`
  53673. );
  53674. C[$] = i.callbacks[s];
  53675. }
  53676. }),
  53677. (i.ruleDefined = (s) => !!C[s]),
  53678. (i.udtDefined = (s) => !!C[u.length + s]),
  53679. (i.down = (o, i) => {
  53680. const u = L.length;
  53681. return (
  53682. j.push(u),
  53683. L.push({
  53684. name: i,
  53685. thisIndex: u,
  53686. thatIndex: void 0,
  53687. state: s.SEM_PRE,
  53688. callbackIndex: o,
  53689. phraseIndex: void 0,
  53690. phraseLength: void 0,
  53691. stack: j.length
  53692. }),
  53693. u
  53694. );
  53695. }),
  53696. (i.up = (o, i, u, _) => {
  53697. const w = L.length,
  53698. x = j.pop();
  53699. return (
  53700. L.push({
  53701. name: i,
  53702. thisIndex: w,
  53703. thatIndex: x,
  53704. state: s.SEM_POST,
  53705. callbackIndex: o,
  53706. phraseIndex: u,
  53707. phraseLength: _,
  53708. stack: j.length
  53709. }),
  53710. (L[x].thatIndex = w),
  53711. (L[x].phraseIndex = u),
  53712. (L[x].phraseLength = _),
  53713. w
  53714. );
  53715. }),
  53716. (i.translate = (o) => {
  53717. let i, u;
  53718. for (let _ = 0; _ < L.length; _ += 1)
  53719. (u = L[_]),
  53720. (i = C[u.callbackIndex]),
  53721. i &&
  53722. (u.state === s.SEM_PRE
  53723. ? i(s.SEM_PRE, w, u.phraseIndex, u.phraseLength, o)
  53724. : i && i(s.SEM_POST, w, u.phraseIndex, u.phraseLength, o));
  53725. }),
  53726. (i.setLength = (s) => {
  53727. (L.length = s), (j.length = s > 0 ? L[s - 1].stack : 0);
  53728. }),
  53729. (i.getLength = () => L.length),
  53730. (i.toXml = () => {
  53731. let i = '',
  53732. u = 0;
  53733. return (
  53734. (i += '<?xml version="1.0" encoding="utf-8"?>\n'),
  53735. (i += `<root nodes="${L.length / 2}" characters="${w.length}">\n`),
  53736. (i += '\x3c!-- input string --\x3e\n'),
  53737. (i += indent(u + 2)),
  53738. (i += o.charsToString(w)),
  53739. (i += '\n'),
  53740. L.forEach((_) => {
  53741. _.state === s.SEM_PRE
  53742. ? ((u += 1),
  53743. (i += indent(u)),
  53744. (i += `<node name="${_.name}" index="${_.phraseIndex}" length="${_.phraseLength}">\n`),
  53745. (i += indent(u + 2)),
  53746. (i += o.charsToString(w, _.phraseIndex, _.phraseLength)),
  53747. (i += '\n'))
  53748. : ((i += indent(u)),
  53749. (i += `</node>\x3c!-- name="${_.name}" --\x3e\n`),
  53750. (u -= 1));
  53751. }),
  53752. (i += '</root>\n'),
  53753. i
  53754. );
  53755. });
  53756. },
  53757. MS = {
  53758. stringToChars: (s) => [...s].map((s) => s.codePointAt(0)),
  53759. charsToString: (s, o, i) => {
  53760. let u = s;
  53761. for (; !(void 0 === o || o < 0); ) {
  53762. if (void 0 === i) {
  53763. u = s.slice(o);
  53764. break;
  53765. }
  53766. if (i <= 0) return '';
  53767. u = s.slice(o, o + i);
  53768. break;
  53769. }
  53770. return String.fromCodePoint(...u);
  53771. }
  53772. },
  53773. TS = {
  53774. ALT: 1,
  53775. CAT: 2,
  53776. REP: 3,
  53777. RNM: 4,
  53778. TRG: 5,
  53779. TBS: 6,
  53780. TLS: 7,
  53781. UDT: 11,
  53782. AND: 12,
  53783. NOT: 13,
  53784. ACTIVE: 100,
  53785. MATCH: 101,
  53786. EMPTY: 102,
  53787. NOMATCH: 103,
  53788. SEM_PRE: 200,
  53789. SEM_POST: 201,
  53790. SEM_OK: 300,
  53791. idName: (s) => {
  53792. switch (s) {
  53793. case TS.ALT:
  53794. return 'ALT';
  53795. case TS.CAT:
  53796. return 'CAT';
  53797. case TS.REP:
  53798. return 'REP';
  53799. case TS.RNM:
  53800. return 'RNM';
  53801. case TS.TRG:
  53802. return 'TRG';
  53803. case TS.TBS:
  53804. return 'TBS';
  53805. case TS.TLS:
  53806. return 'TLS';
  53807. case TS.UDT:
  53808. return 'UDT';
  53809. case TS.AND:
  53810. return 'AND';
  53811. case TS.NOT:
  53812. return 'NOT';
  53813. case TS.ACTIVE:
  53814. return 'ACTIVE';
  53815. case TS.EMPTY:
  53816. return 'EMPTY';
  53817. case TS.MATCH:
  53818. return 'MATCH';
  53819. case TS.NOMATCH:
  53820. return 'NOMATCH';
  53821. case TS.SEM_PRE:
  53822. return 'SEM_PRE';
  53823. case TS.SEM_POST:
  53824. return 'SEM_POST';
  53825. case TS.SEM_OK:
  53826. return 'SEM_OK';
  53827. default:
  53828. return 'UNRECOGNIZED STATE';
  53829. }
  53830. }
  53831. };
  53832. const server_url_template = (s, o, i, u, _) => {
  53833. if (s === TS.SEM_PRE) {
  53834. if (!1 === Array.isArray(_)) throw new Error("parser's user data must be an array");
  53835. _.push(['server-url-template', MS.charsToString(o, i, u)]);
  53836. }
  53837. return TS.SEM_OK;
  53838. },
  53839. callbacks_server_variable = (s, o, i, u, _) => {
  53840. if (s === TS.SEM_PRE) {
  53841. if (!1 === Array.isArray(_)) throw new Error("parser's user data must be an array");
  53842. _.push(['server-variable', MS.charsToString(o, i, u)]);
  53843. }
  53844. return TS.SEM_OK;
  53845. },
  53846. server_variable_name = (s, o, i, u, _) => {
  53847. if (s === TS.SEM_PRE) {
  53848. if (!1 === Array.isArray(_)) throw new Error("parser's user data must be an array");
  53849. _.push(['server-variable-name', MS.charsToString(o, i, u)]);
  53850. }
  53851. return TS.SEM_OK;
  53852. },
  53853. callbacks_literals = (s, o, i, u, _) => {
  53854. if (s === TS.SEM_PRE) {
  53855. if (!1 === Array.isArray(_)) throw new Error("parser's user data must be an array");
  53856. _.push(['literals', MS.charsToString(o, i, u)]);
  53857. }
  53858. return TS.SEM_OK;
  53859. },
  53860. NS = new (function grammar() {
  53861. (this.grammarObject = 'grammarObject'),
  53862. (this.rules = []),
  53863. (this.rules[0] = {
  53864. name: 'server-url-template',
  53865. lower: 'server-url-template',
  53866. index: 0,
  53867. isBkr: !1
  53868. }),
  53869. (this.rules[1] = {
  53870. name: 'server-variable',
  53871. lower: 'server-variable',
  53872. index: 1,
  53873. isBkr: !1
  53874. }),
  53875. (this.rules[2] = {
  53876. name: 'server-variable-name',
  53877. lower: 'server-variable-name',
  53878. index: 2,
  53879. isBkr: !1
  53880. }),
  53881. (this.rules[3] = { name: 'literals', lower: 'literals', index: 3, isBkr: !1 }),
  53882. (this.rules[4] = { name: 'ALPHA', lower: 'alpha', index: 4, isBkr: !1 }),
  53883. (this.rules[5] = { name: 'DIGIT', lower: 'digit', index: 5, isBkr: !1 }),
  53884. (this.rules[6] = { name: 'HEXDIG', lower: 'hexdig', index: 6, isBkr: !1 }),
  53885. (this.rules[7] = { name: 'pct-encoded', lower: 'pct-encoded', index: 7, isBkr: !1 }),
  53886. (this.rules[8] = { name: 'unreserved', lower: 'unreserved', index: 8, isBkr: !1 }),
  53887. (this.rules[9] = { name: 'sub-delims', lower: 'sub-delims', index: 9, isBkr: !1 }),
  53888. (this.rules[10] = { name: 'ucschar', lower: 'ucschar', index: 10, isBkr: !1 }),
  53889. (this.rules[11] = { name: 'iprivate', lower: 'iprivate', index: 11, isBkr: !1 }),
  53890. (this.udts = []),
  53891. (this.rules[0].opcodes = []),
  53892. (this.rules[0].opcodes[0] = { type: 3, min: 1, max: 1 / 0 }),
  53893. (this.rules[0].opcodes[1] = { type: 1, children: [2, 3] }),
  53894. (this.rules[0].opcodes[2] = { type: 4, index: 3 }),
  53895. (this.rules[0].opcodes[3] = { type: 4, index: 1 }),
  53896. (this.rules[1].opcodes = []),
  53897. (this.rules[1].opcodes[0] = { type: 2, children: [1, 2, 3] }),
  53898. (this.rules[1].opcodes[1] = { type: 7, string: [123] }),
  53899. (this.rules[1].opcodes[2] = { type: 4, index: 2 }),
  53900. (this.rules[1].opcodes[3] = { type: 7, string: [125] }),
  53901. (this.rules[2].opcodes = []),
  53902. (this.rules[2].opcodes[0] = { type: 3, min: 1, max: 1 / 0 }),
  53903. (this.rules[2].opcodes[1] = { type: 1, children: [2, 3, 4, 5, 6] }),
  53904. (this.rules[2].opcodes[2] = { type: 4, index: 8 }),
  53905. (this.rules[2].opcodes[3] = { type: 4, index: 7 }),
  53906. (this.rules[2].opcodes[4] = { type: 4, index: 9 }),
  53907. (this.rules[2].opcodes[5] = { type: 7, string: [58] }),
  53908. (this.rules[2].opcodes[6] = { type: 7, string: [64] }),
  53909. (this.rules[3].opcodes = []),
  53910. (this.rules[3].opcodes[0] = { type: 3, min: 1, max: 1 / 0 }),
  53911. (this.rules[3].opcodes[1] = {
  53912. type: 1,
  53913. children: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
  53914. }),
  53915. (this.rules[3].opcodes[2] = { type: 6, string: [33] }),
  53916. (this.rules[3].opcodes[3] = { type: 5, min: 35, max: 36 }),
  53917. (this.rules[3].opcodes[4] = { type: 6, string: [38] }),
  53918. (this.rules[3].opcodes[5] = { type: 5, min: 40, max: 59 }),
  53919. (this.rules[3].opcodes[6] = { type: 6, string: [61] }),
  53920. (this.rules[3].opcodes[7] = { type: 5, min: 63, max: 91 }),
  53921. (this.rules[3].opcodes[8] = { type: 6, string: [93] }),
  53922. (this.rules[3].opcodes[9] = { type: 6, string: [95] }),
  53923. (this.rules[3].opcodes[10] = { type: 5, min: 97, max: 122 }),
  53924. (this.rules[3].opcodes[11] = { type: 6, string: [126] }),
  53925. (this.rules[3].opcodes[12] = { type: 4, index: 10 }),
  53926. (this.rules[3].opcodes[13] = { type: 4, index: 11 }),
  53927. (this.rules[3].opcodes[14] = { type: 4, index: 7 }),
  53928. (this.rules[4].opcodes = []),
  53929. (this.rules[4].opcodes[0] = { type: 1, children: [1, 2] }),
  53930. (this.rules[4].opcodes[1] = { type: 5, min: 65, max: 90 }),
  53931. (this.rules[4].opcodes[2] = { type: 5, min: 97, max: 122 }),
  53932. (this.rules[5].opcodes = []),
  53933. (this.rules[5].opcodes[0] = { type: 5, min: 48, max: 57 }),
  53934. (this.rules[6].opcodes = []),
  53935. (this.rules[6].opcodes[0] = { type: 1, children: [1, 2, 3, 4, 5, 6, 7] }),
  53936. (this.rules[6].opcodes[1] = { type: 4, index: 5 }),
  53937. (this.rules[6].opcodes[2] = { type: 7, string: [97] }),
  53938. (this.rules[6].opcodes[3] = { type: 7, string: [98] }),
  53939. (this.rules[6].opcodes[4] = { type: 7, string: [99] }),
  53940. (this.rules[6].opcodes[5] = { type: 7, string: [100] }),
  53941. (this.rules[6].opcodes[6] = { type: 7, string: [101] }),
  53942. (this.rules[6].opcodes[7] = { type: 7, string: [102] }),
  53943. (this.rules[7].opcodes = []),
  53944. (this.rules[7].opcodes[0] = { type: 2, children: [1, 2, 3] }),
  53945. (this.rules[7].opcodes[1] = { type: 7, string: [37] }),
  53946. (this.rules[7].opcodes[2] = { type: 4, index: 6 }),
  53947. (this.rules[7].opcodes[3] = { type: 4, index: 6 }),
  53948. (this.rules[8].opcodes = []),
  53949. (this.rules[8].opcodes[0] = { type: 1, children: [1, 2, 3, 4, 5, 6] }),
  53950. (this.rules[8].opcodes[1] = { type: 4, index: 4 }),
  53951. (this.rules[8].opcodes[2] = { type: 4, index: 5 }),
  53952. (this.rules[8].opcodes[3] = { type: 7, string: [45] }),
  53953. (this.rules[8].opcodes[4] = { type: 7, string: [46] }),
  53954. (this.rules[8].opcodes[5] = { type: 7, string: [95] }),
  53955. (this.rules[8].opcodes[6] = { type: 7, string: [126] }),
  53956. (this.rules[9].opcodes = []),
  53957. (this.rules[9].opcodes[0] = {
  53958. type: 1,
  53959. children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  53960. }),
  53961. (this.rules[9].opcodes[1] = { type: 7, string: [33] }),
  53962. (this.rules[9].opcodes[2] = { type: 7, string: [36] }),
  53963. (this.rules[9].opcodes[3] = { type: 7, string: [38] }),
  53964. (this.rules[9].opcodes[4] = { type: 7, string: [39] }),
  53965. (this.rules[9].opcodes[5] = { type: 7, string: [40] }),
  53966. (this.rules[9].opcodes[6] = { type: 7, string: [41] }),
  53967. (this.rules[9].opcodes[7] = { type: 7, string: [42] }),
  53968. (this.rules[9].opcodes[8] = { type: 7, string: [43] }),
  53969. (this.rules[9].opcodes[9] = { type: 7, string: [44] }),
  53970. (this.rules[9].opcodes[10] = { type: 7, string: [59] }),
  53971. (this.rules[9].opcodes[11] = { type: 7, string: [61] }),
  53972. (this.rules[10].opcodes = []),
  53973. (this.rules[10].opcodes[0] = {
  53974. type: 1,
  53975. children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
  53976. }),
  53977. (this.rules[10].opcodes[1] = { type: 5, min: 160, max: 55295 }),
  53978. (this.rules[10].opcodes[2] = { type: 5, min: 63744, max: 64975 }),
  53979. (this.rules[10].opcodes[3] = { type: 5, min: 65008, max: 65519 }),
  53980. (this.rules[10].opcodes[4] = { type: 5, min: 65536, max: 131069 }),
  53981. (this.rules[10].opcodes[5] = { type: 5, min: 131072, max: 196605 }),
  53982. (this.rules[10].opcodes[6] = { type: 5, min: 196608, max: 262141 }),
  53983. (this.rules[10].opcodes[7] = { type: 5, min: 262144, max: 327677 }),
  53984. (this.rules[10].opcodes[8] = { type: 5, min: 327680, max: 393213 }),
  53985. (this.rules[10].opcodes[9] = { type: 5, min: 393216, max: 458749 }),
  53986. (this.rules[10].opcodes[10] = { type: 5, min: 458752, max: 524285 }),
  53987. (this.rules[10].opcodes[11] = { type: 5, min: 524288, max: 589821 }),
  53988. (this.rules[10].opcodes[12] = { type: 5, min: 589824, max: 655357 }),
  53989. (this.rules[10].opcodes[13] = { type: 5, min: 655360, max: 720893 }),
  53990. (this.rules[10].opcodes[14] = { type: 5, min: 720896, max: 786429 }),
  53991. (this.rules[10].opcodes[15] = { type: 5, min: 786432, max: 851965 }),
  53992. (this.rules[10].opcodes[16] = { type: 5, min: 851968, max: 917501 }),
  53993. (this.rules[10].opcodes[17] = { type: 5, min: 921600, max: 983037 }),
  53994. (this.rules[11].opcodes = []),
  53995. (this.rules[11].opcodes[0] = { type: 1, children: [1, 2, 3] }),
  53996. (this.rules[11].opcodes[1] = { type: 5, min: 57344, max: 63743 }),
  53997. (this.rules[11].opcodes[2] = { type: 5, min: 983040, max: 1048573 }),
  53998. (this.rules[11].opcodes[3] = { type: 5, min: 1048576, max: 1114109 }),
  53999. (this.toString = function toString() {
  54000. let s = '';
  54001. return (
  54002. (s += '; OpenAPI Server URL templating ABNF syntax\n'),
  54003. (s += 'server-url-template = 1*( literals / server-variable )\n'),
  54004. (s += 'server-variable = "{" server-variable-name "}"\n'),
  54005. (s +=
  54006. 'server-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n'),
  54007. (s +=
  54008. 'literals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n'),
  54009. (s +=
  54010. ' / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n'),
  54011. (s += ' / pct-encoded)\n'),
  54012. (s += ' ; any Unicode character except: CTL, SP,\n'),
  54013. (s +=
  54014. ' ; DQUOTE, "\'", "%" (aside from pct-encoded),\n'),
  54015. (s += ' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n'),
  54016. (s += '\n'),
  54017. (s += '; Characters definitions (from RFC 6570)\n'),
  54018. (s += 'ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n'),
  54019. (s += 'DIGIT = %x30-39 ; 0-9\n'),
  54020. (s += 'HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'),
  54021. (s += ' ; case-insensitive\n'),
  54022. (s += '\n'),
  54023. (s += 'pct-encoded = "%" HEXDIG HEXDIG\n'),
  54024. (s += 'unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n'),
  54025. (s += 'sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n'),
  54026. (s += ' / "*" / "+" / "," / ";" / "="\n'),
  54027. (s += '\n'),
  54028. (s += 'ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n'),
  54029. (s += ' / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n'),
  54030. (s += ' / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n'),
  54031. (s += ' / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n'),
  54032. (s += ' / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n'),
  54033. (s += ' / %xD0000-DFFFD / %xE1000-EFFFD\n'),
  54034. (s += '\n'),
  54035. (s += 'iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'),
  54036. '; OpenAPI Server URL templating ABNF syntax\nserver-url-template = 1*( literals / server-variable )\nserver-variable = "{" server-variable-name "}"\nserver-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\nliterals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded)\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "\'", "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; Characters definitions (from RFC 6570)\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n ; case-insensitive\n\npct-encoded = "%" HEXDIG HEXDIG\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\n\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'
  54037. );
  54038. });
  54039. })(),
  54040. openapi_server_url_templating_es_parse = (s) => {
  54041. const o = new IS();
  54042. (o.ast = new PS()),
  54043. (o.ast.callbacks['server-url-template'] = server_url_template),
  54044. (o.ast.callbacks['server-variable'] = callbacks_server_variable),
  54045. (o.ast.callbacks['server-variable-name'] = server_variable_name),
  54046. (o.ast.callbacks.literals = callbacks_literals);
  54047. return { result: o.parse(NS, 'server-url-template', s), ast: o.ast };
  54048. },
  54049. openapi_server_url_templating_es_test = (s, { strict: o = !1 } = {}) => {
  54050. try {
  54051. const i = openapi_server_url_templating_es_parse(s);
  54052. if (!i.result.success) return !1;
  54053. const u = [];
  54054. i.ast.translate(u);
  54055. const _ = u.some(([s]) => 'server-variable' === s);
  54056. if (!o && !_)
  54057. try {
  54058. return new URL(s, 'https://vladimirgorej.com'), !0;
  54059. } catch {
  54060. return !1;
  54061. }
  54062. return !o || _;
  54063. } catch {
  54064. return !1;
  54065. }
  54066. },
  54067. encodeServerVariable = (s) =>
  54068. ((s) => {
  54069. try {
  54070. return 'string' == typeof s && decodeURIComponent(s) !== s;
  54071. } catch {
  54072. return !1;
  54073. }
  54074. })(s)
  54075. ? s
  54076. : encodeURIComponent(s).replace(/%5B/g, '[').replace(/%5D/g, ']'),
  54077. RS = ['literals', 'server-variable-name'],
  54078. es_substitute = (s, o, i = {}) => {
  54079. const u = { ...{ encoder: encodeServerVariable }, ...i },
  54080. _ = openapi_server_url_templating_es_parse(s);
  54081. if (!_.result.success) return s;
  54082. const w = [];
  54083. _.ast.translate(w);
  54084. const x = w
  54085. .filter(([s]) => RS.includes(s))
  54086. .map(([s, i]) =>
  54087. 'server-variable-name' === s
  54088. ? Object.hasOwn(o, i)
  54089. ? u.encoder(o[i], i)
  54090. : `{${i}}`
  54091. : i
  54092. );
  54093. return x.join('');
  54094. };
  54095. const callbacks_slash = (s, o, i, u, _) => (
  54096. s === TS.SEM_PRE ? _.push(['slash', MS.charsToString(o, i, u)]) : TS.SEM_POST, TS.SEM_OK
  54097. ),
  54098. path_template = (s, o, i, u, _) => {
  54099. if (s === TS.SEM_PRE) {
  54100. if (!1 === Array.isArray(_)) throw new Error("parser's user data must be an array");
  54101. _.push(['path-template', MS.charsToString(o, i, u)]);
  54102. }
  54103. return TS.SEM_OK;
  54104. },
  54105. callbacks_path = (s, o, i, u, _) => (
  54106. s === TS.SEM_PRE ? _.push(['path', MS.charsToString(o, i, u)]) : TS.SEM_POST, TS.SEM_OK
  54107. ),
  54108. path_literal = (s, o, i, u, _) => (
  54109. s === TS.SEM_PRE ? _.push(['path-literal', MS.charsToString(o, i, u)]) : TS.SEM_POST,
  54110. TS.SEM_OK
  54111. ),
  54112. callbacks_query = (s, o, i, u, _) => (
  54113. s === TS.SEM_PRE ? _.push(['query', MS.charsToString(o, i, u)]) : TS.SEM_POST, TS.SEM_OK
  54114. ),
  54115. query_marker = (s, o, i, u, _) => (
  54116. s === TS.SEM_PRE ? _.push(['query-marker', MS.charsToString(o, i, u)]) : TS.SEM_POST,
  54117. TS.SEM_OK
  54118. ),
  54119. callbacks_fragment = (s, o, i, u, _) => (
  54120. s === TS.SEM_PRE ? _.push(['fragment', MS.charsToString(o, i, u)]) : TS.SEM_POST,
  54121. TS.SEM_OK
  54122. ),
  54123. fragment_marker = (s, o, i, u, _) => (
  54124. s === TS.SEM_PRE ? _.push(['fragment-marker', MS.charsToString(o, i, u)]) : TS.SEM_POST,
  54125. TS.SEM_OK
  54126. ),
  54127. template_expression = (s, o, i, u, _) => (
  54128. s === TS.SEM_PRE
  54129. ? _.push(['template-expression', MS.charsToString(o, i, u)])
  54130. : TS.SEM_POST,
  54131. TS.SEM_OK
  54132. ),
  54133. template_expression_param_name = (s, o, i, u, _) => (
  54134. s === TS.SEM_PRE
  54135. ? _.push(['template-expression-param-name', MS.charsToString(o, i, u)])
  54136. : TS.SEM_POST,
  54137. TS.SEM_OK
  54138. ),
  54139. DS = new (function path_templating_grammar() {
  54140. (this.grammarObject = 'grammarObject'),
  54141. (this.rules = []),
  54142. (this.rules[0] = {
  54143. name: 'path-template',
  54144. lower: 'path-template',
  54145. index: 0,
  54146. isBkr: !1
  54147. }),
  54148. (this.rules[1] = { name: 'path', lower: 'path', index: 1, isBkr: !1 }),
  54149. (this.rules[2] = {
  54150. name: 'path-segment',
  54151. lower: 'path-segment',
  54152. index: 2,
  54153. isBkr: !1
  54154. }),
  54155. (this.rules[3] = { name: 'query', lower: 'query', index: 3, isBkr: !1 }),
  54156. (this.rules[4] = {
  54157. name: 'query-literal',
  54158. lower: 'query-literal',
  54159. index: 4,
  54160. isBkr: !1
  54161. }),
  54162. (this.rules[5] = {
  54163. name: 'query-marker',
  54164. lower: 'query-marker',
  54165. index: 5,
  54166. isBkr: !1
  54167. }),
  54168. (this.rules[6] = { name: 'fragment', lower: 'fragment', index: 6, isBkr: !1 }),
  54169. (this.rules[7] = {
  54170. name: 'fragment-literal',
  54171. lower: 'fragment-literal',
  54172. index: 7,
  54173. isBkr: !1
  54174. }),
  54175. (this.rules[8] = {
  54176. name: 'fragment-marker',
  54177. lower: 'fragment-marker',
  54178. index: 8,
  54179. isBkr: !1
  54180. }),
  54181. (this.rules[9] = { name: 'slash', lower: 'slash', index: 9, isBkr: !1 }),
  54182. (this.rules[10] = {
  54183. name: 'path-literal',
  54184. lower: 'path-literal',
  54185. index: 10,
  54186. isBkr: !1
  54187. }),
  54188. (this.rules[11] = {
  54189. name: 'template-expression',
  54190. lower: 'template-expression',
  54191. index: 11,
  54192. isBkr: !1
  54193. }),
  54194. (this.rules[12] = {
  54195. name: 'template-expression-param-name',
  54196. lower: 'template-expression-param-name',
  54197. index: 12,
  54198. isBkr: !1
  54199. }),
  54200. (this.rules[13] = { name: 'unreserved', lower: 'unreserved', index: 13, isBkr: !1 }),
  54201. (this.rules[14] = {
  54202. name: 'pct-encoded',
  54203. lower: 'pct-encoded',
  54204. index: 14,
  54205. isBkr: !1
  54206. }),
  54207. (this.rules[15] = { name: 'sub-delims', lower: 'sub-delims', index: 15, isBkr: !1 }),
  54208. (this.rules[16] = { name: 'ALPHA', lower: 'alpha', index: 16, isBkr: !1 }),
  54209. (this.rules[17] = { name: 'DIGIT', lower: 'digit', index: 17, isBkr: !1 }),
  54210. (this.rules[18] = { name: 'HEXDIG', lower: 'hexdig', index: 18, isBkr: !1 }),
  54211. (this.udts = []),
  54212. (this.rules[0].opcodes = []),
  54213. (this.rules[0].opcodes[0] = { type: 2, children: [1, 2, 6] }),
  54214. (this.rules[0].opcodes[1] = { type: 4, index: 1 }),
  54215. (this.rules[0].opcodes[2] = { type: 3, min: 0, max: 1 }),
  54216. (this.rules[0].opcodes[3] = { type: 2, children: [4, 5] }),
  54217. (this.rules[0].opcodes[4] = { type: 4, index: 5 }),
  54218. (this.rules[0].opcodes[5] = { type: 4, index: 3 }),
  54219. (this.rules[0].opcodes[6] = { type: 3, min: 0, max: 1 }),
  54220. (this.rules[0].opcodes[7] = { type: 2, children: [8, 9] }),
  54221. (this.rules[0].opcodes[8] = { type: 4, index: 8 }),
  54222. (this.rules[0].opcodes[9] = { type: 4, index: 6 }),
  54223. (this.rules[1].opcodes = []),
  54224. (this.rules[1].opcodes[0] = { type: 2, children: [1, 2, 6] }),
  54225. (this.rules[1].opcodes[1] = { type: 4, index: 9 }),
  54226. (this.rules[1].opcodes[2] = { type: 3, min: 0, max: 1 / 0 }),
  54227. (this.rules[1].opcodes[3] = { type: 2, children: [4, 5] }),
  54228. (this.rules[1].opcodes[4] = { type: 4, index: 2 }),
  54229. (this.rules[1].opcodes[5] = { type: 4, index: 9 }),
  54230. (this.rules[1].opcodes[6] = { type: 3, min: 0, max: 1 }),
  54231. (this.rules[1].opcodes[7] = { type: 4, index: 2 }),
  54232. (this.rules[2].opcodes = []),
  54233. (this.rules[2].opcodes[0] = { type: 3, min: 1, max: 1 / 0 }),
  54234. (this.rules[2].opcodes[1] = { type: 1, children: [2, 3] }),
  54235. (this.rules[2].opcodes[2] = { type: 4, index: 10 }),
  54236. (this.rules[2].opcodes[3] = { type: 4, index: 11 }),
  54237. (this.rules[3].opcodes = []),
  54238. (this.rules[3].opcodes[0] = { type: 3, min: 0, max: 1 / 0 }),
  54239. (this.rules[3].opcodes[1] = { type: 4, index: 4 }),
  54240. (this.rules[4].opcodes = []),
  54241. (this.rules[4].opcodes[0] = { type: 3, min: 1, max: 1 / 0 }),
  54242. (this.rules[4].opcodes[1] = { type: 1, children: [2, 3, 4, 5, 6, 7, 8, 9, 10] }),
  54243. (this.rules[4].opcodes[2] = { type: 4, index: 13 }),
  54244. (this.rules[4].opcodes[3] = { type: 4, index: 14 }),
  54245. (this.rules[4].opcodes[4] = { type: 4, index: 15 }),
  54246. (this.rules[4].opcodes[5] = { type: 7, string: [58] }),
  54247. (this.rules[4].opcodes[6] = { type: 7, string: [64] }),
  54248. (this.rules[4].opcodes[7] = { type: 7, string: [47] }),
  54249. (this.rules[4].opcodes[8] = { type: 7, string: [63] }),
  54250. (this.rules[4].opcodes[9] = { type: 7, string: [38] }),
  54251. (this.rules[4].opcodes[10] = { type: 7, string: [61] }),
  54252. (this.rules[5].opcodes = []),
  54253. (this.rules[5].opcodes[0] = { type: 7, string: [63] }),
  54254. (this.rules[6].opcodes = []),
  54255. (this.rules[6].opcodes[0] = { type: 3, min: 0, max: 1 / 0 }),
  54256. (this.rules[6].opcodes[1] = { type: 4, index: 7 }),
  54257. (this.rules[7].opcodes = []),
  54258. (this.rules[7].opcodes[0] = { type: 3, min: 1, max: 1 / 0 }),
  54259. (this.rules[7].opcodes[1] = { type: 1, children: [2, 3, 4, 5, 6, 7, 8] }),
  54260. (this.rules[7].opcodes[2] = { type: 4, index: 13 }),
  54261. (this.rules[7].opcodes[3] = { type: 4, index: 14 }),
  54262. (this.rules[7].opcodes[4] = { type: 4, index: 15 }),
  54263. (this.rules[7].opcodes[5] = { type: 7, string: [58] }),
  54264. (this.rules[7].opcodes[6] = { type: 7, string: [64] }),
  54265. (this.rules[7].opcodes[7] = { type: 7, string: [47] }),
  54266. (this.rules[7].opcodes[8] = { type: 7, string: [63] }),
  54267. (this.rules[8].opcodes = []),
  54268. (this.rules[8].opcodes[0] = { type: 7, string: [35] }),
  54269. (this.rules[9].opcodes = []),
  54270. (this.rules[9].opcodes[0] = { type: 7, string: [47] }),
  54271. (this.rules[10].opcodes = []),
  54272. (this.rules[10].opcodes[0] = { type: 3, min: 1, max: 1 / 0 }),
  54273. (this.rules[10].opcodes[1] = { type: 1, children: [2, 3, 4, 5, 6] }),
  54274. (this.rules[10].opcodes[2] = { type: 4, index: 13 }),
  54275. (this.rules[10].opcodes[3] = { type: 4, index: 14 }),
  54276. (this.rules[10].opcodes[4] = { type: 4, index: 15 }),
  54277. (this.rules[10].opcodes[5] = { type: 7, string: [58] }),
  54278. (this.rules[10].opcodes[6] = { type: 7, string: [64] }),
  54279. (this.rules[11].opcodes = []),
  54280. (this.rules[11].opcodes[0] = { type: 2, children: [1, 2, 3] }),
  54281. (this.rules[11].opcodes[1] = { type: 7, string: [123] }),
  54282. (this.rules[11].opcodes[2] = { type: 4, index: 12 }),
  54283. (this.rules[11].opcodes[3] = { type: 7, string: [125] }),
  54284. (this.rules[12].opcodes = []),
  54285. (this.rules[12].opcodes[0] = { type: 3, min: 1, max: 1 / 0 }),
  54286. (this.rules[12].opcodes[1] = { type: 1, children: [2, 3, 4, 5, 6] }),
  54287. (this.rules[12].opcodes[2] = { type: 4, index: 13 }),
  54288. (this.rules[12].opcodes[3] = { type: 4, index: 14 }),
  54289. (this.rules[12].opcodes[4] = { type: 4, index: 15 }),
  54290. (this.rules[12].opcodes[5] = { type: 7, string: [58] }),
  54291. (this.rules[12].opcodes[6] = { type: 7, string: [64] }),
  54292. (this.rules[13].opcodes = []),
  54293. (this.rules[13].opcodes[0] = { type: 1, children: [1, 2, 3, 4, 5, 6] }),
  54294. (this.rules[13].opcodes[1] = { type: 4, index: 16 }),
  54295. (this.rules[13].opcodes[2] = { type: 4, index: 17 }),
  54296. (this.rules[13].opcodes[3] = { type: 7, string: [45] }),
  54297. (this.rules[13].opcodes[4] = { type: 7, string: [46] }),
  54298. (this.rules[13].opcodes[5] = { type: 7, string: [95] }),
  54299. (this.rules[13].opcodes[6] = { type: 7, string: [126] }),
  54300. (this.rules[14].opcodes = []),
  54301. (this.rules[14].opcodes[0] = { type: 2, children: [1, 2, 3] }),
  54302. (this.rules[14].opcodes[1] = { type: 7, string: [37] }),
  54303. (this.rules[14].opcodes[2] = { type: 4, index: 18 }),
  54304. (this.rules[14].opcodes[3] = { type: 4, index: 18 }),
  54305. (this.rules[15].opcodes = []),
  54306. (this.rules[15].opcodes[0] = {
  54307. type: 1,
  54308. children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  54309. }),
  54310. (this.rules[15].opcodes[1] = { type: 7, string: [33] }),
  54311. (this.rules[15].opcodes[2] = { type: 7, string: [36] }),
  54312. (this.rules[15].opcodes[3] = { type: 7, string: [38] }),
  54313. (this.rules[15].opcodes[4] = { type: 7, string: [39] }),
  54314. (this.rules[15].opcodes[5] = { type: 7, string: [40] }),
  54315. (this.rules[15].opcodes[6] = { type: 7, string: [41] }),
  54316. (this.rules[15].opcodes[7] = { type: 7, string: [42] }),
  54317. (this.rules[15].opcodes[8] = { type: 7, string: [43] }),
  54318. (this.rules[15].opcodes[9] = { type: 7, string: [44] }),
  54319. (this.rules[15].opcodes[10] = { type: 7, string: [59] }),
  54320. (this.rules[15].opcodes[11] = { type: 7, string: [61] }),
  54321. (this.rules[16].opcodes = []),
  54322. (this.rules[16].opcodes[0] = { type: 1, children: [1, 2] }),
  54323. (this.rules[16].opcodes[1] = { type: 5, min: 65, max: 90 }),
  54324. (this.rules[16].opcodes[2] = { type: 5, min: 97, max: 122 }),
  54325. (this.rules[17].opcodes = []),
  54326. (this.rules[17].opcodes[0] = { type: 5, min: 48, max: 57 }),
  54327. (this.rules[18].opcodes = []),
  54328. (this.rules[18].opcodes[0] = { type: 1, children: [1, 2, 3, 4, 5, 6, 7] }),
  54329. (this.rules[18].opcodes[1] = { type: 4, index: 17 }),
  54330. (this.rules[18].opcodes[2] = { type: 7, string: [97] }),
  54331. (this.rules[18].opcodes[3] = { type: 7, string: [98] }),
  54332. (this.rules[18].opcodes[4] = { type: 7, string: [99] }),
  54333. (this.rules[18].opcodes[5] = { type: 7, string: [100] }),
  54334. (this.rules[18].opcodes[6] = { type: 7, string: [101] }),
  54335. (this.rules[18].opcodes[7] = { type: 7, string: [102] }),
  54336. (this.toString = function toString() {
  54337. let s = '';
  54338. return (
  54339. (s += '; OpenAPI Path Templating ABNF syntax\n'),
  54340. (s +=
  54341. 'path-template = path [ query-marker query ] [ fragment-marker fragment ]\n'),
  54342. (s +=
  54343. 'path = slash *( path-segment slash ) [ path-segment ]\n'),
  54344. (s +=
  54345. 'path-segment = 1*( path-literal / template-expression )\n'),
  54346. (s += 'query = *( query-literal )\n'),
  54347. (s +=
  54348. 'query-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\n'),
  54349. (s += 'query-marker = "?"\n'),
  54350. (s += 'fragment = *( fragment-literal )\n'),
  54351. (s +=
  54352. 'fragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\n'),
  54353. (s += 'fragment-marker = "#"\n'),
  54354. (s += 'slash = "/"\n'),
  54355. (s +=
  54356. 'path-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n'),
  54357. (s +=
  54358. 'template-expression = "{" template-expression-param-name "}"\n'),
  54359. (s +=
  54360. 'template-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n'),
  54361. (s += '\n'),
  54362. (s += '; Characters definitions (from RFC 3986)\n'),
  54363. (s += 'unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n'),
  54364. (s += 'pct-encoded = "%" HEXDIG HEXDIG\n'),
  54365. (s += 'sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n'),
  54366. (s += ' / "*" / "+" / "," / ";" / "="\n'),
  54367. (s += 'ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n'),
  54368. (s += 'DIGIT = %x30-39 ; 0-9\n'),
  54369. (s += 'HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'),
  54370. '; OpenAPI Path Templating ABNF syntax\npath-template = path [ query-marker query ] [ fragment-marker fragment ]\npath = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nquery = *( query-literal )\nquery-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\nquery-marker = "?"\nfragment = *( fragment-literal )\nfragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\nfragment-marker = "#"\nslash = "/"\npath-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n\n; Characters definitions (from RFC 3986)\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\npct-encoded = "%" HEXDIG HEXDIG\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'
  54371. );
  54372. });
  54373. })(),
  54374. openapi_path_templating_es_parse = (s) => {
  54375. const o = new IS();
  54376. (o.ast = new PS()),
  54377. (o.ast.callbacks['path-template'] = path_template),
  54378. (o.ast.callbacks.path = callbacks_path),
  54379. (o.ast.callbacks.query = callbacks_query),
  54380. (o.ast.callbacks['query-marker'] = query_marker),
  54381. (o.ast.callbacks.fragment = callbacks_fragment),
  54382. (o.ast.callbacks['fragment-marker'] = fragment_marker),
  54383. (o.ast.callbacks.slash = callbacks_slash),
  54384. (o.ast.callbacks['path-literal'] = path_literal),
  54385. (o.ast.callbacks['template-expression'] = template_expression),
  54386. (o.ast.callbacks['template-expression-param-name'] = template_expression_param_name);
  54387. return { result: o.parse(DS, 'path-template', s), ast: o.ast };
  54388. },
  54389. encodePathComponent = (s) =>
  54390. ((s) => {
  54391. try {
  54392. return 'string' == typeof s && decodeURIComponent(s) !== s;
  54393. } catch {
  54394. return !1;
  54395. }
  54396. })(s)
  54397. ? s
  54398. : encodeURIComponent(s).replace(/%5B/g, '[').replace(/%5D/g, ']'),
  54399. LS = [
  54400. 'slash',
  54401. 'path-literal',
  54402. 'query-marker',
  54403. 'query-literal',
  54404. 'template-expression-param-name'
  54405. ],
  54406. openapi_path_templating_es_resolve = (s, o, i = {}) => {
  54407. const u = { ...{ encoder: encodePathComponent }, ...i },
  54408. _ = openapi_path_templating_es_parse(s);
  54409. if (!_.result.success) return s;
  54410. const w = [];
  54411. _.ast.translate(w);
  54412. const x = w
  54413. .filter(([s]) => LS.includes(s))
  54414. .map(([s, i]) =>
  54415. 'template-expression-param-name' === s
  54416. ? Object.hasOwn(o, i)
  54417. ? u.encoder(o[i], i)
  54418. : `{${i}}`
  54419. : i
  54420. );
  54421. return x.join('');
  54422. },
  54423. BS = {
  54424. body: function bodyBuilder({ req: s, value: o }) {
  54425. void 0 !== o && (s.body = o);
  54426. },
  54427. header: function headerBuilder({ req: s, parameter: o, value: i }) {
  54428. (s.headers = s.headers || {}), void 0 !== i && (s.headers[o.name] = i);
  54429. },
  54430. query: function queryBuilder({ req: s, value: o, parameter: i }) {
  54431. (s.query = s.query || {}), !1 === o && 'boolean' === i.type && (o = 'false');
  54432. 0 === o && ['number', 'integer'].indexOf(i.type) > -1 && (o = '0');
  54433. if (o) s.query[i.name] = { collectionFormat: i.collectionFormat, value: o };
  54434. else if (i.allowEmptyValue && void 0 !== o) {
  54435. const o = i.name;
  54436. (s.query[o] = s.query[o] || {}), (s.query[o].allowEmptyValue = !0);
  54437. }
  54438. },
  54439. path: function pathBuilder({ req: s, value: o, parameter: i, baseURL: u }) {
  54440. if (void 0 !== o) {
  54441. const _ = s.url.replace(u, ''),
  54442. w = openapi_path_templating_es_resolve(_, { [i.name]: o });
  54443. s.url = u + w;
  54444. }
  54445. },
  54446. formData: function formDataBuilder({ req: s, value: o, parameter: i }) {
  54447. !1 === o && 'boolean' === i.type && (o = 'false');
  54448. 0 === o && ['number', 'integer'].indexOf(i.type) > -1 && (o = '0');
  54449. if (o)
  54450. (s.form = s.form || {}),
  54451. (s.form[i.name] = { collectionFormat: i.collectionFormat, value: o });
  54452. else if (i.allowEmptyValue && void 0 !== o) {
  54453. s.form = s.form || {};
  54454. const o = i.name;
  54455. (s.form[o] = s.form[o] || {}), (s.form[o].allowEmptyValue = !0);
  54456. }
  54457. }
  54458. };
  54459. function serialize(s, o) {
  54460. return o.includes('application/json')
  54461. ? 'string' == typeof s
  54462. ? s
  54463. : (Array.isArray(s) &&
  54464. (s = s.map((s) => {
  54465. try {
  54466. return JSON.parse(s);
  54467. } catch (o) {
  54468. return s;
  54469. }
  54470. })),
  54471. JSON.stringify(s))
  54472. : String(s);
  54473. }
  54474. function parameter_builders_path({ req: s, value: o, parameter: i, baseURL: u }) {
  54475. const { name: _, style: w, explode: x, content: C } = i;
  54476. if (void 0 === o) return;
  54477. const j = s.url.replace(u, '');
  54478. let L;
  54479. if (C) {
  54480. const s = Object.keys(C)[0];
  54481. L = openapi_path_templating_es_resolve(
  54482. j,
  54483. { [_]: o },
  54484. { encoder: (o) => encodeCharacters(serialize(o, s)) }
  54485. );
  54486. } else
  54487. L = openapi_path_templating_es_resolve(
  54488. j,
  54489. { [_]: o },
  54490. {
  54491. encoder: (s) =>
  54492. stylize({
  54493. key: i.name,
  54494. value: s,
  54495. style: w || 'simple',
  54496. explode: x || !1,
  54497. escape: 'reserved'
  54498. })
  54499. }
  54500. );
  54501. s.url = u + L;
  54502. }
  54503. function parameter_builders_query({ req: s, value: o, parameter: i }) {
  54504. if (((s.query = s.query || {}), void 0 !== o && i.content)) {
  54505. const u = serialize(o, Object.keys(i.content)[0]);
  54506. if (u) s.query[i.name] = u;
  54507. else if (i.allowEmptyValue) {
  54508. const o = i.name;
  54509. (s.query[o] = s.query[o] || {}), (s.query[o].allowEmptyValue = !0);
  54510. }
  54511. } else if ((!1 === o && (o = 'false'), 0 === o && (o = '0'), o)) {
  54512. const { style: u, explode: _, allowReserved: w } = i;
  54513. s.query[i.name] = {
  54514. value: o,
  54515. serializationOption: { style: u, explode: _, allowReserved: w }
  54516. };
  54517. } else if (i.allowEmptyValue && void 0 !== o) {
  54518. const o = i.name;
  54519. (s.query[o] = s.query[o] || {}), (s.query[o].allowEmptyValue = !0);
  54520. }
  54521. }
  54522. const FS = ['accept', 'authorization', 'content-type'];
  54523. function parameter_builders_header({ req: s, parameter: o, value: i }) {
  54524. if (((s.headers = s.headers || {}), !(FS.indexOf(o.name.toLowerCase()) > -1)))
  54525. if (void 0 !== i && o.content) {
  54526. const u = Object.keys(o.content)[0];
  54527. s.headers[o.name] = serialize(i, u);
  54528. } else
  54529. void 0 === i ||
  54530. (Array.isArray(i) && 0 === i.length) ||
  54531. (s.headers[o.name] = stylize({
  54532. key: o.name,
  54533. value: i,
  54534. style: o.style || 'simple',
  54535. explode: void 0 !== o.explode && o.explode,
  54536. escape: !1
  54537. }));
  54538. }
  54539. function parameter_builders_cookie({ req: s, parameter: o, value: i }) {
  54540. s.headers = s.headers || {};
  54541. const u = typeof i;
  54542. if (void 0 !== i && o.content) {
  54543. const u = Object.keys(o.content)[0];
  54544. s.headers.Cookie = `${o.name}=${serialize(i, u)}`;
  54545. } else if (void 0 !== i && (!Array.isArray(i) || 0 !== i.length)) {
  54546. const _ = 'object' === u && !Array.isArray(i) && o.explode ? '' : `${o.name}=`;
  54547. s.headers.Cookie =
  54548. _ +
  54549. stylize({
  54550. key: o.name,
  54551. value: i,
  54552. escape: !1,
  54553. style: o.style || 'form',
  54554. explode: void 0 !== o.explode && o.explode
  54555. });
  54556. }
  54557. }
  54558. const qS =
  54559. 'undefined' != typeof globalThis
  54560. ? globalThis
  54561. : 'undefined' != typeof self
  54562. ? self
  54563. : window,
  54564. { btoa: $S } = qS,
  54565. VS = $S;
  54566. function buildRequest(s, o) {
  54567. const {
  54568. operation: i,
  54569. requestBody: u,
  54570. securities: _,
  54571. spec: w,
  54572. attachContentTypeForEmptyPayload: x
  54573. } = s;
  54574. let { requestContentType: C } = s;
  54575. o = (function applySecurities({
  54576. request: s,
  54577. securities: o = {},
  54578. operation: i = {},
  54579. spec: u
  54580. }) {
  54581. var _;
  54582. const w = { ...s },
  54583. { authorized: x = {} } = o,
  54584. C = i.security || u.security || [],
  54585. j = x && !!Object.keys(x).length,
  54586. L =
  54587. (null == u || null === (_ = u.components) || void 0 === _
  54588. ? void 0
  54589. : _.securitySchemes) || {};
  54590. if (
  54591. ((w.headers = w.headers || {}),
  54592. (w.query = w.query || {}),
  54593. !Object.keys(o).length ||
  54594. !j ||
  54595. !C ||
  54596. (Array.isArray(i.security) && !i.security.length))
  54597. )
  54598. return s;
  54599. return (
  54600. C.forEach((s) => {
  54601. Object.keys(s).forEach((s) => {
  54602. const o = x[s],
  54603. i = L[s];
  54604. if (!o) return;
  54605. const u = o.value || o,
  54606. { type: _ } = i;
  54607. if (o)
  54608. if ('apiKey' === _)
  54609. 'query' === i.in && (w.query[i.name] = u),
  54610. 'header' === i.in && (w.headers[i.name] = u),
  54611. 'cookie' === i.in && (w.cookies[i.name] = u);
  54612. else if ('http' === _) {
  54613. if (/^basic$/i.test(i.scheme)) {
  54614. const s = u.username || '',
  54615. o = u.password || '',
  54616. i = VS(`${s}:${o}`);
  54617. w.headers.Authorization = `Basic ${i}`;
  54618. }
  54619. /^bearer$/i.test(i.scheme) && (w.headers.Authorization = `Bearer ${u}`);
  54620. } else if ('oauth2' === _ || 'openIdConnect' === _) {
  54621. const s = o.token || {},
  54622. u = s[i['x-tokenName'] || 'access_token'];
  54623. let _ = s.token_type;
  54624. (_ && 'bearer' !== _.toLowerCase()) || (_ = 'Bearer'),
  54625. (w.headers.Authorization = `${_} ${u}`);
  54626. }
  54627. });
  54628. }),
  54629. w
  54630. );
  54631. })({ request: o, securities: _, operation: i, spec: w });
  54632. const j = i.requestBody || {},
  54633. L = Object.keys(j.content || {}),
  54634. B = C && L.indexOf(C) > -1;
  54635. if (u || x) {
  54636. if (C && B) o.headers['Content-Type'] = C;
  54637. else if (!C) {
  54638. const s = L[0];
  54639. s && ((o.headers['Content-Type'] = s), (C = s));
  54640. }
  54641. } else C && B && (o.headers['Content-Type'] = C);
  54642. if (!s.responseContentType && i.responses) {
  54643. const s = Object.entries(i.responses)
  54644. .filter(([s, o]) => {
  54645. const i = parseInt(s, 10);
  54646. return i >= 200 && i < 300 && ku(o.content);
  54647. })
  54648. .reduce((s, [, o]) => s.concat(Object.keys(o.content)), []);
  54649. s.length > 0 && (o.headers.accept = s.join(', '));
  54650. }
  54651. if (u)
  54652. if (C) {
  54653. if (L.indexOf(C) > -1)
  54654. if ('application/x-www-form-urlencoded' === C || 'multipart/form-data' === C)
  54655. if ('object' == typeof u) {
  54656. var $, V;
  54657. const s =
  54658. null !==
  54659. ($ = null === (V = j.content[C]) || void 0 === V ? void 0 : V.encoding) &&
  54660. void 0 !== $
  54661. ? $
  54662. : {};
  54663. (o.form = {}),
  54664. Object.keys(u).forEach((i) => {
  54665. let _;
  54666. try {
  54667. _ = JSON.parse(u[i]);
  54668. } catch {
  54669. _ = u[i];
  54670. }
  54671. o.form[i] = { value: _, encoding: s[i] || {} };
  54672. });
  54673. } else if ('string' == typeof u) {
  54674. var U, z;
  54675. const s =
  54676. null !==
  54677. (U = null === (z = j.content[C]) || void 0 === z ? void 0 : z.encoding) &&
  54678. void 0 !== U
  54679. ? U
  54680. : {};
  54681. try {
  54682. o.form = {};
  54683. const i = JSON.parse(u);
  54684. Object.entries(i).forEach(([i, u]) => {
  54685. o.form[i] = { value: u, encoding: s[i] || {} };
  54686. });
  54687. } catch {
  54688. o.form = u;
  54689. }
  54690. } else o.form = u;
  54691. else o.body = u;
  54692. } else o.body = u;
  54693. return o;
  54694. }
  54695. function build_request_buildRequest(s, o) {
  54696. const {
  54697. spec: i,
  54698. operation: u,
  54699. securities: _,
  54700. requestContentType: w,
  54701. responseContentType: x,
  54702. attachContentTypeForEmptyPayload: C
  54703. } = s;
  54704. if (
  54705. ((o = (function build_request_applySecurities({
  54706. request: s,
  54707. securities: o = {},
  54708. operation: i = {},
  54709. spec: u
  54710. }) {
  54711. const _ = { ...s },
  54712. { authorized: w = {}, specSecurity: x = [] } = o,
  54713. C = i.security || x,
  54714. j = w && !!Object.keys(w).length,
  54715. L = u.securityDefinitions;
  54716. if (
  54717. ((_.headers = _.headers || {}),
  54718. (_.query = _.query || {}),
  54719. !Object.keys(o).length ||
  54720. !j ||
  54721. !C ||
  54722. (Array.isArray(i.security) && !i.security.length))
  54723. )
  54724. return s;
  54725. return (
  54726. C.forEach((s) => {
  54727. Object.keys(s).forEach((s) => {
  54728. const o = w[s];
  54729. if (!o) return;
  54730. const { token: i } = o,
  54731. u = o.value || o,
  54732. x = L[s],
  54733. { type: C } = x,
  54734. j = x['x-tokenName'] || 'access_token',
  54735. B = i && i[j];
  54736. let $ = i && i.token_type;
  54737. if (o)
  54738. if ('apiKey' === C) {
  54739. const s = 'query' === x.in ? 'query' : 'headers';
  54740. (_[s] = _[s] || {}), (_[s][x.name] = u);
  54741. } else if ('basic' === C)
  54742. if (u.header) _.headers.authorization = u.header;
  54743. else {
  54744. const s = u.username || '',
  54745. o = u.password || '';
  54746. (u.base64 = VS(`${s}:${o}`)),
  54747. (_.headers.authorization = `Basic ${u.base64}`);
  54748. }
  54749. else
  54750. 'oauth2' === C &&
  54751. B &&
  54752. (($ = $ && 'bearer' !== $.toLowerCase() ? $ : 'Bearer'),
  54753. (_.headers.authorization = `${$} ${B}`));
  54754. });
  54755. }),
  54756. _
  54757. );
  54758. })({ request: o, securities: _, operation: u, spec: i })),
  54759. o.body || o.form || C)
  54760. )
  54761. w
  54762. ? (o.headers['Content-Type'] = w)
  54763. : Array.isArray(u.consumes)
  54764. ? ([o.headers['Content-Type']] = u.consumes)
  54765. : Array.isArray(i.consumes)
  54766. ? ([o.headers['Content-Type']] = i.consumes)
  54767. : u.parameters && u.parameters.filter((s) => 'file' === s.type).length
  54768. ? (o.headers['Content-Type'] = 'multipart/form-data')
  54769. : u.parameters &&
  54770. u.parameters.filter((s) => 'formData' === s.in).length &&
  54771. (o.headers['Content-Type'] = 'application/x-www-form-urlencoded');
  54772. else if (w) {
  54773. const s = u.parameters && u.parameters.filter((s) => 'body' === s.in).length > 0,
  54774. i = u.parameters && u.parameters.filter((s) => 'formData' === s.in).length > 0;
  54775. (s || i) && (o.headers['Content-Type'] = w);
  54776. }
  54777. return (
  54778. !x &&
  54779. Array.isArray(u.produces) &&
  54780. u.produces.length > 0 &&
  54781. (o.headers.accept = u.produces.join(', ')),
  54782. o
  54783. );
  54784. }
  54785. function idFromPathMethodLegacy(s, o) {
  54786. return `${o.toLowerCase()}-${s}`;
  54787. }
  54788. const arrayOrEmpty = (s) => (Array.isArray(s) ? s : []),
  54789. parseURIReference = (s) => {
  54790. try {
  54791. return new URL(s);
  54792. } catch {
  54793. const o = new URL(s, Nc),
  54794. i = String(s).startsWith('/') ? o.pathname : o.pathname.substring(1);
  54795. return {
  54796. hash: o.hash,
  54797. host: '',
  54798. hostname: '',
  54799. href: '',
  54800. origin: '',
  54801. password: '',
  54802. pathname: i,
  54803. port: '',
  54804. protocol: '',
  54805. search: o.search,
  54806. searchParams: o.searchParams
  54807. };
  54808. }
  54809. };
  54810. class OperationNotFoundError extends Jo {}
  54811. const US = { buildRequest: execute_buildRequest };
  54812. function execute_execute({
  54813. http: s,
  54814. fetch: o,
  54815. spec: i,
  54816. operationId: u,
  54817. pathName: _,
  54818. method: w,
  54819. parameters: x,
  54820. securities: C,
  54821. ...j
  54822. }) {
  54823. const L = s || o || http_http;
  54824. _ && w && !u && (u = idFromPathMethodLegacy(_, w));
  54825. const B = US.buildRequest({
  54826. spec: i,
  54827. operationId: u,
  54828. parameters: x,
  54829. securities: C,
  54830. http: L,
  54831. ...j
  54832. });
  54833. return (
  54834. B.body && (ku(B.body) || Array.isArray(B.body)) && (B.body = JSON.stringify(B.body)),
  54835. L(B)
  54836. );
  54837. }
  54838. function execute_buildRequest(s) {
  54839. var o;
  54840. const {
  54841. spec: i,
  54842. operationId: u,
  54843. responseContentType: _,
  54844. scheme: w,
  54845. requestInterceptor: x,
  54846. responseInterceptor: C,
  54847. contextUrl: j,
  54848. userFetch: L,
  54849. server: B,
  54850. serverVariables: $,
  54851. http: V,
  54852. signal: U,
  54853. serverVariableEncoder: z
  54854. } = s;
  54855. let { parameters: Y, parameterBuilders: Z, baseURL: ee } = s;
  54856. const ie = isOpenAPI3(i);
  54857. Z || (Z = ie ? fe : BS);
  54858. let ae = {
  54859. url: '',
  54860. credentials: V && V.withCredentials ? 'include' : 'same-origin',
  54861. headers: {},
  54862. cookies: {}
  54863. };
  54864. U && (ae.signal = U),
  54865. x && (ae.requestInterceptor = x),
  54866. C && (ae.responseInterceptor = C),
  54867. L && (ae.userFetch = L);
  54868. const le = (function getOperationRaw(s, o) {
  54869. return s && s.paths
  54870. ? (function findOperation(s, o) {
  54871. return (
  54872. (function eachOperation(s, o, i) {
  54873. if (!s || 'object' != typeof s || !s.paths || 'object' != typeof s.paths)
  54874. return null;
  54875. const { paths: u } = s;
  54876. for (const _ in u)
  54877. for (const w in u[_]) {
  54878. if ('PARAMETERS' === w.toUpperCase()) continue;
  54879. const x = u[_][w];
  54880. if (!x || 'object' != typeof x) continue;
  54881. const C = { spec: s, pathName: _, method: w.toUpperCase(), operation: x },
  54882. j = o(C);
  54883. if (i && j) return C;
  54884. }
  54885. })(s, o, !0) || null
  54886. );
  54887. })(s, ({ pathName: s, method: i, operation: u }) => {
  54888. if (!u || 'object' != typeof u) return !1;
  54889. const _ = u.operationId;
  54890. return [opId(u, s, i), idFromPathMethodLegacy(s, i), _].some((s) => s && s === o);
  54891. })
  54892. : null;
  54893. })(i, u);
  54894. if (!le) throw new OperationNotFoundError(`Operation ${u} not found`);
  54895. const { operation: ce = {}, method: pe, pathName: de } = le;
  54896. if (
  54897. ((ee =
  54898. null !== (o = ee) && void 0 !== o
  54899. ? o
  54900. : (function baseUrl(s) {
  54901. const o = isOpenAPI3(s.spec);
  54902. return o
  54903. ? (function oas3BaseUrl({
  54904. spec: s,
  54905. pathName: o,
  54906. method: i,
  54907. server: u,
  54908. contextUrl: _,
  54909. serverVariables: w = {},
  54910. serverVariableEncoder: x
  54911. }) {
  54912. var C, j;
  54913. let L,
  54914. B = [],
  54915. $ = '';
  54916. const V =
  54917. null == s ||
  54918. null === (C = s.paths) ||
  54919. void 0 === C ||
  54920. null === (C = C[o]) ||
  54921. void 0 === C ||
  54922. null === (C = C[(i || '').toLowerCase()]) ||
  54923. void 0 === C
  54924. ? void 0
  54925. : C.servers,
  54926. U =
  54927. null == s ||
  54928. null === (j = s.paths) ||
  54929. void 0 === j ||
  54930. null === (j = j[o]) ||
  54931. void 0 === j
  54932. ? void 0
  54933. : j.servers,
  54934. z = null == s ? void 0 : s.servers;
  54935. (B = isNonEmptyServerList(V)
  54936. ? V
  54937. : isNonEmptyServerList(U)
  54938. ? U
  54939. : isNonEmptyServerList(z)
  54940. ? z
  54941. : [Rc]),
  54942. u && ((L = B.find((s) => s.url === u)), L && ($ = u));
  54943. $ || (([L] = B), ($ = L.url));
  54944. if (openapi_server_url_templating_es_test($, { strict: !0 })) {
  54945. const s = Object.entries({ ...L.variables }).reduce(
  54946. (s, [o, i]) => ((s[o] = i.default), s),
  54947. {}
  54948. );
  54949. $ = es_substitute(
  54950. $,
  54951. { ...s, ...w },
  54952. { encoder: 'function' == typeof x ? x : Ip }
  54953. );
  54954. }
  54955. return (function buildOas3UrlWithContext(s = '', o = '') {
  54956. const i = parseURIReference(s && o ? resolve(o, s) : s),
  54957. u = parseURIReference(o),
  54958. _ = stripNonAlpha(i.protocol) || stripNonAlpha(u.protocol),
  54959. w = i.host || u.host,
  54960. x = i.pathname;
  54961. let C;
  54962. C = _ && w ? `${_}://${w + x}` : x;
  54963. return '/' === C[C.length - 1] ? C.slice(0, -1) : C;
  54964. })($, _);
  54965. })(s)
  54966. : (function swagger2BaseUrl({ spec: s, scheme: o, contextUrl: i = '' }) {
  54967. const u = parseURIReference(i),
  54968. _ = Array.isArray(s.schemes) ? s.schemes[0] : null,
  54969. w = o || _ || stripNonAlpha(u.protocol) || 'http',
  54970. x = s.host || u.host || '',
  54971. C = s.basePath || '';
  54972. let j;
  54973. j = w && x ? `${w}://${x + C}` : C;
  54974. return '/' === j[j.length - 1] ? j.slice(0, -1) : j;
  54975. })(s);
  54976. })({
  54977. spec: i,
  54978. scheme: w,
  54979. contextUrl: j,
  54980. server: B,
  54981. serverVariables: $,
  54982. pathName: de,
  54983. method: pe,
  54984. serverVariableEncoder: z
  54985. })),
  54986. (ae.url += ee),
  54987. !u)
  54988. )
  54989. return delete ae.cookies, ae;
  54990. (ae.url += de), (ae.method = `${pe}`.toUpperCase()), (Y = Y || {});
  54991. const ye = i.paths[de] || {};
  54992. _ && (ae.headers.accept = _);
  54993. const be = ((s) => {
  54994. const o = {};
  54995. s.forEach((s) => {
  54996. o[s.in] || (o[s.in] = {}), (o[s.in][s.name] = s);
  54997. });
  54998. const i = [];
  54999. return (
  55000. Object.keys(o).forEach((s) => {
  55001. Object.keys(o[s]).forEach((u) => {
  55002. i.push(o[s][u]);
  55003. });
  55004. }),
  55005. i
  55006. );
  55007. })([].concat(arrayOrEmpty(ce.parameters)).concat(arrayOrEmpty(ye.parameters)));
  55008. be.forEach((s) => {
  55009. const o = Z[s.in];
  55010. let u;
  55011. if (
  55012. ('body' === s.in && s.schema && s.schema.properties && (u = Y),
  55013. (u = s && s.name && Y[s.name]),
  55014. void 0 === u
  55015. ? (u = s && s.name && Y[`${s.in}.${s.name}`])
  55016. : ((s, o) => o.filter((o) => o.name === s))(s.name, be).length > 1 &&
  55017. console.warn(
  55018. `Parameter '${s.name}' is ambiguous because the defined spec has more than one parameter with the name: '${s.name}' and the passed-in parameter values did not define an 'in' value.`
  55019. ),
  55020. null !== u)
  55021. ) {
  55022. if (
  55023. (void 0 !== s.default && void 0 === u && (u = s.default),
  55024. void 0 === u && s.required && !s.allowEmptyValue)
  55025. )
  55026. throw new Error(`Required parameter ${s.name} is not provided`);
  55027. if (ie && s.schema && 'object' === s.schema.type && 'string' == typeof u)
  55028. try {
  55029. u = JSON.parse(u);
  55030. } catch (s) {
  55031. throw new Error('Could not parse object parameter value string as JSON');
  55032. }
  55033. o && o({ req: ae, parameter: s, value: u, operation: ce, spec: i, baseURL: ee });
  55034. }
  55035. });
  55036. const _e = { ...s, operation: ce };
  55037. if (
  55038. ((ae = ie ? buildRequest(_e, ae) : build_request_buildRequest(_e, ae)),
  55039. ae.cookies && Object.keys(ae.cookies).length)
  55040. ) {
  55041. const s = Object.keys(ae.cookies).reduce((s, o) => {
  55042. const i = ae.cookies[o];
  55043. return s + (s ? '&' : '') + jS.serialize(o, i);
  55044. }, '');
  55045. ae.headers.Cookie = s;
  55046. }
  55047. return ae.cookies && delete ae.cookies, serializeRequest(ae);
  55048. }
  55049. const stripNonAlpha = (s) => (s ? s.replace(/\W/g, '') : null);
  55050. const isNonEmptyServerList = (s) => Array.isArray(s) && s.length > 0;
  55051. const makeResolveSubtree =
  55052. (s) =>
  55053. async (o, i, u = {}) =>
  55054. (async (s, o, i = {}) => {
  55055. const {
  55056. returnEntireTree: u,
  55057. baseDoc: _,
  55058. requestInterceptor: w,
  55059. responseInterceptor: x,
  55060. parameterMacro: C,
  55061. modelPropertyMacro: j,
  55062. useCircularStructures: L,
  55063. strategies: B
  55064. } = i,
  55065. $ = {
  55066. spec: s,
  55067. pathDiscriminator: o,
  55068. baseDoc: _,
  55069. requestInterceptor: w,
  55070. responseInterceptor: x,
  55071. parameterMacro: C,
  55072. modelPropertyMacro: j,
  55073. useCircularStructures: L,
  55074. strategies: B
  55075. },
  55076. V = B.find((o) => o.match(s)).normalize(s),
  55077. U = await AS({
  55078. spec: V,
  55079. ...$,
  55080. allowMetaPatches: !0,
  55081. skipNormalization: !isOpenAPI31(s)
  55082. });
  55083. return (
  55084. !u &&
  55085. Array.isArray(o) &&
  55086. o.length &&
  55087. (U.spec = o.reduce((s, o) => (null == s ? void 0 : s[o]), U.spec) || null),
  55088. U
  55089. );
  55090. })(o, i, { ...s, ...u }),
  55091. zS =
  55092. (makeResolveSubtree({ strategies: [fu, hu, uu] }),
  55093. (s, o) =>
  55094. (...i) => {
  55095. s(...i);
  55096. const u = o.getConfigs().withCredentials;
  55097. o.fn.fetch.withCredentials = u;
  55098. });
  55099. function swagger_client({ configs: s, getConfigs: o }) {
  55100. return {
  55101. fn: {
  55102. fetch:
  55103. ((i = http_http),
  55104. (u = s.preFetch),
  55105. (_ = s.postFetch),
  55106. (_ = _ || ((s) => s)),
  55107. (u = u || ((s) => s)),
  55108. (s) => (
  55109. 'string' == typeof s && (s = { url: s }),
  55110. (s = serializeRequest(s)),
  55111. (s = u(s)),
  55112. _(i(s))
  55113. )),
  55114. buildRequest: execute_buildRequest,
  55115. execute: execute_execute,
  55116. resolve: makeResolve({ strategies: [OS, fu, hu, uu] }),
  55117. resolveSubtree: async (s, i, u = {}) => {
  55118. const _ = o(),
  55119. w = {
  55120. modelPropertyMacro: _.modelPropertyMacro,
  55121. parameterMacro: _.parameterMacro,
  55122. requestInterceptor: _.requestInterceptor,
  55123. responseInterceptor: _.responseInterceptor,
  55124. strategies: [OS, fu, hu, uu]
  55125. };
  55126. return makeResolveSubtree(w)(s, i, u);
  55127. },
  55128. serializeRes: serializeResponse,
  55129. opId
  55130. },
  55131. statePlugins: { configs: { wrapActions: { loaded: zS } } }
  55132. };
  55133. var i, u, _;
  55134. }
  55135. function util() {
  55136. return { fn: { shallowEqualKeys } };
  55137. }
  55138. var WS = __webpack_require__(40961),
  55139. KS = __webpack_require__(78418),
  55140. HS = Pe,
  55141. JS = Symbol.for('react-redux-context'),
  55142. GS = 'undefined' != typeof globalThis ? globalThis : {};
  55143. function getContext() {
  55144. if (!HS.createContext) return {};
  55145. const s = GS[JS] ?? (GS[JS] = new Map());
  55146. let o = s.get(HS.createContext);
  55147. return o || ((o = HS.createContext(null)), s.set(HS.createContext, o)), o;
  55148. }
  55149. var YS = getContext(),
  55150. notInitialized = () => {
  55151. throw new Error('uSES not initialized!');
  55152. };
  55153. var XS = Symbol.for('react.element'),
  55154. ZS = Symbol.for('react.portal'),
  55155. QS = Symbol.for('react.fragment'),
  55156. ex = Symbol.for('react.strict_mode'),
  55157. tx = Symbol.for('react.profiler'),
  55158. rx = Symbol.for('react.provider'),
  55159. nx = Symbol.for('react.context'),
  55160. sx = Symbol.for('react.server_context'),
  55161. ox = Symbol.for('react.forward_ref'),
  55162. ix = Symbol.for('react.suspense'),
  55163. ax = Symbol.for('react.suspense_list'),
  55164. lx = Symbol.for('react.memo'),
  55165. cx = Symbol.for('react.lazy'),
  55166. ux = (Symbol.for('react.offscreen'), Symbol.for('react.client.reference'), ox),
  55167. px = lx;
  55168. function typeOf(s) {
  55169. if ('object' == typeof s && null !== s) {
  55170. const o = s.$$typeof;
  55171. switch (o) {
  55172. case XS: {
  55173. const i = s.type;
  55174. switch (i) {
  55175. case QS:
  55176. case tx:
  55177. case ex:
  55178. case ix:
  55179. case ax:
  55180. return i;
  55181. default: {
  55182. const s = i && i.$$typeof;
  55183. switch (s) {
  55184. case sx:
  55185. case nx:
  55186. case ox:
  55187. case cx:
  55188. case lx:
  55189. case rx:
  55190. return s;
  55191. default:
  55192. return o;
  55193. }
  55194. }
  55195. }
  55196. }
  55197. case ZS:
  55198. return o;
  55199. }
  55200. }
  55201. }
  55202. function pureFinalPropsSelectorFactory(
  55203. s,
  55204. o,
  55205. i,
  55206. u,
  55207. { areStatesEqual: _, areOwnPropsEqual: w, areStatePropsEqual: x }
  55208. ) {
  55209. let C,
  55210. j,
  55211. L,
  55212. B,
  55213. $,
  55214. V = !1;
  55215. function handleSubsequentCalls(V, U) {
  55216. const z = !w(U, j),
  55217. Y = !_(V, C, U, j);
  55218. return (
  55219. (C = V),
  55220. (j = U),
  55221. z && Y
  55222. ? (function handleNewPropsAndNewState() {
  55223. return (L = s(C, j)), o.dependsOnOwnProps && (B = o(u, j)), ($ = i(L, B, j)), $;
  55224. })()
  55225. : z
  55226. ? (function handleNewProps() {
  55227. return (
  55228. s.dependsOnOwnProps && (L = s(C, j)),
  55229. o.dependsOnOwnProps && (B = o(u, j)),
  55230. ($ = i(L, B, j)),
  55231. $
  55232. );
  55233. })()
  55234. : Y
  55235. ? (function handleNewState() {
  55236. const o = s(C, j),
  55237. u = !x(o, L);
  55238. return (L = o), u && ($ = i(L, B, j)), $;
  55239. })()
  55240. : $
  55241. );
  55242. }
  55243. return function pureFinalPropsSelector(_, w) {
  55244. return V
  55245. ? handleSubsequentCalls(_, w)
  55246. : (function handleFirstCall(_, w) {
  55247. return (
  55248. (C = _), (j = w), (L = s(C, j)), (B = o(u, j)), ($ = i(L, B, j)), (V = !0), $
  55249. );
  55250. })(_, w);
  55251. };
  55252. }
  55253. function wrapMapToPropsConstant(s) {
  55254. return function initConstantSelector(o) {
  55255. const i = s(o);
  55256. function constantSelector() {
  55257. return i;
  55258. }
  55259. return (constantSelector.dependsOnOwnProps = !1), constantSelector;
  55260. };
  55261. }
  55262. function getDependsOnOwnProps(s) {
  55263. return s.dependsOnOwnProps ? Boolean(s.dependsOnOwnProps) : 1 !== s.length;
  55264. }
  55265. function wrapMapToPropsFunc(s, o) {
  55266. return function initProxySelector(o, { displayName: i }) {
  55267. const u = function mapToPropsProxy(s, o) {
  55268. return u.dependsOnOwnProps ? u.mapToProps(s, o) : u.mapToProps(s, void 0);
  55269. };
  55270. return (
  55271. (u.dependsOnOwnProps = !0),
  55272. (u.mapToProps = function detectFactoryAndVerify(o, i) {
  55273. (u.mapToProps = s), (u.dependsOnOwnProps = getDependsOnOwnProps(s));
  55274. let _ = u(o, i);
  55275. return (
  55276. 'function' == typeof _ &&
  55277. ((u.mapToProps = _),
  55278. (u.dependsOnOwnProps = getDependsOnOwnProps(_)),
  55279. (_ = u(o, i))),
  55280. _
  55281. );
  55282. }),
  55283. u
  55284. );
  55285. };
  55286. }
  55287. function createInvalidArgFactory(s, o) {
  55288. return (i, u) => {
  55289. throw new Error(
  55290. `Invalid value of type ${typeof s} for ${o} argument when connecting component ${u.wrappedComponentName}.`
  55291. );
  55292. };
  55293. }
  55294. function defaultMergeProps(s, o, i) {
  55295. return { ...i, ...s, ...o };
  55296. }
  55297. function defaultNoopBatch(s) {
  55298. s();
  55299. }
  55300. var hx = { notify() {}, get: () => [] };
  55301. function createSubscription(s, o) {
  55302. let i,
  55303. u = hx,
  55304. _ = 0,
  55305. w = !1;
  55306. function handleChangeWrapper() {
  55307. x.onStateChange && x.onStateChange();
  55308. }
  55309. function trySubscribe() {
  55310. _++,
  55311. i ||
  55312. ((i = o ? o.addNestedSub(handleChangeWrapper) : s.subscribe(handleChangeWrapper)),
  55313. (u = (function createListenerCollection() {
  55314. let s = null,
  55315. o = null;
  55316. return {
  55317. clear() {
  55318. (s = null), (o = null);
  55319. },
  55320. notify() {
  55321. defaultNoopBatch(() => {
  55322. let o = s;
  55323. for (; o; ) o.callback(), (o = o.next);
  55324. });
  55325. },
  55326. get() {
  55327. const o = [];
  55328. let i = s;
  55329. for (; i; ) o.push(i), (i = i.next);
  55330. return o;
  55331. },
  55332. subscribe(i) {
  55333. let u = !0;
  55334. const _ = (o = { callback: i, next: null, prev: o });
  55335. return (
  55336. _.prev ? (_.prev.next = _) : (s = _),
  55337. function unsubscribe() {
  55338. u &&
  55339. null !== s &&
  55340. ((u = !1),
  55341. _.next ? (_.next.prev = _.prev) : (o = _.prev),
  55342. _.prev ? (_.prev.next = _.next) : (s = _.next));
  55343. }
  55344. );
  55345. }
  55346. };
  55347. })()));
  55348. }
  55349. function tryUnsubscribe() {
  55350. _--, i && 0 === _ && (i(), (i = void 0), u.clear(), (u = hx));
  55351. }
  55352. const x = {
  55353. addNestedSub: function addNestedSub(s) {
  55354. trySubscribe();
  55355. const o = u.subscribe(s);
  55356. let i = !1;
  55357. return () => {
  55358. i || ((i = !0), o(), tryUnsubscribe());
  55359. };
  55360. },
  55361. notifyNestedSubs: function notifyNestedSubs() {
  55362. u.notify();
  55363. },
  55364. handleChangeWrapper,
  55365. isSubscribed: function isSubscribed() {
  55366. return w;
  55367. },
  55368. trySubscribe: function trySubscribeSelf() {
  55369. w || ((w = !0), trySubscribe());
  55370. },
  55371. tryUnsubscribe: function tryUnsubscribeSelf() {
  55372. w && ((w = !1), tryUnsubscribe());
  55373. },
  55374. getListeners: () => u
  55375. };
  55376. return x;
  55377. }
  55378. var dx = !(
  55379. 'undefined' == typeof window ||
  55380. void 0 === window.document ||
  55381. void 0 === window.document.createElement
  55382. ),
  55383. fx = 'undefined' != typeof navigator && 'ReactNative' === navigator.product,
  55384. mx = dx || fx ? HS.useLayoutEffect : HS.useEffect;
  55385. function is(s, o) {
  55386. return s === o ? 0 !== s || 0 !== o || 1 / s == 1 / o : s != s && o != o;
  55387. }
  55388. function shallowEqual(s, o) {
  55389. if (is(s, o)) return !0;
  55390. if ('object' != typeof s || null === s || 'object' != typeof o || null === o) return !1;
  55391. const i = Object.keys(s),
  55392. u = Object.keys(o);
  55393. if (i.length !== u.length) return !1;
  55394. for (let u = 0; u < i.length; u++)
  55395. if (!Object.prototype.hasOwnProperty.call(o, i[u]) || !is(s[i[u]], o[i[u]])) return !1;
  55396. return !0;
  55397. }
  55398. var gx = {
  55399. childContextTypes: !0,
  55400. contextType: !0,
  55401. contextTypes: !0,
  55402. defaultProps: !0,
  55403. displayName: !0,
  55404. getDefaultProps: !0,
  55405. getDerivedStateFromError: !0,
  55406. getDerivedStateFromProps: !0,
  55407. mixins: !0,
  55408. propTypes: !0,
  55409. type: !0
  55410. },
  55411. yx = {
  55412. name: !0,
  55413. length: !0,
  55414. prototype: !0,
  55415. caller: !0,
  55416. callee: !0,
  55417. arguments: !0,
  55418. arity: !0
  55419. },
  55420. vx = {
  55421. $$typeof: !0,
  55422. compare: !0,
  55423. defaultProps: !0,
  55424. displayName: !0,
  55425. propTypes: !0,
  55426. type: !0
  55427. },
  55428. bx = {
  55429. [ux]: { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 },
  55430. [px]: vx
  55431. };
  55432. function getStatics(s) {
  55433. return (function isMemo(s) {
  55434. return typeOf(s) === lx;
  55435. })(s)
  55436. ? vx
  55437. : bx[s.$$typeof] || gx;
  55438. }
  55439. var _x = Object.defineProperty,
  55440. Ex = Object.getOwnPropertyNames,
  55441. wx = Object.getOwnPropertySymbols,
  55442. Sx = Object.getOwnPropertyDescriptor,
  55443. xx = Object.getPrototypeOf,
  55444. kx = Object.prototype;
  55445. function hoistNonReactStatics(s, o) {
  55446. if ('string' != typeof o) {
  55447. if (kx) {
  55448. const i = xx(o);
  55449. i && i !== kx && hoistNonReactStatics(s, i);
  55450. }
  55451. let i = Ex(o);
  55452. wx && (i = i.concat(wx(o)));
  55453. const u = getStatics(s),
  55454. _ = getStatics(o);
  55455. for (let w = 0; w < i.length; ++w) {
  55456. const x = i[w];
  55457. if (!(yx[x] || (_ && _[x]) || (u && u[x]))) {
  55458. const i = Sx(o, x);
  55459. try {
  55460. _x(s, x, i);
  55461. } catch (s) {}
  55462. }
  55463. }
  55464. }
  55465. return s;
  55466. }
  55467. var Cx = notInitialized,
  55468. Ox = [null, null];
  55469. function captureWrapperProps(s, o, i, u, _, w) {
  55470. (s.current = u), (i.current = !1), _.current && ((_.current = null), w());
  55471. }
  55472. function strictEqual(s, o) {
  55473. return s === o;
  55474. }
  55475. var Ax = function connect(
  55476. s,
  55477. o,
  55478. i,
  55479. {
  55480. pure: u,
  55481. areStatesEqual: _ = strictEqual,
  55482. areOwnPropsEqual: w = shallowEqual,
  55483. areStatePropsEqual: x = shallowEqual,
  55484. areMergedPropsEqual: C = shallowEqual,
  55485. forwardRef: j = !1,
  55486. context: L = YS
  55487. } = {}
  55488. ) {
  55489. const B = L,
  55490. $ = (function mapStateToPropsFactory(s) {
  55491. return s
  55492. ? 'function' == typeof s
  55493. ? wrapMapToPropsFunc(s)
  55494. : createInvalidArgFactory(s, 'mapStateToProps')
  55495. : wrapMapToPropsConstant(() => ({}));
  55496. })(s),
  55497. V = (function mapDispatchToPropsFactory(s) {
  55498. return s && 'object' == typeof s
  55499. ? wrapMapToPropsConstant((o) =>
  55500. (function react_redux_bindActionCreators(s, o) {
  55501. const i = {};
  55502. for (const u in s) {
  55503. const _ = s[u];
  55504. 'function' == typeof _ && (i[u] = (...s) => o(_(...s)));
  55505. }
  55506. return i;
  55507. })(s, o)
  55508. )
  55509. : s
  55510. ? 'function' == typeof s
  55511. ? wrapMapToPropsFunc(s)
  55512. : createInvalidArgFactory(s, 'mapDispatchToProps')
  55513. : wrapMapToPropsConstant((s) => ({ dispatch: s }));
  55514. })(o),
  55515. U = (function mergePropsFactory(s) {
  55516. return s
  55517. ? 'function' == typeof s
  55518. ? (function wrapMergePropsFunc(s) {
  55519. return function initMergePropsProxy(
  55520. o,
  55521. { displayName: i, areMergedPropsEqual: u }
  55522. ) {
  55523. let _,
  55524. w = !1;
  55525. return function mergePropsProxy(o, i, x) {
  55526. const C = s(o, i, x);
  55527. return w ? u(C, _) || (_ = C) : ((w = !0), (_ = C)), _;
  55528. };
  55529. };
  55530. })(s)
  55531. : createInvalidArgFactory(s, 'mergeProps')
  55532. : () => defaultMergeProps;
  55533. })(i),
  55534. z = Boolean(s);
  55535. return (s) => {
  55536. const o = s.displayName || s.name || 'Component',
  55537. i = `Connect(${o})`,
  55538. u = {
  55539. shouldHandleStateChanges: z,
  55540. displayName: i,
  55541. wrappedComponentName: o,
  55542. WrappedComponent: s,
  55543. initMapStateToProps: $,
  55544. initMapDispatchToProps: V,
  55545. initMergeProps: U,
  55546. areStatesEqual: _,
  55547. areStatePropsEqual: x,
  55548. areOwnPropsEqual: w,
  55549. areMergedPropsEqual: C
  55550. };
  55551. function ConnectFunction(o) {
  55552. const [i, _, w] = HS.useMemo(() => {
  55553. const { reactReduxForwardedRef: s, ...i } = o;
  55554. return [o.context, s, i];
  55555. }, [o]),
  55556. x = HS.useMemo(() => B, [i, B]),
  55557. C = HS.useContext(x),
  55558. j = Boolean(o.store) && Boolean(o.store.getState) && Boolean(o.store.dispatch),
  55559. L = Boolean(C) && Boolean(C.store);
  55560. const $ = j ? o.store : C.store,
  55561. V = L ? C.getServerState : $.getState,
  55562. U = HS.useMemo(
  55563. () =>
  55564. (function finalPropsSelectorFactory(
  55565. s,
  55566. { initMapStateToProps: o, initMapDispatchToProps: i, initMergeProps: u, ..._ }
  55567. ) {
  55568. return pureFinalPropsSelectorFactory(o(s, _), i(s, _), u(s, _), s, _);
  55569. })($.dispatch, u),
  55570. [$]
  55571. ),
  55572. [Y, Z] = HS.useMemo(() => {
  55573. if (!z) return Ox;
  55574. const s = createSubscription($, j ? void 0 : C.subscription),
  55575. o = s.notifyNestedSubs.bind(s);
  55576. return [s, o];
  55577. }, [$, j, C]),
  55578. ee = HS.useMemo(() => (j ? C : { ...C, subscription: Y }), [j, C, Y]),
  55579. ie = HS.useRef(void 0),
  55580. ae = HS.useRef(w),
  55581. le = HS.useRef(void 0),
  55582. ce = HS.useRef(!1),
  55583. pe = HS.useRef(!1),
  55584. de = HS.useRef(void 0);
  55585. mx(
  55586. () => (
  55587. (pe.current = !0),
  55588. () => {
  55589. pe.current = !1;
  55590. }
  55591. ),
  55592. []
  55593. );
  55594. const fe = HS.useMemo(
  55595. () => () => (le.current && w === ae.current ? le.current : U($.getState(), w)),
  55596. [$, w]
  55597. ),
  55598. ye = HS.useMemo(
  55599. () => (s) =>
  55600. Y
  55601. ? (function subscribeUpdates(s, o, i, u, _, w, x, C, j, L, B) {
  55602. if (!s) return () => {};
  55603. let $ = !1,
  55604. V = null;
  55605. const checkForUpdates = () => {
  55606. if ($ || !C.current) return;
  55607. const s = o.getState();
  55608. let i, U;
  55609. try {
  55610. i = u(s, _.current);
  55611. } catch (s) {
  55612. (U = s), (V = s);
  55613. }
  55614. U || (V = null),
  55615. i === w.current
  55616. ? x.current || L()
  55617. : ((w.current = i), (j.current = i), (x.current = !0), B());
  55618. };
  55619. return (
  55620. (i.onStateChange = checkForUpdates),
  55621. i.trySubscribe(),
  55622. checkForUpdates(),
  55623. () => {
  55624. if ((($ = !0), i.tryUnsubscribe(), (i.onStateChange = null), V))
  55625. throw V;
  55626. }
  55627. );
  55628. })(z, $, Y, U, ae, ie, ce, pe, le, Z, s)
  55629. : () => {},
  55630. [Y]
  55631. );
  55632. let be;
  55633. !(function useIsomorphicLayoutEffectWithArgs(s, o, i) {
  55634. mx(() => s(...o), i);
  55635. })(captureWrapperProps, [ae, ie, ce, w, le, Z]);
  55636. try {
  55637. be = Cx(ye, fe, V ? () => U(V(), w) : fe);
  55638. } catch (s) {
  55639. throw (
  55640. (de.current &&
  55641. (s.message += `\nThe error may be correlated with this previous error:\n${de.current.stack}\n\n`),
  55642. s)
  55643. );
  55644. }
  55645. mx(() => {
  55646. (de.current = void 0), (le.current = void 0), (ie.current = be);
  55647. });
  55648. const _e = HS.useMemo(() => HS.createElement(s, { ...be, ref: _ }), [_, s, be]);
  55649. return HS.useMemo(
  55650. () => (z ? HS.createElement(x.Provider, { value: ee }, _e) : _e),
  55651. [x, _e, ee]
  55652. );
  55653. }
  55654. const L = HS.memo(ConnectFunction);
  55655. if (((L.WrappedComponent = s), (L.displayName = ConnectFunction.displayName = i), j)) {
  55656. const o = HS.forwardRef(function forwardConnectRef(s, o) {
  55657. return HS.createElement(L, { ...s, reactReduxForwardedRef: o });
  55658. });
  55659. return (o.displayName = i), (o.WrappedComponent = s), hoistNonReactStatics(o, s);
  55660. }
  55661. return hoistNonReactStatics(L, s);
  55662. };
  55663. };
  55664. var jx = function Provider({
  55665. store: s,
  55666. context: o,
  55667. children: i,
  55668. serverState: u,
  55669. stabilityCheck: _ = 'once',
  55670. identityFunctionCheck: w = 'once'
  55671. }) {
  55672. const x = HS.useMemo(() => {
  55673. const o = createSubscription(s);
  55674. return {
  55675. store: s,
  55676. subscription: o,
  55677. getServerState: u ? () => u : void 0,
  55678. stabilityCheck: _,
  55679. identityFunctionCheck: w
  55680. };
  55681. }, [s, u, _, w]),
  55682. C = HS.useMemo(() => s.getState(), [s]);
  55683. mx(() => {
  55684. const { subscription: o } = x;
  55685. return (
  55686. (o.onStateChange = o.notifyNestedSubs),
  55687. o.trySubscribe(),
  55688. C !== s.getState() && o.notifyNestedSubs(),
  55689. () => {
  55690. o.tryUnsubscribe(), (o.onStateChange = void 0);
  55691. }
  55692. );
  55693. }, [x, C]);
  55694. const j = o || YS;
  55695. return HS.createElement(j.Provider, { value: x }, i);
  55696. };
  55697. var Ix;
  55698. (Ix = KS.useSyncExternalStoreWithSelector),
  55699. ((s) => {
  55700. Cx = s;
  55701. })(Pe.useSyncExternalStore);
  55702. var Px = __webpack_require__(83488),
  55703. Mx = __webpack_require__.n(Px);
  55704. const withSystem = (s) => (o) => {
  55705. const { fn: i } = s();
  55706. class WithSystem extends Pe.Component {
  55707. render() {
  55708. return Pe.createElement(o, Rn()({}, s(), this.props, this.context));
  55709. }
  55710. }
  55711. return (WithSystem.displayName = `WithSystem(${i.getDisplayName(o)})`), WithSystem;
  55712. },
  55713. withRoot = (s, o) => (i) => {
  55714. const { fn: u } = s();
  55715. class WithRoot extends Pe.Component {
  55716. render() {
  55717. return Pe.createElement(
  55718. jx,
  55719. { store: o },
  55720. Pe.createElement(i, Rn()({}, this.props, this.context))
  55721. );
  55722. }
  55723. }
  55724. return (WithRoot.displayName = `WithRoot(${u.getDisplayName(i)})`), WithRoot;
  55725. },
  55726. withConnect = (s, o, i) =>
  55727. compose(
  55728. i ? withRoot(s, i) : Mx(),
  55729. Ax((i, u) => {
  55730. const _ = { ...u, ...s() },
  55731. w = o.prototype?.mapStateToProps || ((s) => ({ state: s }));
  55732. return w(i, _);
  55733. }),
  55734. withSystem(s)
  55735. )(o),
  55736. handleProps = (s, o, i, u) => {
  55737. for (const _ in o) {
  55738. const w = o[_];
  55739. 'function' == typeof w && w(i[_], u[_], s());
  55740. }
  55741. },
  55742. withMappedContainer = (s, o, i) => (o, u) => {
  55743. const { fn: _ } = s(),
  55744. w = i(o, 'root');
  55745. class WithMappedContainer extends Pe.Component {
  55746. constructor(o, i) {
  55747. super(o, i), handleProps(s, u, o, {});
  55748. }
  55749. UNSAFE_componentWillReceiveProps(o) {
  55750. handleProps(s, u, o, this.props);
  55751. }
  55752. render() {
  55753. const s = Yt()(this.props, u ? Object.keys(u) : []);
  55754. return Pe.createElement(w, s);
  55755. }
  55756. }
  55757. return (
  55758. (WithMappedContainer.displayName = `WithMappedContainer(${_.getDisplayName(w)})`),
  55759. WithMappedContainer
  55760. );
  55761. },
  55762. render = (s, o, i, u) => (_) => {
  55763. const w = i(s, o, u)('App', 'root'),
  55764. { createRoot: x } = WS;
  55765. x(_).render(Pe.createElement(w, null));
  55766. },
  55767. getComponent =
  55768. (s, o, i) =>
  55769. (u, _, w = {}) => {
  55770. if ('string' != typeof u)
  55771. throw new TypeError('Need a string, to fetch a component. Was given a ' + typeof u);
  55772. const x = i(u);
  55773. return x
  55774. ? _
  55775. ? 'root' === _
  55776. ? withConnect(s, x, o())
  55777. : withConnect(s, x)
  55778. : x
  55779. : (w.failSilently || s().log.warn('Could not find component:', u), null);
  55780. },
  55781. getDisplayName = (s) => s.displayName || s.name || 'Component',
  55782. view = ({ getComponents: s, getStore: o, getSystem: i }) => {
  55783. const u = ((s) => jt(s, (...s) => JSON.stringify(s)))(getComponent(i, o, s)),
  55784. _ = ((s) => utils_memoizeN(s, (...s) => s))(withMappedContainer(i, 0, u));
  55785. return {
  55786. rootInjects: {
  55787. getComponent: u,
  55788. makeMappedContainer: _,
  55789. render: render(i, o, getComponent, s)
  55790. },
  55791. fn: { getDisplayName }
  55792. };
  55793. },
  55794. view_legacy = ({ React: s, getSystem: o, getStore: i, getComponents: u }) => {
  55795. const _ = {},
  55796. w = parseInt(s?.version, 10);
  55797. return (
  55798. w >= 16 &&
  55799. w < 18 &&
  55800. (_.render = ((s, o, i, u) => (_) => {
  55801. const w = i(s, o, u)('App', 'root');
  55802. WS.render(Pe.createElement(w, null), _);
  55803. })(o, i, getComponent, u)),
  55804. { rootInjects: _ }
  55805. );
  55806. };
  55807. function downloadUrlPlugin(s) {
  55808. let { fn: o } = s;
  55809. const i = {
  55810. download:
  55811. (s) =>
  55812. ({ errActions: i, specSelectors: u, specActions: _, getConfigs: w }) => {
  55813. let { fetch: x } = o;
  55814. const C = w();
  55815. function next(o) {
  55816. if (o instanceof Error || o.status >= 400)
  55817. return (
  55818. _.updateLoadingStatus('failed'),
  55819. i.newThrownErr(
  55820. Object.assign(new Error((o.message || o.statusText) + ' ' + s), {
  55821. source: 'fetch'
  55822. })
  55823. ),
  55824. void (
  55825. !o.status &&
  55826. o instanceof Error &&
  55827. (function checkPossibleFailReasons() {
  55828. try {
  55829. let o;
  55830. if (
  55831. ('URL' in at
  55832. ? (o = new URL(s))
  55833. : ((o = document.createElement('a')), (o.href = s)),
  55834. 'https:' !== o.protocol && 'https:' === at.location.protocol)
  55835. ) {
  55836. const s = Object.assign(
  55837. new Error(
  55838. `Possible mixed-content issue? The page was loaded over https:// but a ${o.protocol}// URL was specified. Check that you are not attempting to load mixed content.`
  55839. ),
  55840. { source: 'fetch' }
  55841. );
  55842. return void i.newThrownErr(s);
  55843. }
  55844. if (o.origin !== at.location.origin) {
  55845. const s = Object.assign(
  55846. new Error(
  55847. `Possible cross-origin (CORS) issue? The URL origin (${o.origin}) does not match the page (${at.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`
  55848. ),
  55849. { source: 'fetch' }
  55850. );
  55851. i.newThrownErr(s);
  55852. }
  55853. } catch (s) {
  55854. return;
  55855. }
  55856. })()
  55857. )
  55858. );
  55859. _.updateLoadingStatus('success'),
  55860. _.updateSpec(o.text),
  55861. u.url() !== s && _.updateUrl(s);
  55862. }
  55863. (s = s || u.url()),
  55864. _.updateLoadingStatus('loading'),
  55865. i.clear({ source: 'fetch' }),
  55866. x({
  55867. url: s,
  55868. loadSpec: !0,
  55869. requestInterceptor: C.requestInterceptor || ((s) => s),
  55870. responseInterceptor: C.responseInterceptor || ((s) => s),
  55871. credentials: 'same-origin',
  55872. headers: { Accept: 'application/json,*/*' }
  55873. }).then(next, next);
  55874. },
  55875. updateLoadingStatus: (s) => {
  55876. let o = [null, 'loading', 'failed', 'success', 'failedConfig'];
  55877. return (
  55878. -1 === o.indexOf(s) &&
  55879. console.error(`Error: ${s} is not one of ${JSON.stringify(o)}`),
  55880. { type: 'spec_update_loading_status', payload: s }
  55881. );
  55882. }
  55883. };
  55884. let u = {
  55885. loadingStatus: Ut(
  55886. (s) => s || (0, qe.Map)(),
  55887. (s) => s.get('loadingStatus') || null
  55888. )
  55889. };
  55890. return {
  55891. statePlugins: {
  55892. spec: {
  55893. actions: i,
  55894. reducers: {
  55895. spec_update_loading_status: (s, o) =>
  55896. 'string' == typeof o.payload ? s.set('loadingStatus', o.payload) : s
  55897. },
  55898. selectors: u
  55899. }
  55900. }
  55901. };
  55902. }
  55903. function arrayLikeToArray_arrayLikeToArray(s, o) {
  55904. (null == o || o > s.length) && (o = s.length);
  55905. for (var i = 0, u = Array(o); i < o; i++) u[i] = s[i];
  55906. return u;
  55907. }
  55908. function toConsumableArray_toConsumableArray(s) {
  55909. return (
  55910. (function arrayWithoutHoles_arrayWithoutHoles(s) {
  55911. if (Array.isArray(s)) return arrayLikeToArray_arrayLikeToArray(s);
  55912. })(s) ||
  55913. (function iterableToArray_iterableToArray(s) {
  55914. if (
  55915. ('undefined' != typeof Symbol && null != s[Symbol.iterator]) ||
  55916. null != s['@@iterator']
  55917. )
  55918. return Array.from(s);
  55919. })(s) ||
  55920. (function unsupportedIterableToArray_unsupportedIterableToArray(s, o) {
  55921. if (s) {
  55922. if ('string' == typeof s) return arrayLikeToArray_arrayLikeToArray(s, o);
  55923. var i = {}.toString.call(s).slice(8, -1);
  55924. return (
  55925. 'Object' === i && s.constructor && (i = s.constructor.name),
  55926. 'Map' === i || 'Set' === i
  55927. ? Array.from(s)
  55928. : 'Arguments' === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)
  55929. ? arrayLikeToArray_arrayLikeToArray(s, o)
  55930. : void 0
  55931. );
  55932. }
  55933. })(s) ||
  55934. (function nonIterableSpread_nonIterableSpread() {
  55935. throw new TypeError(
  55936. 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  55937. );
  55938. })()
  55939. );
  55940. }
  55941. function typeof_typeof(s) {
  55942. return (
  55943. (typeof_typeof =
  55944. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  55945. ? function (s) {
  55946. return typeof s;
  55947. }
  55948. : function (s) {
  55949. return s &&
  55950. 'function' == typeof Symbol &&
  55951. s.constructor === Symbol &&
  55952. s !== Symbol.prototype
  55953. ? 'symbol'
  55954. : typeof s;
  55955. }),
  55956. typeof_typeof(s)
  55957. );
  55958. }
  55959. function toPropertyKey(s) {
  55960. var o = (function toPrimitive(s, o) {
  55961. if ('object' != typeof_typeof(s) || !s) return s;
  55962. var i = s[Symbol.toPrimitive];
  55963. if (void 0 !== i) {
  55964. var u = i.call(s, o || 'default');
  55965. if ('object' != typeof_typeof(u)) return u;
  55966. throw new TypeError('@@toPrimitive must return a primitive value.');
  55967. }
  55968. return ('string' === o ? String : Number)(s);
  55969. })(s, 'string');
  55970. return 'symbol' == typeof_typeof(o) ? o : o + '';
  55971. }
  55972. function defineProperty_defineProperty(s, o, i) {
  55973. return (
  55974. (o = toPropertyKey(o)) in s
  55975. ? Object.defineProperty(s, o, {
  55976. value: i,
  55977. enumerable: !0,
  55978. configurable: !0,
  55979. writable: !0
  55980. })
  55981. : (s[o] = i),
  55982. s
  55983. );
  55984. }
  55985. function extends_extends() {
  55986. return (
  55987. (extends_extends = Object.assign
  55988. ? Object.assign.bind()
  55989. : function (s) {
  55990. for (var o = 1; o < arguments.length; o++) {
  55991. var i = arguments[o];
  55992. for (var u in i) ({}).hasOwnProperty.call(i, u) && (s[u] = i[u]);
  55993. }
  55994. return s;
  55995. }),
  55996. extends_extends.apply(null, arguments)
  55997. );
  55998. }
  55999. function create_element_ownKeys(s, o) {
  56000. var i = Object.keys(s);
  56001. if (Object.getOwnPropertySymbols) {
  56002. var u = Object.getOwnPropertySymbols(s);
  56003. o &&
  56004. (u = u.filter(function (o) {
  56005. return Object.getOwnPropertyDescriptor(s, o).enumerable;
  56006. })),
  56007. i.push.apply(i, u);
  56008. }
  56009. return i;
  56010. }
  56011. function _objectSpread(s) {
  56012. for (var o = 1; o < arguments.length; o++) {
  56013. var i = null != arguments[o] ? arguments[o] : {};
  56014. o % 2
  56015. ? create_element_ownKeys(Object(i), !0).forEach(function (o) {
  56016. defineProperty_defineProperty(s, o, i[o]);
  56017. })
  56018. : Object.getOwnPropertyDescriptors
  56019. ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(i))
  56020. : create_element_ownKeys(Object(i)).forEach(function (o) {
  56021. Object.defineProperty(s, o, Object.getOwnPropertyDescriptor(i, o));
  56022. });
  56023. }
  56024. return s;
  56025. }
  56026. var Tx = {};
  56027. function createStyleObject(s) {
  56028. var o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  56029. i = arguments.length > 2 ? arguments[2] : void 0;
  56030. return (function getClassNameCombinations(s) {
  56031. if (0 === s.length || 1 === s.length) return s;
  56032. var o = s.join('.');
  56033. return (
  56034. Tx[o] ||
  56035. (Tx[o] = (function powerSetPermutations(s) {
  56036. var o = s.length;
  56037. return 0 === o || 1 === o
  56038. ? s
  56039. : 2 === o
  56040. ? [
  56041. s[0],
  56042. s[1],
  56043. ''.concat(s[0], '.').concat(s[1]),
  56044. ''.concat(s[1], '.').concat(s[0])
  56045. ]
  56046. : 3 === o
  56047. ? [
  56048. s[0],
  56049. s[1],
  56050. s[2],
  56051. ''.concat(s[0], '.').concat(s[1]),
  56052. ''.concat(s[0], '.').concat(s[2]),
  56053. ''.concat(s[1], '.').concat(s[0]),
  56054. ''.concat(s[1], '.').concat(s[2]),
  56055. ''.concat(s[2], '.').concat(s[0]),
  56056. ''.concat(s[2], '.').concat(s[1]),
  56057. ''.concat(s[0], '.').concat(s[1], '.').concat(s[2]),
  56058. ''.concat(s[0], '.').concat(s[2], '.').concat(s[1]),
  56059. ''.concat(s[1], '.').concat(s[0], '.').concat(s[2]),
  56060. ''.concat(s[1], '.').concat(s[2], '.').concat(s[0]),
  56061. ''.concat(s[2], '.').concat(s[0], '.').concat(s[1]),
  56062. ''.concat(s[2], '.').concat(s[1], '.').concat(s[0])
  56063. ]
  56064. : o >= 4
  56065. ? [
  56066. s[0],
  56067. s[1],
  56068. s[2],
  56069. s[3],
  56070. ''.concat(s[0], '.').concat(s[1]),
  56071. ''.concat(s[0], '.').concat(s[2]),
  56072. ''.concat(s[0], '.').concat(s[3]),
  56073. ''.concat(s[1], '.').concat(s[0]),
  56074. ''.concat(s[1], '.').concat(s[2]),
  56075. ''.concat(s[1], '.').concat(s[3]),
  56076. ''.concat(s[2], '.').concat(s[0]),
  56077. ''.concat(s[2], '.').concat(s[1]),
  56078. ''.concat(s[2], '.').concat(s[3]),
  56079. ''.concat(s[3], '.').concat(s[0]),
  56080. ''.concat(s[3], '.').concat(s[1]),
  56081. ''.concat(s[3], '.').concat(s[2]),
  56082. ''.concat(s[0], '.').concat(s[1], '.').concat(s[2]),
  56083. ''.concat(s[0], '.').concat(s[1], '.').concat(s[3]),
  56084. ''.concat(s[0], '.').concat(s[2], '.').concat(s[1]),
  56085. ''.concat(s[0], '.').concat(s[2], '.').concat(s[3]),
  56086. ''.concat(s[0], '.').concat(s[3], '.').concat(s[1]),
  56087. ''.concat(s[0], '.').concat(s[3], '.').concat(s[2]),
  56088. ''.concat(s[1], '.').concat(s[0], '.').concat(s[2]),
  56089. ''.concat(s[1], '.').concat(s[0], '.').concat(s[3]),
  56090. ''.concat(s[1], '.').concat(s[2], '.').concat(s[0]),
  56091. ''.concat(s[1], '.').concat(s[2], '.').concat(s[3]),
  56092. ''.concat(s[1], '.').concat(s[3], '.').concat(s[0]),
  56093. ''.concat(s[1], '.').concat(s[3], '.').concat(s[2]),
  56094. ''.concat(s[2], '.').concat(s[0], '.').concat(s[1]),
  56095. ''.concat(s[2], '.').concat(s[0], '.').concat(s[3]),
  56096. ''.concat(s[2], '.').concat(s[1], '.').concat(s[0]),
  56097. ''.concat(s[2], '.').concat(s[1], '.').concat(s[3]),
  56098. ''.concat(s[2], '.').concat(s[3], '.').concat(s[0]),
  56099. ''.concat(s[2], '.').concat(s[3], '.').concat(s[1]),
  56100. ''.concat(s[3], '.').concat(s[0], '.').concat(s[1]),
  56101. ''.concat(s[3], '.').concat(s[0], '.').concat(s[2]),
  56102. ''.concat(s[3], '.').concat(s[1], '.').concat(s[0]),
  56103. ''.concat(s[3], '.').concat(s[1], '.').concat(s[2]),
  56104. ''.concat(s[3], '.').concat(s[2], '.').concat(s[0]),
  56105. ''.concat(s[3], '.').concat(s[2], '.').concat(s[1]),
  56106. ''.concat(s[0], '.').concat(s[1], '.').concat(s[2], '.').concat(s[3]),
  56107. ''.concat(s[0], '.').concat(s[1], '.').concat(s[3], '.').concat(s[2]),
  56108. ''.concat(s[0], '.').concat(s[2], '.').concat(s[1], '.').concat(s[3]),
  56109. ''.concat(s[0], '.').concat(s[2], '.').concat(s[3], '.').concat(s[1]),
  56110. ''.concat(s[0], '.').concat(s[3], '.').concat(s[1], '.').concat(s[2]),
  56111. ''.concat(s[0], '.').concat(s[3], '.').concat(s[2], '.').concat(s[1]),
  56112. ''.concat(s[1], '.').concat(s[0], '.').concat(s[2], '.').concat(s[3]),
  56113. ''.concat(s[1], '.').concat(s[0], '.').concat(s[3], '.').concat(s[2]),
  56114. ''.concat(s[1], '.').concat(s[2], '.').concat(s[0], '.').concat(s[3]),
  56115. ''.concat(s[1], '.').concat(s[2], '.').concat(s[3], '.').concat(s[0]),
  56116. ''.concat(s[1], '.').concat(s[3], '.').concat(s[0], '.').concat(s[2]),
  56117. ''.concat(s[1], '.').concat(s[3], '.').concat(s[2], '.').concat(s[0]),
  56118. ''.concat(s[2], '.').concat(s[0], '.').concat(s[1], '.').concat(s[3]),
  56119. ''.concat(s[2], '.').concat(s[0], '.').concat(s[3], '.').concat(s[1]),
  56120. ''.concat(s[2], '.').concat(s[1], '.').concat(s[0], '.').concat(s[3]),
  56121. ''.concat(s[2], '.').concat(s[1], '.').concat(s[3], '.').concat(s[0]),
  56122. ''.concat(s[2], '.').concat(s[3], '.').concat(s[0], '.').concat(s[1]),
  56123. ''.concat(s[2], '.').concat(s[3], '.').concat(s[1], '.').concat(s[0]),
  56124. ''.concat(s[3], '.').concat(s[0], '.').concat(s[1], '.').concat(s[2]),
  56125. ''.concat(s[3], '.').concat(s[0], '.').concat(s[2], '.').concat(s[1]),
  56126. ''.concat(s[3], '.').concat(s[1], '.').concat(s[0], '.').concat(s[2]),
  56127. ''.concat(s[3], '.').concat(s[1], '.').concat(s[2], '.').concat(s[0]),
  56128. ''.concat(s[3], '.').concat(s[2], '.').concat(s[0], '.').concat(s[1]),
  56129. ''.concat(s[3], '.').concat(s[2], '.').concat(s[1], '.').concat(s[0])
  56130. ]
  56131. : void 0;
  56132. })(s)),
  56133. Tx[o]
  56134. );
  56135. })(
  56136. s.filter(function (s) {
  56137. return 'token' !== s;
  56138. })
  56139. ).reduce(function (s, o) {
  56140. return _objectSpread(_objectSpread({}, s), i[o]);
  56141. }, o);
  56142. }
  56143. function createClassNameString(s) {
  56144. return s.join(' ');
  56145. }
  56146. function createElement(s) {
  56147. var o = s.node,
  56148. i = s.stylesheet,
  56149. u = s.style,
  56150. _ = void 0 === u ? {} : u,
  56151. w = s.useInlineStyles,
  56152. x = s.key,
  56153. C = o.properties,
  56154. j = o.type,
  56155. L = o.tagName,
  56156. B = o.value;
  56157. if ('text' === j) return B;
  56158. if (L) {
  56159. var $,
  56160. V = (function createChildren(s, o) {
  56161. var i = 0;
  56162. return function (u) {
  56163. return (
  56164. (i += 1),
  56165. u.map(function (u, _) {
  56166. return createElement({
  56167. node: u,
  56168. stylesheet: s,
  56169. useInlineStyles: o,
  56170. key: 'code-segment-'.concat(i, '-').concat(_)
  56171. });
  56172. })
  56173. );
  56174. };
  56175. })(i, w);
  56176. if (w) {
  56177. var U = Object.keys(i).reduce(function (s, o) {
  56178. return (
  56179. o.split('.').forEach(function (o) {
  56180. s.includes(o) || s.push(o);
  56181. }),
  56182. s
  56183. );
  56184. }, []),
  56185. z = C.className && C.className.includes('token') ? ['token'] : [],
  56186. Y =
  56187. C.className &&
  56188. z.concat(
  56189. C.className.filter(function (s) {
  56190. return !U.includes(s);
  56191. })
  56192. );
  56193. $ = _objectSpread(
  56194. _objectSpread({}, C),
  56195. {},
  56196. {
  56197. className: createClassNameString(Y) || void 0,
  56198. style: createStyleObject(C.className, Object.assign({}, C.style, _), i)
  56199. }
  56200. );
  56201. } else
  56202. $ = _objectSpread(
  56203. _objectSpread({}, C),
  56204. {},
  56205. { className: createClassNameString(C.className) }
  56206. );
  56207. var Z = V(o.children);
  56208. return Pe.createElement(L, extends_extends({ key: x }, $), Z);
  56209. }
  56210. }
  56211. var Nx = [
  56212. 'language',
  56213. 'children',
  56214. 'style',
  56215. 'customStyle',
  56216. 'codeTagProps',
  56217. 'useInlineStyles',
  56218. 'showLineNumbers',
  56219. 'showInlineLineNumbers',
  56220. 'startingLineNumber',
  56221. 'lineNumberContainerStyle',
  56222. 'lineNumberStyle',
  56223. 'wrapLines',
  56224. 'wrapLongLines',
  56225. 'lineProps',
  56226. 'renderer',
  56227. 'PreTag',
  56228. 'CodeTag',
  56229. 'code',
  56230. 'astGenerator'
  56231. ];
  56232. function highlight_ownKeys(s, o) {
  56233. var i = Object.keys(s);
  56234. if (Object.getOwnPropertySymbols) {
  56235. var u = Object.getOwnPropertySymbols(s);
  56236. o &&
  56237. (u = u.filter(function (o) {
  56238. return Object.getOwnPropertyDescriptor(s, o).enumerable;
  56239. })),
  56240. i.push.apply(i, u);
  56241. }
  56242. return i;
  56243. }
  56244. function highlight_objectSpread(s) {
  56245. for (var o = 1; o < arguments.length; o++) {
  56246. var i = null != arguments[o] ? arguments[o] : {};
  56247. o % 2
  56248. ? highlight_ownKeys(Object(i), !0).forEach(function (o) {
  56249. defineProperty_defineProperty(s, o, i[o]);
  56250. })
  56251. : Object.getOwnPropertyDescriptors
  56252. ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(i))
  56253. : highlight_ownKeys(Object(i)).forEach(function (o) {
  56254. Object.defineProperty(s, o, Object.getOwnPropertyDescriptor(i, o));
  56255. });
  56256. }
  56257. return s;
  56258. }
  56259. var Rx = /\n/g;
  56260. function AllLineNumbers(s) {
  56261. var o = s.codeString,
  56262. i = s.codeStyle,
  56263. u = s.containerStyle,
  56264. _ = void 0 === u ? { float: 'left', paddingRight: '10px' } : u,
  56265. w = s.numberStyle,
  56266. x = void 0 === w ? {} : w,
  56267. C = s.startingLineNumber;
  56268. return Pe.createElement(
  56269. 'code',
  56270. { style: Object.assign({}, i, _) },
  56271. (function getAllLineNumbers(s) {
  56272. var o = s.lines,
  56273. i = s.startingLineNumber,
  56274. u = s.style;
  56275. return o.map(function (s, o) {
  56276. var _ = o + i;
  56277. return Pe.createElement(
  56278. 'span',
  56279. {
  56280. key: 'line-'.concat(o),
  56281. className: 'react-syntax-highlighter-line-number',
  56282. style: 'function' == typeof u ? u(_) : u
  56283. },
  56284. ''.concat(_, '\n')
  56285. );
  56286. });
  56287. })({ lines: o.replace(/\n$/, '').split('\n'), style: x, startingLineNumber: C })
  56288. );
  56289. }
  56290. function getInlineLineNumber(s, o) {
  56291. return {
  56292. type: 'element',
  56293. tagName: 'span',
  56294. properties: {
  56295. key: 'line-number--'.concat(s),
  56296. className: ['comment', 'linenumber', 'react-syntax-highlighter-line-number'],
  56297. style: o
  56298. },
  56299. children: [{ type: 'text', value: s }]
  56300. };
  56301. }
  56302. function assembleLineNumberStyles(s, o, i) {
  56303. var u,
  56304. _ = {
  56305. display: 'inline-block',
  56306. minWidth: ((u = i), ''.concat(u.toString().length, '.25em')),
  56307. paddingRight: '1em',
  56308. textAlign: 'right',
  56309. userSelect: 'none'
  56310. },
  56311. w = 'function' == typeof s ? s(o) : s;
  56312. return highlight_objectSpread(highlight_objectSpread({}, _), w);
  56313. }
  56314. function createLineElement(s) {
  56315. var o = s.children,
  56316. i = s.lineNumber,
  56317. u = s.lineNumberStyle,
  56318. _ = s.largestLineNumber,
  56319. w = s.showInlineLineNumbers,
  56320. x = s.lineProps,
  56321. C = void 0 === x ? {} : x,
  56322. j = s.className,
  56323. L = void 0 === j ? [] : j,
  56324. B = s.showLineNumbers,
  56325. $ = s.wrapLongLines,
  56326. V = s.wrapLines,
  56327. U =
  56328. void 0 !== V && V
  56329. ? highlight_objectSpread({}, 'function' == typeof C ? C(i) : C)
  56330. : {};
  56331. if (
  56332. ((U.className = U.className
  56333. ? [].concat(
  56334. toConsumableArray_toConsumableArray(U.className.trim().split(/\s+/)),
  56335. toConsumableArray_toConsumableArray(L)
  56336. )
  56337. : L),
  56338. i && w)
  56339. ) {
  56340. var z = assembleLineNumberStyles(u, i, _);
  56341. o.unshift(getInlineLineNumber(i, z));
  56342. }
  56343. return (
  56344. $ & B && (U.style = highlight_objectSpread({ display: 'flex' }, U.style)),
  56345. { type: 'element', tagName: 'span', properties: U, children: o }
  56346. );
  56347. }
  56348. function flattenCodeTree(s) {
  56349. for (
  56350. var o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
  56351. i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [],
  56352. u = 0;
  56353. u < s.length;
  56354. u++
  56355. ) {
  56356. var _ = s[u];
  56357. if ('text' === _.type)
  56358. i.push(
  56359. createLineElement({
  56360. children: [_],
  56361. className: toConsumableArray_toConsumableArray(new Set(o))
  56362. })
  56363. );
  56364. else if (_.children) {
  56365. var w = o.concat(_.properties.className);
  56366. flattenCodeTree(_.children, w).forEach(function (s) {
  56367. return i.push(s);
  56368. });
  56369. }
  56370. }
  56371. return i;
  56372. }
  56373. function processLines(s, o, i, u, _, w, x, C, j) {
  56374. var L,
  56375. B = flattenCodeTree(s.value),
  56376. $ = [],
  56377. V = -1,
  56378. U = 0;
  56379. function createLine(s, w) {
  56380. var L = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [];
  56381. return o || L.length > 0
  56382. ? (function createWrappedLine(s, w) {
  56383. return createLineElement({
  56384. children: s,
  56385. lineNumber: w,
  56386. lineNumberStyle: C,
  56387. largestLineNumber: x,
  56388. showInlineLineNumbers: _,
  56389. lineProps: i,
  56390. className: arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [],
  56391. showLineNumbers: u,
  56392. wrapLongLines: j,
  56393. wrapLines: o
  56394. });
  56395. })(s, w, L)
  56396. : (function createUnwrappedLine(s, o) {
  56397. if (u && o && _) {
  56398. var i = assembleLineNumberStyles(C, o, x);
  56399. s.unshift(getInlineLineNumber(o, i));
  56400. }
  56401. return s;
  56402. })(s, w);
  56403. }
  56404. for (
  56405. var z = function _loop() {
  56406. var s = B[U],
  56407. o = s.children[0].value,
  56408. i = (function getNewLines(s) {
  56409. return s.match(Rx);
  56410. })(o);
  56411. if (i) {
  56412. var _ = o.split('\n');
  56413. _.forEach(function (o, i) {
  56414. var x = u && $.length + w,
  56415. C = { type: 'text', value: ''.concat(o, '\n') };
  56416. if (0 === i) {
  56417. var j = createLine(
  56418. B.slice(V + 1, U).concat(
  56419. createLineElement({ children: [C], className: s.properties.className })
  56420. ),
  56421. x
  56422. );
  56423. $.push(j);
  56424. } else if (i === _.length - 1) {
  56425. var L = B[U + 1] && B[U + 1].children && B[U + 1].children[0],
  56426. z = { type: 'text', value: ''.concat(o) };
  56427. if (L) {
  56428. var Y = createLineElement({
  56429. children: [z],
  56430. className: s.properties.className
  56431. });
  56432. B.splice(U + 1, 0, Y);
  56433. } else {
  56434. var Z = createLine([z], x, s.properties.className);
  56435. $.push(Z);
  56436. }
  56437. } else {
  56438. var ee = createLine([C], x, s.properties.className);
  56439. $.push(ee);
  56440. }
  56441. }),
  56442. (V = U);
  56443. }
  56444. U++;
  56445. };
  56446. U < B.length;
  56447. )
  56448. z();
  56449. if (V !== B.length - 1) {
  56450. var Y = B.slice(V + 1, B.length);
  56451. if (Y && Y.length) {
  56452. var Z = createLine(Y, u && $.length + w);
  56453. $.push(Z);
  56454. }
  56455. }
  56456. return o ? $ : (L = []).concat.apply(L, $);
  56457. }
  56458. function defaultRenderer(s) {
  56459. var o = s.rows,
  56460. i = s.stylesheet,
  56461. u = s.useInlineStyles;
  56462. return o.map(function (s, o) {
  56463. return createElement({
  56464. node: s,
  56465. stylesheet: i,
  56466. useInlineStyles: u,
  56467. key: 'code-segement'.concat(o)
  56468. });
  56469. });
  56470. }
  56471. function isHighlightJs(s) {
  56472. return s && void 0 !== s.highlightAuto;
  56473. }
  56474. var Dx = __webpack_require__(43768),
  56475. Lx = (function highlight(s, o) {
  56476. return function SyntaxHighlighter(i) {
  56477. var u = i.language,
  56478. _ = i.children,
  56479. w = i.style,
  56480. x = void 0 === w ? o : w,
  56481. C = i.customStyle,
  56482. j = void 0 === C ? {} : C,
  56483. L = i.codeTagProps,
  56484. B =
  56485. void 0 === L
  56486. ? {
  56487. className: u ? 'language-'.concat(u) : void 0,
  56488. style: highlight_objectSpread(
  56489. highlight_objectSpread({}, x['code[class*="language-"]']),
  56490. x['code[class*="language-'.concat(u, '"]')]
  56491. )
  56492. }
  56493. : L,
  56494. $ = i.useInlineStyles,
  56495. V = void 0 === $ || $,
  56496. U = i.showLineNumbers,
  56497. z = void 0 !== U && U,
  56498. Y = i.showInlineLineNumbers,
  56499. Z = void 0 === Y || Y,
  56500. ee = i.startingLineNumber,
  56501. ie = void 0 === ee ? 1 : ee,
  56502. ae = i.lineNumberContainerStyle,
  56503. le = i.lineNumberStyle,
  56504. ce = void 0 === le ? {} : le,
  56505. pe = i.wrapLines,
  56506. de = i.wrapLongLines,
  56507. fe = void 0 !== de && de,
  56508. ye = i.lineProps,
  56509. be = void 0 === ye ? {} : ye,
  56510. _e = i.renderer,
  56511. we = i.PreTag,
  56512. Se = void 0 === we ? 'pre' : we,
  56513. xe = i.CodeTag,
  56514. Te = void 0 === xe ? 'code' : xe,
  56515. Re = i.code,
  56516. qe = void 0 === Re ? (Array.isArray(_) ? _[0] : _) || '' : Re,
  56517. $e = i.astGenerator,
  56518. ze = (function _objectWithoutProperties(s, o) {
  56519. if (null == s) return {};
  56520. var i,
  56521. u,
  56522. _ = (function _objectWithoutPropertiesLoose(s, o) {
  56523. if (null == s) return {};
  56524. var i = {};
  56525. for (var u in s)
  56526. if ({}.hasOwnProperty.call(s, u)) {
  56527. if (o.includes(u)) continue;
  56528. i[u] = s[u];
  56529. }
  56530. return i;
  56531. })(s, o);
  56532. if (Object.getOwnPropertySymbols) {
  56533. var w = Object.getOwnPropertySymbols(s);
  56534. for (u = 0; u < w.length; u++)
  56535. (i = w[u]),
  56536. o.includes(i) || ({}.propertyIsEnumerable.call(s, i) && (_[i] = s[i]));
  56537. }
  56538. return _;
  56539. })(i, Nx);
  56540. $e = $e || s;
  56541. var We = z
  56542. ? Pe.createElement(AllLineNumbers, {
  56543. containerStyle: ae,
  56544. codeStyle: B.style || {},
  56545. numberStyle: ce,
  56546. startingLineNumber: ie,
  56547. codeString: qe
  56548. })
  56549. : null,
  56550. He = x.hljs || x['pre[class*="language-"]'] || { backgroundColor: '#fff' },
  56551. Ye = isHighlightJs($e) ? 'hljs' : 'prismjs',
  56552. Xe = V
  56553. ? Object.assign({}, ze, { style: Object.assign({}, He, j) })
  56554. : Object.assign({}, ze, {
  56555. className: ze.className ? ''.concat(Ye, ' ').concat(ze.className) : Ye,
  56556. style: Object.assign({}, j)
  56557. });
  56558. if (
  56559. ((B.style = highlight_objectSpread(
  56560. fe ? { whiteSpace: 'pre-wrap' } : { whiteSpace: 'pre' },
  56561. B.style
  56562. )),
  56563. !$e)
  56564. )
  56565. return Pe.createElement(Se, Xe, We, Pe.createElement(Te, B, qe));
  56566. ((void 0 === pe && _e) || fe) && (pe = !0), (_e = _e || defaultRenderer);
  56567. var Qe = [{ type: 'text', value: qe }],
  56568. et = (function getCodeTree(s) {
  56569. var o = s.astGenerator,
  56570. i = s.language,
  56571. u = s.code,
  56572. _ = s.defaultCodeValue;
  56573. if (isHighlightJs(o)) {
  56574. var w = (function (s, o) {
  56575. return -1 !== s.listLanguages().indexOf(o);
  56576. })(o, i);
  56577. return 'text' === i
  56578. ? { value: _, language: 'text' }
  56579. : w
  56580. ? o.highlight(i, u)
  56581. : o.highlightAuto(u);
  56582. }
  56583. try {
  56584. return i && 'text' !== i ? { value: o.highlight(u, i) } : { value: _ };
  56585. } catch (s) {
  56586. return { value: _ };
  56587. }
  56588. })({ astGenerator: $e, language: u, code: qe, defaultCodeValue: Qe });
  56589. null === et.language && (et.value = Qe);
  56590. var tt = et.value.length;
  56591. 1 === tt &&
  56592. 'text' === et.value[0].type &&
  56593. (tt = et.value[0].value.split('\n').length);
  56594. var rt = processLines(et, pe, be, z, Z, ie, tt + ie, ce, fe);
  56595. return Pe.createElement(
  56596. Se,
  56597. Xe,
  56598. Pe.createElement(
  56599. Te,
  56600. B,
  56601. !Z && We,
  56602. _e({ rows: rt, stylesheet: x, useInlineStyles: V })
  56603. )
  56604. );
  56605. };
  56606. })(Dx, {});
  56607. Lx.registerLanguage = Dx.registerLanguage;
  56608. const Bx = Lx;
  56609. var Fx = __webpack_require__(95089);
  56610. const qx = __webpack_require__.n(Fx)();
  56611. var $x = __webpack_require__(65772);
  56612. const Vx = __webpack_require__.n($x)();
  56613. var Ux = __webpack_require__(17285);
  56614. const zx = __webpack_require__.n(Ux)();
  56615. var Wx = __webpack_require__(35344);
  56616. const Kx = __webpack_require__.n(Wx)();
  56617. var Hx = __webpack_require__(17533);
  56618. const Jx = __webpack_require__.n(Hx)();
  56619. var Gx = __webpack_require__(73402);
  56620. const Yx = __webpack_require__.n(Gx)();
  56621. var Xx = __webpack_require__(26571);
  56622. const Zx = __webpack_require__.n(Xx)(),
  56623. after_load = () => {
  56624. Bx.registerLanguage('json', Vx),
  56625. Bx.registerLanguage('js', qx),
  56626. Bx.registerLanguage('xml', zx),
  56627. Bx.registerLanguage('yaml', Jx),
  56628. Bx.registerLanguage('http', Yx),
  56629. Bx.registerLanguage('bash', Kx),
  56630. Bx.registerLanguage('powershell', Zx),
  56631. Bx.registerLanguage('javascript', qx);
  56632. },
  56633. Qx = {
  56634. hljs: {
  56635. display: 'block',
  56636. overflowX: 'auto',
  56637. padding: '0.5em',
  56638. background: '#333',
  56639. color: 'white'
  56640. },
  56641. 'hljs-name': { fontWeight: 'bold' },
  56642. 'hljs-strong': { fontWeight: 'bold' },
  56643. 'hljs-code': { fontStyle: 'italic', color: '#888' },
  56644. 'hljs-emphasis': { fontStyle: 'italic' },
  56645. 'hljs-tag': { color: '#62c8f3' },
  56646. 'hljs-variable': { color: '#ade5fc' },
  56647. 'hljs-template-variable': { color: '#ade5fc' },
  56648. 'hljs-selector-id': { color: '#ade5fc' },
  56649. 'hljs-selector-class': { color: '#ade5fc' },
  56650. 'hljs-string': { color: '#a2fca2' },
  56651. 'hljs-bullet': { color: '#d36363' },
  56652. 'hljs-type': { color: '#ffa' },
  56653. 'hljs-title': { color: '#ffa' },
  56654. 'hljs-section': { color: '#ffa' },
  56655. 'hljs-attribute': { color: '#ffa' },
  56656. 'hljs-quote': { color: '#ffa' },
  56657. 'hljs-built_in': { color: '#ffa' },
  56658. 'hljs-builtin-name': { color: '#ffa' },
  56659. 'hljs-number': { color: '#d36363' },
  56660. 'hljs-symbol': { color: '#d36363' },
  56661. 'hljs-keyword': { color: '#fcc28c' },
  56662. 'hljs-selector-tag': { color: '#fcc28c' },
  56663. 'hljs-literal': { color: '#fcc28c' },
  56664. 'hljs-comment': { color: '#888' },
  56665. 'hljs-deletion': { color: '#333', backgroundColor: '#fc9b9b' },
  56666. 'hljs-regexp': { color: '#c6b4f0' },
  56667. 'hljs-link': { color: '#c6b4f0' },
  56668. 'hljs-meta': { color: '#fc9b9b' },
  56669. 'hljs-addition': { backgroundColor: '#a2fca2', color: '#333' }
  56670. },
  56671. tk = {
  56672. agate: Qx,
  56673. arta: {
  56674. hljs: {
  56675. display: 'block',
  56676. overflowX: 'auto',
  56677. padding: '0.5em',
  56678. background: '#222',
  56679. color: '#aaa'
  56680. },
  56681. 'hljs-subst': { color: '#aaa' },
  56682. 'hljs-section': { color: '#fff', fontWeight: 'bold' },
  56683. 'hljs-comment': { color: '#444' },
  56684. 'hljs-quote': { color: '#444' },
  56685. 'hljs-meta': { color: '#444' },
  56686. 'hljs-string': { color: '#ffcc33' },
  56687. 'hljs-symbol': { color: '#ffcc33' },
  56688. 'hljs-bullet': { color: '#ffcc33' },
  56689. 'hljs-regexp': { color: '#ffcc33' },
  56690. 'hljs-number': { color: '#00cc66' },
  56691. 'hljs-addition': { color: '#00cc66' },
  56692. 'hljs-built_in': { color: '#32aaee' },
  56693. 'hljs-builtin-name': { color: '#32aaee' },
  56694. 'hljs-literal': { color: '#32aaee' },
  56695. 'hljs-type': { color: '#32aaee' },
  56696. 'hljs-template-variable': { color: '#32aaee' },
  56697. 'hljs-attribute': { color: '#32aaee' },
  56698. 'hljs-link': { color: '#32aaee' },
  56699. 'hljs-keyword': { color: '#6644aa' },
  56700. 'hljs-selector-tag': { color: '#6644aa' },
  56701. 'hljs-name': { color: '#6644aa' },
  56702. 'hljs-selector-id': { color: '#6644aa' },
  56703. 'hljs-selector-class': { color: '#6644aa' },
  56704. 'hljs-title': { color: '#bb1166' },
  56705. 'hljs-variable': { color: '#bb1166' },
  56706. 'hljs-deletion': { color: '#bb1166' },
  56707. 'hljs-template-tag': { color: '#bb1166' },
  56708. 'hljs-doctag': { fontWeight: 'bold' },
  56709. 'hljs-strong': { fontWeight: 'bold' },
  56710. 'hljs-emphasis': { fontStyle: 'italic' }
  56711. },
  56712. monokai: {
  56713. hljs: {
  56714. display: 'block',
  56715. overflowX: 'auto',
  56716. padding: '0.5em',
  56717. background: '#272822',
  56718. color: '#ddd'
  56719. },
  56720. 'hljs-tag': { color: '#f92672' },
  56721. 'hljs-keyword': { color: '#f92672', fontWeight: 'bold' },
  56722. 'hljs-selector-tag': { color: '#f92672', fontWeight: 'bold' },
  56723. 'hljs-literal': { color: '#f92672', fontWeight: 'bold' },
  56724. 'hljs-strong': { color: '#f92672' },
  56725. 'hljs-name': { color: '#f92672' },
  56726. 'hljs-code': { color: '#66d9ef' },
  56727. 'hljs-class .hljs-title': { color: 'white' },
  56728. 'hljs-attribute': { color: '#bf79db' },
  56729. 'hljs-symbol': { color: '#bf79db' },
  56730. 'hljs-regexp': { color: '#bf79db' },
  56731. 'hljs-link': { color: '#bf79db' },
  56732. 'hljs-string': { color: '#a6e22e' },
  56733. 'hljs-bullet': { color: '#a6e22e' },
  56734. 'hljs-subst': { color: '#a6e22e' },
  56735. 'hljs-title': { color: '#a6e22e', fontWeight: 'bold' },
  56736. 'hljs-section': { color: '#a6e22e', fontWeight: 'bold' },
  56737. 'hljs-emphasis': { color: '#a6e22e' },
  56738. 'hljs-type': { color: '#a6e22e', fontWeight: 'bold' },
  56739. 'hljs-built_in': { color: '#a6e22e' },
  56740. 'hljs-builtin-name': { color: '#a6e22e' },
  56741. 'hljs-selector-attr': { color: '#a6e22e' },
  56742. 'hljs-selector-pseudo': { color: '#a6e22e' },
  56743. 'hljs-addition': { color: '#a6e22e' },
  56744. 'hljs-variable': { color: '#a6e22e' },
  56745. 'hljs-template-tag': { color: '#a6e22e' },
  56746. 'hljs-template-variable': { color: '#a6e22e' },
  56747. 'hljs-comment': { color: '#75715e' },
  56748. 'hljs-quote': { color: '#75715e' },
  56749. 'hljs-deletion': { color: '#75715e' },
  56750. 'hljs-meta': { color: '#75715e' },
  56751. 'hljs-doctag': { fontWeight: 'bold' },
  56752. 'hljs-selector-id': { fontWeight: 'bold' }
  56753. },
  56754. nord: {
  56755. hljs: {
  56756. display: 'block',
  56757. overflowX: 'auto',
  56758. padding: '0.5em',
  56759. background: '#2E3440',
  56760. color: '#D8DEE9'
  56761. },
  56762. 'hljs-subst': { color: '#D8DEE9' },
  56763. 'hljs-selector-tag': { color: '#81A1C1' },
  56764. 'hljs-selector-id': { color: '#8FBCBB', fontWeight: 'bold' },
  56765. 'hljs-selector-class': { color: '#8FBCBB' },
  56766. 'hljs-selector-attr': { color: '#8FBCBB' },
  56767. 'hljs-selector-pseudo': { color: '#88C0D0' },
  56768. 'hljs-addition': { backgroundColor: 'rgba(163, 190, 140, 0.5)' },
  56769. 'hljs-deletion': { backgroundColor: 'rgba(191, 97, 106, 0.5)' },
  56770. 'hljs-built_in': { color: '#8FBCBB' },
  56771. 'hljs-type': { color: '#8FBCBB' },
  56772. 'hljs-class': { color: '#8FBCBB' },
  56773. 'hljs-function': { color: '#88C0D0' },
  56774. 'hljs-function > .hljs-title': { color: '#88C0D0' },
  56775. 'hljs-keyword': { color: '#81A1C1' },
  56776. 'hljs-literal': { color: '#81A1C1' },
  56777. 'hljs-symbol': { color: '#81A1C1' },
  56778. 'hljs-number': { color: '#B48EAD' },
  56779. 'hljs-regexp': { color: '#EBCB8B' },
  56780. 'hljs-string': { color: '#A3BE8C' },
  56781. 'hljs-title': { color: '#8FBCBB' },
  56782. 'hljs-params': { color: '#D8DEE9' },
  56783. 'hljs-bullet': { color: '#81A1C1' },
  56784. 'hljs-code': { color: '#8FBCBB' },
  56785. 'hljs-emphasis': { fontStyle: 'italic' },
  56786. 'hljs-formula': { color: '#8FBCBB' },
  56787. 'hljs-strong': { fontWeight: 'bold' },
  56788. 'hljs-link:hover': { textDecoration: 'underline' },
  56789. 'hljs-quote': { color: '#4C566A' },
  56790. 'hljs-comment': { color: '#4C566A' },
  56791. 'hljs-doctag': { color: '#8FBCBB' },
  56792. 'hljs-meta': { color: '#5E81AC' },
  56793. 'hljs-meta-keyword': { color: '#5E81AC' },
  56794. 'hljs-meta-string': { color: '#A3BE8C' },
  56795. 'hljs-attr': { color: '#8FBCBB' },
  56796. 'hljs-attribute': { color: '#D8DEE9' },
  56797. 'hljs-builtin-name': { color: '#81A1C1' },
  56798. 'hljs-name': { color: '#81A1C1' },
  56799. 'hljs-section': { color: '#88C0D0' },
  56800. 'hljs-tag': { color: '#81A1C1' },
  56801. 'hljs-variable': { color: '#D8DEE9' },
  56802. 'hljs-template-variable': { color: '#D8DEE9' },
  56803. 'hljs-template-tag': { color: '#5E81AC' },
  56804. 'abnf .hljs-attribute': { color: '#88C0D0' },
  56805. 'abnf .hljs-symbol': { color: '#EBCB8B' },
  56806. 'apache .hljs-attribute': { color: '#88C0D0' },
  56807. 'apache .hljs-section': { color: '#81A1C1' },
  56808. 'arduino .hljs-built_in': { color: '#88C0D0' },
  56809. 'aspectj .hljs-meta': { color: '#D08770' },
  56810. 'aspectj > .hljs-title': { color: '#88C0D0' },
  56811. 'bnf .hljs-attribute': { color: '#8FBCBB' },
  56812. 'clojure .hljs-name': { color: '#88C0D0' },
  56813. 'clojure .hljs-symbol': { color: '#EBCB8B' },
  56814. 'coq .hljs-built_in': { color: '#88C0D0' },
  56815. 'cpp .hljs-meta-string': { color: '#8FBCBB' },
  56816. 'css .hljs-built_in': { color: '#88C0D0' },
  56817. 'css .hljs-keyword': { color: '#D08770' },
  56818. 'diff .hljs-meta': { color: '#8FBCBB' },
  56819. 'ebnf .hljs-attribute': { color: '#8FBCBB' },
  56820. 'glsl .hljs-built_in': { color: '#88C0D0' },
  56821. 'groovy .hljs-meta:not(:first-child)': { color: '#D08770' },
  56822. 'haxe .hljs-meta': { color: '#D08770' },
  56823. 'java .hljs-meta': { color: '#D08770' },
  56824. 'ldif .hljs-attribute': { color: '#8FBCBB' },
  56825. 'lisp .hljs-name': { color: '#88C0D0' },
  56826. 'lua .hljs-built_in': { color: '#88C0D0' },
  56827. 'moonscript .hljs-built_in': { color: '#88C0D0' },
  56828. 'nginx .hljs-attribute': { color: '#88C0D0' },
  56829. 'nginx .hljs-section': { color: '#5E81AC' },
  56830. 'pf .hljs-built_in': { color: '#88C0D0' },
  56831. 'processing .hljs-built_in': { color: '#88C0D0' },
  56832. 'scss .hljs-keyword': { color: '#81A1C1' },
  56833. 'stylus .hljs-keyword': { color: '#81A1C1' },
  56834. 'swift .hljs-meta': { color: '#D08770' },
  56835. 'vim .hljs-built_in': { color: '#88C0D0', fontStyle: 'italic' },
  56836. 'yaml .hljs-meta': { color: '#D08770' }
  56837. },
  56838. obsidian: {
  56839. hljs: {
  56840. display: 'block',
  56841. overflowX: 'auto',
  56842. padding: '0.5em',
  56843. background: '#282b2e',
  56844. color: '#e0e2e4'
  56845. },
  56846. 'hljs-keyword': { color: '#93c763', fontWeight: 'bold' },
  56847. 'hljs-selector-tag': { color: '#93c763', fontWeight: 'bold' },
  56848. 'hljs-literal': { color: '#93c763', fontWeight: 'bold' },
  56849. 'hljs-selector-id': { color: '#93c763' },
  56850. 'hljs-number': { color: '#ffcd22' },
  56851. 'hljs-attribute': { color: '#668bb0' },
  56852. 'hljs-code': { color: 'white' },
  56853. 'hljs-class .hljs-title': { color: 'white' },
  56854. 'hljs-section': { color: 'white', fontWeight: 'bold' },
  56855. 'hljs-regexp': { color: '#d39745' },
  56856. 'hljs-link': { color: '#d39745' },
  56857. 'hljs-meta': { color: '#557182' },
  56858. 'hljs-tag': { color: '#8cbbad' },
  56859. 'hljs-name': { color: '#8cbbad', fontWeight: 'bold' },
  56860. 'hljs-bullet': { color: '#8cbbad' },
  56861. 'hljs-subst': { color: '#8cbbad' },
  56862. 'hljs-emphasis': { color: '#8cbbad' },
  56863. 'hljs-type': { color: '#8cbbad', fontWeight: 'bold' },
  56864. 'hljs-built_in': { color: '#8cbbad' },
  56865. 'hljs-selector-attr': { color: '#8cbbad' },
  56866. 'hljs-selector-pseudo': { color: '#8cbbad' },
  56867. 'hljs-addition': { color: '#8cbbad' },
  56868. 'hljs-variable': { color: '#8cbbad' },
  56869. 'hljs-template-tag': { color: '#8cbbad' },
  56870. 'hljs-template-variable': { color: '#8cbbad' },
  56871. 'hljs-string': { color: '#ec7600' },
  56872. 'hljs-symbol': { color: '#ec7600' },
  56873. 'hljs-comment': { color: '#818e96' },
  56874. 'hljs-quote': { color: '#818e96' },
  56875. 'hljs-deletion': { color: '#818e96' },
  56876. 'hljs-selector-class': { color: '#A082BD' },
  56877. 'hljs-doctag': { fontWeight: 'bold' },
  56878. 'hljs-title': { fontWeight: 'bold' },
  56879. 'hljs-strong': { fontWeight: 'bold' }
  56880. },
  56881. 'tomorrow-night': {
  56882. 'hljs-comment': { color: '#969896' },
  56883. 'hljs-quote': { color: '#969896' },
  56884. 'hljs-variable': { color: '#cc6666' },
  56885. 'hljs-template-variable': { color: '#cc6666' },
  56886. 'hljs-tag': { color: '#cc6666' },
  56887. 'hljs-name': { color: '#cc6666' },
  56888. 'hljs-selector-id': { color: '#cc6666' },
  56889. 'hljs-selector-class': { color: '#cc6666' },
  56890. 'hljs-regexp': { color: '#cc6666' },
  56891. 'hljs-deletion': { color: '#cc6666' },
  56892. 'hljs-number': { color: '#de935f' },
  56893. 'hljs-built_in': { color: '#de935f' },
  56894. 'hljs-builtin-name': { color: '#de935f' },
  56895. 'hljs-literal': { color: '#de935f' },
  56896. 'hljs-type': { color: '#de935f' },
  56897. 'hljs-params': { color: '#de935f' },
  56898. 'hljs-meta': { color: '#de935f' },
  56899. 'hljs-link': { color: '#de935f' },
  56900. 'hljs-attribute': { color: '#f0c674' },
  56901. 'hljs-string': { color: '#b5bd68' },
  56902. 'hljs-symbol': { color: '#b5bd68' },
  56903. 'hljs-bullet': { color: '#b5bd68' },
  56904. 'hljs-addition': { color: '#b5bd68' },
  56905. 'hljs-title': { color: '#81a2be' },
  56906. 'hljs-section': { color: '#81a2be' },
  56907. 'hljs-keyword': { color: '#b294bb' },
  56908. 'hljs-selector-tag': { color: '#b294bb' },
  56909. hljs: {
  56910. display: 'block',
  56911. overflowX: 'auto',
  56912. background: '#1d1f21',
  56913. color: '#c5c8c6',
  56914. padding: '0.5em'
  56915. },
  56916. 'hljs-emphasis': { fontStyle: 'italic' },
  56917. 'hljs-strong': { fontWeight: 'bold' }
  56918. },
  56919. idea: {
  56920. hljs: {
  56921. display: 'block',
  56922. overflowX: 'auto',
  56923. padding: '0.5em',
  56924. color: '#000',
  56925. background: '#fff'
  56926. },
  56927. 'hljs-subst': { fontWeight: 'normal', color: '#000' },
  56928. 'hljs-title': { fontWeight: 'normal', color: '#000' },
  56929. 'hljs-comment': { color: '#808080', fontStyle: 'italic' },
  56930. 'hljs-quote': { color: '#808080', fontStyle: 'italic' },
  56931. 'hljs-meta': { color: '#808000' },
  56932. 'hljs-tag': { background: '#efefef' },
  56933. 'hljs-section': { fontWeight: 'bold', color: '#000080' },
  56934. 'hljs-name': { fontWeight: 'bold', color: '#000080' },
  56935. 'hljs-literal': { fontWeight: 'bold', color: '#000080' },
  56936. 'hljs-keyword': { fontWeight: 'bold', color: '#000080' },
  56937. 'hljs-selector-tag': { fontWeight: 'bold', color: '#000080' },
  56938. 'hljs-type': { fontWeight: 'bold', color: '#000080' },
  56939. 'hljs-selector-id': { fontWeight: 'bold', color: '#000080' },
  56940. 'hljs-selector-class': { fontWeight: 'bold', color: '#000080' },
  56941. 'hljs-attribute': { fontWeight: 'bold', color: '#0000ff' },
  56942. 'hljs-number': { fontWeight: 'normal', color: '#0000ff' },
  56943. 'hljs-regexp': { fontWeight: 'normal', color: '#0000ff' },
  56944. 'hljs-link': { fontWeight: 'normal', color: '#0000ff' },
  56945. 'hljs-string': { color: '#008000', fontWeight: 'bold' },
  56946. 'hljs-symbol': { color: '#000', background: '#d0eded', fontStyle: 'italic' },
  56947. 'hljs-bullet': { color: '#000', background: '#d0eded', fontStyle: 'italic' },
  56948. 'hljs-formula': { color: '#000', background: '#d0eded', fontStyle: 'italic' },
  56949. 'hljs-doctag': { textDecoration: 'underline' },
  56950. 'hljs-variable': { color: '#660e7a' },
  56951. 'hljs-template-variable': { color: '#660e7a' },
  56952. 'hljs-addition': { background: '#baeeba' },
  56953. 'hljs-deletion': { background: '#ffc8bd' },
  56954. 'hljs-emphasis': { fontStyle: 'italic' },
  56955. 'hljs-strong': { fontWeight: 'bold' }
  56956. }
  56957. },
  56958. rk = Qx,
  56959. components_SyntaxHighlighter = ({
  56960. language: s,
  56961. className: o = '',
  56962. getConfigs: i,
  56963. syntaxHighlighting: u = {},
  56964. children: _ = ''
  56965. }) => {
  56966. const w = i().syntaxHighlight.theme,
  56967. { styles: x, defaultStyle: C } = u,
  56968. j = x?.[w] ?? C;
  56969. return Pe.createElement(Bx, { language: s, className: o, style: j }, _);
  56970. };
  56971. var nk = __webpack_require__(5419),
  56972. sk = __webpack_require__.n(nk);
  56973. const components_HighlightCode = ({
  56974. fileName: s = 'response.txt',
  56975. className: o,
  56976. downloadable: i,
  56977. getComponent: u,
  56978. canCopy: _,
  56979. language: w,
  56980. children: x
  56981. }) => {
  56982. const C = (0, Pe.useRef)(null),
  56983. j = u('SyntaxHighlighter', !0),
  56984. handlePreventYScrollingBeyondElement = (s) => {
  56985. const { target: o, deltaY: i } = s,
  56986. { scrollHeight: u, offsetHeight: _, scrollTop: w } = o;
  56987. u > _ && ((0 === w && i < 0) || (_ + w >= u && i > 0)) && s.preventDefault();
  56988. };
  56989. return (
  56990. (0, Pe.useEffect)(() => {
  56991. const s = Array.from(C.current.childNodes).filter(
  56992. (s) => !!s.nodeType && s.classList.contains('microlight')
  56993. );
  56994. return (
  56995. s.forEach((s) =>
  56996. s.addEventListener('mousewheel', handlePreventYScrollingBeyondElement, {
  56997. passive: !1
  56998. })
  56999. ),
  57000. () => {
  57001. s.forEach((s) =>
  57002. s.removeEventListener('mousewheel', handlePreventYScrollingBeyondElement)
  57003. );
  57004. }
  57005. );
  57006. }, [x, o, w]),
  57007. Pe.createElement(
  57008. 'div',
  57009. { className: 'highlight-code', ref: C },
  57010. _ &&
  57011. Pe.createElement(
  57012. 'div',
  57013. { className: 'copy-to-clipboard' },
  57014. Pe.createElement(
  57015. Jn.CopyToClipboard,
  57016. { text: x },
  57017. Pe.createElement('button', null)
  57018. )
  57019. ),
  57020. i
  57021. ? Pe.createElement(
  57022. 'button',
  57023. {
  57024. className: 'download-contents',
  57025. onClick: () => {
  57026. sk()(x, s);
  57027. }
  57028. },
  57029. 'Download'
  57030. )
  57031. : null,
  57032. Pe.createElement(
  57033. j,
  57034. {
  57035. language: w,
  57036. className: Hn()(o, 'microlight'),
  57037. renderPlainText: ({ children: s, PlainTextViewer: i }) =>
  57038. Pe.createElement(i, { className: o }, s)
  57039. },
  57040. x
  57041. )
  57042. )
  57043. );
  57044. },
  57045. components_PlainTextViewer = ({ className: s = '', children: o }) =>
  57046. Pe.createElement('pre', { className: Hn()('microlight', s) }, o),
  57047. wrap_components_SyntaxHighlighter =
  57048. (s, o) =>
  57049. ({ renderPlainText: i, children: u, ..._ }) => {
  57050. const w = o.getConfigs().syntaxHighlight.activated,
  57051. x = o.getComponent('PlainTextViewer');
  57052. return w || 'function' != typeof i
  57053. ? w
  57054. ? Pe.createElement(s, _, u)
  57055. : Pe.createElement(x, null, u)
  57056. : i({ children: u, PlainTextViewer: x });
  57057. },
  57058. SyntaxHighlightingPlugin1 = () => ({
  57059. afterLoad: after_load,
  57060. rootInjects: { syntaxHighlighting: { styles: tk, defaultStyle: rk } },
  57061. components: {
  57062. SyntaxHighlighter: components_SyntaxHighlighter,
  57063. HighlightCode: components_HighlightCode,
  57064. PlainTextViewer: components_PlainTextViewer
  57065. }
  57066. }),
  57067. SyntaxHighlightingPlugin2 = () => ({
  57068. wrapComponents: { SyntaxHighlighter: wrap_components_SyntaxHighlighter }
  57069. }),
  57070. syntax_highlighting = () => [SyntaxHighlightingPlugin1, SyntaxHighlightingPlugin2],
  57071. versions_after_load = () => {
  57072. const {
  57073. GIT_DIRTY: s,
  57074. GIT_COMMIT: o,
  57075. PACKAGE_VERSION: i,
  57076. BUILD_TIME: u
  57077. } = {
  57078. PACKAGE_VERSION: '5.18.2',
  57079. GIT_COMMIT: 'g1dd1f7cc',
  57080. GIT_DIRTY: !0,
  57081. BUILD_TIME: 'Thu, 07 Nov 2024 14:01:17 GMT'
  57082. };
  57083. (at.versions = at.versions || {}),
  57084. (at.versions.swaggerUI = {
  57085. version: i,
  57086. gitRevision: o,
  57087. gitDirty: s,
  57088. buildTimestamp: u
  57089. });
  57090. },
  57091. versions = () => ({ afterLoad: versions_after_load });
  57092. var ok = __webpack_require__(47248),
  57093. lk = __webpack_require__.n(ok);
  57094. const uk = console.error,
  57095. withErrorBoundary = (s) => (o) => {
  57096. const { getComponent: i, fn: u } = s(),
  57097. _ = i('ErrorBoundary'),
  57098. w = u.getDisplayName(o);
  57099. class WithErrorBoundary extends Pe.Component {
  57100. render() {
  57101. return Pe.createElement(
  57102. _,
  57103. { targetName: w, getComponent: i, fn: u },
  57104. Pe.createElement(o, Rn()({}, this.props, this.context))
  57105. );
  57106. }
  57107. }
  57108. var x;
  57109. return (
  57110. (WithErrorBoundary.displayName = `WithErrorBoundary(${w})`),
  57111. (x = o).prototype &&
  57112. x.prototype.isReactComponent &&
  57113. (WithErrorBoundary.prototype.mapStateToProps = o.prototype.mapStateToProps),
  57114. WithErrorBoundary
  57115. );
  57116. },
  57117. fallback = ({ name: s }) =>
  57118. Pe.createElement(
  57119. 'div',
  57120. { className: 'fallback' },
  57121. '😱 ',
  57122. Pe.createElement(
  57123. 'i',
  57124. null,
  57125. 'Could not render ',
  57126. 't' === s ? 'this component' : s,
  57127. ', see the console.'
  57128. )
  57129. );
  57130. class ErrorBoundary extends Pe.Component {
  57131. static defaultProps = {
  57132. targetName: 'this component',
  57133. getComponent: () => fallback,
  57134. fn: { componentDidCatch: uk },
  57135. children: null
  57136. };
  57137. static getDerivedStateFromError(s) {
  57138. return { hasError: !0, error: s };
  57139. }
  57140. constructor(...s) {
  57141. super(...s), (this.state = { hasError: !1, error: null });
  57142. }
  57143. componentDidCatch(s, o) {
  57144. this.props.fn.componentDidCatch(s, o);
  57145. }
  57146. render() {
  57147. const { getComponent: s, targetName: o, children: i } = this.props;
  57148. if (this.state.hasError) {
  57149. const i = s('Fallback');
  57150. return Pe.createElement(i, { name: o });
  57151. }
  57152. return i;
  57153. }
  57154. }
  57155. const pk = ErrorBoundary,
  57156. safe_render =
  57157. ({ componentList: s = [], fullOverride: o = !1 } = {}) =>
  57158. ({ getSystem: i }) => {
  57159. const u = o
  57160. ? s
  57161. : [
  57162. 'App',
  57163. 'BaseLayout',
  57164. 'VersionPragmaFilter',
  57165. 'InfoContainer',
  57166. 'ServersContainer',
  57167. 'SchemesContainer',
  57168. 'AuthorizeBtnContainer',
  57169. 'FilterContainer',
  57170. 'Operations',
  57171. 'OperationContainer',
  57172. 'parameters',
  57173. 'responses',
  57174. 'OperationServers',
  57175. 'Models',
  57176. 'ModelWrapper',
  57177. ...s
  57178. ],
  57179. _ = lk()(
  57180. u,
  57181. Array(u.length).fill((s, { fn: o }) => o.withErrorBoundary(s))
  57182. );
  57183. return {
  57184. fn: { componentDidCatch: uk, withErrorBoundary: withErrorBoundary(i) },
  57185. components: { ErrorBoundary: pk, Fallback: fallback },
  57186. wrapComponents: _
  57187. };
  57188. };
  57189. class App extends Pe.Component {
  57190. getLayout() {
  57191. const { getComponent: s, layoutSelectors: o } = this.props,
  57192. i = o.current(),
  57193. u = s(i, !0);
  57194. return u || (() => Pe.createElement('h1', null, ' No layout defined for "', i, '" '));
  57195. }
  57196. render() {
  57197. const s = this.getLayout();
  57198. return Pe.createElement(s, null);
  57199. }
  57200. }
  57201. const fk = App;
  57202. class AuthorizationPopup extends Pe.Component {
  57203. close = () => {
  57204. let { authActions: s } = this.props;
  57205. s.showDefinitions(!1);
  57206. };
  57207. render() {
  57208. let {
  57209. authSelectors: s,
  57210. authActions: o,
  57211. getComponent: i,
  57212. errSelectors: u,
  57213. specSelectors: _,
  57214. fn: { AST: w = {} }
  57215. } = this.props,
  57216. x = s.shownDefinitions();
  57217. const C = i('auths'),
  57218. j = i('CloseIcon');
  57219. return Pe.createElement(
  57220. 'div',
  57221. { className: 'dialog-ux' },
  57222. Pe.createElement('div', { className: 'backdrop-ux' }),
  57223. Pe.createElement(
  57224. 'div',
  57225. { className: 'modal-ux' },
  57226. Pe.createElement(
  57227. 'div',
  57228. { className: 'modal-dialog-ux' },
  57229. Pe.createElement(
  57230. 'div',
  57231. { className: 'modal-ux-inner' },
  57232. Pe.createElement(
  57233. 'div',
  57234. { className: 'modal-ux-header' },
  57235. Pe.createElement('h3', null, 'Available authorizations'),
  57236. Pe.createElement(
  57237. 'button',
  57238. { type: 'button', className: 'close-modal', onClick: this.close },
  57239. Pe.createElement(j, null)
  57240. )
  57241. ),
  57242. Pe.createElement(
  57243. 'div',
  57244. { className: 'modal-ux-content' },
  57245. x.valueSeq().map((x, j) =>
  57246. Pe.createElement(C, {
  57247. key: j,
  57248. AST: w,
  57249. definitions: x,
  57250. getComponent: i,
  57251. errSelectors: u,
  57252. authSelectors: s,
  57253. authActions: o,
  57254. specSelectors: _
  57255. })
  57256. )
  57257. )
  57258. )
  57259. )
  57260. )
  57261. );
  57262. }
  57263. }
  57264. class AuthorizeBtn extends Pe.Component {
  57265. render() {
  57266. let { isAuthorized: s, showPopup: o, onClick: i, getComponent: u } = this.props;
  57267. const _ = u('authorizationPopup', !0),
  57268. w = u('LockAuthIcon', !0),
  57269. x = u('UnlockAuthIcon', !0);
  57270. return Pe.createElement(
  57271. 'div',
  57272. { className: 'auth-wrapper' },
  57273. Pe.createElement(
  57274. 'button',
  57275. { className: s ? 'btn authorize locked' : 'btn authorize unlocked', onClick: i },
  57276. Pe.createElement('span', null, 'Authorize'),
  57277. s ? Pe.createElement(w, null) : Pe.createElement(x, null)
  57278. ),
  57279. o && Pe.createElement(_, null)
  57280. );
  57281. }
  57282. }
  57283. class AuthorizeBtnContainer extends Pe.Component {
  57284. render() {
  57285. const {
  57286. authActions: s,
  57287. authSelectors: o,
  57288. specSelectors: i,
  57289. getComponent: u
  57290. } = this.props,
  57291. _ = i.securityDefinitions(),
  57292. w = o.definitionsToAuthorize(),
  57293. x = u('authorizeBtn');
  57294. return _
  57295. ? Pe.createElement(x, {
  57296. onClick: () => s.showDefinitions(w),
  57297. isAuthorized: !!o.authorized().size,
  57298. showPopup: !!o.shownDefinitions(),
  57299. getComponent: u
  57300. })
  57301. : null;
  57302. }
  57303. }
  57304. class AuthorizeOperationBtn extends Pe.Component {
  57305. onClick = (s) => {
  57306. s.stopPropagation();
  57307. let { onClick: o } = this.props;
  57308. o && o();
  57309. };
  57310. render() {
  57311. let { isAuthorized: s, getComponent: o } = this.props;
  57312. const i = o('LockAuthOperationIcon', !0),
  57313. u = o('UnlockAuthOperationIcon', !0);
  57314. return Pe.createElement(
  57315. 'button',
  57316. {
  57317. className: 'authorization__btn',
  57318. 'aria-label': s ? 'authorization button locked' : 'authorization button unlocked',
  57319. onClick: this.onClick
  57320. },
  57321. s
  57322. ? Pe.createElement(i, { className: 'locked' })
  57323. : Pe.createElement(u, { className: 'unlocked' })
  57324. );
  57325. }
  57326. }
  57327. class Auths extends Pe.Component {
  57328. constructor(s, o) {
  57329. super(s, o), (this.state = {});
  57330. }
  57331. onAuthChange = (s) => {
  57332. let { name: o } = s;
  57333. this.setState({ [o]: s });
  57334. };
  57335. submitAuth = (s) => {
  57336. s.preventDefault();
  57337. let { authActions: o } = this.props;
  57338. o.authorizeWithPersistOption(this.state);
  57339. };
  57340. logoutClick = (s) => {
  57341. s.preventDefault();
  57342. let { authActions: o, definitions: i } = this.props,
  57343. u = i.map((s, o) => o).toArray();
  57344. this.setState(u.reduce((s, o) => ((s[o] = ''), s), {})), o.logoutWithPersistOption(u);
  57345. };
  57346. close = (s) => {
  57347. s.preventDefault();
  57348. let { authActions: o } = this.props;
  57349. o.showDefinitions(!1);
  57350. };
  57351. render() {
  57352. let { definitions: s, getComponent: o, authSelectors: i, errSelectors: u } = this.props;
  57353. const _ = o('AuthItem'),
  57354. w = o('oauth2', !0),
  57355. x = o('Button');
  57356. let C = i.authorized(),
  57357. j = s.filter((s, o) => !!C.get(o)),
  57358. L = s.filter((s) => 'oauth2' !== s.get('type')),
  57359. B = s.filter((s) => 'oauth2' === s.get('type'));
  57360. return Pe.createElement(
  57361. 'div',
  57362. { className: 'auth-container' },
  57363. !!L.size &&
  57364. Pe.createElement(
  57365. 'form',
  57366. { onSubmit: this.submitAuth },
  57367. L.map((s, i) =>
  57368. Pe.createElement(_, {
  57369. key: i,
  57370. schema: s,
  57371. name: i,
  57372. getComponent: o,
  57373. onAuthChange: this.onAuthChange,
  57374. authorized: C,
  57375. errSelectors: u
  57376. })
  57377. ).toArray(),
  57378. Pe.createElement(
  57379. 'div',
  57380. { className: 'auth-btn-wrapper' },
  57381. L.size === j.size
  57382. ? Pe.createElement(
  57383. x,
  57384. {
  57385. className: 'btn modal-btn auth',
  57386. onClick: this.logoutClick,
  57387. 'aria-label': 'Remove authorization'
  57388. },
  57389. 'Logout'
  57390. )
  57391. : Pe.createElement(
  57392. x,
  57393. {
  57394. type: 'submit',
  57395. className: 'btn modal-btn auth authorize',
  57396. 'aria-label': 'Apply credentials'
  57397. },
  57398. 'Authorize'
  57399. ),
  57400. Pe.createElement(
  57401. x,
  57402. { className: 'btn modal-btn auth btn-done', onClick: this.close },
  57403. 'Close'
  57404. )
  57405. )
  57406. ),
  57407. B && B.size
  57408. ? Pe.createElement(
  57409. 'div',
  57410. null,
  57411. Pe.createElement(
  57412. 'div',
  57413. { className: 'scope-def' },
  57414. Pe.createElement(
  57415. 'p',
  57416. null,
  57417. 'Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes.'
  57418. ),
  57419. Pe.createElement(
  57420. 'p',
  57421. null,
  57422. 'API requires the following scopes. Select which ones you want to grant to Swagger UI.'
  57423. )
  57424. ),
  57425. s
  57426. .filter((s) => 'oauth2' === s.get('type'))
  57427. .map((s, o) =>
  57428. Pe.createElement(
  57429. 'div',
  57430. { key: o },
  57431. Pe.createElement(w, { authorized: C, schema: s, name: o })
  57432. )
  57433. )
  57434. .toArray()
  57435. )
  57436. : null
  57437. );
  57438. }
  57439. }
  57440. class auth_item_Auths extends Pe.Component {
  57441. render() {
  57442. let {
  57443. schema: s,
  57444. name: o,
  57445. getComponent: i,
  57446. onAuthChange: u,
  57447. authorized: _,
  57448. errSelectors: w
  57449. } = this.props;
  57450. const x = i('apiKeyAuth'),
  57451. C = i('basicAuth');
  57452. let j;
  57453. const L = s.get('type');
  57454. switch (L) {
  57455. case 'apiKey':
  57456. j = Pe.createElement(x, {
  57457. key: o,
  57458. schema: s,
  57459. name: o,
  57460. errSelectors: w,
  57461. authorized: _,
  57462. getComponent: i,
  57463. onChange: u
  57464. });
  57465. break;
  57466. case 'basic':
  57467. j = Pe.createElement(C, {
  57468. key: o,
  57469. schema: s,
  57470. name: o,
  57471. errSelectors: w,
  57472. authorized: _,
  57473. getComponent: i,
  57474. onChange: u
  57475. });
  57476. break;
  57477. default:
  57478. j = Pe.createElement('div', { key: o }, 'Unknown security definition type ', L);
  57479. }
  57480. return Pe.createElement('div', { key: `${o}-jump` }, j);
  57481. }
  57482. }
  57483. class AuthError extends Pe.Component {
  57484. render() {
  57485. let { error: s } = this.props,
  57486. o = s.get('level'),
  57487. i = s.get('message'),
  57488. u = s.get('source');
  57489. return Pe.createElement(
  57490. 'div',
  57491. { className: 'errors' },
  57492. Pe.createElement('b', null, u, ' ', o),
  57493. Pe.createElement('span', null, i)
  57494. );
  57495. }
  57496. }
  57497. class ApiKeyAuth extends Pe.Component {
  57498. constructor(s, o) {
  57499. super(s, o);
  57500. let { name: i, schema: u } = this.props,
  57501. _ = this.getValue();
  57502. this.state = { name: i, schema: u, value: _ };
  57503. }
  57504. getValue() {
  57505. let { name: s, authorized: o } = this.props;
  57506. return o && o.getIn([s, 'value']);
  57507. }
  57508. onChange = (s) => {
  57509. let { onChange: o } = this.props,
  57510. i = s.target.value,
  57511. u = Object.assign({}, this.state, { value: i });
  57512. this.setState(u), o(u);
  57513. };
  57514. render() {
  57515. let { schema: s, getComponent: o, errSelectors: i, name: u } = this.props;
  57516. const _ = o('Input'),
  57517. w = o('Row'),
  57518. x = o('Col'),
  57519. C = o('authError'),
  57520. j = o('Markdown', !0),
  57521. L = o('JumpToPath', !0);
  57522. let B = this.getValue(),
  57523. $ = i.allErrors().filter((s) => s.get('authId') === u);
  57524. return Pe.createElement(
  57525. 'div',
  57526. null,
  57527. Pe.createElement(
  57528. 'h4',
  57529. null,
  57530. Pe.createElement('code', null, u || s.get('name')),
  57531. ' (apiKey)',
  57532. Pe.createElement(L, { path: ['securityDefinitions', u] })
  57533. ),
  57534. B && Pe.createElement('h6', null, 'Authorized'),
  57535. Pe.createElement(w, null, Pe.createElement(j, { source: s.get('description') })),
  57536. Pe.createElement(
  57537. w,
  57538. null,
  57539. Pe.createElement('p', null, 'Name: ', Pe.createElement('code', null, s.get('name')))
  57540. ),
  57541. Pe.createElement(
  57542. w,
  57543. null,
  57544. Pe.createElement('p', null, 'In: ', Pe.createElement('code', null, s.get('in')))
  57545. ),
  57546. Pe.createElement(
  57547. w,
  57548. null,
  57549. Pe.createElement('label', { htmlFor: 'api_key_value' }, 'Value:'),
  57550. B
  57551. ? Pe.createElement('code', null, ' ****** ')
  57552. : Pe.createElement(
  57553. x,
  57554. null,
  57555. Pe.createElement(_, {
  57556. id: 'api_key_value',
  57557. type: 'text',
  57558. onChange: this.onChange,
  57559. autoFocus: !0
  57560. })
  57561. )
  57562. ),
  57563. $.valueSeq().map((s, o) => Pe.createElement(C, { error: s, key: o }))
  57564. );
  57565. }
  57566. }
  57567. class BasicAuth extends Pe.Component {
  57568. constructor(s, o) {
  57569. super(s, o);
  57570. let { schema: i, name: u } = this.props,
  57571. _ = this.getValue().username;
  57572. this.state = { name: u, schema: i, value: _ ? { username: _ } : {} };
  57573. }
  57574. getValue() {
  57575. let { authorized: s, name: o } = this.props;
  57576. return (s && s.getIn([o, 'value'])) || {};
  57577. }
  57578. onChange = (s) => {
  57579. let { onChange: o } = this.props,
  57580. { value: i, name: u } = s.target,
  57581. _ = this.state.value;
  57582. (_[u] = i), this.setState({ value: _ }), o(this.state);
  57583. };
  57584. render() {
  57585. let { schema: s, getComponent: o, name: i, errSelectors: u } = this.props;
  57586. const _ = o('Input'),
  57587. w = o('Row'),
  57588. x = o('Col'),
  57589. C = o('authError'),
  57590. j = o('JumpToPath', !0),
  57591. L = o('Markdown', !0);
  57592. let B = this.getValue().username,
  57593. $ = u.allErrors().filter((s) => s.get('authId') === i);
  57594. return Pe.createElement(
  57595. 'div',
  57596. null,
  57597. Pe.createElement(
  57598. 'h4',
  57599. null,
  57600. 'Basic authorization',
  57601. Pe.createElement(j, { path: ['securityDefinitions', i] })
  57602. ),
  57603. B && Pe.createElement('h6', null, 'Authorized'),
  57604. Pe.createElement(w, null, Pe.createElement(L, { source: s.get('description') })),
  57605. Pe.createElement(
  57606. w,
  57607. null,
  57608. Pe.createElement('label', { htmlFor: 'auth_username' }, 'Username:'),
  57609. B
  57610. ? Pe.createElement('code', null, ' ', B, ' ')
  57611. : Pe.createElement(
  57612. x,
  57613. null,
  57614. Pe.createElement(_, {
  57615. id: 'auth_username',
  57616. type: 'text',
  57617. required: 'required',
  57618. name: 'username',
  57619. onChange: this.onChange,
  57620. autoFocus: !0
  57621. })
  57622. )
  57623. ),
  57624. Pe.createElement(
  57625. w,
  57626. null,
  57627. Pe.createElement('label', { htmlFor: 'auth_password' }, 'Password:'),
  57628. B
  57629. ? Pe.createElement('code', null, ' ****** ')
  57630. : Pe.createElement(
  57631. x,
  57632. null,
  57633. Pe.createElement(_, {
  57634. id: 'auth_password',
  57635. autoComplete: 'new-password',
  57636. name: 'password',
  57637. type: 'password',
  57638. onChange: this.onChange
  57639. })
  57640. )
  57641. ),
  57642. $.valueSeq().map((s, o) => Pe.createElement(C, { error: s, key: o }))
  57643. );
  57644. }
  57645. }
  57646. function example_Example(s) {
  57647. const { example: o, showValue: i, getComponent: u } = s,
  57648. _ = u('Markdown', !0),
  57649. w = u('HighlightCode', !0);
  57650. return o
  57651. ? Pe.createElement(
  57652. 'div',
  57653. { className: 'example' },
  57654. o.get('description')
  57655. ? Pe.createElement(
  57656. 'section',
  57657. { className: 'example__section' },
  57658. Pe.createElement(
  57659. 'div',
  57660. { className: 'example__section-header' },
  57661. 'Example Description'
  57662. ),
  57663. Pe.createElement(
  57664. 'p',
  57665. null,
  57666. Pe.createElement(_, { source: o.get('description') })
  57667. )
  57668. )
  57669. : null,
  57670. i && o.has('value')
  57671. ? Pe.createElement(
  57672. 'section',
  57673. { className: 'example__section' },
  57674. Pe.createElement(
  57675. 'div',
  57676. { className: 'example__section-header' },
  57677. 'Example Value'
  57678. ),
  57679. Pe.createElement(w, null, stringify(o.get('value')))
  57680. )
  57681. : null
  57682. )
  57683. : null;
  57684. }
  57685. class ExamplesSelect extends Pe.PureComponent {
  57686. static defaultProps = {
  57687. examples: $e().Map({}),
  57688. onSelect: (...s) =>
  57689. console.log('DEBUG: ExamplesSelect was not given an onSelect callback', ...s),
  57690. currentExampleKey: null,
  57691. showLabels: !0
  57692. };
  57693. _onSelect = (s, { isSyntheticChange: o = !1 } = {}) => {
  57694. 'function' == typeof this.props.onSelect &&
  57695. this.props.onSelect(s, { isSyntheticChange: o });
  57696. };
  57697. _onDomSelect = (s) => {
  57698. if ('function' == typeof this.props.onSelect) {
  57699. const o = s.target.selectedOptions[0].getAttribute('value');
  57700. this._onSelect(o, { isSyntheticChange: !1 });
  57701. }
  57702. };
  57703. getCurrentExample = () => {
  57704. const { examples: s, currentExampleKey: o } = this.props,
  57705. i = s.get(o),
  57706. u = s.keySeq().first(),
  57707. _ = s.get(u);
  57708. return i || _ || Map({});
  57709. };
  57710. componentDidMount() {
  57711. const { onSelect: s, examples: o } = this.props;
  57712. if ('function' == typeof s) {
  57713. const s = o.first(),
  57714. i = o.keyOf(s);
  57715. this._onSelect(i, { isSyntheticChange: !0 });
  57716. }
  57717. }
  57718. UNSAFE_componentWillReceiveProps(s) {
  57719. const { currentExampleKey: o, examples: i } = s;
  57720. if (i !== this.props.examples && !i.has(o)) {
  57721. const s = i.first(),
  57722. o = i.keyOf(s);
  57723. this._onSelect(o, { isSyntheticChange: !0 });
  57724. }
  57725. }
  57726. render() {
  57727. const {
  57728. examples: s,
  57729. currentExampleKey: o,
  57730. isValueModified: i,
  57731. isModifiedValueAvailable: u,
  57732. showLabels: _
  57733. } = this.props;
  57734. return Pe.createElement(
  57735. 'div',
  57736. { className: 'examples-select' },
  57737. _
  57738. ? Pe.createElement(
  57739. 'span',
  57740. { className: 'examples-select__section-label' },
  57741. 'Examples: '
  57742. )
  57743. : null,
  57744. Pe.createElement(
  57745. 'select',
  57746. {
  57747. className: 'examples-select-element',
  57748. onChange: this._onDomSelect,
  57749. value: u && i ? '__MODIFIED__VALUE__' : o || ''
  57750. },
  57751. u
  57752. ? Pe.createElement('option', { value: '__MODIFIED__VALUE__' }, '[Modified value]')
  57753. : null,
  57754. s
  57755. .map((s, o) =>
  57756. Pe.createElement('option', { key: o, value: o }, s.get('summary') || o)
  57757. )
  57758. .valueSeq()
  57759. )
  57760. );
  57761. }
  57762. }
  57763. const stringifyUnlessList = (s) => (qe.List.isList(s) ? s : stringify(s));
  57764. class ExamplesSelectValueRetainer extends Pe.PureComponent {
  57765. static defaultProps = {
  57766. userHasEditedBody: !1,
  57767. examples: (0, qe.Map)({}),
  57768. currentNamespace: '__DEFAULT__NAMESPACE__',
  57769. setRetainRequestBodyValueFlag: () => {},
  57770. onSelect: (...s) =>
  57771. console.log('ExamplesSelectValueRetainer: no `onSelect` function was provided', ...s),
  57772. updateValue: (...s) =>
  57773. console.log(
  57774. 'ExamplesSelectValueRetainer: no `updateValue` function was provided',
  57775. ...s
  57776. )
  57777. };
  57778. constructor(s) {
  57779. super(s);
  57780. const o = this._getCurrentExampleValue();
  57781. this.state = {
  57782. [s.currentNamespace]: (0, qe.Map)({
  57783. lastUserEditedValue: this.props.currentUserInputValue,
  57784. lastDownstreamValue: o,
  57785. isModifiedValueSelected:
  57786. this.props.userHasEditedBody || this.props.currentUserInputValue !== o
  57787. })
  57788. };
  57789. }
  57790. componentWillUnmount() {
  57791. this.props.setRetainRequestBodyValueFlag(!1);
  57792. }
  57793. _getStateForCurrentNamespace = () => {
  57794. const { currentNamespace: s } = this.props;
  57795. return (this.state[s] || (0, qe.Map)()).toObject();
  57796. };
  57797. _setStateForCurrentNamespace = (s) => {
  57798. const { currentNamespace: o } = this.props;
  57799. return this._setStateForNamespace(o, s);
  57800. };
  57801. _setStateForNamespace = (s, o) => {
  57802. const i = (this.state[s] || (0, qe.Map)()).mergeDeep(o);
  57803. return this.setState({ [s]: i });
  57804. };
  57805. _isCurrentUserInputSameAsExampleValue = () => {
  57806. const { currentUserInputValue: s } = this.props;
  57807. return this._getCurrentExampleValue() === s;
  57808. };
  57809. _getValueForExample = (s, o) => {
  57810. const { examples: i } = o || this.props;
  57811. return stringifyUnlessList((i || (0, qe.Map)({})).getIn([s, 'value']));
  57812. };
  57813. _getCurrentExampleValue = (s) => {
  57814. const { currentKey: o } = s || this.props;
  57815. return this._getValueForExample(o, s || this.props);
  57816. };
  57817. _onExamplesSelect = (s, { isSyntheticChange: o } = {}, ...i) => {
  57818. const {
  57819. onSelect: u,
  57820. updateValue: _,
  57821. currentUserInputValue: w,
  57822. userHasEditedBody: x
  57823. } = this.props,
  57824. { lastUserEditedValue: C } = this._getStateForCurrentNamespace(),
  57825. j = this._getValueForExample(s);
  57826. if ('__MODIFIED__VALUE__' === s)
  57827. return (
  57828. _(stringifyUnlessList(C)),
  57829. this._setStateForCurrentNamespace({ isModifiedValueSelected: !0 })
  57830. );
  57831. 'function' == typeof u && u(s, { isSyntheticChange: o }, ...i),
  57832. this._setStateForCurrentNamespace({
  57833. lastDownstreamValue: j,
  57834. isModifiedValueSelected: (o && x) || (!!w && w !== j)
  57835. }),
  57836. o || ('function' == typeof _ && _(stringifyUnlessList(j)));
  57837. };
  57838. UNSAFE_componentWillReceiveProps(s) {
  57839. const { currentUserInputValue: o, examples: i, onSelect: u, userHasEditedBody: _ } = s,
  57840. { lastUserEditedValue: w, lastDownstreamValue: x } =
  57841. this._getStateForCurrentNamespace(),
  57842. C = this._getValueForExample(s.currentKey, s),
  57843. j = i.filter((s) => s.get('value') === o || stringify(s.get('value')) === o);
  57844. if (j.size) {
  57845. let o;
  57846. (o = j.has(s.currentKey) ? s.currentKey : j.keySeq().first()),
  57847. u(o, { isSyntheticChange: !0 });
  57848. } else
  57849. o !== this.props.currentUserInputValue &&
  57850. o !== w &&
  57851. o !== x &&
  57852. (this.props.setRetainRequestBodyValueFlag(!0),
  57853. this._setStateForNamespace(s.currentNamespace, {
  57854. lastUserEditedValue: s.currentUserInputValue,
  57855. isModifiedValueSelected: _ || o !== C
  57856. }));
  57857. }
  57858. render() {
  57859. const {
  57860. currentUserInputValue: s,
  57861. examples: o,
  57862. currentKey: i,
  57863. getComponent: u,
  57864. userHasEditedBody: _
  57865. } = this.props,
  57866. {
  57867. lastDownstreamValue: w,
  57868. lastUserEditedValue: x,
  57869. isModifiedValueSelected: C
  57870. } = this._getStateForCurrentNamespace(),
  57871. j = u('ExamplesSelect');
  57872. return Pe.createElement(j, {
  57873. examples: o,
  57874. currentExampleKey: i,
  57875. onSelect: this._onExamplesSelect,
  57876. isModifiedValueAvailable: !!x && x !== w,
  57877. isValueModified: (void 0 !== s && C && s !== this._getCurrentExampleValue()) || _
  57878. });
  57879. }
  57880. }
  57881. function oauth2_authorize_authorize({
  57882. auth: s,
  57883. authActions: o,
  57884. errActions: i,
  57885. configs: u,
  57886. authConfigs: _ = {},
  57887. currentServer: w
  57888. }) {
  57889. let { schema: x, scopes: C, name: j, clientId: L } = s,
  57890. B = x.get('flow'),
  57891. $ = [];
  57892. switch (B) {
  57893. case 'password':
  57894. return void o.authorizePassword(s);
  57895. case 'application':
  57896. case 'clientCredentials':
  57897. case 'client_credentials':
  57898. return void o.authorizeApplication(s);
  57899. case 'accessCode':
  57900. case 'authorizationCode':
  57901. case 'authorization_code':
  57902. $.push('response_type=code');
  57903. break;
  57904. case 'implicit':
  57905. $.push('response_type=token');
  57906. }
  57907. 'string' == typeof L && $.push('client_id=' + encodeURIComponent(L));
  57908. let V = u.oauth2RedirectUrl;
  57909. if (void 0 === V)
  57910. return void i.newAuthErr({
  57911. authId: j,
  57912. source: 'validation',
  57913. level: 'error',
  57914. message:
  57915. 'oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed.'
  57916. });
  57917. $.push('redirect_uri=' + encodeURIComponent(V));
  57918. let U = [];
  57919. if (
  57920. (Array.isArray(C) ? (U = C) : $e().List.isList(C) && (U = C.toArray()), U.length > 0)
  57921. ) {
  57922. let s = _.scopeSeparator || ' ';
  57923. $.push('scope=' + encodeURIComponent(U.join(s)));
  57924. }
  57925. let z = utils_btoa(new Date());
  57926. if (
  57927. ($.push('state=' + encodeURIComponent(z)),
  57928. void 0 !== _.realm && $.push('realm=' + encodeURIComponent(_.realm)),
  57929. ('authorizationCode' === B || 'authorization_code' === B || 'accessCode' === B) &&
  57930. _.usePkceWithAuthorizationCodeGrant)
  57931. ) {
  57932. const o = (function generateCodeVerifier() {
  57933. return b64toB64UrlEncoded(St()(32).toString('base64'));
  57934. })(),
  57935. i = (function createCodeChallenge(s) {
  57936. return b64toB64UrlEncoded(kt()('sha256').update(s).digest('base64'));
  57937. })(o);
  57938. $.push('code_challenge=' + i),
  57939. $.push('code_challenge_method=S256'),
  57940. (s.codeVerifier = o);
  57941. }
  57942. let { additionalQueryStringParams: Y } = _;
  57943. for (let s in Y) void 0 !== Y[s] && $.push([s, Y[s]].map(encodeURIComponent).join('='));
  57944. const Z = x.get('authorizationUrl');
  57945. let ee;
  57946. ee = w ? Mt()(sanitizeUrl(Z), w, !0).toString() : sanitizeUrl(Z);
  57947. let ie,
  57948. ae = [ee, $.join('&')].join(-1 === Z.indexOf('?') ? '?' : '&');
  57949. (ie =
  57950. 'implicit' === B
  57951. ? o.preAuthorizeImplicit
  57952. : _.useBasicAuthenticationWithAccessCodeGrant
  57953. ? o.authorizeAccessCodeWithBasicAuthentication
  57954. : o.authorizeAccessCodeWithFormParams),
  57955. o.authPopup(ae, {
  57956. auth: s,
  57957. state: z,
  57958. redirectUrl: V,
  57959. callback: ie,
  57960. errCb: i.newAuthErr
  57961. });
  57962. }
  57963. class Oauth2 extends Pe.Component {
  57964. constructor(s, o) {
  57965. super(s, o);
  57966. let { name: i, schema: u, authorized: _, authSelectors: w } = this.props,
  57967. x = _ && _.get(i),
  57968. C = w.getConfigs() || {},
  57969. j = (x && x.get('username')) || '',
  57970. L = (x && x.get('clientId')) || C.clientId || '',
  57971. B = (x && x.get('clientSecret')) || C.clientSecret || '',
  57972. $ = (x && x.get('passwordType')) || 'basic',
  57973. V = (x && x.get('scopes')) || C.scopes || [];
  57974. 'string' == typeof V && (V = V.split(C.scopeSeparator || ' ')),
  57975. (this.state = {
  57976. appName: C.appName,
  57977. name: i,
  57978. schema: u,
  57979. scopes: V,
  57980. clientId: L,
  57981. clientSecret: B,
  57982. username: j,
  57983. password: '',
  57984. passwordType: $
  57985. });
  57986. }
  57987. close = (s) => {
  57988. s.preventDefault();
  57989. let { authActions: o } = this.props;
  57990. o.showDefinitions(!1);
  57991. };
  57992. authorize = () => {
  57993. let {
  57994. authActions: s,
  57995. errActions: o,
  57996. getConfigs: i,
  57997. authSelectors: u,
  57998. oas3Selectors: _
  57999. } = this.props,
  58000. w = i(),
  58001. x = u.getConfigs();
  58002. o.clear({ authId: name, type: 'auth', source: 'auth' }),
  58003. oauth2_authorize_authorize({
  58004. auth: this.state,
  58005. currentServer: _.serverEffectiveValue(_.selectedServer()),
  58006. authActions: s,
  58007. errActions: o,
  58008. configs: w,
  58009. authConfigs: x
  58010. });
  58011. };
  58012. onScopeChange = (s) => {
  58013. let { target: o } = s,
  58014. { checked: i } = o,
  58015. u = o.dataset.value;
  58016. if (i && -1 === this.state.scopes.indexOf(u)) {
  58017. let s = this.state.scopes.concat([u]);
  58018. this.setState({ scopes: s });
  58019. } else
  58020. !i &&
  58021. this.state.scopes.indexOf(u) > -1 &&
  58022. this.setState({ scopes: this.state.scopes.filter((s) => s !== u) });
  58023. };
  58024. onInputChange = (s) => {
  58025. let {
  58026. target: {
  58027. dataset: { name: o },
  58028. value: i
  58029. }
  58030. } = s,
  58031. u = { [o]: i };
  58032. this.setState(u);
  58033. };
  58034. selectScopes = (s) => {
  58035. s.target.dataset.all
  58036. ? this.setState({
  58037. scopes: Array.from(
  58038. (
  58039. this.props.schema.get('allowedScopes') || this.props.schema.get('scopes')
  58040. ).keys()
  58041. )
  58042. })
  58043. : this.setState({ scopes: [] });
  58044. };
  58045. logout = (s) => {
  58046. s.preventDefault();
  58047. let { authActions: o, errActions: i, name: u } = this.props;
  58048. i.clear({ authId: u, type: 'auth', source: 'auth' }), o.logoutWithPersistOption([u]);
  58049. };
  58050. render() {
  58051. let {
  58052. schema: s,
  58053. getComponent: o,
  58054. authSelectors: i,
  58055. errSelectors: u,
  58056. name: _,
  58057. specSelectors: w
  58058. } = this.props;
  58059. const x = o('Input'),
  58060. C = o('Row'),
  58061. j = o('Col'),
  58062. L = o('Button'),
  58063. B = o('authError'),
  58064. $ = o('JumpToPath', !0),
  58065. V = o('Markdown', !0),
  58066. U = o('InitializedInput'),
  58067. { isOAS3: z } = w;
  58068. let Y = z() ? s.get('openIdConnectUrl') : null;
  58069. const Z = 'implicit',
  58070. ee = 'password',
  58071. ie = z() ? (Y ? 'authorization_code' : 'authorizationCode') : 'accessCode',
  58072. ae = z() ? (Y ? 'client_credentials' : 'clientCredentials') : 'application';
  58073. let le = !!(i.getConfigs() || {}).usePkceWithAuthorizationCodeGrant,
  58074. ce = s.get('flow'),
  58075. pe = ce === ie && le ? ce + ' with PKCE' : ce,
  58076. de = s.get('allowedScopes') || s.get('scopes'),
  58077. fe = !!i.authorized().get(_),
  58078. ye = u.allErrors().filter((s) => s.get('authId') === _),
  58079. be = !ye.filter((s) => 'validation' === s.get('source')).size,
  58080. _e = s.get('description');
  58081. return Pe.createElement(
  58082. 'div',
  58083. null,
  58084. Pe.createElement(
  58085. 'h4',
  58086. null,
  58087. _,
  58088. ' (OAuth2, ',
  58089. pe,
  58090. ') ',
  58091. Pe.createElement($, { path: ['securityDefinitions', _] })
  58092. ),
  58093. this.state.appName
  58094. ? Pe.createElement('h5', null, 'Application: ', this.state.appName, ' ')
  58095. : null,
  58096. _e && Pe.createElement(V, { source: s.get('description') }),
  58097. fe && Pe.createElement('h6', null, 'Authorized'),
  58098. Y &&
  58099. Pe.createElement(
  58100. 'p',
  58101. null,
  58102. 'OpenID Connect URL: ',
  58103. Pe.createElement('code', null, Y)
  58104. ),
  58105. (ce === Z || ce === ie) &&
  58106. Pe.createElement(
  58107. 'p',
  58108. null,
  58109. 'Authorization URL: ',
  58110. Pe.createElement('code', null, s.get('authorizationUrl'))
  58111. ),
  58112. (ce === ee || ce === ie || ce === ae) &&
  58113. Pe.createElement(
  58114. 'p',
  58115. null,
  58116. 'Token URL:',
  58117. Pe.createElement('code', null, ' ', s.get('tokenUrl'))
  58118. ),
  58119. Pe.createElement(
  58120. 'p',
  58121. { className: 'flow' },
  58122. 'Flow: ',
  58123. Pe.createElement('code', null, pe)
  58124. ),
  58125. ce !== ee
  58126. ? null
  58127. : Pe.createElement(
  58128. C,
  58129. null,
  58130. Pe.createElement(
  58131. C,
  58132. null,
  58133. Pe.createElement('label', { htmlFor: 'oauth_username' }, 'username:'),
  58134. fe
  58135. ? Pe.createElement('code', null, ' ', this.state.username, ' ')
  58136. : Pe.createElement(
  58137. j,
  58138. { tablet: 10, desktop: 10 },
  58139. Pe.createElement('input', {
  58140. id: 'oauth_username',
  58141. type: 'text',
  58142. 'data-name': 'username',
  58143. onChange: this.onInputChange,
  58144. autoFocus: !0
  58145. })
  58146. )
  58147. ),
  58148. Pe.createElement(
  58149. C,
  58150. null,
  58151. Pe.createElement('label', { htmlFor: 'oauth_password' }, 'password:'),
  58152. fe
  58153. ? Pe.createElement('code', null, ' ****** ')
  58154. : Pe.createElement(
  58155. j,
  58156. { tablet: 10, desktop: 10 },
  58157. Pe.createElement('input', {
  58158. id: 'oauth_password',
  58159. type: 'password',
  58160. 'data-name': 'password',
  58161. onChange: this.onInputChange
  58162. })
  58163. )
  58164. ),
  58165. Pe.createElement(
  58166. C,
  58167. null,
  58168. Pe.createElement(
  58169. 'label',
  58170. { htmlFor: 'password_type' },
  58171. 'Client credentials location:'
  58172. ),
  58173. fe
  58174. ? Pe.createElement('code', null, ' ', this.state.passwordType, ' ')
  58175. : Pe.createElement(
  58176. j,
  58177. { tablet: 10, desktop: 10 },
  58178. Pe.createElement(
  58179. 'select',
  58180. {
  58181. id: 'password_type',
  58182. 'data-name': 'passwordType',
  58183. onChange: this.onInputChange
  58184. },
  58185. Pe.createElement(
  58186. 'option',
  58187. { value: 'basic' },
  58188. 'Authorization header'
  58189. ),
  58190. Pe.createElement('option', { value: 'request-body' }, 'Request body')
  58191. )
  58192. )
  58193. )
  58194. ),
  58195. (ce === ae || ce === Z || ce === ie || ce === ee) &&
  58196. (!fe || (fe && this.state.clientId)) &&
  58197. Pe.createElement(
  58198. C,
  58199. null,
  58200. Pe.createElement('label', { htmlFor: `client_id_${ce}` }, 'client_id:'),
  58201. fe
  58202. ? Pe.createElement('code', null, ' ****** ')
  58203. : Pe.createElement(
  58204. j,
  58205. { tablet: 10, desktop: 10 },
  58206. Pe.createElement(U, {
  58207. id: `client_id_${ce}`,
  58208. type: 'text',
  58209. required: ce === ee,
  58210. initialValue: this.state.clientId,
  58211. 'data-name': 'clientId',
  58212. onChange: this.onInputChange
  58213. })
  58214. )
  58215. ),
  58216. (ce === ae || ce === ie || ce === ee) &&
  58217. Pe.createElement(
  58218. C,
  58219. null,
  58220. Pe.createElement('label', { htmlFor: `client_secret_${ce}` }, 'client_secret:'),
  58221. fe
  58222. ? Pe.createElement('code', null, ' ****** ')
  58223. : Pe.createElement(
  58224. j,
  58225. { tablet: 10, desktop: 10 },
  58226. Pe.createElement(U, {
  58227. id: `client_secret_${ce}`,
  58228. initialValue: this.state.clientSecret,
  58229. type: 'password',
  58230. 'data-name': 'clientSecret',
  58231. onChange: this.onInputChange
  58232. })
  58233. )
  58234. ),
  58235. !fe && de && de.size
  58236. ? Pe.createElement(
  58237. 'div',
  58238. { className: 'scopes' },
  58239. Pe.createElement(
  58240. 'h2',
  58241. null,
  58242. 'Scopes:',
  58243. Pe.createElement(
  58244. 'a',
  58245. { onClick: this.selectScopes, 'data-all': !0 },
  58246. 'select all'
  58247. ),
  58248. Pe.createElement('a', { onClick: this.selectScopes }, 'select none')
  58249. ),
  58250. de
  58251. .map((s, o) =>
  58252. Pe.createElement(
  58253. C,
  58254. { key: o },
  58255. Pe.createElement(
  58256. 'div',
  58257. { className: 'checkbox' },
  58258. Pe.createElement(x, {
  58259. 'data-value': o,
  58260. id: `${o}-${ce}-checkbox-${this.state.name}`,
  58261. disabled: fe,
  58262. checked: this.state.scopes.includes(o),
  58263. type: 'checkbox',
  58264. onChange: this.onScopeChange
  58265. }),
  58266. Pe.createElement(
  58267. 'label',
  58268. { htmlFor: `${o}-${ce}-checkbox-${this.state.name}` },
  58269. Pe.createElement('span', { className: 'item' }),
  58270. Pe.createElement(
  58271. 'div',
  58272. { className: 'text' },
  58273. Pe.createElement('p', { className: 'name' }, o),
  58274. Pe.createElement('p', { className: 'description' }, s)
  58275. )
  58276. )
  58277. )
  58278. )
  58279. )
  58280. .toArray()
  58281. )
  58282. : null,
  58283. ye.valueSeq().map((s, o) => Pe.createElement(B, { error: s, key: o })),
  58284. Pe.createElement(
  58285. 'div',
  58286. { className: 'auth-btn-wrapper' },
  58287. be &&
  58288. (fe
  58289. ? Pe.createElement(
  58290. L,
  58291. {
  58292. className: 'btn modal-btn auth authorize',
  58293. onClick: this.logout,
  58294. 'aria-label': 'Remove authorization'
  58295. },
  58296. 'Logout'
  58297. )
  58298. : Pe.createElement(
  58299. L,
  58300. {
  58301. className: 'btn modal-btn auth authorize',
  58302. onClick: this.authorize,
  58303. 'aria-label': 'Apply given OAuth2 credentials'
  58304. },
  58305. 'Authorize'
  58306. )),
  58307. Pe.createElement(
  58308. L,
  58309. { className: 'btn modal-btn auth btn-done', onClick: this.close },
  58310. 'Close'
  58311. )
  58312. )
  58313. );
  58314. }
  58315. }
  58316. class Clear extends Pe.Component {
  58317. onClick = () => {
  58318. let { specActions: s, path: o, method: i } = this.props;
  58319. s.clearResponse(o, i), s.clearRequest(o, i);
  58320. };
  58321. render() {
  58322. return Pe.createElement(
  58323. 'button',
  58324. { className: 'btn btn-clear opblock-control__btn', onClick: this.onClick },
  58325. 'Clear'
  58326. );
  58327. }
  58328. }
  58329. const live_response_Headers = ({ headers: s }) =>
  58330. Pe.createElement(
  58331. 'div',
  58332. null,
  58333. Pe.createElement('h5', null, 'Response headers'),
  58334. Pe.createElement('pre', { className: 'microlight' }, s)
  58335. ),
  58336. Duration = ({ duration: s }) =>
  58337. Pe.createElement(
  58338. 'div',
  58339. null,
  58340. Pe.createElement('h5', null, 'Request duration'),
  58341. Pe.createElement('pre', { className: 'microlight' }, s, ' ms')
  58342. );
  58343. class LiveResponse extends Pe.Component {
  58344. shouldComponentUpdate(s) {
  58345. return (
  58346. this.props.response !== s.response ||
  58347. this.props.path !== s.path ||
  58348. this.props.method !== s.method ||
  58349. this.props.displayRequestDuration !== s.displayRequestDuration
  58350. );
  58351. }
  58352. render() {
  58353. const {
  58354. response: s,
  58355. getComponent: o,
  58356. getConfigs: i,
  58357. displayRequestDuration: u,
  58358. specSelectors: _,
  58359. path: w,
  58360. method: x
  58361. } = this.props,
  58362. { showMutatedRequest: C, requestSnippetsEnabled: j } = i(),
  58363. L = C ? _.mutatedRequestFor(w, x) : _.requestFor(w, x),
  58364. B = s.get('status'),
  58365. $ = L.get('url'),
  58366. V = s.get('headers').toJS(),
  58367. U = s.get('notDocumented'),
  58368. z = s.get('error'),
  58369. Y = s.get('text'),
  58370. Z = s.get('duration'),
  58371. ee = Object.keys(V),
  58372. ie = V['content-type'] || V['Content-Type'],
  58373. ae = o('responseBody'),
  58374. le = ee.map((s) => {
  58375. var o = Array.isArray(V[s]) ? V[s].join() : V[s];
  58376. return Pe.createElement(
  58377. 'span',
  58378. { className: 'headerline', key: s },
  58379. ' ',
  58380. s,
  58381. ': ',
  58382. o,
  58383. ' '
  58384. );
  58385. }),
  58386. ce = 0 !== le.length,
  58387. pe = o('Markdown', !0),
  58388. de = o('RequestSnippets', !0),
  58389. fe = o('curl', !0);
  58390. return Pe.createElement(
  58391. 'div',
  58392. null,
  58393. L && j ? Pe.createElement(de, { request: L }) : Pe.createElement(fe, { request: L }),
  58394. $ &&
  58395. Pe.createElement(
  58396. 'div',
  58397. null,
  58398. Pe.createElement(
  58399. 'div',
  58400. { className: 'request-url' },
  58401. Pe.createElement('h4', null, 'Request URL'),
  58402. Pe.createElement('pre', { className: 'microlight' }, $)
  58403. )
  58404. ),
  58405. Pe.createElement('h4', null, 'Server response'),
  58406. Pe.createElement(
  58407. 'table',
  58408. { className: 'responses-table live-responses-table' },
  58409. Pe.createElement(
  58410. 'thead',
  58411. null,
  58412. Pe.createElement(
  58413. 'tr',
  58414. { className: 'responses-header' },
  58415. Pe.createElement('td', { className: 'col_header response-col_status' }, 'Code'),
  58416. Pe.createElement(
  58417. 'td',
  58418. { className: 'col_header response-col_description' },
  58419. 'Details'
  58420. )
  58421. )
  58422. ),
  58423. Pe.createElement(
  58424. 'tbody',
  58425. null,
  58426. Pe.createElement(
  58427. 'tr',
  58428. { className: 'response' },
  58429. Pe.createElement(
  58430. 'td',
  58431. { className: 'response-col_status' },
  58432. B,
  58433. U
  58434. ? Pe.createElement(
  58435. 'div',
  58436. { className: 'response-undocumented' },
  58437. Pe.createElement('i', null, ' Undocumented ')
  58438. )
  58439. : null
  58440. ),
  58441. Pe.createElement(
  58442. 'td',
  58443. { className: 'response-col_description' },
  58444. z
  58445. ? Pe.createElement(pe, {
  58446. source: `${'' !== s.get('name') ? `${s.get('name')}: ` : ''}${s.get('message')}`
  58447. })
  58448. : null,
  58449. Y
  58450. ? Pe.createElement(ae, {
  58451. content: Y,
  58452. contentType: ie,
  58453. url: $,
  58454. headers: V,
  58455. getConfigs: i,
  58456. getComponent: o
  58457. })
  58458. : null,
  58459. ce ? Pe.createElement(live_response_Headers, { headers: le }) : null,
  58460. u && Z ? Pe.createElement(Duration, { duration: Z }) : null
  58461. )
  58462. )
  58463. )
  58464. )
  58465. );
  58466. }
  58467. }
  58468. class OnlineValidatorBadge extends Pe.Component {
  58469. constructor(s, o) {
  58470. super(s, o);
  58471. let { getConfigs: i } = s,
  58472. { validatorUrl: u } = i();
  58473. this.state = {
  58474. url: this.getDefinitionUrl(),
  58475. validatorUrl: void 0 === u ? 'https://validator.swagger.io/validator' : u
  58476. };
  58477. }
  58478. getDefinitionUrl = () => {
  58479. let { specSelectors: s } = this.props;
  58480. return new (Mt())(s.url(), at.location).toString();
  58481. };
  58482. UNSAFE_componentWillReceiveProps(s) {
  58483. let { getConfigs: o } = s,
  58484. { validatorUrl: i } = o();
  58485. this.setState({
  58486. url: this.getDefinitionUrl(),
  58487. validatorUrl: void 0 === i ? 'https://validator.swagger.io/validator' : i
  58488. });
  58489. }
  58490. render() {
  58491. let { getConfigs: s } = this.props,
  58492. { spec: o } = s(),
  58493. i = sanitizeUrl(this.state.validatorUrl);
  58494. return 'object' == typeof o && Object.keys(o).length
  58495. ? null
  58496. : this.state.url &&
  58497. requiresValidationURL(this.state.validatorUrl) &&
  58498. requiresValidationURL(this.state.url)
  58499. ? Pe.createElement(
  58500. 'span',
  58501. { className: 'float-right' },
  58502. Pe.createElement(
  58503. 'a',
  58504. {
  58505. target: '_blank',
  58506. rel: 'noopener noreferrer',
  58507. href: `${i}/debug?url=${encodeURIComponent(this.state.url)}`
  58508. },
  58509. Pe.createElement(ValidatorImage, {
  58510. src: `${i}?url=${encodeURIComponent(this.state.url)}`,
  58511. alt: 'Online validator badge'
  58512. })
  58513. )
  58514. )
  58515. : null;
  58516. }
  58517. }
  58518. class ValidatorImage extends Pe.Component {
  58519. constructor(s) {
  58520. super(s), (this.state = { loaded: !1, error: !1 });
  58521. }
  58522. componentDidMount() {
  58523. const s = new Image();
  58524. (s.onload = () => {
  58525. this.setState({ loaded: !0 });
  58526. }),
  58527. (s.onerror = () => {
  58528. this.setState({ error: !0 });
  58529. }),
  58530. (s.src = this.props.src);
  58531. }
  58532. UNSAFE_componentWillReceiveProps(s) {
  58533. if (s.src !== this.props.src) {
  58534. const o = new Image();
  58535. (o.onload = () => {
  58536. this.setState({ loaded: !0 });
  58537. }),
  58538. (o.onerror = () => {
  58539. this.setState({ error: !0 });
  58540. }),
  58541. (o.src = s.src);
  58542. }
  58543. }
  58544. render() {
  58545. return this.state.error
  58546. ? Pe.createElement('img', { alt: 'Error' })
  58547. : this.state.loaded
  58548. ? Pe.createElement('img', { src: this.props.src, alt: this.props.alt })
  58549. : null;
  58550. }
  58551. }
  58552. class Operations extends Pe.Component {
  58553. render() {
  58554. let { specSelectors: s } = this.props;
  58555. const o = s.taggedOperations();
  58556. return 0 === o.size
  58557. ? Pe.createElement('h3', null, ' No operations defined in spec!')
  58558. : Pe.createElement(
  58559. 'div',
  58560. null,
  58561. o.map(this.renderOperationTag).toArray(),
  58562. o.size < 1
  58563. ? Pe.createElement('h3', null, ' No operations defined in spec! ')
  58564. : null
  58565. );
  58566. }
  58567. renderOperationTag = (s, o) => {
  58568. const {
  58569. specSelectors: i,
  58570. getComponent: u,
  58571. oas3Selectors: _,
  58572. layoutSelectors: w,
  58573. layoutActions: x,
  58574. getConfigs: C
  58575. } = this.props,
  58576. j = i.validOperationMethods(),
  58577. L = u('OperationContainer', !0),
  58578. B = u('OperationTag'),
  58579. $ = s.get('operations');
  58580. return Pe.createElement(
  58581. B,
  58582. {
  58583. key: 'operation-' + o,
  58584. tagObj: s,
  58585. tag: o,
  58586. oas3Selectors: _,
  58587. layoutSelectors: w,
  58588. layoutActions: x,
  58589. getConfigs: C,
  58590. getComponent: u,
  58591. specUrl: i.url()
  58592. },
  58593. Pe.createElement(
  58594. 'div',
  58595. { className: 'operation-tag-content' },
  58596. $.map((s) => {
  58597. const i = s.get('path'),
  58598. u = s.get('method'),
  58599. _ = $e().List(['paths', i, u]);
  58600. return -1 === j.indexOf(u)
  58601. ? null
  58602. : Pe.createElement(L, {
  58603. key: `${i}-${u}`,
  58604. specPath: _,
  58605. op: s,
  58606. path: i,
  58607. method: u,
  58608. tag: o
  58609. });
  58610. }).toArray()
  58611. )
  58612. );
  58613. };
  58614. }
  58615. function isAbsoluteUrl(s) {
  58616. return s.match(/^(?:[a-z]+:)?\/\//i);
  58617. }
  58618. function buildBaseUrl(s, o) {
  58619. return s
  58620. ? isAbsoluteUrl(s)
  58621. ? (function addProtocol(s) {
  58622. return s.match(/^\/\//i) ? `${window.location.protocol}${s}` : s;
  58623. })(s)
  58624. : new URL(s, o).href
  58625. : o;
  58626. }
  58627. function safeBuildUrl(s, o, { selectedServer: i = '' } = {}) {
  58628. try {
  58629. return (function buildUrl(s, o, { selectedServer: i = '' } = {}) {
  58630. if (!s) return;
  58631. if (isAbsoluteUrl(s)) return s;
  58632. const u = buildBaseUrl(i, o);
  58633. return isAbsoluteUrl(u) ? new URL(s, u).href : new URL(s, window.location.href).href;
  58634. })(s, o, { selectedServer: i });
  58635. } catch {
  58636. return;
  58637. }
  58638. }
  58639. class OperationTag extends Pe.Component {
  58640. static defaultProps = { tagObj: $e().fromJS({}), tag: '' };
  58641. render() {
  58642. const {
  58643. tagObj: s,
  58644. tag: o,
  58645. children: i,
  58646. oas3Selectors: u,
  58647. layoutSelectors: _,
  58648. layoutActions: w,
  58649. getConfigs: x,
  58650. getComponent: C,
  58651. specUrl: j
  58652. } = this.props;
  58653. let { docExpansion: L, deepLinking: B } = x();
  58654. const $ = C('Collapse'),
  58655. V = C('Markdown', !0),
  58656. U = C('DeepLink'),
  58657. z = C('Link'),
  58658. Y = C('ArrowUpIcon'),
  58659. Z = C('ArrowDownIcon');
  58660. let ee,
  58661. ie = s.getIn(['tagDetails', 'description'], null),
  58662. ae = s.getIn(['tagDetails', 'externalDocs', 'description']),
  58663. le = s.getIn(['tagDetails', 'externalDocs', 'url']);
  58664. ee =
  58665. isFunc(u) && isFunc(u.selectedServer)
  58666. ? safeBuildUrl(le, j, { selectedServer: u.selectedServer() })
  58667. : le;
  58668. let ce = ['operations-tag', o],
  58669. pe = _.isShown(ce, 'full' === L || 'list' === L);
  58670. return Pe.createElement(
  58671. 'div',
  58672. { className: pe ? 'opblock-tag-section is-open' : 'opblock-tag-section' },
  58673. Pe.createElement(
  58674. 'h3',
  58675. {
  58676. onClick: () => w.show(ce, !pe),
  58677. className: ie ? 'opblock-tag' : 'opblock-tag no-desc',
  58678. id: ce.map((s) => escapeDeepLinkPath(s)).join('-'),
  58679. 'data-tag': o,
  58680. 'data-is-open': pe
  58681. },
  58682. Pe.createElement(U, {
  58683. enabled: B,
  58684. isShown: pe,
  58685. path: createDeepLinkPath(o),
  58686. text: o
  58687. }),
  58688. ie
  58689. ? Pe.createElement('small', null, Pe.createElement(V, { source: ie }))
  58690. : Pe.createElement('small', null),
  58691. ee
  58692. ? Pe.createElement(
  58693. 'div',
  58694. { className: 'info__externaldocs' },
  58695. Pe.createElement(
  58696. 'small',
  58697. null,
  58698. Pe.createElement(
  58699. z,
  58700. {
  58701. href: sanitizeUrl(ee),
  58702. onClick: (s) => s.stopPropagation(),
  58703. target: '_blank'
  58704. },
  58705. ae || ee
  58706. )
  58707. )
  58708. )
  58709. : null,
  58710. Pe.createElement(
  58711. 'button',
  58712. {
  58713. 'aria-expanded': pe,
  58714. className: 'expand-operation',
  58715. title: pe ? 'Collapse operation' : 'Expand operation',
  58716. onClick: () => w.show(ce, !pe)
  58717. },
  58718. pe
  58719. ? Pe.createElement(Y, { className: 'arrow' })
  58720. : Pe.createElement(Z, { className: 'arrow' })
  58721. )
  58722. ),
  58723. Pe.createElement($, { isOpened: pe }, i)
  58724. );
  58725. }
  58726. }
  58727. class operation_Operation extends Pe.PureComponent {
  58728. static defaultProps = {
  58729. operation: null,
  58730. response: null,
  58731. request: null,
  58732. specPath: (0, qe.List)(),
  58733. summary: ''
  58734. };
  58735. render() {
  58736. let {
  58737. specPath: s,
  58738. response: o,
  58739. request: i,
  58740. toggleShown: u,
  58741. onTryoutClick: _,
  58742. onResetClick: w,
  58743. onCancelClick: x,
  58744. onExecute: C,
  58745. fn: j,
  58746. getComponent: L,
  58747. getConfigs: B,
  58748. specActions: $,
  58749. specSelectors: V,
  58750. authActions: U,
  58751. authSelectors: z,
  58752. oas3Actions: Y,
  58753. oas3Selectors: Z
  58754. } = this.props,
  58755. ee = this.props.operation,
  58756. {
  58757. deprecated: ie,
  58758. isShown: ae,
  58759. path: le,
  58760. method: ce,
  58761. op: pe,
  58762. tag: de,
  58763. operationId: fe,
  58764. allowTryItOut: ye,
  58765. displayRequestDuration: be,
  58766. tryItOutEnabled: _e,
  58767. executeInProgress: we
  58768. } = ee.toJS(),
  58769. { description: Se, externalDocs: xe, schemes: Te } = pe;
  58770. const Re = xe
  58771. ? safeBuildUrl(xe.url, V.url(), { selectedServer: Z.selectedServer() })
  58772. : '';
  58773. let qe = ee.getIn(['op']),
  58774. ze = qe.get('responses'),
  58775. We = (function getList(s, o) {
  58776. if (!$e().Iterable.isIterable(s)) return $e().List();
  58777. let i = s.getIn(Array.isArray(o) ? o : [o]);
  58778. return $e().List.isList(i) ? i : $e().List();
  58779. })(qe, ['parameters']),
  58780. He = V.operationScheme(le, ce),
  58781. Ye = ['operations', de, fe],
  58782. Xe = getExtensions(qe);
  58783. const Qe = L('responses'),
  58784. et = L('parameters'),
  58785. tt = L('execute'),
  58786. rt = L('clear'),
  58787. nt = L('Collapse'),
  58788. st = L('Markdown', !0),
  58789. ot = L('schemes'),
  58790. it = L('OperationServers'),
  58791. at = L('OperationExt'),
  58792. lt = L('OperationSummary'),
  58793. ct = L('Link'),
  58794. { showExtensions: ut } = B();
  58795. if (ze && o && o.size > 0) {
  58796. let s = !ze.get(String(o.get('status'))) && !ze.get('default');
  58797. o = o.set('notDocumented', s);
  58798. }
  58799. let pt = [le, ce];
  58800. const ht = V.validationErrors([le, ce]);
  58801. return Pe.createElement(
  58802. 'div',
  58803. {
  58804. className: ie
  58805. ? 'opblock opblock-deprecated'
  58806. : ae
  58807. ? `opblock opblock-${ce} is-open`
  58808. : `opblock opblock-${ce}`,
  58809. id: escapeDeepLinkPath(Ye.join('-'))
  58810. },
  58811. Pe.createElement(lt, {
  58812. operationProps: ee,
  58813. isShown: ae,
  58814. toggleShown: u,
  58815. getComponent: L,
  58816. authActions: U,
  58817. authSelectors: z,
  58818. specPath: s
  58819. }),
  58820. Pe.createElement(
  58821. nt,
  58822. { isOpened: ae },
  58823. Pe.createElement(
  58824. 'div',
  58825. { className: 'opblock-body' },
  58826. (qe && qe.size) || null === qe
  58827. ? null
  58828. : Pe.createElement(rolling_load, {
  58829. height: '32px',
  58830. width: '32px',
  58831. className: 'opblock-loading-animation'
  58832. }),
  58833. ie &&
  58834. Pe.createElement(
  58835. 'h4',
  58836. { className: 'opblock-title_normal' },
  58837. ' Warning: Deprecated'
  58838. ),
  58839. Se &&
  58840. Pe.createElement(
  58841. 'div',
  58842. { className: 'opblock-description-wrapper' },
  58843. Pe.createElement(
  58844. 'div',
  58845. { className: 'opblock-description' },
  58846. Pe.createElement(st, { source: Se })
  58847. )
  58848. ),
  58849. Re
  58850. ? Pe.createElement(
  58851. 'div',
  58852. { className: 'opblock-external-docs-wrapper' },
  58853. Pe.createElement(
  58854. 'h4',
  58855. { className: 'opblock-title_normal' },
  58856. 'Find more details'
  58857. ),
  58858. Pe.createElement(
  58859. 'div',
  58860. { className: 'opblock-external-docs' },
  58861. xe.description &&
  58862. Pe.createElement(
  58863. 'span',
  58864. { className: 'opblock-external-docs__description' },
  58865. Pe.createElement(st, { source: xe.description })
  58866. ),
  58867. Pe.createElement(
  58868. ct,
  58869. {
  58870. target: '_blank',
  58871. className: 'opblock-external-docs__link',
  58872. href: sanitizeUrl(Re)
  58873. },
  58874. Re
  58875. )
  58876. )
  58877. )
  58878. : null,
  58879. qe && qe.size
  58880. ? Pe.createElement(et, {
  58881. parameters: We,
  58882. specPath: s.push('parameters'),
  58883. operation: qe,
  58884. onChangeKey: pt,
  58885. onTryoutClick: _,
  58886. onResetClick: w,
  58887. onCancelClick: x,
  58888. tryItOutEnabled: _e,
  58889. allowTryItOut: ye,
  58890. fn: j,
  58891. getComponent: L,
  58892. specActions: $,
  58893. specSelectors: V,
  58894. pathMethod: [le, ce],
  58895. getConfigs: B,
  58896. oas3Actions: Y,
  58897. oas3Selectors: Z
  58898. })
  58899. : null,
  58900. _e
  58901. ? Pe.createElement(it, {
  58902. getComponent: L,
  58903. path: le,
  58904. method: ce,
  58905. operationServers: qe.get('servers'),
  58906. pathServers: V.paths().getIn([le, 'servers']),
  58907. getSelectedServer: Z.selectedServer,
  58908. setSelectedServer: Y.setSelectedServer,
  58909. setServerVariableValue: Y.setServerVariableValue,
  58910. getServerVariable: Z.serverVariableValue,
  58911. getEffectiveServerValue: Z.serverEffectiveValue
  58912. })
  58913. : null,
  58914. _e && ye && Te && Te.size
  58915. ? Pe.createElement(
  58916. 'div',
  58917. { className: 'opblock-schemes' },
  58918. Pe.createElement(ot, {
  58919. schemes: Te,
  58920. path: le,
  58921. method: ce,
  58922. specActions: $,
  58923. currentScheme: He
  58924. })
  58925. )
  58926. : null,
  58927. !_e || !ye || ht.length <= 0
  58928. ? null
  58929. : Pe.createElement(
  58930. 'div',
  58931. { className: 'validation-errors errors-wrapper' },
  58932. 'Please correct the following validation errors and try again.',
  58933. Pe.createElement(
  58934. 'ul',
  58935. null,
  58936. ht.map((s, o) => Pe.createElement('li', { key: o }, ' ', s, ' '))
  58937. )
  58938. ),
  58939. Pe.createElement(
  58940. 'div',
  58941. { className: _e && o && ye ? 'btn-group' : 'execute-wrapper' },
  58942. _e && ye
  58943. ? Pe.createElement(tt, {
  58944. operation: qe,
  58945. specActions: $,
  58946. specSelectors: V,
  58947. oas3Selectors: Z,
  58948. oas3Actions: Y,
  58949. path: le,
  58950. method: ce,
  58951. onExecute: C,
  58952. disabled: we
  58953. })
  58954. : null,
  58955. _e && o && ye
  58956. ? Pe.createElement(rt, { specActions: $, path: le, method: ce })
  58957. : null
  58958. ),
  58959. we
  58960. ? Pe.createElement(
  58961. 'div',
  58962. { className: 'loading-container' },
  58963. Pe.createElement('div', { className: 'loading' })
  58964. )
  58965. : null,
  58966. ze
  58967. ? Pe.createElement(Qe, {
  58968. responses: ze,
  58969. request: i,
  58970. tryItOutResponse: o,
  58971. getComponent: L,
  58972. getConfigs: B,
  58973. specSelectors: V,
  58974. oas3Actions: Y,
  58975. oas3Selectors: Z,
  58976. specActions: $,
  58977. produces: V.producesOptionsFor([le, ce]),
  58978. producesValue: V.currentProducesFor([le, ce]),
  58979. specPath: s.push('responses'),
  58980. path: le,
  58981. method: ce,
  58982. displayRequestDuration: be,
  58983. fn: j
  58984. })
  58985. : null,
  58986. ut && Xe.size ? Pe.createElement(at, { extensions: Xe, getComponent: L }) : null
  58987. )
  58988. )
  58989. );
  58990. }
  58991. }
  58992. class OperationContainer extends Pe.PureComponent {
  58993. constructor(s, o) {
  58994. super(s, o);
  58995. const { tryItOutEnabled: i } = s.getConfigs();
  58996. this.state = { tryItOutEnabled: i, executeInProgress: !1 };
  58997. }
  58998. static defaultProps = {
  58999. showSummary: !0,
  59000. response: null,
  59001. allowTryItOut: !0,
  59002. displayOperationId: !1,
  59003. displayRequestDuration: !1
  59004. };
  59005. mapStateToProps(s, o) {
  59006. const { op: i, layoutSelectors: u, getConfigs: _ } = o,
  59007. {
  59008. docExpansion: w,
  59009. deepLinking: x,
  59010. displayOperationId: C,
  59011. displayRequestDuration: j,
  59012. supportedSubmitMethods: L
  59013. } = _(),
  59014. B = u.showSummary(),
  59015. $ =
  59016. i.getIn(['operation', '__originalOperationId']) ||
  59017. i.getIn(['operation', 'operationId']) ||
  59018. opId(i.get('operation'), o.path, o.method) ||
  59019. i.get('id'),
  59020. V = ['operations', o.tag, $],
  59021. U =
  59022. L.indexOf(o.method) >= 0 &&
  59023. (void 0 === o.allowTryItOut
  59024. ? o.specSelectors.allowTryItOutFor(o.path, o.method)
  59025. : o.allowTryItOut),
  59026. z = i.getIn(['operation', 'security']) || o.specSelectors.security();
  59027. return {
  59028. operationId: $,
  59029. isDeepLinkingEnabled: x,
  59030. showSummary: B,
  59031. displayOperationId: C,
  59032. displayRequestDuration: j,
  59033. allowTryItOut: U,
  59034. security: z,
  59035. isAuthorized: o.authSelectors.isAuthorized(z),
  59036. isShown: u.isShown(V, 'full' === w),
  59037. jumpToKey: `paths.${o.path}.${o.method}`,
  59038. response: o.specSelectors.responseFor(o.path, o.method),
  59039. request: o.specSelectors.requestFor(o.path, o.method)
  59040. };
  59041. }
  59042. componentDidMount() {
  59043. const { isShown: s } = this.props,
  59044. o = this.getResolvedSubtree();
  59045. s && void 0 === o && this.requestResolvedSubtree();
  59046. }
  59047. UNSAFE_componentWillReceiveProps(s) {
  59048. const { response: o, isShown: i } = s,
  59049. u = this.getResolvedSubtree();
  59050. o !== this.props.response && this.setState({ executeInProgress: !1 }),
  59051. i && void 0 === u && this.requestResolvedSubtree();
  59052. }
  59053. toggleShown = () => {
  59054. let { layoutActions: s, tag: o, operationId: i, isShown: u } = this.props;
  59055. const _ = this.getResolvedSubtree();
  59056. u || void 0 !== _ || this.requestResolvedSubtree(), s.show(['operations', o, i], !u);
  59057. };
  59058. onCancelClick = () => {
  59059. this.setState({ tryItOutEnabled: !this.state.tryItOutEnabled });
  59060. };
  59061. onTryoutClick = () => {
  59062. this.setState({ tryItOutEnabled: !this.state.tryItOutEnabled });
  59063. };
  59064. onResetClick = (s) => {
  59065. const o = this.props.oas3Selectors.selectDefaultRequestBodyValue(...s);
  59066. this.props.oas3Actions.setRequestBodyValue({ value: o, pathMethod: s });
  59067. };
  59068. onExecute = () => {
  59069. this.setState({ executeInProgress: !0 });
  59070. };
  59071. getResolvedSubtree = () => {
  59072. const { specSelectors: s, path: o, method: i, specPath: u } = this.props;
  59073. return u ? s.specResolvedSubtree(u.toJS()) : s.specResolvedSubtree(['paths', o, i]);
  59074. };
  59075. requestResolvedSubtree = () => {
  59076. const { specActions: s, path: o, method: i, specPath: u } = this.props;
  59077. return u
  59078. ? s.requestResolvedSubtree(u.toJS())
  59079. : s.requestResolvedSubtree(['paths', o, i]);
  59080. };
  59081. render() {
  59082. let {
  59083. op: s,
  59084. tag: o,
  59085. path: i,
  59086. method: u,
  59087. security: _,
  59088. isAuthorized: w,
  59089. operationId: x,
  59090. showSummary: C,
  59091. isShown: j,
  59092. jumpToKey: L,
  59093. allowTryItOut: B,
  59094. response: $,
  59095. request: V,
  59096. displayOperationId: U,
  59097. displayRequestDuration: z,
  59098. isDeepLinkingEnabled: Y,
  59099. specPath: Z,
  59100. specSelectors: ee,
  59101. specActions: ie,
  59102. getComponent: ae,
  59103. getConfigs: le,
  59104. layoutSelectors: ce,
  59105. layoutActions: pe,
  59106. authActions: de,
  59107. authSelectors: fe,
  59108. oas3Actions: ye,
  59109. oas3Selectors: be,
  59110. fn: _e
  59111. } = this.props;
  59112. const we = ae('operation'),
  59113. Se = this.getResolvedSubtree() || (0, qe.Map)(),
  59114. xe = (0, qe.fromJS)({
  59115. op: Se,
  59116. tag: o,
  59117. path: i,
  59118. summary: s.getIn(['operation', 'summary']) || '',
  59119. deprecated: Se.get('deprecated') || s.getIn(['operation', 'deprecated']) || !1,
  59120. method: u,
  59121. security: _,
  59122. isAuthorized: w,
  59123. operationId: x,
  59124. originalOperationId: Se.getIn(['operation', '__originalOperationId']),
  59125. showSummary: C,
  59126. isShown: j,
  59127. jumpToKey: L,
  59128. allowTryItOut: B,
  59129. request: V,
  59130. displayOperationId: U,
  59131. displayRequestDuration: z,
  59132. isDeepLinkingEnabled: Y,
  59133. executeInProgress: this.state.executeInProgress,
  59134. tryItOutEnabled: this.state.tryItOutEnabled
  59135. });
  59136. return Pe.createElement(we, {
  59137. operation: xe,
  59138. response: $,
  59139. request: V,
  59140. isShown: j,
  59141. toggleShown: this.toggleShown,
  59142. onTryoutClick: this.onTryoutClick,
  59143. onResetClick: this.onResetClick,
  59144. onCancelClick: this.onCancelClick,
  59145. onExecute: this.onExecute,
  59146. specPath: Z,
  59147. specActions: ie,
  59148. specSelectors: ee,
  59149. oas3Actions: ye,
  59150. oas3Selectors: be,
  59151. layoutActions: pe,
  59152. layoutSelectors: ce,
  59153. authActions: de,
  59154. authSelectors: fe,
  59155. getComponent: ae,
  59156. getConfigs: le,
  59157. fn: _e
  59158. });
  59159. }
  59160. }
  59161. var mk = __webpack_require__(13222),
  59162. yk = __webpack_require__.n(mk);
  59163. class OperationSummary extends Pe.PureComponent {
  59164. static defaultProps = { operationProps: null, specPath: (0, qe.List)(), summary: '' };
  59165. render() {
  59166. let {
  59167. isShown: s,
  59168. toggleShown: o,
  59169. getComponent: i,
  59170. authActions: u,
  59171. authSelectors: _,
  59172. operationProps: w,
  59173. specPath: x
  59174. } = this.props,
  59175. {
  59176. summary: C,
  59177. isAuthorized: j,
  59178. method: L,
  59179. op: B,
  59180. showSummary: $,
  59181. path: V,
  59182. operationId: U,
  59183. originalOperationId: z,
  59184. displayOperationId: Y
  59185. } = w.toJS(),
  59186. { summary: Z } = B,
  59187. ee = w.get('security');
  59188. const ie = i('authorizeOperationBtn', !0),
  59189. ae = i('OperationSummaryMethod'),
  59190. le = i('OperationSummaryPath'),
  59191. ce = i('JumpToPath', !0),
  59192. pe = i('CopyToClipboardBtn', !0),
  59193. de = i('ArrowUpIcon'),
  59194. fe = i('ArrowDownIcon'),
  59195. ye = ee && !!ee.count(),
  59196. be = ye && 1 === ee.size && ee.first().isEmpty(),
  59197. _e = !ye || be;
  59198. return Pe.createElement(
  59199. 'div',
  59200. { className: `opblock-summary opblock-summary-${L}` },
  59201. Pe.createElement(
  59202. 'button',
  59203. { 'aria-expanded': s, className: 'opblock-summary-control', onClick: o },
  59204. Pe.createElement(ae, { method: L }),
  59205. Pe.createElement(
  59206. 'div',
  59207. { className: 'opblock-summary-path-description-wrapper' },
  59208. Pe.createElement(le, { getComponent: i, operationProps: w, specPath: x }),
  59209. $
  59210. ? Pe.createElement(
  59211. 'div',
  59212. { className: 'opblock-summary-description' },
  59213. yk()(Z || C)
  59214. )
  59215. : null
  59216. ),
  59217. Y && (z || U)
  59218. ? Pe.createElement('span', { className: 'opblock-summary-operation-id' }, z || U)
  59219. : null
  59220. ),
  59221. Pe.createElement(pe, { textToCopy: `${x.get(1)}` }),
  59222. _e
  59223. ? null
  59224. : Pe.createElement(ie, {
  59225. isAuthorized: j,
  59226. onClick: () => {
  59227. const s = _.definitionsForRequirements(ee);
  59228. u.showDefinitions(s);
  59229. }
  59230. }),
  59231. Pe.createElement(ce, { path: x }),
  59232. Pe.createElement(
  59233. 'button',
  59234. {
  59235. 'aria-label': `${L} ${V.replace(/\//g, '​/')}`,
  59236. className: 'opblock-control-arrow',
  59237. 'aria-expanded': s,
  59238. tabIndex: '-1',
  59239. onClick: o
  59240. },
  59241. s
  59242. ? Pe.createElement(de, { className: 'arrow' })
  59243. : Pe.createElement(fe, { className: 'arrow' })
  59244. )
  59245. );
  59246. }
  59247. }
  59248. class OperationSummaryMethod extends Pe.PureComponent {
  59249. static defaultProps = { operationProps: null };
  59250. render() {
  59251. let { method: s } = this.props;
  59252. return Pe.createElement(
  59253. 'span',
  59254. { className: 'opblock-summary-method' },
  59255. s.toUpperCase()
  59256. );
  59257. }
  59258. }
  59259. class OperationSummaryPath extends Pe.PureComponent {
  59260. render() {
  59261. let { getComponent: s, operationProps: o } = this.props,
  59262. {
  59263. deprecated: i,
  59264. isShown: u,
  59265. path: _,
  59266. tag: w,
  59267. operationId: x,
  59268. isDeepLinkingEnabled: C
  59269. } = o.toJS();
  59270. const j = _.split(/(?=\/)/g);
  59271. for (let s = 1; s < j.length; s += 2)
  59272. j.splice(s, 0, Pe.createElement('wbr', { key: s }));
  59273. const L = s('DeepLink');
  59274. return Pe.createElement(
  59275. 'span',
  59276. {
  59277. className: i ? 'opblock-summary-path__deprecated' : 'opblock-summary-path',
  59278. 'data-path': _
  59279. },
  59280. Pe.createElement(L, {
  59281. enabled: C,
  59282. isShown: u,
  59283. path: createDeepLinkPath(`${w}/${x}`),
  59284. text: j
  59285. })
  59286. );
  59287. }
  59288. }
  59289. const operation_extensions = ({ extensions: s, getComponent: o }) => {
  59290. let i = o('OperationExtRow');
  59291. return Pe.createElement(
  59292. 'div',
  59293. { className: 'opblock-section' },
  59294. Pe.createElement(
  59295. 'div',
  59296. { className: 'opblock-section-header' },
  59297. Pe.createElement('h4', null, 'Extensions')
  59298. ),
  59299. Pe.createElement(
  59300. 'div',
  59301. { className: 'table-container' },
  59302. Pe.createElement(
  59303. 'table',
  59304. null,
  59305. Pe.createElement(
  59306. 'thead',
  59307. null,
  59308. Pe.createElement(
  59309. 'tr',
  59310. null,
  59311. Pe.createElement('td', { className: 'col_header' }, 'Field'),
  59312. Pe.createElement('td', { className: 'col_header' }, 'Value')
  59313. )
  59314. ),
  59315. Pe.createElement(
  59316. 'tbody',
  59317. null,
  59318. s
  59319. .entrySeq()
  59320. .map(([s, o]) => Pe.createElement(i, { key: `${s}-${o}`, xKey: s, xVal: o }))
  59321. )
  59322. )
  59323. )
  59324. );
  59325. },
  59326. operation_extension_row = ({ xKey: s, xVal: o }) => {
  59327. const i = o ? (o.toJS ? o.toJS() : o) : null;
  59328. return Pe.createElement(
  59329. 'tr',
  59330. null,
  59331. Pe.createElement('td', null, s),
  59332. Pe.createElement('td', null, JSON.stringify(i))
  59333. );
  59334. };
  59335. function createHtmlReadyId(s, o = '_') {
  59336. return s.replace(/[^\w-]/g, o);
  59337. }
  59338. class responses_Responses extends Pe.Component {
  59339. static defaultProps = {
  59340. tryItOutResponse: null,
  59341. produces: (0, qe.fromJS)(['application/json']),
  59342. displayRequestDuration: !1
  59343. };
  59344. onChangeProducesWrapper = (s) =>
  59345. this.props.specActions.changeProducesValue([this.props.path, this.props.method], s);
  59346. onResponseContentTypeChange = ({ controlsAcceptHeader: s, value: o }) => {
  59347. const { oas3Actions: i, path: u, method: _ } = this.props;
  59348. s && i.setResponseContentType({ value: o, path: u, method: _ });
  59349. };
  59350. render() {
  59351. let {
  59352. responses: s,
  59353. tryItOutResponse: o,
  59354. getComponent: i,
  59355. getConfigs: u,
  59356. specSelectors: _,
  59357. fn: w,
  59358. producesValue: x,
  59359. displayRequestDuration: C,
  59360. specPath: j,
  59361. path: L,
  59362. method: B,
  59363. oas3Selectors: $,
  59364. oas3Actions: V
  59365. } = this.props,
  59366. U = (function defaultStatusCode(s) {
  59367. let o = s.keySeq();
  59368. return o.contains(At)
  59369. ? At
  59370. : o
  59371. .filter((s) => '2' === (s + '')[0])
  59372. .sort()
  59373. .first();
  59374. })(s);
  59375. const z = i('contentType'),
  59376. Y = i('liveResponse'),
  59377. Z = i('response');
  59378. let ee =
  59379. this.props.produces && this.props.produces.size
  59380. ? this.props.produces
  59381. : responses_Responses.defaultProps.produces;
  59382. const ie = _.isOAS3()
  59383. ? (function getAcceptControllingResponse(s) {
  59384. if (!$e().OrderedMap.isOrderedMap(s)) return null;
  59385. if (!s.size) return null;
  59386. const o = s.find(
  59387. (s, o) =>
  59388. o.startsWith('2') && Object.keys(s.get('content') || {}).length > 0
  59389. ),
  59390. i = s.get('default') || $e().OrderedMap(),
  59391. u = (i.get('content') || $e().OrderedMap()).keySeq().toJS().length ? i : null;
  59392. return o || u;
  59393. })(s)
  59394. : null,
  59395. ae = createHtmlReadyId(`${B}${L}_responses`),
  59396. le = `${ae}_select`;
  59397. return Pe.createElement(
  59398. 'div',
  59399. { className: 'responses-wrapper' },
  59400. Pe.createElement(
  59401. 'div',
  59402. { className: 'opblock-section-header' },
  59403. Pe.createElement('h4', null, 'Responses'),
  59404. _.isOAS3()
  59405. ? null
  59406. : Pe.createElement(
  59407. 'label',
  59408. { htmlFor: le },
  59409. Pe.createElement('span', null, 'Response content type'),
  59410. Pe.createElement(z, {
  59411. value: x,
  59412. ariaControls: ae,
  59413. ariaLabel: 'Response content type',
  59414. className: 'execute-content-type',
  59415. contentTypes: ee,
  59416. controlId: le,
  59417. onChange: this.onChangeProducesWrapper
  59418. })
  59419. )
  59420. ),
  59421. Pe.createElement(
  59422. 'div',
  59423. { className: 'responses-inner' },
  59424. o
  59425. ? Pe.createElement(
  59426. 'div',
  59427. null,
  59428. Pe.createElement(Y, {
  59429. response: o,
  59430. getComponent: i,
  59431. getConfigs: u,
  59432. specSelectors: _,
  59433. path: this.props.path,
  59434. method: this.props.method,
  59435. displayRequestDuration: C
  59436. }),
  59437. Pe.createElement('h4', null, 'Responses')
  59438. )
  59439. : null,
  59440. Pe.createElement(
  59441. 'table',
  59442. { 'aria-live': 'polite', className: 'responses-table', id: ae, role: 'region' },
  59443. Pe.createElement(
  59444. 'thead',
  59445. null,
  59446. Pe.createElement(
  59447. 'tr',
  59448. { className: 'responses-header' },
  59449. Pe.createElement(
  59450. 'td',
  59451. { className: 'col_header response-col_status' },
  59452. 'Code'
  59453. ),
  59454. Pe.createElement(
  59455. 'td',
  59456. { className: 'col_header response-col_description' },
  59457. 'Description'
  59458. ),
  59459. _.isOAS3()
  59460. ? Pe.createElement(
  59461. 'td',
  59462. { className: 'col col_header response-col_links' },
  59463. 'Links'
  59464. )
  59465. : null
  59466. )
  59467. ),
  59468. Pe.createElement(
  59469. 'tbody',
  59470. null,
  59471. s
  59472. .entrySeq()
  59473. .map(([s, C]) => {
  59474. let z = o && o.get('status') == s ? 'response_current' : '';
  59475. return Pe.createElement(Z, {
  59476. key: s,
  59477. path: L,
  59478. method: B,
  59479. specPath: j.push(s),
  59480. isDefault: U === s,
  59481. fn: w,
  59482. className: z,
  59483. code: s,
  59484. response: C,
  59485. specSelectors: _,
  59486. controlsAcceptHeader: C === ie,
  59487. onContentTypeChange: this.onResponseContentTypeChange,
  59488. contentType: x,
  59489. getConfigs: u,
  59490. activeExamplesKey: $.activeExamplesMember(L, B, 'responses', s),
  59491. oas3Actions: V,
  59492. getComponent: i
  59493. });
  59494. })
  59495. .toArray()
  59496. )
  59497. )
  59498. )
  59499. );
  59500. }
  59501. }
  59502. function getKnownSyntaxHighlighterLanguage(s) {
  59503. const o = (function canJsonParse(s) {
  59504. try {
  59505. return !!JSON.parse(s);
  59506. } catch (s) {
  59507. return null;
  59508. }
  59509. })(s);
  59510. return o ? 'json' : null;
  59511. }
  59512. class response_Response extends Pe.Component {
  59513. constructor(s, o) {
  59514. super(s, o), (this.state = { responseContentType: '' });
  59515. }
  59516. static defaultProps = { response: (0, qe.fromJS)({}), onContentTypeChange: () => {} };
  59517. _onContentTypeChange = (s) => {
  59518. const { onContentTypeChange: o, controlsAcceptHeader: i } = this.props;
  59519. this.setState({ responseContentType: s }), o({ value: s, controlsAcceptHeader: i });
  59520. };
  59521. getTargetExamplesKey = () => {
  59522. const { response: s, contentType: o, activeExamplesKey: i } = this.props,
  59523. u = this.state.responseContentType || o,
  59524. _ = s
  59525. .getIn(['content', u], (0, qe.Map)({}))
  59526. .get('examples', null)
  59527. .keySeq()
  59528. .first();
  59529. return i || _;
  59530. };
  59531. render() {
  59532. let {
  59533. path: s,
  59534. method: o,
  59535. code: i,
  59536. response: u,
  59537. className: _,
  59538. specPath: w,
  59539. fn: x,
  59540. getComponent: C,
  59541. getConfigs: j,
  59542. specSelectors: L,
  59543. contentType: B,
  59544. controlsAcceptHeader: $,
  59545. oas3Actions: V
  59546. } = this.props,
  59547. { inferSchema: U, getSampleSchema: z } = x,
  59548. Y = L.isOAS3();
  59549. const { showExtensions: Z } = j();
  59550. let ee = Z ? getExtensions(u) : null,
  59551. ie = u.get('headers'),
  59552. ae = u.get('links');
  59553. const le = C('ResponseExtension'),
  59554. ce = C('headers'),
  59555. pe = C('HighlightCode', !0),
  59556. de = C('modelExample'),
  59557. fe = C('Markdown', !0),
  59558. ye = C('operationLink'),
  59559. be = C('contentType'),
  59560. _e = C('ExamplesSelect'),
  59561. we = C('Example');
  59562. var Se, xe;
  59563. const Te = this.state.responseContentType || B,
  59564. Re = u.getIn(['content', Te], (0, qe.Map)({})),
  59565. $e = Re.get('examples', null);
  59566. if (Y) {
  59567. const s = Re.get('schema');
  59568. (Se = s ? U(s.toJS()) : null),
  59569. (xe = s ? (0, qe.List)(['content', this.state.responseContentType, 'schema']) : w);
  59570. } else (Se = u.get('schema')), (xe = u.has('schema') ? w.push('schema') : w);
  59571. let ze,
  59572. We,
  59573. He = !1,
  59574. Ye = { includeReadOnly: !0 };
  59575. if (Y)
  59576. if (((We = Re.get('schema')?.toJS()), qe.Map.isMap($e) && !$e.isEmpty())) {
  59577. const s = this.getTargetExamplesKey(),
  59578. getMediaTypeExample = (s) => s.get('value');
  59579. (ze = getMediaTypeExample($e.get(s, (0, qe.Map)({})))),
  59580. void 0 === ze && (ze = getMediaTypeExample($e.values().next().value)),
  59581. (He = !0);
  59582. } else void 0 !== Re.get('example') && ((ze = Re.get('example')), (He = !0));
  59583. else {
  59584. (We = Se), (Ye = { ...Ye, includeWriteOnly: !0 });
  59585. const s = u.getIn(['examples', Te]);
  59586. s && ((ze = s), (He = !0));
  59587. }
  59588. const Xe = ((s, o) => {
  59589. if (null == s) return null;
  59590. const i = getKnownSyntaxHighlighterLanguage(s) ? 'json' : null;
  59591. return Pe.createElement(
  59592. 'div',
  59593. null,
  59594. Pe.createElement(o, { className: 'example', language: i }, stringify(s))
  59595. );
  59596. })(z(We, Te, Ye, He ? ze : void 0), pe);
  59597. return Pe.createElement(
  59598. 'tr',
  59599. { className: 'response ' + (_ || ''), 'data-code': i },
  59600. Pe.createElement('td', { className: 'response-col_status' }, i),
  59601. Pe.createElement(
  59602. 'td',
  59603. { className: 'response-col_description' },
  59604. Pe.createElement(
  59605. 'div',
  59606. { className: 'response-col_description__inner' },
  59607. Pe.createElement(fe, { source: u.get('description') })
  59608. ),
  59609. Z && ee.size
  59610. ? ee
  59611. .entrySeq()
  59612. .map(([s, o]) => Pe.createElement(le, { key: `${s}-${o}`, xKey: s, xVal: o }))
  59613. : null,
  59614. Y && u.get('content')
  59615. ? Pe.createElement(
  59616. 'section',
  59617. { className: 'response-controls' },
  59618. Pe.createElement(
  59619. 'div',
  59620. {
  59621. className: Hn()('response-control-media-type', {
  59622. 'response-control-media-type--accept-controller': $
  59623. })
  59624. },
  59625. Pe.createElement(
  59626. 'small',
  59627. { className: 'response-control-media-type__title' },
  59628. 'Media type'
  59629. ),
  59630. Pe.createElement(be, {
  59631. value: this.state.responseContentType,
  59632. contentTypes: u.get('content')
  59633. ? u.get('content').keySeq()
  59634. : (0, qe.Seq)(),
  59635. onChange: this._onContentTypeChange,
  59636. ariaLabel: 'Media Type'
  59637. }),
  59638. $
  59639. ? Pe.createElement(
  59640. 'small',
  59641. { className: 'response-control-media-type__accept-message' },
  59642. 'Controls ',
  59643. Pe.createElement('code', null, 'Accept'),
  59644. ' header.'
  59645. )
  59646. : null
  59647. ),
  59648. qe.Map.isMap($e) && !$e.isEmpty()
  59649. ? Pe.createElement(
  59650. 'div',
  59651. { className: 'response-control-examples' },
  59652. Pe.createElement(
  59653. 'small',
  59654. { className: 'response-control-examples__title' },
  59655. 'Examples'
  59656. ),
  59657. Pe.createElement(_e, {
  59658. examples: $e,
  59659. currentExampleKey: this.getTargetExamplesKey(),
  59660. onSelect: (u) =>
  59661. V.setActiveExamplesMember({
  59662. name: u,
  59663. pathMethod: [s, o],
  59664. contextType: 'responses',
  59665. contextName: i
  59666. }),
  59667. showLabels: !1
  59668. })
  59669. )
  59670. : null
  59671. )
  59672. : null,
  59673. Xe || Se
  59674. ? Pe.createElement(de, {
  59675. specPath: xe,
  59676. getComponent: C,
  59677. getConfigs: j,
  59678. specSelectors: L,
  59679. schema: fromJSOrdered(Se),
  59680. example: Xe,
  59681. includeReadOnly: !0
  59682. })
  59683. : null,
  59684. Y && $e
  59685. ? Pe.createElement(we, {
  59686. example: $e.get(this.getTargetExamplesKey(), (0, qe.Map)({})),
  59687. getComponent: C,
  59688. getConfigs: j,
  59689. omitValue: !0
  59690. })
  59691. : null,
  59692. ie ? Pe.createElement(ce, { headers: ie, getComponent: C }) : null
  59693. ),
  59694. Y
  59695. ? Pe.createElement(
  59696. 'td',
  59697. { className: 'response-col_links' },
  59698. ae
  59699. ? ae
  59700. .toSeq()
  59701. .entrySeq()
  59702. .map(([s, o]) =>
  59703. Pe.createElement(ye, { key: s, name: s, link: o, getComponent: C })
  59704. )
  59705. : Pe.createElement('i', null, 'No links')
  59706. )
  59707. : null
  59708. );
  59709. }
  59710. }
  59711. const response_extension = ({ xKey: s, xVal: o }) =>
  59712. Pe.createElement('div', { className: 'response__extension' }, s, ': ', String(o));
  59713. var vk = __webpack_require__(26657),
  59714. _k = __webpack_require__.n(vk),
  59715. wk = __webpack_require__(80218),
  59716. xk = __webpack_require__.n(wk);
  59717. class ResponseBody extends Pe.PureComponent {
  59718. state = { parsedContent: null };
  59719. updateParsedContent = (s) => {
  59720. const { content: o } = this.props;
  59721. if (s !== o)
  59722. if (o && o instanceof Blob) {
  59723. var i = new FileReader();
  59724. (i.onload = () => {
  59725. this.setState({ parsedContent: i.result });
  59726. }),
  59727. i.readAsText(o);
  59728. } else this.setState({ parsedContent: o.toString() });
  59729. };
  59730. componentDidMount() {
  59731. this.updateParsedContent(null);
  59732. }
  59733. componentDidUpdate(s) {
  59734. this.updateParsedContent(s.content);
  59735. }
  59736. render() {
  59737. let {
  59738. content: s,
  59739. contentType: o,
  59740. url: i,
  59741. headers: u = {},
  59742. getComponent: _
  59743. } = this.props;
  59744. const { parsedContent: w } = this.state,
  59745. x = _('HighlightCode', !0),
  59746. C = 'response_' + new Date().getTime();
  59747. let j, L;
  59748. if (
  59749. ((i = i || ''),
  59750. (/^application\/octet-stream/i.test(o) ||
  59751. (u['Content-Disposition'] && /attachment/i.test(u['Content-Disposition'])) ||
  59752. (u['content-disposition'] && /attachment/i.test(u['content-disposition'])) ||
  59753. (u['Content-Description'] && /File Transfer/i.test(u['Content-Description'])) ||
  59754. (u['content-description'] && /File Transfer/i.test(u['content-description']))) &&
  59755. (s.size > 0 || s.length > 0))
  59756. )
  59757. if ('Blob' in window) {
  59758. let _ = o || 'text/html',
  59759. w = s instanceof Blob ? s : new Blob([s], { type: _ }),
  59760. x = window.URL.createObjectURL(w),
  59761. C = [_, i.substr(i.lastIndexOf('/') + 1), x].join(':'),
  59762. j = u['content-disposition'] || u['Content-Disposition'];
  59763. if (void 0 !== j) {
  59764. let s = (function extractFileNameFromContentDispositionHeader(s) {
  59765. let o;
  59766. if (
  59767. ([
  59768. /filename\*=[^']+'\w*'"([^"]+)";?/i,
  59769. /filename\*=[^']+'\w*'([^;]+);?/i,
  59770. /filename="([^;]*);?"/i,
  59771. /filename=([^;]*);?/i
  59772. ].some((i) => ((o = i.exec(s)), null !== o)),
  59773. null !== o && o.length > 1)
  59774. )
  59775. try {
  59776. return decodeURIComponent(o[1]);
  59777. } catch (s) {
  59778. console.error(s);
  59779. }
  59780. return null;
  59781. })(j);
  59782. null !== s && (C = s);
  59783. }
  59784. L =
  59785. at.navigator && at.navigator.msSaveOrOpenBlob
  59786. ? Pe.createElement(
  59787. 'div',
  59788. null,
  59789. Pe.createElement(
  59790. 'a',
  59791. { href: x, onClick: () => at.navigator.msSaveOrOpenBlob(w, C) },
  59792. 'Download file'
  59793. )
  59794. )
  59795. : Pe.createElement(
  59796. 'div',
  59797. null,
  59798. Pe.createElement('a', { href: x, download: C }, 'Download file')
  59799. );
  59800. } else
  59801. L = Pe.createElement(
  59802. 'pre',
  59803. { className: 'microlight' },
  59804. 'Download headers detected but your browser does not support downloading binary via XHR (Blob).'
  59805. );
  59806. else if (/json/i.test(o)) {
  59807. let o = null;
  59808. getKnownSyntaxHighlighterLanguage(s) && (o = 'json');
  59809. try {
  59810. j = JSON.stringify(JSON.parse(s), null, ' ');
  59811. } catch (o) {
  59812. j = "can't parse JSON. Raw result:\n\n" + s;
  59813. }
  59814. L = Pe.createElement(
  59815. x,
  59816. { language: o, downloadable: !0, fileName: `${C}.json`, canCopy: !0 },
  59817. j
  59818. );
  59819. } else
  59820. /xml/i.test(o)
  59821. ? ((j = _k()(s, { textNodesOnSameLine: !0, indentor: ' ' })),
  59822. (L = Pe.createElement(
  59823. x,
  59824. { downloadable: !0, fileName: `${C}.xml`, canCopy: !0 },
  59825. j
  59826. )))
  59827. : (L =
  59828. 'text/html' === xk()(o) || /text\/plain/.test(o)
  59829. ? Pe.createElement(
  59830. x,
  59831. { downloadable: !0, fileName: `${C}.html`, canCopy: !0 },
  59832. s
  59833. )
  59834. : 'text/csv' === xk()(o) || /text\/csv/.test(o)
  59835. ? Pe.createElement(
  59836. x,
  59837. { downloadable: !0, fileName: `${C}.csv`, canCopy: !0 },
  59838. s
  59839. )
  59840. : /^image\//i.test(o)
  59841. ? o.includes('svg')
  59842. ? Pe.createElement('div', null, ' ', s, ' ')
  59843. : Pe.createElement('img', { src: window.URL.createObjectURL(s) })
  59844. : /^audio\//i.test(o)
  59845. ? Pe.createElement(
  59846. 'pre',
  59847. { className: 'microlight' },
  59848. Pe.createElement(
  59849. 'audio',
  59850. { controls: !0, key: i },
  59851. Pe.createElement('source', { src: i, type: o })
  59852. )
  59853. )
  59854. : 'string' == typeof s
  59855. ? Pe.createElement(
  59856. x,
  59857. { downloadable: !0, fileName: `${C}.txt`, canCopy: !0 },
  59858. s
  59859. )
  59860. : s.size > 0
  59861. ? w
  59862. ? Pe.createElement(
  59863. 'div',
  59864. null,
  59865. Pe.createElement(
  59866. 'p',
  59867. { className: 'i' },
  59868. 'Unrecognized response type; displaying content as text.'
  59869. ),
  59870. Pe.createElement(
  59871. x,
  59872. { downloadable: !0, fileName: `${C}.txt`, canCopy: !0 },
  59873. w
  59874. )
  59875. )
  59876. : Pe.createElement(
  59877. 'p',
  59878. { className: 'i' },
  59879. 'Unrecognized response type; unable to display.'
  59880. )
  59881. : null);
  59882. return L
  59883. ? Pe.createElement('div', null, Pe.createElement('h5', null, 'Response body'), L)
  59884. : null;
  59885. }
  59886. }
  59887. class Parameters extends Pe.Component {
  59888. constructor(s) {
  59889. super(s), (this.state = { callbackVisible: !1, parametersVisible: !0 });
  59890. }
  59891. static defaultProps = {
  59892. onTryoutClick: Function.prototype,
  59893. onCancelClick: Function.prototype,
  59894. tryItOutEnabled: !1,
  59895. allowTryItOut: !0,
  59896. onChangeKey: [],
  59897. specPath: []
  59898. };
  59899. onChange = (s, o, i) => {
  59900. let {
  59901. specActions: { changeParamByIdentity: u },
  59902. onChangeKey: _
  59903. } = this.props;
  59904. u(_, s, o, i);
  59905. };
  59906. onChangeConsumesWrapper = (s) => {
  59907. let {
  59908. specActions: { changeConsumesValue: o },
  59909. onChangeKey: i
  59910. } = this.props;
  59911. o(i, s);
  59912. };
  59913. toggleTab = (s) =>
  59914. 'parameters' === s
  59915. ? this.setState({ parametersVisible: !0, callbackVisible: !1 })
  59916. : 'callbacks' === s
  59917. ? this.setState({ callbackVisible: !0, parametersVisible: !1 })
  59918. : void 0;
  59919. onChangeMediaType = ({ value: s, pathMethod: o }) => {
  59920. let { specActions: i, oas3Selectors: u, oas3Actions: _ } = this.props;
  59921. const w = u.hasUserEditedBody(...o),
  59922. x = u.shouldRetainRequestBodyValue(...o);
  59923. _.setRequestContentType({ value: s, pathMethod: o }),
  59924. _.initRequestBodyValidateError({ pathMethod: o }),
  59925. w ||
  59926. (x || _.setRequestBodyValue({ value: void 0, pathMethod: o }),
  59927. i.clearResponse(...o),
  59928. i.clearRequest(...o),
  59929. i.clearValidateParams(o));
  59930. };
  59931. render() {
  59932. let {
  59933. onTryoutClick: s,
  59934. onResetClick: o,
  59935. parameters: i,
  59936. allowTryItOut: u,
  59937. tryItOutEnabled: _,
  59938. specPath: w,
  59939. fn: x,
  59940. getComponent: C,
  59941. getConfigs: j,
  59942. specSelectors: L,
  59943. specActions: B,
  59944. pathMethod: $,
  59945. oas3Actions: V,
  59946. oas3Selectors: U,
  59947. operation: z
  59948. } = this.props;
  59949. const Y = C('parameterRow'),
  59950. Z = C('TryItOutButton'),
  59951. ee = C('contentType'),
  59952. ie = C('Callbacks', !0),
  59953. ae = C('RequestBody', !0),
  59954. le = _ && u,
  59955. ce = L.isOAS3(),
  59956. pe = `${createHtmlReadyId(`${$[1]}${$[0]}_requests`)}_select`,
  59957. de = z.get('requestBody'),
  59958. fe = Object.values(
  59959. i.reduce((s, o) => {
  59960. const i = o.get('in');
  59961. return (s[i] ??= []), s[i].push(o), s;
  59962. }, {})
  59963. ).reduce((s, o) => s.concat(o), []);
  59964. return Pe.createElement(
  59965. 'div',
  59966. { className: 'opblock-section' },
  59967. Pe.createElement(
  59968. 'div',
  59969. { className: 'opblock-section-header' },
  59970. ce
  59971. ? Pe.createElement(
  59972. 'div',
  59973. { className: 'tab-header' },
  59974. Pe.createElement(
  59975. 'div',
  59976. {
  59977. onClick: () => this.toggleTab('parameters'),
  59978. className: `tab-item ${this.state.parametersVisible && 'active'}`
  59979. },
  59980. Pe.createElement(
  59981. 'h4',
  59982. { className: 'opblock-title' },
  59983. Pe.createElement('span', null, 'Parameters')
  59984. )
  59985. ),
  59986. z.get('callbacks')
  59987. ? Pe.createElement(
  59988. 'div',
  59989. {
  59990. onClick: () => this.toggleTab('callbacks'),
  59991. className: `tab-item ${this.state.callbackVisible && 'active'}`
  59992. },
  59993. Pe.createElement(
  59994. 'h4',
  59995. { className: 'opblock-title' },
  59996. Pe.createElement('span', null, 'Callbacks')
  59997. )
  59998. )
  59999. : null
  60000. )
  60001. : Pe.createElement(
  60002. 'div',
  60003. { className: 'tab-header' },
  60004. Pe.createElement('h4', { className: 'opblock-title' }, 'Parameters')
  60005. ),
  60006. u
  60007. ? Pe.createElement(Z, {
  60008. isOAS3: L.isOAS3(),
  60009. hasUserEditedBody: U.hasUserEditedBody(...$),
  60010. enabled: _,
  60011. onCancelClick: this.props.onCancelClick,
  60012. onTryoutClick: s,
  60013. onResetClick: () => o($)
  60014. })
  60015. : null
  60016. ),
  60017. this.state.parametersVisible
  60018. ? Pe.createElement(
  60019. 'div',
  60020. { className: 'parameters-container' },
  60021. fe.length
  60022. ? Pe.createElement(
  60023. 'div',
  60024. { className: 'table-container' },
  60025. Pe.createElement(
  60026. 'table',
  60027. { className: 'parameters' },
  60028. Pe.createElement(
  60029. 'thead',
  60030. null,
  60031. Pe.createElement(
  60032. 'tr',
  60033. null,
  60034. Pe.createElement(
  60035. 'th',
  60036. { className: 'col_header parameters-col_name' },
  60037. 'Name'
  60038. ),
  60039. Pe.createElement(
  60040. 'th',
  60041. { className: 'col_header parameters-col_description' },
  60042. 'Description'
  60043. )
  60044. )
  60045. ),
  60046. Pe.createElement(
  60047. 'tbody',
  60048. null,
  60049. fe.map((s, o) =>
  60050. Pe.createElement(Y, {
  60051. fn: x,
  60052. specPath: w.push(o.toString()),
  60053. getComponent: C,
  60054. getConfigs: j,
  60055. rawParam: s,
  60056. param: L.parameterWithMetaByIdentity($, s),
  60057. key: `${s.get('in')}.${s.get('name')}`,
  60058. onChange: this.onChange,
  60059. onChangeConsumes: this.onChangeConsumesWrapper,
  60060. specSelectors: L,
  60061. specActions: B,
  60062. oas3Actions: V,
  60063. oas3Selectors: U,
  60064. pathMethod: $,
  60065. isExecute: le
  60066. })
  60067. )
  60068. )
  60069. )
  60070. )
  60071. : Pe.createElement(
  60072. 'div',
  60073. { className: 'opblock-description-wrapper' },
  60074. Pe.createElement('p', null, 'No parameters')
  60075. )
  60076. )
  60077. : null,
  60078. this.state.callbackVisible
  60079. ? Pe.createElement(
  60080. 'div',
  60081. { className: 'callbacks-container opblock-description-wrapper' },
  60082. Pe.createElement(ie, {
  60083. callbacks: (0, qe.Map)(z.get('callbacks')),
  60084. specPath: w.slice(0, -1).push('callbacks')
  60085. })
  60086. )
  60087. : null,
  60088. ce &&
  60089. de &&
  60090. this.state.parametersVisible &&
  60091. Pe.createElement(
  60092. 'div',
  60093. { className: 'opblock-section opblock-section-request-body' },
  60094. Pe.createElement(
  60095. 'div',
  60096. { className: 'opblock-section-header' },
  60097. Pe.createElement(
  60098. 'h4',
  60099. {
  60100. className: `opblock-title parameter__name ${de.get('required') && 'required'}`
  60101. },
  60102. 'Request body'
  60103. ),
  60104. Pe.createElement(
  60105. 'label',
  60106. { id: pe },
  60107. Pe.createElement(ee, {
  60108. value: U.requestContentType(...$),
  60109. contentTypes: de.get('content', (0, qe.List)()).keySeq(),
  60110. onChange: (s) => {
  60111. this.onChangeMediaType({ value: s, pathMethod: $ });
  60112. },
  60113. className: 'body-param-content-type',
  60114. ariaLabel: 'Request content type',
  60115. controlId: pe
  60116. })
  60117. )
  60118. ),
  60119. Pe.createElement(
  60120. 'div',
  60121. { className: 'opblock-description-wrapper' },
  60122. Pe.createElement(ae, {
  60123. setRetainRequestBodyValueFlag: (s) =>
  60124. V.setRetainRequestBodyValueFlag({ value: s, pathMethod: $ }),
  60125. userHasEditedBody: U.hasUserEditedBody(...$),
  60126. specPath: w.slice(0, -1).push('requestBody'),
  60127. requestBody: de,
  60128. requestBodyValue: U.requestBodyValue(...$),
  60129. requestBodyInclusionSetting: U.requestBodyInclusionSetting(...$),
  60130. requestBodyErrors: U.requestBodyErrors(...$),
  60131. isExecute: le,
  60132. getConfigs: j,
  60133. activeExamplesKey: U.activeExamplesMember(...$, 'requestBody', 'requestBody'),
  60134. updateActiveExamplesKey: (s) => {
  60135. this.props.oas3Actions.setActiveExamplesMember({
  60136. name: s,
  60137. pathMethod: this.props.pathMethod,
  60138. contextType: 'requestBody',
  60139. contextName: 'requestBody'
  60140. });
  60141. },
  60142. onChange: (s, o) => {
  60143. if (o) {
  60144. const i = U.requestBodyValue(...$),
  60145. u = qe.Map.isMap(i) ? i : (0, qe.Map)();
  60146. return V.setRequestBodyValue({ pathMethod: $, value: u.setIn(o, s) });
  60147. }
  60148. V.setRequestBodyValue({ value: s, pathMethod: $ });
  60149. },
  60150. onChangeIncludeEmpty: (s, o) => {
  60151. V.setRequestBodyInclusion({ pathMethod: $, value: o, name: s });
  60152. },
  60153. contentType: U.requestContentType(...$)
  60154. })
  60155. )
  60156. )
  60157. );
  60158. }
  60159. }
  60160. const parameter_extension = ({ xKey: s, xVal: o }) =>
  60161. Pe.createElement('div', { className: 'parameter__extension' }, s, ': ', String(o)),
  60162. Ak = { onChange: () => {}, isIncludedOptions: {} };
  60163. class ParameterIncludeEmpty extends Pe.Component {
  60164. static defaultProps = Ak;
  60165. componentDidMount() {
  60166. const { isIncludedOptions: s, onChange: o } = this.props,
  60167. { shouldDispatchInit: i, defaultValue: u } = s;
  60168. i && o(u);
  60169. }
  60170. onCheckboxChange = (s) => {
  60171. const { onChange: o } = this.props;
  60172. o(s.target.checked);
  60173. };
  60174. render() {
  60175. let { isIncluded: s, isDisabled: o } = this.props;
  60176. return Pe.createElement(
  60177. 'div',
  60178. null,
  60179. Pe.createElement(
  60180. 'label',
  60181. {
  60182. htmlFor: 'include_empty_value',
  60183. className: Hn()('parameter__empty_value_toggle', { disabled: o })
  60184. },
  60185. Pe.createElement('input', {
  60186. id: 'include_empty_value',
  60187. type: 'checkbox',
  60188. disabled: o,
  60189. checked: !o && s,
  60190. onChange: this.onCheckboxChange
  60191. }),
  60192. 'Send empty value'
  60193. )
  60194. );
  60195. }
  60196. }
  60197. class ParameterRow extends Pe.Component {
  60198. constructor(s, o) {
  60199. super(s, o), this.setDefaultValue();
  60200. }
  60201. UNSAFE_componentWillReceiveProps(s) {
  60202. let o,
  60203. { specSelectors: i, pathMethod: u, rawParam: _ } = s,
  60204. w = i.isOAS3(),
  60205. x = i.parameterWithMetaByIdentity(u, _) || new qe.Map();
  60206. if (((x = x.isEmpty() ? _ : x), w)) {
  60207. let { schema: s } = getParameterSchema(x, { isOAS3: w });
  60208. o = s ? s.get('enum') : void 0;
  60209. } else o = x ? x.get('enum') : void 0;
  60210. let C,
  60211. j = x ? x.get('value') : void 0;
  60212. void 0 !== j ? (C = j) : _.get('required') && o && o.size && (C = o.first()),
  60213. void 0 !== C &&
  60214. C !== j &&
  60215. this.onChangeWrapper(
  60216. (function numberToString(s) {
  60217. return 'number' == typeof s ? s.toString() : s;
  60218. })(C)
  60219. ),
  60220. this.setDefaultValue();
  60221. }
  60222. onChangeWrapper = (s, o = !1) => {
  60223. let i,
  60224. { onChange: u, rawParam: _ } = this.props;
  60225. return (i = '' === s || (s && 0 === s.size) ? null : s), u(_, i, o);
  60226. };
  60227. _onExampleSelect = (s) => {
  60228. this.props.oas3Actions.setActiveExamplesMember({
  60229. name: s,
  60230. pathMethod: this.props.pathMethod,
  60231. contextType: 'parameters',
  60232. contextName: this.getParamKey()
  60233. });
  60234. };
  60235. onChangeIncludeEmpty = (s) => {
  60236. let { specActions: o, param: i, pathMethod: u } = this.props;
  60237. const _ = i.get('name'),
  60238. w = i.get('in');
  60239. return o.updateEmptyParamInclusion(u, _, w, s);
  60240. };
  60241. setDefaultValue = () => {
  60242. let {
  60243. specSelectors: s,
  60244. pathMethod: o,
  60245. rawParam: i,
  60246. oas3Selectors: u,
  60247. fn: _
  60248. } = this.props;
  60249. const w = s.parameterWithMetaByIdentity(o, i) || (0, qe.Map)();
  60250. let { schema: x } = getParameterSchema(w, { isOAS3: s.isOAS3() });
  60251. const C = w
  60252. .get('content', (0, qe.Map)())
  60253. .keySeq()
  60254. .first(),
  60255. j = x ? _.getSampleSchema(x.toJS(), C, { includeWriteOnly: !0 }) : null;
  60256. if (w && void 0 === w.get('value') && 'body' !== w.get('in')) {
  60257. let i;
  60258. if (s.isSwagger2())
  60259. i =
  60260. void 0 !== w.get('x-example')
  60261. ? w.get('x-example')
  60262. : void 0 !== w.getIn(['schema', 'example'])
  60263. ? w.getIn(['schema', 'example'])
  60264. : x && x.getIn(['default']);
  60265. else if (s.isOAS3()) {
  60266. x = this.composeJsonSchema(x);
  60267. const s = u.activeExamplesMember(...o, 'parameters', this.getParamKey());
  60268. i =
  60269. void 0 !== w.getIn(['examples', s, 'value'])
  60270. ? w.getIn(['examples', s, 'value'])
  60271. : void 0 !== w.getIn(['content', C, 'example'])
  60272. ? w.getIn(['content', C, 'example'])
  60273. : void 0 !== w.get('example')
  60274. ? w.get('example')
  60275. : void 0 !== (x && x.get('example'))
  60276. ? x && x.get('example')
  60277. : void 0 !== (x && x.get('default'))
  60278. ? x && x.get('default')
  60279. : w.get('default');
  60280. }
  60281. void 0 === i || qe.List.isList(i) || (i = stringify(i)),
  60282. void 0 !== i
  60283. ? this.onChangeWrapper(i)
  60284. : x &&
  60285. 'object' === x.get('type') &&
  60286. j &&
  60287. !w.get('examples') &&
  60288. this.onChangeWrapper(qe.List.isList(j) ? j : stringify(j));
  60289. }
  60290. };
  60291. getParamKey() {
  60292. const { param: s } = this.props;
  60293. return s ? `${s.get('name')}-${s.get('in')}` : null;
  60294. }
  60295. composeJsonSchema(s) {
  60296. const { fn: o } = this.props,
  60297. i = s.get('oneOf')?.get(0)?.toJS(),
  60298. u = s.get('anyOf')?.get(0)?.toJS();
  60299. return (0, qe.fromJS)(o.mergeJsonSchema(s.toJS(), i ?? u ?? {}));
  60300. }
  60301. render() {
  60302. let {
  60303. param: s,
  60304. rawParam: o,
  60305. getComponent: i,
  60306. getConfigs: u,
  60307. isExecute: _,
  60308. fn: w,
  60309. onChangeConsumes: x,
  60310. specSelectors: C,
  60311. pathMethod: j,
  60312. specPath: L,
  60313. oas3Selectors: B
  60314. } = this.props,
  60315. $ = C.isOAS3();
  60316. const { showExtensions: V, showCommonExtensions: U } = u();
  60317. if ((s || (s = o), !o)) return null;
  60318. const z = i('JsonSchemaForm'),
  60319. Y = i('ParamBody');
  60320. let Z = s.get('in'),
  60321. ee =
  60322. 'body' !== Z
  60323. ? null
  60324. : Pe.createElement(Y, {
  60325. getComponent: i,
  60326. getConfigs: u,
  60327. fn: w,
  60328. param: s,
  60329. consumes: C.consumesOptionsFor(j),
  60330. consumesValue: C.contentTypeValues(j).get('requestContentType'),
  60331. onChange: this.onChangeWrapper,
  60332. onChangeConsumes: x,
  60333. isExecute: _,
  60334. specSelectors: C,
  60335. pathMethod: j
  60336. });
  60337. const ie = i('modelExample'),
  60338. ae = i('Markdown', !0),
  60339. le = i('ParameterExt'),
  60340. ce = i('ParameterIncludeEmpty'),
  60341. pe = i('ExamplesSelectValueRetainer'),
  60342. de = i('Example');
  60343. let { schema: fe } = getParameterSchema(s, { isOAS3: $ }),
  60344. ye = C.parameterWithMetaByIdentity(j, o) || (0, qe.Map)();
  60345. $ && (fe = this.composeJsonSchema(fe));
  60346. let be,
  60347. _e,
  60348. we,
  60349. Se,
  60350. xe = fe ? fe.get('format') : null,
  60351. Te = fe ? fe.get('type') : null,
  60352. Re = fe ? fe.getIn(['items', 'type']) : null,
  60353. $e = 'formData' === Z,
  60354. ze = 'FormData' in at,
  60355. We = s.get('required'),
  60356. He = ye ? ye.get('value') : '',
  60357. Ye = U ? getCommonExtensions(fe) : null,
  60358. Xe = V ? getExtensions(s) : null,
  60359. Qe = !1;
  60360. return (
  60361. void 0 !== s && fe && (be = fe.get('items')),
  60362. void 0 !== be
  60363. ? ((_e = be.get('enum')), (we = be.get('default')))
  60364. : fe && (_e = fe.get('enum')),
  60365. _e && _e.size && _e.size > 0 && (Qe = !0),
  60366. void 0 !== s &&
  60367. (fe && (we = fe.get('default')),
  60368. void 0 === we && (we = s.get('default')),
  60369. (Se = s.get('example')),
  60370. void 0 === Se && (Se = s.get('x-example'))),
  60371. Pe.createElement(
  60372. 'tr',
  60373. { 'data-param-name': s.get('name'), 'data-param-in': s.get('in') },
  60374. Pe.createElement(
  60375. 'td',
  60376. { className: 'parameters-col_name' },
  60377. Pe.createElement(
  60378. 'div',
  60379. { className: We ? 'parameter__name required' : 'parameter__name' },
  60380. s.get('name'),
  60381. We ? Pe.createElement('span', null, ' *') : null
  60382. ),
  60383. Pe.createElement(
  60384. 'div',
  60385. { className: 'parameter__type' },
  60386. Te,
  60387. Re && `[${Re}]`,
  60388. xe && Pe.createElement('span', { className: 'prop-format' }, '($', xe, ')')
  60389. ),
  60390. Pe.createElement(
  60391. 'div',
  60392. { className: 'parameter__deprecated' },
  60393. $ && s.get('deprecated') ? 'deprecated' : null
  60394. ),
  60395. Pe.createElement('div', { className: 'parameter__in' }, '(', s.get('in'), ')')
  60396. ),
  60397. Pe.createElement(
  60398. 'td',
  60399. { className: 'parameters-col_description' },
  60400. s.get('description')
  60401. ? Pe.createElement(ae, { source: s.get('description') })
  60402. : null,
  60403. (!ee && _) || !Qe
  60404. ? null
  60405. : Pe.createElement(ae, {
  60406. className: 'parameter__enum',
  60407. source:
  60408. '<i>Available values</i> : ' +
  60409. _e
  60410. .map(function (s) {
  60411. return s;
  60412. })
  60413. .toArray()
  60414. .map(String)
  60415. .join(', ')
  60416. }),
  60417. (!ee && _) || void 0 === we
  60418. ? null
  60419. : Pe.createElement(ae, {
  60420. className: 'parameter__default',
  60421. source: '<i>Default value</i> : ' + we
  60422. }),
  60423. (!ee && _) || void 0 === Se
  60424. ? null
  60425. : Pe.createElement(ae, { source: '<i>Example</i> : ' + Se }),
  60426. $e &&
  60427. !ze &&
  60428. Pe.createElement('div', null, 'Error: your browser does not support FormData'),
  60429. $ && s.get('examples')
  60430. ? Pe.createElement(
  60431. 'section',
  60432. { className: 'parameter-controls' },
  60433. Pe.createElement(pe, {
  60434. examples: s.get('examples'),
  60435. onSelect: this._onExampleSelect,
  60436. updateValue: this.onChangeWrapper,
  60437. getComponent: i,
  60438. defaultToFirstExample: !0,
  60439. currentKey: B.activeExamplesMember(
  60440. ...j,
  60441. 'parameters',
  60442. this.getParamKey()
  60443. ),
  60444. currentUserInputValue: He
  60445. })
  60446. )
  60447. : null,
  60448. ee
  60449. ? null
  60450. : Pe.createElement(z, {
  60451. fn: w,
  60452. getComponent: i,
  60453. value: He,
  60454. required: We,
  60455. disabled: !_,
  60456. description: s.get('name'),
  60457. onChange: this.onChangeWrapper,
  60458. errors: ye.get('errors'),
  60459. schema: fe
  60460. }),
  60461. ee && fe
  60462. ? Pe.createElement(ie, {
  60463. getComponent: i,
  60464. specPath: L.push('schema'),
  60465. getConfigs: u,
  60466. isExecute: _,
  60467. specSelectors: C,
  60468. schema: fe,
  60469. example: ee,
  60470. includeWriteOnly: !0
  60471. })
  60472. : null,
  60473. !ee && _ && s.get('allowEmptyValue')
  60474. ? Pe.createElement(ce, {
  60475. onChange: this.onChangeIncludeEmpty,
  60476. isIncluded: C.parameterInclusionSettingFor(j, s.get('name'), s.get('in')),
  60477. isDisabled: !isEmptyValue(He)
  60478. })
  60479. : null,
  60480. $ && s.get('examples')
  60481. ? Pe.createElement(de, {
  60482. example: s.getIn([
  60483. 'examples',
  60484. B.activeExamplesMember(...j, 'parameters', this.getParamKey())
  60485. ]),
  60486. getComponent: i,
  60487. getConfigs: u
  60488. })
  60489. : null,
  60490. U && Ye.size
  60491. ? Ye.entrySeq().map(([s, o]) =>
  60492. Pe.createElement(le, { key: `${s}-${o}`, xKey: s, xVal: o })
  60493. )
  60494. : null,
  60495. V && Xe.size
  60496. ? Xe.entrySeq().map(([s, o]) =>
  60497. Pe.createElement(le, { key: `${s}-${o}`, xKey: s, xVal: o })
  60498. )
  60499. : null
  60500. )
  60501. )
  60502. );
  60503. }
  60504. }
  60505. class Execute extends Pe.Component {
  60506. handleValidateParameters = () => {
  60507. let { specSelectors: s, specActions: o, path: i, method: u } = this.props;
  60508. return o.validateParams([i, u]), s.validateBeforeExecute([i, u]);
  60509. };
  60510. handleValidateRequestBody = () => {
  60511. let {
  60512. path: s,
  60513. method: o,
  60514. specSelectors: i,
  60515. oas3Selectors: u,
  60516. oas3Actions: _
  60517. } = this.props,
  60518. w = { missingBodyValue: !1, missingRequiredKeys: [] };
  60519. _.clearRequestBodyValidateError({ path: s, method: o });
  60520. let x = i.getOAS3RequiredRequestBodyContentType([s, o]),
  60521. C = u.requestBodyValue(s, o),
  60522. j = u.validateBeforeExecute([s, o]),
  60523. L = u.requestContentType(s, o);
  60524. if (!j)
  60525. return (
  60526. (w.missingBodyValue = !0),
  60527. _.setRequestBodyValidateError({ path: s, method: o, validationErrors: w }),
  60528. !1
  60529. );
  60530. if (!x) return !0;
  60531. let B = u.validateShallowRequired({
  60532. oas3RequiredRequestBodyContentType: x,
  60533. oas3RequestContentType: L,
  60534. oas3RequestBodyValue: C
  60535. });
  60536. return (
  60537. !B ||
  60538. B.length < 1 ||
  60539. (B.forEach((s) => {
  60540. w.missingRequiredKeys.push(s);
  60541. }),
  60542. _.setRequestBodyValidateError({ path: s, method: o, validationErrors: w }),
  60543. !1)
  60544. );
  60545. };
  60546. handleValidationResultPass = () => {
  60547. let { specActions: s, operation: o, path: i, method: u } = this.props;
  60548. this.props.onExecute && this.props.onExecute(),
  60549. s.execute({ operation: o, path: i, method: u });
  60550. };
  60551. handleValidationResultFail = () => {
  60552. let { specActions: s, path: o, method: i } = this.props;
  60553. s.clearValidateParams([o, i]),
  60554. setTimeout(() => {
  60555. s.validateParams([o, i]);
  60556. }, 40);
  60557. };
  60558. handleValidationResult = (s) => {
  60559. s ? this.handleValidationResultPass() : this.handleValidationResultFail();
  60560. };
  60561. onClick = () => {
  60562. let s = this.handleValidateParameters(),
  60563. o = this.handleValidateRequestBody(),
  60564. i = s && o;
  60565. this.handleValidationResult(i);
  60566. };
  60567. onChangeProducesWrapper = (s) =>
  60568. this.props.specActions.changeProducesValue([this.props.path, this.props.method], s);
  60569. render() {
  60570. const { disabled: s } = this.props;
  60571. return Pe.createElement(
  60572. 'button',
  60573. { className: 'btn execute opblock-control__btn', onClick: this.onClick, disabled: s },
  60574. 'Execute'
  60575. );
  60576. }
  60577. }
  60578. class headers_Headers extends Pe.Component {
  60579. render() {
  60580. let { headers: s, getComponent: o } = this.props;
  60581. const i = o('Property'),
  60582. u = o('Markdown', !0);
  60583. return s && s.size
  60584. ? Pe.createElement(
  60585. 'div',
  60586. { className: 'headers-wrapper' },
  60587. Pe.createElement('h4', { className: 'headers__title' }, 'Headers:'),
  60588. Pe.createElement(
  60589. 'table',
  60590. { className: 'headers' },
  60591. Pe.createElement(
  60592. 'thead',
  60593. null,
  60594. Pe.createElement(
  60595. 'tr',
  60596. { className: 'header-row' },
  60597. Pe.createElement('th', { className: 'header-col' }, 'Name'),
  60598. Pe.createElement('th', { className: 'header-col' }, 'Description'),
  60599. Pe.createElement('th', { className: 'header-col' }, 'Type')
  60600. )
  60601. ),
  60602. Pe.createElement(
  60603. 'tbody',
  60604. null,
  60605. s
  60606. .entrySeq()
  60607. .map(([s, o]) => {
  60608. if (!$e().Map.isMap(o)) return null;
  60609. const _ = o.get('description'),
  60610. w = o.getIn(['schema'])
  60611. ? o.getIn(['schema', 'type'])
  60612. : o.getIn(['type']),
  60613. x = o.getIn(['schema', 'example']);
  60614. return Pe.createElement(
  60615. 'tr',
  60616. { key: s },
  60617. Pe.createElement('td', { className: 'header-col' }, s),
  60618. Pe.createElement(
  60619. 'td',
  60620. { className: 'header-col' },
  60621. _ ? Pe.createElement(u, { source: _ }) : null
  60622. ),
  60623. Pe.createElement(
  60624. 'td',
  60625. { className: 'header-col' },
  60626. w,
  60627. ' ',
  60628. x
  60629. ? Pe.createElement(i, {
  60630. propKey: 'Example',
  60631. propVal: x,
  60632. propClass: 'header-example'
  60633. })
  60634. : null
  60635. )
  60636. );
  60637. })
  60638. .toArray()
  60639. )
  60640. )
  60641. )
  60642. : null;
  60643. }
  60644. }
  60645. class Errors extends Pe.Component {
  60646. render() {
  60647. let {
  60648. editorActions: s,
  60649. errSelectors: o,
  60650. layoutSelectors: i,
  60651. layoutActions: u,
  60652. getComponent: _
  60653. } = this.props;
  60654. const w = _('Collapse');
  60655. if (s && s.jumpToLine) var x = s.jumpToLine;
  60656. let C = o
  60657. .allErrors()
  60658. .filter((s) => 'thrown' === s.get('type') || 'error' === s.get('level'));
  60659. if (!C || C.count() < 1) return null;
  60660. let j = i.isShown(['errorPane'], !0),
  60661. L = C.sortBy((s) => s.get('line'));
  60662. return Pe.createElement(
  60663. 'pre',
  60664. { className: 'errors-wrapper' },
  60665. Pe.createElement(
  60666. 'hgroup',
  60667. { className: 'error' },
  60668. Pe.createElement('h4', { className: 'errors__title' }, 'Errors'),
  60669. Pe.createElement(
  60670. 'button',
  60671. { className: 'btn errors__clear-btn', onClick: () => u.show(['errorPane'], !j) },
  60672. j ? 'Hide' : 'Show'
  60673. )
  60674. ),
  60675. Pe.createElement(
  60676. w,
  60677. { isOpened: j, animated: !0 },
  60678. Pe.createElement(
  60679. 'div',
  60680. { className: 'errors' },
  60681. L.map((s, o) => {
  60682. let i = s.get('type');
  60683. return 'thrown' === i || 'auth' === i
  60684. ? Pe.createElement(ThrownErrorItem, {
  60685. key: o,
  60686. error: s.get('error') || s,
  60687. jumpToLine: x
  60688. })
  60689. : 'spec' === i
  60690. ? Pe.createElement(SpecErrorItem, { key: o, error: s, jumpToLine: x })
  60691. : void 0;
  60692. })
  60693. )
  60694. )
  60695. );
  60696. }
  60697. }
  60698. const ThrownErrorItem = ({ error: s, jumpToLine: o }) => {
  60699. if (!s) return null;
  60700. let i = s.get('line');
  60701. return Pe.createElement(
  60702. 'div',
  60703. { className: 'error-wrapper' },
  60704. s
  60705. ? Pe.createElement(
  60706. 'div',
  60707. null,
  60708. Pe.createElement(
  60709. 'h4',
  60710. null,
  60711. s.get('source') && s.get('level')
  60712. ? toTitleCase(s.get('source')) + ' ' + s.get('level')
  60713. : '',
  60714. s.get('path') ? Pe.createElement('small', null, ' at ', s.get('path')) : null
  60715. ),
  60716. Pe.createElement('span', { className: 'message thrown' }, s.get('message')),
  60717. Pe.createElement(
  60718. 'div',
  60719. { className: 'error-line' },
  60720. i && o
  60721. ? Pe.createElement('a', { onClick: o.bind(null, i) }, 'Jump to line ', i)
  60722. : null
  60723. )
  60724. )
  60725. : null
  60726. );
  60727. },
  60728. SpecErrorItem = ({ error: s, jumpToLine: o = null }) => {
  60729. let i = null;
  60730. return (
  60731. s.get('path')
  60732. ? (i = qe.List.isList(s.get('path'))
  60733. ? Pe.createElement('small', null, 'at ', s.get('path').join('.'))
  60734. : Pe.createElement('small', null, 'at ', s.get('path')))
  60735. : s.get('line') &&
  60736. !o &&
  60737. (i = Pe.createElement('small', null, 'on line ', s.get('line'))),
  60738. Pe.createElement(
  60739. 'div',
  60740. { className: 'error-wrapper' },
  60741. s
  60742. ? Pe.createElement(
  60743. 'div',
  60744. null,
  60745. Pe.createElement(
  60746. 'h4',
  60747. null,
  60748. toTitleCase(s.get('source')) + ' ' + s.get('level'),
  60749. ' ',
  60750. i
  60751. ),
  60752. Pe.createElement('span', { className: 'message' }, s.get('message')),
  60753. Pe.createElement(
  60754. 'div',
  60755. { className: 'error-line' },
  60756. o
  60757. ? Pe.createElement(
  60758. 'a',
  60759. { onClick: o.bind(null, s.get('line')) },
  60760. 'Jump to line ',
  60761. s.get('line')
  60762. )
  60763. : null
  60764. )
  60765. )
  60766. : null
  60767. )
  60768. );
  60769. };
  60770. function toTitleCase(s) {
  60771. return (s || '')
  60772. .split(' ')
  60773. .map((s) => s[0].toUpperCase() + s.slice(1))
  60774. .join(' ');
  60775. }
  60776. const content_type_noop = () => {};
  60777. class ContentType extends Pe.Component {
  60778. static defaultProps = {
  60779. onChange: content_type_noop,
  60780. value: null,
  60781. contentTypes: (0, qe.fromJS)(['application/json'])
  60782. };
  60783. componentDidMount() {
  60784. this.props.contentTypes && this.props.onChange(this.props.contentTypes.first());
  60785. }
  60786. UNSAFE_componentWillReceiveProps(s) {
  60787. s.contentTypes &&
  60788. s.contentTypes.size &&
  60789. (s.contentTypes.includes(s.value) || s.onChange(s.contentTypes.first()));
  60790. }
  60791. onChangeWrapper = (s) => this.props.onChange(s.target.value);
  60792. render() {
  60793. let {
  60794. ariaControls: s,
  60795. ariaLabel: o,
  60796. className: i,
  60797. contentTypes: u,
  60798. controlId: _,
  60799. value: w
  60800. } = this.props;
  60801. return u && u.size
  60802. ? Pe.createElement(
  60803. 'div',
  60804. { className: 'content-type-wrapper ' + (i || '') },
  60805. Pe.createElement(
  60806. 'select',
  60807. {
  60808. 'aria-controls': s,
  60809. 'aria-label': o,
  60810. className: 'content-type',
  60811. id: _,
  60812. onChange: this.onChangeWrapper,
  60813. value: w || ''
  60814. },
  60815. u.map((s) => Pe.createElement('option', { key: s, value: s }, s)).toArray()
  60816. )
  60817. )
  60818. : null;
  60819. }
  60820. }
  60821. function xclass(...s) {
  60822. return s
  60823. .filter((s) => !!s)
  60824. .join(' ')
  60825. .trim();
  60826. }
  60827. class Container extends Pe.Component {
  60828. render() {
  60829. let { fullscreen: s, full: o, ...i } = this.props;
  60830. if (s) return Pe.createElement('section', i);
  60831. let u = 'swagger-container' + (o ? '-full' : '');
  60832. return Pe.createElement('section', Rn()({}, i, { className: xclass(i.className, u) }));
  60833. }
  60834. }
  60835. const Bk = { mobile: '', tablet: '-tablet', desktop: '-desktop', large: '-hd' };
  60836. class Col extends Pe.Component {
  60837. render() {
  60838. const {
  60839. hide: s,
  60840. keepContents: o,
  60841. mobile: i,
  60842. tablet: u,
  60843. desktop: _,
  60844. large: w,
  60845. ...x
  60846. } = this.props;
  60847. if (s && !o) return Pe.createElement('span', null);
  60848. let C = [];
  60849. for (let s in Bk) {
  60850. if (!Object.prototype.hasOwnProperty.call(Bk, s)) continue;
  60851. let o = Bk[s];
  60852. if (s in this.props) {
  60853. let i = this.props[s];
  60854. if (i < 1) {
  60855. C.push('none' + o);
  60856. continue;
  60857. }
  60858. C.push('block' + o), C.push('col-' + i + o);
  60859. }
  60860. }
  60861. s && C.push('hidden');
  60862. let j = xclass(x.className, ...C);
  60863. return Pe.createElement('section', Rn()({}, x, { className: j }));
  60864. }
  60865. }
  60866. class Row extends Pe.Component {
  60867. render() {
  60868. return Pe.createElement(
  60869. 'div',
  60870. Rn()({}, this.props, { className: xclass(this.props.className, 'wrapper') })
  60871. );
  60872. }
  60873. }
  60874. class Button extends Pe.Component {
  60875. static defaultProps = { className: '' };
  60876. render() {
  60877. return Pe.createElement(
  60878. 'button',
  60879. Rn()({}, this.props, { className: xclass(this.props.className, 'button') })
  60880. );
  60881. }
  60882. }
  60883. const TextArea = (s) => Pe.createElement('textarea', s),
  60884. Input = (s) => Pe.createElement('input', s);
  60885. class Select extends Pe.Component {
  60886. static defaultProps = { multiple: !1, allowEmptyValue: !0 };
  60887. constructor(s, o) {
  60888. let i;
  60889. super(s, o),
  60890. (i = s.value ? s.value : s.multiple ? [''] : ''),
  60891. (this.state = { value: i });
  60892. }
  60893. onChange = (s) => {
  60894. let o,
  60895. { onChange: i, multiple: u } = this.props,
  60896. _ = [].slice.call(s.target.options);
  60897. (o = u
  60898. ? _.filter(function (s) {
  60899. return s.selected;
  60900. }).map(function (s) {
  60901. return s.value;
  60902. })
  60903. : s.target.value),
  60904. this.setState({ value: o }),
  60905. i && i(o);
  60906. };
  60907. UNSAFE_componentWillReceiveProps(s) {
  60908. s.value !== this.props.value && this.setState({ value: s.value });
  60909. }
  60910. render() {
  60911. let { allowedValues: s, multiple: o, allowEmptyValue: i, disabled: u } = this.props,
  60912. _ = this.state.value?.toJS?.() || this.state.value;
  60913. return Pe.createElement(
  60914. 'select',
  60915. {
  60916. className: this.props.className,
  60917. multiple: o,
  60918. value: _,
  60919. onChange: this.onChange,
  60920. disabled: u
  60921. },
  60922. i ? Pe.createElement('option', { value: '' }, '--') : null,
  60923. s.map(function (s, o) {
  60924. return Pe.createElement('option', { key: o, value: String(s) }, String(s));
  60925. })
  60926. );
  60927. }
  60928. }
  60929. class layout_utils_Link extends Pe.Component {
  60930. render() {
  60931. return Pe.createElement(
  60932. 'a',
  60933. Rn()({}, this.props, {
  60934. rel: 'noopener noreferrer',
  60935. className: xclass(this.props.className, 'link')
  60936. })
  60937. );
  60938. }
  60939. }
  60940. const NoMargin = ({ children: s }) =>
  60941. Pe.createElement('div', { className: 'no-margin' }, ' ', s, ' ');
  60942. class Collapse extends Pe.Component {
  60943. static defaultProps = { isOpened: !1, animated: !1 };
  60944. renderNotAnimated() {
  60945. return this.props.isOpened
  60946. ? Pe.createElement(NoMargin, null, this.props.children)
  60947. : Pe.createElement('noscript', null);
  60948. }
  60949. render() {
  60950. let { animated: s, isOpened: o, children: i } = this.props;
  60951. return s
  60952. ? ((i = o ? i : null), Pe.createElement(NoMargin, null, i))
  60953. : this.renderNotAnimated();
  60954. }
  60955. }
  60956. class Overview extends Pe.Component {
  60957. constructor(...s) {
  60958. super(...s), (this.setTagShown = this._setTagShown.bind(this));
  60959. }
  60960. _setTagShown(s, o) {
  60961. this.props.layoutActions.show(s, o);
  60962. }
  60963. showOp(s, o) {
  60964. let { layoutActions: i } = this.props;
  60965. i.show(s, o);
  60966. }
  60967. render() {
  60968. let {
  60969. specSelectors: s,
  60970. layoutSelectors: o,
  60971. layoutActions: i,
  60972. getComponent: u
  60973. } = this.props,
  60974. _ = s.taggedOperations();
  60975. const w = u('Collapse');
  60976. return Pe.createElement(
  60977. 'div',
  60978. null,
  60979. Pe.createElement('h4', { className: 'overview-title' }, 'Overview'),
  60980. _.map((s, u) => {
  60981. let _ = s.get('operations'),
  60982. x = ['overview-tags', u],
  60983. C = o.isShown(x, !0);
  60984. return Pe.createElement(
  60985. 'div',
  60986. { key: 'overview-' + u },
  60987. Pe.createElement(
  60988. 'h4',
  60989. { onClick: () => i.show(x, !C), className: 'link overview-tag' },
  60990. ' ',
  60991. C ? '-' : '+',
  60992. u
  60993. ),
  60994. Pe.createElement(
  60995. w,
  60996. { isOpened: C, animated: !0 },
  60997. _.map((s) => {
  60998. let { path: u, method: _, id: w } = s.toObject(),
  60999. x = 'operations',
  61000. C = w,
  61001. j = o.isShown([x, C]);
  61002. return Pe.createElement(OperationLink, {
  61003. key: w,
  61004. path: u,
  61005. method: _,
  61006. id: u + '-' + _,
  61007. shown: j,
  61008. showOpId: C,
  61009. showOpIdPrefix: x,
  61010. href: `#operation-${C}`,
  61011. onClick: i.show
  61012. });
  61013. }).toArray()
  61014. )
  61015. );
  61016. }).toArray(),
  61017. _.size < 1 && Pe.createElement('h3', null, ' No operations defined in spec! ')
  61018. );
  61019. }
  61020. }
  61021. class OperationLink extends Pe.Component {
  61022. constructor(s) {
  61023. super(s), (this.onClick = this._onClick.bind(this));
  61024. }
  61025. _onClick() {
  61026. let { showOpId: s, showOpIdPrefix: o, onClick: i, shown: u } = this.props;
  61027. i([o, s], !u);
  61028. }
  61029. render() {
  61030. let { id: s, method: o, shown: i, href: u } = this.props;
  61031. return Pe.createElement(
  61032. layout_utils_Link,
  61033. {
  61034. href: u,
  61035. onClick: this.onClick,
  61036. className: 'block opblock-link ' + (i ? 'shown' : '')
  61037. },
  61038. Pe.createElement(
  61039. 'div',
  61040. null,
  61041. Pe.createElement('small', { className: `bold-label-${o}` }, o.toUpperCase()),
  61042. Pe.createElement('span', { className: 'bold-label' }, s)
  61043. )
  61044. );
  61045. }
  61046. }
  61047. class InitializedInput extends Pe.Component {
  61048. componentDidMount() {
  61049. this.props.initialValue && (this.inputRef.value = this.props.initialValue);
  61050. }
  61051. render() {
  61052. const { value: s, defaultValue: o, initialValue: i, ...u } = this.props;
  61053. return Pe.createElement('input', Rn()({}, u, { ref: (s) => (this.inputRef = s) }));
  61054. }
  61055. }
  61056. class InfoBasePath extends Pe.Component {
  61057. render() {
  61058. const { host: s, basePath: o } = this.props;
  61059. return Pe.createElement('pre', { className: 'base-url' }, '[ Base URL: ', s, o, ' ]');
  61060. }
  61061. }
  61062. class InfoUrl extends Pe.PureComponent {
  61063. render() {
  61064. const { url: s, getComponent: o } = this.props,
  61065. i = o('Link');
  61066. return Pe.createElement(
  61067. i,
  61068. { target: '_blank', href: sanitizeUrl(s) },
  61069. Pe.createElement('span', { className: 'url' }, ' ', s)
  61070. );
  61071. }
  61072. }
  61073. class info_Info extends Pe.Component {
  61074. render() {
  61075. const {
  61076. info: s,
  61077. url: o,
  61078. host: i,
  61079. basePath: u,
  61080. getComponent: _,
  61081. externalDocs: w,
  61082. selectedServer: x,
  61083. url: C
  61084. } = this.props,
  61085. j = s.get('version'),
  61086. L = s.get('description'),
  61087. B = s.get('title'),
  61088. $ = safeBuildUrl(s.get('termsOfService'), C, { selectedServer: x }),
  61089. V = s.get('contact'),
  61090. U = s.get('license'),
  61091. z = safeBuildUrl(w && w.get('url'), C, { selectedServer: x }),
  61092. Y = w && w.get('description'),
  61093. Z = _('Markdown', !0),
  61094. ee = _('Link'),
  61095. ie = _('VersionStamp'),
  61096. ae = _('OpenAPIVersion'),
  61097. le = _('InfoUrl'),
  61098. ce = _('InfoBasePath'),
  61099. pe = _('License'),
  61100. de = _('Contact');
  61101. return Pe.createElement(
  61102. 'div',
  61103. { className: 'info' },
  61104. Pe.createElement(
  61105. 'hgroup',
  61106. { className: 'main' },
  61107. Pe.createElement(
  61108. 'h2',
  61109. { className: 'title' },
  61110. B,
  61111. Pe.createElement(
  61112. 'span',
  61113. null,
  61114. j && Pe.createElement(ie, { version: j }),
  61115. Pe.createElement(ae, { oasVersion: '2.0' })
  61116. )
  61117. ),
  61118. i || u ? Pe.createElement(ce, { host: i, basePath: u }) : null,
  61119. o && Pe.createElement(le, { getComponent: _, url: o })
  61120. ),
  61121. Pe.createElement(
  61122. 'div',
  61123. { className: 'description' },
  61124. Pe.createElement(Z, { source: L })
  61125. ),
  61126. $ &&
  61127. Pe.createElement(
  61128. 'div',
  61129. { className: 'info__tos' },
  61130. Pe.createElement(
  61131. ee,
  61132. { target: '_blank', href: sanitizeUrl($) },
  61133. 'Terms of service'
  61134. )
  61135. ),
  61136. V?.size > 0 &&
  61137. Pe.createElement(de, { getComponent: _, data: V, selectedServer: x, url: o }),
  61138. U?.size > 0 &&
  61139. Pe.createElement(pe, { getComponent: _, license: U, selectedServer: x, url: o }),
  61140. z
  61141. ? Pe.createElement(
  61142. ee,
  61143. { className: 'info__extdocs', target: '_blank', href: sanitizeUrl(z) },
  61144. Y || z
  61145. )
  61146. : null
  61147. );
  61148. }
  61149. }
  61150. const qk = info_Info;
  61151. class InfoContainer extends Pe.Component {
  61152. render() {
  61153. const { specSelectors: s, getComponent: o, oas3Selectors: i } = this.props,
  61154. u = s.info(),
  61155. _ = s.url(),
  61156. w = s.basePath(),
  61157. x = s.host(),
  61158. C = s.externalDocs(),
  61159. j = i.selectedServer(),
  61160. L = o('info');
  61161. return Pe.createElement(
  61162. 'div',
  61163. null,
  61164. u && u.count()
  61165. ? Pe.createElement(L, {
  61166. info: u,
  61167. url: _,
  61168. host: x,
  61169. basePath: w,
  61170. externalDocs: C,
  61171. getComponent: o,
  61172. selectedServer: j
  61173. })
  61174. : null
  61175. );
  61176. }
  61177. }
  61178. class contact_Contact extends Pe.Component {
  61179. render() {
  61180. const { data: s, getComponent: o, selectedServer: i, url: u } = this.props,
  61181. _ = s.get('name', 'the developer'),
  61182. w = safeBuildUrl(s.get('url'), u, { selectedServer: i }),
  61183. x = s.get('email'),
  61184. C = o('Link');
  61185. return Pe.createElement(
  61186. 'div',
  61187. { className: 'info__contact' },
  61188. w &&
  61189. Pe.createElement(
  61190. 'div',
  61191. null,
  61192. Pe.createElement(C, { href: sanitizeUrl(w), target: '_blank' }, _, ' - Website')
  61193. ),
  61194. x &&
  61195. Pe.createElement(
  61196. C,
  61197. { href: sanitizeUrl(`mailto:${x}`) },
  61198. w ? `Send email to ${_}` : `Contact ${_}`
  61199. )
  61200. );
  61201. }
  61202. }
  61203. const Vk = contact_Contact;
  61204. class license_License extends Pe.Component {
  61205. render() {
  61206. const { license: s, getComponent: o, selectedServer: i, url: u } = this.props,
  61207. _ = s.get('name', 'License'),
  61208. w = safeBuildUrl(s.get('url'), u, { selectedServer: i }),
  61209. x = o('Link');
  61210. return Pe.createElement(
  61211. 'div',
  61212. { className: 'info__license' },
  61213. w
  61214. ? Pe.createElement(
  61215. 'div',
  61216. { className: 'info__license__url' },
  61217. Pe.createElement(x, { target: '_blank', href: sanitizeUrl(w) }, _)
  61218. )
  61219. : Pe.createElement('span', null, _)
  61220. );
  61221. }
  61222. }
  61223. const zk = license_License;
  61224. class JumpToPath extends Pe.Component {
  61225. render() {
  61226. return null;
  61227. }
  61228. }
  61229. class CopyToClipboardBtn extends Pe.Component {
  61230. render() {
  61231. let { getComponent: s } = this.props;
  61232. const o = s('CopyIcon');
  61233. return Pe.createElement(
  61234. 'div',
  61235. { className: 'view-line-link copy-to-clipboard', title: 'Copy to clipboard' },
  61236. Pe.createElement(
  61237. Jn.CopyToClipboard,
  61238. { text: this.props.textToCopy },
  61239. Pe.createElement(o, null)
  61240. )
  61241. );
  61242. }
  61243. }
  61244. class Footer extends Pe.Component {
  61245. render() {
  61246. return Pe.createElement('div', { className: 'footer' });
  61247. }
  61248. }
  61249. class FilterContainer extends Pe.Component {
  61250. onFilterChange = (s) => {
  61251. const {
  61252. target: { value: o }
  61253. } = s;
  61254. this.props.layoutActions.updateFilter(o);
  61255. };
  61256. render() {
  61257. const { specSelectors: s, layoutSelectors: o, getComponent: i } = this.props,
  61258. u = i('Col'),
  61259. _ = 'loading' === s.loadingStatus(),
  61260. w = 'failed' === s.loadingStatus(),
  61261. x = o.currentFilter(),
  61262. C = ['operation-filter-input'];
  61263. return (
  61264. w && C.push('failed'),
  61265. _ && C.push('loading'),
  61266. Pe.createElement(
  61267. 'div',
  61268. null,
  61269. !1 === x
  61270. ? null
  61271. : Pe.createElement(
  61272. 'div',
  61273. { className: 'filter-container' },
  61274. Pe.createElement(
  61275. u,
  61276. { className: 'filter wrapper', mobile: 12 },
  61277. Pe.createElement('input', {
  61278. className: C.join(' '),
  61279. placeholder: 'Filter by tag',
  61280. type: 'text',
  61281. onChange: this.onFilterChange,
  61282. value: 'string' == typeof x ? x : '',
  61283. disabled: _
  61284. })
  61285. )
  61286. )
  61287. )
  61288. );
  61289. }
  61290. }
  61291. const eC = Function.prototype;
  61292. class ParamBody extends Pe.PureComponent {
  61293. static defaultProp = {
  61294. consumes: (0, qe.fromJS)(['application/json']),
  61295. param: (0, qe.fromJS)({}),
  61296. onChange: eC,
  61297. onChangeConsumes: eC
  61298. };
  61299. constructor(s, o) {
  61300. super(s, o), (this.state = { isEditBox: !1, value: '' });
  61301. }
  61302. componentDidMount() {
  61303. this.updateValues.call(this, this.props);
  61304. }
  61305. UNSAFE_componentWillReceiveProps(s) {
  61306. this.updateValues.call(this, s);
  61307. }
  61308. updateValues = (s) => {
  61309. let { param: o, isExecute: i, consumesValue: u = '' } = s,
  61310. _ = /xml/i.test(u),
  61311. w = /json/i.test(u),
  61312. x = _ ? o.get('value_xml') : o.get('value');
  61313. if (void 0 !== x) {
  61314. let s = !x && w ? '{}' : x;
  61315. this.setState({ value: s }), this.onChange(s, { isXml: _, isEditBox: i });
  61316. } else
  61317. _
  61318. ? this.onChange(this.sample('xml'), { isXml: _, isEditBox: i })
  61319. : this.onChange(this.sample(), { isEditBox: i });
  61320. };
  61321. sample = (s) => {
  61322. let { param: o, fn: i } = this.props,
  61323. u = i.inferSchema(o.toJS());
  61324. return i.getSampleSchema(u, s, { includeWriteOnly: !0 });
  61325. };
  61326. onChange = (s, { isEditBox: o, isXml: i }) => {
  61327. this.setState({ value: s, isEditBox: o }), this._onChange(s, i);
  61328. };
  61329. _onChange = (s, o) => {
  61330. (this.props.onChange || eC)(s, o);
  61331. };
  61332. handleOnChange = (s) => {
  61333. const { consumesValue: o } = this.props,
  61334. i = /xml/i.test(o),
  61335. u = s.target.value;
  61336. this.onChange(u, { isXml: i, isEditBox: this.state.isEditBox });
  61337. };
  61338. toggleIsEditBox = () => this.setState((s) => ({ isEditBox: !s.isEditBox }));
  61339. render() {
  61340. let {
  61341. onChangeConsumes: s,
  61342. param: o,
  61343. isExecute: i,
  61344. specSelectors: u,
  61345. pathMethod: _,
  61346. getComponent: w
  61347. } = this.props;
  61348. const x = w('Button'),
  61349. C = w('TextArea'),
  61350. j = w('HighlightCode', !0),
  61351. L = w('contentType');
  61352. let B = (u ? u.parameterWithMetaByIdentity(_, o) : o).get('errors', (0, qe.List)()),
  61353. $ = u.contentTypeValues(_).get('requestContentType'),
  61354. V =
  61355. this.props.consumes && this.props.consumes.size
  61356. ? this.props.consumes
  61357. : ParamBody.defaultProp.consumes,
  61358. { value: U, isEditBox: z } = this.state,
  61359. Y = null;
  61360. getKnownSyntaxHighlighterLanguage(U) && (Y = 'json');
  61361. const Z = `${createHtmlReadyId(`${_[1]}${_[0]}_parameters`)}_select`;
  61362. return Pe.createElement(
  61363. 'div',
  61364. {
  61365. className: 'body-param',
  61366. 'data-param-name': o.get('name'),
  61367. 'data-param-in': o.get('in')
  61368. },
  61369. z && i
  61370. ? Pe.createElement(C, {
  61371. className: 'body-param__text' + (B.count() ? ' invalid' : ''),
  61372. value: U,
  61373. onChange: this.handleOnChange
  61374. })
  61375. : U && Pe.createElement(j, { className: 'body-param__example', language: Y }, U),
  61376. Pe.createElement(
  61377. 'div',
  61378. { className: 'body-param-options' },
  61379. i
  61380. ? Pe.createElement(
  61381. 'div',
  61382. { className: 'body-param-edit' },
  61383. Pe.createElement(
  61384. x,
  61385. {
  61386. className: z
  61387. ? 'btn cancel body-param__example-edit'
  61388. : 'btn edit body-param__example-edit',
  61389. onClick: this.toggleIsEditBox
  61390. },
  61391. z ? 'Cancel' : 'Edit'
  61392. )
  61393. )
  61394. : null,
  61395. Pe.createElement(
  61396. 'label',
  61397. { htmlFor: Z },
  61398. Pe.createElement('span', null, 'Parameter content type'),
  61399. Pe.createElement(L, {
  61400. value: $,
  61401. contentTypes: V,
  61402. onChange: s,
  61403. className: 'body-param-content-type',
  61404. ariaLabel: 'Parameter content type',
  61405. controlId: Z
  61406. })
  61407. )
  61408. )
  61409. );
  61410. }
  61411. }
  61412. class Curl extends Pe.Component {
  61413. render() {
  61414. const { request: s, getComponent: o } = this.props,
  61415. i = requestSnippetGenerator_curl_bash(s),
  61416. u = o('SyntaxHighlighter', !0);
  61417. return Pe.createElement(
  61418. 'div',
  61419. { className: 'curl-command' },
  61420. Pe.createElement('h4', null, 'Curl'),
  61421. Pe.createElement(
  61422. 'div',
  61423. { className: 'copy-to-clipboard' },
  61424. Pe.createElement(Jn.CopyToClipboard, { text: i }, Pe.createElement('button', null))
  61425. ),
  61426. Pe.createElement(
  61427. 'div',
  61428. null,
  61429. Pe.createElement(
  61430. u,
  61431. {
  61432. language: 'bash',
  61433. className: 'curl microlight',
  61434. renderPlainText: ({ children: s, PlainTextViewer: o }) =>
  61435. Pe.createElement(o, { className: 'curl' }, s)
  61436. },
  61437. i
  61438. )
  61439. )
  61440. );
  61441. }
  61442. }
  61443. const property = ({ propKey: s, propVal: o, propClass: i }) =>
  61444. Pe.createElement(
  61445. 'span',
  61446. { className: i },
  61447. Pe.createElement('br', null),
  61448. s,
  61449. ': ',
  61450. String(o)
  61451. );
  61452. class TryItOutButton extends Pe.Component {
  61453. static defaultProps = {
  61454. onTryoutClick: Function.prototype,
  61455. onCancelClick: Function.prototype,
  61456. onResetClick: Function.prototype,
  61457. enabled: !1,
  61458. hasUserEditedBody: !1,
  61459. isOAS3: !1
  61460. };
  61461. render() {
  61462. const {
  61463. onTryoutClick: s,
  61464. onCancelClick: o,
  61465. onResetClick: i,
  61466. enabled: u,
  61467. hasUserEditedBody: _,
  61468. isOAS3: w
  61469. } = this.props,
  61470. x = w && _;
  61471. return Pe.createElement(
  61472. 'div',
  61473. { className: x ? 'try-out btn-group' : 'try-out' },
  61474. u
  61475. ? Pe.createElement(
  61476. 'button',
  61477. { className: 'btn try-out__btn cancel', onClick: o },
  61478. 'Cancel'
  61479. )
  61480. : Pe.createElement(
  61481. 'button',
  61482. { className: 'btn try-out__btn', onClick: s },
  61483. 'Try it out '
  61484. ),
  61485. x &&
  61486. Pe.createElement(
  61487. 'button',
  61488. { className: 'btn try-out__btn reset', onClick: i },
  61489. 'Reset'
  61490. )
  61491. );
  61492. }
  61493. }
  61494. class VersionPragmaFilter extends Pe.PureComponent {
  61495. static defaultProps = { alsoShow: null, children: null, bypass: !1 };
  61496. render() {
  61497. const { bypass: s, isSwagger2: o, isOAS3: i, alsoShow: u } = this.props;
  61498. return s
  61499. ? Pe.createElement('div', null, this.props.children)
  61500. : o && i
  61501. ? Pe.createElement(
  61502. 'div',
  61503. { className: 'version-pragma' },
  61504. u,
  61505. Pe.createElement(
  61506. 'div',
  61507. { className: 'version-pragma__message version-pragma__message--ambiguous' },
  61508. Pe.createElement(
  61509. 'div',
  61510. null,
  61511. Pe.createElement('h3', null, 'Unable to render this definition'),
  61512. Pe.createElement(
  61513. 'p',
  61514. null,
  61515. Pe.createElement('code', null, 'swagger'),
  61516. ' and ',
  61517. Pe.createElement('code', null, 'openapi'),
  61518. ' fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.'
  61519. ),
  61520. Pe.createElement(
  61521. 'p',
  61522. null,
  61523. 'Supported version fields are ',
  61524. Pe.createElement('code', null, 'swagger: ', '"2.0"'),
  61525. ' and those that match ',
  61526. Pe.createElement('code', null, 'openapi: 3.0.n'),
  61527. ' (for example, ',
  61528. Pe.createElement('code', null, 'openapi: 3.0.0'),
  61529. ').'
  61530. )
  61531. )
  61532. )
  61533. )
  61534. : o || i
  61535. ? Pe.createElement('div', null, this.props.children)
  61536. : Pe.createElement(
  61537. 'div',
  61538. { className: 'version-pragma' },
  61539. u,
  61540. Pe.createElement(
  61541. 'div',
  61542. { className: 'version-pragma__message version-pragma__message--missing' },
  61543. Pe.createElement(
  61544. 'div',
  61545. null,
  61546. Pe.createElement('h3', null, 'Unable to render this definition'),
  61547. Pe.createElement(
  61548. 'p',
  61549. null,
  61550. 'The provided definition does not specify a valid version field.'
  61551. ),
  61552. Pe.createElement(
  61553. 'p',
  61554. null,
  61555. 'Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ',
  61556. Pe.createElement('code', null, 'swagger: ', '"2.0"'),
  61557. ' and those that match ',
  61558. Pe.createElement('code', null, 'openapi: 3.0.n'),
  61559. ' (for example, ',
  61560. Pe.createElement('code', null, 'openapi: 3.0.0'),
  61561. ').'
  61562. )
  61563. )
  61564. )
  61565. );
  61566. }
  61567. }
  61568. const version_stamp = ({ version: s }) =>
  61569. Pe.createElement(
  61570. 'small',
  61571. null,
  61572. Pe.createElement('pre', { className: 'version' }, ' ', s, ' ')
  61573. ),
  61574. openapi_version = ({ oasVersion: s }) =>
  61575. Pe.createElement(
  61576. 'small',
  61577. { className: 'version-stamp' },
  61578. Pe.createElement('pre', { className: 'version' }, 'OAS ', s)
  61579. ),
  61580. deep_link = ({ enabled: s, path: o, text: i }) =>
  61581. Pe.createElement(
  61582. 'a',
  61583. {
  61584. className: 'nostyle',
  61585. onClick: s ? (s) => s.preventDefault() : null,
  61586. href: s ? `#/${o}` : null
  61587. },
  61588. Pe.createElement('span', null, i)
  61589. ),
  61590. svg_assets = () =>
  61591. Pe.createElement(
  61592. 'div',
  61593. null,
  61594. Pe.createElement(
  61595. 'svg',
  61596. {
  61597. xmlns: 'http://www.w3.org/2000/svg',
  61598. xmlnsXlink: 'http://www.w3.org/1999/xlink',
  61599. className: 'svg-assets'
  61600. },
  61601. Pe.createElement(
  61602. 'defs',
  61603. null,
  61604. Pe.createElement(
  61605. 'symbol',
  61606. { viewBox: '0 0 20 20', id: 'unlocked' },
  61607. Pe.createElement('path', {
  61608. d: 'M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z'
  61609. })
  61610. ),
  61611. Pe.createElement(
  61612. 'symbol',
  61613. { viewBox: '0 0 20 20', id: 'locked' },
  61614. Pe.createElement('path', {
  61615. d: 'M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z'
  61616. })
  61617. ),
  61618. Pe.createElement(
  61619. 'symbol',
  61620. { viewBox: '0 0 20 20', id: 'close' },
  61621. Pe.createElement('path', {
  61622. d: 'M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z'
  61623. })
  61624. ),
  61625. Pe.createElement(
  61626. 'symbol',
  61627. { viewBox: '0 0 20 20', id: 'large-arrow' },
  61628. Pe.createElement('path', {
  61629. d: 'M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z'
  61630. })
  61631. ),
  61632. Pe.createElement(
  61633. 'symbol',
  61634. { viewBox: '0 0 20 20', id: 'large-arrow-down' },
  61635. Pe.createElement('path', {
  61636. d: 'M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z'
  61637. })
  61638. ),
  61639. Pe.createElement(
  61640. 'symbol',
  61641. { viewBox: '0 0 20 20', id: 'large-arrow-up' },
  61642. Pe.createElement('path', {
  61643. d: 'M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z'
  61644. })
  61645. ),
  61646. Pe.createElement(
  61647. 'symbol',
  61648. { viewBox: '0 0 24 24', id: 'jump-to' },
  61649. Pe.createElement('path', {
  61650. d: 'M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z'
  61651. })
  61652. ),
  61653. Pe.createElement(
  61654. 'symbol',
  61655. { viewBox: '0 0 24 24', id: 'expand' },
  61656. Pe.createElement('path', {
  61657. d: 'M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z'
  61658. })
  61659. ),
  61660. Pe.createElement(
  61661. 'symbol',
  61662. { viewBox: '0 0 15 16', id: 'copy' },
  61663. Pe.createElement(
  61664. 'g',
  61665. { transform: 'translate(2, -1)' },
  61666. Pe.createElement('path', {
  61667. fill: '#ffffff',
  61668. fillRule: 'evenodd',
  61669. d: 'M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z'
  61670. })
  61671. )
  61672. )
  61673. )
  61674. )
  61675. );
  61676. var tC;
  61677. function decodeEntity(s) {
  61678. return (
  61679. ((tC = tC || document.createElement('textarea')).innerHTML = '&' + s + ';'), tC.value
  61680. );
  61681. }
  61682. var rC = Object.prototype.hasOwnProperty;
  61683. function index_browser_has(s, o) {
  61684. return !!s && rC.call(s, o);
  61685. }
  61686. function index_browser_assign(s) {
  61687. return (
  61688. [].slice.call(arguments, 1).forEach(function (o) {
  61689. if (o) {
  61690. if ('object' != typeof o) throw new TypeError(o + 'must be object');
  61691. Object.keys(o).forEach(function (i) {
  61692. s[i] = o[i];
  61693. });
  61694. }
  61695. }),
  61696. s
  61697. );
  61698. }
  61699. var nC = /\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
  61700. function unescapeMd(s) {
  61701. return s.indexOf('\\') < 0 ? s : s.replace(nC, '$1');
  61702. }
  61703. function isValidEntityCode(s) {
  61704. return (
  61705. !(s >= 55296 && s <= 57343) &&
  61706. !(s >= 64976 && s <= 65007) &&
  61707. !!(65535 & ~s && 65534 != (65535 & s)) &&
  61708. !(s >= 0 && s <= 8) &&
  61709. 11 !== s &&
  61710. !(s >= 14 && s <= 31) &&
  61711. !(s >= 127 && s <= 159) &&
  61712. !(s > 1114111)
  61713. );
  61714. }
  61715. function fromCodePoint(s) {
  61716. if (s > 65535) {
  61717. var o = 55296 + ((s -= 65536) >> 10),
  61718. i = 56320 + (1023 & s);
  61719. return String.fromCharCode(o, i);
  61720. }
  61721. return String.fromCharCode(s);
  61722. }
  61723. var sC = /&([a-z#][a-z0-9]{1,31});/gi,
  61724. oC = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
  61725. function replaceEntityPattern(s, o) {
  61726. var i = 0,
  61727. u = decodeEntity(o);
  61728. return o !== u
  61729. ? u
  61730. : 35 === o.charCodeAt(0) &&
  61731. oC.test(o) &&
  61732. isValidEntityCode(
  61733. (i =
  61734. 'x' === o[1].toLowerCase()
  61735. ? parseInt(o.slice(2), 16)
  61736. : parseInt(o.slice(1), 10))
  61737. )
  61738. ? fromCodePoint(i)
  61739. : s;
  61740. }
  61741. function replaceEntities(s) {
  61742. return s.indexOf('&') < 0 ? s : s.replace(sC, replaceEntityPattern);
  61743. }
  61744. var iC = /[&<>"]/,
  61745. aC = /[&<>"]/g,
  61746. lC = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' };
  61747. function replaceUnsafeChar(s) {
  61748. return lC[s];
  61749. }
  61750. function escapeHtml(s) {
  61751. return iC.test(s) ? s.replace(aC, replaceUnsafeChar) : s;
  61752. }
  61753. var cC = {};
  61754. function nextToken(s, o) {
  61755. return ++o >= s.length - 2
  61756. ? o
  61757. : 'paragraph_open' === s[o].type &&
  61758. s[o].tight &&
  61759. 'inline' === s[o + 1].type &&
  61760. 0 === s[o + 1].content.length &&
  61761. 'paragraph_close' === s[o + 2].type &&
  61762. s[o + 2].tight
  61763. ? nextToken(s, o + 2)
  61764. : o;
  61765. }
  61766. (cC.blockquote_open = function () {
  61767. return '<blockquote>\n';
  61768. }),
  61769. (cC.blockquote_close = function (s, o) {
  61770. return '</blockquote>' + uC(s, o);
  61771. }),
  61772. (cC.code = function (s, o) {
  61773. return s[o].block
  61774. ? '<pre><code>' + escapeHtml(s[o].content) + '</code></pre>' + uC(s, o)
  61775. : '<code>' + escapeHtml(s[o].content) + '</code>';
  61776. }),
  61777. (cC.fence = function (s, o, i, u, _) {
  61778. var w,
  61779. x,
  61780. C = s[o],
  61781. j = '',
  61782. L = i.langPrefix;
  61783. if (C.params) {
  61784. if (
  61785. ((x = (w = C.params.split(/\s+/g)).join(' ')),
  61786. index_browser_has(_.rules.fence_custom, w[0]))
  61787. )
  61788. return _.rules.fence_custom[w[0]](s, o, i, u, _);
  61789. j = ' class="' + L + escapeHtml(replaceEntities(unescapeMd(x))) + '"';
  61790. }
  61791. return (
  61792. '<pre><code' +
  61793. j +
  61794. '>' +
  61795. ((i.highlight && i.highlight.apply(i.highlight, [C.content].concat(w))) ||
  61796. escapeHtml(C.content)) +
  61797. '</code></pre>' +
  61798. uC(s, o)
  61799. );
  61800. }),
  61801. (cC.fence_custom = {}),
  61802. (cC.heading_open = function (s, o) {
  61803. return '<h' + s[o].hLevel + '>';
  61804. }),
  61805. (cC.heading_close = function (s, o) {
  61806. return '</h' + s[o].hLevel + '>\n';
  61807. }),
  61808. (cC.hr = function (s, o, i) {
  61809. return (i.xhtmlOut ? '<hr />' : '<hr>') + uC(s, o);
  61810. }),
  61811. (cC.bullet_list_open = function () {
  61812. return '<ul>\n';
  61813. }),
  61814. (cC.bullet_list_close = function (s, o) {
  61815. return '</ul>' + uC(s, o);
  61816. }),
  61817. (cC.list_item_open = function () {
  61818. return '<li>';
  61819. }),
  61820. (cC.list_item_close = function () {
  61821. return '</li>\n';
  61822. }),
  61823. (cC.ordered_list_open = function (s, o) {
  61824. var i = s[o];
  61825. return '<ol' + (i.order > 1 ? ' start="' + i.order + '"' : '') + '>\n';
  61826. }),
  61827. (cC.ordered_list_close = function (s, o) {
  61828. return '</ol>' + uC(s, o);
  61829. }),
  61830. (cC.paragraph_open = function (s, o) {
  61831. return s[o].tight ? '' : '<p>';
  61832. }),
  61833. (cC.paragraph_close = function (s, o) {
  61834. var i = !(s[o].tight && o && 'inline' === s[o - 1].type && !s[o - 1].content);
  61835. return (s[o].tight ? '' : '</p>') + (i ? uC(s, o) : '');
  61836. }),
  61837. (cC.link_open = function (s, o, i) {
  61838. var u = s[o].title ? ' title="' + escapeHtml(replaceEntities(s[o].title)) + '"' : '',
  61839. _ = i.linkTarget ? ' target="' + i.linkTarget + '"' : '';
  61840. return '<a href="' + escapeHtml(s[o].href) + '"' + u + _ + '>';
  61841. }),
  61842. (cC.link_close = function () {
  61843. return '</a>';
  61844. }),
  61845. (cC.image = function (s, o, i) {
  61846. var u = ' src="' + escapeHtml(s[o].src) + '"',
  61847. _ = s[o].title ? ' title="' + escapeHtml(replaceEntities(s[o].title)) + '"' : '';
  61848. return (
  61849. '<img' +
  61850. u +
  61851. (' alt="' +
  61852. (s[o].alt ? escapeHtml(replaceEntities(unescapeMd(s[o].alt))) : '') +
  61853. '"') +
  61854. _ +
  61855. (i.xhtmlOut ? ' /' : '') +
  61856. '>'
  61857. );
  61858. }),
  61859. (cC.table_open = function () {
  61860. return '<table>\n';
  61861. }),
  61862. (cC.table_close = function () {
  61863. return '</table>\n';
  61864. }),
  61865. (cC.thead_open = function () {
  61866. return '<thead>\n';
  61867. }),
  61868. (cC.thead_close = function () {
  61869. return '</thead>\n';
  61870. }),
  61871. (cC.tbody_open = function () {
  61872. return '<tbody>\n';
  61873. }),
  61874. (cC.tbody_close = function () {
  61875. return '</tbody>\n';
  61876. }),
  61877. (cC.tr_open = function () {
  61878. return '<tr>';
  61879. }),
  61880. (cC.tr_close = function () {
  61881. return '</tr>\n';
  61882. }),
  61883. (cC.th_open = function (s, o) {
  61884. var i = s[o];
  61885. return '<th' + (i.align ? ' style="text-align:' + i.align + '"' : '') + '>';
  61886. }),
  61887. (cC.th_close = function () {
  61888. return '</th>';
  61889. }),
  61890. (cC.td_open = function (s, o) {
  61891. var i = s[o];
  61892. return '<td' + (i.align ? ' style="text-align:' + i.align + '"' : '') + '>';
  61893. }),
  61894. (cC.td_close = function () {
  61895. return '</td>';
  61896. }),
  61897. (cC.strong_open = function () {
  61898. return '<strong>';
  61899. }),
  61900. (cC.strong_close = function () {
  61901. return '</strong>';
  61902. }),
  61903. (cC.em_open = function () {
  61904. return '<em>';
  61905. }),
  61906. (cC.em_close = function () {
  61907. return '</em>';
  61908. }),
  61909. (cC.del_open = function () {
  61910. return '<del>';
  61911. }),
  61912. (cC.del_close = function () {
  61913. return '</del>';
  61914. }),
  61915. (cC.ins_open = function () {
  61916. return '<ins>';
  61917. }),
  61918. (cC.ins_close = function () {
  61919. return '</ins>';
  61920. }),
  61921. (cC.mark_open = function () {
  61922. return '<mark>';
  61923. }),
  61924. (cC.mark_close = function () {
  61925. return '</mark>';
  61926. }),
  61927. (cC.sub = function (s, o) {
  61928. return '<sub>' + escapeHtml(s[o].content) + '</sub>';
  61929. }),
  61930. (cC.sup = function (s, o) {
  61931. return '<sup>' + escapeHtml(s[o].content) + '</sup>';
  61932. }),
  61933. (cC.hardbreak = function (s, o, i) {
  61934. return i.xhtmlOut ? '<br />\n' : '<br>\n';
  61935. }),
  61936. (cC.softbreak = function (s, o, i) {
  61937. return i.breaks ? (i.xhtmlOut ? '<br />\n' : '<br>\n') : '\n';
  61938. }),
  61939. (cC.text = function (s, o) {
  61940. return escapeHtml(s[o].content);
  61941. }),
  61942. (cC.htmlblock = function (s, o) {
  61943. return s[o].content;
  61944. }),
  61945. (cC.htmltag = function (s, o) {
  61946. return s[o].content;
  61947. }),
  61948. (cC.abbr_open = function (s, o) {
  61949. return '<abbr title="' + escapeHtml(replaceEntities(s[o].title)) + '">';
  61950. }),
  61951. (cC.abbr_close = function () {
  61952. return '</abbr>';
  61953. }),
  61954. (cC.footnote_ref = function (s, o) {
  61955. var i = Number(s[o].id + 1).toString(),
  61956. u = 'fnref' + i;
  61957. return (
  61958. s[o].subId > 0 && (u += ':' + s[o].subId),
  61959. '<sup class="footnote-ref"><a href="#fn' +
  61960. i +
  61961. '" id="' +
  61962. u +
  61963. '">[' +
  61964. i +
  61965. ']</a></sup>'
  61966. );
  61967. }),
  61968. (cC.footnote_block_open = function (s, o, i) {
  61969. return (
  61970. (i.xhtmlOut ? '<hr class="footnotes-sep" />\n' : '<hr class="footnotes-sep">\n') +
  61971. '<section class="footnotes">\n<ol class="footnotes-list">\n'
  61972. );
  61973. }),
  61974. (cC.footnote_block_close = function () {
  61975. return '</ol>\n</section>\n';
  61976. }),
  61977. (cC.footnote_open = function (s, o) {
  61978. return '<li id="fn' + Number(s[o].id + 1).toString() + '" class="footnote-item">';
  61979. }),
  61980. (cC.footnote_close = function () {
  61981. return '</li>\n';
  61982. }),
  61983. (cC.footnote_anchor = function (s, o) {
  61984. var i = 'fnref' + Number(s[o].id + 1).toString();
  61985. return (
  61986. s[o].subId > 0 && (i += ':' + s[o].subId),
  61987. ' <a href="#' + i + '" class="footnote-backref">↩</a>'
  61988. );
  61989. }),
  61990. (cC.dl_open = function () {
  61991. return '<dl>\n';
  61992. }),
  61993. (cC.dt_open = function () {
  61994. return '<dt>';
  61995. }),
  61996. (cC.dd_open = function () {
  61997. return '<dd>';
  61998. }),
  61999. (cC.dl_close = function () {
  62000. return '</dl>\n';
  62001. }),
  62002. (cC.dt_close = function () {
  62003. return '</dt>\n';
  62004. }),
  62005. (cC.dd_close = function () {
  62006. return '</dd>\n';
  62007. });
  62008. var uC = (cC.getBreak = function getBreak(s, o) {
  62009. return (o = nextToken(s, o)) < s.length && 'list_item_close' === s[o].type ? '' : '\n';
  62010. });
  62011. function Renderer() {
  62012. (this.rules = index_browser_assign({}, cC)), (this.getBreak = cC.getBreak);
  62013. }
  62014. function Ruler() {
  62015. (this.__rules__ = []), (this.__cache__ = null);
  62016. }
  62017. function StateInline(s, o, i, u, _) {
  62018. (this.src = s),
  62019. (this.env = u),
  62020. (this.options = i),
  62021. (this.parser = o),
  62022. (this.tokens = _),
  62023. (this.pos = 0),
  62024. (this.posMax = this.src.length),
  62025. (this.level = 0),
  62026. (this.pending = ''),
  62027. (this.pendingLevel = 0),
  62028. (this.cache = []),
  62029. (this.isInLabel = !1),
  62030. (this.linkLevel = 0),
  62031. (this.linkContent = ''),
  62032. (this.labelUnmatchedScopes = 0);
  62033. }
  62034. function parseLinkLabel(s, o) {
  62035. var i,
  62036. u,
  62037. _,
  62038. w = -1,
  62039. x = s.posMax,
  62040. C = s.pos,
  62041. j = s.isInLabel;
  62042. if (s.isInLabel) return -1;
  62043. if (s.labelUnmatchedScopes) return s.labelUnmatchedScopes--, -1;
  62044. for (s.pos = o + 1, s.isInLabel = !0, i = 1; s.pos < x; ) {
  62045. if (91 === (_ = s.src.charCodeAt(s.pos))) i++;
  62046. else if (93 === _ && 0 === --i) {
  62047. u = !0;
  62048. break;
  62049. }
  62050. s.parser.skipToken(s);
  62051. }
  62052. return (
  62053. u ? ((w = s.pos), (s.labelUnmatchedScopes = 0)) : (s.labelUnmatchedScopes = i - 1),
  62054. (s.pos = C),
  62055. (s.isInLabel = j),
  62056. w
  62057. );
  62058. }
  62059. function parseAbbr(s, o, i, u) {
  62060. var _, w, x, C, j, L;
  62061. if (42 !== s.charCodeAt(0)) return -1;
  62062. if (91 !== s.charCodeAt(1)) return -1;
  62063. if (-1 === s.indexOf(']:')) return -1;
  62064. if (
  62065. (w = parseLinkLabel((_ = new StateInline(s, o, i, u, [])), 1)) < 0 ||
  62066. 58 !== s.charCodeAt(w + 1)
  62067. )
  62068. return -1;
  62069. for (C = _.posMax, x = w + 2; x < C && 10 !== _.src.charCodeAt(x); x++);
  62070. return (
  62071. (j = s.slice(2, w)),
  62072. 0 === (L = s.slice(w + 2, x).trim()).length
  62073. ? -1
  62074. : (u.abbreviations || (u.abbreviations = {}),
  62075. void 0 === u.abbreviations[':' + j] && (u.abbreviations[':' + j] = L),
  62076. x)
  62077. );
  62078. }
  62079. function normalizeLink(s) {
  62080. var o = replaceEntities(s);
  62081. try {
  62082. o = decodeURI(o);
  62083. } catch (s) {}
  62084. return encodeURI(o);
  62085. }
  62086. function parseLinkDestination(s, o) {
  62087. var i,
  62088. u,
  62089. _,
  62090. w = o,
  62091. x = s.posMax;
  62092. if (60 === s.src.charCodeAt(o)) {
  62093. for (o++; o < x; ) {
  62094. if (10 === (i = s.src.charCodeAt(o))) return !1;
  62095. if (62 === i)
  62096. return (
  62097. (_ = normalizeLink(unescapeMd(s.src.slice(w + 1, o)))),
  62098. !!s.parser.validateLink(_) && ((s.pos = o + 1), (s.linkContent = _), !0)
  62099. );
  62100. 92 === i && o + 1 < x ? (o += 2) : o++;
  62101. }
  62102. return !1;
  62103. }
  62104. for (u = 0; o < x && 32 !== (i = s.src.charCodeAt(o)) && !(i < 32 || 127 === i); )
  62105. if (92 === i && o + 1 < x) o += 2;
  62106. else {
  62107. if (40 === i && ++u > 1) break;
  62108. if (41 === i && --u < 0) break;
  62109. o++;
  62110. }
  62111. return (
  62112. w !== o &&
  62113. ((_ = unescapeMd(s.src.slice(w, o))),
  62114. !!s.parser.validateLink(_) && ((s.linkContent = _), (s.pos = o), !0))
  62115. );
  62116. }
  62117. function parseLinkTitle(s, o) {
  62118. var i,
  62119. u = o,
  62120. _ = s.posMax,
  62121. w = s.src.charCodeAt(o);
  62122. if (34 !== w && 39 !== w && 40 !== w) return !1;
  62123. for (o++, 40 === w && (w = 41); o < _; ) {
  62124. if ((i = s.src.charCodeAt(o)) === w)
  62125. return (s.pos = o + 1), (s.linkContent = unescapeMd(s.src.slice(u + 1, o))), !0;
  62126. 92 === i && o + 1 < _ ? (o += 2) : o++;
  62127. }
  62128. return !1;
  62129. }
  62130. function normalizeReference(s) {
  62131. return s.trim().replace(/\s+/g, ' ').toUpperCase();
  62132. }
  62133. function parseReference(s, o, i, u) {
  62134. var _, w, x, C, j, L, B, $, V;
  62135. if (91 !== s.charCodeAt(0)) return -1;
  62136. if (-1 === s.indexOf(']:')) return -1;
  62137. if (
  62138. (w = parseLinkLabel((_ = new StateInline(s, o, i, u, [])), 0)) < 0 ||
  62139. 58 !== s.charCodeAt(w + 1)
  62140. )
  62141. return -1;
  62142. for (
  62143. C = _.posMax, x = w + 2;
  62144. x < C && (32 === (j = _.src.charCodeAt(x)) || 10 === j);
  62145. x++
  62146. );
  62147. if (!parseLinkDestination(_, x)) return -1;
  62148. for (
  62149. B = _.linkContent, L = x = _.pos, x += 1;
  62150. x < C && (32 === (j = _.src.charCodeAt(x)) || 10 === j);
  62151. x++
  62152. );
  62153. for (
  62154. x < C && L !== x && parseLinkTitle(_, x)
  62155. ? (($ = _.linkContent), (x = _.pos))
  62156. : (($ = ''), (x = L));
  62157. x < C && 32 === _.src.charCodeAt(x);
  62158. )
  62159. x++;
  62160. return x < C && 10 !== _.src.charCodeAt(x)
  62161. ? -1
  62162. : ((V = normalizeReference(s.slice(1, w))),
  62163. void 0 === u.references[V] && (u.references[V] = { title: $, href: B }),
  62164. x);
  62165. }
  62166. (Renderer.prototype.renderInline = function (s, o, i) {
  62167. for (var u = this.rules, _ = s.length, w = 0, x = ''; _--; )
  62168. x += u[s[w].type](s, w++, o, i, this);
  62169. return x;
  62170. }),
  62171. (Renderer.prototype.render = function (s, o, i) {
  62172. for (var u = this.rules, _ = s.length, w = -1, x = ''; ++w < _; )
  62173. 'inline' === s[w].type
  62174. ? (x += this.renderInline(s[w].children, o, i))
  62175. : (x += u[s[w].type](s, w, o, i, this));
  62176. return x;
  62177. }),
  62178. (Ruler.prototype.__find__ = function (s) {
  62179. for (var o = this.__rules__.length, i = -1; o--; )
  62180. if (this.__rules__[++i].name === s) return i;
  62181. return -1;
  62182. }),
  62183. (Ruler.prototype.__compile__ = function () {
  62184. var s = this,
  62185. o = [''];
  62186. s.__rules__.forEach(function (s) {
  62187. s.enabled &&
  62188. s.alt.forEach(function (s) {
  62189. o.indexOf(s) < 0 && o.push(s);
  62190. });
  62191. }),
  62192. (s.__cache__ = {}),
  62193. o.forEach(function (o) {
  62194. (s.__cache__[o] = []),
  62195. s.__rules__.forEach(function (i) {
  62196. i.enabled && ((o && i.alt.indexOf(o) < 0) || s.__cache__[o].push(i.fn));
  62197. });
  62198. });
  62199. }),
  62200. (Ruler.prototype.at = function (s, o, i) {
  62201. var u = this.__find__(s),
  62202. _ = i || {};
  62203. if (-1 === u) throw new Error('Parser rule not found: ' + s);
  62204. (this.__rules__[u].fn = o),
  62205. (this.__rules__[u].alt = _.alt || []),
  62206. (this.__cache__ = null);
  62207. }),
  62208. (Ruler.prototype.before = function (s, o, i, u) {
  62209. var _ = this.__find__(s),
  62210. w = u || {};
  62211. if (-1 === _) throw new Error('Parser rule not found: ' + s);
  62212. this.__rules__.splice(_, 0, { name: o, enabled: !0, fn: i, alt: w.alt || [] }),
  62213. (this.__cache__ = null);
  62214. }),
  62215. (Ruler.prototype.after = function (s, o, i, u) {
  62216. var _ = this.__find__(s),
  62217. w = u || {};
  62218. if (-1 === _) throw new Error('Parser rule not found: ' + s);
  62219. this.__rules__.splice(_ + 1, 0, { name: o, enabled: !0, fn: i, alt: w.alt || [] }),
  62220. (this.__cache__ = null);
  62221. }),
  62222. (Ruler.prototype.push = function (s, o, i) {
  62223. var u = i || {};
  62224. this.__rules__.push({ name: s, enabled: !0, fn: o, alt: u.alt || [] }),
  62225. (this.__cache__ = null);
  62226. }),
  62227. (Ruler.prototype.enable = function (s, o) {
  62228. (s = Array.isArray(s) ? s : [s]),
  62229. o &&
  62230. this.__rules__.forEach(function (s) {
  62231. s.enabled = !1;
  62232. }),
  62233. s.forEach(function (s) {
  62234. var o = this.__find__(s);
  62235. if (o < 0) throw new Error('Rules manager: invalid rule name ' + s);
  62236. this.__rules__[o].enabled = !0;
  62237. }, this),
  62238. (this.__cache__ = null);
  62239. }),
  62240. (Ruler.prototype.disable = function (s) {
  62241. (s = Array.isArray(s) ? s : [s]).forEach(function (s) {
  62242. var o = this.__find__(s);
  62243. if (o < 0) throw new Error('Rules manager: invalid rule name ' + s);
  62244. this.__rules__[o].enabled = !1;
  62245. }, this),
  62246. (this.__cache__ = null);
  62247. }),
  62248. (Ruler.prototype.getRules = function (s) {
  62249. return null === this.__cache__ && this.__compile__(), this.__cache__[s] || [];
  62250. }),
  62251. (StateInline.prototype.pushPending = function () {
  62252. this.tokens.push({ type: 'text', content: this.pending, level: this.pendingLevel }),
  62253. (this.pending = '');
  62254. }),
  62255. (StateInline.prototype.push = function (s) {
  62256. this.pending && this.pushPending(),
  62257. this.tokens.push(s),
  62258. (this.pendingLevel = this.level);
  62259. }),
  62260. (StateInline.prototype.cacheSet = function (s, o) {
  62261. for (var i = this.cache.length; i <= s; i++) this.cache.push(0);
  62262. this.cache[s] = o;
  62263. }),
  62264. (StateInline.prototype.cacheGet = function (s) {
  62265. return s < this.cache.length ? this.cache[s] : 0;
  62266. });
  62267. var pC = ' \n()[]\'".,!?-';
  62268. function regEscape(s) {
  62269. return s.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, '\\$1');
  62270. }
  62271. var hC = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
  62272. dC = /\((c|tm|r|p)\)/gi,
  62273. fC = { c: '©', r: '®', p: '§', tm: '™' };
  62274. function replaceScopedAbbr(s) {
  62275. return s.indexOf('(') < 0
  62276. ? s
  62277. : s.replace(dC, function (s, o) {
  62278. return fC[o.toLowerCase()];
  62279. });
  62280. }
  62281. var mC = /['"]/,
  62282. gC = /['"]/g,
  62283. yC = /[-\s()\[\]]/;
  62284. function isLetter(s, o) {
  62285. return !(o < 0 || o >= s.length) && !yC.test(s[o]);
  62286. }
  62287. function replaceAt(s, o, i) {
  62288. return s.substr(0, o) + i + s.substr(o + 1);
  62289. }
  62290. var vC = [
  62291. [
  62292. 'block',
  62293. function block(s) {
  62294. s.inlineMode
  62295. ? s.tokens.push({
  62296. type: 'inline',
  62297. content: s.src.replace(/\n/g, ' ').trim(),
  62298. level: 0,
  62299. lines: [0, 1],
  62300. children: []
  62301. })
  62302. : s.block.parse(s.src, s.options, s.env, s.tokens);
  62303. }
  62304. ],
  62305. [
  62306. 'abbr',
  62307. function abbr(s) {
  62308. var o,
  62309. i,
  62310. u,
  62311. _,
  62312. w = s.tokens;
  62313. if (!s.inlineMode)
  62314. for (o = 1, i = w.length - 1; o < i; o++)
  62315. if (
  62316. 'paragraph_open' === w[o - 1].type &&
  62317. 'inline' === w[o].type &&
  62318. 'paragraph_close' === w[o + 1].type
  62319. ) {
  62320. for (
  62321. u = w[o].content;
  62322. u.length && !((_ = parseAbbr(u, s.inline, s.options, s.env)) < 0);
  62323. )
  62324. u = u.slice(_).trim();
  62325. (w[o].content = u), u.length || ((w[o - 1].tight = !0), (w[o + 1].tight = !0));
  62326. }
  62327. }
  62328. ],
  62329. [
  62330. 'references',
  62331. function references(s) {
  62332. var o,
  62333. i,
  62334. u,
  62335. _,
  62336. w = s.tokens;
  62337. if (((s.env.references = s.env.references || {}), !s.inlineMode))
  62338. for (o = 1, i = w.length - 1; o < i; o++)
  62339. if (
  62340. 'inline' === w[o].type &&
  62341. 'paragraph_open' === w[o - 1].type &&
  62342. 'paragraph_close' === w[o + 1].type
  62343. ) {
  62344. for (
  62345. u = w[o].content;
  62346. u.length && !((_ = parseReference(u, s.inline, s.options, s.env)) < 0);
  62347. )
  62348. u = u.slice(_).trim();
  62349. (w[o].content = u), u.length || ((w[o - 1].tight = !0), (w[o + 1].tight = !0));
  62350. }
  62351. }
  62352. ],
  62353. [
  62354. 'inline',
  62355. function inline(s) {
  62356. var o,
  62357. i,
  62358. u,
  62359. _ = s.tokens;
  62360. for (i = 0, u = _.length; i < u; i++)
  62361. 'inline' === (o = _[i]).type &&
  62362. s.inline.parse(o.content, s.options, s.env, o.children);
  62363. }
  62364. ],
  62365. [
  62366. 'footnote_tail',
  62367. function footnote_block(s) {
  62368. var o,
  62369. i,
  62370. u,
  62371. _,
  62372. w,
  62373. x,
  62374. C,
  62375. j,
  62376. L,
  62377. B = 0,
  62378. $ = !1,
  62379. V = {};
  62380. if (
  62381. s.env.footnotes &&
  62382. ((s.tokens = s.tokens.filter(function (s) {
  62383. return 'footnote_reference_open' === s.type
  62384. ? (($ = !0), (j = []), (L = s.label), !1)
  62385. : 'footnote_reference_close' === s.type
  62386. ? (($ = !1), (V[':' + L] = j), !1)
  62387. : ($ && j.push(s), !$);
  62388. })),
  62389. s.env.footnotes.list)
  62390. ) {
  62391. for (
  62392. x = s.env.footnotes.list,
  62393. s.tokens.push({ type: 'footnote_block_open', level: B++ }),
  62394. o = 0,
  62395. i = x.length;
  62396. o < i;
  62397. o++
  62398. ) {
  62399. for (
  62400. s.tokens.push({ type: 'footnote_open', id: o, level: B++ }),
  62401. x[o].tokens
  62402. ? ((C = []).push({ type: 'paragraph_open', tight: !1, level: B++ }),
  62403. C.push({ type: 'inline', content: '', level: B, children: x[o].tokens }),
  62404. C.push({ type: 'paragraph_close', tight: !1, level: --B }))
  62405. : x[o].label && (C = V[':' + x[o].label]),
  62406. s.tokens = s.tokens.concat(C),
  62407. w =
  62408. 'paragraph_close' === s.tokens[s.tokens.length - 1].type
  62409. ? s.tokens.pop()
  62410. : null,
  62411. _ = x[o].count > 0 ? x[o].count : 1,
  62412. u = 0;
  62413. u < _;
  62414. u++
  62415. )
  62416. s.tokens.push({ type: 'footnote_anchor', id: o, subId: u, level: B });
  62417. w && s.tokens.push(w), s.tokens.push({ type: 'footnote_close', level: --B });
  62418. }
  62419. s.tokens.push({ type: 'footnote_block_close', level: --B });
  62420. }
  62421. }
  62422. ],
  62423. [
  62424. 'abbr2',
  62425. function abbr2(s) {
  62426. var o,
  62427. i,
  62428. u,
  62429. _,
  62430. w,
  62431. x,
  62432. C,
  62433. j,
  62434. L,
  62435. B,
  62436. $,
  62437. V,
  62438. U = s.tokens;
  62439. if (s.env.abbreviations)
  62440. for (
  62441. s.env.abbrRegExp ||
  62442. ((V =
  62443. '(^|[' +
  62444. pC.split('').map(regEscape).join('') +
  62445. '])(' +
  62446. Object.keys(s.env.abbreviations)
  62447. .map(function (s) {
  62448. return s.substr(1);
  62449. })
  62450. .sort(function (s, o) {
  62451. return o.length - s.length;
  62452. })
  62453. .map(regEscape)
  62454. .join('|') +
  62455. ')($|[' +
  62456. pC.split('').map(regEscape).join('') +
  62457. '])'),
  62458. (s.env.abbrRegExp = new RegExp(V, 'g'))),
  62459. B = s.env.abbrRegExp,
  62460. i = 0,
  62461. u = U.length;
  62462. i < u;
  62463. i++
  62464. )
  62465. if ('inline' === U[i].type)
  62466. for (o = (_ = U[i].children).length - 1; o >= 0; o--)
  62467. if ('text' === (w = _[o]).type) {
  62468. for (
  62469. j = 0, x = w.content, B.lastIndex = 0, L = w.level, C = [];
  62470. ($ = B.exec(x));
  62471. )
  62472. B.lastIndex > j &&
  62473. C.push({
  62474. type: 'text',
  62475. content: x.slice(j, $.index + $[1].length),
  62476. level: L
  62477. }),
  62478. C.push({
  62479. type: 'abbr_open',
  62480. title: s.env.abbreviations[':' + $[2]],
  62481. level: L++
  62482. }),
  62483. C.push({ type: 'text', content: $[2], level: L }),
  62484. C.push({ type: 'abbr_close', level: --L }),
  62485. (j = B.lastIndex - $[3].length);
  62486. C.length &&
  62487. (j < x.length && C.push({ type: 'text', content: x.slice(j), level: L }),
  62488. (U[i].children = _ = [].concat(_.slice(0, o), C, _.slice(o + 1))));
  62489. }
  62490. }
  62491. ],
  62492. [
  62493. 'replacements',
  62494. function index_browser_replace(s) {
  62495. var o, i, u, _, w;
  62496. if (s.options.typographer)
  62497. for (w = s.tokens.length - 1; w >= 0; w--)
  62498. if ('inline' === s.tokens[w].type)
  62499. for (o = (_ = s.tokens[w].children).length - 1; o >= 0; o--)
  62500. 'text' === (i = _[o]).type &&
  62501. ((u = replaceScopedAbbr((u = i.content))),
  62502. hC.test(u) &&
  62503. (u = u
  62504. .replace(/\+-/g, '±')
  62505. .replace(/\.{2,}/g, '…')
  62506. .replace(/([?!])…/g, '$1..')
  62507. .replace(/([?!]){4,}/g, '$1$1$1')
  62508. .replace(/,{2,}/g, ',')
  62509. .replace(/(^|[^-])---([^-]|$)/gm, '$1—$2')
  62510. .replace(/(^|\s)--(\s|$)/gm, '$1–$2')
  62511. .replace(/(^|[^-\s])--([^-\s]|$)/gm, '$1–$2')),
  62512. (i.content = u));
  62513. }
  62514. ],
  62515. [
  62516. 'smartquotes',
  62517. function smartquotes(s) {
  62518. var o, i, u, _, w, x, C, j, L, B, $, V, U, z, Y, Z, ee;
  62519. if (s.options.typographer)
  62520. for (ee = [], Y = s.tokens.length - 1; Y >= 0; Y--)
  62521. if ('inline' === s.tokens[Y].type)
  62522. for (Z = s.tokens[Y].children, ee.length = 0, o = 0; o < Z.length; o++)
  62523. if ('text' === (i = Z[o]).type && !mC.test(i.text)) {
  62524. for (C = Z[o].level, U = ee.length - 1; U >= 0 && !(ee[U].level <= C); U--);
  62525. (ee.length = U + 1), (w = 0), (x = (u = i.content).length);
  62526. e: for (; w < x && ((gC.lastIndex = w), (_ = gC.exec(u))); )
  62527. if (
  62528. ((j = !isLetter(u, _.index - 1)),
  62529. (w = _.index + 1),
  62530. (z = "'" === _[0]),
  62531. (L = !isLetter(u, w)) || j)
  62532. ) {
  62533. if ((($ = !L), (V = !j)))
  62534. for (
  62535. U = ee.length - 1;
  62536. U >= 0 && ((B = ee[U]), !(ee[U].level < C));
  62537. U--
  62538. )
  62539. if (B.single === z && ee[U].level === C) {
  62540. (B = ee[U]),
  62541. z
  62542. ? ((Z[B.token].content = replaceAt(
  62543. Z[B.token].content,
  62544. B.pos,
  62545. s.options.quotes[2]
  62546. )),
  62547. (i.content = replaceAt(
  62548. i.content,
  62549. _.index,
  62550. s.options.quotes[3]
  62551. )))
  62552. : ((Z[B.token].content = replaceAt(
  62553. Z[B.token].content,
  62554. B.pos,
  62555. s.options.quotes[0]
  62556. )),
  62557. (i.content = replaceAt(
  62558. i.content,
  62559. _.index,
  62560. s.options.quotes[1]
  62561. ))),
  62562. (ee.length = U);
  62563. continue e;
  62564. }
  62565. $
  62566. ? ee.push({ token: o, pos: _.index, single: z, level: C })
  62567. : V && z && (i.content = replaceAt(i.content, _.index, '’'));
  62568. } else z && (i.content = replaceAt(i.content, _.index, '’'));
  62569. }
  62570. }
  62571. ]
  62572. ];
  62573. function Core() {
  62574. (this.options = {}), (this.ruler = new Ruler());
  62575. for (var s = 0; s < vC.length; s++) this.ruler.push(vC[s][0], vC[s][1]);
  62576. }
  62577. function StateBlock(s, o, i, u, _) {
  62578. var w, x, C, j, L, B, $;
  62579. for (
  62580. this.src = s,
  62581. this.parser = o,
  62582. this.options = i,
  62583. this.env = u,
  62584. this.tokens = _,
  62585. this.bMarks = [],
  62586. this.eMarks = [],
  62587. this.tShift = [],
  62588. this.blkIndent = 0,
  62589. this.line = 0,
  62590. this.lineMax = 0,
  62591. this.tight = !1,
  62592. this.parentType = 'root',
  62593. this.ddIndent = -1,
  62594. this.level = 0,
  62595. this.result = '',
  62596. B = 0,
  62597. $ = !1,
  62598. C = j = B = 0,
  62599. L = (x = this.src).length;
  62600. j < L;
  62601. j++
  62602. ) {
  62603. if (((w = x.charCodeAt(j)), !$)) {
  62604. if (32 === w) {
  62605. B++;
  62606. continue;
  62607. }
  62608. $ = !0;
  62609. }
  62610. (10 !== w && j !== L - 1) ||
  62611. (10 !== w && j++,
  62612. this.bMarks.push(C),
  62613. this.eMarks.push(j),
  62614. this.tShift.push(B),
  62615. ($ = !1),
  62616. (B = 0),
  62617. (C = j + 1));
  62618. }
  62619. this.bMarks.push(x.length),
  62620. this.eMarks.push(x.length),
  62621. this.tShift.push(0),
  62622. (this.lineMax = this.bMarks.length - 1);
  62623. }
  62624. function skipBulletListMarker(s, o) {
  62625. var i, u, _;
  62626. return (u = s.bMarks[o] + s.tShift[o]) >= (_ = s.eMarks[o]) ||
  62627. (42 !== (i = s.src.charCodeAt(u++)) && 45 !== i && 43 !== i) ||
  62628. (u < _ && 32 !== s.src.charCodeAt(u))
  62629. ? -1
  62630. : u;
  62631. }
  62632. function skipOrderedListMarker(s, o) {
  62633. var i,
  62634. u = s.bMarks[o] + s.tShift[o],
  62635. _ = s.eMarks[o];
  62636. if (u + 1 >= _) return -1;
  62637. if ((i = s.src.charCodeAt(u++)) < 48 || i > 57) return -1;
  62638. for (;;) {
  62639. if (u >= _) return -1;
  62640. if (!((i = s.src.charCodeAt(u++)) >= 48 && i <= 57)) {
  62641. if (41 === i || 46 === i) break;
  62642. return -1;
  62643. }
  62644. }
  62645. return u < _ && 32 !== s.src.charCodeAt(u) ? -1 : u;
  62646. }
  62647. (Core.prototype.process = function (s) {
  62648. var o, i, u;
  62649. for (o = 0, i = (u = this.ruler.getRules('')).length; o < i; o++) u[o](s);
  62650. }),
  62651. (StateBlock.prototype.isEmpty = function isEmpty(s) {
  62652. return this.bMarks[s] + this.tShift[s] >= this.eMarks[s];
  62653. }),
  62654. (StateBlock.prototype.skipEmptyLines = function skipEmptyLines(s) {
  62655. for (
  62656. var o = this.lineMax;
  62657. s < o && !(this.bMarks[s] + this.tShift[s] < this.eMarks[s]);
  62658. s++
  62659. );
  62660. return s;
  62661. }),
  62662. (StateBlock.prototype.skipSpaces = function skipSpaces(s) {
  62663. for (var o = this.src.length; s < o && 32 === this.src.charCodeAt(s); s++);
  62664. return s;
  62665. }),
  62666. (StateBlock.prototype.skipChars = function skipChars(s, o) {
  62667. for (var i = this.src.length; s < i && this.src.charCodeAt(s) === o; s++);
  62668. return s;
  62669. }),
  62670. (StateBlock.prototype.skipCharsBack = function skipCharsBack(s, o, i) {
  62671. if (s <= i) return s;
  62672. for (; s > i; ) if (o !== this.src.charCodeAt(--s)) return s + 1;
  62673. return s;
  62674. }),
  62675. (StateBlock.prototype.getLines = function getLines(s, o, i, u) {
  62676. var _,
  62677. w,
  62678. x,
  62679. C,
  62680. j,
  62681. L = s;
  62682. if (s >= o) return '';
  62683. if (L + 1 === o)
  62684. return (
  62685. (w = this.bMarks[L] + Math.min(this.tShift[L], i)),
  62686. (x = u ? this.eMarks[L] + 1 : this.eMarks[L]),
  62687. this.src.slice(w, x)
  62688. );
  62689. for (C = new Array(o - s), _ = 0; L < o; L++, _++)
  62690. (j = this.tShift[L]) > i && (j = i),
  62691. j < 0 && (j = 0),
  62692. (w = this.bMarks[L] + j),
  62693. (x = L + 1 < o || u ? this.eMarks[L] + 1 : this.eMarks[L]),
  62694. (C[_] = this.src.slice(w, x));
  62695. return C.join('');
  62696. });
  62697. var bC = {};
  62698. [
  62699. 'article',
  62700. 'aside',
  62701. 'button',
  62702. 'blockquote',
  62703. 'body',
  62704. 'canvas',
  62705. 'caption',
  62706. 'col',
  62707. 'colgroup',
  62708. 'dd',
  62709. 'div',
  62710. 'dl',
  62711. 'dt',
  62712. 'embed',
  62713. 'fieldset',
  62714. 'figcaption',
  62715. 'figure',
  62716. 'footer',
  62717. 'form',
  62718. 'h1',
  62719. 'h2',
  62720. 'h3',
  62721. 'h4',
  62722. 'h5',
  62723. 'h6',
  62724. 'header',
  62725. 'hgroup',
  62726. 'hr',
  62727. 'iframe',
  62728. 'li',
  62729. 'map',
  62730. 'object',
  62731. 'ol',
  62732. 'output',
  62733. 'p',
  62734. 'pre',
  62735. 'progress',
  62736. 'script',
  62737. 'section',
  62738. 'style',
  62739. 'table',
  62740. 'tbody',
  62741. 'td',
  62742. 'textarea',
  62743. 'tfoot',
  62744. 'th',
  62745. 'tr',
  62746. 'thead',
  62747. 'ul',
  62748. 'video'
  62749. ].forEach(function (s) {
  62750. bC[s] = !0;
  62751. });
  62752. var _C = /^<([a-zA-Z]{1,15})[\s\/>]/,
  62753. EC = /^<\/([a-zA-Z]{1,15})[\s>]/;
  62754. function index_browser_getLine(s, o) {
  62755. var i = s.bMarks[o] + s.blkIndent,
  62756. u = s.eMarks[o];
  62757. return s.src.substr(i, u - i);
  62758. }
  62759. function skipMarker(s, o) {
  62760. var i,
  62761. u,
  62762. _ = s.bMarks[o] + s.tShift[o],
  62763. w = s.eMarks[o];
  62764. return _ >= w ||
  62765. (126 !== (u = s.src.charCodeAt(_++)) && 58 !== u) ||
  62766. _ === (i = s.skipSpaces(_)) ||
  62767. i >= w
  62768. ? -1
  62769. : i;
  62770. }
  62771. var wC = [
  62772. [
  62773. 'code',
  62774. function code(s, o, i) {
  62775. var u, _;
  62776. if (s.tShift[o] - s.blkIndent < 4) return !1;
  62777. for (_ = u = o + 1; u < i; )
  62778. if (s.isEmpty(u)) u++;
  62779. else {
  62780. if (!(s.tShift[u] - s.blkIndent >= 4)) break;
  62781. _ = ++u;
  62782. }
  62783. return (
  62784. (s.line = u),
  62785. s.tokens.push({
  62786. type: 'code',
  62787. content: s.getLines(o, _, 4 + s.blkIndent, !0),
  62788. block: !0,
  62789. lines: [o, s.line],
  62790. level: s.level
  62791. }),
  62792. !0
  62793. );
  62794. }
  62795. ],
  62796. [
  62797. 'fences',
  62798. function fences(s, o, i, u) {
  62799. var _,
  62800. w,
  62801. x,
  62802. C,
  62803. j,
  62804. L = !1,
  62805. B = s.bMarks[o] + s.tShift[o],
  62806. $ = s.eMarks[o];
  62807. if (B + 3 > $) return !1;
  62808. if (126 !== (_ = s.src.charCodeAt(B)) && 96 !== _) return !1;
  62809. if (((j = B), (w = (B = s.skipChars(B, _)) - j) < 3)) return !1;
  62810. if ((x = s.src.slice(B, $).trim()).indexOf('`') >= 0) return !1;
  62811. if (u) return !0;
  62812. for (
  62813. C = o;
  62814. !(++C >= i) &&
  62815. !(
  62816. (B = j = s.bMarks[C] + s.tShift[C]) < ($ = s.eMarks[C]) &&
  62817. s.tShift[C] < s.blkIndent
  62818. );
  62819. )
  62820. if (
  62821. s.src.charCodeAt(B) === _ &&
  62822. !(
  62823. s.tShift[C] - s.blkIndent >= 4 ||
  62824. (B = s.skipChars(B, _)) - j < w ||
  62825. (B = s.skipSpaces(B)) < $
  62826. )
  62827. ) {
  62828. L = !0;
  62829. break;
  62830. }
  62831. return (
  62832. (w = s.tShift[o]),
  62833. (s.line = C + (L ? 1 : 0)),
  62834. s.tokens.push({
  62835. type: 'fence',
  62836. params: x,
  62837. content: s.getLines(o + 1, C, w, !0),
  62838. lines: [o, s.line],
  62839. level: s.level
  62840. }),
  62841. !0
  62842. );
  62843. },
  62844. ['paragraph', 'blockquote', 'list']
  62845. ],
  62846. [
  62847. 'blockquote',
  62848. function blockquote(s, o, i, u) {
  62849. var _,
  62850. w,
  62851. x,
  62852. C,
  62853. j,
  62854. L,
  62855. B,
  62856. $,
  62857. V,
  62858. U,
  62859. z,
  62860. Y = s.bMarks[o] + s.tShift[o],
  62861. Z = s.eMarks[o];
  62862. if (Y > Z) return !1;
  62863. if (62 !== s.src.charCodeAt(Y++)) return !1;
  62864. if (s.level >= s.options.maxNesting) return !1;
  62865. if (u) return !0;
  62866. for (
  62867. 32 === s.src.charCodeAt(Y) && Y++,
  62868. j = s.blkIndent,
  62869. s.blkIndent = 0,
  62870. C = [s.bMarks[o]],
  62871. s.bMarks[o] = Y,
  62872. w = (Y = Y < Z ? s.skipSpaces(Y) : Y) >= Z,
  62873. x = [s.tShift[o]],
  62874. s.tShift[o] = Y - s.bMarks[o],
  62875. $ = s.parser.ruler.getRules('blockquote'),
  62876. _ = o + 1;
  62877. _ < i && !((Y = s.bMarks[_] + s.tShift[_]) >= (Z = s.eMarks[_]));
  62878. _++
  62879. )
  62880. if (62 !== s.src.charCodeAt(Y++)) {
  62881. if (w) break;
  62882. for (z = !1, V = 0, U = $.length; V < U; V++)
  62883. if ($[V](s, _, i, !0)) {
  62884. z = !0;
  62885. break;
  62886. }
  62887. if (z) break;
  62888. C.push(s.bMarks[_]), x.push(s.tShift[_]), (s.tShift[_] = -1337);
  62889. } else
  62890. 32 === s.src.charCodeAt(Y) && Y++,
  62891. C.push(s.bMarks[_]),
  62892. (s.bMarks[_] = Y),
  62893. (w = (Y = Y < Z ? s.skipSpaces(Y) : Y) >= Z),
  62894. x.push(s.tShift[_]),
  62895. (s.tShift[_] = Y - s.bMarks[_]);
  62896. for (
  62897. L = s.parentType,
  62898. s.parentType = 'blockquote',
  62899. s.tokens.push({ type: 'blockquote_open', lines: (B = [o, 0]), level: s.level++ }),
  62900. s.parser.tokenize(s, o, _),
  62901. s.tokens.push({ type: 'blockquote_close', level: --s.level }),
  62902. s.parentType = L,
  62903. B[1] = s.line,
  62904. V = 0;
  62905. V < x.length;
  62906. V++
  62907. )
  62908. (s.bMarks[V + o] = C[V]), (s.tShift[V + o] = x[V]);
  62909. return (s.blkIndent = j), !0;
  62910. },
  62911. ['paragraph', 'blockquote', 'list']
  62912. ],
  62913. [
  62914. 'hr',
  62915. function hr(s, o, i, u) {
  62916. var _,
  62917. w,
  62918. x,
  62919. C = s.bMarks[o],
  62920. j = s.eMarks[o];
  62921. if ((C += s.tShift[o]) > j) return !1;
  62922. if (42 !== (_ = s.src.charCodeAt(C++)) && 45 !== _ && 95 !== _) return !1;
  62923. for (w = 1; C < j; ) {
  62924. if ((x = s.src.charCodeAt(C++)) !== _ && 32 !== x) return !1;
  62925. x === _ && w++;
  62926. }
  62927. return (
  62928. !(w < 3) &&
  62929. (u ||
  62930. ((s.line = o + 1),
  62931. s.tokens.push({ type: 'hr', lines: [o, s.line], level: s.level })),
  62932. !0)
  62933. );
  62934. },
  62935. ['paragraph', 'blockquote', 'list']
  62936. ],
  62937. [
  62938. 'list',
  62939. function index_browser_list(s, o, i, u) {
  62940. var _,
  62941. w,
  62942. x,
  62943. C,
  62944. j,
  62945. L,
  62946. B,
  62947. $,
  62948. V,
  62949. U,
  62950. z,
  62951. Y,
  62952. Z,
  62953. ee,
  62954. ie,
  62955. ae,
  62956. le,
  62957. ce,
  62958. pe,
  62959. de,
  62960. fe,
  62961. ye = !0;
  62962. if (($ = skipOrderedListMarker(s, o)) >= 0) Y = !0;
  62963. else {
  62964. if (!(($ = skipBulletListMarker(s, o)) >= 0)) return !1;
  62965. Y = !1;
  62966. }
  62967. if (s.level >= s.options.maxNesting) return !1;
  62968. if (((z = s.src.charCodeAt($ - 1)), u)) return !0;
  62969. for (
  62970. ee = s.tokens.length,
  62971. Y
  62972. ? ((B = s.bMarks[o] + s.tShift[o]),
  62973. (U = Number(s.src.substr(B, $ - B - 1))),
  62974. s.tokens.push({
  62975. type: 'ordered_list_open',
  62976. order: U,
  62977. lines: (ae = [o, 0]),
  62978. level: s.level++
  62979. }))
  62980. : s.tokens.push({
  62981. type: 'bullet_list_open',
  62982. lines: (ae = [o, 0]),
  62983. level: s.level++
  62984. }),
  62985. _ = o,
  62986. ie = !1,
  62987. ce = s.parser.ruler.getRules('list');
  62988. !(
  62989. !(_ < i) ||
  62990. ((V = (Z = s.skipSpaces($)) >= s.eMarks[_] ? 1 : Z - $) > 4 && (V = 1),
  62991. V < 1 && (V = 1),
  62992. (w = $ - s.bMarks[_] + V),
  62993. s.tokens.push({ type: 'list_item_open', lines: (le = [o, 0]), level: s.level++ }),
  62994. (C = s.blkIndent),
  62995. (j = s.tight),
  62996. (x = s.tShift[o]),
  62997. (L = s.parentType),
  62998. (s.tShift[o] = Z - s.bMarks[o]),
  62999. (s.blkIndent = w),
  63000. (s.tight = !0),
  63001. (s.parentType = 'list'),
  63002. s.parser.tokenize(s, o, i, !0),
  63003. (s.tight && !ie) || (ye = !1),
  63004. (ie = s.line - o > 1 && s.isEmpty(s.line - 1)),
  63005. (s.blkIndent = C),
  63006. (s.tShift[o] = x),
  63007. (s.tight = j),
  63008. (s.parentType = L),
  63009. s.tokens.push({ type: 'list_item_close', level: --s.level }),
  63010. (_ = o = s.line),
  63011. (le[1] = _),
  63012. (Z = s.bMarks[o]),
  63013. _ >= i) ||
  63014. s.isEmpty(_) ||
  63015. s.tShift[_] < s.blkIndent
  63016. );
  63017. ) {
  63018. for (fe = !1, pe = 0, de = ce.length; pe < de; pe++)
  63019. if (ce[pe](s, _, i, !0)) {
  63020. fe = !0;
  63021. break;
  63022. }
  63023. if (fe) break;
  63024. if (Y) {
  63025. if (($ = skipOrderedListMarker(s, _)) < 0) break;
  63026. } else if (($ = skipBulletListMarker(s, _)) < 0) break;
  63027. if (z !== s.src.charCodeAt($ - 1)) break;
  63028. }
  63029. return (
  63030. s.tokens.push({
  63031. type: Y ? 'ordered_list_close' : 'bullet_list_close',
  63032. level: --s.level
  63033. }),
  63034. (ae[1] = _),
  63035. (s.line = _),
  63036. ye &&
  63037. (function markTightParagraphs(s, o) {
  63038. var i,
  63039. u,
  63040. _ = s.level + 2;
  63041. for (i = o + 2, u = s.tokens.length - 2; i < u; i++)
  63042. s.tokens[i].level === _ &&
  63043. 'paragraph_open' === s.tokens[i].type &&
  63044. ((s.tokens[i + 2].tight = !0), (s.tokens[i].tight = !0), (i += 2));
  63045. })(s, ee),
  63046. !0
  63047. );
  63048. },
  63049. ['paragraph', 'blockquote']
  63050. ],
  63051. [
  63052. 'footnote',
  63053. function footnote(s, o, i, u) {
  63054. var _,
  63055. w,
  63056. x,
  63057. C,
  63058. j,
  63059. L = s.bMarks[o] + s.tShift[o],
  63060. B = s.eMarks[o];
  63061. if (L + 4 > B) return !1;
  63062. if (91 !== s.src.charCodeAt(L)) return !1;
  63063. if (94 !== s.src.charCodeAt(L + 1)) return !1;
  63064. if (s.level >= s.options.maxNesting) return !1;
  63065. for (C = L + 2; C < B; C++) {
  63066. if (32 === s.src.charCodeAt(C)) return !1;
  63067. if (93 === s.src.charCodeAt(C)) break;
  63068. }
  63069. return (
  63070. C !== L + 2 &&
  63071. !(C + 1 >= B || 58 !== s.src.charCodeAt(++C)) &&
  63072. (u ||
  63073. (C++,
  63074. s.env.footnotes || (s.env.footnotes = {}),
  63075. s.env.footnotes.refs || (s.env.footnotes.refs = {}),
  63076. (j = s.src.slice(L + 2, C - 2)),
  63077. (s.env.footnotes.refs[':' + j] = -1),
  63078. s.tokens.push({ type: 'footnote_reference_open', label: j, level: s.level++ }),
  63079. (_ = s.bMarks[o]),
  63080. (w = s.tShift[o]),
  63081. (x = s.parentType),
  63082. (s.tShift[o] = s.skipSpaces(C) - C),
  63083. (s.bMarks[o] = C),
  63084. (s.blkIndent += 4),
  63085. (s.parentType = 'footnote'),
  63086. s.tShift[o] < s.blkIndent &&
  63087. ((s.tShift[o] += s.blkIndent), (s.bMarks[o] -= s.blkIndent)),
  63088. s.parser.tokenize(s, o, i, !0),
  63089. (s.parentType = x),
  63090. (s.blkIndent -= 4),
  63091. (s.tShift[o] = w),
  63092. (s.bMarks[o] = _),
  63093. s.tokens.push({ type: 'footnote_reference_close', level: --s.level })),
  63094. !0)
  63095. );
  63096. },
  63097. ['paragraph']
  63098. ],
  63099. [
  63100. 'heading',
  63101. function heading(s, o, i, u) {
  63102. var _,
  63103. w,
  63104. x,
  63105. C = s.bMarks[o] + s.tShift[o],
  63106. j = s.eMarks[o];
  63107. if (C >= j) return !1;
  63108. if (35 !== (_ = s.src.charCodeAt(C)) || C >= j) return !1;
  63109. for (w = 1, _ = s.src.charCodeAt(++C); 35 === _ && C < j && w <= 6; )
  63110. w++, (_ = s.src.charCodeAt(++C));
  63111. return (
  63112. !(w > 6 || (C < j && 32 !== _)) &&
  63113. (u ||
  63114. ((j = s.skipCharsBack(j, 32, C)),
  63115. (x = s.skipCharsBack(j, 35, C)) > C && 32 === s.src.charCodeAt(x - 1) && (j = x),
  63116. (s.line = o + 1),
  63117. s.tokens.push({
  63118. type: 'heading_open',
  63119. hLevel: w,
  63120. lines: [o, s.line],
  63121. level: s.level
  63122. }),
  63123. C < j &&
  63124. s.tokens.push({
  63125. type: 'inline',
  63126. content: s.src.slice(C, j).trim(),
  63127. level: s.level + 1,
  63128. lines: [o, s.line],
  63129. children: []
  63130. }),
  63131. s.tokens.push({ type: 'heading_close', hLevel: w, level: s.level })),
  63132. !0)
  63133. );
  63134. },
  63135. ['paragraph', 'blockquote']
  63136. ],
  63137. [
  63138. 'lheading',
  63139. function lheading(s, o, i) {
  63140. var u,
  63141. _,
  63142. w,
  63143. x = o + 1;
  63144. return (
  63145. !(x >= i) &&
  63146. !(s.tShift[x] < s.blkIndent) &&
  63147. !(s.tShift[x] - s.blkIndent > 3) &&
  63148. !((_ = s.bMarks[x] + s.tShift[x]) >= (w = s.eMarks[x])) &&
  63149. (45 === (u = s.src.charCodeAt(_)) || 61 === u) &&
  63150. ((_ = s.skipChars(_, u)),
  63151. !((_ = s.skipSpaces(_)) < w) &&
  63152. ((_ = s.bMarks[o] + s.tShift[o]),
  63153. (s.line = x + 1),
  63154. s.tokens.push({
  63155. type: 'heading_open',
  63156. hLevel: 61 === u ? 1 : 2,
  63157. lines: [o, s.line],
  63158. level: s.level
  63159. }),
  63160. s.tokens.push({
  63161. type: 'inline',
  63162. content: s.src.slice(_, s.eMarks[o]).trim(),
  63163. level: s.level + 1,
  63164. lines: [o, s.line - 1],
  63165. children: []
  63166. }),
  63167. s.tokens.push({
  63168. type: 'heading_close',
  63169. hLevel: 61 === u ? 1 : 2,
  63170. level: s.level
  63171. }),
  63172. !0))
  63173. );
  63174. }
  63175. ],
  63176. [
  63177. 'htmlblock',
  63178. function htmlblock(s, o, i, u) {
  63179. var _,
  63180. w,
  63181. x,
  63182. C = s.bMarks[o],
  63183. j = s.eMarks[o],
  63184. L = s.tShift[o];
  63185. if (((C += L), !s.options.html)) return !1;
  63186. if (L > 3 || C + 2 >= j) return !1;
  63187. if (60 !== s.src.charCodeAt(C)) return !1;
  63188. if (33 === (_ = s.src.charCodeAt(C + 1)) || 63 === _) {
  63189. if (u) return !0;
  63190. } else {
  63191. if (
  63192. 47 !== _ &&
  63193. !(function isLetter$1(s) {
  63194. var o = 32 | s;
  63195. return o >= 97 && o <= 122;
  63196. })(_)
  63197. )
  63198. return !1;
  63199. if (47 === _) {
  63200. if (!(w = s.src.slice(C, j).match(EC))) return !1;
  63201. } else if (!(w = s.src.slice(C, j).match(_C))) return !1;
  63202. if (!0 !== bC[w[1].toLowerCase()]) return !1;
  63203. if (u) return !0;
  63204. }
  63205. for (x = o + 1; x < s.lineMax && !s.isEmpty(x); ) x++;
  63206. return (
  63207. (s.line = x),
  63208. s.tokens.push({
  63209. type: 'htmlblock',
  63210. level: s.level,
  63211. lines: [o, s.line],
  63212. content: s.getLines(o, x, 0, !0)
  63213. }),
  63214. !0
  63215. );
  63216. },
  63217. ['paragraph', 'blockquote']
  63218. ],
  63219. [
  63220. 'table',
  63221. function table(s, o, i, u) {
  63222. var _, w, x, C, j, L, B, $, V, U, z;
  63223. if (o + 2 > i) return !1;
  63224. if (((j = o + 1), s.tShift[j] < s.blkIndent)) return !1;
  63225. if ((x = s.bMarks[j] + s.tShift[j]) >= s.eMarks[j]) return !1;
  63226. if (124 !== (_ = s.src.charCodeAt(x)) && 45 !== _ && 58 !== _) return !1;
  63227. if (((w = index_browser_getLine(s, o + 1)), !/^[-:| ]+$/.test(w))) return !1;
  63228. if ((L = w.split('|')) <= 2) return !1;
  63229. for ($ = [], C = 0; C < L.length; C++) {
  63230. if (!(V = L[C].trim())) {
  63231. if (0 === C || C === L.length - 1) continue;
  63232. return !1;
  63233. }
  63234. if (!/^:?-+:?$/.test(V)) return !1;
  63235. 58 === V.charCodeAt(V.length - 1)
  63236. ? $.push(58 === V.charCodeAt(0) ? 'center' : 'right')
  63237. : 58 === V.charCodeAt(0)
  63238. ? $.push('left')
  63239. : $.push('');
  63240. }
  63241. if (-1 === (w = index_browser_getLine(s, o).trim()).indexOf('|')) return !1;
  63242. if (((L = w.replace(/^\||\|$/g, '').split('|')), $.length !== L.length)) return !1;
  63243. if (u) return !0;
  63244. for (
  63245. s.tokens.push({ type: 'table_open', lines: (U = [o, 0]), level: s.level++ }),
  63246. s.tokens.push({ type: 'thead_open', lines: [o, o + 1], level: s.level++ }),
  63247. s.tokens.push({ type: 'tr_open', lines: [o, o + 1], level: s.level++ }),
  63248. C = 0;
  63249. C < L.length;
  63250. C++
  63251. )
  63252. s.tokens.push({
  63253. type: 'th_open',
  63254. align: $[C],
  63255. lines: [o, o + 1],
  63256. level: s.level++
  63257. }),
  63258. s.tokens.push({
  63259. type: 'inline',
  63260. content: L[C].trim(),
  63261. lines: [o, o + 1],
  63262. level: s.level,
  63263. children: []
  63264. }),
  63265. s.tokens.push({ type: 'th_close', level: --s.level });
  63266. for (
  63267. s.tokens.push({ type: 'tr_close', level: --s.level }),
  63268. s.tokens.push({ type: 'thead_close', level: --s.level }),
  63269. s.tokens.push({ type: 'tbody_open', lines: (z = [o + 2, 0]), level: s.level++ }),
  63270. j = o + 2;
  63271. j < i &&
  63272. !(s.tShift[j] < s.blkIndent) &&
  63273. -1 !== (w = index_browser_getLine(s, j).trim()).indexOf('|');
  63274. j++
  63275. ) {
  63276. for (
  63277. L = w.replace(/^\||\|$/g, '').split('|'),
  63278. s.tokens.push({ type: 'tr_open', level: s.level++ }),
  63279. C = 0;
  63280. C < L.length;
  63281. C++
  63282. )
  63283. s.tokens.push({ type: 'td_open', align: $[C], level: s.level++ }),
  63284. (B = L[C].substring(
  63285. 124 === L[C].charCodeAt(0) ? 1 : 0,
  63286. 124 === L[C].charCodeAt(L[C].length - 1) ? L[C].length - 1 : L[C].length
  63287. ).trim()),
  63288. s.tokens.push({ type: 'inline', content: B, level: s.level, children: [] }),
  63289. s.tokens.push({ type: 'td_close', level: --s.level });
  63290. s.tokens.push({ type: 'tr_close', level: --s.level });
  63291. }
  63292. return (
  63293. s.tokens.push({ type: 'tbody_close', level: --s.level }),
  63294. s.tokens.push({ type: 'table_close', level: --s.level }),
  63295. (U[1] = z[1] = j),
  63296. (s.line = j),
  63297. !0
  63298. );
  63299. },
  63300. ['paragraph']
  63301. ],
  63302. [
  63303. 'deflist',
  63304. function deflist(s, o, i, u) {
  63305. var _, w, x, C, j, L, B, $, V, U, z, Y, Z, ee;
  63306. if (u) return !(s.ddIndent < 0) && skipMarker(s, o) >= 0;
  63307. if (((B = o + 1), s.isEmpty(B) && ++B > i)) return !1;
  63308. if (s.tShift[B] < s.blkIndent) return !1;
  63309. if ((_ = skipMarker(s, B)) < 0) return !1;
  63310. if (s.level >= s.options.maxNesting) return !1;
  63311. (L = s.tokens.length),
  63312. s.tokens.push({ type: 'dl_open', lines: (j = [o, 0]), level: s.level++ }),
  63313. (x = o),
  63314. (w = B);
  63315. e: for (;;) {
  63316. for (
  63317. ee = !0,
  63318. Z = !1,
  63319. s.tokens.push({ type: 'dt_open', lines: [x, x], level: s.level++ }),
  63320. s.tokens.push({
  63321. type: 'inline',
  63322. content: s.getLines(x, x + 1, s.blkIndent, !1).trim(),
  63323. level: s.level + 1,
  63324. lines: [x, x],
  63325. children: []
  63326. }),
  63327. s.tokens.push({ type: 'dt_close', level: --s.level });
  63328. ;
  63329. ) {
  63330. if (
  63331. (s.tokens.push({ type: 'dd_open', lines: (C = [B, 0]), level: s.level++ }),
  63332. (Y = s.tight),
  63333. (V = s.ddIndent),
  63334. ($ = s.blkIndent),
  63335. (z = s.tShift[w]),
  63336. (U = s.parentType),
  63337. (s.blkIndent = s.ddIndent = s.tShift[w] + 2),
  63338. (s.tShift[w] = _ - s.bMarks[w]),
  63339. (s.tight = !0),
  63340. (s.parentType = 'deflist'),
  63341. s.parser.tokenize(s, w, i, !0),
  63342. (s.tight && !Z) || (ee = !1),
  63343. (Z = s.line - w > 1 && s.isEmpty(s.line - 1)),
  63344. (s.tShift[w] = z),
  63345. (s.tight = Y),
  63346. (s.parentType = U),
  63347. (s.blkIndent = $),
  63348. (s.ddIndent = V),
  63349. s.tokens.push({ type: 'dd_close', level: --s.level }),
  63350. (C[1] = B = s.line),
  63351. B >= i)
  63352. )
  63353. break e;
  63354. if (s.tShift[B] < s.blkIndent) break e;
  63355. if ((_ = skipMarker(s, B)) < 0) break;
  63356. w = B;
  63357. }
  63358. if (B >= i) break;
  63359. if (((x = B), s.isEmpty(x))) break;
  63360. if (s.tShift[x] < s.blkIndent) break;
  63361. if ((w = x + 1) >= i) break;
  63362. if ((s.isEmpty(w) && w++, w >= i)) break;
  63363. if (s.tShift[w] < s.blkIndent) break;
  63364. if ((_ = skipMarker(s, w)) < 0) break;
  63365. }
  63366. return (
  63367. s.tokens.push({ type: 'dl_close', level: --s.level }),
  63368. (j[1] = B),
  63369. (s.line = B),
  63370. ee &&
  63371. (function markTightParagraphs$1(s, o) {
  63372. var i,
  63373. u,
  63374. _ = s.level + 2;
  63375. for (i = o + 2, u = s.tokens.length - 2; i < u; i++)
  63376. s.tokens[i].level === _ &&
  63377. 'paragraph_open' === s.tokens[i].type &&
  63378. ((s.tokens[i + 2].tight = !0), (s.tokens[i].tight = !0), (i += 2));
  63379. })(s, L),
  63380. !0
  63381. );
  63382. },
  63383. ['paragraph']
  63384. ],
  63385. [
  63386. 'paragraph',
  63387. function paragraph(s, o) {
  63388. var i,
  63389. u,
  63390. _,
  63391. w,
  63392. x,
  63393. C,
  63394. j = o + 1;
  63395. if (j < (i = s.lineMax) && !s.isEmpty(j))
  63396. for (C = s.parser.ruler.getRules('paragraph'); j < i && !s.isEmpty(j); j++)
  63397. if (!(s.tShift[j] - s.blkIndent > 3)) {
  63398. for (_ = !1, w = 0, x = C.length; w < x; w++)
  63399. if (C[w](s, j, i, !0)) {
  63400. _ = !0;
  63401. break;
  63402. }
  63403. if (_) break;
  63404. }
  63405. return (
  63406. (u = s.getLines(o, j, s.blkIndent, !1).trim()),
  63407. (s.line = j),
  63408. u.length &&
  63409. (s.tokens.push({
  63410. type: 'paragraph_open',
  63411. tight: !1,
  63412. lines: [o, s.line],
  63413. level: s.level
  63414. }),
  63415. s.tokens.push({
  63416. type: 'inline',
  63417. content: u,
  63418. level: s.level + 1,
  63419. lines: [o, s.line],
  63420. children: []
  63421. }),
  63422. s.tokens.push({ type: 'paragraph_close', tight: !1, level: s.level })),
  63423. !0
  63424. );
  63425. }
  63426. ]
  63427. ];
  63428. function ParserBlock() {
  63429. this.ruler = new Ruler();
  63430. for (var s = 0; s < wC.length; s++)
  63431. this.ruler.push(wC[s][0], wC[s][1], { alt: (wC[s][2] || []).slice() });
  63432. }
  63433. ParserBlock.prototype.tokenize = function (s, o, i) {
  63434. for (
  63435. var u, _ = this.ruler.getRules(''), w = _.length, x = o, C = !1;
  63436. x < i &&
  63437. ((s.line = x = s.skipEmptyLines(x)), !(x >= i)) &&
  63438. !(s.tShift[x] < s.blkIndent);
  63439. ) {
  63440. for (u = 0; u < w && !_[u](s, x, i, !1); u++);
  63441. if (
  63442. ((s.tight = !C), s.isEmpty(s.line - 1) && (C = !0), (x = s.line) < i && s.isEmpty(x))
  63443. ) {
  63444. if (((C = !0), ++x < i && 'list' === s.parentType && s.isEmpty(x))) break;
  63445. s.line = x;
  63446. }
  63447. }
  63448. };
  63449. var SC = /[\n\t]/g,
  63450. xC = /\r[\n\u0085]|[\u2424\u2028\u0085]/g,
  63451. kC = /\u00a0/g;
  63452. function isTerminatorChar(s) {
  63453. switch (s) {
  63454. case 10:
  63455. case 92:
  63456. case 96:
  63457. case 42:
  63458. case 95:
  63459. case 94:
  63460. case 91:
  63461. case 93:
  63462. case 33:
  63463. case 38:
  63464. case 60:
  63465. case 62:
  63466. case 123:
  63467. case 125:
  63468. case 36:
  63469. case 37:
  63470. case 64:
  63471. case 126:
  63472. case 43:
  63473. case 61:
  63474. case 58:
  63475. return !0;
  63476. default:
  63477. return !1;
  63478. }
  63479. }
  63480. ParserBlock.prototype.parse = function (s, o, i, u) {
  63481. var _,
  63482. w = 0,
  63483. x = 0;
  63484. if (!s) return [];
  63485. (s = (s = s.replace(kC, ' ')).replace(xC, '\n')).indexOf('\t') >= 0 &&
  63486. (s = s.replace(SC, function (o, i) {
  63487. var u;
  63488. return 10 === s.charCodeAt(i)
  63489. ? ((w = i + 1), (x = 0), o)
  63490. : ((u = ' '.slice((i - w - x) % 4)), (x = i - w + 1), u);
  63491. })),
  63492. (_ = new StateBlock(s, this, o, i, u)),
  63493. this.tokenize(_, _.line, _.lineMax);
  63494. };
  63495. for (var CC = [], OC = 0; OC < 256; OC++) CC.push(0);
  63496. function isAlphaNum(s) {
  63497. return (s >= 48 && s <= 57) || (s >= 65 && s <= 90) || (s >= 97 && s <= 122);
  63498. }
  63499. function scanDelims(s, o) {
  63500. var i,
  63501. u,
  63502. _,
  63503. w = o,
  63504. x = !0,
  63505. C = !0,
  63506. j = s.posMax,
  63507. L = s.src.charCodeAt(o);
  63508. for (i = o > 0 ? s.src.charCodeAt(o - 1) : -1; w < j && s.src.charCodeAt(w) === L; ) w++;
  63509. return (
  63510. w >= j && (x = !1),
  63511. (_ = w - o) >= 4
  63512. ? (x = C = !1)
  63513. : ((32 !== (u = w < j ? s.src.charCodeAt(w) : -1) && 10 !== u) || (x = !1),
  63514. (32 !== i && 10 !== i) || (C = !1),
  63515. 95 === L && (isAlphaNum(i) && (x = !1), isAlphaNum(u) && (C = !1))),
  63516. { can_open: x, can_close: C, delims: _ }
  63517. );
  63518. }
  63519. '\\!"#$%&\'()*+,./:;<=>?@[]^_`{|}~-'.split('').forEach(function (s) {
  63520. CC[s.charCodeAt(0)] = 1;
  63521. });
  63522. var AC = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
  63523. var jC = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
  63524. var IC = [
  63525. 'coap',
  63526. 'doi',
  63527. 'javascript',
  63528. 'aaa',
  63529. 'aaas',
  63530. 'about',
  63531. 'acap',
  63532. 'cap',
  63533. 'cid',
  63534. 'crid',
  63535. 'data',
  63536. 'dav',
  63537. 'dict',
  63538. 'dns',
  63539. 'file',
  63540. 'ftp',
  63541. 'geo',
  63542. 'go',
  63543. 'gopher',
  63544. 'h323',
  63545. 'http',
  63546. 'https',
  63547. 'iax',
  63548. 'icap',
  63549. 'im',
  63550. 'imap',
  63551. 'info',
  63552. 'ipp',
  63553. 'iris',
  63554. 'iris.beep',
  63555. 'iris.xpc',
  63556. 'iris.xpcs',
  63557. 'iris.lwz',
  63558. 'ldap',
  63559. 'mailto',
  63560. 'mid',
  63561. 'msrp',
  63562. 'msrps',
  63563. 'mtqp',
  63564. 'mupdate',
  63565. 'news',
  63566. 'nfs',
  63567. 'ni',
  63568. 'nih',
  63569. 'nntp',
  63570. 'opaquelocktoken',
  63571. 'pop',
  63572. 'pres',
  63573. 'rtsp',
  63574. 'service',
  63575. 'session',
  63576. 'shttp',
  63577. 'sieve',
  63578. 'sip',
  63579. 'sips',
  63580. 'sms',
  63581. 'snmp',
  63582. 'soap.beep',
  63583. 'soap.beeps',
  63584. 'tag',
  63585. 'tel',
  63586. 'telnet',
  63587. 'tftp',
  63588. 'thismessage',
  63589. 'tn3270',
  63590. 'tip',
  63591. 'tv',
  63592. 'urn',
  63593. 'vemmi',
  63594. 'ws',
  63595. 'wss',
  63596. 'xcon',
  63597. 'xcon-userid',
  63598. 'xmlrpc.beep',
  63599. 'xmlrpc.beeps',
  63600. 'xmpp',
  63601. 'z39.50r',
  63602. 'z39.50s',
  63603. 'adiumxtra',
  63604. 'afp',
  63605. 'afs',
  63606. 'aim',
  63607. 'apt',
  63608. 'attachment',
  63609. 'aw',
  63610. 'beshare',
  63611. 'bitcoin',
  63612. 'bolo',
  63613. 'callto',
  63614. 'chrome',
  63615. 'chrome-extension',
  63616. 'com-eventbrite-attendee',
  63617. 'content',
  63618. 'cvs',
  63619. 'dlna-playsingle',
  63620. 'dlna-playcontainer',
  63621. 'dtn',
  63622. 'dvb',
  63623. 'ed2k',
  63624. 'facetime',
  63625. 'feed',
  63626. 'finger',
  63627. 'fish',
  63628. 'gg',
  63629. 'git',
  63630. 'gizmoproject',
  63631. 'gtalk',
  63632. 'hcp',
  63633. 'icon',
  63634. 'ipn',
  63635. 'irc',
  63636. 'irc6',
  63637. 'ircs',
  63638. 'itms',
  63639. 'jar',
  63640. 'jms',
  63641. 'keyparc',
  63642. 'lastfm',
  63643. 'ldaps',
  63644. 'magnet',
  63645. 'maps',
  63646. 'market',
  63647. 'message',
  63648. 'mms',
  63649. 'ms-help',
  63650. 'msnim',
  63651. 'mumble',
  63652. 'mvn',
  63653. 'notes',
  63654. 'oid',
  63655. 'palm',
  63656. 'paparazzi',
  63657. 'platform',
  63658. 'proxy',
  63659. 'psyc',
  63660. 'query',
  63661. 'res',
  63662. 'resource',
  63663. 'rmi',
  63664. 'rsync',
  63665. 'rtmp',
  63666. 'secondlife',
  63667. 'sftp',
  63668. 'sgn',
  63669. 'skype',
  63670. 'smb',
  63671. 'soldat',
  63672. 'spotify',
  63673. 'ssh',
  63674. 'steam',
  63675. 'svn',
  63676. 'teamspeak',
  63677. 'things',
  63678. 'udp',
  63679. 'unreal',
  63680. 'ut2004',
  63681. 'ventrilo',
  63682. 'view-source',
  63683. 'webcal',
  63684. 'wtai',
  63685. 'wyciwyg',
  63686. 'xfire',
  63687. 'xri',
  63688. 'ymsgr'
  63689. ],
  63690. PC =
  63691. /^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,
  63692. MC = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
  63693. function replace$1(s, o) {
  63694. return (
  63695. (s = s.source),
  63696. (o = o || ''),
  63697. function self(i, u) {
  63698. return i ? ((u = u.source || u), (s = s.replace(i, u)), self) : new RegExp(s, o);
  63699. }
  63700. );
  63701. }
  63702. var TC = replace$1(/(?:unquoted|single_quoted|double_quoted)/)(
  63703. 'unquoted',
  63704. /[^"'=<>`\x00-\x20]+/
  63705. )('single_quoted', /'[^']*'/)('double_quoted', /"[^"]*"/)(),
  63706. NC = replace$1(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)(
  63707. 'attr_name',
  63708. /[a-zA-Z_:][a-zA-Z0-9:._-]*/
  63709. )('attr_value', TC)(),
  63710. RC = replace$1(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)('attribute', NC)(),
  63711. DC = replace$1(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)(
  63712. 'open_tag',
  63713. RC
  63714. )('close_tag', /<\/[A-Za-z][A-Za-z0-9]*\s*>/)(
  63715. 'comment',
  63716. /<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/
  63717. )('processing', /<[?].*?[?]>/)('declaration', /<![A-Z]+\s+[^>]*>/)(
  63718. 'cdata',
  63719. /<!\[CDATA\[[\s\S]*?\]\]>/
  63720. )();
  63721. var LC = /^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,
  63722. BC = /^&([a-z][a-z0-9]{1,31});/i;
  63723. var FC = [
  63724. [
  63725. 'text',
  63726. function index_browser_text(s, o) {
  63727. for (var i = s.pos; i < s.posMax && !isTerminatorChar(s.src.charCodeAt(i)); ) i++;
  63728. return i !== s.pos && (o || (s.pending += s.src.slice(s.pos, i)), (s.pos = i), !0);
  63729. }
  63730. ],
  63731. [
  63732. 'newline',
  63733. function newline(s, o) {
  63734. var i,
  63735. u,
  63736. _ = s.pos;
  63737. if (10 !== s.src.charCodeAt(_)) return !1;
  63738. if (((i = s.pending.length - 1), (u = s.posMax), !o))
  63739. if (i >= 0 && 32 === s.pending.charCodeAt(i))
  63740. if (i >= 1 && 32 === s.pending.charCodeAt(i - 1)) {
  63741. for (var w = i - 2; w >= 0; w--)
  63742. if (32 !== s.pending.charCodeAt(w)) {
  63743. s.pending = s.pending.substring(0, w + 1);
  63744. break;
  63745. }
  63746. s.push({ type: 'hardbreak', level: s.level });
  63747. } else
  63748. (s.pending = s.pending.slice(0, -1)),
  63749. s.push({ type: 'softbreak', level: s.level });
  63750. else s.push({ type: 'softbreak', level: s.level });
  63751. for (_++; _ < u && 32 === s.src.charCodeAt(_); ) _++;
  63752. return (s.pos = _), !0;
  63753. }
  63754. ],
  63755. [
  63756. 'escape',
  63757. function index_browser_escape(s, o) {
  63758. var i,
  63759. u = s.pos,
  63760. _ = s.posMax;
  63761. if (92 !== s.src.charCodeAt(u)) return !1;
  63762. if (++u < _) {
  63763. if ((i = s.src.charCodeAt(u)) < 256 && 0 !== CC[i])
  63764. return o || (s.pending += s.src[u]), (s.pos += 2), !0;
  63765. if (10 === i) {
  63766. for (
  63767. o || s.push({ type: 'hardbreak', level: s.level }), u++;
  63768. u < _ && 32 === s.src.charCodeAt(u);
  63769. )
  63770. u++;
  63771. return (s.pos = u), !0;
  63772. }
  63773. }
  63774. return o || (s.pending += '\\'), s.pos++, !0;
  63775. }
  63776. ],
  63777. [
  63778. 'backticks',
  63779. function backticks(s, o) {
  63780. var i,
  63781. u,
  63782. _,
  63783. w,
  63784. x,
  63785. C = s.pos;
  63786. if (96 !== s.src.charCodeAt(C)) return !1;
  63787. for (i = C, C++, u = s.posMax; C < u && 96 === s.src.charCodeAt(C); ) C++;
  63788. for (_ = s.src.slice(i, C), w = x = C; -1 !== (w = s.src.indexOf('`', x)); ) {
  63789. for (x = w + 1; x < u && 96 === s.src.charCodeAt(x); ) x++;
  63790. if (x - w === _.length)
  63791. return (
  63792. o ||
  63793. s.push({
  63794. type: 'code',
  63795. content: s.src
  63796. .slice(C, w)
  63797. .replace(/[ \n]+/g, ' ')
  63798. .trim(),
  63799. block: !1,
  63800. level: s.level
  63801. }),
  63802. (s.pos = x),
  63803. !0
  63804. );
  63805. }
  63806. return o || (s.pending += _), (s.pos += _.length), !0;
  63807. }
  63808. ],
  63809. [
  63810. 'del',
  63811. function del(s, o) {
  63812. var i,
  63813. u,
  63814. _,
  63815. w,
  63816. x,
  63817. C = s.posMax,
  63818. j = s.pos;
  63819. if (126 !== s.src.charCodeAt(j)) return !1;
  63820. if (o) return !1;
  63821. if (j + 4 >= C) return !1;
  63822. if (126 !== s.src.charCodeAt(j + 1)) return !1;
  63823. if (s.level >= s.options.maxNesting) return !1;
  63824. if (
  63825. ((w = j > 0 ? s.src.charCodeAt(j - 1) : -1),
  63826. (x = s.src.charCodeAt(j + 2)),
  63827. 126 === w)
  63828. )
  63829. return !1;
  63830. if (126 === x) return !1;
  63831. if (32 === x || 10 === x) return !1;
  63832. for (u = j + 2; u < C && 126 === s.src.charCodeAt(u); ) u++;
  63833. if (u > j + 3) return (s.pos += u - j), o || (s.pending += s.src.slice(j, u)), !0;
  63834. for (s.pos = j + 2, _ = 1; s.pos + 1 < C; ) {
  63835. if (
  63836. 126 === s.src.charCodeAt(s.pos) &&
  63837. 126 === s.src.charCodeAt(s.pos + 1) &&
  63838. ((w = s.src.charCodeAt(s.pos - 1)),
  63839. 126 !== (x = s.pos + 2 < C ? s.src.charCodeAt(s.pos + 2) : -1) &&
  63840. 126 !== w &&
  63841. (32 !== w && 10 !== w ? _-- : 32 !== x && 10 !== x && _++, _ <= 0))
  63842. ) {
  63843. i = !0;
  63844. break;
  63845. }
  63846. s.parser.skipToken(s);
  63847. }
  63848. return i
  63849. ? ((s.posMax = s.pos),
  63850. (s.pos = j + 2),
  63851. o ||
  63852. (s.push({ type: 'del_open', level: s.level++ }),
  63853. s.parser.tokenize(s),
  63854. s.push({ type: 'del_close', level: --s.level })),
  63855. (s.pos = s.posMax + 2),
  63856. (s.posMax = C),
  63857. !0)
  63858. : ((s.pos = j), !1);
  63859. }
  63860. ],
  63861. [
  63862. 'ins',
  63863. function ins(s, o) {
  63864. var i,
  63865. u,
  63866. _,
  63867. w,
  63868. x,
  63869. C = s.posMax,
  63870. j = s.pos;
  63871. if (43 !== s.src.charCodeAt(j)) return !1;
  63872. if (o) return !1;
  63873. if (j + 4 >= C) return !1;
  63874. if (43 !== s.src.charCodeAt(j + 1)) return !1;
  63875. if (s.level >= s.options.maxNesting) return !1;
  63876. if (
  63877. ((w = j > 0 ? s.src.charCodeAt(j - 1) : -1),
  63878. (x = s.src.charCodeAt(j + 2)),
  63879. 43 === w)
  63880. )
  63881. return !1;
  63882. if (43 === x) return !1;
  63883. if (32 === x || 10 === x) return !1;
  63884. for (u = j + 2; u < C && 43 === s.src.charCodeAt(u); ) u++;
  63885. if (u !== j + 2) return (s.pos += u - j), o || (s.pending += s.src.slice(j, u)), !0;
  63886. for (s.pos = j + 2, _ = 1; s.pos + 1 < C; ) {
  63887. if (
  63888. 43 === s.src.charCodeAt(s.pos) &&
  63889. 43 === s.src.charCodeAt(s.pos + 1) &&
  63890. ((w = s.src.charCodeAt(s.pos - 1)),
  63891. 43 !== (x = s.pos + 2 < C ? s.src.charCodeAt(s.pos + 2) : -1) &&
  63892. 43 !== w &&
  63893. (32 !== w && 10 !== w ? _-- : 32 !== x && 10 !== x && _++, _ <= 0))
  63894. ) {
  63895. i = !0;
  63896. break;
  63897. }
  63898. s.parser.skipToken(s);
  63899. }
  63900. return i
  63901. ? ((s.posMax = s.pos),
  63902. (s.pos = j + 2),
  63903. o ||
  63904. (s.push({ type: 'ins_open', level: s.level++ }),
  63905. s.parser.tokenize(s),
  63906. s.push({ type: 'ins_close', level: --s.level })),
  63907. (s.pos = s.posMax + 2),
  63908. (s.posMax = C),
  63909. !0)
  63910. : ((s.pos = j), !1);
  63911. }
  63912. ],
  63913. [
  63914. 'mark',
  63915. function mark(s, o) {
  63916. var i,
  63917. u,
  63918. _,
  63919. w,
  63920. x,
  63921. C = s.posMax,
  63922. j = s.pos;
  63923. if (61 !== s.src.charCodeAt(j)) return !1;
  63924. if (o) return !1;
  63925. if (j + 4 >= C) return !1;
  63926. if (61 !== s.src.charCodeAt(j + 1)) return !1;
  63927. if (s.level >= s.options.maxNesting) return !1;
  63928. if (
  63929. ((w = j > 0 ? s.src.charCodeAt(j - 1) : -1),
  63930. (x = s.src.charCodeAt(j + 2)),
  63931. 61 === w)
  63932. )
  63933. return !1;
  63934. if (61 === x) return !1;
  63935. if (32 === x || 10 === x) return !1;
  63936. for (u = j + 2; u < C && 61 === s.src.charCodeAt(u); ) u++;
  63937. if (u !== j + 2) return (s.pos += u - j), o || (s.pending += s.src.slice(j, u)), !0;
  63938. for (s.pos = j + 2, _ = 1; s.pos + 1 < C; ) {
  63939. if (
  63940. 61 === s.src.charCodeAt(s.pos) &&
  63941. 61 === s.src.charCodeAt(s.pos + 1) &&
  63942. ((w = s.src.charCodeAt(s.pos - 1)),
  63943. 61 !== (x = s.pos + 2 < C ? s.src.charCodeAt(s.pos + 2) : -1) &&
  63944. 61 !== w &&
  63945. (32 !== w && 10 !== w ? _-- : 32 !== x && 10 !== x && _++, _ <= 0))
  63946. ) {
  63947. i = !0;
  63948. break;
  63949. }
  63950. s.parser.skipToken(s);
  63951. }
  63952. return i
  63953. ? ((s.posMax = s.pos),
  63954. (s.pos = j + 2),
  63955. o ||
  63956. (s.push({ type: 'mark_open', level: s.level++ }),
  63957. s.parser.tokenize(s),
  63958. s.push({ type: 'mark_close', level: --s.level })),
  63959. (s.pos = s.posMax + 2),
  63960. (s.posMax = C),
  63961. !0)
  63962. : ((s.pos = j), !1);
  63963. }
  63964. ],
  63965. [
  63966. 'emphasis',
  63967. function emphasis(s, o) {
  63968. var i,
  63969. u,
  63970. _,
  63971. w,
  63972. x,
  63973. C,
  63974. j,
  63975. L = s.posMax,
  63976. B = s.pos,
  63977. $ = s.src.charCodeAt(B);
  63978. if (95 !== $ && 42 !== $) return !1;
  63979. if (o) return !1;
  63980. if (((i = (j = scanDelims(s, B)).delims), !j.can_open))
  63981. return (s.pos += i), o || (s.pending += s.src.slice(B, s.pos)), !0;
  63982. if (s.level >= s.options.maxNesting) return !1;
  63983. for (s.pos = B + i, C = [i]; s.pos < L; )
  63984. if (s.src.charCodeAt(s.pos) !== $) s.parser.skipToken(s);
  63985. else {
  63986. if (((u = (j = scanDelims(s, s.pos)).delims), j.can_close)) {
  63987. for (w = C.pop(), x = u; w !== x; ) {
  63988. if (x < w) {
  63989. C.push(w - x);
  63990. break;
  63991. }
  63992. if (((x -= w), 0 === C.length)) break;
  63993. (s.pos += w), (w = C.pop());
  63994. }
  63995. if (0 === C.length) {
  63996. (i = w), (_ = !0);
  63997. break;
  63998. }
  63999. s.pos += u;
  64000. continue;
  64001. }
  64002. j.can_open && C.push(u), (s.pos += u);
  64003. }
  64004. return _
  64005. ? ((s.posMax = s.pos),
  64006. (s.pos = B + i),
  64007. o ||
  64008. ((2 !== i && 3 !== i) || s.push({ type: 'strong_open', level: s.level++ }),
  64009. (1 !== i && 3 !== i) || s.push({ type: 'em_open', level: s.level++ }),
  64010. s.parser.tokenize(s),
  64011. (1 !== i && 3 !== i) || s.push({ type: 'em_close', level: --s.level }),
  64012. (2 !== i && 3 !== i) || s.push({ type: 'strong_close', level: --s.level })),
  64013. (s.pos = s.posMax + i),
  64014. (s.posMax = L),
  64015. !0)
  64016. : ((s.pos = B), !1);
  64017. }
  64018. ],
  64019. [
  64020. 'sub',
  64021. function sub(s, o) {
  64022. var i,
  64023. u,
  64024. _ = s.posMax,
  64025. w = s.pos;
  64026. if (126 !== s.src.charCodeAt(w)) return !1;
  64027. if (o) return !1;
  64028. if (w + 2 >= _) return !1;
  64029. if (s.level >= s.options.maxNesting) return !1;
  64030. for (s.pos = w + 1; s.pos < _; ) {
  64031. if (126 === s.src.charCodeAt(s.pos)) {
  64032. i = !0;
  64033. break;
  64034. }
  64035. s.parser.skipToken(s);
  64036. }
  64037. return i && w + 1 !== s.pos
  64038. ? (u = s.src.slice(w + 1, s.pos)).match(/(^|[^\\])(\\\\)*\s/)
  64039. ? ((s.pos = w), !1)
  64040. : ((s.posMax = s.pos),
  64041. (s.pos = w + 1),
  64042. o || s.push({ type: 'sub', level: s.level, content: u.replace(AC, '$1') }),
  64043. (s.pos = s.posMax + 1),
  64044. (s.posMax = _),
  64045. !0)
  64046. : ((s.pos = w), !1);
  64047. }
  64048. ],
  64049. [
  64050. 'sup',
  64051. function sup(s, o) {
  64052. var i,
  64053. u,
  64054. _ = s.posMax,
  64055. w = s.pos;
  64056. if (94 !== s.src.charCodeAt(w)) return !1;
  64057. if (o) return !1;
  64058. if (w + 2 >= _) return !1;
  64059. if (s.level >= s.options.maxNesting) return !1;
  64060. for (s.pos = w + 1; s.pos < _; ) {
  64061. if (94 === s.src.charCodeAt(s.pos)) {
  64062. i = !0;
  64063. break;
  64064. }
  64065. s.parser.skipToken(s);
  64066. }
  64067. return i && w + 1 !== s.pos
  64068. ? (u = s.src.slice(w + 1, s.pos)).match(/(^|[^\\])(\\\\)*\s/)
  64069. ? ((s.pos = w), !1)
  64070. : ((s.posMax = s.pos),
  64071. (s.pos = w + 1),
  64072. o || s.push({ type: 'sup', level: s.level, content: u.replace(jC, '$1') }),
  64073. (s.pos = s.posMax + 1),
  64074. (s.posMax = _),
  64075. !0)
  64076. : ((s.pos = w), !1);
  64077. }
  64078. ],
  64079. [
  64080. 'links',
  64081. function links(s, o) {
  64082. var i,
  64083. u,
  64084. _,
  64085. w,
  64086. x,
  64087. C,
  64088. j,
  64089. L,
  64090. B = !1,
  64091. $ = s.pos,
  64092. V = s.posMax,
  64093. U = s.pos,
  64094. z = s.src.charCodeAt(U);
  64095. if ((33 === z && ((B = !0), (z = s.src.charCodeAt(++U))), 91 !== z)) return !1;
  64096. if (s.level >= s.options.maxNesting) return !1;
  64097. if (((i = U + 1), (u = parseLinkLabel(s, U)) < 0)) return !1;
  64098. if ((C = u + 1) < V && 40 === s.src.charCodeAt(C)) {
  64099. for (C++; C < V && (32 === (L = s.src.charCodeAt(C)) || 10 === L); C++);
  64100. if (C >= V) return !1;
  64101. for (
  64102. U = C,
  64103. parseLinkDestination(s, C) ? ((w = s.linkContent), (C = s.pos)) : (w = ''),
  64104. U = C;
  64105. C < V && (32 === (L = s.src.charCodeAt(C)) || 10 === L);
  64106. C++
  64107. );
  64108. if (C < V && U !== C && parseLinkTitle(s, C))
  64109. for (
  64110. x = s.linkContent, C = s.pos;
  64111. C < V && (32 === (L = s.src.charCodeAt(C)) || 10 === L);
  64112. C++
  64113. );
  64114. else x = '';
  64115. if (C >= V || 41 !== s.src.charCodeAt(C)) return (s.pos = $), !1;
  64116. C++;
  64117. } else {
  64118. if (s.linkLevel > 0) return !1;
  64119. for (; C < V && (32 === (L = s.src.charCodeAt(C)) || 10 === L); C++);
  64120. if (
  64121. (C < V &&
  64122. 91 === s.src.charCodeAt(C) &&
  64123. ((U = C + 1),
  64124. (C = parseLinkLabel(s, C)) >= 0 ? (_ = s.src.slice(U, C++)) : (C = U - 1)),
  64125. _ || (void 0 === _ && (C = u + 1), (_ = s.src.slice(i, u))),
  64126. !(j = s.env.references[normalizeReference(_)]))
  64127. )
  64128. return (s.pos = $), !1;
  64129. (w = j.href), (x = j.title);
  64130. }
  64131. return (
  64132. o ||
  64133. ((s.pos = i),
  64134. (s.posMax = u),
  64135. B
  64136. ? s.push({
  64137. type: 'image',
  64138. src: w,
  64139. title: x,
  64140. alt: s.src.substr(i, u - i),
  64141. level: s.level
  64142. })
  64143. : (s.push({ type: 'link_open', href: w, title: x, level: s.level++ }),
  64144. s.linkLevel++,
  64145. s.parser.tokenize(s),
  64146. s.linkLevel--,
  64147. s.push({ type: 'link_close', level: --s.level }))),
  64148. (s.pos = C),
  64149. (s.posMax = V),
  64150. !0
  64151. );
  64152. }
  64153. ],
  64154. [
  64155. 'footnote_inline',
  64156. function footnote_inline(s, o) {
  64157. var i,
  64158. u,
  64159. _,
  64160. w,
  64161. x = s.posMax,
  64162. C = s.pos;
  64163. return (
  64164. !(C + 2 >= x) &&
  64165. 94 === s.src.charCodeAt(C) &&
  64166. 91 === s.src.charCodeAt(C + 1) &&
  64167. !(s.level >= s.options.maxNesting) &&
  64168. ((i = C + 2),
  64169. !((u = parseLinkLabel(s, C + 1)) < 0) &&
  64170. (o ||
  64171. (s.env.footnotes || (s.env.footnotes = {}),
  64172. s.env.footnotes.list || (s.env.footnotes.list = []),
  64173. (_ = s.env.footnotes.list.length),
  64174. (s.pos = i),
  64175. (s.posMax = u),
  64176. s.push({ type: 'footnote_ref', id: _, level: s.level }),
  64177. s.linkLevel++,
  64178. (w = s.tokens.length),
  64179. s.parser.tokenize(s),
  64180. (s.env.footnotes.list[_] = { tokens: s.tokens.splice(w) }),
  64181. s.linkLevel--),
  64182. (s.pos = u + 1),
  64183. (s.posMax = x),
  64184. !0))
  64185. );
  64186. }
  64187. ],
  64188. [
  64189. 'footnote_ref',
  64190. function footnote_ref(s, o) {
  64191. var i,
  64192. u,
  64193. _,
  64194. w,
  64195. x = s.posMax,
  64196. C = s.pos;
  64197. if (C + 3 > x) return !1;
  64198. if (!s.env.footnotes || !s.env.footnotes.refs) return !1;
  64199. if (91 !== s.src.charCodeAt(C)) return !1;
  64200. if (94 !== s.src.charCodeAt(C + 1)) return !1;
  64201. if (s.level >= s.options.maxNesting) return !1;
  64202. for (u = C + 2; u < x; u++) {
  64203. if (32 === s.src.charCodeAt(u)) return !1;
  64204. if (10 === s.src.charCodeAt(u)) return !1;
  64205. if (93 === s.src.charCodeAt(u)) break;
  64206. }
  64207. return (
  64208. u !== C + 2 &&
  64209. !(u >= x) &&
  64210. (u++,
  64211. (i = s.src.slice(C + 2, u - 1)),
  64212. void 0 !== s.env.footnotes.refs[':' + i] &&
  64213. (o ||
  64214. (s.env.footnotes.list || (s.env.footnotes.list = []),
  64215. s.env.footnotes.refs[':' + i] < 0
  64216. ? ((_ = s.env.footnotes.list.length),
  64217. (s.env.footnotes.list[_] = { label: i, count: 0 }),
  64218. (s.env.footnotes.refs[':' + i] = _))
  64219. : (_ = s.env.footnotes.refs[':' + i]),
  64220. (w = s.env.footnotes.list[_].count),
  64221. s.env.footnotes.list[_].count++,
  64222. s.push({ type: 'footnote_ref', id: _, subId: w, level: s.level })),
  64223. (s.pos = u),
  64224. (s.posMax = x),
  64225. !0))
  64226. );
  64227. }
  64228. ],
  64229. [
  64230. 'autolink',
  64231. function autolink(s, o) {
  64232. var i,
  64233. u,
  64234. _,
  64235. w,
  64236. x,
  64237. C = s.pos;
  64238. return (
  64239. 60 === s.src.charCodeAt(C) &&
  64240. !((i = s.src.slice(C)).indexOf('>') < 0) &&
  64241. ((u = i.match(MC))
  64242. ? !(IC.indexOf(u[1].toLowerCase()) < 0) &&
  64243. ((x = normalizeLink((w = u[0].slice(1, -1)))),
  64244. !!s.parser.validateLink(w) &&
  64245. (o ||
  64246. (s.push({ type: 'link_open', href: x, level: s.level }),
  64247. s.push({ type: 'text', content: w, level: s.level + 1 }),
  64248. s.push({ type: 'link_close', level: s.level })),
  64249. (s.pos += u[0].length),
  64250. !0))
  64251. : !!(_ = i.match(PC)) &&
  64252. ((x = normalizeLink('mailto:' + (w = _[0].slice(1, -1)))),
  64253. !!s.parser.validateLink(x) &&
  64254. (o ||
  64255. (s.push({ type: 'link_open', href: x, level: s.level }),
  64256. s.push({ type: 'text', content: w, level: s.level + 1 }),
  64257. s.push({ type: 'link_close', level: s.level })),
  64258. (s.pos += _[0].length),
  64259. !0)))
  64260. );
  64261. }
  64262. ],
  64263. [
  64264. 'htmltag',
  64265. function htmltag(s, o) {
  64266. var i,
  64267. u,
  64268. _,
  64269. w = s.pos;
  64270. return (
  64271. !!s.options.html &&
  64272. ((_ = s.posMax),
  64273. !(60 !== s.src.charCodeAt(w) || w + 2 >= _) &&
  64274. !(
  64275. 33 !== (i = s.src.charCodeAt(w + 1)) &&
  64276. 63 !== i &&
  64277. 47 !== i &&
  64278. !(function isLetter$2(s) {
  64279. var o = 32 | s;
  64280. return o >= 97 && o <= 122;
  64281. })(i)
  64282. ) &&
  64283. !!(u = s.src.slice(w).match(DC)) &&
  64284. (o ||
  64285. s.push({
  64286. type: 'htmltag',
  64287. content: s.src.slice(w, w + u[0].length),
  64288. level: s.level
  64289. }),
  64290. (s.pos += u[0].length),
  64291. !0))
  64292. );
  64293. }
  64294. ],
  64295. [
  64296. 'entity',
  64297. function entity(s, o) {
  64298. var i,
  64299. u,
  64300. _ = s.pos,
  64301. w = s.posMax;
  64302. if (38 !== s.src.charCodeAt(_)) return !1;
  64303. if (_ + 1 < w)
  64304. if (35 === s.src.charCodeAt(_ + 1)) {
  64305. if ((u = s.src.slice(_).match(LC)))
  64306. return (
  64307. o ||
  64308. ((i =
  64309. 'x' === u[1][0].toLowerCase()
  64310. ? parseInt(u[1].slice(1), 16)
  64311. : parseInt(u[1], 10)),
  64312. (s.pending += isValidEntityCode(i)
  64313. ? fromCodePoint(i)
  64314. : fromCodePoint(65533))),
  64315. (s.pos += u[0].length),
  64316. !0
  64317. );
  64318. } else if ((u = s.src.slice(_).match(BC))) {
  64319. var x = decodeEntity(u[1]);
  64320. if (u[1] !== x) return o || (s.pending += x), (s.pos += u[0].length), !0;
  64321. }
  64322. return o || (s.pending += '&'), s.pos++, !0;
  64323. }
  64324. ]
  64325. ];
  64326. function ParserInline() {
  64327. this.ruler = new Ruler();
  64328. for (var s = 0; s < FC.length; s++) this.ruler.push(FC[s][0], FC[s][1]);
  64329. this.validateLink = validateLink;
  64330. }
  64331. function validateLink(s) {
  64332. var o = s.trim().toLowerCase();
  64333. return (
  64334. -1 === (o = replaceEntities(o)).indexOf(':') ||
  64335. -1 === ['vbscript', 'javascript', 'file', 'data'].indexOf(o.split(':')[0])
  64336. );
  64337. }
  64338. (ParserInline.prototype.skipToken = function (s) {
  64339. var o,
  64340. i,
  64341. u = this.ruler.getRules(''),
  64342. _ = u.length,
  64343. w = s.pos;
  64344. if ((i = s.cacheGet(w)) > 0) s.pos = i;
  64345. else {
  64346. for (o = 0; o < _; o++) if (u[o](s, !0)) return void s.cacheSet(w, s.pos);
  64347. s.pos++, s.cacheSet(w, s.pos);
  64348. }
  64349. }),
  64350. (ParserInline.prototype.tokenize = function (s) {
  64351. for (var o, i, u = this.ruler.getRules(''), _ = u.length, w = s.posMax; s.pos < w; ) {
  64352. for (i = 0; i < _ && !(o = u[i](s, !1)); i++);
  64353. if (o) {
  64354. if (s.pos >= w) break;
  64355. } else s.pending += s.src[s.pos++];
  64356. }
  64357. s.pending && s.pushPending();
  64358. }),
  64359. (ParserInline.prototype.parse = function (s, o, i, u) {
  64360. var _ = new StateInline(s, this, o, i, u);
  64361. this.tokenize(_);
  64362. });
  64363. var qC = {
  64364. default: {
  64365. options: {
  64366. html: !1,
  64367. xhtmlOut: !1,
  64368. breaks: !1,
  64369. langPrefix: 'language-',
  64370. linkTarget: '',
  64371. typographer: !1,
  64372. quotes: '“”‘’',
  64373. highlight: null,
  64374. maxNesting: 20
  64375. },
  64376. components: {
  64377. core: {
  64378. rules: [
  64379. 'block',
  64380. 'inline',
  64381. 'references',
  64382. 'replacements',
  64383. 'smartquotes',
  64384. 'references',
  64385. 'abbr2',
  64386. 'footnote_tail'
  64387. ]
  64388. },
  64389. block: {
  64390. rules: [
  64391. 'blockquote',
  64392. 'code',
  64393. 'fences',
  64394. 'footnote',
  64395. 'heading',
  64396. 'hr',
  64397. 'htmlblock',
  64398. 'lheading',
  64399. 'list',
  64400. 'paragraph',
  64401. 'table'
  64402. ]
  64403. },
  64404. inline: {
  64405. rules: [
  64406. 'autolink',
  64407. 'backticks',
  64408. 'del',
  64409. 'emphasis',
  64410. 'entity',
  64411. 'escape',
  64412. 'footnote_ref',
  64413. 'htmltag',
  64414. 'links',
  64415. 'newline',
  64416. 'text'
  64417. ]
  64418. }
  64419. }
  64420. },
  64421. full: {
  64422. options: {
  64423. html: !1,
  64424. xhtmlOut: !1,
  64425. breaks: !1,
  64426. langPrefix: 'language-',
  64427. linkTarget: '',
  64428. typographer: !1,
  64429. quotes: '“”‘’',
  64430. highlight: null,
  64431. maxNesting: 20
  64432. },
  64433. components: { core: {}, block: {}, inline: {} }
  64434. },
  64435. commonmark: {
  64436. options: {
  64437. html: !0,
  64438. xhtmlOut: !0,
  64439. breaks: !1,
  64440. langPrefix: 'language-',
  64441. linkTarget: '',
  64442. typographer: !1,
  64443. quotes: '“”‘’',
  64444. highlight: null,
  64445. maxNesting: 20
  64446. },
  64447. components: {
  64448. core: { rules: ['block', 'inline', 'references', 'abbr2'] },
  64449. block: {
  64450. rules: [
  64451. 'blockquote',
  64452. 'code',
  64453. 'fences',
  64454. 'heading',
  64455. 'hr',
  64456. 'htmlblock',
  64457. 'lheading',
  64458. 'list',
  64459. 'paragraph'
  64460. ]
  64461. },
  64462. inline: {
  64463. rules: [
  64464. 'autolink',
  64465. 'backticks',
  64466. 'emphasis',
  64467. 'entity',
  64468. 'escape',
  64469. 'htmltag',
  64470. 'links',
  64471. 'newline',
  64472. 'text'
  64473. ]
  64474. }
  64475. }
  64476. }
  64477. };
  64478. function StateCore(s, o, i) {
  64479. (this.src = o),
  64480. (this.env = i),
  64481. (this.options = s.options),
  64482. (this.tokens = []),
  64483. (this.inlineMode = !1),
  64484. (this.inline = s.inline),
  64485. (this.block = s.block),
  64486. (this.renderer = s.renderer),
  64487. (this.typographer = s.typographer);
  64488. }
  64489. function Remarkable(s, o) {
  64490. 'string' != typeof s && ((o = s), (s = 'default')),
  64491. o &&
  64492. null != o.linkify &&
  64493. console.warn(
  64494. "linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"
  64495. ),
  64496. (this.inline = new ParserInline()),
  64497. (this.block = new ParserBlock()),
  64498. (this.core = new Core()),
  64499. (this.renderer = new Renderer()),
  64500. (this.ruler = new Ruler()),
  64501. (this.options = {}),
  64502. this.configure(qC[s]),
  64503. this.set(o || {});
  64504. }
  64505. (Remarkable.prototype.set = function (s) {
  64506. index_browser_assign(this.options, s);
  64507. }),
  64508. (Remarkable.prototype.configure = function (s) {
  64509. var o = this;
  64510. if (!s) throw new Error('Wrong `remarkable` preset, check name/content');
  64511. s.options && o.set(s.options),
  64512. s.components &&
  64513. Object.keys(s.components).forEach(function (i) {
  64514. s.components[i].rules && o[i].ruler.enable(s.components[i].rules, !0);
  64515. });
  64516. }),
  64517. (Remarkable.prototype.use = function (s, o) {
  64518. return s(this, o), this;
  64519. }),
  64520. (Remarkable.prototype.parse = function (s, o) {
  64521. var i = new StateCore(this, s, o);
  64522. return this.core.process(i), i.tokens;
  64523. }),
  64524. (Remarkable.prototype.render = function (s, o) {
  64525. return (o = o || {}), this.renderer.render(this.parse(s, o), this.options, o);
  64526. }),
  64527. (Remarkable.prototype.parseInline = function (s, o) {
  64528. var i = new StateCore(this, s, o);
  64529. return (i.inlineMode = !0), this.core.process(i), i.tokens;
  64530. }),
  64531. (Remarkable.prototype.renderInline = function (s, o) {
  64532. return (o = o || {}), this.renderer.render(this.parseInline(s, o), this.options, o);
  64533. });
  64534. function indexOf(s, o) {
  64535. if (Array.prototype.indexOf) return s.indexOf(o);
  64536. for (var i = 0, u = s.length; i < u; i++) if (s[i] === o) return i;
  64537. return -1;
  64538. }
  64539. function utils_remove(s, o) {
  64540. for (var i = s.length - 1; i >= 0; i--) !0 === o(s[i]) && s.splice(i, 1);
  64541. }
  64542. function throwUnhandledCaseError(s) {
  64543. throw new Error("Unhandled case for value: '".concat(s, "'"));
  64544. }
  64545. var $C = (function () {
  64546. function HtmlTag(s) {
  64547. void 0 === s && (s = {}),
  64548. (this.tagName = ''),
  64549. (this.attrs = {}),
  64550. (this.innerHTML = ''),
  64551. (this.whitespaceRegex = /\s+/),
  64552. (this.tagName = s.tagName || ''),
  64553. (this.attrs = s.attrs || {}),
  64554. (this.innerHTML = s.innerHtml || s.innerHTML || '');
  64555. }
  64556. return (
  64557. (HtmlTag.prototype.setTagName = function (s) {
  64558. return (this.tagName = s), this;
  64559. }),
  64560. (HtmlTag.prototype.getTagName = function () {
  64561. return this.tagName || '';
  64562. }),
  64563. (HtmlTag.prototype.setAttr = function (s, o) {
  64564. return (this.getAttrs()[s] = o), this;
  64565. }),
  64566. (HtmlTag.prototype.getAttr = function (s) {
  64567. return this.getAttrs()[s];
  64568. }),
  64569. (HtmlTag.prototype.setAttrs = function (s) {
  64570. return Object.assign(this.getAttrs(), s), this;
  64571. }),
  64572. (HtmlTag.prototype.getAttrs = function () {
  64573. return this.attrs || (this.attrs = {});
  64574. }),
  64575. (HtmlTag.prototype.setClass = function (s) {
  64576. return this.setAttr('class', s);
  64577. }),
  64578. (HtmlTag.prototype.addClass = function (s) {
  64579. for (
  64580. var o,
  64581. i = this.getClass(),
  64582. u = this.whitespaceRegex,
  64583. _ = i ? i.split(u) : [],
  64584. w = s.split(u);
  64585. (o = w.shift());
  64586. )
  64587. -1 === indexOf(_, o) && _.push(o);
  64588. return (this.getAttrs().class = _.join(' ')), this;
  64589. }),
  64590. (HtmlTag.prototype.removeClass = function (s) {
  64591. for (
  64592. var o,
  64593. i = this.getClass(),
  64594. u = this.whitespaceRegex,
  64595. _ = i ? i.split(u) : [],
  64596. w = s.split(u);
  64597. _.length && (o = w.shift());
  64598. ) {
  64599. var x = indexOf(_, o);
  64600. -1 !== x && _.splice(x, 1);
  64601. }
  64602. return (this.getAttrs().class = _.join(' ')), this;
  64603. }),
  64604. (HtmlTag.prototype.getClass = function () {
  64605. return this.getAttrs().class || '';
  64606. }),
  64607. (HtmlTag.prototype.hasClass = function (s) {
  64608. return -1 !== (' ' + this.getClass() + ' ').indexOf(' ' + s + ' ');
  64609. }),
  64610. (HtmlTag.prototype.setInnerHTML = function (s) {
  64611. return (this.innerHTML = s), this;
  64612. }),
  64613. (HtmlTag.prototype.setInnerHtml = function (s) {
  64614. return this.setInnerHTML(s);
  64615. }),
  64616. (HtmlTag.prototype.getInnerHTML = function () {
  64617. return this.innerHTML || '';
  64618. }),
  64619. (HtmlTag.prototype.getInnerHtml = function () {
  64620. return this.getInnerHTML();
  64621. }),
  64622. (HtmlTag.prototype.toAnchorString = function () {
  64623. var s = this.getTagName(),
  64624. o = this.buildAttrsStr();
  64625. return ['<', s, (o = o ? ' ' + o : ''), '>', this.getInnerHtml(), '</', s, '>'].join(
  64626. ''
  64627. );
  64628. }),
  64629. (HtmlTag.prototype.buildAttrsStr = function () {
  64630. if (!this.attrs) return '';
  64631. var s = this.getAttrs(),
  64632. o = [];
  64633. for (var i in s) s.hasOwnProperty(i) && o.push(i + '="' + s[i] + '"');
  64634. return o.join(' ');
  64635. }),
  64636. HtmlTag
  64637. );
  64638. })();
  64639. var VC = (function () {
  64640. function AnchorTagBuilder(s) {
  64641. void 0 === s && (s = {}),
  64642. (this.newWindow = !1),
  64643. (this.truncate = {}),
  64644. (this.className = ''),
  64645. (this.newWindow = s.newWindow || !1),
  64646. (this.truncate = s.truncate || {}),
  64647. (this.className = s.className || '');
  64648. }
  64649. return (
  64650. (AnchorTagBuilder.prototype.build = function (s) {
  64651. return new $C({
  64652. tagName: 'a',
  64653. attrs: this.createAttrs(s),
  64654. innerHtml: this.processAnchorText(s.getAnchorText())
  64655. });
  64656. }),
  64657. (AnchorTagBuilder.prototype.createAttrs = function (s) {
  64658. var o = { href: s.getAnchorHref() },
  64659. i = this.createCssClass(s);
  64660. return (
  64661. i && (o.class = i),
  64662. this.newWindow && ((o.target = '_blank'), (o.rel = 'noopener noreferrer')),
  64663. this.truncate &&
  64664. this.truncate.length &&
  64665. this.truncate.length < s.getAnchorText().length &&
  64666. (o.title = s.getAnchorHref()),
  64667. o
  64668. );
  64669. }),
  64670. (AnchorTagBuilder.prototype.createCssClass = function (s) {
  64671. var o = this.className;
  64672. if (o) {
  64673. for (var i = [o], u = s.getCssClassSuffixes(), _ = 0, w = u.length; _ < w; _++)
  64674. i.push(o + '-' + u[_]);
  64675. return i.join(' ');
  64676. }
  64677. return '';
  64678. }),
  64679. (AnchorTagBuilder.prototype.processAnchorText = function (s) {
  64680. return (s = this.doTruncate(s));
  64681. }),
  64682. (AnchorTagBuilder.prototype.doTruncate = function (s) {
  64683. var o = this.truncate;
  64684. if (!o || !o.length) return s;
  64685. var i = o.length,
  64686. u = o.location;
  64687. return 'smart' === u
  64688. ? (function truncateSmart(s, o, i) {
  64689. var u, _;
  64690. null == i
  64691. ? ((i = '&hellip;'), (_ = 3), (u = 8))
  64692. : ((_ = i.length), (u = i.length));
  64693. var buildUrl = function (s) {
  64694. var o = '';
  64695. return (
  64696. s.scheme && s.host && (o += s.scheme + '://'),
  64697. s.host && (o += s.host),
  64698. s.path && (o += '/' + s.path),
  64699. s.query && (o += '?' + s.query),
  64700. s.fragment && (o += '#' + s.fragment),
  64701. o
  64702. );
  64703. },
  64704. buildSegment = function (s, o) {
  64705. var u = o / 2,
  64706. _ = Math.ceil(u),
  64707. w = -1 * Math.floor(u),
  64708. x = '';
  64709. return w < 0 && (x = s.substr(w)), s.substr(0, _) + i + x;
  64710. };
  64711. if (s.length <= o) return s;
  64712. var w = o - _,
  64713. x = (function (s) {
  64714. var o = {},
  64715. i = s,
  64716. u = i.match(/^([a-z]+):\/\//i);
  64717. return (
  64718. u && ((o.scheme = u[1]), (i = i.substr(u[0].length))),
  64719. (u = i.match(/^(.*?)(?=(\?|#|\/|$))/i)) &&
  64720. ((o.host = u[1]), (i = i.substr(u[0].length))),
  64721. (u = i.match(/^\/(.*?)(?=(\?|#|$))/i)) &&
  64722. ((o.path = u[1]), (i = i.substr(u[0].length))),
  64723. (u = i.match(/^\?(.*?)(?=(#|$))/i)) &&
  64724. ((o.query = u[1]), (i = i.substr(u[0].length))),
  64725. (u = i.match(/^#(.*?)$/i)) && (o.fragment = u[1]),
  64726. o
  64727. );
  64728. })(s);
  64729. if (x.query) {
  64730. var C = x.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);
  64731. C && ((x.query = x.query.substr(0, C[1].length)), (s = buildUrl(x)));
  64732. }
  64733. if (s.length <= o) return s;
  64734. if (
  64735. (x.host && ((x.host = x.host.replace(/^www\./, '')), (s = buildUrl(x))),
  64736. s.length <= o)
  64737. )
  64738. return s;
  64739. var j = '';
  64740. if ((x.host && (j += x.host), j.length >= w))
  64741. return x.host.length == o
  64742. ? (x.host.substr(0, o - _) + i).substr(0, w + u)
  64743. : buildSegment(j, w).substr(0, w + u);
  64744. var L = '';
  64745. if ((x.path && (L += '/' + x.path), x.query && (L += '?' + x.query), L)) {
  64746. if ((j + L).length >= w)
  64747. return (j + L).length == o
  64748. ? (j + L).substr(0, o)
  64749. : (j + buildSegment(L, w - j.length)).substr(0, w + u);
  64750. j += L;
  64751. }
  64752. if (x.fragment) {
  64753. var B = '#' + x.fragment;
  64754. if ((j + B).length >= w)
  64755. return (j + B).length == o
  64756. ? (j + B).substr(0, o)
  64757. : (j + buildSegment(B, w - j.length)).substr(0, w + u);
  64758. j += B;
  64759. }
  64760. if (x.scheme && x.host) {
  64761. var $ = x.scheme + '://';
  64762. if ((j + $).length < w) return ($ + j).substr(0, o);
  64763. }
  64764. if (j.length <= o) return j;
  64765. var V = '';
  64766. return (
  64767. w > 0 && (V = j.substr(-1 * Math.floor(w / 2))),
  64768. (j.substr(0, Math.ceil(w / 2)) + i + V).substr(0, w + u)
  64769. );
  64770. })(s, i)
  64771. : 'middle' === u
  64772. ? (function truncateMiddle(s, o, i) {
  64773. if (s.length <= o) return s;
  64774. var u, _;
  64775. null == i
  64776. ? ((i = '&hellip;'), (u = 8), (_ = 3))
  64777. : ((u = i.length), (_ = i.length));
  64778. var w = o - _,
  64779. x = '';
  64780. return (
  64781. w > 0 && (x = s.substr(-1 * Math.floor(w / 2))),
  64782. (s.substr(0, Math.ceil(w / 2)) + i + x).substr(0, w + u)
  64783. );
  64784. })(s, i)
  64785. : (function truncateEnd(s, o, i) {
  64786. return (function ellipsis(s, o, i) {
  64787. var u;
  64788. return (
  64789. s.length > o &&
  64790. (null == i ? ((i = '&hellip;'), (u = 3)) : (u = i.length),
  64791. (s = s.substring(0, o - u) + i)),
  64792. s
  64793. );
  64794. })(s, o, i);
  64795. })(s, i);
  64796. }),
  64797. AnchorTagBuilder
  64798. );
  64799. })(),
  64800. UC = (function () {
  64801. function Match(s) {
  64802. (this.__jsduckDummyDocProp = null),
  64803. (this.matchedText = ''),
  64804. (this.offset = 0),
  64805. (this.tagBuilder = s.tagBuilder),
  64806. (this.matchedText = s.matchedText),
  64807. (this.offset = s.offset);
  64808. }
  64809. return (
  64810. (Match.prototype.getMatchedText = function () {
  64811. return this.matchedText;
  64812. }),
  64813. (Match.prototype.setOffset = function (s) {
  64814. this.offset = s;
  64815. }),
  64816. (Match.prototype.getOffset = function () {
  64817. return this.offset;
  64818. }),
  64819. (Match.prototype.getCssClassSuffixes = function () {
  64820. return [this.getType()];
  64821. }),
  64822. (Match.prototype.buildTag = function () {
  64823. return this.tagBuilder.build(this);
  64824. }),
  64825. Match
  64826. );
  64827. })(),
  64828. extendStatics = function (s, o) {
  64829. return (
  64830. (extendStatics =
  64831. Object.setPrototypeOf ||
  64832. ({ __proto__: [] } instanceof Array &&
  64833. function (s, o) {
  64834. s.__proto__ = o;
  64835. }) ||
  64836. function (s, o) {
  64837. for (var i in o) Object.prototype.hasOwnProperty.call(o, i) && (s[i] = o[i]);
  64838. }),
  64839. extendStatics(s, o)
  64840. );
  64841. };
  64842. function tslib_es6_extends(s, o) {
  64843. if ('function' != typeof o && null !== o)
  64844. throw new TypeError(
  64845. 'Class extends value ' + String(o) + ' is not a constructor or null'
  64846. );
  64847. function __() {
  64848. this.constructor = s;
  64849. }
  64850. extendStatics(s, o),
  64851. (s.prototype =
  64852. null === o ? Object.create(o) : ((__.prototype = o.prototype), new __()));
  64853. }
  64854. var __assign = function () {
  64855. return (
  64856. (__assign =
  64857. Object.assign ||
  64858. function __assign(s) {
  64859. for (var o, i = 1, u = arguments.length; i < u; i++)
  64860. for (var _ in (o = arguments[i]))
  64861. Object.prototype.hasOwnProperty.call(o, _) && (s[_] = o[_]);
  64862. return s;
  64863. }),
  64864. __assign.apply(this, arguments)
  64865. );
  64866. };
  64867. Object.create;
  64868. Object.create;
  64869. 'function' == typeof SuppressedError && SuppressedError;
  64870. var zC,
  64871. WC = (function (s) {
  64872. function EmailMatch(o) {
  64873. var i = s.call(this, o) || this;
  64874. return (i.email = ''), (i.email = o.email), i;
  64875. }
  64876. return (
  64877. tslib_es6_extends(EmailMatch, s),
  64878. (EmailMatch.prototype.getType = function () {
  64879. return 'email';
  64880. }),
  64881. (EmailMatch.prototype.getEmail = function () {
  64882. return this.email;
  64883. }),
  64884. (EmailMatch.prototype.getAnchorHref = function () {
  64885. return 'mailto:' + this.email;
  64886. }),
  64887. (EmailMatch.prototype.getAnchorText = function () {
  64888. return this.email;
  64889. }),
  64890. EmailMatch
  64891. );
  64892. })(UC),
  64893. KC = (function (s) {
  64894. function HashtagMatch(o) {
  64895. var i = s.call(this, o) || this;
  64896. return (
  64897. (i.serviceName = ''),
  64898. (i.hashtag = ''),
  64899. (i.serviceName = o.serviceName),
  64900. (i.hashtag = o.hashtag),
  64901. i
  64902. );
  64903. }
  64904. return (
  64905. tslib_es6_extends(HashtagMatch, s),
  64906. (HashtagMatch.prototype.getType = function () {
  64907. return 'hashtag';
  64908. }),
  64909. (HashtagMatch.prototype.getServiceName = function () {
  64910. return this.serviceName;
  64911. }),
  64912. (HashtagMatch.prototype.getHashtag = function () {
  64913. return this.hashtag;
  64914. }),
  64915. (HashtagMatch.prototype.getAnchorHref = function () {
  64916. var s = this.serviceName,
  64917. o = this.hashtag;
  64918. switch (s) {
  64919. case 'twitter':
  64920. return 'https://twitter.com/hashtag/' + o;
  64921. case 'facebook':
  64922. return 'https://www.facebook.com/hashtag/' + o;
  64923. case 'instagram':
  64924. return 'https://instagram.com/explore/tags/' + o;
  64925. case 'tiktok':
  64926. return 'https://www.tiktok.com/tag/' + o;
  64927. default:
  64928. throw new Error('Unknown service name to point hashtag to: ' + s);
  64929. }
  64930. }),
  64931. (HashtagMatch.prototype.getAnchorText = function () {
  64932. return '#' + this.hashtag;
  64933. }),
  64934. HashtagMatch
  64935. );
  64936. })(UC),
  64937. HC = (function (s) {
  64938. function MentionMatch(o) {
  64939. var i = s.call(this, o) || this;
  64940. return (
  64941. (i.serviceName = 'twitter'),
  64942. (i.mention = ''),
  64943. (i.mention = o.mention),
  64944. (i.serviceName = o.serviceName),
  64945. i
  64946. );
  64947. }
  64948. return (
  64949. tslib_es6_extends(MentionMatch, s),
  64950. (MentionMatch.prototype.getType = function () {
  64951. return 'mention';
  64952. }),
  64953. (MentionMatch.prototype.getMention = function () {
  64954. return this.mention;
  64955. }),
  64956. (MentionMatch.prototype.getServiceName = function () {
  64957. return this.serviceName;
  64958. }),
  64959. (MentionMatch.prototype.getAnchorHref = function () {
  64960. switch (this.serviceName) {
  64961. case 'twitter':
  64962. return 'https://twitter.com/' + this.mention;
  64963. case 'instagram':
  64964. return 'https://instagram.com/' + this.mention;
  64965. case 'soundcloud':
  64966. return 'https://soundcloud.com/' + this.mention;
  64967. case 'tiktok':
  64968. return 'https://www.tiktok.com/@' + this.mention;
  64969. default:
  64970. throw new Error(
  64971. 'Unknown service name to point mention to: ' + this.serviceName
  64972. );
  64973. }
  64974. }),
  64975. (MentionMatch.prototype.getAnchorText = function () {
  64976. return '@' + this.mention;
  64977. }),
  64978. (MentionMatch.prototype.getCssClassSuffixes = function () {
  64979. var o = s.prototype.getCssClassSuffixes.call(this),
  64980. i = this.getServiceName();
  64981. return i && o.push(i), o;
  64982. }),
  64983. MentionMatch
  64984. );
  64985. })(UC),
  64986. JC = (function (s) {
  64987. function PhoneMatch(o) {
  64988. var i = s.call(this, o) || this;
  64989. return (
  64990. (i.number = ''),
  64991. (i.plusSign = !1),
  64992. (i.number = o.number),
  64993. (i.plusSign = o.plusSign),
  64994. i
  64995. );
  64996. }
  64997. return (
  64998. tslib_es6_extends(PhoneMatch, s),
  64999. (PhoneMatch.prototype.getType = function () {
  65000. return 'phone';
  65001. }),
  65002. (PhoneMatch.prototype.getPhoneNumber = function () {
  65003. return this.number;
  65004. }),
  65005. (PhoneMatch.prototype.getNumber = function () {
  65006. return this.getPhoneNumber();
  65007. }),
  65008. (PhoneMatch.prototype.getAnchorHref = function () {
  65009. return 'tel:' + (this.plusSign ? '+' : '') + this.number;
  65010. }),
  65011. (PhoneMatch.prototype.getAnchorText = function () {
  65012. return this.matchedText;
  65013. }),
  65014. PhoneMatch
  65015. );
  65016. })(UC),
  65017. GC = (function (s) {
  65018. function UrlMatch(o) {
  65019. var i = s.call(this, o) || this;
  65020. return (
  65021. (i.url = ''),
  65022. (i.urlMatchType = 'scheme'),
  65023. (i.protocolUrlMatch = !1),
  65024. (i.protocolRelativeMatch = !1),
  65025. (i.stripPrefix = { scheme: !0, www: !0 }),
  65026. (i.stripTrailingSlash = !0),
  65027. (i.decodePercentEncoding = !0),
  65028. (i.schemePrefixRegex = /^(https?:\/\/)?/i),
  65029. (i.wwwPrefixRegex = /^(https?:\/\/)?(www\.)?/i),
  65030. (i.protocolRelativeRegex = /^\/\//),
  65031. (i.protocolPrepended = !1),
  65032. (i.urlMatchType = o.urlMatchType),
  65033. (i.url = o.url),
  65034. (i.protocolUrlMatch = o.protocolUrlMatch),
  65035. (i.protocolRelativeMatch = o.protocolRelativeMatch),
  65036. (i.stripPrefix = o.stripPrefix),
  65037. (i.stripTrailingSlash = o.stripTrailingSlash),
  65038. (i.decodePercentEncoding = o.decodePercentEncoding),
  65039. i
  65040. );
  65041. }
  65042. return (
  65043. tslib_es6_extends(UrlMatch, s),
  65044. (UrlMatch.prototype.getType = function () {
  65045. return 'url';
  65046. }),
  65047. (UrlMatch.prototype.getUrlMatchType = function () {
  65048. return this.urlMatchType;
  65049. }),
  65050. (UrlMatch.prototype.getUrl = function () {
  65051. var s = this.url;
  65052. return (
  65053. this.protocolRelativeMatch ||
  65054. this.protocolUrlMatch ||
  65055. this.protocolPrepended ||
  65056. ((s = this.url = 'http://' + s), (this.protocolPrepended = !0)),
  65057. s
  65058. );
  65059. }),
  65060. (UrlMatch.prototype.getAnchorHref = function () {
  65061. return this.getUrl().replace(/&amp;/g, '&');
  65062. }),
  65063. (UrlMatch.prototype.getAnchorText = function () {
  65064. var s = this.getMatchedText();
  65065. return (
  65066. this.protocolRelativeMatch && (s = this.stripProtocolRelativePrefix(s)),
  65067. this.stripPrefix.scheme && (s = this.stripSchemePrefix(s)),
  65068. this.stripPrefix.www && (s = this.stripWwwPrefix(s)),
  65069. this.stripTrailingSlash && (s = this.removeTrailingSlash(s)),
  65070. this.decodePercentEncoding && (s = this.removePercentEncoding(s)),
  65071. s
  65072. );
  65073. }),
  65074. (UrlMatch.prototype.stripSchemePrefix = function (s) {
  65075. return s.replace(this.schemePrefixRegex, '');
  65076. }),
  65077. (UrlMatch.prototype.stripWwwPrefix = function (s) {
  65078. return s.replace(this.wwwPrefixRegex, '$1');
  65079. }),
  65080. (UrlMatch.prototype.stripProtocolRelativePrefix = function (s) {
  65081. return s.replace(this.protocolRelativeRegex, '');
  65082. }),
  65083. (UrlMatch.prototype.removeTrailingSlash = function (s) {
  65084. return '/' === s.charAt(s.length - 1) && (s = s.slice(0, -1)), s;
  65085. }),
  65086. (UrlMatch.prototype.removePercentEncoding = function (s) {
  65087. var o = s
  65088. .replace(/%22/gi, '&quot;')
  65089. .replace(/%26/gi, '&amp;')
  65090. .replace(/%27/gi, '&#39;')
  65091. .replace(/%3C/gi, '&lt;')
  65092. .replace(/%3E/gi, '&gt;');
  65093. try {
  65094. return decodeURIComponent(o);
  65095. } catch (s) {
  65096. return o;
  65097. }
  65098. }),
  65099. UrlMatch
  65100. );
  65101. })(UC),
  65102. YC = function YC(s) {
  65103. (this.__jsduckDummyDocProp = null), (this.tagBuilder = s.tagBuilder);
  65104. },
  65105. XC = /[A-Za-z]/,
  65106. ZC = /[\d]/,
  65107. QC = /[\D]/,
  65108. eO = /\s/,
  65109. tO = /['"]/,
  65110. rO = /[\x00-\x1F\x7F]/,
  65111. nO =
  65112. /A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/
  65113. .source,
  65114. sO =
  65115. nO +
  65116. /\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/
  65117. .source +
  65118. /\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\u08D4-\u08E1\u08E3-\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\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\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\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\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-\uFE2F/
  65119. .source,
  65120. oO =
  65121. /0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/
  65122. .source,
  65123. iO = sO + oO,
  65124. aO = sO + oO,
  65125. lO = new RegExp('['.concat(aO, ']')),
  65126. cO = '(?:[' + oO + ']{1,3}\\.){3}[' + oO + ']{1,3}',
  65127. uO = '[' + aO + '](?:[' + aO + '\\-_]{0,61}[' + aO + '])?',
  65128. getDomainLabelStr = function (s) {
  65129. return '(?=(' + uO + '))\\' + s;
  65130. },
  65131. getDomainNameStr = function (s) {
  65132. return (
  65133. '(?:' +
  65134. getDomainLabelStr(s) +
  65135. '(?:\\.' +
  65136. getDomainLabelStr(s + 1) +
  65137. '){0,126}|' +
  65138. cO +
  65139. ')'
  65140. );
  65141. },
  65142. pO = (new RegExp('[' + aO + '.\\-]*[' + aO + '\\-]'), lO),
  65143. hO =
  65144. /(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,
  65145. dO = new RegExp('['.concat(aO, "!#$%&'*+/=?^_`{|}~-]")),
  65146. fO = new RegExp('^'.concat(hO.source, '$')),
  65147. mO = (function (s) {
  65148. function EmailMatcher() {
  65149. var o = (null !== s && s.apply(this, arguments)) || this;
  65150. return (o.localPartCharRegex = dO), (o.strictTldRegex = fO), o;
  65151. }
  65152. return (
  65153. tslib_es6_extends(EmailMatcher, s),
  65154. (EmailMatcher.prototype.parseMatches = function (s) {
  65155. for (
  65156. var o = this.tagBuilder,
  65157. i = this.localPartCharRegex,
  65158. u = this.strictTldRegex,
  65159. _ = [],
  65160. w = s.length,
  65161. x = new gO(),
  65162. C = { m: 'a', a: 'i', i: 'l', l: 't', t: 'o', o: ':' },
  65163. j = 0,
  65164. L = 0,
  65165. B = x;
  65166. j < w;
  65167. ) {
  65168. var $ = s.charAt(j);
  65169. switch (L) {
  65170. case 0:
  65171. stateNonEmailAddress($);
  65172. break;
  65173. case 1:
  65174. stateMailTo(s.charAt(j - 1), $);
  65175. break;
  65176. case 2:
  65177. stateLocalPart($);
  65178. break;
  65179. case 3:
  65180. stateLocalPartDot($);
  65181. break;
  65182. case 4:
  65183. stateAtSign($);
  65184. break;
  65185. case 5:
  65186. stateDomainChar($);
  65187. break;
  65188. case 6:
  65189. stateDomainHyphen($);
  65190. break;
  65191. case 7:
  65192. stateDomainDot($);
  65193. break;
  65194. default:
  65195. throwUnhandledCaseError(L);
  65196. }
  65197. j++;
  65198. }
  65199. return captureMatchIfValidAndReset(), _;
  65200. function stateNonEmailAddress(s) {
  65201. 'm' === s ? beginEmailMatch(1) : i.test(s) && beginEmailMatch();
  65202. }
  65203. function stateMailTo(s, o) {
  65204. ':' === s
  65205. ? i.test(o)
  65206. ? ((L = 2), (B = new gO(__assign(__assign({}, B), { hasMailtoPrefix: !0 }))))
  65207. : resetToNonEmailMatchState()
  65208. : C[s] === o ||
  65209. (i.test(o)
  65210. ? (L = 2)
  65211. : '.' === o
  65212. ? (L = 3)
  65213. : '@' === o
  65214. ? (L = 4)
  65215. : resetToNonEmailMatchState());
  65216. }
  65217. function stateLocalPart(s) {
  65218. '.' === s
  65219. ? (L = 3)
  65220. : '@' === s
  65221. ? (L = 4)
  65222. : i.test(s) || resetToNonEmailMatchState();
  65223. }
  65224. function stateLocalPartDot(s) {
  65225. '.' === s || '@' === s
  65226. ? resetToNonEmailMatchState()
  65227. : i.test(s)
  65228. ? (L = 2)
  65229. : resetToNonEmailMatchState();
  65230. }
  65231. function stateAtSign(s) {
  65232. pO.test(s) ? (L = 5) : resetToNonEmailMatchState();
  65233. }
  65234. function stateDomainChar(s) {
  65235. '.' === s
  65236. ? (L = 7)
  65237. : '-' === s
  65238. ? (L = 6)
  65239. : pO.test(s) || captureMatchIfValidAndReset();
  65240. }
  65241. function stateDomainHyphen(s) {
  65242. '-' === s || '.' === s
  65243. ? captureMatchIfValidAndReset()
  65244. : pO.test(s)
  65245. ? (L = 5)
  65246. : captureMatchIfValidAndReset();
  65247. }
  65248. function stateDomainDot(s) {
  65249. '.' === s || '-' === s
  65250. ? captureMatchIfValidAndReset()
  65251. : pO.test(s)
  65252. ? ((L = 5), (B = new gO(__assign(__assign({}, B), { hasDomainDot: !0 }))))
  65253. : captureMatchIfValidAndReset();
  65254. }
  65255. function beginEmailMatch(s) {
  65256. void 0 === s && (s = 2), (L = s), (B = new gO({ idx: j }));
  65257. }
  65258. function resetToNonEmailMatchState() {
  65259. (L = 0), (B = x);
  65260. }
  65261. function captureMatchIfValidAndReset() {
  65262. if (B.hasDomainDot) {
  65263. var i = s.slice(B.idx, j);
  65264. /[-.]$/.test(i) && (i = i.slice(0, -1));
  65265. var w = B.hasMailtoPrefix ? i.slice(7) : i;
  65266. (function doesEmailHaveValidTld(s) {
  65267. var o = s.split('.').pop() || '',
  65268. i = o.toLowerCase();
  65269. return u.test(i);
  65270. })(w) &&
  65271. _.push(new WC({ tagBuilder: o, matchedText: i, offset: B.idx, email: w }));
  65272. }
  65273. resetToNonEmailMatchState();
  65274. }
  65275. }),
  65276. EmailMatcher
  65277. );
  65278. })(YC),
  65279. gO = function gO(s) {
  65280. void 0 === s && (s = {}),
  65281. (this.idx = void 0 !== s.idx ? s.idx : -1),
  65282. (this.hasMailtoPrefix = !!s.hasMailtoPrefix),
  65283. (this.hasDomainDot = !!s.hasDomainDot);
  65284. },
  65285. yO = (function () {
  65286. function UrlMatchValidator() {}
  65287. return (
  65288. (UrlMatchValidator.isValid = function (s, o) {
  65289. return !(
  65290. (o && !this.isValidUriScheme(o)) ||
  65291. this.urlMatchDoesNotHaveProtocolOrDot(s, o) ||
  65292. (this.urlMatchDoesNotHaveAtLeastOneWordChar(s, o) && !this.isValidIpAddress(s)) ||
  65293. this.containsMultipleDots(s)
  65294. );
  65295. }),
  65296. (UrlMatchValidator.isValidIpAddress = function (s) {
  65297. var o = new RegExp(this.hasFullProtocolRegex.source + this.ipRegex.source);
  65298. return null !== s.match(o);
  65299. }),
  65300. (UrlMatchValidator.containsMultipleDots = function (s) {
  65301. var o = s;
  65302. return (
  65303. this.hasFullProtocolRegex.test(s) && (o = s.split('://')[1]),
  65304. o.split('/')[0].indexOf('..') > -1
  65305. );
  65306. }),
  65307. (UrlMatchValidator.isValidUriScheme = function (s) {
  65308. var o = s.match(this.uriSchemeRegex),
  65309. i = o && o[0].toLowerCase();
  65310. return 'javascript:' !== i && 'vbscript:' !== i;
  65311. }),
  65312. (UrlMatchValidator.urlMatchDoesNotHaveProtocolOrDot = function (s, o) {
  65313. return !(!s || (o && this.hasFullProtocolRegex.test(o)) || -1 !== s.indexOf('.'));
  65314. }),
  65315. (UrlMatchValidator.urlMatchDoesNotHaveAtLeastOneWordChar = function (s, o) {
  65316. return (
  65317. !(!s || !o) &&
  65318. !this.hasFullProtocolRegex.test(o) &&
  65319. !this.hasWordCharAfterProtocolRegex.test(s)
  65320. );
  65321. }),
  65322. (UrlMatchValidator.hasFullProtocolRegex = /^[A-Za-z][-.+A-Za-z0-9]*:\/\//),
  65323. (UrlMatchValidator.uriSchemeRegex = /^[A-Za-z][-.+A-Za-z0-9]*:/),
  65324. (UrlMatchValidator.hasWordCharAfterProtocolRegex = new RegExp(
  65325. ':[^\\s]*?[' + nO + ']'
  65326. )),
  65327. (UrlMatchValidator.ipRegex =
  65328. /[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/),
  65329. UrlMatchValidator
  65330. );
  65331. })(),
  65332. vO =
  65333. ((zC = new RegExp(
  65334. '[/?#](?:[' +
  65335. aO +
  65336. "\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*[" +
  65337. aO +
  65338. "\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"
  65339. )),
  65340. new RegExp(
  65341. [
  65342. '(?:',
  65343. '(',
  65344. /(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/
  65345. .source,
  65346. getDomainNameStr(2),
  65347. ')',
  65348. '|',
  65349. '(',
  65350. '(//)?',
  65351. /(?:www\.)/.source,
  65352. getDomainNameStr(6),
  65353. ')',
  65354. '|',
  65355. '(',
  65356. '(//)?',
  65357. getDomainNameStr(10) + '\\.',
  65358. hO.source,
  65359. '(?![-' + iO + '])',
  65360. ')',
  65361. ')',
  65362. '(?::[0-9]+)?',
  65363. '(?:' + zC.source + ')?'
  65364. ].join(''),
  65365. 'gi'
  65366. )),
  65367. bO = new RegExp('[' + aO + ']'),
  65368. _O = (function (s) {
  65369. function UrlMatcher(o) {
  65370. var i = s.call(this, o) || this;
  65371. return (
  65372. (i.stripPrefix = { scheme: !0, www: !0 }),
  65373. (i.stripTrailingSlash = !0),
  65374. (i.decodePercentEncoding = !0),
  65375. (i.matcherRegex = vO),
  65376. (i.wordCharRegExp = bO),
  65377. (i.stripPrefix = o.stripPrefix),
  65378. (i.stripTrailingSlash = o.stripTrailingSlash),
  65379. (i.decodePercentEncoding = o.decodePercentEncoding),
  65380. i
  65381. );
  65382. }
  65383. return (
  65384. tslib_es6_extends(UrlMatcher, s),
  65385. (UrlMatcher.prototype.parseMatches = function (s) {
  65386. for (
  65387. var o,
  65388. i = this.matcherRegex,
  65389. u = this.stripPrefix,
  65390. _ = this.stripTrailingSlash,
  65391. w = this.decodePercentEncoding,
  65392. x = this.tagBuilder,
  65393. C = [],
  65394. _loop_1 = function () {
  65395. var i = o[0],
  65396. L = o[1],
  65397. B = o[4],
  65398. $ = o[5],
  65399. V = o[9],
  65400. U = o.index,
  65401. z = $ || V,
  65402. Y = s.charAt(U - 1);
  65403. if (!yO.isValid(i, L)) return 'continue';
  65404. if (U > 0 && '@' === Y) return 'continue';
  65405. if (U > 0 && z && j.wordCharRegExp.test(Y)) return 'continue';
  65406. if (
  65407. (/\?$/.test(i) && (i = i.substr(0, i.length - 1)),
  65408. j.matchHasUnbalancedClosingParen(i))
  65409. )
  65410. i = i.substr(0, i.length - 1);
  65411. else {
  65412. var Z = j.matchHasInvalidCharAfterTld(i, L);
  65413. Z > -1 && (i = i.substr(0, Z));
  65414. }
  65415. var ee = ['http://', 'https://'].find(function (s) {
  65416. return !!L && -1 !== L.indexOf(s);
  65417. });
  65418. if (ee) {
  65419. var ie = i.indexOf(ee);
  65420. (i = i.substr(ie)), (L = L.substr(ie)), (U += ie);
  65421. }
  65422. var ae = L ? 'scheme' : B ? 'www' : 'tld',
  65423. le = !!L;
  65424. C.push(
  65425. new GC({
  65426. tagBuilder: x,
  65427. matchedText: i,
  65428. offset: U,
  65429. urlMatchType: ae,
  65430. url: i,
  65431. protocolUrlMatch: le,
  65432. protocolRelativeMatch: !!z,
  65433. stripPrefix: u,
  65434. stripTrailingSlash: _,
  65435. decodePercentEncoding: w
  65436. })
  65437. );
  65438. },
  65439. j = this;
  65440. null !== (o = i.exec(s));
  65441. )
  65442. _loop_1();
  65443. return C;
  65444. }),
  65445. (UrlMatcher.prototype.matchHasUnbalancedClosingParen = function (s) {
  65446. var o,
  65447. i = s.charAt(s.length - 1);
  65448. if (')' === i) o = '(';
  65449. else if (']' === i) o = '[';
  65450. else {
  65451. if ('}' !== i) return !1;
  65452. o = '{';
  65453. }
  65454. for (var u = 0, _ = 0, w = s.length - 1; _ < w; _++) {
  65455. var x = s.charAt(_);
  65456. x === o ? u++ : x === i && (u = Math.max(u - 1, 0));
  65457. }
  65458. return 0 === u;
  65459. }),
  65460. (UrlMatcher.prototype.matchHasInvalidCharAfterTld = function (s, o) {
  65461. if (!s) return -1;
  65462. var i = 0;
  65463. o && ((i = s.indexOf(':')), (s = s.slice(i)));
  65464. var u = new RegExp('^((.?//)?[-.' + aO + ']*[-' + aO + ']\\.[-' + aO + ']+)').exec(
  65465. s
  65466. );
  65467. return null === u
  65468. ? -1
  65469. : ((i += u[1].length),
  65470. (s = s.slice(u[1].length)),
  65471. /^[^-.A-Za-z0-9:\/?#]/.test(s) ? i : -1);
  65472. }),
  65473. UrlMatcher
  65474. );
  65475. })(YC),
  65476. EO = new RegExp('[_'.concat(aO, ']')),
  65477. wO = (function (s) {
  65478. function HashtagMatcher(o) {
  65479. var i = s.call(this, o) || this;
  65480. return (i.serviceName = 'twitter'), (i.serviceName = o.serviceName), i;
  65481. }
  65482. return (
  65483. tslib_es6_extends(HashtagMatcher, s),
  65484. (HashtagMatcher.prototype.parseMatches = function (s) {
  65485. for (
  65486. var o = this.tagBuilder,
  65487. i = this.serviceName,
  65488. u = [],
  65489. _ = s.length,
  65490. w = 0,
  65491. x = -1,
  65492. C = 0;
  65493. w < _;
  65494. ) {
  65495. var j = s.charAt(w);
  65496. switch (C) {
  65497. case 0:
  65498. stateNone(j);
  65499. break;
  65500. case 1:
  65501. stateNonHashtagWordChar(j);
  65502. break;
  65503. case 2:
  65504. stateHashtagHashChar(j);
  65505. break;
  65506. case 3:
  65507. stateHashtagTextChar(j);
  65508. break;
  65509. default:
  65510. throwUnhandledCaseError(C);
  65511. }
  65512. w++;
  65513. }
  65514. return captureMatchIfValid(), u;
  65515. function stateNone(s) {
  65516. '#' === s ? ((C = 2), (x = w)) : lO.test(s) && (C = 1);
  65517. }
  65518. function stateNonHashtagWordChar(s) {
  65519. lO.test(s) || (C = 0);
  65520. }
  65521. function stateHashtagHashChar(s) {
  65522. C = EO.test(s) ? 3 : lO.test(s) ? 1 : 0;
  65523. }
  65524. function stateHashtagTextChar(s) {
  65525. EO.test(s) || (captureMatchIfValid(), (x = -1), (C = lO.test(s) ? 1 : 0));
  65526. }
  65527. function captureMatchIfValid() {
  65528. if (x > -1 && w - x <= 140) {
  65529. var _ = s.slice(x, w),
  65530. C = new KC({
  65531. tagBuilder: o,
  65532. matchedText: _,
  65533. offset: x,
  65534. serviceName: i,
  65535. hashtag: _.slice(1)
  65536. });
  65537. u.push(C);
  65538. }
  65539. }
  65540. }),
  65541. HashtagMatcher
  65542. );
  65543. })(YC),
  65544. SO = ['twitter', 'facebook', 'instagram', 'tiktok'],
  65545. xO = new RegExp(
  65546. ''
  65547. .concat(
  65548. /(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/
  65549. .source,
  65550. '|'
  65551. )
  65552. .concat(
  65553. /(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/
  65554. .source
  65555. ),
  65556. 'g'
  65557. ),
  65558. kO = (function (s) {
  65559. function PhoneMatcher() {
  65560. var o = (null !== s && s.apply(this, arguments)) || this;
  65561. return (o.matcherRegex = xO), o;
  65562. }
  65563. return (
  65564. tslib_es6_extends(PhoneMatcher, s),
  65565. (PhoneMatcher.prototype.parseMatches = function (s) {
  65566. for (
  65567. var o, i = this.matcherRegex, u = this.tagBuilder, _ = [];
  65568. null !== (o = i.exec(s));
  65569. ) {
  65570. var w = o[0],
  65571. x = w.replace(/[^0-9,;#]/g, ''),
  65572. C = !(!o[1] && !o[2]),
  65573. j = 0 == o.index ? '' : s.substr(o.index - 1, 1),
  65574. L = s.substr(o.index + w.length, 1),
  65575. B = !j.match(/\d/) && !L.match(/\d/);
  65576. this.testMatch(o[3]) &&
  65577. this.testMatch(w) &&
  65578. B &&
  65579. _.push(
  65580. new JC({
  65581. tagBuilder: u,
  65582. matchedText: w,
  65583. offset: o.index,
  65584. number: x,
  65585. plusSign: C
  65586. })
  65587. );
  65588. }
  65589. return _;
  65590. }),
  65591. (PhoneMatcher.prototype.testMatch = function (s) {
  65592. return QC.test(s);
  65593. }),
  65594. PhoneMatcher
  65595. );
  65596. })(YC),
  65597. CO = new RegExp('@[_'.concat(aO, ']{1,50}(?![_').concat(aO, '])'), 'g'),
  65598. OO = new RegExp('@[_.'.concat(aO, ']{1,30}(?![_').concat(aO, '])'), 'g'),
  65599. AO = new RegExp('@[-_.'.concat(aO, ']{1,50}(?![-_').concat(aO, '])'), 'g'),
  65600. jO = new RegExp(
  65601. '@[_.'.concat(aO, ']{1,23}[_').concat(aO, '](?![_').concat(aO, '])'),
  65602. 'g'
  65603. ),
  65604. IO = new RegExp('[^' + aO + ']'),
  65605. PO = (function (s) {
  65606. function MentionMatcher(o) {
  65607. var i = s.call(this, o) || this;
  65608. return (
  65609. (i.serviceName = 'twitter'),
  65610. (i.matcherRegexes = { twitter: CO, instagram: OO, soundcloud: AO, tiktok: jO }),
  65611. (i.nonWordCharRegex = IO),
  65612. (i.serviceName = o.serviceName),
  65613. i
  65614. );
  65615. }
  65616. return (
  65617. tslib_es6_extends(MentionMatcher, s),
  65618. (MentionMatcher.prototype.parseMatches = function (s) {
  65619. var o,
  65620. i = this.serviceName,
  65621. u = this.matcherRegexes[this.serviceName],
  65622. _ = this.nonWordCharRegex,
  65623. w = this.tagBuilder,
  65624. x = [];
  65625. if (!u) return x;
  65626. for (; null !== (o = u.exec(s)); ) {
  65627. var C = o.index,
  65628. j = s.charAt(C - 1);
  65629. if (0 === C || _.test(j)) {
  65630. var L = o[0].replace(/\.+$/g, ''),
  65631. B = L.slice(1);
  65632. x.push(
  65633. new HC({
  65634. tagBuilder: w,
  65635. matchedText: L,
  65636. offset: C,
  65637. serviceName: i,
  65638. mention: B
  65639. })
  65640. );
  65641. }
  65642. }
  65643. return x;
  65644. }),
  65645. MentionMatcher
  65646. );
  65647. })(YC);
  65648. function parseHtml(s, o) {
  65649. for (
  65650. var i = o.onOpenTag,
  65651. u = o.onCloseTag,
  65652. _ = o.onText,
  65653. w = o.onComment,
  65654. x = o.onDoctype,
  65655. C = new MO(),
  65656. j = 0,
  65657. L = s.length,
  65658. B = 0,
  65659. $ = 0,
  65660. V = C;
  65661. j < L;
  65662. ) {
  65663. var U = s.charAt(j);
  65664. switch (B) {
  65665. case 0:
  65666. stateData(U);
  65667. break;
  65668. case 1:
  65669. stateTagOpen(U);
  65670. break;
  65671. case 2:
  65672. stateEndTagOpen(U);
  65673. break;
  65674. case 3:
  65675. stateTagName(U);
  65676. break;
  65677. case 4:
  65678. stateBeforeAttributeName(U);
  65679. break;
  65680. case 5:
  65681. stateAttributeName(U);
  65682. break;
  65683. case 6:
  65684. stateAfterAttributeName(U);
  65685. break;
  65686. case 7:
  65687. stateBeforeAttributeValue(U);
  65688. break;
  65689. case 8:
  65690. stateAttributeValueDoubleQuoted(U);
  65691. break;
  65692. case 9:
  65693. stateAttributeValueSingleQuoted(U);
  65694. break;
  65695. case 10:
  65696. stateAttributeValueUnquoted(U);
  65697. break;
  65698. case 11:
  65699. stateAfterAttributeValueQuoted(U);
  65700. break;
  65701. case 12:
  65702. stateSelfClosingStartTag(U);
  65703. break;
  65704. case 13:
  65705. stateMarkupDeclarationOpen(U);
  65706. break;
  65707. case 14:
  65708. stateCommentStart(U);
  65709. break;
  65710. case 15:
  65711. stateCommentStartDash(U);
  65712. break;
  65713. case 16:
  65714. stateComment(U);
  65715. break;
  65716. case 17:
  65717. stateCommentEndDash(U);
  65718. break;
  65719. case 18:
  65720. stateCommentEnd(U);
  65721. break;
  65722. case 19:
  65723. stateCommentEndBang(U);
  65724. break;
  65725. case 20:
  65726. stateDoctype(U);
  65727. break;
  65728. default:
  65729. throwUnhandledCaseError(B);
  65730. }
  65731. j++;
  65732. }
  65733. function stateData(s) {
  65734. '<' === s && startNewTag();
  65735. }
  65736. function stateTagOpen(s) {
  65737. '!' === s
  65738. ? (B = 13)
  65739. : '/' === s
  65740. ? ((B = 2), (V = new MO(__assign(__assign({}, V), { isClosing: !0 }))))
  65741. : '<' === s
  65742. ? startNewTag()
  65743. : XC.test(s)
  65744. ? ((B = 3), (V = new MO(__assign(__assign({}, V), { isOpening: !0 }))))
  65745. : ((B = 0), (V = C));
  65746. }
  65747. function stateTagName(s) {
  65748. eO.test(s)
  65749. ? ((V = new MO(__assign(__assign({}, V), { name: captureTagName() }))), (B = 4))
  65750. : '<' === s
  65751. ? startNewTag()
  65752. : '/' === s
  65753. ? ((V = new MO(__assign(__assign({}, V), { name: captureTagName() }))), (B = 12))
  65754. : '>' === s
  65755. ? ((V = new MO(__assign(__assign({}, V), { name: captureTagName() }))),
  65756. emitTagAndPreviousTextNode())
  65757. : XC.test(s) || ZC.test(s) || ':' === s || resetToDataState();
  65758. }
  65759. function stateEndTagOpen(s) {
  65760. '>' === s ? resetToDataState() : XC.test(s) ? (B = 3) : resetToDataState();
  65761. }
  65762. function stateBeforeAttributeName(s) {
  65763. eO.test(s) ||
  65764. ('/' === s
  65765. ? (B = 12)
  65766. : '>' === s
  65767. ? emitTagAndPreviousTextNode()
  65768. : '<' === s
  65769. ? startNewTag()
  65770. : '=' === s || tO.test(s) || rO.test(s)
  65771. ? resetToDataState()
  65772. : (B = 5));
  65773. }
  65774. function stateAttributeName(s) {
  65775. eO.test(s)
  65776. ? (B = 6)
  65777. : '/' === s
  65778. ? (B = 12)
  65779. : '=' === s
  65780. ? (B = 7)
  65781. : '>' === s
  65782. ? emitTagAndPreviousTextNode()
  65783. : '<' === s
  65784. ? startNewTag()
  65785. : tO.test(s) && resetToDataState();
  65786. }
  65787. function stateAfterAttributeName(s) {
  65788. eO.test(s) ||
  65789. ('/' === s
  65790. ? (B = 12)
  65791. : '=' === s
  65792. ? (B = 7)
  65793. : '>' === s
  65794. ? emitTagAndPreviousTextNode()
  65795. : '<' === s
  65796. ? startNewTag()
  65797. : tO.test(s)
  65798. ? resetToDataState()
  65799. : (B = 5));
  65800. }
  65801. function stateBeforeAttributeValue(s) {
  65802. eO.test(s) ||
  65803. ('"' === s
  65804. ? (B = 8)
  65805. : "'" === s
  65806. ? (B = 9)
  65807. : /[>=`]/.test(s)
  65808. ? resetToDataState()
  65809. : '<' === s
  65810. ? startNewTag()
  65811. : (B = 10));
  65812. }
  65813. function stateAttributeValueDoubleQuoted(s) {
  65814. '"' === s && (B = 11);
  65815. }
  65816. function stateAttributeValueSingleQuoted(s) {
  65817. "'" === s && (B = 11);
  65818. }
  65819. function stateAttributeValueUnquoted(s) {
  65820. eO.test(s)
  65821. ? (B = 4)
  65822. : '>' === s
  65823. ? emitTagAndPreviousTextNode()
  65824. : '<' === s && startNewTag();
  65825. }
  65826. function stateAfterAttributeValueQuoted(s) {
  65827. eO.test(s)
  65828. ? (B = 4)
  65829. : '/' === s
  65830. ? (B = 12)
  65831. : '>' === s
  65832. ? emitTagAndPreviousTextNode()
  65833. : '<' === s
  65834. ? startNewTag()
  65835. : ((B = 4),
  65836. (function reconsumeCurrentCharacter() {
  65837. j--;
  65838. })());
  65839. }
  65840. function stateSelfClosingStartTag(s) {
  65841. '>' === s
  65842. ? ((V = new MO(__assign(__assign({}, V), { isClosing: !0 }))),
  65843. emitTagAndPreviousTextNode())
  65844. : (B = 4);
  65845. }
  65846. function stateMarkupDeclarationOpen(o) {
  65847. '--' === s.substr(j, 2)
  65848. ? ((j += 2), (V = new MO(__assign(__assign({}, V), { type: 'comment' }))), (B = 14))
  65849. : 'DOCTYPE' === s.substr(j, 7).toUpperCase()
  65850. ? ((j += 7), (V = new MO(__assign(__assign({}, V), { type: 'doctype' }))), (B = 20))
  65851. : resetToDataState();
  65852. }
  65853. function stateCommentStart(s) {
  65854. '-' === s ? (B = 15) : '>' === s ? resetToDataState() : (B = 16);
  65855. }
  65856. function stateCommentStartDash(s) {
  65857. '-' === s ? (B = 18) : '>' === s ? resetToDataState() : (B = 16);
  65858. }
  65859. function stateComment(s) {
  65860. '-' === s && (B = 17);
  65861. }
  65862. function stateCommentEndDash(s) {
  65863. B = '-' === s ? 18 : 16;
  65864. }
  65865. function stateCommentEnd(s) {
  65866. '>' === s ? emitTagAndPreviousTextNode() : '!' === s ? (B = 19) : '-' === s || (B = 16);
  65867. }
  65868. function stateCommentEndBang(s) {
  65869. '-' === s ? (B = 17) : '>' === s ? emitTagAndPreviousTextNode() : (B = 16);
  65870. }
  65871. function stateDoctype(s) {
  65872. '>' === s ? emitTagAndPreviousTextNode() : '<' === s && startNewTag();
  65873. }
  65874. function resetToDataState() {
  65875. (B = 0), (V = C);
  65876. }
  65877. function startNewTag() {
  65878. (B = 1), (V = new MO({ idx: j }));
  65879. }
  65880. function emitTagAndPreviousTextNode() {
  65881. var o = s.slice($, V.idx);
  65882. o && _(o, $),
  65883. 'comment' === V.type
  65884. ? w(V.idx)
  65885. : 'doctype' === V.type
  65886. ? x(V.idx)
  65887. : (V.isOpening && i(V.name, V.idx), V.isClosing && u(V.name, V.idx)),
  65888. resetToDataState(),
  65889. ($ = j + 1);
  65890. }
  65891. function captureTagName() {
  65892. var o = V.idx + (V.isClosing ? 2 : 1);
  65893. return s.slice(o, j).toLowerCase();
  65894. }
  65895. $ < j &&
  65896. (function emitText() {
  65897. var o = s.slice($, j);
  65898. _(o, $), ($ = j + 1);
  65899. })();
  65900. }
  65901. var MO = function MO(s) {
  65902. void 0 === s && (s = {}),
  65903. (this.idx = void 0 !== s.idx ? s.idx : -1),
  65904. (this.type = s.type || 'tag'),
  65905. (this.name = s.name || ''),
  65906. (this.isOpening = !!s.isOpening),
  65907. (this.isClosing = !!s.isClosing);
  65908. },
  65909. TO = (function () {
  65910. function Autolinker(s) {
  65911. void 0 === s && (s = {}),
  65912. (this.version = Autolinker.version),
  65913. (this.urls = {}),
  65914. (this.email = !0),
  65915. (this.phone = !0),
  65916. (this.hashtag = !1),
  65917. (this.mention = !1),
  65918. (this.newWindow = !0),
  65919. (this.stripPrefix = { scheme: !0, www: !0 }),
  65920. (this.stripTrailingSlash = !0),
  65921. (this.decodePercentEncoding = !0),
  65922. (this.truncate = { length: 0, location: 'end' }),
  65923. (this.className = ''),
  65924. (this.replaceFn = null),
  65925. (this.context = void 0),
  65926. (this.sanitizeHtml = !1),
  65927. (this.matchers = null),
  65928. (this.tagBuilder = null),
  65929. (this.urls = this.normalizeUrlsCfg(s.urls)),
  65930. (this.email = 'boolean' == typeof s.email ? s.email : this.email),
  65931. (this.phone = 'boolean' == typeof s.phone ? s.phone : this.phone),
  65932. (this.hashtag = s.hashtag || this.hashtag),
  65933. (this.mention = s.mention || this.mention),
  65934. (this.newWindow = 'boolean' == typeof s.newWindow ? s.newWindow : this.newWindow),
  65935. (this.stripPrefix = this.normalizeStripPrefixCfg(s.stripPrefix)),
  65936. (this.stripTrailingSlash =
  65937. 'boolean' == typeof s.stripTrailingSlash
  65938. ? s.stripTrailingSlash
  65939. : this.stripTrailingSlash),
  65940. (this.decodePercentEncoding =
  65941. 'boolean' == typeof s.decodePercentEncoding
  65942. ? s.decodePercentEncoding
  65943. : this.decodePercentEncoding),
  65944. (this.sanitizeHtml = s.sanitizeHtml || !1);
  65945. var o = this.mention;
  65946. if (!1 !== o && -1 === ['twitter', 'instagram', 'soundcloud', 'tiktok'].indexOf(o))
  65947. throw new Error("invalid `mention` cfg '".concat(o, "' - see docs"));
  65948. var i = this.hashtag;
  65949. if (!1 !== i && -1 === SO.indexOf(i))
  65950. throw new Error("invalid `hashtag` cfg '".concat(i, "' - see docs"));
  65951. (this.truncate = this.normalizeTruncateCfg(s.truncate)),
  65952. (this.className = s.className || this.className),
  65953. (this.replaceFn = s.replaceFn || this.replaceFn),
  65954. (this.context = s.context || this);
  65955. }
  65956. return (
  65957. (Autolinker.link = function (s, o) {
  65958. return new Autolinker(o).link(s);
  65959. }),
  65960. (Autolinker.parse = function (s, o) {
  65961. return new Autolinker(o).parse(s);
  65962. }),
  65963. (Autolinker.prototype.normalizeUrlsCfg = function (s) {
  65964. return (
  65965. null == s && (s = !0),
  65966. 'boolean' == typeof s
  65967. ? { schemeMatches: s, wwwMatches: s, tldMatches: s }
  65968. : {
  65969. schemeMatches: 'boolean' != typeof s.schemeMatches || s.schemeMatches,
  65970. wwwMatches: 'boolean' != typeof s.wwwMatches || s.wwwMatches,
  65971. tldMatches: 'boolean' != typeof s.tldMatches || s.tldMatches
  65972. }
  65973. );
  65974. }),
  65975. (Autolinker.prototype.normalizeStripPrefixCfg = function (s) {
  65976. return (
  65977. null == s && (s = !0),
  65978. 'boolean' == typeof s
  65979. ? { scheme: s, www: s }
  65980. : {
  65981. scheme: 'boolean' != typeof s.scheme || s.scheme,
  65982. www: 'boolean' != typeof s.www || s.www
  65983. }
  65984. );
  65985. }),
  65986. (Autolinker.prototype.normalizeTruncateCfg = function (s) {
  65987. return 'number' == typeof s
  65988. ? { length: s, location: 'end' }
  65989. : (function defaults(s, o) {
  65990. for (var i in o) o.hasOwnProperty(i) && void 0 === s[i] && (s[i] = o[i]);
  65991. return s;
  65992. })(s || {}, { length: Number.POSITIVE_INFINITY, location: 'end' });
  65993. }),
  65994. (Autolinker.prototype.parse = function (s) {
  65995. var o = this,
  65996. i = ['a', 'style', 'script'],
  65997. u = 0,
  65998. _ = [];
  65999. return (
  66000. parseHtml(s, {
  66001. onOpenTag: function (s) {
  66002. i.indexOf(s) >= 0 && u++;
  66003. },
  66004. onText: function (s, i) {
  66005. if (0 === u) {
  66006. var w = (function splitAndCapture(s, o) {
  66007. if (!o.global)
  66008. throw new Error("`splitRegex` must have the 'g' flag set");
  66009. for (var i, u = [], _ = 0; (i = o.exec(s)); )
  66010. u.push(s.substring(_, i.index)),
  66011. u.push(i[0]),
  66012. (_ = i.index + i[0].length);
  66013. return u.push(s.substring(_)), u;
  66014. })(s, /(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),
  66015. x = i;
  66016. w.forEach(function (s, i) {
  66017. if (i % 2 == 0) {
  66018. var u = o.parseText(s, x);
  66019. _.push.apply(_, u);
  66020. }
  66021. x += s.length;
  66022. });
  66023. }
  66024. },
  66025. onCloseTag: function (s) {
  66026. i.indexOf(s) >= 0 && (u = Math.max(u - 1, 0));
  66027. },
  66028. onComment: function (s) {},
  66029. onDoctype: function (s) {}
  66030. }),
  66031. (_ = this.compactMatches(_)),
  66032. (_ = this.removeUnwantedMatches(_))
  66033. );
  66034. }),
  66035. (Autolinker.prototype.compactMatches = function (s) {
  66036. s.sort(function (s, o) {
  66037. return s.getOffset() - o.getOffset();
  66038. });
  66039. for (var o = 0; o < s.length - 1; ) {
  66040. var i = s[o],
  66041. u = i.getOffset(),
  66042. _ = i.getMatchedText().length,
  66043. w = u + _;
  66044. if (o + 1 < s.length) {
  66045. if (s[o + 1].getOffset() === u) {
  66046. var x = s[o + 1].getMatchedText().length > _ ? o : o + 1;
  66047. s.splice(x, 1);
  66048. continue;
  66049. }
  66050. if (s[o + 1].getOffset() < w) {
  66051. s.splice(o + 1, 1);
  66052. continue;
  66053. }
  66054. }
  66055. o++;
  66056. }
  66057. return s;
  66058. }),
  66059. (Autolinker.prototype.removeUnwantedMatches = function (s) {
  66060. return (
  66061. this.hashtag ||
  66062. utils_remove(s, function (s) {
  66063. return 'hashtag' === s.getType();
  66064. }),
  66065. this.email ||
  66066. utils_remove(s, function (s) {
  66067. return 'email' === s.getType();
  66068. }),
  66069. this.phone ||
  66070. utils_remove(s, function (s) {
  66071. return 'phone' === s.getType();
  66072. }),
  66073. this.mention ||
  66074. utils_remove(s, function (s) {
  66075. return 'mention' === s.getType();
  66076. }),
  66077. this.urls.schemeMatches ||
  66078. utils_remove(s, function (s) {
  66079. return 'url' === s.getType() && 'scheme' === s.getUrlMatchType();
  66080. }),
  66081. this.urls.wwwMatches ||
  66082. utils_remove(s, function (s) {
  66083. return 'url' === s.getType() && 'www' === s.getUrlMatchType();
  66084. }),
  66085. this.urls.tldMatches ||
  66086. utils_remove(s, function (s) {
  66087. return 'url' === s.getType() && 'tld' === s.getUrlMatchType();
  66088. }),
  66089. s
  66090. );
  66091. }),
  66092. (Autolinker.prototype.parseText = function (s, o) {
  66093. void 0 === o && (o = 0), (o = o || 0);
  66094. for (var i = this.getMatchers(), u = [], _ = 0, w = i.length; _ < w; _++) {
  66095. for (var x = i[_].parseMatches(s), C = 0, j = x.length; C < j; C++)
  66096. x[C].setOffset(o + x[C].getOffset());
  66097. u.push.apply(u, x);
  66098. }
  66099. return u;
  66100. }),
  66101. (Autolinker.prototype.link = function (s) {
  66102. if (!s) return '';
  66103. this.sanitizeHtml && (s = s.replace(/</g, '&lt;').replace(/>/g, '&gt;'));
  66104. for (var o = this.parse(s), i = [], u = 0, _ = 0, w = o.length; _ < w; _++) {
  66105. var x = o[_];
  66106. i.push(s.substring(u, x.getOffset())),
  66107. i.push(this.createMatchReturnVal(x)),
  66108. (u = x.getOffset() + x.getMatchedText().length);
  66109. }
  66110. return i.push(s.substring(u)), i.join('');
  66111. }),
  66112. (Autolinker.prototype.createMatchReturnVal = function (s) {
  66113. var o;
  66114. return (
  66115. this.replaceFn && (o = this.replaceFn.call(this.context, s)),
  66116. 'string' == typeof o
  66117. ? o
  66118. : !1 === o
  66119. ? s.getMatchedText()
  66120. : o instanceof $C
  66121. ? o.toAnchorString()
  66122. : s.buildTag().toAnchorString()
  66123. );
  66124. }),
  66125. (Autolinker.prototype.getMatchers = function () {
  66126. if (this.matchers) return this.matchers;
  66127. var s = this.getTagBuilder(),
  66128. o = [
  66129. new wO({ tagBuilder: s, serviceName: this.hashtag }),
  66130. new mO({ tagBuilder: s }),
  66131. new kO({ tagBuilder: s }),
  66132. new PO({ tagBuilder: s, serviceName: this.mention }),
  66133. new _O({
  66134. tagBuilder: s,
  66135. stripPrefix: this.stripPrefix,
  66136. stripTrailingSlash: this.stripTrailingSlash,
  66137. decodePercentEncoding: this.decodePercentEncoding
  66138. })
  66139. ];
  66140. return (this.matchers = o);
  66141. }),
  66142. (Autolinker.prototype.getTagBuilder = function () {
  66143. var s = this.tagBuilder;
  66144. return (
  66145. s ||
  66146. (s = this.tagBuilder =
  66147. new VC({
  66148. newWindow: this.newWindow,
  66149. truncate: this.truncate,
  66150. className: this.className
  66151. })),
  66152. s
  66153. );
  66154. }),
  66155. (Autolinker.version = '3.16.2'),
  66156. (Autolinker.AnchorTagBuilder = VC),
  66157. (Autolinker.HtmlTag = $C),
  66158. (Autolinker.matcher = {
  66159. Email: mO,
  66160. Hashtag: wO,
  66161. Matcher: YC,
  66162. Mention: PO,
  66163. Phone: kO,
  66164. Url: _O
  66165. }),
  66166. (Autolinker.match = {
  66167. Email: WC,
  66168. Hashtag: KC,
  66169. Match: UC,
  66170. Mention: HC,
  66171. Phone: JC,
  66172. Url: GC
  66173. }),
  66174. Autolinker
  66175. );
  66176. })();
  66177. const NO = TO;
  66178. var RO = /www|@|\:\/\//;
  66179. function isLinkOpen(s) {
  66180. return /^<a[>\s]/i.test(s);
  66181. }
  66182. function isLinkClose(s) {
  66183. return /^<\/a\s*>/i.test(s);
  66184. }
  66185. function createLinkifier() {
  66186. var s = [],
  66187. o = new NO({
  66188. stripPrefix: !1,
  66189. url: !0,
  66190. email: !0,
  66191. replaceFn: function (o) {
  66192. switch (o.getType()) {
  66193. case 'url':
  66194. s.push({ text: o.matchedText, url: o.getUrl() });
  66195. break;
  66196. case 'email':
  66197. s.push({
  66198. text: o.matchedText,
  66199. url: 'mailto:' + o.getEmail().replace(/^mailto:/i, '')
  66200. });
  66201. }
  66202. return !1;
  66203. }
  66204. });
  66205. return { links: s, autolinker: o };
  66206. }
  66207. function parseTokens(s) {
  66208. var o,
  66209. i,
  66210. u,
  66211. _,
  66212. w,
  66213. x,
  66214. C,
  66215. j,
  66216. L,
  66217. B,
  66218. $,
  66219. V,
  66220. U,
  66221. z = s.tokens,
  66222. Y = null;
  66223. for (i = 0, u = z.length; i < u; i++)
  66224. if ('inline' === z[i].type)
  66225. for ($ = 0, o = (_ = z[i].children).length - 1; o >= 0; o--)
  66226. if ('link_close' !== (w = _[o]).type) {
  66227. if (
  66228. ('htmltag' === w.type &&
  66229. (isLinkOpen(w.content) && $ > 0 && $--, isLinkClose(w.content) && $++),
  66230. !($ > 0) && 'text' === w.type && RO.test(w.content))
  66231. ) {
  66232. if (
  66233. (Y || ((V = (Y = createLinkifier()).links), (U = Y.autolinker)),
  66234. (x = w.content),
  66235. (V.length = 0),
  66236. U.link(x),
  66237. !V.length)
  66238. )
  66239. continue;
  66240. for (C = [], B = w.level, j = 0; j < V.length; j++)
  66241. s.inline.validateLink(V[j].url) &&
  66242. ((L = x.indexOf(V[j].text)) &&
  66243. C.push({ type: 'text', content: x.slice(0, L), level: B }),
  66244. C.push({ type: 'link_open', href: V[j].url, title: '', level: B++ }),
  66245. C.push({ type: 'text', content: V[j].text, level: B }),
  66246. C.push({ type: 'link_close', level: --B }),
  66247. (x = x.slice(L + V[j].text.length)));
  66248. x.length && C.push({ type: 'text', content: x, level: B }),
  66249. (z[i].children = _ = [].concat(_.slice(0, o), C, _.slice(o + 1)));
  66250. }
  66251. } else for (o--; _[o].level !== w.level && 'link_open' !== _[o].type; ) o--;
  66252. }
  66253. function linkify(s) {
  66254. s.core.ruler.push('linkify', parseTokens);
  66255. }
  66256. var DO = __webpack_require__(42838),
  66257. LO = __webpack_require__.n(DO);
  66258. LO().addHook &&
  66259. LO().addHook('beforeSanitizeElements', function (s) {
  66260. return s.href && s.setAttribute('rel', 'noopener noreferrer'), s;
  66261. });
  66262. const BO = function Markdown({
  66263. source: s,
  66264. className: o = '',
  66265. getConfigs: i = () => ({ useUnsafeMarkdown: !1 })
  66266. }) {
  66267. if ('string' != typeof s) return null;
  66268. const u = new Remarkable({
  66269. html: !0,
  66270. typographer: !0,
  66271. breaks: !0,
  66272. linkTarget: '_blank'
  66273. }).use(linkify);
  66274. u.core.ruler.disable(['replacements', 'smartquotes']);
  66275. const { useUnsafeMarkdown: _ } = i(),
  66276. w = u.render(s),
  66277. x = sanitizer(w, { useUnsafeMarkdown: _ });
  66278. return s && w && x
  66279. ? Pe.createElement('div', {
  66280. className: Hn()(o, 'markdown'),
  66281. dangerouslySetInnerHTML: { __html: x }
  66282. })
  66283. : null;
  66284. };
  66285. function sanitizer(s, { useUnsafeMarkdown: o = !1 } = {}) {
  66286. const i = o,
  66287. u = o ? [] : ['style', 'class'];
  66288. return (
  66289. o &&
  66290. !sanitizer.hasWarnedAboutDeprecation &&
  66291. (console.warn(
  66292. 'useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0.'
  66293. ),
  66294. (sanitizer.hasWarnedAboutDeprecation = !0)),
  66295. LO().sanitize(s, {
  66296. ADD_ATTR: ['target'],
  66297. FORBID_TAGS: ['style', 'form'],
  66298. ALLOW_DATA_ATTR: i,
  66299. FORBID_ATTR: u
  66300. })
  66301. );
  66302. }
  66303. sanitizer.hasWarnedAboutDeprecation = !1;
  66304. class BaseLayout extends Pe.Component {
  66305. render() {
  66306. const { errSelectors: s, specSelectors: o, getComponent: i } = this.props,
  66307. u = i('SvgAssets'),
  66308. _ = i('InfoContainer', !0),
  66309. w = i('VersionPragmaFilter'),
  66310. x = i('operations', !0),
  66311. C = i('Models', !0),
  66312. j = i('Webhooks', !0),
  66313. L = i('Row'),
  66314. B = i('Col'),
  66315. $ = i('errors', !0),
  66316. V = i('ServersContainer', !0),
  66317. U = i('SchemesContainer', !0),
  66318. z = i('AuthorizeBtnContainer', !0),
  66319. Y = i('FilterContainer', !0),
  66320. Z = o.isSwagger2(),
  66321. ee = o.isOAS3(),
  66322. ie = o.isOAS31(),
  66323. ae = !o.specStr(),
  66324. le = o.loadingStatus();
  66325. let ce = null;
  66326. if (
  66327. ('loading' === le &&
  66328. (ce = Pe.createElement(
  66329. 'div',
  66330. { className: 'info' },
  66331. Pe.createElement(
  66332. 'div',
  66333. { className: 'loading-container' },
  66334. Pe.createElement('div', { className: 'loading' })
  66335. )
  66336. )),
  66337. 'failed' === le &&
  66338. (ce = Pe.createElement(
  66339. 'div',
  66340. { className: 'info' },
  66341. Pe.createElement(
  66342. 'div',
  66343. { className: 'loading-container' },
  66344. Pe.createElement(
  66345. 'h4',
  66346. { className: 'title' },
  66347. 'Failed to load API definition.'
  66348. ),
  66349. Pe.createElement($, null)
  66350. )
  66351. )),
  66352. 'failedConfig' === le)
  66353. ) {
  66354. const o = s.lastError(),
  66355. i = o ? o.get('message') : '';
  66356. ce = Pe.createElement(
  66357. 'div',
  66358. { className: 'info failed-config' },
  66359. Pe.createElement(
  66360. 'div',
  66361. { className: 'loading-container' },
  66362. Pe.createElement(
  66363. 'h4',
  66364. { className: 'title' },
  66365. 'Failed to load remote configuration.'
  66366. ),
  66367. Pe.createElement('p', null, i)
  66368. )
  66369. );
  66370. }
  66371. if (
  66372. (!ce && ae && (ce = Pe.createElement('h4', null, 'No API definition provided.')), ce)
  66373. )
  66374. return Pe.createElement(
  66375. 'div',
  66376. { className: 'swagger-ui' },
  66377. Pe.createElement('div', { className: 'loading-container' }, ce)
  66378. );
  66379. const pe = o.servers(),
  66380. de = o.schemes(),
  66381. fe = pe && pe.size,
  66382. ye = de && de.size,
  66383. be = !!o.securityDefinitions();
  66384. return Pe.createElement(
  66385. 'div',
  66386. { className: 'swagger-ui' },
  66387. Pe.createElement(u, null),
  66388. Pe.createElement(
  66389. w,
  66390. { isSwagger2: Z, isOAS3: ee, alsoShow: Pe.createElement($, null) },
  66391. Pe.createElement($, null),
  66392. Pe.createElement(
  66393. L,
  66394. { className: 'information-container' },
  66395. Pe.createElement(B, { mobile: 12 }, Pe.createElement(_, null))
  66396. ),
  66397. fe || ye || be
  66398. ? Pe.createElement(
  66399. 'div',
  66400. { className: 'scheme-container' },
  66401. Pe.createElement(
  66402. B,
  66403. { className: 'schemes wrapper', mobile: 12 },
  66404. fe || ye
  66405. ? Pe.createElement(
  66406. 'div',
  66407. { className: 'schemes-server-container' },
  66408. fe ? Pe.createElement(V, null) : null,
  66409. ye ? Pe.createElement(U, null) : null
  66410. )
  66411. : null,
  66412. be ? Pe.createElement(z, null) : null
  66413. )
  66414. )
  66415. : null,
  66416. Pe.createElement(Y, null),
  66417. Pe.createElement(
  66418. L,
  66419. null,
  66420. Pe.createElement(B, { mobile: 12, desktop: 12 }, Pe.createElement(x, null))
  66421. ),
  66422. ie &&
  66423. Pe.createElement(
  66424. L,
  66425. { className: 'webhooks-container' },
  66426. Pe.createElement(B, { mobile: 12, desktop: 12 }, Pe.createElement(j, null))
  66427. ),
  66428. Pe.createElement(
  66429. L,
  66430. null,
  66431. Pe.createElement(B, { mobile: 12, desktop: 12 }, Pe.createElement(C, null))
  66432. )
  66433. )
  66434. );
  66435. }
  66436. }
  66437. const core_components = () => ({
  66438. components: {
  66439. App: fk,
  66440. authorizationPopup: AuthorizationPopup,
  66441. authorizeBtn: AuthorizeBtn,
  66442. AuthorizeBtnContainer,
  66443. authorizeOperationBtn: AuthorizeOperationBtn,
  66444. auths: Auths,
  66445. AuthItem: auth_item_Auths,
  66446. authError: AuthError,
  66447. oauth2: Oauth2,
  66448. apiKeyAuth: ApiKeyAuth,
  66449. basicAuth: BasicAuth,
  66450. clear: Clear,
  66451. liveResponse: LiveResponse,
  66452. InitializedInput,
  66453. info: qk,
  66454. InfoContainer,
  66455. InfoUrl,
  66456. InfoBasePath,
  66457. Contact: Vk,
  66458. License: zk,
  66459. JumpToPath,
  66460. CopyToClipboardBtn,
  66461. onlineValidatorBadge: OnlineValidatorBadge,
  66462. operations: Operations,
  66463. operation: operation_Operation,
  66464. OperationSummary,
  66465. OperationSummaryMethod,
  66466. OperationSummaryPath,
  66467. responses: responses_Responses,
  66468. response: response_Response,
  66469. ResponseExtension: response_extension,
  66470. responseBody: ResponseBody,
  66471. parameters: Parameters,
  66472. parameterRow: ParameterRow,
  66473. execute: Execute,
  66474. headers: headers_Headers,
  66475. errors: Errors,
  66476. contentType: ContentType,
  66477. overview: Overview,
  66478. footer: Footer,
  66479. FilterContainer,
  66480. ParamBody,
  66481. curl: Curl,
  66482. Property: property,
  66483. TryItOutButton,
  66484. Markdown: BO,
  66485. BaseLayout,
  66486. VersionPragmaFilter,
  66487. VersionStamp: version_stamp,
  66488. OperationExt: operation_extensions,
  66489. OperationExtRow: operation_extension_row,
  66490. ParameterExt: parameter_extension,
  66491. ParameterIncludeEmpty,
  66492. OperationTag,
  66493. OperationContainer,
  66494. OpenAPIVersion: openapi_version,
  66495. DeepLink: deep_link,
  66496. SvgAssets: svg_assets,
  66497. Example: example_Example,
  66498. ExamplesSelect,
  66499. ExamplesSelectValueRetainer
  66500. }
  66501. }),
  66502. form_components = () => ({ components: { ...ye } }),
  66503. base = () => [
  66504. configsPlugin,
  66505. util,
  66506. logs,
  66507. view,
  66508. view_legacy,
  66509. plugins_spec,
  66510. err,
  66511. icons,
  66512. plugins_layout,
  66513. json_schema_5,
  66514. json_schema_5_samples,
  66515. core_components,
  66516. form_components,
  66517. swagger_client,
  66518. auth,
  66519. downloadUrlPlugin,
  66520. deep_linking,
  66521. filter,
  66522. on_complete,
  66523. plugins_request_snippets,
  66524. syntax_highlighting,
  66525. versions,
  66526. safe_render()
  66527. ],
  66528. FO = (0, qe.Map)();
  66529. function onlyOAS3(s) {
  66530. return (o, i) =>
  66531. (...u) => {
  66532. if (i.getSystem().specSelectors.isOAS3()) {
  66533. const o = s(...u);
  66534. return 'function' == typeof o ? o(i) : o;
  66535. }
  66536. return o(...u);
  66537. };
  66538. }
  66539. const qO = onlyOAS3(Ss()(null)),
  66540. $O = onlyOAS3((s, o) => (s) => s.getSystem().specSelectors.findSchema(o)),
  66541. VO = onlyOAS3(() => (s) => {
  66542. const o = s.getSystem().specSelectors.specJson().getIn(['components', 'schemas']);
  66543. return qe.Map.isMap(o) ? o : FO;
  66544. }),
  66545. UO = onlyOAS3(() => (s) => s.getSystem().specSelectors.specJson().hasIn(['servers', 0])),
  66546. zO = onlyOAS3(Ut(Ms, (s) => s.getIn(['components', 'securitySchemes']) || null)),
  66547. wrap_selectors_validOperationMethods =
  66548. (s, o) =>
  66549. (i, ...u) =>
  66550. o.specSelectors.isOAS3() ? o.oas3Selectors.validOperationMethods() : s(...u),
  66551. WO = qO,
  66552. KO = qO,
  66553. HO = qO,
  66554. JO = qO,
  66555. GO = qO;
  66556. const YO = (function wrap_selectors_onlyOAS3(s) {
  66557. return (o, i) =>
  66558. (...u) => {
  66559. if (i.getSystem().specSelectors.isOAS3()) {
  66560. let o = i
  66561. .getState()
  66562. .getIn(['spec', 'resolvedSubtrees', 'components', 'securitySchemes']);
  66563. return s(i, o, ...u);
  66564. }
  66565. return o(...u);
  66566. };
  66567. })(
  66568. Ut(
  66569. (s) => s,
  66570. ({ specSelectors: s }) => s.securityDefinitions(),
  66571. (s, o) => {
  66572. let i = (0, qe.List)();
  66573. return o
  66574. ? (o.entrySeq().forEach(([s, o]) => {
  66575. const u = o.get('type');
  66576. if (
  66577. ('oauth2' === u &&
  66578. o
  66579. .get('flows')
  66580. .entrySeq()
  66581. .forEach(([u, _]) => {
  66582. let w = (0, qe.fromJS)({
  66583. flow: u,
  66584. authorizationUrl: _.get('authorizationUrl'),
  66585. tokenUrl: _.get('tokenUrl'),
  66586. scopes: _.get('scopes'),
  66587. type: o.get('type'),
  66588. description: o.get('description')
  66589. });
  66590. i = i.push(new qe.Map({ [s]: w.filter((s) => void 0 !== s) }));
  66591. }),
  66592. ('http' !== u && 'apiKey' !== u) || (i = i.push(new qe.Map({ [s]: o }))),
  66593. 'openIdConnect' === u && o.get('openIdConnectData'))
  66594. ) {
  66595. let u = o.get('openIdConnectData');
  66596. (
  66597. u.get('grant_types_supported') || ['authorization_code', 'implicit']
  66598. ).forEach((_) => {
  66599. let w =
  66600. u.get('scopes_supported') &&
  66601. u.get('scopes_supported').reduce((s, o) => s.set(o, ''), new qe.Map()),
  66602. x = (0, qe.fromJS)({
  66603. flow: _,
  66604. authorizationUrl: u.get('authorization_endpoint'),
  66605. tokenUrl: u.get('token_endpoint'),
  66606. scopes: w,
  66607. type: 'oauth2',
  66608. openIdConnectUrl: o.get('openIdConnectUrl')
  66609. });
  66610. i = i.push(new qe.Map({ [s]: x.filter((s) => void 0 !== s) }));
  66611. });
  66612. }
  66613. }),
  66614. i)
  66615. : i;
  66616. }
  66617. )
  66618. );
  66619. function OAS3ComponentWrapFactory(s) {
  66620. return (o, i) => (u) =>
  66621. 'function' == typeof i.specSelectors?.isOAS3
  66622. ? i.specSelectors.isOAS3()
  66623. ? Pe.createElement(s, Rn()({}, u, i, { Ori: o }))
  66624. : Pe.createElement(o, u)
  66625. : (console.warn("OAS3 wrapper: couldn't get spec"), null);
  66626. }
  66627. const XO = (0, qe.Map)(),
  66628. selectors_isSwagger2 = () => (s) =>
  66629. (function isSwagger2(s) {
  66630. const o = s.get('swagger');
  66631. return 'string' == typeof o && '2.0' === o;
  66632. })(s.getSystem().specSelectors.specJson()),
  66633. selectors_isOAS30 = () => (s) =>
  66634. (function isOAS30(s) {
  66635. const o = s.get('openapi');
  66636. return 'string' == typeof o && /^3\.0\.([0123])(?:-rc[012])?$/.test(o);
  66637. })(s.getSystem().specSelectors.specJson()),
  66638. selectors_isOAS3 = () => (s) => s.getSystem().specSelectors.isOAS30();
  66639. function selectors_onlyOAS3(s) {
  66640. return (o, ...i) =>
  66641. (u) => {
  66642. if (u.specSelectors.isOAS3()) {
  66643. const _ = s(o, ...i);
  66644. return 'function' == typeof _ ? _(u) : _;
  66645. }
  66646. return null;
  66647. };
  66648. }
  66649. const ZO = selectors_onlyOAS3(() => (s) => s.specSelectors.specJson().get('servers', XO)),
  66650. findSchema = (s, o) => {
  66651. const i = s.getIn(['resolvedSubtrees', 'components', 'schemas', o], null),
  66652. u = s.getIn(['json', 'components', 'schemas', o], null);
  66653. return i || u || null;
  66654. },
  66655. QO = selectors_onlyOAS3((s, { callbacks: o, specPath: i }) => (s) => {
  66656. const u = s.specSelectors.validOperationMethods();
  66657. return qe.Map.isMap(o)
  66658. ? o
  66659. .reduce(
  66660. (s, o, _) => {
  66661. if (!qe.Map.isMap(o)) return s;
  66662. const w = o.reduce(
  66663. (s, o, w) => {
  66664. if (!qe.Map.isMap(o)) return s;
  66665. const x = o
  66666. .entrySeq()
  66667. .filter(([s]) => u.includes(s))
  66668. .map(([s, o]) => ({
  66669. operation: (0, qe.Map)({ operation: o }),
  66670. method: s,
  66671. path: w,
  66672. callbackName: _,
  66673. specPath: i.concat([_, w, s])
  66674. }));
  66675. return s.concat(x);
  66676. },
  66677. (0, qe.List)()
  66678. );
  66679. return s.concat(w);
  66680. },
  66681. (0, qe.List)()
  66682. )
  66683. .groupBy((s) => s.callbackName)
  66684. .map((s) => s.toArray())
  66685. .toObject()
  66686. : {};
  66687. }),
  66688. callbacks = ({ callbacks: s, specPath: o, specSelectors: i, getComponent: u }) => {
  66689. const _ = i.callbacksOperations({ callbacks: s, specPath: o }),
  66690. w = Object.keys(_),
  66691. x = u('OperationContainer', !0);
  66692. return 0 === w.length
  66693. ? Pe.createElement('span', null, 'No callbacks')
  66694. : Pe.createElement(
  66695. 'div',
  66696. null,
  66697. w.map((s) =>
  66698. Pe.createElement(
  66699. 'div',
  66700. { key: `${s}` },
  66701. Pe.createElement('h2', null, s),
  66702. _[s].map((o) =>
  66703. Pe.createElement(x, {
  66704. key: `${s}-${o.path}-${o.method}`,
  66705. op: o.operation,
  66706. tag: 'callbacks',
  66707. method: o.method,
  66708. path: o.path,
  66709. specPath: o.specPath,
  66710. allowTryItOut: !1
  66711. })
  66712. )
  66713. )
  66714. )
  66715. );
  66716. },
  66717. getDefaultRequestBodyValue = (s, o, i, u) => {
  66718. const _ = s.getIn(['content', o]) ?? (0, qe.OrderedMap)(),
  66719. w = _.get('schema', (0, qe.OrderedMap)()).toJS(),
  66720. x = void 0 !== _.get('examples'),
  66721. C = _.get('example'),
  66722. j = x ? _.getIn(['examples', i, 'value']) : C;
  66723. return stringify(u.getSampleSchema(w, o, { includeWriteOnly: !0 }, j));
  66724. },
  66725. components_request_body = ({
  66726. userHasEditedBody: s,
  66727. requestBody: o,
  66728. requestBodyValue: i,
  66729. requestBodyInclusionSetting: u,
  66730. requestBodyErrors: _,
  66731. getComponent: w,
  66732. getConfigs: x,
  66733. specSelectors: C,
  66734. fn: j,
  66735. contentType: L,
  66736. isExecute: B,
  66737. specPath: $,
  66738. onChange: V,
  66739. onChangeIncludeEmpty: U,
  66740. activeExamplesKey: z,
  66741. updateActiveExamplesKey: Y,
  66742. setRetainRequestBodyValueFlag: Z
  66743. }) => {
  66744. const handleFile = (s) => {
  66745. V(s.target.files[0]);
  66746. },
  66747. setIsIncludedOptions = (s) => {
  66748. let o = { key: s, shouldDispatchInit: !1, defaultValue: !0 };
  66749. return 'no value' === u.get(s, 'no value') && (o.shouldDispatchInit = !0), o;
  66750. },
  66751. ee = w('Markdown', !0),
  66752. ie = w('modelExample'),
  66753. ae = w('RequestBodyEditor'),
  66754. le = w('HighlightCode', !0),
  66755. ce = w('ExamplesSelectValueRetainer'),
  66756. pe = w('Example'),
  66757. de = w('ParameterIncludeEmpty'),
  66758. { showCommonExtensions: fe } = x(),
  66759. ye = o?.get('description') ?? null,
  66760. be = o?.get('content') ?? new qe.OrderedMap();
  66761. L = L || be.keySeq().first() || '';
  66762. const _e = be.get(L) ?? (0, qe.OrderedMap)(),
  66763. we = _e.get('schema', (0, qe.OrderedMap)()),
  66764. Se = _e.get('examples', null),
  66765. xe = Se?.map((s, i) => {
  66766. const u = s?.get('value', null);
  66767. return u && (s = s.set('value', getDefaultRequestBodyValue(o, L, i, j), u)), s;
  66768. });
  66769. if (((_ = qe.List.isList(_) ? _ : (0, qe.List)()), !_e.size)) return null;
  66770. const Te = 'object' === _e.getIn(['schema', 'type']),
  66771. Re = 'binary' === _e.getIn(['schema', 'format']),
  66772. $e = 'base64' === _e.getIn(['schema', 'format']);
  66773. if (
  66774. 'application/octet-stream' === L ||
  66775. 0 === L.indexOf('image/') ||
  66776. 0 === L.indexOf('audio/') ||
  66777. 0 === L.indexOf('video/') ||
  66778. Re ||
  66779. $e
  66780. ) {
  66781. const s = w('Input');
  66782. return B
  66783. ? Pe.createElement(s, { type: 'file', onChange: handleFile })
  66784. : Pe.createElement(
  66785. 'i',
  66786. null,
  66787. 'Example values are not available for ',
  66788. Pe.createElement('code', null, L),
  66789. ' media types.'
  66790. );
  66791. }
  66792. if (
  66793. Te &&
  66794. ('application/x-www-form-urlencoded' === L || 0 === L.indexOf('multipart/')) &&
  66795. we.get('properties', (0, qe.OrderedMap)()).size > 0
  66796. ) {
  66797. const s = w('JsonSchemaForm'),
  66798. o = w('ParameterExt'),
  66799. x = we.get('properties', (0, qe.OrderedMap)());
  66800. return (
  66801. (i = qe.Map.isMap(i) ? i : (0, qe.OrderedMap)()),
  66802. Pe.createElement(
  66803. 'div',
  66804. { className: 'table-container' },
  66805. ye && Pe.createElement(ee, { source: ye }),
  66806. Pe.createElement(
  66807. 'table',
  66808. null,
  66809. Pe.createElement(
  66810. 'tbody',
  66811. null,
  66812. qe.Map.isMap(x) &&
  66813. x.entrySeq().map(([x, C]) => {
  66814. if (C.get('readOnly')) return;
  66815. const L = C.get('oneOf')?.get(0)?.toJS(),
  66816. $ = C.get('anyOf')?.get(0)?.toJS();
  66817. C = (0, qe.fromJS)(j.mergeJsonSchema(C.toJS(), L ?? $ ?? {}));
  66818. let z = fe ? getCommonExtensions(C) : null;
  66819. const Y = we.get('required', (0, qe.List)()).includes(x),
  66820. Z = C.get('type'),
  66821. ie = C.get('format'),
  66822. ae = C.get('description'),
  66823. le = i.getIn([x, 'value']),
  66824. ce = i.getIn([x, 'errors']) || _,
  66825. pe = u.get(x) || !1;
  66826. let ye = j.getSampleSchema(C, !1, { includeWriteOnly: !0 });
  66827. !1 === ye && (ye = 'false'),
  66828. 0 === ye && (ye = '0'),
  66829. 'string' != typeof ye && 'object' === Z && (ye = stringify(ye)),
  66830. 'string' == typeof ye && 'array' === Z && (ye = JSON.parse(ye));
  66831. const be = 'string' === Z && ('binary' === ie || 'base64' === ie);
  66832. return Pe.createElement(
  66833. 'tr',
  66834. { key: x, className: 'parameters', 'data-property-name': x },
  66835. Pe.createElement(
  66836. 'td',
  66837. { className: 'parameters-col_name' },
  66838. Pe.createElement(
  66839. 'div',
  66840. { className: Y ? 'parameter__name required' : 'parameter__name' },
  66841. x,
  66842. Y ? Pe.createElement('span', null, ' *') : null
  66843. ),
  66844. Pe.createElement(
  66845. 'div',
  66846. { className: 'parameter__type' },
  66847. Z,
  66848. ie &&
  66849. Pe.createElement(
  66850. 'span',
  66851. { className: 'prop-format' },
  66852. '($',
  66853. ie,
  66854. ')'
  66855. ),
  66856. fe && z.size
  66857. ? z
  66858. .entrySeq()
  66859. .map(([s, i]) =>
  66860. Pe.createElement(o, { key: `${s}-${i}`, xKey: s, xVal: i })
  66861. )
  66862. : null
  66863. ),
  66864. Pe.createElement(
  66865. 'div',
  66866. { className: 'parameter__deprecated' },
  66867. C.get('deprecated') ? 'deprecated' : null
  66868. )
  66869. ),
  66870. Pe.createElement(
  66871. 'td',
  66872. { className: 'parameters-col_description' },
  66873. Pe.createElement(ee, { source: ae }),
  66874. B
  66875. ? Pe.createElement(
  66876. 'div',
  66877. null,
  66878. Pe.createElement(s, {
  66879. fn: j,
  66880. dispatchInitialValue: !be,
  66881. schema: C,
  66882. description: x,
  66883. getComponent: w,
  66884. value: void 0 === le ? ye : le,
  66885. required: Y,
  66886. errors: ce,
  66887. onChange: (s) => {
  66888. V(s, [x]);
  66889. }
  66890. }),
  66891. Y
  66892. ? null
  66893. : Pe.createElement(de, {
  66894. onChange: (s) => U(x, s),
  66895. isIncluded: pe,
  66896. isIncludedOptions: setIsIncludedOptions(x),
  66897. isDisabled: Array.isArray(le)
  66898. ? 0 !== le.length
  66899. : !isEmptyValue(le)
  66900. })
  66901. )
  66902. : null
  66903. )
  66904. );
  66905. })
  66906. )
  66907. )
  66908. )
  66909. );
  66910. }
  66911. const ze = getDefaultRequestBodyValue(o, L, z, j);
  66912. let We = null;
  66913. return (
  66914. getKnownSyntaxHighlighterLanguage(ze) && (We = 'json'),
  66915. Pe.createElement(
  66916. 'div',
  66917. null,
  66918. ye && Pe.createElement(ee, { source: ye }),
  66919. xe
  66920. ? Pe.createElement(ce, {
  66921. userHasEditedBody: s,
  66922. examples: xe,
  66923. currentKey: z,
  66924. currentUserInputValue: i,
  66925. onSelect: (s) => {
  66926. Y(s);
  66927. },
  66928. updateValue: V,
  66929. defaultToFirstExample: !0,
  66930. getComponent: w,
  66931. setRetainRequestBodyValueFlag: Z
  66932. })
  66933. : null,
  66934. B
  66935. ? Pe.createElement(
  66936. 'div',
  66937. null,
  66938. Pe.createElement(ae, {
  66939. value: i,
  66940. errors: _,
  66941. defaultValue: ze,
  66942. onChange: V,
  66943. getComponent: w
  66944. })
  66945. )
  66946. : Pe.createElement(ie, {
  66947. getComponent: w,
  66948. getConfigs: x,
  66949. specSelectors: C,
  66950. expandDepth: 1,
  66951. isExecute: B,
  66952. schema: _e.get('schema'),
  66953. specPath: $.push('content', L),
  66954. example: Pe.createElement(
  66955. le,
  66956. { className: 'body-param__example', language: We },
  66957. stringify(i) || ze
  66958. ),
  66959. includeWriteOnly: !0
  66960. }),
  66961. xe
  66962. ? Pe.createElement(pe, { example: xe.get(z), getComponent: w, getConfigs: x })
  66963. : null
  66964. )
  66965. );
  66966. };
  66967. class operation_link_OperationLink extends Pe.Component {
  66968. render() {
  66969. const { link: s, name: o, getComponent: i } = this.props,
  66970. u = i('Markdown', !0);
  66971. let _ = s.get('operationId') || s.get('operationRef'),
  66972. w = s.get('parameters') && s.get('parameters').toJS(),
  66973. x = s.get('description');
  66974. return Pe.createElement(
  66975. 'div',
  66976. { className: 'operation-link' },
  66977. Pe.createElement(
  66978. 'div',
  66979. { className: 'description' },
  66980. Pe.createElement('b', null, Pe.createElement('code', null, o)),
  66981. x ? Pe.createElement(u, { source: x }) : null
  66982. ),
  66983. Pe.createElement(
  66984. 'pre',
  66985. null,
  66986. 'Operation `',
  66987. _,
  66988. '`',
  66989. Pe.createElement('br', null),
  66990. Pe.createElement('br', null),
  66991. 'Parameters ',
  66992. (function padString(s, o) {
  66993. if ('string' != typeof o) return '';
  66994. return o
  66995. .split('\n')
  66996. .map((o, i) => (i > 0 ? Array(s + 1).join(' ') + o : o))
  66997. .join('\n');
  66998. })(0, JSON.stringify(w, null, 2)) || '{}',
  66999. Pe.createElement('br', null)
  67000. )
  67001. );
  67002. }
  67003. }
  67004. const eA = operation_link_OperationLink,
  67005. components_servers = ({
  67006. servers: s,
  67007. currentServer: o,
  67008. setSelectedServer: i,
  67009. setServerVariableValue: u,
  67010. getServerVariable: _,
  67011. getEffectiveServerValue: w
  67012. }) => {
  67013. const x =
  67014. (s.find((s) => s.get('url') === o) || (0, qe.OrderedMap)()).get('variables') ||
  67015. (0, qe.OrderedMap)(),
  67016. C = 0 !== x.size;
  67017. (0, Pe.useEffect)(() => {
  67018. o || i(s.first()?.get('url'));
  67019. }, []),
  67020. (0, Pe.useEffect)(() => {
  67021. const _ = s.find((s) => s.get('url') === o);
  67022. if (!_) return void i(s.first().get('url'));
  67023. (_.get('variables') || (0, qe.OrderedMap)()).map((s, i) => {
  67024. u({ server: o, key: i, val: s.get('default') || '' });
  67025. });
  67026. }, [o, s]);
  67027. const j = (0, Pe.useCallback)(
  67028. (s) => {
  67029. i(s.target.value);
  67030. },
  67031. [i]
  67032. ),
  67033. L = (0, Pe.useCallback)(
  67034. (s) => {
  67035. const i = s.target.getAttribute('data-variable'),
  67036. _ = s.target.value;
  67037. u({ server: o, key: i, val: _ });
  67038. },
  67039. [u, o]
  67040. );
  67041. return Pe.createElement(
  67042. 'div',
  67043. { className: 'servers' },
  67044. Pe.createElement(
  67045. 'label',
  67046. { htmlFor: 'servers' },
  67047. Pe.createElement(
  67048. 'select',
  67049. { onChange: j, value: o, id: 'servers' },
  67050. s
  67051. .valueSeq()
  67052. .map((s) =>
  67053. Pe.createElement(
  67054. 'option',
  67055. { value: s.get('url'), key: s.get('url') },
  67056. s.get('url'),
  67057. s.get('description') && ` - ${s.get('description')}`
  67058. )
  67059. )
  67060. .toArray()
  67061. )
  67062. ),
  67063. C &&
  67064. Pe.createElement(
  67065. 'div',
  67066. null,
  67067. Pe.createElement(
  67068. 'div',
  67069. { className: 'computed-url' },
  67070. 'Computed URL:',
  67071. Pe.createElement('code', null, w(o))
  67072. ),
  67073. Pe.createElement('h4', null, 'Server variables'),
  67074. Pe.createElement(
  67075. 'table',
  67076. null,
  67077. Pe.createElement(
  67078. 'tbody',
  67079. null,
  67080. x.entrySeq().map(([s, i]) =>
  67081. Pe.createElement(
  67082. 'tr',
  67083. { key: s },
  67084. Pe.createElement('td', null, s),
  67085. Pe.createElement(
  67086. 'td',
  67087. null,
  67088. i.get('enum')
  67089. ? Pe.createElement(
  67090. 'select',
  67091. { 'data-variable': s, onChange: L },
  67092. i
  67093. .get('enum')
  67094. .map((i) =>
  67095. Pe.createElement(
  67096. 'option',
  67097. { selected: i === _(o, s), key: i, value: i },
  67098. i
  67099. )
  67100. )
  67101. )
  67102. : Pe.createElement('input', {
  67103. type: 'text',
  67104. value: _(o, s) || '',
  67105. onChange: L,
  67106. 'data-variable': s
  67107. })
  67108. )
  67109. )
  67110. )
  67111. )
  67112. )
  67113. )
  67114. );
  67115. };
  67116. class ServersContainer extends Pe.Component {
  67117. render() {
  67118. const {
  67119. specSelectors: s,
  67120. oas3Selectors: o,
  67121. oas3Actions: i,
  67122. getComponent: u
  67123. } = this.props,
  67124. _ = s.servers(),
  67125. w = u('Servers');
  67126. return _ && _.size
  67127. ? Pe.createElement(
  67128. 'div',
  67129. null,
  67130. Pe.createElement('span', { className: 'servers-title' }, 'Servers'),
  67131. Pe.createElement(w, {
  67132. servers: _,
  67133. currentServer: o.selectedServer(),
  67134. setSelectedServer: i.setSelectedServer,
  67135. setServerVariableValue: i.setServerVariableValue,
  67136. getServerVariable: o.serverVariableValue,
  67137. getEffectiveServerValue: o.serverEffectiveValue
  67138. })
  67139. )
  67140. : null;
  67141. }
  67142. }
  67143. const tA = Function.prototype;
  67144. class RequestBodyEditor extends Pe.PureComponent {
  67145. static defaultProps = { onChange: tA, userHasEditedBody: !1 };
  67146. constructor(s, o) {
  67147. super(s, o),
  67148. (this.state = { value: stringify(s.value) || s.defaultValue }),
  67149. s.onChange(s.value);
  67150. }
  67151. applyDefaultValue = (s) => {
  67152. const { onChange: o, defaultValue: i } = s || this.props;
  67153. return this.setState({ value: i }), o(i);
  67154. };
  67155. onChange = (s) => {
  67156. this.props.onChange(stringify(s));
  67157. };
  67158. onDomChange = (s) => {
  67159. const o = s.target.value;
  67160. this.setState({ value: o }, () => this.onChange(o));
  67161. };
  67162. UNSAFE_componentWillReceiveProps(s) {
  67163. this.props.value !== s.value &&
  67164. s.value !== this.state.value &&
  67165. this.setState({ value: stringify(s.value) }),
  67166. !s.value && s.defaultValue && this.state.value && this.applyDefaultValue(s);
  67167. }
  67168. render() {
  67169. let { getComponent: s, errors: o } = this.props,
  67170. { value: i } = this.state,
  67171. u = o.size > 0;
  67172. const _ = s('TextArea');
  67173. return Pe.createElement(
  67174. 'div',
  67175. { className: 'body-param' },
  67176. Pe.createElement(_, {
  67177. className: Hn()('body-param__text', { invalid: u }),
  67178. title: o.size ? o.join(', ') : '',
  67179. value: i,
  67180. onChange: this.onDomChange
  67181. })
  67182. );
  67183. }
  67184. }
  67185. class HttpAuth extends Pe.Component {
  67186. constructor(s, o) {
  67187. super(s, o);
  67188. let { name: i, schema: u } = this.props,
  67189. _ = this.getValue();
  67190. this.state = { name: i, schema: u, value: _ };
  67191. }
  67192. getValue() {
  67193. let { name: s, authorized: o } = this.props;
  67194. return o && o.getIn([s, 'value']);
  67195. }
  67196. onChange = (s) => {
  67197. let { onChange: o } = this.props,
  67198. { value: i, name: u } = s.target,
  67199. _ = Object.assign({}, this.state.value);
  67200. u ? (_[u] = i) : (_ = i), this.setState({ value: _ }, () => o(this.state));
  67201. };
  67202. render() {
  67203. let { schema: s, getComponent: o, errSelectors: i, name: u } = this.props;
  67204. const _ = o('Input'),
  67205. w = o('Row'),
  67206. x = o('Col'),
  67207. C = o('authError'),
  67208. j = o('Markdown', !0),
  67209. L = o('JumpToPath', !0),
  67210. B = (s.get('scheme') || '').toLowerCase();
  67211. let $ = this.getValue(),
  67212. V = i.allErrors().filter((s) => s.get('authId') === u);
  67213. if ('basic' === B) {
  67214. let o = $ ? $.get('username') : null;
  67215. return Pe.createElement(
  67216. 'div',
  67217. null,
  67218. Pe.createElement(
  67219. 'h4',
  67220. null,
  67221. Pe.createElement('code', null, u || s.get('name')),
  67222. '  (http, Basic)',
  67223. Pe.createElement(L, { path: ['securityDefinitions', u] })
  67224. ),
  67225. o && Pe.createElement('h6', null, 'Authorized'),
  67226. Pe.createElement(w, null, Pe.createElement(j, { source: s.get('description') })),
  67227. Pe.createElement(
  67228. w,
  67229. null,
  67230. Pe.createElement('label', { htmlFor: 'auth-basic-username' }, 'Username:'),
  67231. o
  67232. ? Pe.createElement('code', null, ' ', o, ' ')
  67233. : Pe.createElement(
  67234. x,
  67235. null,
  67236. Pe.createElement(_, {
  67237. id: 'auth-basic-username',
  67238. type: 'text',
  67239. required: 'required',
  67240. name: 'username',
  67241. 'aria-label': 'auth-basic-username',
  67242. onChange: this.onChange,
  67243. autoFocus: !0
  67244. })
  67245. )
  67246. ),
  67247. Pe.createElement(
  67248. w,
  67249. null,
  67250. Pe.createElement('label', { htmlFor: 'auth-basic-password' }, 'Password:'),
  67251. o
  67252. ? Pe.createElement('code', null, ' ****** ')
  67253. : Pe.createElement(
  67254. x,
  67255. null,
  67256. Pe.createElement(_, {
  67257. id: 'auth-basic-password',
  67258. autoComplete: 'new-password',
  67259. name: 'password',
  67260. type: 'password',
  67261. 'aria-label': 'auth-basic-password',
  67262. onChange: this.onChange
  67263. })
  67264. )
  67265. ),
  67266. V.valueSeq().map((s, o) => Pe.createElement(C, { error: s, key: o }))
  67267. );
  67268. }
  67269. return 'bearer' === B
  67270. ? Pe.createElement(
  67271. 'div',
  67272. null,
  67273. Pe.createElement(
  67274. 'h4',
  67275. null,
  67276. Pe.createElement('code', null, u || s.get('name')),
  67277. '  (http, Bearer)',
  67278. Pe.createElement(L, { path: ['securityDefinitions', u] })
  67279. ),
  67280. $ && Pe.createElement('h6', null, 'Authorized'),
  67281. Pe.createElement(w, null, Pe.createElement(j, { source: s.get('description') })),
  67282. Pe.createElement(
  67283. w,
  67284. null,
  67285. Pe.createElement('label', { htmlFor: 'auth-bearer-value' }, 'Value:'),
  67286. $
  67287. ? Pe.createElement('code', null, ' ****** ')
  67288. : Pe.createElement(
  67289. x,
  67290. null,
  67291. Pe.createElement(_, {
  67292. id: 'auth-bearer-value',
  67293. type: 'text',
  67294. 'aria-label': 'auth-bearer-value',
  67295. onChange: this.onChange,
  67296. autoFocus: !0
  67297. })
  67298. )
  67299. ),
  67300. V.valueSeq().map((s, o) => Pe.createElement(C, { error: s, key: o }))
  67301. )
  67302. : Pe.createElement(
  67303. 'div',
  67304. null,
  67305. Pe.createElement(
  67306. 'em',
  67307. null,
  67308. Pe.createElement('b', null, u),
  67309. ' HTTP authentication: unsupported scheme ',
  67310. `'${B}'`
  67311. )
  67312. );
  67313. }
  67314. }
  67315. class operation_servers_OperationServers extends Pe.Component {
  67316. setSelectedServer = (s) => {
  67317. const { path: o, method: i } = this.props;
  67318. return this.forceUpdate(), this.props.setSelectedServer(s, `${o}:${i}`);
  67319. };
  67320. setServerVariableValue = (s) => {
  67321. const { path: o, method: i } = this.props;
  67322. return (
  67323. this.forceUpdate(),
  67324. this.props.setServerVariableValue({ ...s, namespace: `${o}:${i}` })
  67325. );
  67326. };
  67327. getSelectedServer = () => {
  67328. const { path: s, method: o } = this.props;
  67329. return this.props.getSelectedServer(`${s}:${o}`);
  67330. };
  67331. getServerVariable = (s, o) => {
  67332. const { path: i, method: u } = this.props;
  67333. return this.props.getServerVariable({ namespace: `${i}:${u}`, server: s }, o);
  67334. };
  67335. getEffectiveServerValue = (s) => {
  67336. const { path: o, method: i } = this.props;
  67337. return this.props.getEffectiveServerValue({ server: s, namespace: `${o}:${i}` });
  67338. };
  67339. render() {
  67340. const { operationServers: s, pathServers: o, getComponent: i } = this.props;
  67341. if (!s && !o) return null;
  67342. const u = i('Servers'),
  67343. _ = s || o,
  67344. w = s ? 'operation' : 'path';
  67345. return Pe.createElement(
  67346. 'div',
  67347. { className: 'opblock-section operation-servers' },
  67348. Pe.createElement(
  67349. 'div',
  67350. { className: 'opblock-section-header' },
  67351. Pe.createElement(
  67352. 'div',
  67353. { className: 'tab-header' },
  67354. Pe.createElement('h4', { className: 'opblock-title' }, 'Servers')
  67355. )
  67356. ),
  67357. Pe.createElement(
  67358. 'div',
  67359. { className: 'opblock-description-wrapper' },
  67360. Pe.createElement(
  67361. 'h4',
  67362. { className: 'message' },
  67363. 'These ',
  67364. w,
  67365. '-level options override the global server options.'
  67366. ),
  67367. Pe.createElement(u, {
  67368. servers: _,
  67369. currentServer: this.getSelectedServer(),
  67370. setSelectedServer: this.setSelectedServer,
  67371. setServerVariableValue: this.setServerVariableValue,
  67372. getServerVariable: this.getServerVariable,
  67373. getEffectiveServerValue: this.getEffectiveServerValue
  67374. })
  67375. )
  67376. );
  67377. }
  67378. }
  67379. const rA = {
  67380. Callbacks: callbacks,
  67381. HttpAuth,
  67382. RequestBody: components_request_body,
  67383. Servers: components_servers,
  67384. ServersContainer,
  67385. RequestBodyEditor,
  67386. OperationServers: operation_servers_OperationServers,
  67387. operationLink: eA
  67388. },
  67389. nA = new Remarkable('commonmark');
  67390. nA.block.ruler.enable(['table']), nA.set({ linkTarget: '_blank' });
  67391. const sA = OAS3ComponentWrapFactory(
  67392. ({
  67393. source: s,
  67394. className: o = '',
  67395. getConfigs: i = () => ({ useUnsafeMarkdown: !1 })
  67396. }) => {
  67397. if ('string' != typeof s) return null;
  67398. if (s) {
  67399. const { useUnsafeMarkdown: u } = i(),
  67400. _ = sanitizer(nA.render(s), { useUnsafeMarkdown: u });
  67401. let w;
  67402. return (
  67403. 'string' == typeof _ && (w = _.trim()),
  67404. Pe.createElement('div', {
  67405. dangerouslySetInnerHTML: { __html: w },
  67406. className: Hn()(o, 'renderedMarkdown')
  67407. })
  67408. );
  67409. }
  67410. return null;
  67411. }
  67412. ),
  67413. oA = OAS3ComponentWrapFactory(({ Ori: s, ...o }) => {
  67414. const {
  67415. schema: i,
  67416. getComponent: u,
  67417. errSelectors: _,
  67418. authorized: w,
  67419. onAuthChange: x,
  67420. name: C
  67421. } = o,
  67422. j = u('HttpAuth');
  67423. return 'http' === i.get('type')
  67424. ? Pe.createElement(j, {
  67425. key: C,
  67426. schema: i,
  67427. name: C,
  67428. errSelectors: _,
  67429. authorized: w,
  67430. getComponent: u,
  67431. onChange: x
  67432. })
  67433. : Pe.createElement(s, o);
  67434. }),
  67435. iA = OAS3ComponentWrapFactory(OnlineValidatorBadge);
  67436. class ModelComponent extends Pe.Component {
  67437. render() {
  67438. let { getConfigs: s, schema: o, Ori: i } = this.props,
  67439. u = ['model-box'],
  67440. _ = null;
  67441. return (
  67442. !0 === o.get('deprecated') &&
  67443. (u.push('deprecated'),
  67444. (_ = Pe.createElement(
  67445. 'span',
  67446. { className: 'model-deprecated-warning' },
  67447. 'Deprecated:'
  67448. ))),
  67449. Pe.createElement(
  67450. 'div',
  67451. { className: u.join(' ') },
  67452. _,
  67453. Pe.createElement(
  67454. i,
  67455. Rn()({}, this.props, {
  67456. getConfigs: s,
  67457. depth: 1,
  67458. expandDepth: this.props.expandDepth || 0
  67459. })
  67460. )
  67461. )
  67462. );
  67463. }
  67464. }
  67465. const aA = OAS3ComponentWrapFactory(ModelComponent),
  67466. lA = OAS3ComponentWrapFactory(({ Ori: s, ...o }) => {
  67467. const { schema: i, getComponent: u, errors: _, onChange: w } = o,
  67468. x = i && i.get ? i.get('format') : null,
  67469. C = i && i.get ? i.get('type') : null,
  67470. j = u('Input');
  67471. return C && 'string' === C && x && ('binary' === x || 'base64' === x)
  67472. ? Pe.createElement(j, {
  67473. type: 'file',
  67474. className: _.length ? 'invalid' : '',
  67475. title: _.length ? _ : '',
  67476. onChange: (s) => {
  67477. w(s.target.files[0]);
  67478. },
  67479. disabled: s.isDisabled
  67480. })
  67481. : Pe.createElement(s, o);
  67482. }),
  67483. cA = {
  67484. Markdown: sA,
  67485. AuthItem: oA,
  67486. OpenAPIVersion: (function OAS30ComponentWrapFactory(s) {
  67487. return (o, i) => (u) =>
  67488. 'function' == typeof i.specSelectors?.isOAS30
  67489. ? i.specSelectors.isOAS30()
  67490. ? Pe.createElement(s, Rn()({}, u, i, { Ori: o }))
  67491. : Pe.createElement(o, u)
  67492. : (console.warn("OAS30 wrapper: couldn't get spec"), null);
  67493. })((s) => {
  67494. const { Ori: o } = s;
  67495. return Pe.createElement(o, { oasVersion: '3.0' });
  67496. }),
  67497. JsonSchema_string: lA,
  67498. model: aA,
  67499. onlineValidatorBadge: iA
  67500. },
  67501. uA = 'oas3_set_servers',
  67502. pA = 'oas3_set_request_body_value',
  67503. hA = 'oas3_set_request_body_retain_flag',
  67504. dA = 'oas3_set_request_body_inclusion',
  67505. fA = 'oas3_set_active_examples_member',
  67506. mA = 'oas3_set_request_content_type',
  67507. gA = 'oas3_set_response_content_type',
  67508. yA = 'oas3_set_server_variable_value',
  67509. vA = 'oas3_set_request_body_validate_error',
  67510. bA = 'oas3_clear_request_body_validate_error',
  67511. _A = 'oas3_clear_request_body_value';
  67512. function setSelectedServer(s, o) {
  67513. return { type: uA, payload: { selectedServerUrl: s, namespace: o } };
  67514. }
  67515. function setRequestBodyValue({ value: s, pathMethod: o }) {
  67516. return { type: pA, payload: { value: s, pathMethod: o } };
  67517. }
  67518. const setRetainRequestBodyValueFlag = ({ value: s, pathMethod: o }) => ({
  67519. type: hA,
  67520. payload: { value: s, pathMethod: o }
  67521. });
  67522. function setRequestBodyInclusion({ value: s, pathMethod: o, name: i }) {
  67523. return { type: dA, payload: { value: s, pathMethod: o, name: i } };
  67524. }
  67525. function setActiveExamplesMember({
  67526. name: s,
  67527. pathMethod: o,
  67528. contextType: i,
  67529. contextName: u
  67530. }) {
  67531. return { type: fA, payload: { name: s, pathMethod: o, contextType: i, contextName: u } };
  67532. }
  67533. function setRequestContentType({ value: s, pathMethod: o }) {
  67534. return { type: mA, payload: { value: s, pathMethod: o } };
  67535. }
  67536. function setResponseContentType({ value: s, path: o, method: i }) {
  67537. return { type: gA, payload: { value: s, path: o, method: i } };
  67538. }
  67539. function setServerVariableValue({ server: s, namespace: o, key: i, val: u }) {
  67540. return { type: yA, payload: { server: s, namespace: o, key: i, val: u } };
  67541. }
  67542. const setRequestBodyValidateError = ({ path: s, method: o, validationErrors: i }) => ({
  67543. type: vA,
  67544. payload: { path: s, method: o, validationErrors: i }
  67545. }),
  67546. clearRequestBodyValidateError = ({ path: s, method: o }) => ({
  67547. type: bA,
  67548. payload: { path: s, method: o }
  67549. }),
  67550. initRequestBodyValidateError = ({ pathMethod: s }) => ({
  67551. type: bA,
  67552. payload: { path: s[0], method: s[1] }
  67553. }),
  67554. clearRequestBodyValue = ({ pathMethod: s }) => ({ type: _A, payload: { pathMethod: s } });
  67555. var EA = __webpack_require__(60680),
  67556. wA = __webpack_require__.n(EA);
  67557. const oas3_selectors_onlyOAS3 =
  67558. (s) =>
  67559. (o, ...i) =>
  67560. (u) => {
  67561. if (u.getSystem().specSelectors.isOAS3()) {
  67562. const _ = s(o, ...i);
  67563. return 'function' == typeof _ ? _(u) : _;
  67564. }
  67565. return null;
  67566. };
  67567. const SA = oas3_selectors_onlyOAS3((s, o) => {
  67568. const i = o ? [o, 'selectedServer'] : ['selectedServer'];
  67569. return s.getIn(i) || '';
  67570. }),
  67571. xA = oas3_selectors_onlyOAS3(
  67572. (s, o, i) => s.getIn(['requestData', o, i, 'bodyValue']) || null
  67573. ),
  67574. kA = oas3_selectors_onlyOAS3(
  67575. (s, o, i) => s.getIn(['requestData', o, i, 'retainBodyValue']) || !1
  67576. ),
  67577. selectDefaultRequestBodyValue = (s, o, i) => (s) => {
  67578. const { oas3Selectors: u, specSelectors: _, fn: w } = s.getSystem();
  67579. if (_.isOAS3()) {
  67580. const s = u.requestContentType(o, i);
  67581. if (s)
  67582. return getDefaultRequestBodyValue(
  67583. _.specResolvedSubtree(['paths', o, i, 'requestBody']),
  67584. s,
  67585. u.activeExamplesMember(o, i, 'requestBody', 'requestBody'),
  67586. w
  67587. );
  67588. }
  67589. return null;
  67590. },
  67591. CA = oas3_selectors_onlyOAS3((s, o, i) => (s) => {
  67592. const { oas3Selectors: u, specSelectors: _, fn: w } = s;
  67593. let x = !1;
  67594. const C = u.requestContentType(o, i);
  67595. let j = u.requestBodyValue(o, i);
  67596. const L = _.specResolvedSubtree(['paths', o, i, 'requestBody']);
  67597. if (!L) return !1;
  67598. if (
  67599. (qe.Map.isMap(j) &&
  67600. (j = stringify(
  67601. j.mapEntries((s) => (qe.Map.isMap(s[1]) ? [s[0], s[1].get('value')] : s)).toJS()
  67602. )),
  67603. qe.List.isList(j) && (j = stringify(j)),
  67604. C)
  67605. ) {
  67606. const s = getDefaultRequestBodyValue(
  67607. L,
  67608. C,
  67609. u.activeExamplesMember(o, i, 'requestBody', 'requestBody'),
  67610. w
  67611. );
  67612. x = !!j && j !== s;
  67613. }
  67614. return x;
  67615. }),
  67616. OA = oas3_selectors_onlyOAS3(
  67617. (s, o, i) => s.getIn(['requestData', o, i, 'bodyInclusion']) || (0, qe.Map)()
  67618. ),
  67619. AA = oas3_selectors_onlyOAS3(
  67620. (s, o, i) => s.getIn(['requestData', o, i, 'errors']) || null
  67621. ),
  67622. jA = oas3_selectors_onlyOAS3(
  67623. (s, o, i, u, _) => s.getIn(['examples', o, i, u, _, 'activeExample']) || null
  67624. ),
  67625. IA = oas3_selectors_onlyOAS3(
  67626. (s, o, i) => s.getIn(['requestData', o, i, 'requestContentType']) || null
  67627. ),
  67628. PA = oas3_selectors_onlyOAS3(
  67629. (s, o, i) => s.getIn(['requestData', o, i, 'responseContentType']) || null
  67630. ),
  67631. MA = oas3_selectors_onlyOAS3((s, o, i) => {
  67632. let u;
  67633. if ('string' != typeof o) {
  67634. const { server: s, namespace: _ } = o;
  67635. u = _ ? [_, 'serverVariableValues', s, i] : ['serverVariableValues', s, i];
  67636. } else {
  67637. u = ['serverVariableValues', o, i];
  67638. }
  67639. return s.getIn(u) || null;
  67640. }),
  67641. TA = oas3_selectors_onlyOAS3((s, o) => {
  67642. let i;
  67643. if ('string' != typeof o) {
  67644. const { server: s, namespace: u } = o;
  67645. i = u ? [u, 'serverVariableValues', s] : ['serverVariableValues', s];
  67646. } else {
  67647. i = ['serverVariableValues', o];
  67648. }
  67649. return s.getIn(i) || (0, qe.OrderedMap)();
  67650. }),
  67651. NA = oas3_selectors_onlyOAS3((s, o) => {
  67652. var i, u;
  67653. if ('string' != typeof o) {
  67654. const { server: _, namespace: w } = o;
  67655. (u = _),
  67656. (i = w
  67657. ? s.getIn([w, 'serverVariableValues', u])
  67658. : s.getIn(['serverVariableValues', u]));
  67659. } else (u = o), (i = s.getIn(['serverVariableValues', u]));
  67660. i = i || (0, qe.OrderedMap)();
  67661. let _ = u;
  67662. return (
  67663. i.map((s, o) => {
  67664. _ = _.replace(new RegExp(`{${wA()(o)}}`, 'g'), s);
  67665. }),
  67666. _
  67667. );
  67668. }),
  67669. RA = (function validateRequestBodyIsRequired(s) {
  67670. return (...o) =>
  67671. (i) => {
  67672. const u = i.getSystem().specSelectors.specJson();
  67673. let _ = [...o][1] || [];
  67674. return !u.getIn(['paths', ..._, 'requestBody', 'required']) || s(...o);
  67675. };
  67676. })((s, o) =>
  67677. ((s, o) => ((o = o || []), !!s.getIn(['requestData', ...o, 'bodyValue'])))(s, o)
  67678. ),
  67679. validateShallowRequired = (
  67680. s,
  67681. {
  67682. oas3RequiredRequestBodyContentType: o,
  67683. oas3RequestContentType: i,
  67684. oas3RequestBodyValue: u
  67685. }
  67686. ) => {
  67687. let _ = [];
  67688. if (!qe.Map.isMap(u)) return _;
  67689. let w = [];
  67690. return (
  67691. Object.keys(o.requestContentType).forEach((s) => {
  67692. if (s === i) {
  67693. o.requestContentType[s].forEach((s) => {
  67694. w.indexOf(s) < 0 && w.push(s);
  67695. });
  67696. }
  67697. }),
  67698. w.forEach((s) => {
  67699. u.getIn([s, 'value']) || _.push(s);
  67700. }),
  67701. _
  67702. );
  67703. },
  67704. DA = Ss()(['get', 'put', 'post', 'delete', 'options', 'head', 'patch', 'trace']),
  67705. LA = {
  67706. [uA]: (s, { payload: { selectedServerUrl: o, namespace: i } }) => {
  67707. const u = i ? [i, 'selectedServer'] : ['selectedServer'];
  67708. return s.setIn(u, o);
  67709. },
  67710. [pA]: (s, { payload: { value: o, pathMethod: i } }) => {
  67711. let [u, _] = i;
  67712. if (!qe.Map.isMap(o)) return s.setIn(['requestData', u, _, 'bodyValue'], o);
  67713. let w,
  67714. x = s.getIn(['requestData', u, _, 'bodyValue']) || (0, qe.Map)();
  67715. qe.Map.isMap(x) || (x = (0, qe.Map)());
  67716. const [...C] = o.keys();
  67717. return (
  67718. C.forEach((s) => {
  67719. let i = o.getIn([s]);
  67720. (x.has(s) && qe.Map.isMap(i)) || (w = x.setIn([s, 'value'], i));
  67721. }),
  67722. s.setIn(['requestData', u, _, 'bodyValue'], w)
  67723. );
  67724. },
  67725. [hA]: (s, { payload: { value: o, pathMethod: i } }) => {
  67726. let [u, _] = i;
  67727. return s.setIn(['requestData', u, _, 'retainBodyValue'], o);
  67728. },
  67729. [dA]: (s, { payload: { value: o, pathMethod: i, name: u } }) => {
  67730. let [_, w] = i;
  67731. return s.setIn(['requestData', _, w, 'bodyInclusion', u], o);
  67732. },
  67733. [fA]: (s, { payload: { name: o, pathMethod: i, contextType: u, contextName: _ } }) => {
  67734. let [w, x] = i;
  67735. return s.setIn(['examples', w, x, u, _, 'activeExample'], o);
  67736. },
  67737. [mA]: (s, { payload: { value: o, pathMethod: i } }) => {
  67738. let [u, _] = i;
  67739. return s.setIn(['requestData', u, _, 'requestContentType'], o);
  67740. },
  67741. [gA]: (s, { payload: { value: o, path: i, method: u } }) =>
  67742. s.setIn(['requestData', i, u, 'responseContentType'], o),
  67743. [yA]: (s, { payload: { server: o, namespace: i, key: u, val: _ } }) => {
  67744. const w = i ? [i, 'serverVariableValues', o, u] : ['serverVariableValues', o, u];
  67745. return s.setIn(w, _);
  67746. },
  67747. [vA]: (s, { payload: { path: o, method: i, validationErrors: u } }) => {
  67748. let _ = [];
  67749. if ((_.push('Required field is not provided'), u.missingBodyValue))
  67750. return s.setIn(['requestData', o, i, 'errors'], (0, qe.fromJS)(_));
  67751. if (u.missingRequiredKeys && u.missingRequiredKeys.length > 0) {
  67752. const { missingRequiredKeys: w } = u;
  67753. return s.updateIn(['requestData', o, i, 'bodyValue'], (0, qe.fromJS)({}), (s) =>
  67754. w.reduce((s, o) => s.setIn([o, 'errors'], (0, qe.fromJS)(_)), s)
  67755. );
  67756. }
  67757. return console.warn('unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR'), s;
  67758. },
  67759. [bA]: (s, { payload: { path: o, method: i } }) => {
  67760. const u = s.getIn(['requestData', o, i, 'bodyValue']);
  67761. if (!qe.Map.isMap(u))
  67762. return s.setIn(['requestData', o, i, 'errors'], (0, qe.fromJS)([]));
  67763. const [..._] = u.keys();
  67764. return _
  67765. ? s.updateIn(['requestData', o, i, 'bodyValue'], (0, qe.fromJS)({}), (s) =>
  67766. _.reduce((s, o) => s.setIn([o, 'errors'], (0, qe.fromJS)([])), s)
  67767. )
  67768. : s;
  67769. },
  67770. [_A]: (s, { payload: { pathMethod: o } }) => {
  67771. let [i, u] = o;
  67772. const _ = s.getIn(['requestData', i, u, 'bodyValue']);
  67773. return _
  67774. ? qe.Map.isMap(_)
  67775. ? s.setIn(['requestData', i, u, 'bodyValue'], (0, qe.Map)())
  67776. : s.setIn(['requestData', i, u, 'bodyValue'], '')
  67777. : s;
  67778. }
  67779. };
  67780. function oas3() {
  67781. return {
  67782. components: rA,
  67783. wrapComponents: cA,
  67784. statePlugins: {
  67785. spec: { wrapSelectors: be, selectors: we },
  67786. auth: { wrapSelectors: _e },
  67787. oas3: { actions: { ...Se }, reducers: LA, selectors: { ...xe } }
  67788. }
  67789. };
  67790. }
  67791. const webhooks = ({ specSelectors: s, getComponent: o }) => {
  67792. const i = s.selectWebhooksOperations(),
  67793. u = Object.keys(i),
  67794. _ = o('OperationContainer', !0);
  67795. return 0 === u.length
  67796. ? null
  67797. : Pe.createElement(
  67798. 'div',
  67799. { className: 'webhooks' },
  67800. Pe.createElement('h2', null, 'Webhooks'),
  67801. u.map((s) =>
  67802. Pe.createElement(
  67803. 'div',
  67804. { key: `${s}-webhook` },
  67805. i[s].map((o) =>
  67806. Pe.createElement(_, {
  67807. key: `${s}-${o.method}-webhook`,
  67808. op: o.operation,
  67809. tag: 'webhooks',
  67810. method: o.method,
  67811. path: s,
  67812. specPath: (0, qe.List)(o.specPath),
  67813. allowTryItOut: !1
  67814. })
  67815. )
  67816. )
  67817. )
  67818. );
  67819. },
  67820. oas31_components_license = ({ getComponent: s, specSelectors: o }) => {
  67821. const i = o.selectLicenseNameField(),
  67822. u = o.selectLicenseUrl(),
  67823. _ = s('Link');
  67824. return Pe.createElement(
  67825. 'div',
  67826. { className: 'info__license' },
  67827. u
  67828. ? Pe.createElement(
  67829. 'div',
  67830. { className: 'info__license__url' },
  67831. Pe.createElement(_, { target: '_blank', href: sanitizeUrl(u) }, i)
  67832. )
  67833. : Pe.createElement('span', null, i)
  67834. );
  67835. },
  67836. oas31_components_contact = ({ getComponent: s, specSelectors: o }) => {
  67837. const i = o.selectContactNameField(),
  67838. u = o.selectContactUrl(),
  67839. _ = o.selectContactEmailField(),
  67840. w = s('Link');
  67841. return Pe.createElement(
  67842. 'div',
  67843. { className: 'info__contact' },
  67844. u &&
  67845. Pe.createElement(
  67846. 'div',
  67847. null,
  67848. Pe.createElement(w, { href: sanitizeUrl(u), target: '_blank' }, i, ' - Website')
  67849. ),
  67850. _ &&
  67851. Pe.createElement(
  67852. w,
  67853. { href: sanitizeUrl(`mailto:${_}`) },
  67854. u ? `Send email to ${i}` : `Contact ${i}`
  67855. )
  67856. );
  67857. },
  67858. oas31_components_info = ({ getComponent: s, specSelectors: o }) => {
  67859. const i = o.version(),
  67860. u = o.url(),
  67861. _ = o.basePath(),
  67862. w = o.host(),
  67863. x = o.selectInfoSummaryField(),
  67864. C = o.selectInfoDescriptionField(),
  67865. j = o.selectInfoTitleField(),
  67866. L = o.selectInfoTermsOfServiceUrl(),
  67867. B = o.selectExternalDocsUrl(),
  67868. $ = o.selectExternalDocsDescriptionField(),
  67869. V = o.contact(),
  67870. U = o.license(),
  67871. z = s('Markdown', !0),
  67872. Y = s('Link'),
  67873. Z = s('VersionStamp'),
  67874. ee = s('OpenAPIVersion'),
  67875. ie = s('InfoUrl'),
  67876. ae = s('InfoBasePath'),
  67877. le = s('License', !0),
  67878. ce = s('Contact', !0),
  67879. pe = s('JsonSchemaDialect', !0);
  67880. return Pe.createElement(
  67881. 'div',
  67882. { className: 'info' },
  67883. Pe.createElement(
  67884. 'hgroup',
  67885. { className: 'main' },
  67886. Pe.createElement(
  67887. 'h2',
  67888. { className: 'title' },
  67889. j,
  67890. Pe.createElement(
  67891. 'span',
  67892. null,
  67893. i && Pe.createElement(Z, { version: i }),
  67894. Pe.createElement(ee, { oasVersion: '3.1' })
  67895. )
  67896. ),
  67897. (w || _) && Pe.createElement(ae, { host: w, basePath: _ }),
  67898. u && Pe.createElement(ie, { getComponent: s, url: u })
  67899. ),
  67900. x && Pe.createElement('p', { className: 'info__summary' }, x),
  67901. Pe.createElement(
  67902. 'div',
  67903. { className: 'info__description description' },
  67904. Pe.createElement(z, { source: C })
  67905. ),
  67906. L &&
  67907. Pe.createElement(
  67908. 'div',
  67909. { className: 'info__tos' },
  67910. Pe.createElement(
  67911. Y,
  67912. { target: '_blank', href: sanitizeUrl(L) },
  67913. 'Terms of service'
  67914. )
  67915. ),
  67916. V.size > 0 && Pe.createElement(ce, null),
  67917. U.size > 0 && Pe.createElement(le, null),
  67918. B &&
  67919. Pe.createElement(
  67920. Y,
  67921. { className: 'info__extdocs', target: '_blank', href: sanitizeUrl(B) },
  67922. $ || B
  67923. ),
  67924. Pe.createElement(pe, null)
  67925. );
  67926. },
  67927. json_schema_dialect = ({ getComponent: s, specSelectors: o }) => {
  67928. const i = o.selectJsonSchemaDialectField(),
  67929. u = o.selectJsonSchemaDialectDefault(),
  67930. _ = s('Link');
  67931. return Pe.createElement(
  67932. Pe.Fragment,
  67933. null,
  67934. i &&
  67935. i === u &&
  67936. Pe.createElement(
  67937. 'p',
  67938. { className: 'info__jsonschemadialect' },
  67939. 'JSON Schema dialect:',
  67940. ' ',
  67941. Pe.createElement(_, { target: '_blank', href: sanitizeUrl(i) }, i)
  67942. ),
  67943. i &&
  67944. i !== u &&
  67945. Pe.createElement(
  67946. 'div',
  67947. { className: 'error-wrapper' },
  67948. Pe.createElement(
  67949. 'div',
  67950. { className: 'no-margin' },
  67951. Pe.createElement(
  67952. 'div',
  67953. { className: 'errors' },
  67954. Pe.createElement(
  67955. 'div',
  67956. { className: 'errors-wrapper' },
  67957. Pe.createElement('h4', { className: 'center' }, 'Warning'),
  67958. Pe.createElement(
  67959. 'p',
  67960. { className: 'message' },
  67961. Pe.createElement('strong', null, 'OpenAPI.jsonSchemaDialect'),
  67962. ' field contains a value different from the default value of',
  67963. ' ',
  67964. Pe.createElement(_, { target: '_blank', href: u }, u),
  67965. '. Values different from the default one are currently not supported. Please either omit the field or provide it with the default value.'
  67966. )
  67967. )
  67968. )
  67969. )
  67970. )
  67971. );
  67972. },
  67973. version_pragma_filter = ({
  67974. bypass: s,
  67975. isSwagger2: o,
  67976. isOAS3: i,
  67977. isOAS31: u,
  67978. alsoShow: _,
  67979. children: w
  67980. }) =>
  67981. s
  67982. ? Pe.createElement('div', null, w)
  67983. : o && (i || u)
  67984. ? Pe.createElement(
  67985. 'div',
  67986. { className: 'version-pragma' },
  67987. _,
  67988. Pe.createElement(
  67989. 'div',
  67990. { className: 'version-pragma__message version-pragma__message--ambiguous' },
  67991. Pe.createElement(
  67992. 'div',
  67993. null,
  67994. Pe.createElement('h3', null, 'Unable to render this definition'),
  67995. Pe.createElement(
  67996. 'p',
  67997. null,
  67998. Pe.createElement('code', null, 'swagger'),
  67999. ' and ',
  68000. Pe.createElement('code', null, 'openapi'),
  68001. ' fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.'
  68002. ),
  68003. Pe.createElement(
  68004. 'p',
  68005. null,
  68006. 'Supported version fields are ',
  68007. Pe.createElement('code', null, 'swagger: "2.0"'),
  68008. ' and those that match ',
  68009. Pe.createElement('code', null, 'openapi: 3.x.y'),
  68010. ' (for example,',
  68011. ' ',
  68012. Pe.createElement('code', null, 'openapi: 3.1.0'),
  68013. ').'
  68014. )
  68015. )
  68016. )
  68017. )
  68018. : o || i || u
  68019. ? Pe.createElement('div', null, w)
  68020. : Pe.createElement(
  68021. 'div',
  68022. { className: 'version-pragma' },
  68023. _,
  68024. Pe.createElement(
  68025. 'div',
  68026. { className: 'version-pragma__message version-pragma__message--missing' },
  68027. Pe.createElement(
  68028. 'div',
  68029. null,
  68030. Pe.createElement('h3', null, 'Unable to render this definition'),
  68031. Pe.createElement(
  68032. 'p',
  68033. null,
  68034. 'The provided definition does not specify a valid version field.'
  68035. ),
  68036. Pe.createElement(
  68037. 'p',
  68038. null,
  68039. 'Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ',
  68040. Pe.createElement('code', null, 'swagger: "2.0"'),
  68041. ' and those that match ',
  68042. Pe.createElement('code', null, 'openapi: 3.x.y'),
  68043. ' (for example,',
  68044. ' ',
  68045. Pe.createElement('code', null, 'openapi: 3.1.0'),
  68046. ').'
  68047. )
  68048. )
  68049. )
  68050. ),
  68051. getModelName = (s) =>
  68052. 'string' == typeof s && s.includes('#/components/schemas/')
  68053. ? ((s) => {
  68054. const o = s.replace(/~1/g, '/').replace(/~0/g, '~');
  68055. try {
  68056. return decodeURIComponent(o);
  68057. } catch {
  68058. return o;
  68059. }
  68060. })(s.replace(/^.*#\/components\/schemas\//, ''))
  68061. : null,
  68062. BA = (0, Pe.forwardRef)(({ schema: s, getComponent: o, onToggle: i = () => {} }, u) => {
  68063. const _ = o('JSONSchema202012'),
  68064. w = getModelName(s.get('$$ref')),
  68065. x = (0, Pe.useCallback)(
  68066. (s, o) => {
  68067. i(w, o);
  68068. },
  68069. [w, i]
  68070. );
  68071. return Pe.createElement(_, { name: w, schema: s.toJS(), ref: u, onExpand: x });
  68072. }),
  68073. FA = BA,
  68074. models = ({
  68075. specActions: s,
  68076. specSelectors: o,
  68077. layoutSelectors: i,
  68078. layoutActions: u,
  68079. getComponent: _,
  68080. getConfigs: w,
  68081. fn: x
  68082. }) => {
  68083. const C = o.selectSchemas(),
  68084. j = Object.keys(C).length > 0,
  68085. L = ['components', 'schemas'],
  68086. { docExpansion: B, defaultModelsExpandDepth: $ } = w(),
  68087. V = $ > 0 && 'none' !== B,
  68088. U = i.isShown(L, V),
  68089. z = _('Collapse'),
  68090. Y = _('JSONSchema202012'),
  68091. Z = _('ArrowUpIcon'),
  68092. ee = _('ArrowDownIcon'),
  68093. { getTitle: ie } = x.jsonSchema202012.useFn();
  68094. (0, Pe.useEffect)(() => {
  68095. const i = U && $ > 1,
  68096. u = null != o.specResolvedSubtree(L);
  68097. i && !u && s.requestResolvedSubtree(L);
  68098. }, [U, $]);
  68099. const ae = (0, Pe.useCallback)(() => {
  68100. u.show(L, !U);
  68101. }, [U]),
  68102. le = (0, Pe.useCallback)((s) => {
  68103. null !== s && u.readyToScroll(L, s);
  68104. }, []),
  68105. handleJSONSchema202012Ref = (s) => (o) => {
  68106. null !== o && u.readyToScroll([...L, s], o);
  68107. },
  68108. handleJSONSchema202012Expand = (i) => (u, _) => {
  68109. if (_) {
  68110. const u = [...L, i];
  68111. null != o.specResolvedSubtree(u) || s.requestResolvedSubtree([...L, i]);
  68112. }
  68113. };
  68114. return !j || $ < 0
  68115. ? null
  68116. : Pe.createElement(
  68117. 'section',
  68118. { className: Hn()('models', { 'is-open': U }), ref: le },
  68119. Pe.createElement(
  68120. 'h4',
  68121. null,
  68122. Pe.createElement(
  68123. 'button',
  68124. { 'aria-expanded': U, className: 'models-control', onClick: ae },
  68125. Pe.createElement('span', null, 'Schemas'),
  68126. U ? Pe.createElement(Z, null) : Pe.createElement(ee, null)
  68127. )
  68128. ),
  68129. Pe.createElement(
  68130. z,
  68131. { isOpened: U },
  68132. Object.entries(C).map(([s, o]) => {
  68133. const i = ie(o, { lookup: 'basic' }) || s;
  68134. return Pe.createElement(Y, {
  68135. key: s,
  68136. ref: handleJSONSchema202012Ref(s),
  68137. schema: o,
  68138. name: i,
  68139. onExpand: handleJSONSchema202012Expand(s)
  68140. });
  68141. })
  68142. )
  68143. );
  68144. },
  68145. mutual_tls_auth = ({ schema: s, getComponent: o }) => {
  68146. const i = o('JumpToPath', !0);
  68147. return Pe.createElement(
  68148. 'div',
  68149. null,
  68150. Pe.createElement(
  68151. 'h4',
  68152. null,
  68153. s.get('name'),
  68154. ' (mutualTLS)',
  68155. ' ',
  68156. Pe.createElement(i, { path: ['securityDefinitions', s.get('name')] })
  68157. ),
  68158. Pe.createElement(
  68159. 'p',
  68160. null,
  68161. 'Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser.'
  68162. ),
  68163. Pe.createElement('p', null, s.get('description'))
  68164. );
  68165. };
  68166. class auths_Auths extends Pe.Component {
  68167. constructor(s, o) {
  68168. super(s, o), (this.state = {});
  68169. }
  68170. onAuthChange = (s) => {
  68171. let { name: o } = s;
  68172. this.setState({ [o]: s });
  68173. };
  68174. submitAuth = (s) => {
  68175. s.preventDefault();
  68176. let { authActions: o } = this.props;
  68177. o.authorizeWithPersistOption(this.state);
  68178. };
  68179. logoutClick = (s) => {
  68180. s.preventDefault();
  68181. let { authActions: o, definitions: i } = this.props,
  68182. u = i.map((s, o) => o).toArray();
  68183. this.setState(u.reduce((s, o) => ((s[o] = ''), s), {})), o.logoutWithPersistOption(u);
  68184. };
  68185. close = (s) => {
  68186. s.preventDefault();
  68187. let { authActions: o } = this.props;
  68188. o.showDefinitions(!1);
  68189. };
  68190. render() {
  68191. let { definitions: s, getComponent: o, authSelectors: i, errSelectors: u } = this.props;
  68192. const _ = o('AuthItem'),
  68193. w = o('oauth2', !0),
  68194. x = o('Button'),
  68195. C = i.authorized(),
  68196. j = s.filter((s, o) => !!C.get(o)),
  68197. L = s.filter((s) => 'oauth2' !== s.get('type') && 'mutualTLS' !== s.get('type')),
  68198. B = s.filter((s) => 'oauth2' === s.get('type')),
  68199. $ = s.filter((s) => 'mutualTLS' === s.get('type'));
  68200. return Pe.createElement(
  68201. 'div',
  68202. { className: 'auth-container' },
  68203. L.size > 0 &&
  68204. Pe.createElement(
  68205. 'form',
  68206. { onSubmit: this.submitAuth },
  68207. L.map((s, i) =>
  68208. Pe.createElement(_, {
  68209. key: i,
  68210. schema: s,
  68211. name: i,
  68212. getComponent: o,
  68213. onAuthChange: this.onAuthChange,
  68214. authorized: C,
  68215. errSelectors: u
  68216. })
  68217. ).toArray(),
  68218. Pe.createElement(
  68219. 'div',
  68220. { className: 'auth-btn-wrapper' },
  68221. L.size === j.size
  68222. ? Pe.createElement(
  68223. x,
  68224. {
  68225. className: 'btn modal-btn auth',
  68226. onClick: this.logoutClick,
  68227. 'aria-label': 'Remove authorization'
  68228. },
  68229. 'Logout'
  68230. )
  68231. : Pe.createElement(
  68232. x,
  68233. {
  68234. type: 'submit',
  68235. className: 'btn modal-btn auth authorize',
  68236. 'aria-label': 'Apply credentials'
  68237. },
  68238. 'Authorize'
  68239. ),
  68240. Pe.createElement(
  68241. x,
  68242. { className: 'btn modal-btn auth btn-done', onClick: this.close },
  68243. 'Close'
  68244. )
  68245. )
  68246. ),
  68247. B.size > 0
  68248. ? Pe.createElement(
  68249. 'div',
  68250. null,
  68251. Pe.createElement(
  68252. 'div',
  68253. { className: 'scope-def' },
  68254. Pe.createElement(
  68255. 'p',
  68256. null,
  68257. 'Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes.'
  68258. ),
  68259. Pe.createElement(
  68260. 'p',
  68261. null,
  68262. 'API requires the following scopes. Select which ones you want to grant to Swagger UI.'
  68263. )
  68264. ),
  68265. s
  68266. .filter((s) => 'oauth2' === s.get('type'))
  68267. .map((s, o) =>
  68268. Pe.createElement(
  68269. 'div',
  68270. { key: o },
  68271. Pe.createElement(w, { authorized: C, schema: s, name: o })
  68272. )
  68273. )
  68274. .toArray()
  68275. )
  68276. : null,
  68277. $.size > 0 &&
  68278. Pe.createElement(
  68279. 'div',
  68280. null,
  68281. $.map((s, i) =>
  68282. Pe.createElement(_, {
  68283. key: i,
  68284. schema: s,
  68285. name: i,
  68286. getComponent: o,
  68287. onAuthChange: this.onAuthChange,
  68288. authorized: C,
  68289. errSelectors: u
  68290. })
  68291. ).toArray()
  68292. )
  68293. );
  68294. }
  68295. }
  68296. const qA = auths_Auths,
  68297. isOAS31 = (s) => {
  68298. const o = s.get('openapi');
  68299. return 'string' == typeof o && /^3\.1\.(?:[1-9]\d*|0)$/.test(o);
  68300. },
  68301. fn_createOnlyOAS31Selector =
  68302. (s) =>
  68303. (o, ...i) =>
  68304. (u) => {
  68305. if (u.getSystem().specSelectors.isOAS31()) {
  68306. const _ = s(o, ...i);
  68307. return 'function' == typeof _ ? _(u) : _;
  68308. }
  68309. return null;
  68310. },
  68311. createOnlyOAS31SelectorWrapper =
  68312. (s) =>
  68313. (o, i) =>
  68314. (u, ..._) => {
  68315. if (i.getSystem().specSelectors.isOAS31()) {
  68316. const w = s(u, ..._);
  68317. return 'function' == typeof w ? w(o, i) : w;
  68318. }
  68319. return o(..._);
  68320. },
  68321. fn_createSystemSelector =
  68322. (s) =>
  68323. (o, ...i) =>
  68324. (u) => {
  68325. const _ = s(o, u, ...i);
  68326. return 'function' == typeof _ ? _(u) : _;
  68327. },
  68328. createOnlyOAS31ComponentWrapper = (s) => (o, i) => (u) =>
  68329. i.specSelectors.isOAS31()
  68330. ? Pe.createElement(s, Rn()({}, u, { originalComponent: o, getSystem: i.getSystem }))
  68331. : Pe.createElement(o, u),
  68332. $A = createOnlyOAS31ComponentWrapper(({ getSystem: s }) => {
  68333. const o = s().getComponent('OAS31License', !0);
  68334. return Pe.createElement(o, null);
  68335. }),
  68336. VA = createOnlyOAS31ComponentWrapper(({ getSystem: s }) => {
  68337. const o = s().getComponent('OAS31Contact', !0);
  68338. return Pe.createElement(o, null);
  68339. }),
  68340. UA = createOnlyOAS31ComponentWrapper(({ getSystem: s }) => {
  68341. const o = s().getComponent('OAS31Info', !0);
  68342. return Pe.createElement(o, null);
  68343. }),
  68344. zA = createOnlyOAS31ComponentWrapper(({ getSystem: s, ...o }) => {
  68345. const i = s(),
  68346. { getComponent: u, fn: _, getConfigs: w } = i,
  68347. x = w(),
  68348. C = u('OAS31Model'),
  68349. j = u('JSONSchema202012'),
  68350. L = u('JSONSchema202012Keyword$schema'),
  68351. B = u('JSONSchema202012Keyword$vocabulary'),
  68352. $ = u('JSONSchema202012Keyword$id'),
  68353. V = u('JSONSchema202012Keyword$anchor'),
  68354. U = u('JSONSchema202012Keyword$dynamicAnchor'),
  68355. z = u('JSONSchema202012Keyword$ref'),
  68356. Y = u('JSONSchema202012Keyword$dynamicRef'),
  68357. Z = u('JSONSchema202012Keyword$defs'),
  68358. ee = u('JSONSchema202012Keyword$comment'),
  68359. ie = u('JSONSchema202012KeywordAllOf'),
  68360. ae = u('JSONSchema202012KeywordAnyOf'),
  68361. le = u('JSONSchema202012KeywordOneOf'),
  68362. ce = u('JSONSchema202012KeywordNot'),
  68363. pe = u('JSONSchema202012KeywordIf'),
  68364. de = u('JSONSchema202012KeywordThen'),
  68365. fe = u('JSONSchema202012KeywordElse'),
  68366. ye = u('JSONSchema202012KeywordDependentSchemas'),
  68367. be = u('JSONSchema202012KeywordPrefixItems'),
  68368. _e = u('JSONSchema202012KeywordItems'),
  68369. we = u('JSONSchema202012KeywordContains'),
  68370. Se = u('JSONSchema202012KeywordProperties'),
  68371. xe = u('JSONSchema202012KeywordPatternProperties'),
  68372. Te = u('JSONSchema202012KeywordAdditionalProperties'),
  68373. Re = u('JSONSchema202012KeywordPropertyNames'),
  68374. qe = u('JSONSchema202012KeywordUnevaluatedItems'),
  68375. $e = u('JSONSchema202012KeywordUnevaluatedProperties'),
  68376. ze = u('JSONSchema202012KeywordType'),
  68377. We = u('JSONSchema202012KeywordEnum'),
  68378. He = u('JSONSchema202012KeywordConst'),
  68379. Ye = u('JSONSchema202012KeywordConstraint'),
  68380. Xe = u('JSONSchema202012KeywordDependentRequired'),
  68381. Qe = u('JSONSchema202012KeywordContentSchema'),
  68382. et = u('JSONSchema202012KeywordTitle'),
  68383. tt = u('JSONSchema202012KeywordDescription'),
  68384. rt = u('JSONSchema202012KeywordDefault'),
  68385. nt = u('JSONSchema202012KeywordDeprecated'),
  68386. st = u('JSONSchema202012KeywordReadOnly'),
  68387. ot = u('JSONSchema202012KeywordWriteOnly'),
  68388. it = u('JSONSchema202012Accordion'),
  68389. at = u('JSONSchema202012ExpandDeepButton'),
  68390. lt = u('JSONSchema202012ChevronRightIcon'),
  68391. ct = u('withJSONSchema202012Context')(C, {
  68392. config: {
  68393. default$schema: 'https://spec.openapis.org/oas/3.1/dialect/base',
  68394. defaultExpandedLevels: x.defaultModelExpandDepth,
  68395. includeReadOnly: Boolean(o.includeReadOnly),
  68396. includeWriteOnly: Boolean(o.includeWriteOnly)
  68397. },
  68398. components: {
  68399. JSONSchema: j,
  68400. Keyword$schema: L,
  68401. Keyword$vocabulary: B,
  68402. Keyword$id: $,
  68403. Keyword$anchor: V,
  68404. Keyword$dynamicAnchor: U,
  68405. Keyword$ref: z,
  68406. Keyword$dynamicRef: Y,
  68407. Keyword$defs: Z,
  68408. Keyword$comment: ee,
  68409. KeywordAllOf: ie,
  68410. KeywordAnyOf: ae,
  68411. KeywordOneOf: le,
  68412. KeywordNot: ce,
  68413. KeywordIf: pe,
  68414. KeywordThen: de,
  68415. KeywordElse: fe,
  68416. KeywordDependentSchemas: ye,
  68417. KeywordPrefixItems: be,
  68418. KeywordItems: _e,
  68419. KeywordContains: we,
  68420. KeywordProperties: Se,
  68421. KeywordPatternProperties: xe,
  68422. KeywordAdditionalProperties: Te,
  68423. KeywordPropertyNames: Re,
  68424. KeywordUnevaluatedItems: qe,
  68425. KeywordUnevaluatedProperties: $e,
  68426. KeywordType: ze,
  68427. KeywordEnum: We,
  68428. KeywordConst: He,
  68429. KeywordConstraint: Ye,
  68430. KeywordDependentRequired: Xe,
  68431. KeywordContentSchema: Qe,
  68432. KeywordTitle: et,
  68433. KeywordDescription: tt,
  68434. KeywordDefault: rt,
  68435. KeywordDeprecated: nt,
  68436. KeywordReadOnly: st,
  68437. KeywordWriteOnly: ot,
  68438. Accordion: it,
  68439. ExpandDeepButton: at,
  68440. ChevronRightIcon: lt
  68441. },
  68442. fn: {
  68443. upperFirst: _.upperFirst,
  68444. isExpandable: _.jsonSchema202012.isExpandable,
  68445. getProperties: _.jsonSchema202012.getProperties
  68446. }
  68447. });
  68448. return Pe.createElement(ct, o);
  68449. }),
  68450. WA = zA,
  68451. KA = createOnlyOAS31ComponentWrapper(({ getSystem: s }) => {
  68452. const { getComponent: o, fn: i, getConfigs: u } = s(),
  68453. _ = u();
  68454. if (KA.ModelsWithJSONSchemaContext)
  68455. return Pe.createElement(KA.ModelsWithJSONSchemaContext, null);
  68456. const w = o('OAS31Models', !0),
  68457. x = o('JSONSchema202012'),
  68458. C = o('JSONSchema202012Keyword$schema'),
  68459. j = o('JSONSchema202012Keyword$vocabulary'),
  68460. L = o('JSONSchema202012Keyword$id'),
  68461. B = o('JSONSchema202012Keyword$anchor'),
  68462. $ = o('JSONSchema202012Keyword$dynamicAnchor'),
  68463. V = o('JSONSchema202012Keyword$ref'),
  68464. U = o('JSONSchema202012Keyword$dynamicRef'),
  68465. z = o('JSONSchema202012Keyword$defs'),
  68466. Y = o('JSONSchema202012Keyword$comment'),
  68467. Z = o('JSONSchema202012KeywordAllOf'),
  68468. ee = o('JSONSchema202012KeywordAnyOf'),
  68469. ie = o('JSONSchema202012KeywordOneOf'),
  68470. ae = o('JSONSchema202012KeywordNot'),
  68471. le = o('JSONSchema202012KeywordIf'),
  68472. ce = o('JSONSchema202012KeywordThen'),
  68473. pe = o('JSONSchema202012KeywordElse'),
  68474. de = o('JSONSchema202012KeywordDependentSchemas'),
  68475. fe = o('JSONSchema202012KeywordPrefixItems'),
  68476. ye = o('JSONSchema202012KeywordItems'),
  68477. be = o('JSONSchema202012KeywordContains'),
  68478. _e = o('JSONSchema202012KeywordProperties'),
  68479. we = o('JSONSchema202012KeywordPatternProperties'),
  68480. Se = o('JSONSchema202012KeywordAdditionalProperties'),
  68481. xe = o('JSONSchema202012KeywordPropertyNames'),
  68482. Te = o('JSONSchema202012KeywordUnevaluatedItems'),
  68483. Re = o('JSONSchema202012KeywordUnevaluatedProperties'),
  68484. qe = o('JSONSchema202012KeywordType'),
  68485. $e = o('JSONSchema202012KeywordEnum'),
  68486. ze = o('JSONSchema202012KeywordConst'),
  68487. We = o('JSONSchema202012KeywordConstraint'),
  68488. He = o('JSONSchema202012KeywordDependentRequired'),
  68489. Ye = o('JSONSchema202012KeywordContentSchema'),
  68490. Xe = o('JSONSchema202012KeywordTitle'),
  68491. Qe = o('JSONSchema202012KeywordDescription'),
  68492. et = o('JSONSchema202012KeywordDefault'),
  68493. tt = o('JSONSchema202012KeywordDeprecated'),
  68494. rt = o('JSONSchema202012KeywordReadOnly'),
  68495. nt = o('JSONSchema202012KeywordWriteOnly'),
  68496. st = o('JSONSchema202012Accordion'),
  68497. ot = o('JSONSchema202012ExpandDeepButton'),
  68498. it = o('JSONSchema202012ChevronRightIcon'),
  68499. at = o('withJSONSchema202012Context');
  68500. return (
  68501. (KA.ModelsWithJSONSchemaContext = at(w, {
  68502. config: {
  68503. default$schema: 'https://spec.openapis.org/oas/3.1/dialect/base',
  68504. defaultExpandedLevels: _.defaultModelsExpandDepth - 1,
  68505. includeReadOnly: !0,
  68506. includeWriteOnly: !0
  68507. },
  68508. components: {
  68509. JSONSchema: x,
  68510. Keyword$schema: C,
  68511. Keyword$vocabulary: j,
  68512. Keyword$id: L,
  68513. Keyword$anchor: B,
  68514. Keyword$dynamicAnchor: $,
  68515. Keyword$ref: V,
  68516. Keyword$dynamicRef: U,
  68517. Keyword$defs: z,
  68518. Keyword$comment: Y,
  68519. KeywordAllOf: Z,
  68520. KeywordAnyOf: ee,
  68521. KeywordOneOf: ie,
  68522. KeywordNot: ae,
  68523. KeywordIf: le,
  68524. KeywordThen: ce,
  68525. KeywordElse: pe,
  68526. KeywordDependentSchemas: de,
  68527. KeywordPrefixItems: fe,
  68528. KeywordItems: ye,
  68529. KeywordContains: be,
  68530. KeywordProperties: _e,
  68531. KeywordPatternProperties: we,
  68532. KeywordAdditionalProperties: Se,
  68533. KeywordPropertyNames: xe,
  68534. KeywordUnevaluatedItems: Te,
  68535. KeywordUnevaluatedProperties: Re,
  68536. KeywordType: qe,
  68537. KeywordEnum: $e,
  68538. KeywordConst: ze,
  68539. KeywordConstraint: We,
  68540. KeywordDependentRequired: He,
  68541. KeywordContentSchema: Ye,
  68542. KeywordTitle: Xe,
  68543. KeywordDescription: Qe,
  68544. KeywordDefault: et,
  68545. KeywordDeprecated: tt,
  68546. KeywordReadOnly: rt,
  68547. KeywordWriteOnly: nt,
  68548. Accordion: st,
  68549. ExpandDeepButton: ot,
  68550. ChevronRightIcon: it
  68551. },
  68552. fn: {
  68553. upperFirst: i.upperFirst,
  68554. isExpandable: i.jsonSchema202012.isExpandable,
  68555. getProperties: i.jsonSchema202012.getProperties
  68556. }
  68557. })),
  68558. Pe.createElement(KA.ModelsWithJSONSchemaContext, null)
  68559. );
  68560. });
  68561. KA.ModelsWithJSONSchemaContext = null;
  68562. const HA = KA,
  68563. wrap_components_version_pragma_filter = (s, o) => (s) => {
  68564. const i = o.specSelectors.isOAS31(),
  68565. u = o.getComponent('OAS31VersionPragmaFilter');
  68566. return Pe.createElement(u, Rn()({ isOAS31: i }, s));
  68567. },
  68568. JA = createOnlyOAS31ComponentWrapper(({ originalComponent: s, ...o }) => {
  68569. const { getComponent: i, schema: u } = o,
  68570. _ = i('MutualTLSAuth', !0);
  68571. return 'mutualTLS' === u.get('type')
  68572. ? Pe.createElement(_, { schema: u })
  68573. : Pe.createElement(s, o);
  68574. }),
  68575. GA = JA,
  68576. YA = createOnlyOAS31ComponentWrapper(({ getSystem: s, ...o }) => {
  68577. const i = s().getComponent('OAS31Auths', !0);
  68578. return Pe.createElement(i, o);
  68579. }),
  68580. XA = (0, qe.Map)(),
  68581. ZA = Ut((s, o) => o.specSelectors.specJson(), isOAS31),
  68582. selectors_webhooks = () => (s) => {
  68583. const o = s.specSelectors.specJson().get('webhooks');
  68584. return qe.Map.isMap(o) ? o : XA;
  68585. },
  68586. QA = Ut(
  68587. [
  68588. (s, o) => o.specSelectors.webhooks(),
  68589. (s, o) => o.specSelectors.validOperationMethods(),
  68590. (s, o) => o.specSelectors.specResolvedSubtree(['webhooks'])
  68591. ],
  68592. (s, o) =>
  68593. s
  68594. .reduce(
  68595. (s, i, u) => {
  68596. if (!qe.Map.isMap(i)) return s;
  68597. const _ = i
  68598. .entrySeq()
  68599. .filter(([s]) => o.includes(s))
  68600. .map(([s, o]) => ({
  68601. operation: (0, qe.Map)({ operation: o }),
  68602. method: s,
  68603. path: u,
  68604. specPath: ['webhooks', u, s]
  68605. }));
  68606. return s.concat(_);
  68607. },
  68608. (0, qe.List)()
  68609. )
  68610. .groupBy((s) => s.path)
  68611. .map((s) => s.toArray())
  68612. .toObject()
  68613. ),
  68614. selectors_license = () => (s) => {
  68615. const o = s.specSelectors.info().get('license');
  68616. return qe.Map.isMap(o) ? o : XA;
  68617. },
  68618. selectLicenseNameField = () => (s) => s.specSelectors.license().get('name', 'License'),
  68619. selectLicenseUrlField = () => (s) => s.specSelectors.license().get('url'),
  68620. ej = Ut(
  68621. [
  68622. (s, o) => o.specSelectors.url(),
  68623. (s, o) => o.oas3Selectors.selectedServer(),
  68624. (s, o) => o.specSelectors.selectLicenseUrlField()
  68625. ],
  68626. (s, o, i) => {
  68627. if (i) return safeBuildUrl(i, s, { selectedServer: o });
  68628. }
  68629. ),
  68630. selectLicenseIdentifierField = () => (s) => s.specSelectors.license().get('identifier'),
  68631. selectors_contact = () => (s) => {
  68632. const o = s.specSelectors.info().get('contact');
  68633. return qe.Map.isMap(o) ? o : XA;
  68634. },
  68635. selectContactNameField = () => (s) =>
  68636. s.specSelectors.contact().get('name', 'the developer'),
  68637. selectContactEmailField = () => (s) => s.specSelectors.contact().get('email'),
  68638. selectContactUrlField = () => (s) => s.specSelectors.contact().get('url'),
  68639. fj = Ut(
  68640. [
  68641. (s, o) => o.specSelectors.url(),
  68642. (s, o) => o.oas3Selectors.selectedServer(),
  68643. (s, o) => o.specSelectors.selectContactUrlField()
  68644. ],
  68645. (s, o, i) => {
  68646. if (i) return safeBuildUrl(i, s, { selectedServer: o });
  68647. }
  68648. ),
  68649. selectInfoTitleField = () => (s) => s.specSelectors.info().get('title'),
  68650. selectInfoSummaryField = () => (s) => s.specSelectors.info().get('summary'),
  68651. selectInfoDescriptionField = () => (s) => s.specSelectors.info().get('description'),
  68652. selectInfoTermsOfServiceField = () => (s) => s.specSelectors.info().get('termsOfService'),
  68653. mj = Ut(
  68654. [
  68655. (s, o) => o.specSelectors.url(),
  68656. (s, o) => o.oas3Selectors.selectedServer(),
  68657. (s, o) => o.specSelectors.selectInfoTermsOfServiceField()
  68658. ],
  68659. (s, o, i) => {
  68660. if (i) return safeBuildUrl(i, s, { selectedServer: o });
  68661. }
  68662. ),
  68663. selectExternalDocsDescriptionField = () => (s) =>
  68664. s.specSelectors.externalDocs().get('description'),
  68665. selectExternalDocsUrlField = () => (s) => s.specSelectors.externalDocs().get('url'),
  68666. _j = Ut(
  68667. [
  68668. (s, o) => o.specSelectors.url(),
  68669. (s, o) => o.oas3Selectors.selectedServer(),
  68670. (s, o) => o.specSelectors.selectExternalDocsUrlField()
  68671. ],
  68672. (s, o, i) => {
  68673. if (i) return safeBuildUrl(i, s, { selectedServer: o });
  68674. }
  68675. ),
  68676. selectJsonSchemaDialectField = () => (s) =>
  68677. s.specSelectors.specJson().get('jsonSchemaDialect'),
  68678. selectJsonSchemaDialectDefault = () => 'https://spec.openapis.org/oas/3.1/dialect/base',
  68679. Cj = Ut(
  68680. (s, o) => o.specSelectors.definitions(),
  68681. (s, o) => o.specSelectors.specResolvedSubtree(['components', 'schemas']),
  68682. (s, o) =>
  68683. qe.Map.isMap(s)
  68684. ? qe.Map.isMap(o)
  68685. ? Object.entries(s.toJS()).reduce((s, [i, u]) => {
  68686. const _ = o.get(i);
  68687. return (s[i] = _?.toJS() || u), s;
  68688. }, {})
  68689. : s.toJS()
  68690. : {}
  68691. ),
  68692. wrap_selectors_isOAS3 =
  68693. (s, o) =>
  68694. (i, ...u) =>
  68695. o.specSelectors.isOAS31() || s(...u),
  68696. Aj = createOnlyOAS31SelectorWrapper(() => (s, o) => o.oas31Selectors.selectLicenseUrl()),
  68697. Nj = createOnlyOAS31SelectorWrapper(() => (s, o) => {
  68698. const i = o.specSelectors.securityDefinitions();
  68699. let u = s();
  68700. return i
  68701. ? (i.entrySeq().forEach(([s, o]) => {
  68702. 'mutualTLS' === o.get('type') && (u = u.push(new qe.Map({ [s]: o })));
  68703. }),
  68704. u)
  68705. : u;
  68706. }),
  68707. Bj = Ut(
  68708. [
  68709. (s, o) => o.specSelectors.url(),
  68710. (s, o) => o.oas3Selectors.selectedServer(),
  68711. (s, o) => o.specSelectors.selectLicenseUrlField(),
  68712. (s, o) => o.specSelectors.selectLicenseIdentifierField()
  68713. ],
  68714. (s, o, i, u) =>
  68715. i
  68716. ? safeBuildUrl(i, s, { selectedServer: o })
  68717. : u
  68718. ? `https://spdx.org/licenses/${u}.html`
  68719. : void 0
  68720. ),
  68721. keywords_Example = ({ schema: s, getSystem: o }) => {
  68722. const { fn: i } = o(),
  68723. { hasKeyword: u, stringify: _ } = i.jsonSchema202012.useFn();
  68724. return u(s, 'example')
  68725. ? Pe.createElement(
  68726. 'div',
  68727. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--example' },
  68728. Pe.createElement(
  68729. 'span',
  68730. {
  68731. className:
  68732. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  68733. },
  68734. 'Example'
  68735. ),
  68736. Pe.createElement(
  68737. 'span',
  68738. {
  68739. className:
  68740. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const'
  68741. },
  68742. _(s.example)
  68743. )
  68744. )
  68745. : null;
  68746. },
  68747. keywords_Xml = ({ schema: s, getSystem: o }) => {
  68748. const i = s?.xml || {},
  68749. { fn: u, getComponent: _ } = o(),
  68750. { useIsExpandedDeeply: w, useComponent: x } = u.jsonSchema202012,
  68751. C = w(),
  68752. j = !!(i.name || i.namespace || i.prefix),
  68753. [L, B] = (0, Pe.useState)(C),
  68754. [$, V] = (0, Pe.useState)(!1),
  68755. U = x('Accordion'),
  68756. z = x('ExpandDeepButton'),
  68757. Y = _('JSONSchema202012DeepExpansionContext')(),
  68758. Z = (0, Pe.useCallback)(() => {
  68759. B((s) => !s);
  68760. }, []),
  68761. ee = (0, Pe.useCallback)((s, o) => {
  68762. B(o), V(o);
  68763. }, []);
  68764. return 0 === Object.keys(i).length
  68765. ? null
  68766. : Pe.createElement(
  68767. Y.Provider,
  68768. { value: $ },
  68769. Pe.createElement(
  68770. 'div',
  68771. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--xml' },
  68772. j
  68773. ? Pe.createElement(
  68774. Pe.Fragment,
  68775. null,
  68776. Pe.createElement(
  68777. U,
  68778. { expanded: L, onChange: Z },
  68779. Pe.createElement(
  68780. 'span',
  68781. {
  68782. className:
  68783. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  68784. },
  68785. 'XML'
  68786. )
  68787. ),
  68788. Pe.createElement(z, { expanded: L, onClick: ee })
  68789. )
  68790. : Pe.createElement(
  68791. 'span',
  68792. {
  68793. className:
  68794. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  68795. },
  68796. 'XML'
  68797. ),
  68798. !0 === i.attribute &&
  68799. Pe.createElement(
  68800. 'span',
  68801. {
  68802. className:
  68803. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--muted'
  68804. },
  68805. 'attribute'
  68806. ),
  68807. !0 === i.wrapped &&
  68808. Pe.createElement(
  68809. 'span',
  68810. {
  68811. className:
  68812. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--muted'
  68813. },
  68814. 'wrapped'
  68815. ),
  68816. Pe.createElement(
  68817. 'strong',
  68818. {
  68819. className:
  68820. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary'
  68821. },
  68822. 'object'
  68823. ),
  68824. Pe.createElement(
  68825. 'ul',
  68826. {
  68827. className: Hn()('json-schema-2020-12-keyword__children', {
  68828. 'json-schema-2020-12-keyword__children--collapsed': !L
  68829. })
  68830. },
  68831. L &&
  68832. Pe.createElement(
  68833. Pe.Fragment,
  68834. null,
  68835. i.name &&
  68836. Pe.createElement(
  68837. 'li',
  68838. { className: 'json-schema-2020-12-property' },
  68839. Pe.createElement(
  68840. 'div',
  68841. {
  68842. className:
  68843. 'json-schema-2020-12-keyword json-schema-2020-12-keyword'
  68844. },
  68845. Pe.createElement(
  68846. 'span',
  68847. {
  68848. className:
  68849. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  68850. },
  68851. 'name'
  68852. ),
  68853. Pe.createElement(
  68854. 'span',
  68855. {
  68856. className:
  68857. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  68858. },
  68859. i.name
  68860. )
  68861. )
  68862. ),
  68863. i.namespace &&
  68864. Pe.createElement(
  68865. 'li',
  68866. { className: 'json-schema-2020-12-property' },
  68867. Pe.createElement(
  68868. 'div',
  68869. { className: 'json-schema-2020-12-keyword' },
  68870. Pe.createElement(
  68871. 'span',
  68872. {
  68873. className:
  68874. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  68875. },
  68876. 'namespace'
  68877. ),
  68878. Pe.createElement(
  68879. 'span',
  68880. {
  68881. className:
  68882. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  68883. },
  68884. i.namespace
  68885. )
  68886. )
  68887. ),
  68888. i.prefix &&
  68889. Pe.createElement(
  68890. 'li',
  68891. { className: 'json-schema-2020-12-property' },
  68892. Pe.createElement(
  68893. 'div',
  68894. { className: 'json-schema-2020-12-keyword' },
  68895. Pe.createElement(
  68896. 'span',
  68897. {
  68898. className:
  68899. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  68900. },
  68901. 'prefix'
  68902. ),
  68903. Pe.createElement(
  68904. 'span',
  68905. {
  68906. className:
  68907. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  68908. },
  68909. i.prefix
  68910. )
  68911. )
  68912. )
  68913. )
  68914. )
  68915. )
  68916. );
  68917. },
  68918. Discriminator_DiscriminatorMapping = ({ discriminator: s }) => {
  68919. const o = s?.mapping || {};
  68920. return 0 === Object.keys(o).length
  68921. ? null
  68922. : Object.entries(o).map(([s, o]) =>
  68923. Pe.createElement(
  68924. 'div',
  68925. { key: `${s}-${o}`, className: 'json-schema-2020-12-keyword' },
  68926. Pe.createElement(
  68927. 'span',
  68928. {
  68929. className:
  68930. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  68931. },
  68932. s
  68933. ),
  68934. Pe.createElement(
  68935. 'span',
  68936. {
  68937. className:
  68938. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  68939. },
  68940. o
  68941. )
  68942. )
  68943. );
  68944. },
  68945. keywords_Discriminator_Discriminator = ({ schema: s, getSystem: o }) => {
  68946. const i = s?.discriminator || {},
  68947. { fn: u, getComponent: _ } = o(),
  68948. { useIsExpandedDeeply: w, useComponent: x } = u.jsonSchema202012,
  68949. C = w(),
  68950. j = !!i.mapping,
  68951. [L, B] = (0, Pe.useState)(C),
  68952. [$, V] = (0, Pe.useState)(!1),
  68953. U = x('Accordion'),
  68954. z = x('ExpandDeepButton'),
  68955. Y = _('JSONSchema202012DeepExpansionContext')(),
  68956. Z = (0, Pe.useCallback)(() => {
  68957. B((s) => !s);
  68958. }, []),
  68959. ee = (0, Pe.useCallback)((s, o) => {
  68960. B(o), V(o);
  68961. }, []);
  68962. return 0 === Object.keys(i).length
  68963. ? null
  68964. : Pe.createElement(
  68965. Y.Provider,
  68966. { value: $ },
  68967. Pe.createElement(
  68968. 'div',
  68969. {
  68970. className:
  68971. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator'
  68972. },
  68973. j
  68974. ? Pe.createElement(
  68975. Pe.Fragment,
  68976. null,
  68977. Pe.createElement(
  68978. U,
  68979. { expanded: L, onChange: Z },
  68980. Pe.createElement(
  68981. 'span',
  68982. {
  68983. className:
  68984. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  68985. },
  68986. 'Discriminator'
  68987. )
  68988. ),
  68989. Pe.createElement(z, { expanded: L, onClick: ee })
  68990. )
  68991. : Pe.createElement(
  68992. 'span',
  68993. {
  68994. className:
  68995. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  68996. },
  68997. 'Discriminator'
  68998. ),
  68999. i.propertyName &&
  69000. Pe.createElement(
  69001. 'span',
  69002. {
  69003. className:
  69004. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--muted'
  69005. },
  69006. i.propertyName
  69007. ),
  69008. Pe.createElement(
  69009. 'strong',
  69010. {
  69011. className:
  69012. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary'
  69013. },
  69014. 'object'
  69015. ),
  69016. Pe.createElement(
  69017. 'ul',
  69018. {
  69019. className: Hn()('json-schema-2020-12-keyword__children', {
  69020. 'json-schema-2020-12-keyword__children--collapsed': !L
  69021. })
  69022. },
  69023. L &&
  69024. Pe.createElement(
  69025. 'li',
  69026. { className: 'json-schema-2020-12-property' },
  69027. Pe.createElement(Discriminator_DiscriminatorMapping, { discriminator: i })
  69028. )
  69029. )
  69030. )
  69031. );
  69032. },
  69033. keywords_ExternalDocs = ({ schema: s, getSystem: o }) => {
  69034. const i = s?.externalDocs || {},
  69035. { fn: u, getComponent: _ } = o(),
  69036. { useIsExpandedDeeply: w, useComponent: x } = u.jsonSchema202012,
  69037. C = w(),
  69038. j = !(!i.description && !i.url),
  69039. [L, B] = (0, Pe.useState)(C),
  69040. [$, V] = (0, Pe.useState)(!1),
  69041. U = x('Accordion'),
  69042. z = x('ExpandDeepButton'),
  69043. Y = _('JSONSchema202012KeywordDescription'),
  69044. Z = _('Link'),
  69045. ee = _('JSONSchema202012DeepExpansionContext')(),
  69046. ie = (0, Pe.useCallback)(() => {
  69047. B((s) => !s);
  69048. }, []),
  69049. ae = (0, Pe.useCallback)((s, o) => {
  69050. B(o), V(o);
  69051. }, []);
  69052. return 0 === Object.keys(i).length
  69053. ? null
  69054. : Pe.createElement(
  69055. ee.Provider,
  69056. { value: $ },
  69057. Pe.createElement(
  69058. 'div',
  69059. {
  69060. className:
  69061. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs'
  69062. },
  69063. j
  69064. ? Pe.createElement(
  69065. Pe.Fragment,
  69066. null,
  69067. Pe.createElement(
  69068. U,
  69069. { expanded: L, onChange: ie },
  69070. Pe.createElement(
  69071. 'span',
  69072. {
  69073. className:
  69074. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69075. },
  69076. 'External documentation'
  69077. )
  69078. ),
  69079. Pe.createElement(z, { expanded: L, onClick: ae })
  69080. )
  69081. : Pe.createElement(
  69082. 'span',
  69083. {
  69084. className:
  69085. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69086. },
  69087. 'External documentation'
  69088. ),
  69089. Pe.createElement(
  69090. 'strong',
  69091. {
  69092. className:
  69093. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary'
  69094. },
  69095. 'object'
  69096. ),
  69097. Pe.createElement(
  69098. 'ul',
  69099. {
  69100. className: Hn()('json-schema-2020-12-keyword__children', {
  69101. 'json-schema-2020-12-keyword__children--collapsed': !L
  69102. })
  69103. },
  69104. L &&
  69105. Pe.createElement(
  69106. Pe.Fragment,
  69107. null,
  69108. i.description &&
  69109. Pe.createElement(
  69110. 'li',
  69111. { className: 'json-schema-2020-12-property' },
  69112. Pe.createElement(Y, { schema: i, getSystem: o })
  69113. ),
  69114. i.url &&
  69115. Pe.createElement(
  69116. 'li',
  69117. { className: 'json-schema-2020-12-property' },
  69118. Pe.createElement(
  69119. 'div',
  69120. {
  69121. className:
  69122. 'json-schema-2020-12-keyword json-schema-2020-12-keyword'
  69123. },
  69124. Pe.createElement(
  69125. 'span',
  69126. {
  69127. className:
  69128. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69129. },
  69130. 'url'
  69131. ),
  69132. Pe.createElement(
  69133. 'span',
  69134. {
  69135. className:
  69136. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  69137. },
  69138. Pe.createElement(
  69139. Z,
  69140. { target: '_blank', href: sanitizeUrl(i.url) },
  69141. i.url
  69142. )
  69143. )
  69144. )
  69145. )
  69146. )
  69147. )
  69148. )
  69149. );
  69150. },
  69151. keywords_Description = ({ schema: s, getSystem: o }) => {
  69152. if (!s?.description) return null;
  69153. const { getComponent: i } = o(),
  69154. u = i('Markdown');
  69155. return Pe.createElement(
  69156. 'div',
  69157. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--description' },
  69158. Pe.createElement(
  69159. 'div',
  69160. {
  69161. className:
  69162. 'json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary'
  69163. },
  69164. Pe.createElement(u, { source: s.description })
  69165. )
  69166. );
  69167. },
  69168. $j = createOnlyOAS31ComponentWrapper(keywords_Description),
  69169. zj = createOnlyOAS31ComponentWrapper(
  69170. ({ schema: s, getSystem: o, originalComponent: i }) => {
  69171. const { getComponent: u } = o(),
  69172. _ = u('JSONSchema202012KeywordDiscriminator'),
  69173. w = u('JSONSchema202012KeywordXml'),
  69174. x = u('JSONSchema202012KeywordExample'),
  69175. C = u('JSONSchema202012KeywordExternalDocs');
  69176. return Pe.createElement(
  69177. Pe.Fragment,
  69178. null,
  69179. Pe.createElement(i, { schema: s }),
  69180. Pe.createElement(_, { schema: s, getSystem: o }),
  69181. Pe.createElement(w, { schema: s, getSystem: o }),
  69182. Pe.createElement(C, { schema: s, getSystem: o }),
  69183. Pe.createElement(x, { schema: s, getSystem: o })
  69184. );
  69185. }
  69186. ),
  69187. Kj = zj,
  69188. keywords_Properties = ({ schema: s, getSystem: o }) => {
  69189. const { fn: i } = o(),
  69190. { useComponent: u } = i.jsonSchema202012,
  69191. { getDependentRequired: _, getProperties: w } = i.jsonSchema202012.useFn(),
  69192. x = i.jsonSchema202012.useConfig(),
  69193. C = Array.isArray(s?.required) ? s.required : [],
  69194. j = u('JSONSchema'),
  69195. L = w(s, x);
  69196. return 0 === Object.keys(L).length
  69197. ? null
  69198. : Pe.createElement(
  69199. 'div',
  69200. {
  69201. className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--properties'
  69202. },
  69203. Pe.createElement(
  69204. 'ul',
  69205. null,
  69206. Object.entries(L).map(([o, i]) => {
  69207. const u = C.includes(o),
  69208. w = _(o, s);
  69209. return Pe.createElement(
  69210. 'li',
  69211. {
  69212. key: o,
  69213. className: Hn()('json-schema-2020-12-property', {
  69214. 'json-schema-2020-12-property--required': u
  69215. })
  69216. },
  69217. Pe.createElement(j, { name: o, schema: i, dependentRequired: w })
  69218. );
  69219. })
  69220. )
  69221. );
  69222. },
  69223. Jj = createOnlyOAS31ComponentWrapper(keywords_Properties),
  69224. getProperties = (s, { includeReadOnly: o, includeWriteOnly: i }) => {
  69225. if (!s?.properties) return {};
  69226. const u = Object.entries(s.properties).filter(
  69227. ([, s]) => (!(!0 === s?.readOnly) || o) && (!(!0 === s?.writeOnly) || i)
  69228. );
  69229. return Object.fromEntries(u);
  69230. };
  69231. const Gj = function oas31_after_load_afterLoad({ fn: s, getSystem: o }) {
  69232. if (s.jsonSchema202012) {
  69233. const i = ((s, o) => {
  69234. const { fn: i } = o();
  69235. if ('function' != typeof s) return null;
  69236. const { hasKeyword: u } = i.jsonSchema202012;
  69237. return (o) =>
  69238. s(o) || u(o, 'example') || o?.xml || o?.discriminator || o?.externalDocs;
  69239. })(s.jsonSchema202012.isExpandable, o);
  69240. Object.assign(this.fn.jsonSchema202012, { isExpandable: i, getProperties });
  69241. }
  69242. if ('function' == typeof s.sampleFromSchema && s.jsonSchema202012) {
  69243. const i = ((s, o) => {
  69244. const { fn: i, specSelectors: u } = o;
  69245. return Object.fromEntries(
  69246. Object.entries(s).map(([s, o]) => {
  69247. const _ = i[s];
  69248. return [
  69249. s,
  69250. (...s) => (u.isOAS31() ? o(...s) : 'function' == typeof _ ? _(...s) : void 0)
  69251. ];
  69252. })
  69253. );
  69254. })(
  69255. {
  69256. sampleFromSchema: s.jsonSchema202012.sampleFromSchema,
  69257. sampleFromSchemaGeneric: s.jsonSchema202012.sampleFromSchemaGeneric,
  69258. createXMLExample: s.jsonSchema202012.createXMLExample,
  69259. memoizedSampleFromSchema: s.jsonSchema202012.memoizedSampleFromSchema,
  69260. memoizedCreateXMLExample: s.jsonSchema202012.memoizedCreateXMLExample,
  69261. getJsonSampleSchema: s.jsonSchema202012.getJsonSampleSchema,
  69262. getYamlSampleSchema: s.jsonSchema202012.getYamlSampleSchema,
  69263. getXmlSampleSchema: s.jsonSchema202012.getXmlSampleSchema,
  69264. getSampleSchema: s.jsonSchema202012.getSampleSchema,
  69265. mergeJsonSchema: s.jsonSchema202012.mergeJsonSchema
  69266. },
  69267. o()
  69268. );
  69269. Object.assign(this.fn, i);
  69270. }
  69271. },
  69272. oas31 = ({ fn: s }) => {
  69273. const o = s.createSystemSelector || fn_createSystemSelector,
  69274. i = s.createOnlyOAS31Selector || fn_createOnlyOAS31Selector;
  69275. return {
  69276. afterLoad: Gj,
  69277. fn: {
  69278. isOAS31,
  69279. createSystemSelector: fn_createSystemSelector,
  69280. createOnlyOAS31Selector: fn_createOnlyOAS31Selector
  69281. },
  69282. components: {
  69283. Webhooks: webhooks,
  69284. JsonSchemaDialect: json_schema_dialect,
  69285. MutualTLSAuth: mutual_tls_auth,
  69286. OAS31Info: oas31_components_info,
  69287. OAS31License: oas31_components_license,
  69288. OAS31Contact: oas31_components_contact,
  69289. OAS31VersionPragmaFilter: version_pragma_filter,
  69290. OAS31Model: FA,
  69291. OAS31Models: models,
  69292. OAS31Auths: qA,
  69293. JSONSchema202012KeywordExample: keywords_Example,
  69294. JSONSchema202012KeywordXml: keywords_Xml,
  69295. JSONSchema202012KeywordDiscriminator: keywords_Discriminator_Discriminator,
  69296. JSONSchema202012KeywordExternalDocs: keywords_ExternalDocs
  69297. },
  69298. wrapComponents: {
  69299. InfoContainer: UA,
  69300. License: $A,
  69301. Contact: VA,
  69302. VersionPragmaFilter: wrap_components_version_pragma_filter,
  69303. Model: WA,
  69304. Models: HA,
  69305. AuthItem: GA,
  69306. auths: YA,
  69307. JSONSchema202012KeywordDescription: $j,
  69308. JSONSchema202012KeywordDefault: Kj,
  69309. JSONSchema202012KeywordProperties: Jj
  69310. },
  69311. statePlugins: {
  69312. auth: { wrapSelectors: { definitionsToAuthorize: Nj } },
  69313. spec: {
  69314. selectors: {
  69315. isOAS31: o(ZA),
  69316. license: selectors_license,
  69317. selectLicenseNameField,
  69318. selectLicenseUrlField,
  69319. selectLicenseIdentifierField: i(selectLicenseIdentifierField),
  69320. selectLicenseUrl: o(ej),
  69321. contact: selectors_contact,
  69322. selectContactNameField,
  69323. selectContactEmailField,
  69324. selectContactUrlField,
  69325. selectContactUrl: o(fj),
  69326. selectInfoTitleField,
  69327. selectInfoSummaryField: i(selectInfoSummaryField),
  69328. selectInfoDescriptionField,
  69329. selectInfoTermsOfServiceField,
  69330. selectInfoTermsOfServiceUrl: o(mj),
  69331. selectExternalDocsDescriptionField,
  69332. selectExternalDocsUrlField,
  69333. selectExternalDocsUrl: o(_j),
  69334. webhooks: i(selectors_webhooks),
  69335. selectWebhooksOperations: i(o(QA)),
  69336. selectJsonSchemaDialectField,
  69337. selectJsonSchemaDialectDefault,
  69338. selectSchemas: o(Cj)
  69339. },
  69340. wrapSelectors: { isOAS3: wrap_selectors_isOAS3, selectLicenseUrl: Aj }
  69341. },
  69342. oas31: { selectors: { selectLicenseUrl: i(o(Bj)) } }
  69343. }
  69344. };
  69345. },
  69346. Xj = ts().object,
  69347. eI = ts().bool,
  69348. tI = (ts().oneOfType([Xj, eI]), (0, Pe.createContext)(null));
  69349. tI.displayName = 'JSONSchemaContext';
  69350. const rI = (0, Pe.createContext)(0);
  69351. rI.displayName = 'JSONSchemaLevelContext';
  69352. const nI = (0, Pe.createContext)(!1);
  69353. nI.displayName = 'JSONSchemaDeepExpansionContext';
  69354. const sI = (0, Pe.createContext)(new Set()),
  69355. useConfig = () => {
  69356. const { config: s } = (0, Pe.useContext)(tI);
  69357. return s;
  69358. },
  69359. useComponent = (s) => {
  69360. const { components: o } = (0, Pe.useContext)(tI);
  69361. return o[s] || null;
  69362. },
  69363. useFn = (s = void 0) => {
  69364. const { fn: o } = (0, Pe.useContext)(tI);
  69365. return void 0 !== s ? o[s] : o;
  69366. },
  69367. useLevel = () => {
  69368. const s = (0, Pe.useContext)(rI);
  69369. return [s, s + 1];
  69370. },
  69371. useIsExpanded = () => {
  69372. const [s] = useLevel(),
  69373. { defaultExpandedLevels: o } = useConfig();
  69374. return o - s > 0;
  69375. },
  69376. useIsExpandedDeeply = () => (0, Pe.useContext)(nI),
  69377. useRenderedSchemas = (s = void 0) => {
  69378. if (void 0 === s) return (0, Pe.useContext)(sI);
  69379. const o = (0, Pe.useContext)(sI);
  69380. return new Set([...o, s]);
  69381. },
  69382. oI = (0, Pe.forwardRef)(
  69383. ({ schema: s, name: o = '', dependentRequired: i = [], onExpand: u = () => {} }, _) => {
  69384. const w = useFn(),
  69385. x = useIsExpanded(),
  69386. C = useIsExpandedDeeply(),
  69387. [j, L] = (0, Pe.useState)(x || C),
  69388. [B, $] = (0, Pe.useState)(C),
  69389. [V, U] = useLevel(),
  69390. z = (() => {
  69391. const [s] = useLevel();
  69392. return s > 0;
  69393. })(),
  69394. Y = w.isExpandable(s) || i.length > 0,
  69395. Z = ((s) => useRenderedSchemas().has(s))(s),
  69396. ee = useRenderedSchemas(s),
  69397. ie = w.stringifyConstraints(s),
  69398. ae = useComponent('Accordion'),
  69399. le = useComponent('Keyword$schema'),
  69400. ce = useComponent('Keyword$vocabulary'),
  69401. pe = useComponent('Keyword$id'),
  69402. de = useComponent('Keyword$anchor'),
  69403. fe = useComponent('Keyword$dynamicAnchor'),
  69404. ye = useComponent('Keyword$ref'),
  69405. be = useComponent('Keyword$dynamicRef'),
  69406. _e = useComponent('Keyword$defs'),
  69407. we = useComponent('Keyword$comment'),
  69408. Se = useComponent('KeywordAllOf'),
  69409. xe = useComponent('KeywordAnyOf'),
  69410. Te = useComponent('KeywordOneOf'),
  69411. Re = useComponent('KeywordNot'),
  69412. qe = useComponent('KeywordIf'),
  69413. $e = useComponent('KeywordThen'),
  69414. ze = useComponent('KeywordElse'),
  69415. We = useComponent('KeywordDependentSchemas'),
  69416. He = useComponent('KeywordPrefixItems'),
  69417. Ye = useComponent('KeywordItems'),
  69418. Xe = useComponent('KeywordContains'),
  69419. Qe = useComponent('KeywordProperties'),
  69420. et = useComponent('KeywordPatternProperties'),
  69421. tt = useComponent('KeywordAdditionalProperties'),
  69422. rt = useComponent('KeywordPropertyNames'),
  69423. nt = useComponent('KeywordUnevaluatedItems'),
  69424. st = useComponent('KeywordUnevaluatedProperties'),
  69425. ot = useComponent('KeywordType'),
  69426. it = useComponent('KeywordEnum'),
  69427. at = useComponent('KeywordConst'),
  69428. lt = useComponent('KeywordConstraint'),
  69429. ct = useComponent('KeywordDependentRequired'),
  69430. ut = useComponent('KeywordContentSchema'),
  69431. pt = useComponent('KeywordTitle'),
  69432. ht = useComponent('KeywordDescription'),
  69433. dt = useComponent('KeywordDefault'),
  69434. mt = useComponent('KeywordDeprecated'),
  69435. gt = useComponent('KeywordReadOnly'),
  69436. yt = useComponent('KeywordWriteOnly'),
  69437. vt = useComponent('ExpandDeepButton');
  69438. (0, Pe.useEffect)(() => {
  69439. $(C);
  69440. }, [C]),
  69441. (0, Pe.useEffect)(() => {
  69442. $(B);
  69443. }, [B]);
  69444. const bt = (0, Pe.useCallback)(
  69445. (s, o) => {
  69446. L(o), !o && $(!1), u(s, o, !1);
  69447. },
  69448. [u]
  69449. ),
  69450. _t = (0, Pe.useCallback)(
  69451. (s, o) => {
  69452. L(o), $(o), u(s, o, !0);
  69453. },
  69454. [u]
  69455. );
  69456. return Pe.createElement(
  69457. rI.Provider,
  69458. { value: U },
  69459. Pe.createElement(
  69460. nI.Provider,
  69461. { value: B },
  69462. Pe.createElement(
  69463. sI.Provider,
  69464. { value: ee },
  69465. Pe.createElement(
  69466. 'article',
  69467. {
  69468. ref: _,
  69469. 'data-json-schema-level': V,
  69470. className: Hn()('json-schema-2020-12', {
  69471. 'json-schema-2020-12--embedded': z,
  69472. 'json-schema-2020-12--circular': Z
  69473. })
  69474. },
  69475. Pe.createElement(
  69476. 'div',
  69477. { className: 'json-schema-2020-12-head' },
  69478. Y && !Z
  69479. ? Pe.createElement(
  69480. Pe.Fragment,
  69481. null,
  69482. Pe.createElement(
  69483. ae,
  69484. { expanded: j, onChange: bt },
  69485. Pe.createElement(pt, { title: o, schema: s })
  69486. ),
  69487. Pe.createElement(vt, { expanded: j, onClick: _t })
  69488. )
  69489. : Pe.createElement(pt, { title: o, schema: s }),
  69490. Pe.createElement(mt, { schema: s }),
  69491. Pe.createElement(gt, { schema: s }),
  69492. Pe.createElement(yt, { schema: s }),
  69493. Pe.createElement(ot, { schema: s, isCircular: Z }),
  69494. ie.length > 0 &&
  69495. ie.map((s) =>
  69496. Pe.createElement(lt, { key: `${s.scope}-${s.value}`, constraint: s })
  69497. )
  69498. ),
  69499. Pe.createElement(
  69500. 'div',
  69501. {
  69502. className: Hn()('json-schema-2020-12-body', {
  69503. 'json-schema-2020-12-body--collapsed': !j
  69504. })
  69505. },
  69506. j &&
  69507. Pe.createElement(
  69508. Pe.Fragment,
  69509. null,
  69510. Pe.createElement(ht, { schema: s }),
  69511. !Z &&
  69512. Y &&
  69513. Pe.createElement(
  69514. Pe.Fragment,
  69515. null,
  69516. Pe.createElement(Qe, { schema: s }),
  69517. Pe.createElement(et, { schema: s }),
  69518. Pe.createElement(tt, { schema: s }),
  69519. Pe.createElement(st, { schema: s }),
  69520. Pe.createElement(rt, { schema: s }),
  69521. Pe.createElement(Se, { schema: s }),
  69522. Pe.createElement(xe, { schema: s }),
  69523. Pe.createElement(Te, { schema: s }),
  69524. Pe.createElement(Re, { schema: s }),
  69525. Pe.createElement(qe, { schema: s }),
  69526. Pe.createElement($e, { schema: s }),
  69527. Pe.createElement(ze, { schema: s }),
  69528. Pe.createElement(We, { schema: s }),
  69529. Pe.createElement(He, { schema: s }),
  69530. Pe.createElement(Ye, { schema: s }),
  69531. Pe.createElement(nt, { schema: s }),
  69532. Pe.createElement(Xe, { schema: s }),
  69533. Pe.createElement(ut, { schema: s })
  69534. ),
  69535. Pe.createElement(it, { schema: s }),
  69536. Pe.createElement(at, { schema: s }),
  69537. Pe.createElement(ct, { schema: s, dependentRequired: i }),
  69538. Pe.createElement(dt, { schema: s }),
  69539. Pe.createElement(le, { schema: s }),
  69540. Pe.createElement(ce, { schema: s }),
  69541. Pe.createElement(pe, { schema: s }),
  69542. Pe.createElement(de, { schema: s }),
  69543. Pe.createElement(fe, { schema: s }),
  69544. Pe.createElement(ye, { schema: s }),
  69545. !Z && Y && Pe.createElement(_e, { schema: s }),
  69546. Pe.createElement(be, { schema: s }),
  69547. Pe.createElement(we, { schema: s })
  69548. )
  69549. )
  69550. )
  69551. )
  69552. )
  69553. );
  69554. }
  69555. ),
  69556. iI = oI,
  69557. keywords_$schema = ({ schema: s }) =>
  69558. s?.$schema
  69559. ? Pe.createElement(
  69560. 'div',
  69561. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema' },
  69562. Pe.createElement(
  69563. 'span',
  69564. {
  69565. className:
  69566. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69567. },
  69568. '$schema'
  69569. ),
  69570. Pe.createElement(
  69571. 'span',
  69572. {
  69573. className:
  69574. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  69575. },
  69576. s.$schema
  69577. )
  69578. )
  69579. : null,
  69580. $vocabulary_$vocabulary = ({ schema: s }) => {
  69581. const o = useIsExpanded(),
  69582. i = useIsExpandedDeeply(),
  69583. [u, _] = (0, Pe.useState)(o || i),
  69584. w = useComponent('Accordion'),
  69585. x = (0, Pe.useCallback)(() => {
  69586. _((s) => !s);
  69587. }, []);
  69588. return s?.$vocabulary
  69589. ? 'object' != typeof s.$vocabulary
  69590. ? null
  69591. : Pe.createElement(
  69592. 'div',
  69593. {
  69594. className:
  69595. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary'
  69596. },
  69597. Pe.createElement(
  69598. w,
  69599. { expanded: u, onChange: x },
  69600. Pe.createElement(
  69601. 'span',
  69602. {
  69603. className:
  69604. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69605. },
  69606. '$vocabulary'
  69607. )
  69608. ),
  69609. Pe.createElement(
  69610. 'strong',
  69611. {
  69612. className:
  69613. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary'
  69614. },
  69615. 'object'
  69616. ),
  69617. Pe.createElement(
  69618. 'ul',
  69619. null,
  69620. u &&
  69621. Object.entries(s.$vocabulary).map(([s, o]) =>
  69622. Pe.createElement(
  69623. 'li',
  69624. {
  69625. key: s,
  69626. className: Hn()('json-schema-2020-12-$vocabulary-uri', {
  69627. 'json-schema-2020-12-$vocabulary-uri--disabled': !o
  69628. })
  69629. },
  69630. Pe.createElement(
  69631. 'span',
  69632. {
  69633. className:
  69634. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  69635. },
  69636. s
  69637. )
  69638. )
  69639. )
  69640. )
  69641. )
  69642. : null;
  69643. },
  69644. keywords_$id = ({ schema: s }) =>
  69645. s?.$id
  69646. ? Pe.createElement(
  69647. 'div',
  69648. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$id' },
  69649. Pe.createElement(
  69650. 'span',
  69651. {
  69652. className:
  69653. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69654. },
  69655. '$id'
  69656. ),
  69657. Pe.createElement(
  69658. 'span',
  69659. {
  69660. className:
  69661. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  69662. },
  69663. s.$id
  69664. )
  69665. )
  69666. : null,
  69667. keywords_$anchor = ({ schema: s }) =>
  69668. s?.$anchor
  69669. ? Pe.createElement(
  69670. 'div',
  69671. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor' },
  69672. Pe.createElement(
  69673. 'span',
  69674. {
  69675. className:
  69676. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69677. },
  69678. '$anchor'
  69679. ),
  69680. Pe.createElement(
  69681. 'span',
  69682. {
  69683. className:
  69684. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  69685. },
  69686. s.$anchor
  69687. )
  69688. )
  69689. : null,
  69690. keywords_$dynamicAnchor = ({ schema: s }) =>
  69691. s?.$dynamicAnchor
  69692. ? Pe.createElement(
  69693. 'div',
  69694. {
  69695. className:
  69696. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor'
  69697. },
  69698. Pe.createElement(
  69699. 'span',
  69700. {
  69701. className:
  69702. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69703. },
  69704. '$dynamicAnchor'
  69705. ),
  69706. Pe.createElement(
  69707. 'span',
  69708. {
  69709. className:
  69710. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  69711. },
  69712. s.$dynamicAnchor
  69713. )
  69714. )
  69715. : null,
  69716. keywords_$ref = ({ schema: s }) =>
  69717. s?.$ref
  69718. ? Pe.createElement(
  69719. 'div',
  69720. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref' },
  69721. Pe.createElement(
  69722. 'span',
  69723. {
  69724. className:
  69725. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69726. },
  69727. '$ref'
  69728. ),
  69729. Pe.createElement(
  69730. 'span',
  69731. {
  69732. className:
  69733. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  69734. },
  69735. s.$ref
  69736. )
  69737. )
  69738. : null,
  69739. keywords_$dynamicRef = ({ schema: s }) =>
  69740. s?.$dynamicRef
  69741. ? Pe.createElement(
  69742. 'div',
  69743. {
  69744. className:
  69745. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef'
  69746. },
  69747. Pe.createElement(
  69748. 'span',
  69749. {
  69750. className:
  69751. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69752. },
  69753. '$dynamicRef'
  69754. ),
  69755. Pe.createElement(
  69756. 'span',
  69757. {
  69758. className:
  69759. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  69760. },
  69761. s.$dynamicRef
  69762. )
  69763. )
  69764. : null,
  69765. keywords_$defs = ({ schema: s }) => {
  69766. const o = s?.$defs || {},
  69767. i = useIsExpanded(),
  69768. u = useIsExpandedDeeply(),
  69769. [_, w] = (0, Pe.useState)(i || u),
  69770. [x, C] = (0, Pe.useState)(!1),
  69771. j = useComponent('Accordion'),
  69772. L = useComponent('ExpandDeepButton'),
  69773. B = useComponent('JSONSchema'),
  69774. $ = (0, Pe.useCallback)(() => {
  69775. w((s) => !s);
  69776. }, []),
  69777. V = (0, Pe.useCallback)((s, o) => {
  69778. w(o), C(o);
  69779. }, []);
  69780. return 0 === Object.keys(o).length
  69781. ? null
  69782. : Pe.createElement(
  69783. nI.Provider,
  69784. { value: x },
  69785. Pe.createElement(
  69786. 'div',
  69787. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs' },
  69788. Pe.createElement(
  69789. j,
  69790. { expanded: _, onChange: $ },
  69791. Pe.createElement(
  69792. 'span',
  69793. {
  69794. className:
  69795. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69796. },
  69797. '$defs'
  69798. )
  69799. ),
  69800. Pe.createElement(L, { expanded: _, onClick: V }),
  69801. Pe.createElement(
  69802. 'strong',
  69803. {
  69804. className:
  69805. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary'
  69806. },
  69807. 'object'
  69808. ),
  69809. Pe.createElement(
  69810. 'ul',
  69811. {
  69812. className: Hn()('json-schema-2020-12-keyword__children', {
  69813. 'json-schema-2020-12-keyword__children--collapsed': !_
  69814. })
  69815. },
  69816. _ &&
  69817. Pe.createElement(
  69818. Pe.Fragment,
  69819. null,
  69820. Object.entries(o).map(([s, o]) =>
  69821. Pe.createElement(
  69822. 'li',
  69823. { key: s, className: 'json-schema-2020-12-property' },
  69824. Pe.createElement(B, { name: s, schema: o })
  69825. )
  69826. )
  69827. )
  69828. )
  69829. )
  69830. );
  69831. },
  69832. keywords_$comment = ({ schema: s }) =>
  69833. s?.$comment
  69834. ? Pe.createElement(
  69835. 'div',
  69836. {
  69837. className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment'
  69838. },
  69839. Pe.createElement(
  69840. 'span',
  69841. {
  69842. className:
  69843. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary'
  69844. },
  69845. '$comment'
  69846. ),
  69847. Pe.createElement(
  69848. 'span',
  69849. {
  69850. className:
  69851. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary'
  69852. },
  69853. s.$comment
  69854. )
  69855. )
  69856. : null,
  69857. keywords_AllOf = ({ schema: s }) => {
  69858. const o = s?.allOf || [],
  69859. i = useFn(),
  69860. u = useIsExpanded(),
  69861. _ = useIsExpandedDeeply(),
  69862. [w, x] = (0, Pe.useState)(u || _),
  69863. [C, j] = (0, Pe.useState)(!1),
  69864. L = useComponent('Accordion'),
  69865. B = useComponent('ExpandDeepButton'),
  69866. $ = useComponent('JSONSchema'),
  69867. V = useComponent('KeywordType'),
  69868. U = (0, Pe.useCallback)(() => {
  69869. x((s) => !s);
  69870. }, []),
  69871. z = (0, Pe.useCallback)((s, o) => {
  69872. x(o), j(o);
  69873. }, []);
  69874. return Array.isArray(o) && 0 !== o.length
  69875. ? Pe.createElement(
  69876. nI.Provider,
  69877. { value: C },
  69878. Pe.createElement(
  69879. 'div',
  69880. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf' },
  69881. Pe.createElement(
  69882. L,
  69883. { expanded: w, onChange: U },
  69884. Pe.createElement(
  69885. 'span',
  69886. {
  69887. className:
  69888. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  69889. },
  69890. 'All of'
  69891. )
  69892. ),
  69893. Pe.createElement(B, { expanded: w, onClick: z }),
  69894. Pe.createElement(V, { schema: { allOf: o } }),
  69895. Pe.createElement(
  69896. 'ul',
  69897. {
  69898. className: Hn()('json-schema-2020-12-keyword__children', {
  69899. 'json-schema-2020-12-keyword__children--collapsed': !w
  69900. })
  69901. },
  69902. w &&
  69903. Pe.createElement(
  69904. Pe.Fragment,
  69905. null,
  69906. o.map((s, o) =>
  69907. Pe.createElement(
  69908. 'li',
  69909. { key: `#${o}`, className: 'json-schema-2020-12-property' },
  69910. Pe.createElement($, { name: `#${o} ${i.getTitle(s)}`, schema: s })
  69911. )
  69912. )
  69913. )
  69914. )
  69915. )
  69916. )
  69917. : null;
  69918. },
  69919. keywords_AnyOf = ({ schema: s }) => {
  69920. const o = s?.anyOf || [],
  69921. i = useFn(),
  69922. u = useIsExpanded(),
  69923. _ = useIsExpandedDeeply(),
  69924. [w, x] = (0, Pe.useState)(u || _),
  69925. [C, j] = (0, Pe.useState)(!1),
  69926. L = useComponent('Accordion'),
  69927. B = useComponent('ExpandDeepButton'),
  69928. $ = useComponent('JSONSchema'),
  69929. V = useComponent('KeywordType'),
  69930. U = (0, Pe.useCallback)(() => {
  69931. x((s) => !s);
  69932. }, []),
  69933. z = (0, Pe.useCallback)((s, o) => {
  69934. x(o), j(o);
  69935. }, []);
  69936. return Array.isArray(o) && 0 !== o.length
  69937. ? Pe.createElement(
  69938. nI.Provider,
  69939. { value: C },
  69940. Pe.createElement(
  69941. 'div',
  69942. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf' },
  69943. Pe.createElement(
  69944. L,
  69945. { expanded: w, onChange: U },
  69946. Pe.createElement(
  69947. 'span',
  69948. {
  69949. className:
  69950. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  69951. },
  69952. 'Any of'
  69953. )
  69954. ),
  69955. Pe.createElement(B, { expanded: w, onClick: z }),
  69956. Pe.createElement(V, { schema: { anyOf: o } }),
  69957. Pe.createElement(
  69958. 'ul',
  69959. {
  69960. className: Hn()('json-schema-2020-12-keyword__children', {
  69961. 'json-schema-2020-12-keyword__children--collapsed': !w
  69962. })
  69963. },
  69964. w &&
  69965. Pe.createElement(
  69966. Pe.Fragment,
  69967. null,
  69968. o.map((s, o) =>
  69969. Pe.createElement(
  69970. 'li',
  69971. { key: `#${o}`, className: 'json-schema-2020-12-property' },
  69972. Pe.createElement($, { name: `#${o} ${i.getTitle(s)}`, schema: s })
  69973. )
  69974. )
  69975. )
  69976. )
  69977. )
  69978. )
  69979. : null;
  69980. },
  69981. keywords_OneOf = ({ schema: s }) => {
  69982. const o = s?.oneOf || [],
  69983. i = useFn(),
  69984. u = useIsExpanded(),
  69985. _ = useIsExpandedDeeply(),
  69986. [w, x] = (0, Pe.useState)(u || _),
  69987. [C, j] = (0, Pe.useState)(!1),
  69988. L = useComponent('Accordion'),
  69989. B = useComponent('ExpandDeepButton'),
  69990. $ = useComponent('JSONSchema'),
  69991. V = useComponent('KeywordType'),
  69992. U = (0, Pe.useCallback)(() => {
  69993. x((s) => !s);
  69994. }, []),
  69995. z = (0, Pe.useCallback)((s, o) => {
  69996. x(o), j(o);
  69997. }, []);
  69998. return Array.isArray(o) && 0 !== o.length
  69999. ? Pe.createElement(
  70000. nI.Provider,
  70001. { value: C },
  70002. Pe.createElement(
  70003. 'div',
  70004. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf' },
  70005. Pe.createElement(
  70006. L,
  70007. { expanded: w, onChange: U },
  70008. Pe.createElement(
  70009. 'span',
  70010. {
  70011. className:
  70012. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70013. },
  70014. 'One of'
  70015. )
  70016. ),
  70017. Pe.createElement(B, { expanded: w, onClick: z }),
  70018. Pe.createElement(V, { schema: { oneOf: o } }),
  70019. Pe.createElement(
  70020. 'ul',
  70021. {
  70022. className: Hn()('json-schema-2020-12-keyword__children', {
  70023. 'json-schema-2020-12-keyword__children--collapsed': !w
  70024. })
  70025. },
  70026. w &&
  70027. Pe.createElement(
  70028. Pe.Fragment,
  70029. null,
  70030. o.map((s, o) =>
  70031. Pe.createElement(
  70032. 'li',
  70033. { key: `#${o}`, className: 'json-schema-2020-12-property' },
  70034. Pe.createElement($, { name: `#${o} ${i.getTitle(s)}`, schema: s })
  70035. )
  70036. )
  70037. )
  70038. )
  70039. )
  70040. )
  70041. : null;
  70042. },
  70043. keywords_Not = ({ schema: s }) => {
  70044. const o = useFn(),
  70045. i = useComponent('JSONSchema');
  70046. if (!o.hasKeyword(s, 'not')) return null;
  70047. const u = Pe.createElement(
  70048. 'span',
  70049. {
  70050. className:
  70051. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70052. },
  70053. 'Not'
  70054. );
  70055. return Pe.createElement(
  70056. 'div',
  70057. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--not' },
  70058. Pe.createElement(i, { name: u, schema: s.not })
  70059. );
  70060. },
  70061. keywords_If = ({ schema: s }) => {
  70062. const o = useFn(),
  70063. i = useComponent('JSONSchema');
  70064. if (!o.hasKeyword(s, 'if')) return null;
  70065. const u = Pe.createElement(
  70066. 'span',
  70067. {
  70068. className:
  70069. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70070. },
  70071. 'If'
  70072. );
  70073. return Pe.createElement(
  70074. 'div',
  70075. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--if' },
  70076. Pe.createElement(i, { name: u, schema: s.if })
  70077. );
  70078. },
  70079. keywords_Then = ({ schema: s }) => {
  70080. const o = useFn(),
  70081. i = useComponent('JSONSchema');
  70082. if (!o.hasKeyword(s, 'then')) return null;
  70083. const u = Pe.createElement(
  70084. 'span',
  70085. {
  70086. className:
  70087. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70088. },
  70089. 'Then'
  70090. );
  70091. return Pe.createElement(
  70092. 'div',
  70093. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--then' },
  70094. Pe.createElement(i, { name: u, schema: s.then })
  70095. );
  70096. },
  70097. keywords_Else = ({ schema: s }) => {
  70098. const o = useFn(),
  70099. i = useComponent('JSONSchema');
  70100. if (!o.hasKeyword(s, 'else')) return null;
  70101. const u = Pe.createElement(
  70102. 'span',
  70103. {
  70104. className:
  70105. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70106. },
  70107. 'Else'
  70108. );
  70109. return Pe.createElement(
  70110. 'div',
  70111. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--if' },
  70112. Pe.createElement(i, { name: u, schema: s.else })
  70113. );
  70114. },
  70115. keywords_DependentSchemas = ({ schema: s }) => {
  70116. const o = s?.dependentSchemas || [],
  70117. i = useIsExpanded(),
  70118. u = useIsExpandedDeeply(),
  70119. [_, w] = (0, Pe.useState)(i || u),
  70120. [x, C] = (0, Pe.useState)(!1),
  70121. j = useComponent('Accordion'),
  70122. L = useComponent('ExpandDeepButton'),
  70123. B = useComponent('JSONSchema'),
  70124. $ = (0, Pe.useCallback)(() => {
  70125. w((s) => !s);
  70126. }, []),
  70127. V = (0, Pe.useCallback)((s, o) => {
  70128. w(o), C(o);
  70129. }, []);
  70130. return 'object' != typeof o || 0 === Object.keys(o).length
  70131. ? null
  70132. : Pe.createElement(
  70133. nI.Provider,
  70134. { value: x },
  70135. Pe.createElement(
  70136. 'div',
  70137. {
  70138. className:
  70139. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas'
  70140. },
  70141. Pe.createElement(
  70142. j,
  70143. { expanded: _, onChange: $ },
  70144. Pe.createElement(
  70145. 'span',
  70146. {
  70147. className:
  70148. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70149. },
  70150. 'Dependent schemas'
  70151. )
  70152. ),
  70153. Pe.createElement(L, { expanded: _, onClick: V }),
  70154. Pe.createElement(
  70155. 'strong',
  70156. {
  70157. className:
  70158. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary'
  70159. },
  70160. 'object'
  70161. ),
  70162. Pe.createElement(
  70163. 'ul',
  70164. {
  70165. className: Hn()('json-schema-2020-12-keyword__children', {
  70166. 'json-schema-2020-12-keyword__children--collapsed': !_
  70167. })
  70168. },
  70169. _ &&
  70170. Pe.createElement(
  70171. Pe.Fragment,
  70172. null,
  70173. Object.entries(o).map(([s, o]) =>
  70174. Pe.createElement(
  70175. 'li',
  70176. { key: s, className: 'json-schema-2020-12-property' },
  70177. Pe.createElement(B, { name: s, schema: o })
  70178. )
  70179. )
  70180. )
  70181. )
  70182. )
  70183. );
  70184. },
  70185. keywords_PrefixItems = ({ schema: s }) => {
  70186. const o = s?.prefixItems || [],
  70187. i = useFn(),
  70188. u = useIsExpanded(),
  70189. _ = useIsExpandedDeeply(),
  70190. [w, x] = (0, Pe.useState)(u || _),
  70191. [C, j] = (0, Pe.useState)(!1),
  70192. L = useComponent('Accordion'),
  70193. B = useComponent('ExpandDeepButton'),
  70194. $ = useComponent('JSONSchema'),
  70195. V = useComponent('KeywordType'),
  70196. U = (0, Pe.useCallback)(() => {
  70197. x((s) => !s);
  70198. }, []),
  70199. z = (0, Pe.useCallback)((s, o) => {
  70200. x(o), j(o);
  70201. }, []);
  70202. return Array.isArray(o) && 0 !== o.length
  70203. ? Pe.createElement(
  70204. nI.Provider,
  70205. { value: C },
  70206. Pe.createElement(
  70207. 'div',
  70208. {
  70209. className:
  70210. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems'
  70211. },
  70212. Pe.createElement(
  70213. L,
  70214. { expanded: w, onChange: U },
  70215. Pe.createElement(
  70216. 'span',
  70217. {
  70218. className:
  70219. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70220. },
  70221. 'Prefix items'
  70222. )
  70223. ),
  70224. Pe.createElement(B, { expanded: w, onClick: z }),
  70225. Pe.createElement(V, { schema: { prefixItems: o } }),
  70226. Pe.createElement(
  70227. 'ul',
  70228. {
  70229. className: Hn()('json-schema-2020-12-keyword__children', {
  70230. 'json-schema-2020-12-keyword__children--collapsed': !w
  70231. })
  70232. },
  70233. w &&
  70234. Pe.createElement(
  70235. Pe.Fragment,
  70236. null,
  70237. o.map((s, o) =>
  70238. Pe.createElement(
  70239. 'li',
  70240. { key: `#${o}`, className: 'json-schema-2020-12-property' },
  70241. Pe.createElement($, { name: `#${o} ${i.getTitle(s)}`, schema: s })
  70242. )
  70243. )
  70244. )
  70245. )
  70246. )
  70247. )
  70248. : null;
  70249. },
  70250. keywords_Items = ({ schema: s }) => {
  70251. const o = useFn(),
  70252. i = useComponent('JSONSchema');
  70253. if (!o.hasKeyword(s, 'items')) return null;
  70254. const u = Pe.createElement(
  70255. 'span',
  70256. {
  70257. className:
  70258. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70259. },
  70260. 'Items'
  70261. );
  70262. return Pe.createElement(
  70263. 'div',
  70264. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--items' },
  70265. Pe.createElement(i, { name: u, schema: s.items })
  70266. );
  70267. },
  70268. keywords_Contains = ({ schema: s }) => {
  70269. const o = useFn(),
  70270. i = useComponent('JSONSchema');
  70271. if (!o.hasKeyword(s, 'contains')) return null;
  70272. const u = Pe.createElement(
  70273. 'span',
  70274. {
  70275. className:
  70276. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70277. },
  70278. 'Contains'
  70279. );
  70280. return Pe.createElement(
  70281. 'div',
  70282. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--contains' },
  70283. Pe.createElement(i, { name: u, schema: s.contains })
  70284. );
  70285. },
  70286. keywords_Properties_Properties = ({ schema: s }) => {
  70287. const o = useFn(),
  70288. i = s?.properties || {},
  70289. u = Array.isArray(s?.required) ? s.required : [],
  70290. _ = useComponent('JSONSchema');
  70291. return 0 === Object.keys(i).length
  70292. ? null
  70293. : Pe.createElement(
  70294. 'div',
  70295. {
  70296. className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--properties'
  70297. },
  70298. Pe.createElement(
  70299. 'ul',
  70300. null,
  70301. Object.entries(i).map(([i, w]) => {
  70302. const x = u.includes(i),
  70303. C = o.getDependentRequired(i, s);
  70304. return Pe.createElement(
  70305. 'li',
  70306. {
  70307. key: i,
  70308. className: Hn()('json-schema-2020-12-property', {
  70309. 'json-schema-2020-12-property--required': x
  70310. })
  70311. },
  70312. Pe.createElement(_, { name: i, schema: w, dependentRequired: C })
  70313. );
  70314. })
  70315. )
  70316. );
  70317. },
  70318. PatternProperties_PatternProperties = ({ schema: s }) => {
  70319. const o = s?.patternProperties || {},
  70320. i = useComponent('JSONSchema');
  70321. return 0 === Object.keys(o).length
  70322. ? null
  70323. : Pe.createElement(
  70324. 'div',
  70325. {
  70326. className:
  70327. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties'
  70328. },
  70329. Pe.createElement(
  70330. 'ul',
  70331. null,
  70332. Object.entries(o).map(([s, o]) =>
  70333. Pe.createElement(
  70334. 'li',
  70335. { key: s, className: 'json-schema-2020-12-property' },
  70336. Pe.createElement(i, { name: s, schema: o })
  70337. )
  70338. )
  70339. )
  70340. );
  70341. },
  70342. keywords_AdditionalProperties = ({ schema: s }) => {
  70343. const o = useFn(),
  70344. { additionalProperties: i } = s,
  70345. u = useComponent('JSONSchema');
  70346. if (!o.hasKeyword(s, 'additionalProperties')) return null;
  70347. const _ = Pe.createElement(
  70348. 'span',
  70349. {
  70350. className:
  70351. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70352. },
  70353. 'Additional properties'
  70354. );
  70355. return Pe.createElement(
  70356. 'div',
  70357. {
  70358. className:
  70359. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties'
  70360. },
  70361. !0 === i
  70362. ? Pe.createElement(
  70363. Pe.Fragment,
  70364. null,
  70365. _,
  70366. Pe.createElement(
  70367. 'span',
  70368. {
  70369. className:
  70370. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary'
  70371. },
  70372. 'allowed'
  70373. )
  70374. )
  70375. : !1 === i
  70376. ? Pe.createElement(
  70377. Pe.Fragment,
  70378. null,
  70379. _,
  70380. Pe.createElement(
  70381. 'span',
  70382. {
  70383. className:
  70384. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary'
  70385. },
  70386. 'forbidden'
  70387. )
  70388. )
  70389. : Pe.createElement(u, { name: _, schema: i })
  70390. );
  70391. },
  70392. keywords_PropertyNames = ({ schema: s }) => {
  70393. const o = useFn(),
  70394. { propertyNames: i } = s,
  70395. u = useComponent('JSONSchema'),
  70396. _ = Pe.createElement(
  70397. 'span',
  70398. {
  70399. className:
  70400. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70401. },
  70402. 'Property names'
  70403. );
  70404. return o.hasKeyword(s, 'propertyNames')
  70405. ? Pe.createElement(
  70406. 'div',
  70407. {
  70408. className:
  70409. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames'
  70410. },
  70411. Pe.createElement(u, { name: _, schema: i })
  70412. )
  70413. : null;
  70414. },
  70415. keywords_UnevaluatedItems = ({ schema: s }) => {
  70416. const o = useFn(),
  70417. { unevaluatedItems: i } = s,
  70418. u = useComponent('JSONSchema');
  70419. if (!o.hasKeyword(s, 'unevaluatedItems')) return null;
  70420. const _ = Pe.createElement(
  70421. 'span',
  70422. {
  70423. className:
  70424. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70425. },
  70426. 'Unevaluated items'
  70427. );
  70428. return Pe.createElement(
  70429. 'div',
  70430. {
  70431. className:
  70432. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems'
  70433. },
  70434. Pe.createElement(u, { name: _, schema: i })
  70435. );
  70436. },
  70437. keywords_UnevaluatedProperties = ({ schema: s }) => {
  70438. const o = useFn(),
  70439. { unevaluatedProperties: i } = s,
  70440. u = useComponent('JSONSchema');
  70441. if (!o.hasKeyword(s, 'unevaluatedProperties')) return null;
  70442. const _ = Pe.createElement(
  70443. 'span',
  70444. {
  70445. className:
  70446. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70447. },
  70448. 'Unevaluated properties'
  70449. );
  70450. return Pe.createElement(
  70451. 'div',
  70452. {
  70453. className:
  70454. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties'
  70455. },
  70456. Pe.createElement(u, { name: _, schema: i })
  70457. );
  70458. },
  70459. keywords_Type = ({ schema: s, isCircular: o = !1 }) => {
  70460. const i = useFn().getType(s),
  70461. u = o ? ' [circular]' : '';
  70462. return Pe.createElement(
  70463. 'strong',
  70464. {
  70465. className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary'
  70466. },
  70467. `${i}${u}`
  70468. );
  70469. },
  70470. Enum_Enum = ({ schema: s }) => {
  70471. const o = useFn();
  70472. return Array.isArray(s?.enum)
  70473. ? Pe.createElement(
  70474. 'div',
  70475. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--enum' },
  70476. Pe.createElement(
  70477. 'span',
  70478. {
  70479. className:
  70480. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70481. },
  70482. 'Allowed values'
  70483. ),
  70484. Pe.createElement(
  70485. 'ul',
  70486. null,
  70487. s.enum.map((s) => {
  70488. const i = o.stringify(s);
  70489. return Pe.createElement(
  70490. 'li',
  70491. { key: i },
  70492. Pe.createElement(
  70493. 'span',
  70494. {
  70495. className:
  70496. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const'
  70497. },
  70498. i
  70499. )
  70500. );
  70501. })
  70502. )
  70503. )
  70504. : null;
  70505. },
  70506. keywords_Const = ({ schema: s }) => {
  70507. const o = useFn();
  70508. return o.hasKeyword(s, 'const')
  70509. ? Pe.createElement(
  70510. 'div',
  70511. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--const' },
  70512. Pe.createElement(
  70513. 'span',
  70514. {
  70515. className:
  70516. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70517. },
  70518. 'Const'
  70519. ),
  70520. Pe.createElement(
  70521. 'span',
  70522. {
  70523. className:
  70524. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const'
  70525. },
  70526. o.stringify(s.const)
  70527. )
  70528. )
  70529. : null;
  70530. },
  70531. Constraint = ({ constraint: s }) =>
  70532. Pe.createElement(
  70533. 'span',
  70534. {
  70535. className: `json-schema-2020-12__constraint json-schema-2020-12__constraint--${s.scope}`
  70536. },
  70537. s.value
  70538. ),
  70539. aI = Pe.memo(Constraint),
  70540. DependentRequired_DependentRequired = ({ dependentRequired: s }) =>
  70541. 0 === s.length
  70542. ? null
  70543. : Pe.createElement(
  70544. 'div',
  70545. {
  70546. className:
  70547. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired'
  70548. },
  70549. Pe.createElement(
  70550. 'span',
  70551. {
  70552. className:
  70553. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70554. },
  70555. 'Required when defined'
  70556. ),
  70557. Pe.createElement(
  70558. 'ul',
  70559. null,
  70560. s.map((s) =>
  70561. Pe.createElement(
  70562. 'li',
  70563. { key: s },
  70564. Pe.createElement(
  70565. 'span',
  70566. {
  70567. className:
  70568. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning'
  70569. },
  70570. s
  70571. )
  70572. )
  70573. )
  70574. )
  70575. ),
  70576. keywords_ContentSchema = ({ schema: s }) => {
  70577. const o = useFn(),
  70578. i = useComponent('JSONSchema');
  70579. if (!o.hasKeyword(s, 'contentSchema')) return null;
  70580. const u = Pe.createElement(
  70581. 'span',
  70582. {
  70583. className:
  70584. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70585. },
  70586. 'Content schema'
  70587. );
  70588. return Pe.createElement(
  70589. 'div',
  70590. {
  70591. className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema'
  70592. },
  70593. Pe.createElement(i, { name: u, schema: s.contentSchema })
  70594. );
  70595. },
  70596. Title_Title = ({ title: s = '', schema: o }) => {
  70597. const i = useFn(),
  70598. u = s || i.getTitle(o);
  70599. return u
  70600. ? Pe.createElement('div', { className: 'json-schema-2020-12__title' }, u)
  70601. : null;
  70602. },
  70603. keywords_Description_Description = ({ schema: s }) =>
  70604. s?.description
  70605. ? Pe.createElement(
  70606. 'div',
  70607. {
  70608. className:
  70609. 'json-schema-2020-12-keyword json-schema-2020-12-keyword--description'
  70610. },
  70611. Pe.createElement(
  70612. 'div',
  70613. {
  70614. className:
  70615. 'json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary'
  70616. },
  70617. s.description
  70618. )
  70619. )
  70620. : null,
  70621. keywords_Default = ({ schema: s }) => {
  70622. const o = useFn();
  70623. return o.hasKeyword(s, 'default')
  70624. ? Pe.createElement(
  70625. 'div',
  70626. { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--default' },
  70627. Pe.createElement(
  70628. 'span',
  70629. {
  70630. className:
  70631. 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary'
  70632. },
  70633. 'Default'
  70634. ),
  70635. Pe.createElement(
  70636. 'span',
  70637. {
  70638. className:
  70639. 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const'
  70640. },
  70641. o.stringify(s.default)
  70642. )
  70643. )
  70644. : null;
  70645. },
  70646. keywords_Deprecated = ({ schema: s }) =>
  70647. !0 !== s?.deprecated
  70648. ? null
  70649. : Pe.createElement(
  70650. 'span',
  70651. {
  70652. className:
  70653. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--warning'
  70654. },
  70655. 'deprecated'
  70656. ),
  70657. keywords_ReadOnly = ({ schema: s }) =>
  70658. !0 !== s?.readOnly
  70659. ? null
  70660. : Pe.createElement(
  70661. 'span',
  70662. {
  70663. className:
  70664. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--muted'
  70665. },
  70666. 'read-only'
  70667. ),
  70668. keywords_WriteOnly = ({ schema: s }) =>
  70669. !0 !== s?.writeOnly
  70670. ? null
  70671. : Pe.createElement(
  70672. 'span',
  70673. {
  70674. className:
  70675. 'json-schema-2020-12__attribute json-schema-2020-12__attribute--muted'
  70676. },
  70677. 'write-only'
  70678. ),
  70679. Accordion_Accordion = ({ expanded: s = !1, children: o, onChange: i }) => {
  70680. const u = useComponent('ChevronRightIcon'),
  70681. _ = (0, Pe.useCallback)(
  70682. (o) => {
  70683. i(o, !s);
  70684. },
  70685. [s, i]
  70686. );
  70687. return Pe.createElement(
  70688. 'button',
  70689. { type: 'button', className: 'json-schema-2020-12-accordion', onClick: _ },
  70690. Pe.createElement('div', { className: 'json-schema-2020-12-accordion__children' }, o),
  70691. Pe.createElement(
  70692. 'span',
  70693. {
  70694. className: Hn()('json-schema-2020-12-accordion__icon', {
  70695. 'json-schema-2020-12-accordion__icon--expanded': s,
  70696. 'json-schema-2020-12-accordion__icon--collapsed': !s
  70697. })
  70698. },
  70699. Pe.createElement(u, null)
  70700. )
  70701. );
  70702. },
  70703. ExpandDeepButton_ExpandDeepButton = ({ expanded: s, onClick: o }) => {
  70704. const i = (0, Pe.useCallback)(
  70705. (i) => {
  70706. o(i, !s);
  70707. },
  70708. [s, o]
  70709. );
  70710. return Pe.createElement(
  70711. 'button',
  70712. { type: 'button', className: 'json-schema-2020-12-expand-deep-button', onClick: i },
  70713. s ? 'Collapse all' : 'Expand all'
  70714. );
  70715. },
  70716. icons_ChevronRight = () =>
  70717. Pe.createElement(
  70718. 'svg',
  70719. {
  70720. xmlns: 'http://www.w3.org/2000/svg',
  70721. width: '24',
  70722. height: '24',
  70723. viewBox: '0 0 24 24'
  70724. },
  70725. Pe.createElement('path', { d: 'M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z' })
  70726. ),
  70727. fn_upperFirst = (s) =>
  70728. 'string' == typeof s ? `${s.charAt(0).toUpperCase()}${s.slice(1)}` : s,
  70729. getTitle = (s, { lookup: o = 'extended' } = {}) => {
  70730. const i = useFn();
  70731. if (null != s?.title) return i.upperFirst(String(s.title));
  70732. if ('extended' === o) {
  70733. if (null != s?.$anchor) return i.upperFirst(String(s.$anchor));
  70734. if (null != s?.$id) return String(s.$id);
  70735. }
  70736. return '';
  70737. },
  70738. getType = (s, o = new WeakSet()) => {
  70739. const i = useFn();
  70740. if (null == s) return 'any';
  70741. if (i.isBooleanJSONSchema(s)) return s ? 'any' : 'never';
  70742. if ('object' != typeof s) return 'any';
  70743. if (o.has(s)) return 'any';
  70744. o.add(s);
  70745. const { type: u, prefixItems: _, items: w } = s,
  70746. getArrayType = () => {
  70747. if (Array.isArray(_)) {
  70748. const s = _.map((s) => getType(s, o)),
  70749. i = w ? getType(w, o) : 'any';
  70750. return `array<[${s.join(', ')}], ${i}>`;
  70751. }
  70752. if (w) {
  70753. return `array<${getType(w, o)}>`;
  70754. }
  70755. return 'array<any>';
  70756. };
  70757. if (s.not && 'any' === getType(s.not)) return 'never';
  70758. const handleCombiningKeywords = (i, u) => {
  70759. if (Array.isArray(s[i])) {
  70760. return `(${s[i].map((s) => getType(s, o)).join(u)})`;
  70761. }
  70762. return null;
  70763. },
  70764. x = [
  70765. Array.isArray(u)
  70766. ? u.map((s) => ('array' === s ? getArrayType() : s)).join(' | ')
  70767. : 'array' === u
  70768. ? getArrayType()
  70769. : [
  70770. 'null',
  70771. 'boolean',
  70772. 'object',
  70773. 'array',
  70774. 'number',
  70775. 'integer',
  70776. 'string'
  70777. ].includes(u)
  70778. ? u
  70779. : (() => {
  70780. if (
  70781. Object.hasOwn(s, 'prefixItems') ||
  70782. Object.hasOwn(s, 'items') ||
  70783. Object.hasOwn(s, 'contains')
  70784. )
  70785. return getArrayType();
  70786. if (
  70787. Object.hasOwn(s, 'properties') ||
  70788. Object.hasOwn(s, 'additionalProperties') ||
  70789. Object.hasOwn(s, 'patternProperties')
  70790. )
  70791. return 'object';
  70792. if (['int32', 'int64'].includes(s.format)) return 'integer';
  70793. if (['float', 'double'].includes(s.format)) return 'number';
  70794. if (
  70795. Object.hasOwn(s, 'minimum') ||
  70796. Object.hasOwn(s, 'maximum') ||
  70797. Object.hasOwn(s, 'exclusiveMinimum') ||
  70798. Object.hasOwn(s, 'exclusiveMaximum') ||
  70799. Object.hasOwn(s, 'multipleOf')
  70800. )
  70801. return 'number | integer';
  70802. if (
  70803. Object.hasOwn(s, 'pattern') ||
  70804. Object.hasOwn(s, 'format') ||
  70805. Object.hasOwn(s, 'minLength') ||
  70806. Object.hasOwn(s, 'maxLength')
  70807. )
  70808. return 'string';
  70809. if (void 0 !== s.const) {
  70810. if (null === s.const) return 'null';
  70811. if ('boolean' == typeof s.const) return 'boolean';
  70812. if ('number' == typeof s.const)
  70813. return Number.isInteger(s.const) ? 'integer' : 'number';
  70814. if ('string' == typeof s.const) return 'string';
  70815. if (Array.isArray(s.const)) return 'array<any>';
  70816. if ('object' == typeof s.const) return 'object';
  70817. }
  70818. return null;
  70819. })(),
  70820. handleCombiningKeywords('oneOf', ' | '),
  70821. handleCombiningKeywords('anyOf', ' | '),
  70822. handleCombiningKeywords('allOf', ' & ')
  70823. ]
  70824. .filter(Boolean)
  70825. .join(' | ');
  70826. return o.delete(s), x || 'any';
  70827. },
  70828. isBooleanJSONSchema = (s) => 'boolean' == typeof s,
  70829. hasKeyword = (s, o) => null !== s && 'object' == typeof s && Object.hasOwn(s, o),
  70830. isExpandable = (s) => {
  70831. const o = useFn();
  70832. return (
  70833. s?.$schema ||
  70834. s?.$vocabulary ||
  70835. s?.$id ||
  70836. s?.$anchor ||
  70837. s?.$dynamicAnchor ||
  70838. s?.$ref ||
  70839. s?.$dynamicRef ||
  70840. s?.$defs ||
  70841. s?.$comment ||
  70842. s?.allOf ||
  70843. s?.anyOf ||
  70844. s?.oneOf ||
  70845. o.hasKeyword(s, 'not') ||
  70846. o.hasKeyword(s, 'if') ||
  70847. o.hasKeyword(s, 'then') ||
  70848. o.hasKeyword(s, 'else') ||
  70849. s?.dependentSchemas ||
  70850. s?.prefixItems ||
  70851. o.hasKeyword(s, 'items') ||
  70852. o.hasKeyword(s, 'contains') ||
  70853. s?.properties ||
  70854. s?.patternProperties ||
  70855. o.hasKeyword(s, 'additionalProperties') ||
  70856. o.hasKeyword(s, 'propertyNames') ||
  70857. o.hasKeyword(s, 'unevaluatedItems') ||
  70858. o.hasKeyword(s, 'unevaluatedProperties') ||
  70859. s?.description ||
  70860. s?.enum ||
  70861. o.hasKeyword(s, 'const') ||
  70862. o.hasKeyword(s, 'contentSchema') ||
  70863. o.hasKeyword(s, 'default')
  70864. );
  70865. },
  70866. fn_stringify = (s) =>
  70867. null === s || ['number', 'bigint', 'boolean'].includes(typeof s)
  70868. ? String(s)
  70869. : Array.isArray(s)
  70870. ? `[${s.map(fn_stringify).join(', ')}]`
  70871. : JSON.stringify(s),
  70872. stringifyConstraintRange = (s, o, i) => {
  70873. const u = 'number' == typeof o,
  70874. _ = 'number' == typeof i;
  70875. return u && _
  70876. ? o === i
  70877. ? `${o} ${s}`
  70878. : `[${o}, ${i}] ${s}`
  70879. : u
  70880. ? `>= ${o} ${s}`
  70881. : _
  70882. ? `<= ${i} ${s}`
  70883. : null;
  70884. },
  70885. stringifyConstraints = (s) => {
  70886. const o = [],
  70887. i = ((s) => {
  70888. if ('number' != typeof s?.multipleOf) return null;
  70889. if (s.multipleOf <= 0) return null;
  70890. if (1 === s.multipleOf) return null;
  70891. const { multipleOf: o } = s;
  70892. if (Number.isInteger(o)) return `multiple of ${o}`;
  70893. const i = 10 ** o.toString().split('.')[1].length;
  70894. return `multiple of ${o * i}/${i}`;
  70895. })(s);
  70896. null !== i && o.push({ scope: 'number', value: i });
  70897. const u = ((s) => {
  70898. const o = s?.minimum,
  70899. i = s?.maximum,
  70900. u = s?.exclusiveMinimum,
  70901. _ = s?.exclusiveMaximum,
  70902. w = 'number' == typeof o,
  70903. x = 'number' == typeof i,
  70904. C = 'number' == typeof u,
  70905. j = 'number' == typeof _,
  70906. L = C && (!w || o < u),
  70907. B = j && (!x || i > _);
  70908. if ((w || C) && (x || j))
  70909. return `${L ? '(' : '['}${L ? u : o}, ${B ? _ : i}${B ? ')' : ']'}`;
  70910. if (w || C) return `${L ? '>' : '≥'} ${L ? u : o}`;
  70911. if (x || j) return `${B ? '<' : '≤'} ${B ? _ : i}`;
  70912. return null;
  70913. })(s);
  70914. null !== u && o.push({ scope: 'number', value: u }),
  70915. s?.format && o.push({ scope: 'string', value: s.format });
  70916. const _ = stringifyConstraintRange('characters', s?.minLength, s?.maxLength);
  70917. null !== _ && o.push({ scope: 'string', value: _ }),
  70918. s?.pattern && o.push({ scope: 'string', value: `matches ${s?.pattern}` }),
  70919. s?.contentMediaType &&
  70920. o.push({ scope: 'string', value: `media type: ${s.contentMediaType}` }),
  70921. s?.contentEncoding &&
  70922. o.push({ scope: 'string', value: `encoding: ${s.contentEncoding}` });
  70923. const w = stringifyConstraintRange(
  70924. s?.hasUniqueItems ? 'unique items' : 'items',
  70925. s?.minItems,
  70926. s?.maxItems
  70927. );
  70928. null !== w && o.push({ scope: 'array', value: w });
  70929. const x = stringifyConstraintRange('contained items', s?.minContains, s?.maxContains);
  70930. null !== x && o.push({ scope: 'array', value: x });
  70931. const C = stringifyConstraintRange('properties', s?.minProperties, s?.maxProperties);
  70932. return null !== C && o.push({ scope: 'object', value: C }), o;
  70933. },
  70934. getDependentRequired = (s, o) =>
  70935. o?.dependentRequired
  70936. ? Array.from(
  70937. Object.entries(o.dependentRequired).reduce(
  70938. (o, [i, u]) => (Array.isArray(u) && u.includes(s) ? (o.add(i), o) : o),
  70939. new Set()
  70940. )
  70941. )
  70942. : [],
  70943. withJSONSchemaContext = (s, o = {}) => {
  70944. const i = {
  70945. components: {
  70946. JSONSchema: iI,
  70947. Keyword$schema: keywords_$schema,
  70948. Keyword$vocabulary: $vocabulary_$vocabulary,
  70949. Keyword$id: keywords_$id,
  70950. Keyword$anchor: keywords_$anchor,
  70951. Keyword$dynamicAnchor: keywords_$dynamicAnchor,
  70952. Keyword$ref: keywords_$ref,
  70953. Keyword$dynamicRef: keywords_$dynamicRef,
  70954. Keyword$defs: keywords_$defs,
  70955. Keyword$comment: keywords_$comment,
  70956. KeywordAllOf: keywords_AllOf,
  70957. KeywordAnyOf: keywords_AnyOf,
  70958. KeywordOneOf: keywords_OneOf,
  70959. KeywordNot: keywords_Not,
  70960. KeywordIf: keywords_If,
  70961. KeywordThen: keywords_Then,
  70962. KeywordElse: keywords_Else,
  70963. KeywordDependentSchemas: keywords_DependentSchemas,
  70964. KeywordPrefixItems: keywords_PrefixItems,
  70965. KeywordItems: keywords_Items,
  70966. KeywordContains: keywords_Contains,
  70967. KeywordProperties: keywords_Properties_Properties,
  70968. KeywordPatternProperties: PatternProperties_PatternProperties,
  70969. KeywordAdditionalProperties: keywords_AdditionalProperties,
  70970. KeywordPropertyNames: keywords_PropertyNames,
  70971. KeywordUnevaluatedItems: keywords_UnevaluatedItems,
  70972. KeywordUnevaluatedProperties: keywords_UnevaluatedProperties,
  70973. KeywordType: keywords_Type,
  70974. KeywordEnum: Enum_Enum,
  70975. KeywordConst: keywords_Const,
  70976. KeywordConstraint: aI,
  70977. KeywordDependentRequired: DependentRequired_DependentRequired,
  70978. KeywordContentSchema: keywords_ContentSchema,
  70979. KeywordTitle: Title_Title,
  70980. KeywordDescription: keywords_Description_Description,
  70981. KeywordDefault: keywords_Default,
  70982. KeywordDeprecated: keywords_Deprecated,
  70983. KeywordReadOnly: keywords_ReadOnly,
  70984. KeywordWriteOnly: keywords_WriteOnly,
  70985. Accordion: Accordion_Accordion,
  70986. ExpandDeepButton: ExpandDeepButton_ExpandDeepButton,
  70987. ChevronRightIcon: icons_ChevronRight,
  70988. ...o.components
  70989. },
  70990. config: {
  70991. default$schema: 'https://json-schema.org/draft/2020-12/schema',
  70992. defaultExpandedLevels: 0,
  70993. ...o.config
  70994. },
  70995. fn: {
  70996. upperFirst: fn_upperFirst,
  70997. getTitle,
  70998. getType,
  70999. isBooleanJSONSchema,
  71000. hasKeyword,
  71001. isExpandable,
  71002. stringify: fn_stringify,
  71003. stringifyConstraints,
  71004. getDependentRequired,
  71005. ...o.fn
  71006. }
  71007. },
  71008. HOC = (o) => Pe.createElement(tI.Provider, { value: i }, Pe.createElement(s, o));
  71009. return (
  71010. (HOC.contexts = { JSONSchemaContext: tI }), (HOC.displayName = s.displayName), HOC
  71011. );
  71012. },
  71013. json_schema_2020_12 = () => ({
  71014. components: {
  71015. JSONSchema202012: iI,
  71016. JSONSchema202012Keyword$schema: keywords_$schema,
  71017. JSONSchema202012Keyword$vocabulary: $vocabulary_$vocabulary,
  71018. JSONSchema202012Keyword$id: keywords_$id,
  71019. JSONSchema202012Keyword$anchor: keywords_$anchor,
  71020. JSONSchema202012Keyword$dynamicAnchor: keywords_$dynamicAnchor,
  71021. JSONSchema202012Keyword$ref: keywords_$ref,
  71022. JSONSchema202012Keyword$dynamicRef: keywords_$dynamicRef,
  71023. JSONSchema202012Keyword$defs: keywords_$defs,
  71024. JSONSchema202012Keyword$comment: keywords_$comment,
  71025. JSONSchema202012KeywordAllOf: keywords_AllOf,
  71026. JSONSchema202012KeywordAnyOf: keywords_AnyOf,
  71027. JSONSchema202012KeywordOneOf: keywords_OneOf,
  71028. JSONSchema202012KeywordNot: keywords_Not,
  71029. JSONSchema202012KeywordIf: keywords_If,
  71030. JSONSchema202012KeywordThen: keywords_Then,
  71031. JSONSchema202012KeywordElse: keywords_Else,
  71032. JSONSchema202012KeywordDependentSchemas: keywords_DependentSchemas,
  71033. JSONSchema202012KeywordPrefixItems: keywords_PrefixItems,
  71034. JSONSchema202012KeywordItems: keywords_Items,
  71035. JSONSchema202012KeywordContains: keywords_Contains,
  71036. JSONSchema202012KeywordProperties: keywords_Properties_Properties,
  71037. JSONSchema202012KeywordPatternProperties: PatternProperties_PatternProperties,
  71038. JSONSchema202012KeywordAdditionalProperties: keywords_AdditionalProperties,
  71039. JSONSchema202012KeywordPropertyNames: keywords_PropertyNames,
  71040. JSONSchema202012KeywordUnevaluatedItems: keywords_UnevaluatedItems,
  71041. JSONSchema202012KeywordUnevaluatedProperties: keywords_UnevaluatedProperties,
  71042. JSONSchema202012KeywordType: keywords_Type,
  71043. JSONSchema202012KeywordEnum: Enum_Enum,
  71044. JSONSchema202012KeywordConst: keywords_Const,
  71045. JSONSchema202012KeywordConstraint: aI,
  71046. JSONSchema202012KeywordDependentRequired: DependentRequired_DependentRequired,
  71047. JSONSchema202012KeywordContentSchema: keywords_ContentSchema,
  71048. JSONSchema202012KeywordTitle: Title_Title,
  71049. JSONSchema202012KeywordDescription: keywords_Description_Description,
  71050. JSONSchema202012KeywordDefault: keywords_Default,
  71051. JSONSchema202012KeywordDeprecated: keywords_Deprecated,
  71052. JSONSchema202012KeywordReadOnly: keywords_ReadOnly,
  71053. JSONSchema202012KeywordWriteOnly: keywords_WriteOnly,
  71054. JSONSchema202012Accordion: Accordion_Accordion,
  71055. JSONSchema202012ExpandDeepButton: ExpandDeepButton_ExpandDeepButton,
  71056. JSONSchema202012ChevronRightIcon: icons_ChevronRight,
  71057. withJSONSchema202012Context: withJSONSchemaContext,
  71058. JSONSchema202012DeepExpansionContext: () => nI
  71059. },
  71060. fn: {
  71061. upperFirst: fn_upperFirst,
  71062. jsonSchema202012: {
  71063. isExpandable,
  71064. hasKeyword,
  71065. useFn,
  71066. useConfig,
  71067. useComponent,
  71068. useIsExpandedDeeply
  71069. }
  71070. }
  71071. });
  71072. var lI = __webpack_require__(11331),
  71073. cI = __webpack_require__.n(lI);
  71074. const array = (s, { sample: o }) =>
  71075. ((s, o = {}) => {
  71076. const { minItems: i, maxItems: u, uniqueItems: _ } = o,
  71077. { contains: w, minContains: x, maxContains: C } = o;
  71078. let j = [...s];
  71079. if (null != w && 'object' == typeof w) {
  71080. if (Number.isInteger(x) && x > 1) {
  71081. const s = j.at(0);
  71082. for (let o = 1; o < x; o += 1) j.unshift(s);
  71083. }
  71084. Number.isInteger(C);
  71085. }
  71086. if (
  71087. (Number.isInteger(u) && u > 0 && (j = s.slice(0, u)), Number.isInteger(i) && i > 0)
  71088. )
  71089. for (let s = 0; j.length < i; s += 1) j.push(j[s % j.length]);
  71090. return !0 === _ && (j = Array.from(new Set(j))), j;
  71091. })(o, s),
  71092. object = () => {
  71093. throw new Error('Not implemented');
  71094. },
  71095. bytes = (s) => St()(s),
  71096. random_pick = (s) => s.at(0),
  71097. predicates_isBooleanJSONSchema = (s) => 'boolean' == typeof s,
  71098. isJSONSchemaObject = (s) => cI()(s),
  71099. isJSONSchema = (s) => predicates_isBooleanJSONSchema(s) || isJSONSchemaObject(s);
  71100. const uI = class Registry {
  71101. data = {};
  71102. register(s, o) {
  71103. this.data[s] = o;
  71104. }
  71105. unregister(s) {
  71106. void 0 === s ? (this.data = {}) : delete this.data[s];
  71107. }
  71108. get(s) {
  71109. return this.data[s];
  71110. }
  71111. },
  71112. int32 = () => (2 ** 30) >>> 0,
  71113. int64 = () => 2 ** 53 - 1,
  71114. generators_float = () => 0.1,
  71115. generators_double = () => 0.1,
  71116. email = () => 'user@example.com',
  71117. idn_email = () => '실례@example.com',
  71118. hostname = () => 'example.com',
  71119. idn_hostname = () => '실례.com',
  71120. ipv4 = () => '198.51.100.42',
  71121. ipv6 = () => '2001:0db8:5b96:0000:0000:426f:8e17:642a',
  71122. uri = () => 'https://example.com/',
  71123. uri_reference = () => 'path/index.html',
  71124. iri = () => 'https://실례.com/',
  71125. iri_reference = () => 'path/실례.html',
  71126. uuid = () => '3fa85f64-5717-4562-b3fc-2c963f66afa6',
  71127. uri_template = () => 'https://example.com/dictionary/{term:1}/{term}',
  71128. json_pointer = () => '/a/b/c',
  71129. relative_json_pointer = () => '1/0',
  71130. date_time = () => new Date().toISOString(),
  71131. date = () => new Date().toISOString().substring(0, 10),
  71132. time = () => new Date().toISOString().substring(11),
  71133. duration = () => 'P3D',
  71134. generators_password = () => '********',
  71135. regex = () => '^[a-z]+$';
  71136. const pI = new (class FormatRegistry extends uI {
  71137. #t = {
  71138. int32,
  71139. int64,
  71140. float: generators_float,
  71141. double: generators_double,
  71142. email,
  71143. 'idn-email': idn_email,
  71144. hostname,
  71145. 'idn-hostname': idn_hostname,
  71146. ipv4,
  71147. ipv6,
  71148. uri,
  71149. 'uri-reference': uri_reference,
  71150. iri,
  71151. 'iri-reference': iri_reference,
  71152. uuid,
  71153. 'uri-template': uri_template,
  71154. 'json-pointer': json_pointer,
  71155. 'relative-json-pointer': relative_json_pointer,
  71156. 'date-time': date_time,
  71157. date,
  71158. time,
  71159. duration,
  71160. password: generators_password,
  71161. regex
  71162. };
  71163. data = { ...this.#t };
  71164. get defaults() {
  71165. return { ...this.#t };
  71166. }
  71167. })(),
  71168. formatAPI = (s, o) =>
  71169. 'function' == typeof o ? pI.register(s, o) : null === o ? pI.unregister(s) : pI.get(s);
  71170. formatAPI.getDefaults = () => pI.defaults;
  71171. const hI = formatAPI;
  71172. var dI = __webpack_require__(48287).Buffer;
  71173. const _7bit = (s) => dI.from(s).toString('ascii');
  71174. var fI = __webpack_require__(48287).Buffer;
  71175. const _8bit = (s) => fI.from(s).toString('utf8');
  71176. var mI = __webpack_require__(48287).Buffer;
  71177. const encoders_binary = (s) => mI.from(s).toString('binary'),
  71178. quoted_printable = (s) => {
  71179. let o = '';
  71180. for (let i = 0; i < s.length; i++) {
  71181. const u = s.charCodeAt(i);
  71182. if (61 === u) o += '=3D';
  71183. else if ((u >= 33 && u <= 60) || (u >= 62 && u <= 126) || 9 === u || 32 === u)
  71184. o += s.charAt(i);
  71185. else if (13 === u || 10 === u) o += '\r\n';
  71186. else if (u > 126) {
  71187. const u = unescape(encodeURIComponent(s.charAt(i)));
  71188. for (let s = 0; s < u.length; s++)
  71189. o += '=' + ('0' + u.charCodeAt(s).toString(16)).slice(-2).toUpperCase();
  71190. } else o += '=' + ('0' + u.toString(16)).slice(-2).toUpperCase();
  71191. }
  71192. return o;
  71193. };
  71194. var gI = __webpack_require__(48287).Buffer;
  71195. const base16 = (s) => gI.from(s).toString('hex');
  71196. var yI = __webpack_require__(48287).Buffer;
  71197. const base32 = (s) => {
  71198. const o = yI.from(s).toString('utf8'),
  71199. i = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
  71200. let u = 0,
  71201. _ = '',
  71202. w = 0,
  71203. x = 0;
  71204. for (let s = 0; s < o.length; s++)
  71205. for (w = (w << 8) | o.charCodeAt(s), x += 8; x >= 5; )
  71206. (_ += i.charAt((w >>> (x - 5)) & 31)), (x -= 5);
  71207. x > 0 && ((_ += i.charAt((w << (5 - x)) & 31)), (u = (8 - ((8 * o.length) % 5)) % 5));
  71208. for (let s = 0; s < u; s++) _ += '=';
  71209. return _;
  71210. };
  71211. var vI = __webpack_require__(48287).Buffer;
  71212. const base64 = (s) => vI.from(s).toString('base64');
  71213. var bI = __webpack_require__(48287).Buffer;
  71214. const base64url = (s) => bI.from(s).toString('base64url');
  71215. const _I = new (class EncoderRegistry extends uI {
  71216. #t = {
  71217. '7bit': _7bit,
  71218. '8bit': _8bit,
  71219. binary: encoders_binary,
  71220. 'quoted-printable': quoted_printable,
  71221. base16,
  71222. base32,
  71223. base64,
  71224. base64url
  71225. };
  71226. data = { ...this.#t };
  71227. get defaults() {
  71228. return { ...this.#t };
  71229. }
  71230. })(),
  71231. encoderAPI = (s, o) =>
  71232. 'function' == typeof o ? _I.register(s, o) : null === o ? _I.unregister(s) : _I.get(s);
  71233. encoderAPI.getDefaults = () => _I.defaults;
  71234. const EI = encoderAPI,
  71235. wI = {
  71236. 'text/plain': () => 'string',
  71237. 'text/css': () => '.selector { border: 1px solid red }',
  71238. 'text/csv': () => 'value1,value2,value3',
  71239. 'text/html': () => '<p>content</p>',
  71240. 'text/calendar': () => 'BEGIN:VCALENDAR',
  71241. 'text/javascript': () => "console.dir('Hello world!');",
  71242. 'text/xml': () => '<person age="30">John Doe</person>',
  71243. 'text/*': () => 'string'
  71244. },
  71245. SI = { 'image/*': () => bytes(25).toString('binary') },
  71246. xI = { 'audio/*': () => bytes(25).toString('binary') },
  71247. kI = { 'video/*': () => bytes(25).toString('binary') },
  71248. CI = {
  71249. 'application/json': () => '{"key":"value"}',
  71250. 'application/ld+json': () => '{"name": "John Doe"}',
  71251. 'application/x-httpd-php': () => "<?php echo '<p>Hello World!</p>'; ?>",
  71252. 'application/rtf': () => String.raw`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,
  71253. 'application/x-sh': () => 'echo "Hello World!"',
  71254. 'application/xhtml+xml': () => '<p>content</p>',
  71255. 'application/*': () => bytes(25).toString('binary')
  71256. };
  71257. const OI = new (class MediaTypeRegistry extends uI {
  71258. #t = { ...wI, ...SI, ...xI, ...kI, ...CI };
  71259. data = { ...this.#t };
  71260. get defaults() {
  71261. return { ...this.#t };
  71262. }
  71263. })(),
  71264. mediaTypeAPI = (s, o) => {
  71265. if ('function' == typeof o) return OI.register(s, o);
  71266. if (null === o) return OI.unregister(s);
  71267. const i = s.split(';').at(0),
  71268. u = `${i.split('/').at(0)}/*`;
  71269. return OI.get(s) || OI.get(i) || OI.get(u);
  71270. };
  71271. mediaTypeAPI.getDefaults = () => OI.defaults;
  71272. const AI = mediaTypeAPI,
  71273. applyStringConstraints = (s, o = {}) => {
  71274. const { maxLength: i, minLength: u } = o;
  71275. let _ = s;
  71276. if (
  71277. (Number.isInteger(i) && i > 0 && (_ = _.slice(0, i)), Number.isInteger(u) && u > 0)
  71278. ) {
  71279. let s = 0;
  71280. for (; _.length < u; ) _ += _[s++ % _.length];
  71281. }
  71282. return _;
  71283. },
  71284. types_string = (s, { sample: o } = {}) => {
  71285. const { contentEncoding: i, contentMediaType: u, contentSchema: _ } = s,
  71286. { pattern: w, format: x } = s,
  71287. C = EI(i) || Mx();
  71288. let j;
  71289. return (
  71290. (j =
  71291. 'string' == typeof w
  71292. ? applyStringConstraints(
  71293. ((s) => {
  71294. try {
  71295. return new (us())(s).gen();
  71296. } catch {
  71297. return 'string';
  71298. }
  71299. })(w),
  71300. s
  71301. )
  71302. : 'string' == typeof x
  71303. ? ((s) => {
  71304. const { format: o } = s,
  71305. i = hI(o);
  71306. return 'function' == typeof i ? i(s) : 'string';
  71307. })(s)
  71308. : isJSONSchema(_) && 'string' == typeof u && void 0 !== o
  71309. ? Array.isArray(o) || 'object' == typeof o
  71310. ? JSON.stringify(o)
  71311. : applyStringConstraints(String(o), s)
  71312. : 'string' == typeof u
  71313. ? ((s) => {
  71314. const { contentMediaType: o } = s,
  71315. i = AI(o);
  71316. return 'function' == typeof i ? i(s) : 'string';
  71317. })(s)
  71318. : applyStringConstraints('string', s)),
  71319. C(j)
  71320. );
  71321. },
  71322. applyNumberConstraints = (s, o = {}) => {
  71323. const { minimum: i, maximum: u, exclusiveMinimum: _, exclusiveMaximum: w } = o,
  71324. { multipleOf: x } = o,
  71325. C = Number.isInteger(s) ? 1 : Number.EPSILON;
  71326. let j = 'number' == typeof i ? i : null,
  71327. L = 'number' == typeof u ? u : null,
  71328. B = s;
  71329. if (
  71330. ('number' == typeof _ && (j = null !== j ? Math.max(j, _ + C) : _ + C),
  71331. 'number' == typeof w && (L = null !== L ? Math.min(L, w - C) : w - C),
  71332. (B = (j > L && s) || j || L || B),
  71333. 'number' == typeof x && x > 0)
  71334. ) {
  71335. const s = B % x;
  71336. B = 0 === s ? B : B + x - s;
  71337. }
  71338. return B;
  71339. },
  71340. types_number = (s) => {
  71341. const { format: o } = s;
  71342. let i;
  71343. return (
  71344. (i =
  71345. 'string' == typeof o
  71346. ? ((s) => {
  71347. const { format: o } = s,
  71348. i = hI(o);
  71349. return 'function' == typeof i ? i(s) : 0;
  71350. })(s)
  71351. : 0),
  71352. applyNumberConstraints(i, s)
  71353. );
  71354. },
  71355. types_integer = (s) => {
  71356. const { format: o } = s;
  71357. let i;
  71358. return (
  71359. (i =
  71360. 'string' == typeof o
  71361. ? ((s) => {
  71362. const { format: o } = s,
  71363. i = hI(o);
  71364. if ('function' == typeof i) return i(s);
  71365. switch (o) {
  71366. case 'int32':
  71367. return int32();
  71368. case 'int64':
  71369. return int64();
  71370. }
  71371. return 0;
  71372. })(s)
  71373. : 0),
  71374. applyNumberConstraints(i, s)
  71375. );
  71376. },
  71377. types_boolean = (s) => 'boolean' != typeof s.default || s.default,
  71378. jI = new Proxy(
  71379. {
  71380. array,
  71381. object,
  71382. string: types_string,
  71383. number: types_number,
  71384. integer: types_integer,
  71385. boolean: types_boolean,
  71386. null: () => null
  71387. },
  71388. {
  71389. get: (s, o) =>
  71390. 'string' == typeof o && Object.hasOwn(s, o) ? s[o] : () => `Unknown Type: ${o}`
  71391. }
  71392. ),
  71393. II = ['array', 'object', 'number', 'integer', 'string', 'boolean', 'null'],
  71394. hasExample = (s) => {
  71395. if (!isJSONSchemaObject(s)) return !1;
  71396. const { examples: o, example: i, default: u } = s;
  71397. return !!(Array.isArray(o) && o.length >= 1) || void 0 !== u || void 0 !== i;
  71398. },
  71399. extractExample = (s) => {
  71400. if (!isJSONSchemaObject(s)) return null;
  71401. const { examples: o, example: i, default: u } = s;
  71402. return Array.isArray(o) && o.length >= 1
  71403. ? o.at(0)
  71404. : void 0 !== u
  71405. ? u
  71406. : void 0 !== i
  71407. ? i
  71408. : void 0;
  71409. },
  71410. PI = {
  71411. array: [
  71412. 'items',
  71413. 'prefixItems',
  71414. 'contains',
  71415. 'maxContains',
  71416. 'minContains',
  71417. 'maxItems',
  71418. 'minItems',
  71419. 'uniqueItems',
  71420. 'unevaluatedItems'
  71421. ],
  71422. object: [
  71423. 'properties',
  71424. 'additionalProperties',
  71425. 'patternProperties',
  71426. 'propertyNames',
  71427. 'minProperties',
  71428. 'maxProperties',
  71429. 'required',
  71430. 'dependentSchemas',
  71431. 'dependentRequired',
  71432. 'unevaluatedProperties'
  71433. ],
  71434. string: [
  71435. 'pattern',
  71436. 'format',
  71437. 'minLength',
  71438. 'maxLength',
  71439. 'contentEncoding',
  71440. 'contentMediaType',
  71441. 'contentSchema'
  71442. ],
  71443. integer: ['minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf']
  71444. };
  71445. PI.number = PI.integer;
  71446. const MI = 'string',
  71447. inferTypeFromValue = (s) =>
  71448. void 0 === s
  71449. ? null
  71450. : null === s
  71451. ? 'null'
  71452. : Array.isArray(s)
  71453. ? 'array'
  71454. : Number.isInteger(s)
  71455. ? 'integer'
  71456. : typeof s,
  71457. foldType = (s) => {
  71458. if (Array.isArray(s) && s.length >= 1) {
  71459. if (s.includes('array')) return 'array';
  71460. if (s.includes('object')) return 'object';
  71461. {
  71462. const o = random_pick(s);
  71463. if (II.includes(o)) return o;
  71464. }
  71465. }
  71466. return II.includes(s) ? s : null;
  71467. },
  71468. inferType = (s, o = new WeakSet()) => {
  71469. if (!isJSONSchemaObject(s)) return MI;
  71470. if (o.has(s)) return MI;
  71471. o.add(s);
  71472. let { type: i, const: u } = s;
  71473. if (((i = foldType(i)), 'string' != typeof i)) {
  71474. const o = Object.keys(PI);
  71475. e: for (let u = 0; u < o.length; u += 1) {
  71476. const _ = o[u],
  71477. w = PI[_];
  71478. for (let o = 0; o < w.length; o += 1) {
  71479. const u = w[o];
  71480. if (Object.hasOwn(s, u)) {
  71481. i = _;
  71482. break e;
  71483. }
  71484. }
  71485. }
  71486. }
  71487. if ('string' != typeof i && void 0 !== u) {
  71488. const s = inferTypeFromValue(u);
  71489. i = 'string' == typeof s ? s : i;
  71490. }
  71491. if ('string' != typeof i) {
  71492. const combineTypes = (i) => {
  71493. if (Array.isArray(s[i])) {
  71494. const u = s[i].map((s) => inferType(s, o));
  71495. return foldType(u);
  71496. }
  71497. return null;
  71498. },
  71499. u = combineTypes('allOf'),
  71500. _ = combineTypes('anyOf'),
  71501. w = combineTypes('oneOf'),
  71502. x = s.not ? inferType(s.not, o) : null;
  71503. (u || _ || w || x) && (i = foldType([u, _, w, x].filter(Boolean)));
  71504. }
  71505. if ('string' != typeof i && hasExample(s)) {
  71506. const o = extractExample(s),
  71507. u = inferTypeFromValue(o);
  71508. i = 'string' == typeof u ? u : i;
  71509. }
  71510. return o.delete(s), i || MI;
  71511. },
  71512. type_getType = (s) => inferType(s),
  71513. typeCast = (s) =>
  71514. predicates_isBooleanJSONSchema(s)
  71515. ? ((s) => (!1 === s ? { not: {} } : {}))(s)
  71516. : isJSONSchemaObject(s)
  71517. ? s
  71518. : {},
  71519. merge_merge = (s, o, i = {}) => {
  71520. if (predicates_isBooleanJSONSchema(s) && !0 === s) return !0;
  71521. if (predicates_isBooleanJSONSchema(s) && !1 === s) return !1;
  71522. if (predicates_isBooleanJSONSchema(o) && !0 === o) return !0;
  71523. if (predicates_isBooleanJSONSchema(o) && !1 === o) return !1;
  71524. if (!isJSONSchema(s)) return o;
  71525. if (!isJSONSchema(o)) return s;
  71526. const u = { ...o, ...s };
  71527. if (o.type && s.type && Array.isArray(o.type) && 'string' == typeof o.type) {
  71528. const i = normalizeArray(o.type).concat(s.type);
  71529. u.type = Array.from(new Set(i));
  71530. }
  71531. if (
  71532. (Array.isArray(o.required) &&
  71533. Array.isArray(s.required) &&
  71534. (u.required = [...new Set([...s.required, ...o.required])]),
  71535. o.properties && s.properties)
  71536. ) {
  71537. const _ = new Set([...Object.keys(o.properties), ...Object.keys(s.properties)]);
  71538. u.properties = {};
  71539. for (const w of _) {
  71540. const _ = o.properties[w] || {},
  71541. x = s.properties[w] || {};
  71542. (_.readOnly && !i.includeReadOnly) || (_.writeOnly && !i.includeWriteOnly)
  71543. ? (u.required = (u.required || []).filter((s) => s !== w))
  71544. : (u.properties[w] = merge_merge(x, _, i));
  71545. }
  71546. }
  71547. return (
  71548. isJSONSchema(o.items) &&
  71549. isJSONSchema(s.items) &&
  71550. (u.items = merge_merge(s.items, o.items, i)),
  71551. isJSONSchema(o.contains) &&
  71552. isJSONSchema(s.contains) &&
  71553. (u.contains = merge_merge(s.contains, o.contains, i)),
  71554. isJSONSchema(o.contentSchema) &&
  71555. isJSONSchema(s.contentSchema) &&
  71556. (u.contentSchema = merge_merge(s.contentSchema, o.contentSchema, i)),
  71557. u
  71558. );
  71559. },
  71560. TI = merge_merge,
  71561. main_sampleFromSchemaGeneric = (s, o = {}, i = void 0, u = !1) => {
  71562. if (null == s && void 0 === i) return;
  71563. 'function' == typeof s?.toJS && (s = s.toJS()), (s = typeCast(s));
  71564. let _ = void 0 !== i || hasExample(s);
  71565. const w = !_ && Array.isArray(s.oneOf) && s.oneOf.length > 0,
  71566. x = !_ && Array.isArray(s.anyOf) && s.anyOf.length > 0;
  71567. if (!_ && (w || x)) {
  71568. const i = typeCast(random_pick(w ? s.oneOf : s.anyOf));
  71569. !(s = TI(s, i, o)).xml && i.xml && (s.xml = i.xml),
  71570. hasExample(s) && hasExample(i) && (_ = !0);
  71571. }
  71572. const C = {};
  71573. let { xml: j, properties: L, additionalProperties: B, items: $, contains: V } = s || {},
  71574. U = type_getType(s),
  71575. { includeReadOnly: z, includeWriteOnly: Y } = o;
  71576. j = j || {};
  71577. let Z,
  71578. { name: ee, prefix: ie, namespace: ae } = j,
  71579. le = {};
  71580. if (
  71581. (Object.hasOwn(s, 'type') || (s.type = U),
  71582. u && ((ee = ee || 'notagname'), (Z = (ie ? `${ie}:` : '') + ee), ae))
  71583. ) {
  71584. C[ie ? `xmlns:${ie}` : 'xmlns'] = ae;
  71585. }
  71586. u && (le[Z] = []);
  71587. const ce = objectify(L);
  71588. let pe,
  71589. de = 0;
  71590. const hasExceededMaxProperties = () =>
  71591. Number.isInteger(s.maxProperties) && s.maxProperties > 0 && de >= s.maxProperties,
  71592. canAddProperty = (o) =>
  71593. !(Number.isInteger(s.maxProperties) && s.maxProperties > 0) ||
  71594. (!hasExceededMaxProperties() &&
  71595. (!((o) =>
  71596. !Array.isArray(s.required) ||
  71597. 0 === s.required.length ||
  71598. !s.required.includes(o))(o) ||
  71599. s.maxProperties -
  71600. de -
  71601. (() => {
  71602. if (!Array.isArray(s.required) || 0 === s.required.length) return 0;
  71603. let o = 0;
  71604. return (
  71605. u
  71606. ? s.required.forEach((s) => (o += void 0 === le[s] ? 0 : 1))
  71607. : s.required.forEach((s) => {
  71608. o += void 0 === le[Z]?.find((o) => void 0 !== o[s]) ? 0 : 1;
  71609. }),
  71610. s.required.length - o
  71611. );
  71612. })() >
  71613. 0));
  71614. if (
  71615. ((pe = u
  71616. ? (i, _ = void 0) => {
  71617. if (s && ce[i]) {
  71618. if (((ce[i].xml = ce[i].xml || {}), ce[i].xml.attribute)) {
  71619. const s = Array.isArray(ce[i].enum) ? random_pick(ce[i].enum) : void 0;
  71620. if (hasExample(ce[i])) C[ce[i].xml.name || i] = extractExample(ce[i]);
  71621. else if (void 0 !== s) C[ce[i].xml.name || i] = s;
  71622. else {
  71623. const s = typeCast(ce[i]),
  71624. o = type_getType(s),
  71625. u = ce[i].xml.name || i;
  71626. C[u] = jI[o](s);
  71627. }
  71628. return;
  71629. }
  71630. ce[i].xml.name = ce[i].xml.name || i;
  71631. } else ce[i] || !1 === B || (ce[i] = { xml: { name: i } });
  71632. let w = main_sampleFromSchemaGeneric(ce[i], o, _, u);
  71633. canAddProperty(i) &&
  71634. (de++, Array.isArray(w) ? (le[Z] = le[Z].concat(w)) : le[Z].push(w));
  71635. }
  71636. : (i, _) => {
  71637. if (canAddProperty(i)) {
  71638. if (
  71639. cI()(s.discriminator?.mapping) &&
  71640. s.discriminator.propertyName === i &&
  71641. 'string' == typeof s.$$ref
  71642. ) {
  71643. for (const o in s.discriminator.mapping)
  71644. if (-1 !== s.$$ref.search(s.discriminator.mapping[o])) {
  71645. le[i] = o;
  71646. break;
  71647. }
  71648. } else le[i] = main_sampleFromSchemaGeneric(ce[i], o, _, u);
  71649. de++;
  71650. }
  71651. }),
  71652. _)
  71653. ) {
  71654. let _;
  71655. if (((_ = void 0 !== i ? i : extractExample(s)), !u)) {
  71656. if ('number' == typeof _ && 'string' === U) return `${_}`;
  71657. if ('string' != typeof _ || 'string' === U) return _;
  71658. try {
  71659. return JSON.parse(_);
  71660. } catch {
  71661. return _;
  71662. }
  71663. }
  71664. if ('array' === U) {
  71665. if (!Array.isArray(_)) {
  71666. if ('string' == typeof _) return _;
  71667. _ = [_];
  71668. }
  71669. let i = [];
  71670. return (
  71671. isJSONSchemaObject($) &&
  71672. (($.xml = $.xml || j || {}),
  71673. ($.xml.name = $.xml.name || j.name),
  71674. (i = _.map((s) => main_sampleFromSchemaGeneric($, o, s, u)))),
  71675. isJSONSchemaObject(V) &&
  71676. ((V.xml = V.xml || j || {}),
  71677. (V.xml.name = V.xml.name || j.name),
  71678. (i = [main_sampleFromSchemaGeneric(V, o, void 0, u), ...i])),
  71679. (i = jI.array(s, { sample: i })),
  71680. j.wrapped ? ((le[Z] = i), hs()(C) || le[Z].push({ _attr: C })) : (le = i),
  71681. le
  71682. );
  71683. }
  71684. if ('object' === U) {
  71685. if ('string' == typeof _) return _;
  71686. for (const s in _)
  71687. Object.hasOwn(_, s) &&
  71688. ((ce[s]?.readOnly && !z) ||
  71689. (ce[s]?.writeOnly && !Y) ||
  71690. (ce[s]?.xml?.attribute ? (C[ce[s].xml.name || s] = _[s]) : pe(s, _[s])));
  71691. return hs()(C) || le[Z].push({ _attr: C }), le;
  71692. }
  71693. return (le[Z] = hs()(C) ? _ : [{ _attr: C }, _]), le;
  71694. }
  71695. if ('array' === U) {
  71696. let i = [];
  71697. if (isJSONSchemaObject(V))
  71698. if (
  71699. (u && ((V.xml = V.xml || s.xml || {}), (V.xml.name = V.xml.name || j.name)),
  71700. Array.isArray(V.anyOf))
  71701. ) {
  71702. const { anyOf: s, ..._ } = $;
  71703. i.push(
  71704. ...V.anyOf.map((s) => main_sampleFromSchemaGeneric(TI(s, _, o), o, void 0, u))
  71705. );
  71706. } else if (Array.isArray(V.oneOf)) {
  71707. const { oneOf: s, ..._ } = $;
  71708. i.push(
  71709. ...V.oneOf.map((s) => main_sampleFromSchemaGeneric(TI(s, _, o), o, void 0, u))
  71710. );
  71711. } else {
  71712. if (!(!u || (u && j.wrapped)))
  71713. return main_sampleFromSchemaGeneric(V, o, void 0, u);
  71714. i.push(main_sampleFromSchemaGeneric(V, o, void 0, u));
  71715. }
  71716. if (isJSONSchemaObject($))
  71717. if (
  71718. (u && (($.xml = $.xml || s.xml || {}), ($.xml.name = $.xml.name || j.name)),
  71719. Array.isArray($.anyOf))
  71720. ) {
  71721. const { anyOf: s, ..._ } = $;
  71722. i.push(
  71723. ...$.anyOf.map((s) => main_sampleFromSchemaGeneric(TI(s, _, o), o, void 0, u))
  71724. );
  71725. } else if (Array.isArray($.oneOf)) {
  71726. const { oneOf: s, ..._ } = $;
  71727. i.push(
  71728. ...$.oneOf.map((s) => main_sampleFromSchemaGeneric(TI(s, _, o), o, void 0, u))
  71729. );
  71730. } else {
  71731. if (!(!u || (u && j.wrapped)))
  71732. return main_sampleFromSchemaGeneric($, o, void 0, u);
  71733. i.push(main_sampleFromSchemaGeneric($, o, void 0, u));
  71734. }
  71735. return (
  71736. (i = jI.array(s, { sample: i })),
  71737. u && j.wrapped ? ((le[Z] = i), hs()(C) || le[Z].push({ _attr: C }), le) : i
  71738. );
  71739. }
  71740. if ('object' === U) {
  71741. for (let s in ce)
  71742. Object.hasOwn(ce, s) &&
  71743. (ce[s]?.deprecated ||
  71744. (ce[s]?.readOnly && !z) ||
  71745. (ce[s]?.writeOnly && !Y) ||
  71746. pe(s));
  71747. if ((u && C && le[Z].push({ _attr: C }), hasExceededMaxProperties())) return le;
  71748. if (predicates_isBooleanJSONSchema(B) && B)
  71749. u
  71750. ? le[Z].push({ additionalProp: 'Anything can be here' })
  71751. : (le.additionalProp1 = {}),
  71752. de++;
  71753. else if (isJSONSchemaObject(B)) {
  71754. const i = B,
  71755. _ = main_sampleFromSchemaGeneric(i, o, void 0, u);
  71756. if (u && 'string' == typeof i?.xml?.name && 'notagname' !== i?.xml?.name)
  71757. le[Z].push(_);
  71758. else {
  71759. const o =
  71760. Number.isInteger(s.minProperties) && s.minProperties > 0 && de < s.minProperties
  71761. ? s.minProperties - de
  71762. : 3;
  71763. for (let s = 1; s <= o; s++) {
  71764. if (hasExceededMaxProperties()) return le;
  71765. if (u) {
  71766. const o = {};
  71767. (o['additionalProp' + s] = _.notagname), le[Z].push(o);
  71768. } else le['additionalProp' + s] = _;
  71769. de++;
  71770. }
  71771. }
  71772. }
  71773. return le;
  71774. }
  71775. let fe;
  71776. if (void 0 !== s.const) fe = s.const;
  71777. else if (s && Array.isArray(s.enum)) fe = random_pick(normalizeArray(s.enum));
  71778. else {
  71779. const i = isJSONSchemaObject(s.contentSchema)
  71780. ? main_sampleFromSchemaGeneric(s.contentSchema, o, void 0, u)
  71781. : void 0;
  71782. fe = jI[U](s, { sample: i });
  71783. }
  71784. return u ? ((le[Z] = hs()(C) ? fe : [{ _attr: C }, fe]), le) : fe;
  71785. },
  71786. main_createXMLExample = (s, o, i) => {
  71787. const u = main_sampleFromSchemaGeneric(s, o, i, !0);
  71788. if (u) return 'string' == typeof u ? u : ls()(u, { declaration: !0, indent: '\t' });
  71789. },
  71790. main_sampleFromSchema = (s, o, i) => main_sampleFromSchemaGeneric(s, o, i, !1),
  71791. main_resolver = (s, o, i) => [s, JSON.stringify(o), JSON.stringify(i)],
  71792. NI = utils_memoizeN(main_createXMLExample, main_resolver),
  71793. RI = utils_memoizeN(main_sampleFromSchema, main_resolver);
  71794. const DI = new (class OptionRegistry extends uI {
  71795. #t = {};
  71796. data = { ...this.#t };
  71797. get defaults() {
  71798. return { ...this.#t };
  71799. }
  71800. })(),
  71801. api_optionAPI = (s, o) => (void 0 !== o && DI.register(s, o), DI.get(s)),
  71802. LI = [{ when: /json/, shouldStringifyTypes: ['string'] }],
  71803. BI = ['object'],
  71804. fn_get_json_sample_schema = (s) => (o, i, u, _) => {
  71805. const { fn: w } = s(),
  71806. x = w.jsonSchema202012.memoizedSampleFromSchema(o, i, _),
  71807. C = typeof x,
  71808. j = LI.reduce((s, o) => (o.when.test(u) ? [...s, ...o.shouldStringifyTypes] : s), BI);
  71809. return mt()(j, (s) => s === C) ? JSON.stringify(x, null, 2) : x;
  71810. },
  71811. fn_get_yaml_sample_schema = (s) => (o, i, u, _) => {
  71812. const { fn: w } = s(),
  71813. x = w.jsonSchema202012.getJsonSampleSchema(o, i, u, _);
  71814. let C;
  71815. try {
  71816. (C = mn.dump(mn.load(x), { lineWidth: -1 }, { schema: nn })),
  71817. '\n' === C[C.length - 1] && (C = C.slice(0, C.length - 1));
  71818. } catch (s) {
  71819. return console.error(s), 'error: could not generate yaml example';
  71820. }
  71821. return C.replace(/\t/g, ' ');
  71822. },
  71823. fn_get_xml_sample_schema = (s) => (o, i, u) => {
  71824. const { fn: _ } = s();
  71825. if ((o && !o.xml && (o.xml = {}), o && !o.xml.name)) {
  71826. if (!o.$$ref && (o.type || o.items || o.properties || o.additionalProperties))
  71827. return '<?xml version="1.0" encoding="UTF-8"?>\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e';
  71828. if (o.$$ref) {
  71829. let s = o.$$ref.match(/\S*\/(\S+)$/);
  71830. o.xml.name = s[1];
  71831. }
  71832. }
  71833. return _.jsonSchema202012.memoizedCreateXMLExample(o, i, u);
  71834. },
  71835. fn_get_sample_schema =
  71836. (s) =>
  71837. (o, i = '', u = {}, _ = void 0) => {
  71838. const { fn: w } = s();
  71839. return (
  71840. 'function' == typeof o?.toJS && (o = o.toJS()),
  71841. 'function' == typeof _?.toJS && (_ = _.toJS()),
  71842. /xml/.test(i)
  71843. ? w.jsonSchema202012.getXmlSampleSchema(o, u, _)
  71844. : /(yaml|yml)/.test(i)
  71845. ? w.jsonSchema202012.getYamlSampleSchema(o, u, i, _)
  71846. : w.jsonSchema202012.getJsonSampleSchema(o, u, i, _)
  71847. );
  71848. },
  71849. json_schema_2020_12_samples = ({ getSystem: s }) => {
  71850. const o = fn_get_json_sample_schema(s),
  71851. i = fn_get_yaml_sample_schema(s),
  71852. u = fn_get_xml_sample_schema(s),
  71853. _ = fn_get_sample_schema(s);
  71854. return {
  71855. fn: {
  71856. jsonSchema202012: {
  71857. sampleFromSchema: main_sampleFromSchema,
  71858. sampleFromSchemaGeneric: main_sampleFromSchemaGeneric,
  71859. sampleOptionAPI: api_optionAPI,
  71860. sampleEncoderAPI: EI,
  71861. sampleFormatAPI: hI,
  71862. sampleMediaTypeAPI: AI,
  71863. createXMLExample: main_createXMLExample,
  71864. memoizedSampleFromSchema: RI,
  71865. memoizedCreateXMLExample: NI,
  71866. getJsonSampleSchema: o,
  71867. getYamlSampleSchema: i,
  71868. getXmlSampleSchema: u,
  71869. getSampleSchema: _,
  71870. mergeJsonSchema: TI
  71871. }
  71872. }
  71873. };
  71874. };
  71875. function PresetApis() {
  71876. return [base, oas3, json_schema_2020_12, json_schema_2020_12_samples, oas31];
  71877. }
  71878. const inline_plugin = (s) => () => ({ fn: s.fn, components: s.components }),
  71879. factorization_system = (s) => {
  71880. const o = We()(
  71881. {
  71882. layout: { layout: s.layout, filter: s.filter },
  71883. spec: { spec: '', url: s.url },
  71884. requestSnippets: s.requestSnippets
  71885. },
  71886. s.initialState
  71887. );
  71888. if (s.initialState)
  71889. for (const [i, u] of Object.entries(s.initialState)) void 0 === u && delete o[i];
  71890. return { system: { configs: s.configs }, plugins: s.presets, state: o };
  71891. },
  71892. sources_query = () => (s) => {
  71893. const o = s.queryConfigEnabled
  71894. ? (() => {
  71895. const s = new URLSearchParams(at.location.search);
  71896. return Object.fromEntries(s);
  71897. })()
  71898. : {};
  71899. return Object.entries(o).reduce(
  71900. (s, [o, i]) => (
  71901. 'config' === o
  71902. ? (s.configUrl = i)
  71903. : 'urls.primaryName' === o
  71904. ? (s[o] = i)
  71905. : (s = ao()(s, o, i)),
  71906. s
  71907. ),
  71908. {}
  71909. );
  71910. },
  71911. sources_url =
  71912. ({ url: s, system: o }) =>
  71913. async (i) => {
  71914. if (!s) return {};
  71915. if ('function' != typeof o.configsActions?.getConfigByUrl) return {};
  71916. const u = (() => {
  71917. const s = {};
  71918. return (
  71919. (s.promise = new Promise((o, i) => {
  71920. (s.resolve = o), (s.reject = i);
  71921. })),
  71922. s
  71923. );
  71924. })();
  71925. return (
  71926. o.configsActions.getConfigByUrl(
  71927. {
  71928. url: s,
  71929. loadRemoteConfig: !0,
  71930. requestInterceptor: i.requestInterceptor,
  71931. responseInterceptor: i.responseInterceptor
  71932. },
  71933. (s) => {
  71934. u.resolve(s);
  71935. }
  71936. ),
  71937. u.promise
  71938. );
  71939. },
  71940. runtime = () => () => {
  71941. const s = {};
  71942. return (
  71943. globalThis.location &&
  71944. (s.oauth2RedirectUrl = `${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname.substring(0, globalThis.location.pathname.lastIndexOf('/'))}/oauth2-redirect.html`),
  71945. s
  71946. );
  71947. },
  71948. FI = Object.freeze({
  71949. dom_id: null,
  71950. domNode: null,
  71951. spec: {},
  71952. url: '',
  71953. urls: null,
  71954. configUrl: null,
  71955. layout: 'BaseLayout',
  71956. docExpansion: 'list',
  71957. maxDisplayedTags: -1,
  71958. filter: !1,
  71959. validatorUrl: 'https://validator.swagger.io/validator',
  71960. oauth2RedirectUrl: void 0,
  71961. persistAuthorization: !1,
  71962. configs: {},
  71963. displayOperationId: !1,
  71964. displayRequestDuration: !1,
  71965. deepLinking: !1,
  71966. tryItOutEnabled: !1,
  71967. requestInterceptor: (s) => ((s.curlOptions = []), s),
  71968. responseInterceptor: (s) => s,
  71969. showMutatedRequest: !0,
  71970. defaultModelRendering: 'example',
  71971. defaultModelExpandDepth: 1,
  71972. defaultModelsExpandDepth: 1,
  71973. showExtensions: !1,
  71974. showCommonExtensions: !1,
  71975. withCredentials: !1,
  71976. requestSnippetsEnabled: !1,
  71977. requestSnippets: {
  71978. generators: {
  71979. curl_bash: { title: 'cURL (bash)', syntax: 'bash' },
  71980. curl_powershell: { title: 'cURL (PowerShell)', syntax: 'powershell' },
  71981. curl_cmd: { title: 'cURL (CMD)', syntax: 'bash' }
  71982. },
  71983. defaultExpanded: !0,
  71984. languages: null
  71985. },
  71986. supportedSubmitMethods: [
  71987. 'get',
  71988. 'put',
  71989. 'post',
  71990. 'delete',
  71991. 'options',
  71992. 'head',
  71993. 'patch',
  71994. 'trace'
  71995. ],
  71996. queryConfigEnabled: !1,
  71997. presets: [PresetApis],
  71998. plugins: [],
  71999. initialState: {},
  72000. fn: {},
  72001. components: {},
  72002. syntaxHighlight: { activated: !0, theme: 'agate' },
  72003. operationsSorter: null,
  72004. tagsSorter: null,
  72005. onComplete: null,
  72006. modelPropertyMacro: null,
  72007. parameterMacro: null
  72008. });
  72009. var qI = __webpack_require__(61448),
  72010. $I = __webpack_require__.n(qI),
  72011. VI = __webpack_require__(77731),
  72012. UI = __webpack_require__.n(VI);
  72013. const type_casters_array = (s, o = []) => (Array.isArray(s) ? s : o),
  72014. type_casters_boolean = (s, o = !1) =>
  72015. !0 === s ||
  72016. 'true' === s ||
  72017. 1 === s ||
  72018. '1' === s ||
  72019. (!1 !== s && 'false' !== s && 0 !== s && '0' !== s && o),
  72020. dom_node = (s) => (null === s || 'null' === s ? null : s),
  72021. type_casters_filter = (s) => {
  72022. const o = String(s);
  72023. return type_casters_boolean(s, o);
  72024. },
  72025. type_casters_function = (s, o) => ('function' == typeof s ? s : o),
  72026. nullable_array = (s) => (Array.isArray(s) ? s : null),
  72027. nullable_function = (s) => ('function' == typeof s ? s : null),
  72028. nullable_string = (s) => (null === s || 'null' === s ? null : String(s)),
  72029. type_casters_number = (s, o = -1) => {
  72030. const i = parseInt(s, 10);
  72031. return Number.isNaN(i) ? o : i;
  72032. },
  72033. type_casters_object = (s, o = {}) => (cI()(s) ? s : o),
  72034. sorter = (s) => ('function' == typeof s || 'string' == typeof s ? s : null),
  72035. type_casters_string = (s) => String(s),
  72036. syntax_highlight = (s, o) =>
  72037. cI()(s) ? s : !1 === s || 'false' === s || 0 === s || '0' === s ? { activated: !1 } : o,
  72038. undefined_string = (s) => (void 0 === s || 'undefined' === s ? void 0 : String(s)),
  72039. zI = {
  72040. components: { typeCaster: type_casters_object },
  72041. configs: { typeCaster: type_casters_object },
  72042. configUrl: { typeCaster: nullable_string },
  72043. deepLinking: { typeCaster: type_casters_boolean, defaultValue: FI.deepLinking },
  72044. defaultModelExpandDepth: {
  72045. typeCaster: type_casters_number,
  72046. defaultValue: FI.defaultModelExpandDepth
  72047. },
  72048. defaultModelRendering: { typeCaster: type_casters_string },
  72049. defaultModelsExpandDepth: {
  72050. typeCaster: type_casters_number,
  72051. defaultValue: FI.defaultModelsExpandDepth
  72052. },
  72053. displayOperationId: {
  72054. typeCaster: type_casters_boolean,
  72055. defaultValue: FI.displayOperationId
  72056. },
  72057. displayRequestDuration: {
  72058. typeCaster: type_casters_boolean,
  72059. defaultValue: FI.displayRequestDuration
  72060. },
  72061. docExpansion: { typeCaster: type_casters_string },
  72062. dom_id: { typeCaster: nullable_string },
  72063. domNode: { typeCaster: dom_node },
  72064. filter: { typeCaster: type_casters_filter },
  72065. fn: { typeCaster: type_casters_object },
  72066. initialState: { typeCaster: type_casters_object },
  72067. layout: { typeCaster: type_casters_string },
  72068. maxDisplayedTags: {
  72069. typeCaster: type_casters_number,
  72070. defaultValue: FI.maxDisplayedTags
  72071. },
  72072. modelPropertyMacro: { typeCaster: nullable_function },
  72073. oauth2RedirectUrl: { typeCaster: undefined_string },
  72074. onComplete: { typeCaster: nullable_function },
  72075. operationsSorter: { typeCaster: sorter },
  72076. paramaterMacro: { typeCaster: nullable_function },
  72077. persistAuthorization: {
  72078. typeCaster: type_casters_boolean,
  72079. defaultValue: FI.persistAuthorization
  72080. },
  72081. plugins: { typeCaster: type_casters_array, defaultValue: FI.plugins },
  72082. presets: { typeCaster: type_casters_array, defaultValue: FI.presets },
  72083. requestInterceptor: {
  72084. typeCaster: type_casters_function,
  72085. defaultValue: FI.requestInterceptor
  72086. },
  72087. requestSnippets: { typeCaster: type_casters_object, defaultValue: FI.requestSnippets },
  72088. requestSnippetsEnabled: {
  72089. typeCaster: type_casters_boolean,
  72090. defaultValue: FI.requestSnippetsEnabled
  72091. },
  72092. responseInterceptor: {
  72093. typeCaster: type_casters_function,
  72094. defaultValue: FI.responseInterceptor
  72095. },
  72096. showCommonExtensions: {
  72097. typeCaster: type_casters_boolean,
  72098. defaultValue: FI.showCommonExtensions
  72099. },
  72100. showExtensions: { typeCaster: type_casters_boolean, defaultValue: FI.showExtensions },
  72101. showMutatedRequest: {
  72102. typeCaster: type_casters_boolean,
  72103. defaultValue: FI.showMutatedRequest
  72104. },
  72105. spec: { typeCaster: type_casters_object, defaultValue: FI.spec },
  72106. supportedSubmitMethods: {
  72107. typeCaster: type_casters_array,
  72108. defaultValue: FI.supportedSubmitMethods
  72109. },
  72110. syntaxHighlight: { typeCaster: syntax_highlight, defaultValue: FI.syntaxHighlight },
  72111. 'syntaxHighlight.activated': {
  72112. typeCaster: type_casters_boolean,
  72113. defaultValue: FI.syntaxHighlight.activated
  72114. },
  72115. 'syntaxHighlight.theme': { typeCaster: type_casters_string },
  72116. tagsSorter: { typeCaster: sorter },
  72117. tryItOutEnabled: { typeCaster: type_casters_boolean, defaultValue: FI.tryItOutEnabled },
  72118. url: { typeCaster: type_casters_string },
  72119. urls: { typeCaster: nullable_array },
  72120. 'urls.primaryName': { typeCaster: type_casters_string },
  72121. validatorUrl: { typeCaster: nullable_string },
  72122. withCredentials: { typeCaster: type_casters_boolean, defaultValue: FI.withCredentials }
  72123. },
  72124. type_cast = (s) =>
  72125. Object.entries(zI).reduce(
  72126. (s, [o, { typeCaster: i, defaultValue: u }]) => {
  72127. if ($I()(s, o)) {
  72128. const _ = i(jn()(s, o), u);
  72129. s = UI()(o, _, s);
  72130. }
  72131. return s;
  72132. },
  72133. { ...s }
  72134. ),
  72135. config_merge = (s, ...o) => {
  72136. let i = Symbol.for('domNode'),
  72137. u = Symbol.for('primaryName');
  72138. const _ = [];
  72139. for (const s of o) {
  72140. const o = { ...s };
  72141. Object.hasOwn(o, 'domNode') && ((i = o.domNode), delete o.domNode),
  72142. Object.hasOwn(o, 'urls.primaryName')
  72143. ? ((u = o['urls.primaryName']), delete o['urls.primaryName'])
  72144. : Array.isArray(o.urls) &&
  72145. Object.hasOwn(o.urls, 'primaryName') &&
  72146. ((u = o.urls.primaryName), delete o.urls.primaryName),
  72147. _.push(o);
  72148. }
  72149. const w = We()(s, ..._);
  72150. return (
  72151. i !== Symbol.for('domNode') && (w.domNode = i),
  72152. u !== Symbol.for('primaryName') && Array.isArray(w.urls) && (w.urls.primaryName = u),
  72153. type_cast(w)
  72154. );
  72155. };
  72156. function SwaggerUI(s) {
  72157. const o = sources_query()(s),
  72158. i = runtime()(),
  72159. u = SwaggerUI.config.merge({}, SwaggerUI.config.defaults, i, s, o),
  72160. _ = factorization_system(u),
  72161. w = inline_plugin(u),
  72162. x = new Store(_);
  72163. x.register([u.plugins, w]);
  72164. const C = x.getSystem(),
  72165. persistConfigs = (s) => {
  72166. x.setConfigs(s), C.configsActions.loaded();
  72167. },
  72168. updateSpec = (s) => {
  72169. !o.url && 'object' == typeof s.spec && Object.keys(s.spec).length > 0
  72170. ? (C.specActions.updateUrl(''),
  72171. C.specActions.updateLoadingStatus('success'),
  72172. C.specActions.updateSpec(JSON.stringify(s.spec)))
  72173. : 'function' == typeof C.specActions.download &&
  72174. s.url &&
  72175. !s.urls &&
  72176. (C.specActions.updateUrl(s.url), C.specActions.download(s.url));
  72177. },
  72178. render = (s) => {
  72179. if (s.domNode) C.render(s.domNode, 'App');
  72180. else if (s.dom_id) {
  72181. const o = document.querySelector(s.dom_id);
  72182. C.render(o, 'App');
  72183. } else
  72184. null === s.dom_id ||
  72185. null === s.domNode ||
  72186. console.error('Skipped rendering: no `dom_id` or `domNode` was specified');
  72187. };
  72188. return u.configUrl
  72189. ? ((async () => {
  72190. const { configUrl: s } = u,
  72191. i = await sources_url({ url: s, system: C })(u),
  72192. _ = SwaggerUI.config.merge({}, u, i, o);
  72193. persistConfigs(_), null !== i && updateSpec(_), render(_);
  72194. })(),
  72195. C)
  72196. : (persistConfigs(u), updateSpec(u), render(u), C);
  72197. }
  72198. (SwaggerUI.System = Store),
  72199. (SwaggerUI.config = {
  72200. defaults: FI,
  72201. merge: config_merge,
  72202. typeCast: type_cast,
  72203. typeCastMappings: zI
  72204. }),
  72205. (SwaggerUI.presets = { base, apis: PresetApis }),
  72206. (SwaggerUI.plugins = {
  72207. Auth: auth,
  72208. Configs: configsPlugin,
  72209. DeepLining: deep_linking,
  72210. Err: err,
  72211. Filter: filter,
  72212. Icons: icons,
  72213. JSONSchema5: json_schema_5,
  72214. JSONSchema5Samples: json_schema_5_samples,
  72215. JSONSchema202012: json_schema_2020_12,
  72216. JSONSchema202012Samples: json_schema_2020_12_samples,
  72217. Layout: plugins_layout,
  72218. Logs: logs,
  72219. OpenAPI30: oas3,
  72220. OpenAPI31: oas3,
  72221. OnComplete: on_complete,
  72222. RequestSnippets: plugins_request_snippets,
  72223. Spec: plugins_spec,
  72224. SwaggerClient: swagger_client,
  72225. Util: util,
  72226. View: view,
  72227. ViewLegacy: view_legacy,
  72228. DownloadUrl: downloadUrlPlugin,
  72229. SyntaxHighlighting: syntax_highlighting,
  72230. Versions: versions,
  72231. SafeRender: safe_render
  72232. });
  72233. const WI = SwaggerUI;
  72234. })(),
  72235. (_ = _.default)
  72236. );
  72237. })()
  72238. );