workerMain.js 454 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606
  1. /*!-----------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Version: 0.37.0(20c3f8ff1e9176c954b34c052b2a84358d41a030)
  4. * Released under the MIT license
  5. * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
  6. *-----------------------------------------------------------*/ ;(function () {
  7. var Y = [
  8. 'require',
  9. 'exports',
  10. 'vs/editor/common/core/range',
  11. 'vs/editor/common/core/position',
  12. 'vs/base/common/errors',
  13. 'vs/base/common/strings',
  14. 'vs/editor/common/core/offsetRange',
  15. 'vs/editor/common/diff/algorithms/diffAlgorithm',
  16. 'vs/base/common/platform',
  17. 'vs/base/common/event',
  18. 'vs/base/common/assert',
  19. 'vs/base/common/lifecycle',
  20. 'vs/base/common/objects',
  21. 'vs/base/common/uri',
  22. 'vs/base/common/functional',
  23. 'vs/base/common/iterator',
  24. 'vs/base/common/linkedList',
  25. 'vs/base/common/diff/diff',
  26. 'vs/base/common/types',
  27. 'vs/base/common/uint',
  28. 'vs/editor/common/core/characterClassifier',
  29. 'vs/editor/common/core/lineRange',
  30. 'vs/editor/common/core/wordHelper',
  31. 'vs/editor/common/diff/linesDiffComputer',
  32. 'vs/base/common/stopwatch',
  33. 'vs/nls',
  34. 'vs/base/common/arrays',
  35. 'vs/base/common/cache',
  36. 'vs/base/common/diff/diffChange',
  37. 'vs/base/common/keyCodes',
  38. 'vs/base/common/lazy',
  39. 'vs/base/common/hash',
  40. 'vs/base/common/codicons',
  41. 'vs/editor/common/core/selection',
  42. 'vs/editor/common/core/wordCharacterClassifier',
  43. 'vs/editor/common/diff/algorithms/joinSequenceDiffs',
  44. 'vs/editor/common/diff/algorithms/myersDiffAlgorithm',
  45. 'vs/editor/common/diff/algorithms/utils',
  46. 'vs/editor/common/diff/algorithms/dynamicProgrammingDiffing',
  47. 'vs/editor/common/diff/smartLinesDiffComputer',
  48. 'vs/editor/common/diff/standardLinesDiffComputer',
  49. 'vs/editor/common/diff/linesDiffComputers',
  50. 'vs/editor/common/languages/linkComputer',
  51. 'vs/editor/common/languages/supports/inplaceReplaceSupport',
  52. 'vs/editor/common/model',
  53. 'vs/editor/common/model/prefixSumComputer',
  54. 'vs/editor/common/model/mirrorTextModel',
  55. 'vs/editor/common/model/textModelSearch',
  56. 'vs/editor/common/services/unicodeTextModelHighlighter',
  57. 'vs/editor/common/standalone/standaloneEnums',
  58. 'vs/nls!vs/base/common/platform',
  59. 'vs/base/common/process',
  60. 'vs/base/common/path',
  61. 'vs/base/common/cancellation',
  62. 'vs/editor/common/tokenizationRegistry',
  63. 'vs/editor/common/languages',
  64. 'vs/editor/common/services/editorBaseApi',
  65. 'vs/nls!monaco-editor/base/common/worker/simpleWorker',
  66. 'vs/base/common/worker/simpleWorker',
  67. 'vs/editor/common/services/editorSimpleWorker',
  68. ],
  69. X = function (x) {
  70. for (var n = [], R = 0, D = x.length; R < D; R++) n[R] = Y[x[R]]
  71. return n
  72. }
  73. const Ee = this,
  74. Re = typeof global == 'object' ? global : {}
  75. var ae
  76. ;(function (x) {
  77. x.global = Ee
  78. class n {
  79. get isWindows() {
  80. return this._detect(), this._isWindows
  81. }
  82. get isNode() {
  83. return this._detect(), this._isNode
  84. }
  85. get isElectronRenderer() {
  86. return this._detect(), this._isElectronRenderer
  87. }
  88. get isWebWorker() {
  89. return this._detect(), this._isWebWorker
  90. }
  91. get isElectronNodeIntegrationWebWorker() {
  92. return this._detect(), this._isElectronNodeIntegrationWebWorker
  93. }
  94. constructor() {
  95. ;(this._detected = !1),
  96. (this._isWindows = !1),
  97. (this._isNode = !1),
  98. (this._isElectronRenderer = !1),
  99. (this._isWebWorker = !1),
  100. (this._isElectronNodeIntegrationWebWorker = !1)
  101. }
  102. _detect() {
  103. this._detected ||
  104. ((this._detected = !0),
  105. (this._isWindows = n._isWindows()),
  106. (this._isNode = typeof module < 'u' && !!module.exports),
  107. (this._isElectronRenderer =
  108. typeof process < 'u' &&
  109. typeof process.versions < 'u' &&
  110. typeof process.versions.electron < 'u' &&
  111. process.type === 'renderer'),
  112. (this._isWebWorker = typeof x.global.importScripts == 'function'),
  113. (this._isElectronNodeIntegrationWebWorker =
  114. this._isWebWorker &&
  115. typeof process < 'u' &&
  116. typeof process.versions < 'u' &&
  117. typeof process.versions.electron < 'u' &&
  118. process.type === 'worker'))
  119. }
  120. static _isWindows() {
  121. return typeof navigator < 'u' &&
  122. navigator.userAgent &&
  123. navigator.userAgent.indexOf('Windows') >= 0
  124. ? !0
  125. : typeof process < 'u'
  126. ? process.platform === 'win32'
  127. : !1
  128. }
  129. }
  130. x.Environment = n
  131. })(ae || (ae = {}))
  132. var ae
  133. ;(function (x) {
  134. class n {
  135. constructor(s, p, L) {
  136. ;(this.type = s), (this.detail = p), (this.timestamp = L)
  137. }
  138. }
  139. x.LoaderEvent = n
  140. class R {
  141. constructor(s) {
  142. this._events = [new n(1, '', s)]
  143. }
  144. record(s, p) {
  145. this._events.push(new n(s, p, x.Utilities.getHighPerformanceTimestamp()))
  146. }
  147. getEvents() {
  148. return this._events
  149. }
  150. }
  151. x.LoaderEventRecorder = R
  152. class D {
  153. record(s, p) {}
  154. getEvents() {
  155. return []
  156. }
  157. }
  158. ;(D.INSTANCE = new D()), (x.NullLoaderEventRecorder = D)
  159. })(ae || (ae = {}))
  160. var ae
  161. ;(function (x) {
  162. class n {
  163. static fileUriToFilePath(D, i) {
  164. if (((i = decodeURI(i).replace(/%23/g, '#')), D)) {
  165. if (/^file:\/\/\//.test(i)) return i.substr(8)
  166. if (/^file:\/\//.test(i)) return i.substr(5)
  167. } else if (/^file:\/\//.test(i)) return i.substr(7)
  168. return i
  169. }
  170. static startsWith(D, i) {
  171. return D.length >= i.length && D.substr(0, i.length) === i
  172. }
  173. static endsWith(D, i) {
  174. return D.length >= i.length && D.substr(D.length - i.length) === i
  175. }
  176. static containsQueryString(D) {
  177. return /^[^\#]*\?/gi.test(D)
  178. }
  179. static isAbsolutePath(D) {
  180. return /^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(D)
  181. }
  182. static forEachProperty(D, i) {
  183. if (D) {
  184. let s
  185. for (s in D) D.hasOwnProperty(s) && i(s, D[s])
  186. }
  187. }
  188. static isEmpty(D) {
  189. let i = !0
  190. return (
  191. n.forEachProperty(D, () => {
  192. i = !1
  193. }),
  194. i
  195. )
  196. }
  197. static recursiveClone(D) {
  198. if (
  199. !D ||
  200. typeof D != 'object' ||
  201. D instanceof RegExp ||
  202. (!Array.isArray(D) && Object.getPrototypeOf(D) !== Object.prototype)
  203. )
  204. return D
  205. let i = Array.isArray(D) ? [] : {}
  206. return (
  207. n.forEachProperty(D, (s, p) => {
  208. p && typeof p == 'object' ? (i[s] = n.recursiveClone(p)) : (i[s] = p)
  209. }),
  210. i
  211. )
  212. }
  213. static generateAnonymousModule() {
  214. return '===anonymous' + n.NEXT_ANONYMOUS_ID++ + '==='
  215. }
  216. static isAnonymousModule(D) {
  217. return n.startsWith(D, '===anonymous')
  218. }
  219. static getHighPerformanceTimestamp() {
  220. return (
  221. this.PERFORMANCE_NOW_PROBED ||
  222. ((this.PERFORMANCE_NOW_PROBED = !0),
  223. (this.HAS_PERFORMANCE_NOW =
  224. x.global.performance && typeof x.global.performance.now == 'function')),
  225. this.HAS_PERFORMANCE_NOW ? x.global.performance.now() : Date.now()
  226. )
  227. }
  228. }
  229. ;(n.NEXT_ANONYMOUS_ID = 1),
  230. (n.PERFORMANCE_NOW_PROBED = !1),
  231. (n.HAS_PERFORMANCE_NOW = !1),
  232. (x.Utilities = n)
  233. })(ae || (ae = {}))
  234. var ae
  235. ;(function (x) {
  236. function n(i) {
  237. if (i instanceof Error) return i
  238. const s = new Error(i.message || String(i) || 'Unknown Error')
  239. return i.stack && (s.stack = i.stack), s
  240. }
  241. x.ensureError = n
  242. class R {
  243. static validateConfigurationOptions(s) {
  244. function p(L) {
  245. if (L.phase === 'loading') {
  246. console.error('Loading "' + L.moduleId + '" failed'),
  247. console.error(L),
  248. console.error('Here are the modules that depend on it:'),
  249. console.error(L.neededBy)
  250. return
  251. }
  252. if (L.phase === 'factory') {
  253. console.error('The factory function of "' + L.moduleId + '" has thrown an exception'),
  254. console.error(L),
  255. console.error('Here are the modules that depend on it:'),
  256. console.error(L.neededBy)
  257. return
  258. }
  259. }
  260. if (
  261. ((s = s || {}),
  262. typeof s.baseUrl != 'string' && (s.baseUrl = ''),
  263. typeof s.isBuild != 'boolean' && (s.isBuild = !1),
  264. typeof s.paths != 'object' && (s.paths = {}),
  265. typeof s.config != 'object' && (s.config = {}),
  266. typeof s.catchError > 'u' && (s.catchError = !1),
  267. typeof s.recordStats > 'u' && (s.recordStats = !1),
  268. typeof s.urlArgs != 'string' && (s.urlArgs = ''),
  269. typeof s.onError != 'function' && (s.onError = p),
  270. Array.isArray(s.ignoreDuplicateModules) || (s.ignoreDuplicateModules = []),
  271. s.baseUrl.length > 0 && (x.Utilities.endsWith(s.baseUrl, '/') || (s.baseUrl += '/')),
  272. typeof s.cspNonce != 'string' && (s.cspNonce = ''),
  273. typeof s.preferScriptTags > 'u' && (s.preferScriptTags = !1),
  274. s.nodeCachedData &&
  275. typeof s.nodeCachedData == 'object' &&
  276. (typeof s.nodeCachedData.seed != 'string' && (s.nodeCachedData.seed = 'seed'),
  277. (typeof s.nodeCachedData.writeDelay != 'number' || s.nodeCachedData.writeDelay < 0) &&
  278. (s.nodeCachedData.writeDelay = 1e3 * 7),
  279. !s.nodeCachedData.path || typeof s.nodeCachedData.path != 'string'))
  280. ) {
  281. const L = n(new Error("INVALID cached data configuration, 'path' MUST be set"))
  282. ;(L.phase = 'configuration'), s.onError(L), (s.nodeCachedData = void 0)
  283. }
  284. return s
  285. }
  286. static mergeConfigurationOptions(s = null, p = null) {
  287. let L = x.Utilities.recursiveClone(p || {})
  288. return (
  289. x.Utilities.forEachProperty(s, (h, a) => {
  290. h === 'ignoreDuplicateModules' && typeof L.ignoreDuplicateModules < 'u'
  291. ? (L.ignoreDuplicateModules = L.ignoreDuplicateModules.concat(a))
  292. : h === 'paths' && typeof L.paths < 'u'
  293. ? x.Utilities.forEachProperty(a, (w, e) => (L.paths[w] = e))
  294. : h === 'config' && typeof L.config < 'u'
  295. ? x.Utilities.forEachProperty(a, (w, e) => (L.config[w] = e))
  296. : (L[h] = x.Utilities.recursiveClone(a))
  297. }),
  298. R.validateConfigurationOptions(L)
  299. )
  300. }
  301. }
  302. x.ConfigurationOptionsUtil = R
  303. class D {
  304. constructor(s, p) {
  305. if (
  306. ((this._env = s),
  307. (this.options = R.mergeConfigurationOptions(p)),
  308. this._createIgnoreDuplicateModulesMap(),
  309. this._createSortedPathsRules(),
  310. this.options.baseUrl === '' &&
  311. this.options.nodeRequire &&
  312. this.options.nodeRequire.main &&
  313. this.options.nodeRequire.main.filename &&
  314. this._env.isNode)
  315. ) {
  316. let L = this.options.nodeRequire.main.filename,
  317. h = Math.max(L.lastIndexOf('/'), L.lastIndexOf('\\'))
  318. this.options.baseUrl = L.substring(0, h + 1)
  319. }
  320. }
  321. _createIgnoreDuplicateModulesMap() {
  322. this.ignoreDuplicateModulesMap = {}
  323. for (let s = 0; s < this.options.ignoreDuplicateModules.length; s++)
  324. this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[s]] = !0
  325. }
  326. _createSortedPathsRules() {
  327. ;(this.sortedPathsRules = []),
  328. x.Utilities.forEachProperty(this.options.paths, (s, p) => {
  329. Array.isArray(p)
  330. ? this.sortedPathsRules.push({ from: s, to: p })
  331. : this.sortedPathsRules.push({ from: s, to: [p] })
  332. }),
  333. this.sortedPathsRules.sort((s, p) => p.from.length - s.from.length)
  334. }
  335. cloneAndMerge(s) {
  336. return new D(this._env, R.mergeConfigurationOptions(s, this.options))
  337. }
  338. getOptionsLiteral() {
  339. return this.options
  340. }
  341. _applyPaths(s) {
  342. let p
  343. for (let L = 0, h = this.sortedPathsRules.length; L < h; L++)
  344. if (((p = this.sortedPathsRules[L]), x.Utilities.startsWith(s, p.from))) {
  345. let a = []
  346. for (let w = 0, e = p.to.length; w < e; w++) a.push(p.to[w] + s.substr(p.from.length))
  347. return a
  348. }
  349. return [s]
  350. }
  351. _addUrlArgsToUrl(s) {
  352. return x.Utilities.containsQueryString(s)
  353. ? s + '&' + this.options.urlArgs
  354. : s + '?' + this.options.urlArgs
  355. }
  356. _addUrlArgsIfNecessaryToUrl(s) {
  357. return this.options.urlArgs ? this._addUrlArgsToUrl(s) : s
  358. }
  359. _addUrlArgsIfNecessaryToUrls(s) {
  360. if (this.options.urlArgs)
  361. for (let p = 0, L = s.length; p < L; p++) s[p] = this._addUrlArgsToUrl(s[p])
  362. return s
  363. }
  364. moduleIdToPaths(s) {
  365. if (
  366. this._env.isNode &&
  367. this.options.amdModulesPattern instanceof RegExp &&
  368. !this.options.amdModulesPattern.test(s)
  369. )
  370. return this.isBuild() ? ['empty:'] : ['node|' + s]
  371. let p = s,
  372. L
  373. if (!x.Utilities.endsWith(p, '.js') && !x.Utilities.isAbsolutePath(p)) {
  374. L = this._applyPaths(p)
  375. for (let h = 0, a = L.length; h < a; h++)
  376. (this.isBuild() && L[h] === 'empty:') ||
  377. (x.Utilities.isAbsolutePath(L[h]) || (L[h] = this.options.baseUrl + L[h]),
  378. !x.Utilities.endsWith(L[h], '.js') &&
  379. !x.Utilities.containsQueryString(L[h]) &&
  380. (L[h] = L[h] + '.js'))
  381. } else
  382. !x.Utilities.endsWith(p, '.js') && !x.Utilities.containsQueryString(p) && (p = p + '.js'),
  383. (L = [p])
  384. return this._addUrlArgsIfNecessaryToUrls(L)
  385. }
  386. requireToUrl(s) {
  387. let p = s
  388. return (
  389. x.Utilities.isAbsolutePath(p) ||
  390. ((p = this._applyPaths(p)[0]),
  391. x.Utilities.isAbsolutePath(p) || (p = this.options.baseUrl + p)),
  392. this._addUrlArgsIfNecessaryToUrl(p)
  393. )
  394. }
  395. isBuild() {
  396. return this.options.isBuild
  397. }
  398. shouldInvokeFactory(s) {
  399. return !!(
  400. !this.options.isBuild ||
  401. x.Utilities.isAnonymousModule(s) ||
  402. (this.options.buildForceInvokeFactory && this.options.buildForceInvokeFactory[s])
  403. )
  404. }
  405. isDuplicateMessageIgnoredFor(s) {
  406. return this.ignoreDuplicateModulesMap.hasOwnProperty(s)
  407. }
  408. getConfigForModule(s) {
  409. if (this.options.config) return this.options.config[s]
  410. }
  411. shouldCatchError() {
  412. return this.options.catchError
  413. }
  414. shouldRecordStats() {
  415. return this.options.recordStats
  416. }
  417. onError(s) {
  418. this.options.onError(s)
  419. }
  420. }
  421. x.Configuration = D
  422. })(ae || (ae = {}))
  423. var ae
  424. ;(function (x) {
  425. class n {
  426. constructor(a) {
  427. ;(this._env = a), (this._scriptLoader = null), (this._callbackMap = {})
  428. }
  429. load(a, w, e, b) {
  430. if (!this._scriptLoader)
  431. if (this._env.isWebWorker) this._scriptLoader = new i()
  432. else if (this._env.isElectronRenderer) {
  433. const { preferScriptTags: v } = a.getConfig().getOptionsLiteral()
  434. v ? (this._scriptLoader = new R()) : (this._scriptLoader = new s(this._env))
  435. } else
  436. this._env.isNode
  437. ? (this._scriptLoader = new s(this._env))
  438. : (this._scriptLoader = new R())
  439. let f = { callback: e, errorback: b }
  440. if (this._callbackMap.hasOwnProperty(w)) {
  441. this._callbackMap[w].push(f)
  442. return
  443. }
  444. ;(this._callbackMap[w] = [f]),
  445. this._scriptLoader.load(
  446. a,
  447. w,
  448. () => this.triggerCallback(w),
  449. (v) => this.triggerErrorback(w, v)
  450. )
  451. }
  452. triggerCallback(a) {
  453. let w = this._callbackMap[a]
  454. delete this._callbackMap[a]
  455. for (let e = 0; e < w.length; e++) w[e].callback()
  456. }
  457. triggerErrorback(a, w) {
  458. let e = this._callbackMap[a]
  459. delete this._callbackMap[a]
  460. for (let b = 0; b < e.length; b++) e[b].errorback(w)
  461. }
  462. }
  463. class R {
  464. attachListeners(a, w, e) {
  465. let b = () => {
  466. a.removeEventListener('load', f), a.removeEventListener('error', v)
  467. },
  468. f = (g) => {
  469. b(), w()
  470. },
  471. v = (g) => {
  472. b(), e(g)
  473. }
  474. a.addEventListener('load', f), a.addEventListener('error', v)
  475. }
  476. load(a, w, e, b) {
  477. if (/^node\|/.test(w)) {
  478. let f = a.getConfig().getOptionsLiteral(),
  479. v = p(a.getRecorder(), f.nodeRequire || x.global.nodeRequire),
  480. g = w.split('|'),
  481. S = null
  482. try {
  483. S = v(g[1])
  484. } catch (E) {
  485. b(E)
  486. return
  487. }
  488. a.enqueueDefineAnonymousModule([], () => S), e()
  489. } else {
  490. let f = document.createElement('script')
  491. f.setAttribute('async', 'async'),
  492. f.setAttribute('type', 'text/javascript'),
  493. this.attachListeners(f, e, b)
  494. const { trustedTypesPolicy: v } = a.getConfig().getOptionsLiteral()
  495. v && (w = v.createScriptURL(w)), f.setAttribute('src', w)
  496. const { cspNonce: g } = a.getConfig().getOptionsLiteral()
  497. g && f.setAttribute('nonce', g), document.getElementsByTagName('head')[0].appendChild(f)
  498. }
  499. }
  500. }
  501. function D(h) {
  502. const { trustedTypesPolicy: a } = h.getConfig().getOptionsLiteral()
  503. try {
  504. return (a ? self.eval(a.createScript('', 'true')) : new Function('true')).call(self), !0
  505. } catch {
  506. return !1
  507. }
  508. }
  509. class i {
  510. constructor() {
  511. this._cachedCanUseEval = null
  512. }
  513. _canUseEval(a) {
  514. return (
  515. this._cachedCanUseEval === null && (this._cachedCanUseEval = D(a)), this._cachedCanUseEval
  516. )
  517. }
  518. load(a, w, e, b) {
  519. if (/^node\|/.test(w)) {
  520. const f = a.getConfig().getOptionsLiteral(),
  521. v = p(a.getRecorder(), f.nodeRequire || x.global.nodeRequire),
  522. g = w.split('|')
  523. let S = null
  524. try {
  525. S = v(g[1])
  526. } catch (E) {
  527. b(E)
  528. return
  529. }
  530. a.enqueueDefineAnonymousModule([], function () {
  531. return S
  532. }),
  533. e()
  534. } else {
  535. const { trustedTypesPolicy: f } = a.getConfig().getOptionsLiteral()
  536. if (
  537. !(
  538. /^((http:)|(https:)|(file:))/.test(w) &&
  539. w.substring(0, self.origin.length) !== self.origin
  540. ) &&
  541. this._canUseEval(a)
  542. ) {
  543. fetch(w)
  544. .then((g) => {
  545. if (g.status !== 200) throw new Error(g.statusText)
  546. return g.text()
  547. })
  548. .then((g) => {
  549. ;(g = `${g}
  550. //# sourceURL=${w}`),
  551. (f ? self.eval(f.createScript('', g)) : new Function(g)).call(self),
  552. e()
  553. })
  554. .then(void 0, b)
  555. return
  556. }
  557. try {
  558. f && (w = f.createScriptURL(w)), importScripts(w), e()
  559. } catch (g) {
  560. b(g)
  561. }
  562. }
  563. }
  564. }
  565. class s {
  566. constructor(a) {
  567. ;(this._env = a), (this._didInitialize = !1), (this._didPatchNodeRequire = !1)
  568. }
  569. _init(a) {
  570. this._didInitialize ||
  571. ((this._didInitialize = !0),
  572. (this._fs = a('fs')),
  573. (this._vm = a('vm')),
  574. (this._path = a('path')),
  575. (this._crypto = a('crypto')))
  576. }
  577. _initNodeRequire(a, w) {
  578. const { nodeCachedData: e } = w.getConfig().getOptionsLiteral()
  579. if (!e || this._didPatchNodeRequire) return
  580. this._didPatchNodeRequire = !0
  581. const b = this,
  582. f = a('module')
  583. function v(g) {
  584. const S = g.constructor
  585. let E = function (_) {
  586. try {
  587. return g.require(_)
  588. } finally {
  589. }
  590. }
  591. return (
  592. (E.resolve = function (_, d) {
  593. return S._resolveFilename(_, g, !1, d)
  594. }),
  595. (E.resolve.paths = function (_) {
  596. return S._resolveLookupPaths(_, g)
  597. }),
  598. (E.main = process.mainModule),
  599. (E.extensions = S._extensions),
  600. (E.cache = S._cache),
  601. E
  602. )
  603. }
  604. f.prototype._compile = function (g, S) {
  605. const E = f.wrap(g.replace(/^#!.*/, '')),
  606. y = w.getRecorder(),
  607. _ = b._getCachedDataPath(e, S),
  608. d = { filename: S }
  609. let C
  610. try {
  611. const N = b._fs.readFileSync(_)
  612. ;(C = N.slice(0, 16)), (d.cachedData = N.slice(16)), y.record(60, _)
  613. } catch {
  614. y.record(61, _)
  615. }
  616. const r = new b._vm.Script(E, d),
  617. u = r.runInThisContext(d),
  618. o = b._path.dirname(S),
  619. c = v(this),
  620. l = [this.exports, c, this, S, o, process, Re, Buffer],
  621. m = u.apply(this.exports, l)
  622. return (
  623. b._handleCachedData(r, E, _, !d.cachedData, w), b._verifyCachedData(r, E, _, C, w), m
  624. )
  625. }
  626. }
  627. load(a, w, e, b) {
  628. const f = a.getConfig().getOptionsLiteral(),
  629. v = p(a.getRecorder(), f.nodeRequire || x.global.nodeRequire),
  630. g =
  631. f.nodeInstrumenter ||
  632. function (E) {
  633. return E
  634. }
  635. this._init(v), this._initNodeRequire(v, a)
  636. let S = a.getRecorder()
  637. if (/^node\|/.test(w)) {
  638. let E = w.split('|'),
  639. y = null
  640. try {
  641. y = v(E[1])
  642. } catch (_) {
  643. b(_)
  644. return
  645. }
  646. a.enqueueDefineAnonymousModule([], () => y), e()
  647. } else {
  648. w = x.Utilities.fileUriToFilePath(this._env.isWindows, w)
  649. const E = this._path.normalize(w),
  650. y = this._getElectronRendererScriptPathOrUri(E),
  651. _ = Boolean(f.nodeCachedData),
  652. d = _ ? this._getCachedDataPath(f.nodeCachedData, w) : void 0
  653. this._readSourceAndCachedData(E, d, S, (C, r, u, o) => {
  654. if (C) {
  655. b(C)
  656. return
  657. }
  658. let c
  659. r.charCodeAt(0) === s._BOM
  660. ? (c = s._PREFIX + r.substring(1) + s._SUFFIX)
  661. : (c = s._PREFIX + r + s._SUFFIX),
  662. (c = g(c, E))
  663. const l = { filename: y, cachedData: u },
  664. m = this._createAndEvalScript(a, c, l, e, b)
  665. this._handleCachedData(m, c, d, _ && !u, a), this._verifyCachedData(m, c, d, o, a)
  666. })
  667. }
  668. }
  669. _createAndEvalScript(a, w, e, b, f) {
  670. const v = a.getRecorder()
  671. v.record(31, e.filename)
  672. const g = new this._vm.Script(w, e),
  673. S = g.runInThisContext(e),
  674. E = a.getGlobalAMDDefineFunc()
  675. let y = !1
  676. const _ = function () {
  677. return (y = !0), E.apply(null, arguments)
  678. }
  679. return (
  680. (_.amd = E.amd),
  681. S.call(
  682. x.global,
  683. a.getGlobalAMDRequireFunc(),
  684. _,
  685. e.filename,
  686. this._path.dirname(e.filename)
  687. ),
  688. v.record(32, e.filename),
  689. y ? b() : f(new Error(`Didn't receive define call in ${e.filename}!`)),
  690. g
  691. )
  692. }
  693. _getElectronRendererScriptPathOrUri(a) {
  694. if (!this._env.isElectronRenderer) return a
  695. let w = a.match(/^([a-z])\:(.*)/i)
  696. return w
  697. ? `file:///${(w[1].toUpperCase() + ':' + w[2]).replace(/\\/g, '/')}`
  698. : `file://${a}`
  699. }
  700. _getCachedDataPath(a, w) {
  701. const e = this._crypto
  702. .createHash('md5')
  703. .update(w, 'utf8')
  704. .update(a.seed, 'utf8')
  705. .update(process.arch, '')
  706. .digest('hex'),
  707. b = this._path.basename(w).replace(/\.js$/, '')
  708. return this._path.join(a.path, `${b}-${e}.code`)
  709. }
  710. _handleCachedData(a, w, e, b, f) {
  711. a.cachedDataRejected
  712. ? this._fs.unlink(e, (v) => {
  713. f.getRecorder().record(62, e),
  714. this._createAndWriteCachedData(a, w, e, f),
  715. v && f.getConfig().onError(v)
  716. })
  717. : b && this._createAndWriteCachedData(a, w, e, f)
  718. }
  719. _createAndWriteCachedData(a, w, e, b) {
  720. let f = Math.ceil(
  721. b.getConfig().getOptionsLiteral().nodeCachedData.writeDelay * (1 + Math.random())
  722. ),
  723. v = -1,
  724. g = 0,
  725. S
  726. const E = () => {
  727. setTimeout(() => {
  728. S || (S = this._crypto.createHash('md5').update(w, 'utf8').digest())
  729. const y = a.createCachedData()
  730. if (!(y.length === 0 || y.length === v || g >= 5)) {
  731. if (y.length < v) {
  732. E()
  733. return
  734. }
  735. ;(v = y.length),
  736. this._fs.writeFile(e, Buffer.concat([S, y]), (_) => {
  737. _ && b.getConfig().onError(_), b.getRecorder().record(63, e), E()
  738. })
  739. }
  740. }, f * Math.pow(4, g++))
  741. }
  742. E()
  743. }
  744. _readSourceAndCachedData(a, w, e, b) {
  745. if (!w) this._fs.readFile(a, { encoding: 'utf8' }, b)
  746. else {
  747. let f,
  748. v,
  749. g,
  750. S = 2
  751. const E = (y) => {
  752. y ? b(y) : --S === 0 && b(void 0, f, v, g)
  753. }
  754. this._fs.readFile(a, { encoding: 'utf8' }, (y, _) => {
  755. ;(f = _), E(y)
  756. }),
  757. this._fs.readFile(w, (y, _) => {
  758. !y && _ && _.length > 0
  759. ? ((g = _.slice(0, 16)), (v = _.slice(16)), e.record(60, w))
  760. : e.record(61, w),
  761. E()
  762. })
  763. }
  764. }
  765. _verifyCachedData(a, w, e, b, f) {
  766. !b ||
  767. a.cachedDataRejected ||
  768. setTimeout(() => {
  769. const v = this._crypto.createHash('md5').update(w, 'utf8').digest()
  770. b.equals(v) ||
  771. (f
  772. .getConfig()
  773. .onError(
  774. new Error(
  775. `FAILED TO VERIFY CACHED DATA, deleting stale '${e}' now, but a RESTART IS REQUIRED`
  776. )
  777. ),
  778. this._fs.unlink(e, (g) => {
  779. g && f.getConfig().onError(g)
  780. }))
  781. }, Math.ceil(5e3 * (1 + Math.random())))
  782. }
  783. }
  784. ;(s._BOM = 65279),
  785. (s._PREFIX = '(function (require, define, __filename, __dirname) { '),
  786. (s._SUFFIX = `
  787. });`)
  788. function p(h, a) {
  789. if (a.__$__isRecorded) return a
  790. const w = function (b) {
  791. h.record(33, b)
  792. try {
  793. return a(b)
  794. } finally {
  795. h.record(34, b)
  796. }
  797. }
  798. return (w.__$__isRecorded = !0), w
  799. }
  800. x.ensureRecordedNodeRequire = p
  801. function L(h) {
  802. return new n(h)
  803. }
  804. x.createScriptLoader = L
  805. })(ae || (ae = {}))
  806. var ae
  807. ;(function (x) {
  808. class n {
  809. constructor(h) {
  810. let a = h.lastIndexOf('/')
  811. a !== -1 ? (this.fromModulePath = h.substr(0, a + 1)) : (this.fromModulePath = '')
  812. }
  813. static _normalizeModuleId(h) {
  814. let a = h,
  815. w
  816. for (w = /\/\.\//; w.test(a); ) a = a.replace(w, '/')
  817. for (
  818. a = a.replace(/^\.\//g, ''),
  819. w = /\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;
  820. w.test(a);
  821. )
  822. a = a.replace(w, '/')
  823. return (
  824. (a = a.replace(
  825. /^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,
  826. ''
  827. )),
  828. a
  829. )
  830. }
  831. resolveModule(h) {
  832. let a = h
  833. return (
  834. x.Utilities.isAbsolutePath(a) ||
  835. ((x.Utilities.startsWith(a, './') || x.Utilities.startsWith(a, '../')) &&
  836. (a = n._normalizeModuleId(this.fromModulePath + a))),
  837. a
  838. )
  839. }
  840. }
  841. ;(n.ROOT = new n('')), (x.ModuleIdResolver = n)
  842. class R {
  843. constructor(h, a, w, e, b, f) {
  844. ;(this.id = h),
  845. (this.strId = a),
  846. (this.dependencies = w),
  847. (this._callback = e),
  848. (this._errorback = b),
  849. (this.moduleIdResolver = f),
  850. (this.exports = {}),
  851. (this.error = null),
  852. (this.exportsPassedIn = !1),
  853. (this.unresolvedDependenciesCount = this.dependencies.length),
  854. (this._isComplete = !1)
  855. }
  856. static _safeInvokeFunction(h, a) {
  857. try {
  858. return { returnedValue: h.apply(x.global, a), producedError: null }
  859. } catch (w) {
  860. return { returnedValue: null, producedError: w }
  861. }
  862. }
  863. static _invokeFactory(h, a, w, e) {
  864. return h.shouldInvokeFactory(a)
  865. ? h.shouldCatchError()
  866. ? this._safeInvokeFunction(w, e)
  867. : { returnedValue: w.apply(x.global, e), producedError: null }
  868. : { returnedValue: null, producedError: null }
  869. }
  870. complete(h, a, w, e) {
  871. this._isComplete = !0
  872. let b = null
  873. if (this._callback)
  874. if (typeof this._callback == 'function') {
  875. h.record(21, this.strId)
  876. let f = R._invokeFactory(a, this.strId, this._callback, w)
  877. ;(b = f.producedError),
  878. h.record(22, this.strId),
  879. !b &&
  880. typeof f.returnedValue < 'u' &&
  881. (!this.exportsPassedIn || x.Utilities.isEmpty(this.exports)) &&
  882. (this.exports = f.returnedValue)
  883. } else this.exports = this._callback
  884. if (b) {
  885. let f = x.ensureError(b)
  886. ;(f.phase = 'factory'),
  887. (f.moduleId = this.strId),
  888. (f.neededBy = e(this.id)),
  889. (this.error = f),
  890. a.onError(f)
  891. }
  892. ;(this.dependencies = null),
  893. (this._callback = null),
  894. (this._errorback = null),
  895. (this.moduleIdResolver = null)
  896. }
  897. onDependencyError(h) {
  898. return (
  899. (this._isComplete = !0), (this.error = h), this._errorback ? (this._errorback(h), !0) : !1
  900. )
  901. }
  902. isComplete() {
  903. return this._isComplete
  904. }
  905. }
  906. x.Module = R
  907. class D {
  908. constructor() {
  909. ;(this._nextId = 0),
  910. (this._strModuleIdToIntModuleId = new Map()),
  911. (this._intModuleIdToStrModuleId = []),
  912. this.getModuleId('exports'),
  913. this.getModuleId('module'),
  914. this.getModuleId('require')
  915. }
  916. getMaxModuleId() {
  917. return this._nextId
  918. }
  919. getModuleId(h) {
  920. let a = this._strModuleIdToIntModuleId.get(h)
  921. return (
  922. typeof a > 'u' &&
  923. ((a = this._nextId++),
  924. this._strModuleIdToIntModuleId.set(h, a),
  925. (this._intModuleIdToStrModuleId[a] = h)),
  926. a
  927. )
  928. }
  929. getStrModuleId(h) {
  930. return this._intModuleIdToStrModuleId[h]
  931. }
  932. }
  933. class i {
  934. constructor(h) {
  935. this.id = h
  936. }
  937. }
  938. ;(i.EXPORTS = new i(0)),
  939. (i.MODULE = new i(1)),
  940. (i.REQUIRE = new i(2)),
  941. (x.RegularDependency = i)
  942. class s {
  943. constructor(h, a, w) {
  944. ;(this.id = h), (this.pluginId = a), (this.pluginParam = w)
  945. }
  946. }
  947. x.PluginDependency = s
  948. class p {
  949. constructor(h, a, w, e, b = 0) {
  950. ;(this._env = h),
  951. (this._scriptLoader = a),
  952. (this._loaderAvailableTimestamp = b),
  953. (this._defineFunc = w),
  954. (this._requireFunc = e),
  955. (this._moduleIdProvider = new D()),
  956. (this._config = new x.Configuration(this._env)),
  957. (this._hasDependencyCycle = !1),
  958. (this._modules2 = []),
  959. (this._knownModules2 = []),
  960. (this._inverseDependencies2 = []),
  961. (this._inversePluginDependencies2 = new Map()),
  962. (this._currentAnonymousDefineCall = null),
  963. (this._recorder = null),
  964. (this._buildInfoPath = []),
  965. (this._buildInfoDefineStack = []),
  966. (this._buildInfoDependencies = [])
  967. }
  968. reset() {
  969. return new p(
  970. this._env,
  971. this._scriptLoader,
  972. this._defineFunc,
  973. this._requireFunc,
  974. this._loaderAvailableTimestamp
  975. )
  976. }
  977. getGlobalAMDDefineFunc() {
  978. return this._defineFunc
  979. }
  980. getGlobalAMDRequireFunc() {
  981. return this._requireFunc
  982. }
  983. static _findRelevantLocationInStack(h, a) {
  984. let w = (f) => f.replace(/\\/g, '/'),
  985. e = w(h),
  986. b = a.split(/\n/)
  987. for (let f = 0; f < b.length; f++) {
  988. let v = b[f].match(/(.*):(\d+):(\d+)\)?$/)
  989. if (v) {
  990. let g = v[1],
  991. S = v[2],
  992. E = v[3],
  993. y = Math.max(g.lastIndexOf(' ') + 1, g.lastIndexOf('(') + 1)
  994. if (((g = g.substr(y)), (g = w(g)), g === e)) {
  995. let _ = { line: parseInt(S, 10), col: parseInt(E, 10) }
  996. return _.line === 1 && (_.col -= 53), _
  997. }
  998. }
  999. }
  1000. throw new Error('Could not correlate define call site for needle ' + h)
  1001. }
  1002. getBuildInfo() {
  1003. if (!this._config.isBuild()) return null
  1004. let h = [],
  1005. a = 0
  1006. for (let w = 0, e = this._modules2.length; w < e; w++) {
  1007. let b = this._modules2[w]
  1008. if (!b) continue
  1009. let f = this._buildInfoPath[b.id] || null,
  1010. v = this._buildInfoDefineStack[b.id] || null,
  1011. g = this._buildInfoDependencies[b.id]
  1012. h[a++] = {
  1013. id: b.strId,
  1014. path: f,
  1015. defineLocation: f && v ? p._findRelevantLocationInStack(f, v) : null,
  1016. dependencies: g,
  1017. shim: null,
  1018. exports: b.exports,
  1019. }
  1020. }
  1021. return h
  1022. }
  1023. getRecorder() {
  1024. return (
  1025. this._recorder ||
  1026. (this._config.shouldRecordStats()
  1027. ? (this._recorder = new x.LoaderEventRecorder(this._loaderAvailableTimestamp))
  1028. : (this._recorder = x.NullLoaderEventRecorder.INSTANCE)),
  1029. this._recorder
  1030. )
  1031. }
  1032. getLoaderEvents() {
  1033. return this.getRecorder().getEvents()
  1034. }
  1035. enqueueDefineAnonymousModule(h, a) {
  1036. if (this._currentAnonymousDefineCall !== null)
  1037. throw new Error('Can only have one anonymous define call per script file')
  1038. let w = null
  1039. this._config.isBuild() && (w = new Error('StackLocation').stack || null),
  1040. (this._currentAnonymousDefineCall = { stack: w, dependencies: h, callback: a })
  1041. }
  1042. defineModule(h, a, w, e, b, f = new n(h)) {
  1043. let v = this._moduleIdProvider.getModuleId(h)
  1044. if (this._modules2[v]) {
  1045. this._config.isDuplicateMessageIgnoredFor(h) ||
  1046. console.warn("Duplicate definition of module '" + h + "'")
  1047. return
  1048. }
  1049. let g = new R(v, h, this._normalizeDependencies(a, f), w, e, f)
  1050. ;(this._modules2[v] = g),
  1051. this._config.isBuild() &&
  1052. ((this._buildInfoDefineStack[v] = b),
  1053. (this._buildInfoDependencies[v] = (g.dependencies || []).map((S) =>
  1054. this._moduleIdProvider.getStrModuleId(S.id)
  1055. ))),
  1056. this._resolve(g)
  1057. }
  1058. _normalizeDependency(h, a) {
  1059. if (h === 'exports') return i.EXPORTS
  1060. if (h === 'module') return i.MODULE
  1061. if (h === 'require') return i.REQUIRE
  1062. let w = h.indexOf('!')
  1063. if (w >= 0) {
  1064. let e = a.resolveModule(h.substr(0, w)),
  1065. b = a.resolveModule(h.substr(w + 1)),
  1066. f = this._moduleIdProvider.getModuleId(e + '!' + b),
  1067. v = this._moduleIdProvider.getModuleId(e)
  1068. return new s(f, v, b)
  1069. }
  1070. return new i(this._moduleIdProvider.getModuleId(a.resolveModule(h)))
  1071. }
  1072. _normalizeDependencies(h, a) {
  1073. let w = [],
  1074. e = 0
  1075. for (let b = 0, f = h.length; b < f; b++) w[e++] = this._normalizeDependency(h[b], a)
  1076. return w
  1077. }
  1078. _relativeRequire(h, a, w, e) {
  1079. if (typeof a == 'string') return this.synchronousRequire(a, h)
  1080. this.defineModule(x.Utilities.generateAnonymousModule(), a, w, e, null, h)
  1081. }
  1082. synchronousRequire(h, a = new n(h)) {
  1083. let w = this._normalizeDependency(h, a),
  1084. e = this._modules2[w.id]
  1085. if (!e)
  1086. throw new Error(
  1087. "Check dependency list! Synchronous require cannot resolve module '" +
  1088. h +
  1089. "'. This is the first mention of this module!"
  1090. )
  1091. if (!e.isComplete())
  1092. throw new Error(
  1093. "Check dependency list! Synchronous require cannot resolve module '" +
  1094. h +
  1095. "'. This module has not been resolved completely yet."
  1096. )
  1097. if (e.error) throw e.error
  1098. return e.exports
  1099. }
  1100. configure(h, a) {
  1101. let w = this._config.shouldRecordStats()
  1102. a
  1103. ? (this._config = new x.Configuration(this._env, h))
  1104. : (this._config = this._config.cloneAndMerge(h)),
  1105. this._config.shouldRecordStats() && !w && (this._recorder = null)
  1106. }
  1107. getConfig() {
  1108. return this._config
  1109. }
  1110. _onLoad(h) {
  1111. if (this._currentAnonymousDefineCall !== null) {
  1112. let a = this._currentAnonymousDefineCall
  1113. ;(this._currentAnonymousDefineCall = null),
  1114. this.defineModule(
  1115. this._moduleIdProvider.getStrModuleId(h),
  1116. a.dependencies,
  1117. a.callback,
  1118. null,
  1119. a.stack
  1120. )
  1121. }
  1122. }
  1123. _createLoadError(h, a) {
  1124. let w = this._moduleIdProvider.getStrModuleId(h),
  1125. e = (this._inverseDependencies2[h] || []).map((f) =>
  1126. this._moduleIdProvider.getStrModuleId(f)
  1127. )
  1128. const b = x.ensureError(a)
  1129. return (b.phase = 'loading'), (b.moduleId = w), (b.neededBy = e), b
  1130. }
  1131. _onLoadError(h, a) {
  1132. const w = this._createLoadError(h, a)
  1133. this._modules2[h] ||
  1134. (this._modules2[h] = new R(
  1135. h,
  1136. this._moduleIdProvider.getStrModuleId(h),
  1137. [],
  1138. () => {},
  1139. null,
  1140. null
  1141. ))
  1142. let e = []
  1143. for (let v = 0, g = this._moduleIdProvider.getMaxModuleId(); v < g; v++) e[v] = !1
  1144. let b = !1,
  1145. f = []
  1146. for (f.push(h), e[h] = !0; f.length > 0; ) {
  1147. let v = f.shift(),
  1148. g = this._modules2[v]
  1149. g && (b = g.onDependencyError(w) || b)
  1150. let S = this._inverseDependencies2[v]
  1151. if (S)
  1152. for (let E = 0, y = S.length; E < y; E++) {
  1153. let _ = S[E]
  1154. e[_] || (f.push(_), (e[_] = !0))
  1155. }
  1156. }
  1157. b || this._config.onError(w)
  1158. }
  1159. _hasDependencyPath(h, a) {
  1160. let w = this._modules2[h]
  1161. if (!w) return !1
  1162. let e = []
  1163. for (let f = 0, v = this._moduleIdProvider.getMaxModuleId(); f < v; f++) e[f] = !1
  1164. let b = []
  1165. for (b.push(w), e[h] = !0; b.length > 0; ) {
  1166. let v = b.shift().dependencies
  1167. if (v)
  1168. for (let g = 0, S = v.length; g < S; g++) {
  1169. let E = v[g]
  1170. if (E.id === a) return !0
  1171. let y = this._modules2[E.id]
  1172. y && !e[E.id] && ((e[E.id] = !0), b.push(y))
  1173. }
  1174. }
  1175. return !1
  1176. }
  1177. _findCyclePath(h, a, w) {
  1178. if (h === a || w === 50) return [h]
  1179. let e = this._modules2[h]
  1180. if (!e) return null
  1181. let b = e.dependencies
  1182. if (b)
  1183. for (let f = 0, v = b.length; f < v; f++) {
  1184. let g = this._findCyclePath(b[f].id, a, w + 1)
  1185. if (g !== null) return g.push(h), g
  1186. }
  1187. return null
  1188. }
  1189. _createRequire(h) {
  1190. let a = (w, e, b) => this._relativeRequire(h, w, e, b)
  1191. return (
  1192. (a.toUrl = (w) => this._config.requireToUrl(h.resolveModule(w))),
  1193. (a.getStats = () => this.getLoaderEvents()),
  1194. (a.hasDependencyCycle = () => this._hasDependencyCycle),
  1195. (a.config = (w, e = !1) => {
  1196. this.configure(w, e)
  1197. }),
  1198. (a.__$__nodeRequire = x.global.nodeRequire),
  1199. a
  1200. )
  1201. }
  1202. _loadModule(h) {
  1203. if (this._modules2[h] || this._knownModules2[h]) return
  1204. this._knownModules2[h] = !0
  1205. let a = this._moduleIdProvider.getStrModuleId(h),
  1206. w = this._config.moduleIdToPaths(a),
  1207. e = /^@[^\/]+\/[^\/]+$/
  1208. this._env.isNode && (a.indexOf('/') === -1 || e.test(a)) && w.push('node|' + a)
  1209. let b = -1,
  1210. f = (v) => {
  1211. if ((b++, b >= w.length)) this._onLoadError(h, v)
  1212. else {
  1213. let g = w[b],
  1214. S = this.getRecorder()
  1215. if (this._config.isBuild() && g === 'empty:') {
  1216. ;(this._buildInfoPath[h] = g),
  1217. this.defineModule(this._moduleIdProvider.getStrModuleId(h), [], null, null, null),
  1218. this._onLoad(h)
  1219. return
  1220. }
  1221. S.record(10, g),
  1222. this._scriptLoader.load(
  1223. this,
  1224. g,
  1225. () => {
  1226. this._config.isBuild() && (this._buildInfoPath[h] = g),
  1227. S.record(11, g),
  1228. this._onLoad(h)
  1229. },
  1230. (E) => {
  1231. S.record(12, g), f(E)
  1232. }
  1233. )
  1234. }
  1235. }
  1236. f(null)
  1237. }
  1238. _loadPluginDependency(h, a) {
  1239. if (this._modules2[a.id] || this._knownModules2[a.id]) return
  1240. this._knownModules2[a.id] = !0
  1241. let w = (e) => {
  1242. this.defineModule(this._moduleIdProvider.getStrModuleId(a.id), [], e, null, null)
  1243. }
  1244. ;(w.error = (e) => {
  1245. this._config.onError(this._createLoadError(a.id, e))
  1246. }),
  1247. h.load(a.pluginParam, this._createRequire(n.ROOT), w, this._config.getOptionsLiteral())
  1248. }
  1249. _resolve(h) {
  1250. let a = h.dependencies
  1251. if (a)
  1252. for (let w = 0, e = a.length; w < e; w++) {
  1253. let b = a[w]
  1254. if (b === i.EXPORTS) {
  1255. ;(h.exportsPassedIn = !0), h.unresolvedDependenciesCount--
  1256. continue
  1257. }
  1258. if (b === i.MODULE) {
  1259. h.unresolvedDependenciesCount--
  1260. continue
  1261. }
  1262. if (b === i.REQUIRE) {
  1263. h.unresolvedDependenciesCount--
  1264. continue
  1265. }
  1266. let f = this._modules2[b.id]
  1267. if (f && f.isComplete()) {
  1268. if (f.error) {
  1269. h.onDependencyError(f.error)
  1270. return
  1271. }
  1272. h.unresolvedDependenciesCount--
  1273. continue
  1274. }
  1275. if (this._hasDependencyPath(b.id, h.id)) {
  1276. ;(this._hasDependencyCycle = !0),
  1277. console.warn(
  1278. "There is a dependency cycle between '" +
  1279. this._moduleIdProvider.getStrModuleId(b.id) +
  1280. "' and '" +
  1281. this._moduleIdProvider.getStrModuleId(h.id) +
  1282. "'. The cyclic path follows:"
  1283. )
  1284. let v = this._findCyclePath(b.id, h.id, 0) || []
  1285. v.reverse(),
  1286. v.push(b.id),
  1287. console.warn(
  1288. v.map((g) => this._moduleIdProvider.getStrModuleId(g)).join(` =>
  1289. `)
  1290. ),
  1291. h.unresolvedDependenciesCount--
  1292. continue
  1293. }
  1294. if (
  1295. ((this._inverseDependencies2[b.id] = this._inverseDependencies2[b.id] || []),
  1296. this._inverseDependencies2[b.id].push(h.id),
  1297. b instanceof s)
  1298. ) {
  1299. let v = this._modules2[b.pluginId]
  1300. if (v && v.isComplete()) {
  1301. this._loadPluginDependency(v.exports, b)
  1302. continue
  1303. }
  1304. let g = this._inversePluginDependencies2.get(b.pluginId)
  1305. g || ((g = []), this._inversePluginDependencies2.set(b.pluginId, g)),
  1306. g.push(b),
  1307. this._loadModule(b.pluginId)
  1308. continue
  1309. }
  1310. this._loadModule(b.id)
  1311. }
  1312. h.unresolvedDependenciesCount === 0 && this._onModuleComplete(h)
  1313. }
  1314. _onModuleComplete(h) {
  1315. let a = this.getRecorder()
  1316. if (h.isComplete()) return
  1317. let w = h.dependencies,
  1318. e = []
  1319. if (w)
  1320. for (let g = 0, S = w.length; g < S; g++) {
  1321. let E = w[g]
  1322. if (E === i.EXPORTS) {
  1323. e[g] = h.exports
  1324. continue
  1325. }
  1326. if (E === i.MODULE) {
  1327. e[g] = { id: h.strId, config: () => this._config.getConfigForModule(h.strId) }
  1328. continue
  1329. }
  1330. if (E === i.REQUIRE) {
  1331. e[g] = this._createRequire(h.moduleIdResolver)
  1332. continue
  1333. }
  1334. let y = this._modules2[E.id]
  1335. if (y) {
  1336. e[g] = y.exports
  1337. continue
  1338. }
  1339. e[g] = null
  1340. }
  1341. const b = (g) =>
  1342. (this._inverseDependencies2[g] || []).map((S) => this._moduleIdProvider.getStrModuleId(S))
  1343. h.complete(a, this._config, e, b)
  1344. let f = this._inverseDependencies2[h.id]
  1345. if (((this._inverseDependencies2[h.id] = null), f))
  1346. for (let g = 0, S = f.length; g < S; g++) {
  1347. let E = f[g],
  1348. y = this._modules2[E]
  1349. y.unresolvedDependenciesCount--,
  1350. y.unresolvedDependenciesCount === 0 && this._onModuleComplete(y)
  1351. }
  1352. let v = this._inversePluginDependencies2.get(h.id)
  1353. if (v) {
  1354. this._inversePluginDependencies2.delete(h.id)
  1355. for (let g = 0, S = v.length; g < S; g++) this._loadPluginDependency(h.exports, v[g])
  1356. }
  1357. }
  1358. }
  1359. x.ModuleManager = p
  1360. })(ae || (ae = {}))
  1361. var Q, ae
  1362. ;(function (x) {
  1363. const n = new x.Environment()
  1364. let R = null
  1365. const D = function (L, h, a) {
  1366. typeof L != 'string' && ((a = h), (h = L), (L = null)),
  1367. (typeof h != 'object' || !Array.isArray(h)) && ((a = h), (h = null)),
  1368. h || (h = ['require', 'exports', 'module']),
  1369. L ? R.defineModule(L, h, a, null, null) : R.enqueueDefineAnonymousModule(h, a)
  1370. }
  1371. D.amd = { jQuery: !0 }
  1372. const i = function (L, h = !1) {
  1373. R.configure(L, h)
  1374. },
  1375. s = function () {
  1376. if (arguments.length === 1) {
  1377. if (arguments[0] instanceof Object && !Array.isArray(arguments[0])) {
  1378. i(arguments[0])
  1379. return
  1380. }
  1381. if (typeof arguments[0] == 'string') return R.synchronousRequire(arguments[0])
  1382. }
  1383. if ((arguments.length === 2 || arguments.length === 3) && Array.isArray(arguments[0])) {
  1384. R.defineModule(
  1385. x.Utilities.generateAnonymousModule(),
  1386. arguments[0],
  1387. arguments[1],
  1388. arguments[2],
  1389. null
  1390. )
  1391. return
  1392. }
  1393. throw new Error('Unrecognized require call')
  1394. }
  1395. ;(s.config = i),
  1396. (s.getConfig = function () {
  1397. return R.getConfig().getOptionsLiteral()
  1398. }),
  1399. (s.reset = function () {
  1400. R = R.reset()
  1401. }),
  1402. (s.getBuildInfo = function () {
  1403. return R.getBuildInfo()
  1404. }),
  1405. (s.getStats = function () {
  1406. return R.getLoaderEvents()
  1407. }),
  1408. (s.define = D)
  1409. function p() {
  1410. if (typeof x.global.require < 'u' || typeof require < 'u') {
  1411. const L = x.global.require || require
  1412. if (typeof L == 'function' && typeof L.resolve == 'function') {
  1413. const h = x.ensureRecordedNodeRequire(R.getRecorder(), L)
  1414. ;(x.global.nodeRequire = h), (s.nodeRequire = h), (s.__$__nodeRequire = h)
  1415. }
  1416. }
  1417. n.isNode && !n.isElectronRenderer && !n.isElectronNodeIntegrationWebWorker
  1418. ? (module.exports = s)
  1419. : (n.isElectronRenderer || (x.global.define = D), (x.global.require = s))
  1420. }
  1421. ;(x.init = p),
  1422. (typeof x.global.define != 'function' || !x.global.define.amd) &&
  1423. ((R = new x.ModuleManager(
  1424. n,
  1425. x.createScriptLoader(n),
  1426. D,
  1427. s,
  1428. x.Utilities.getHighPerformanceTimestamp()
  1429. )),
  1430. typeof x.global.require < 'u' &&
  1431. typeof x.global.require != 'function' &&
  1432. s.config(x.global.require),
  1433. (Q = function () {
  1434. return D.apply(null, arguments)
  1435. }),
  1436. (Q.amd = D.amd),
  1437. typeof doNotInitLoader > 'u' && p())
  1438. })(ae || (ae = {}))
  1439. var be =
  1440. (this && this.__awaiter) ||
  1441. function (x, n, R, D) {
  1442. function i(s) {
  1443. return s instanceof R
  1444. ? s
  1445. : new R(function (p) {
  1446. p(s)
  1447. })
  1448. }
  1449. return new (R || (R = Promise))(function (s, p) {
  1450. function L(w) {
  1451. try {
  1452. a(D.next(w))
  1453. } catch (e) {
  1454. p(e)
  1455. }
  1456. }
  1457. function h(w) {
  1458. try {
  1459. a(D.throw(w))
  1460. } catch (e) {
  1461. p(e)
  1462. }
  1463. }
  1464. function a(w) {
  1465. w.done ? s(w.value) : i(w.value).then(L, h)
  1466. }
  1467. a((D = D.apply(x, n || [])).next())
  1468. })
  1469. }
  1470. Q(Y[25], X([0, 1]), function (x, n) {
  1471. 'use strict'
  1472. Object.defineProperty(n, '__esModule', { value: !0 }),
  1473. (n.load =
  1474. n.create =
  1475. n.setPseudoTranslation =
  1476. n.getConfiguredDefaultLocale =
  1477. n.localize =
  1478. void 0)
  1479. let R =
  1480. typeof document < 'u' &&
  1481. document.location &&
  1482. document.location.hash.indexOf('pseudo=true') >= 0
  1483. const D = 'i-default'
  1484. function i(v, g) {
  1485. let S
  1486. return (
  1487. g.length === 0
  1488. ? (S = v)
  1489. : (S = v.replace(/\{(\d+)\}/g, (E, y) => {
  1490. const _ = y[0],
  1491. d = g[_]
  1492. let C = E
  1493. return (
  1494. typeof d == 'string'
  1495. ? (C = d)
  1496. : (typeof d == 'number' || typeof d == 'boolean' || d === void 0 || d === null) &&
  1497. (C = String(d)),
  1498. C
  1499. )
  1500. })),
  1501. R && (S = '\uFF3B' + S.replace(/[aouei]/g, '$&$&') + '\uFF3D'),
  1502. S
  1503. )
  1504. }
  1505. function s(v, g) {
  1506. let S = v[g]
  1507. return S || ((S = v['*']), S) ? S : null
  1508. }
  1509. function p(v) {
  1510. return v.charAt(v.length - 1) === '/' ? v : v + '/'
  1511. }
  1512. function L(v, g, S) {
  1513. return be(this, void 0, void 0, function* () {
  1514. const E = p(v) + p(g) + 'vscode/' + p(S),
  1515. y = yield fetch(E)
  1516. if (y.ok) return yield y.json()
  1517. throw new Error(`${y.status} - ${y.statusText}`)
  1518. })
  1519. }
  1520. function h(v) {
  1521. return function (g, S) {
  1522. const E = Array.prototype.slice.call(arguments, 2)
  1523. return i(v[g], E)
  1524. }
  1525. }
  1526. function a(v, g, ...S) {
  1527. return i(g, S)
  1528. }
  1529. n.localize = a
  1530. function w(v) {}
  1531. n.getConfiguredDefaultLocale = w
  1532. function e(v) {
  1533. R = v
  1534. }
  1535. n.setPseudoTranslation = e
  1536. function b(v, g) {
  1537. var S
  1538. return {
  1539. localize: h(g[v]),
  1540. getConfiguredDefaultLocale:
  1541. (S = g.getConfiguredDefaultLocale) !== null && S !== void 0 ? S : (E) => {},
  1542. }
  1543. }
  1544. n.create = b
  1545. function f(v, g, S, E) {
  1546. var y
  1547. const _ = (y = E['vs/nls']) !== null && y !== void 0 ? y : {}
  1548. if (!v || v.length === 0)
  1549. return S({
  1550. localize: a,
  1551. getConfiguredDefaultLocale: () => {
  1552. var o
  1553. return (o = _.availableLanguages) === null || o === void 0 ? void 0 : o['*']
  1554. },
  1555. })
  1556. const d = _.availableLanguages ? s(_.availableLanguages, v) : null,
  1557. C = d === null || d === D
  1558. let r = '.nls'
  1559. C || (r = r + '.' + d)
  1560. const u = (o) => {
  1561. Array.isArray(o) ? (o.localize = h(o)) : (o.localize = h(o[v])),
  1562. (o.getConfiguredDefaultLocale = () => {
  1563. var c
  1564. return (c = _.availableLanguages) === null || c === void 0 ? void 0 : c['*']
  1565. }),
  1566. S(o)
  1567. }
  1568. typeof _.loadBundle == 'function'
  1569. ? _.loadBundle(v, d, (o, c) => {
  1570. o ? g([v + '.nls'], u) : u(c)
  1571. })
  1572. : _.translationServiceUrl && !C
  1573. ? be(this, void 0, void 0, function* () {
  1574. var o
  1575. try {
  1576. const c = yield L(_.translationServiceUrl, d, v)
  1577. return u(c)
  1578. } catch (c) {
  1579. if (!d.includes('-')) return console.error(c), g([v + '.nls'], u)
  1580. try {
  1581. const l = d.split('-')[0],
  1582. m = yield L(_.translationServiceUrl, l, v)
  1583. return (
  1584. ((o = _.availableLanguages) !== null && o !== void 0) ||
  1585. (_.availableLanguages = {}),
  1586. (_.availableLanguages['*'] = l),
  1587. u(m)
  1588. )
  1589. } catch (l) {
  1590. return console.error(l), g([v + '.nls'], u)
  1591. }
  1592. }
  1593. })
  1594. : g([v + r], u, (o) => {
  1595. if (r === '.nls') {
  1596. console.error('Failed trying to load default language strings', o)
  1597. return
  1598. }
  1599. console.error(
  1600. `Failed to load message bundle for language ${d}. Falling back to the default language:`,
  1601. o
  1602. ),
  1603. g([v + '.nls'], u)
  1604. })
  1605. }
  1606. n.load = f
  1607. }),
  1608. (function () {
  1609. var x, n
  1610. const R = globalThis.MonacoEnvironment,
  1611. D = R && R.baseUrl ? R.baseUrl : '../../../',
  1612. i =
  1613. typeof ((x = self.trustedTypes) === null || x === void 0 ? void 0 : x.createPolicy) ==
  1614. 'function'
  1615. ? (n = self.trustedTypes) === null || n === void 0
  1616. ? void 0
  1617. : n.createPolicy('amdLoader', {
  1618. createScriptURL: (e) => e,
  1619. createScript: (e, ...b) => {
  1620. const f = b.slice(0, -1).join(','),
  1621. v = b.pop().toString()
  1622. return `(function anonymous(${f}) { ${v}
  1623. })`
  1624. },
  1625. })
  1626. : void 0
  1627. function s() {
  1628. try {
  1629. return (
  1630. (i ? globalThis.eval(i.createScript('', 'true')) : new Function('true')).call(
  1631. globalThis
  1632. ),
  1633. !0
  1634. )
  1635. } catch {
  1636. return !1
  1637. }
  1638. }
  1639. function p() {
  1640. return new Promise((e, b) => {
  1641. if (typeof globalThis.define == 'function' && globalThis.define.amd) return e()
  1642. const f = D + 'vs/loader.js'
  1643. if (
  1644. !(
  1645. /^((http:)|(https:)|(file:))/.test(f) &&
  1646. f.substring(0, globalThis.origin.length) !== globalThis.origin
  1647. ) &&
  1648. s()
  1649. ) {
  1650. fetch(f)
  1651. .then((g) => {
  1652. if (g.status !== 200) throw new Error(g.statusText)
  1653. return g.text()
  1654. })
  1655. .then((g) => {
  1656. ;(g = `${g}
  1657. //# sourceURL=${f}`),
  1658. (i ? globalThis.eval(i.createScript('', g)) : new Function(g)).call(globalThis),
  1659. e()
  1660. })
  1661. .then(void 0, b)
  1662. return
  1663. }
  1664. i ? importScripts(i.createScriptURL(f)) : importScripts(f), e()
  1665. })
  1666. }
  1667. function L() {
  1668. require.config({
  1669. baseUrl: D,
  1670. catchError: !0,
  1671. trustedTypesPolicy: i,
  1672. amdModulesPattern: /^vs\//,
  1673. })
  1674. }
  1675. function h(e) {
  1676. p().then(() => {
  1677. L(),
  1678. require([e], function (b) {
  1679. setTimeout(function () {
  1680. const f = b.create((v, g) => {
  1681. globalThis.postMessage(v, g)
  1682. }, null)
  1683. for (globalThis.onmessage = (v) => f.onmessage(v.data, v.ports); w.length > 0; ) {
  1684. const v = w.shift()
  1685. f.onmessage(v.data, v.ports)
  1686. }
  1687. }, 0)
  1688. })
  1689. })
  1690. }
  1691. typeof globalThis.define == 'function' && globalThis.define.amd && L()
  1692. let a = !0
  1693. const w = []
  1694. globalThis.onmessage = (e) => {
  1695. if (!a) {
  1696. w.push(e)
  1697. return
  1698. }
  1699. ;(a = !1), h(e.data)
  1700. }
  1701. })(),
  1702. Q(Y[26], X([0, 1]), function (x, n) {
  1703. 'use strict'
  1704. Object.defineProperty(n, '__esModule', { value: !0 }),
  1705. (n.CallbackIterable =
  1706. n.ArrayQueue =
  1707. n.findMinBy =
  1708. n.findLastMaxBy =
  1709. n.findMaxBy =
  1710. n.numberComparator =
  1711. n.compareBy =
  1712. n.CompareResult =
  1713. n.splice =
  1714. n.insertInto =
  1715. n.asArray =
  1716. n.pushMany =
  1717. n.pushToEnd =
  1718. n.pushToStart =
  1719. n.arrayInsert =
  1720. n.range =
  1721. n.firstOrDefault =
  1722. n.lastIndex =
  1723. n.findLast =
  1724. n.distinct =
  1725. n.isNonEmptyArray =
  1726. n.isFalsyOrEmpty =
  1727. n.coalesceInPlace =
  1728. n.coalesce =
  1729. n.groupBy =
  1730. n.quickSelect =
  1731. n.findFirstInSorted =
  1732. n.binarySearch2 =
  1733. n.binarySearch =
  1734. n.removeFastWithoutKeepingOrder =
  1735. n.equals =
  1736. n.tail2 =
  1737. n.tail =
  1738. void 0)
  1739. function R(F, U = 0) {
  1740. return F[F.length - (1 + U)]
  1741. }
  1742. n.tail = R
  1743. function D(F) {
  1744. if (F.length === 0) throw new Error('Invalid tail call')
  1745. return [F.slice(0, F.length - 1), F[F.length - 1]]
  1746. }
  1747. n.tail2 = D
  1748. function i(F, U, T = (W, t) => W === t) {
  1749. if (F === U) return !0
  1750. if (!F || !U || F.length !== U.length) return !1
  1751. for (let W = 0, t = F.length; W < t; W++) if (!T(F[W], U[W])) return !1
  1752. return !0
  1753. }
  1754. n.equals = i
  1755. function s(F, U) {
  1756. const T = F.length - 1
  1757. U < T && (F[U] = F[T]), F.pop()
  1758. }
  1759. n.removeFastWithoutKeepingOrder = s
  1760. function p(F, U, T) {
  1761. return L(F.length, (W) => T(F[W], U))
  1762. }
  1763. n.binarySearch = p
  1764. function L(F, U) {
  1765. let T = 0,
  1766. W = F - 1
  1767. for (; T <= W; ) {
  1768. const t = ((T + W) / 2) | 0,
  1769. te = U(t)
  1770. if (te < 0) T = t + 1
  1771. else if (te > 0) W = t - 1
  1772. else return t
  1773. }
  1774. return -(T + 1)
  1775. }
  1776. n.binarySearch2 = L
  1777. function h(F, U) {
  1778. let T = 0,
  1779. W = F.length
  1780. if (W === 0) return 0
  1781. for (; T < W; ) {
  1782. const t = Math.floor((T + W) / 2)
  1783. U(F[t]) ? (W = t) : (T = t + 1)
  1784. }
  1785. return T
  1786. }
  1787. n.findFirstInSorted = h
  1788. function a(F, U, T) {
  1789. if (((F = F | 0), F >= U.length)) throw new TypeError('invalid index')
  1790. const W = U[Math.floor(U.length * Math.random())],
  1791. t = [],
  1792. te = [],
  1793. ie = []
  1794. for (const ue of U) {
  1795. const de = T(ue, W)
  1796. de < 0 ? t.push(ue) : de > 0 ? te.push(ue) : ie.push(ue)
  1797. }
  1798. return F < t.length
  1799. ? a(F, t, T)
  1800. : F < t.length + ie.length
  1801. ? ie[0]
  1802. : a(F - (t.length + ie.length), te, T)
  1803. }
  1804. n.quickSelect = a
  1805. function w(F, U) {
  1806. const T = []
  1807. let W
  1808. for (const t of F.slice(0).sort(U))
  1809. !W || U(W[0], t) !== 0 ? ((W = [t]), T.push(W)) : W.push(t)
  1810. return T
  1811. }
  1812. n.groupBy = w
  1813. function e(F) {
  1814. return F.filter((U) => !!U)
  1815. }
  1816. n.coalesce = e
  1817. function b(F) {
  1818. let U = 0
  1819. for (let T = 0; T < F.length; T++) F[T] && ((F[U] = F[T]), (U += 1))
  1820. F.length = U
  1821. }
  1822. n.coalesceInPlace = b
  1823. function f(F) {
  1824. return !Array.isArray(F) || F.length === 0
  1825. }
  1826. n.isFalsyOrEmpty = f
  1827. function v(F) {
  1828. return Array.isArray(F) && F.length > 0
  1829. }
  1830. n.isNonEmptyArray = v
  1831. function g(F, U = (T) => T) {
  1832. const T = new Set()
  1833. return F.filter((W) => {
  1834. const t = U(W)
  1835. return T.has(t) ? !1 : (T.add(t), !0)
  1836. })
  1837. }
  1838. n.distinct = g
  1839. function S(F, U) {
  1840. const T = E(F, U)
  1841. if (T !== -1) return F[T]
  1842. }
  1843. n.findLast = S
  1844. function E(F, U) {
  1845. for (let T = F.length - 1; T >= 0; T--) {
  1846. const W = F[T]
  1847. if (U(W)) return T
  1848. }
  1849. return -1
  1850. }
  1851. n.lastIndex = E
  1852. function y(F, U) {
  1853. return F.length > 0 ? F[0] : U
  1854. }
  1855. n.firstOrDefault = y
  1856. function _(F, U) {
  1857. let T = typeof U == 'number' ? F : 0
  1858. typeof U == 'number' ? (T = F) : ((T = 0), (U = F))
  1859. const W = []
  1860. if (T <= U) for (let t = T; t < U; t++) W.push(t)
  1861. else for (let t = T; t > U; t--) W.push(t)
  1862. return W
  1863. }
  1864. n.range = _
  1865. function d(F, U, T) {
  1866. const W = F.slice(0, U),
  1867. t = F.slice(U)
  1868. return W.concat(T, t)
  1869. }
  1870. n.arrayInsert = d
  1871. function C(F, U) {
  1872. const T = F.indexOf(U)
  1873. T > -1 && (F.splice(T, 1), F.unshift(U))
  1874. }
  1875. n.pushToStart = C
  1876. function r(F, U) {
  1877. const T = F.indexOf(U)
  1878. T > -1 && (F.splice(T, 1), F.push(U))
  1879. }
  1880. n.pushToEnd = r
  1881. function u(F, U) {
  1882. for (const T of U) F.push(T)
  1883. }
  1884. n.pushMany = u
  1885. function o(F) {
  1886. return Array.isArray(F) ? F : [F]
  1887. }
  1888. n.asArray = o
  1889. function c(F, U, T) {
  1890. const W = m(F, U),
  1891. t = F.length,
  1892. te = T.length
  1893. F.length = t + te
  1894. for (let ie = t - 1; ie >= W; ie--) F[ie + te] = F[ie]
  1895. for (let ie = 0; ie < te; ie++) F[ie + W] = T[ie]
  1896. }
  1897. n.insertInto = c
  1898. function l(F, U, T, W) {
  1899. const t = m(F, U),
  1900. te = F.splice(t, T)
  1901. return c(F, t, W), te
  1902. }
  1903. n.splice = l
  1904. function m(F, U) {
  1905. return U < 0 ? Math.max(U + F.length, 0) : Math.min(U, F.length)
  1906. }
  1907. var N
  1908. ;(function (F) {
  1909. function U(t) {
  1910. return t < 0
  1911. }
  1912. F.isLessThan = U
  1913. function T(t) {
  1914. return t > 0
  1915. }
  1916. F.isGreaterThan = T
  1917. function W(t) {
  1918. return t === 0
  1919. }
  1920. ;(F.isNeitherLessOrGreaterThan = W),
  1921. (F.greaterThan = 1),
  1922. (F.lessThan = -1),
  1923. (F.neitherLessOrGreaterThan = 0)
  1924. })((N = n.CompareResult || (n.CompareResult = {})))
  1925. function A(F, U) {
  1926. return (T, W) => U(F(T), F(W))
  1927. }
  1928. n.compareBy = A
  1929. const M = (F, U) => F - U
  1930. n.numberComparator = M
  1931. function k(F, U) {
  1932. if (F.length === 0) return
  1933. let T = F[0]
  1934. for (let W = 1; W < F.length; W++) {
  1935. const t = F[W]
  1936. U(t, T) > 0 && (T = t)
  1937. }
  1938. return T
  1939. }
  1940. n.findMaxBy = k
  1941. function q(F, U) {
  1942. if (F.length === 0) return
  1943. let T = F[0]
  1944. for (let W = 1; W < F.length; W++) {
  1945. const t = F[W]
  1946. U(t, T) >= 0 && (T = t)
  1947. }
  1948. return T
  1949. }
  1950. n.findLastMaxBy = q
  1951. function I(F, U) {
  1952. return k(F, (T, W) => -U(T, W))
  1953. }
  1954. n.findMinBy = I
  1955. class B {
  1956. constructor(U) {
  1957. ;(this.items = U), (this.firstIdx = 0), (this.lastIdx = this.items.length - 1)
  1958. }
  1959. get length() {
  1960. return this.lastIdx - this.firstIdx + 1
  1961. }
  1962. takeWhile(U) {
  1963. let T = this.firstIdx
  1964. for (; T < this.items.length && U(this.items[T]); ) T++
  1965. const W = T === this.firstIdx ? null : this.items.slice(this.firstIdx, T)
  1966. return (this.firstIdx = T), W
  1967. }
  1968. takeFromEndWhile(U) {
  1969. let T = this.lastIdx
  1970. for (; T >= 0 && U(this.items[T]); ) T--
  1971. const W = T === this.lastIdx ? null : this.items.slice(T + 1, this.lastIdx + 1)
  1972. return (this.lastIdx = T), W
  1973. }
  1974. peek() {
  1975. if (this.length !== 0) return this.items[this.firstIdx]
  1976. }
  1977. dequeue() {
  1978. const U = this.items[this.firstIdx]
  1979. return this.firstIdx++, U
  1980. }
  1981. takeCount(U) {
  1982. const T = this.items.slice(this.firstIdx, this.firstIdx + U)
  1983. return (this.firstIdx += U), T
  1984. }
  1985. }
  1986. n.ArrayQueue = B
  1987. class H {
  1988. constructor(U) {
  1989. this.iterate = U
  1990. }
  1991. toArray() {
  1992. const U = []
  1993. return this.iterate((T) => (U.push(T), !0)), U
  1994. }
  1995. filter(U) {
  1996. return new H((T) => this.iterate((W) => (U(W) ? T(W) : !0)))
  1997. }
  1998. map(U) {
  1999. return new H((T) => this.iterate((W) => T(U(W))))
  2000. }
  2001. findLast(U) {
  2002. let T
  2003. return this.iterate((W) => (U(W) && (T = W), !0)), T
  2004. }
  2005. findLastMaxBy(U) {
  2006. let T,
  2007. W = !0
  2008. return (
  2009. this.iterate((t) => ((W || N.isGreaterThan(U(t, T))) && ((W = !1), (T = t)), !0)), T
  2010. )
  2011. }
  2012. }
  2013. ;(H.empty = new H((F) => {})), (n.CallbackIterable = H)
  2014. }),
  2015. Q(Y[27], X([0, 1]), function (x, n) {
  2016. 'use strict'
  2017. Object.defineProperty(n, '__esModule', { value: !0 }),
  2018. (n.CachedFunction = n.LRUCachedFunction = void 0)
  2019. class R {
  2020. constructor(s) {
  2021. ;(this.fn = s), (this.lastCache = void 0), (this.lastArgKey = void 0)
  2022. }
  2023. get(s) {
  2024. const p = JSON.stringify(s)
  2025. return (
  2026. this.lastArgKey !== p && ((this.lastArgKey = p), (this.lastCache = this.fn(s))),
  2027. this.lastCache
  2028. )
  2029. }
  2030. }
  2031. n.LRUCachedFunction = R
  2032. class D {
  2033. get cachedValues() {
  2034. return this._map
  2035. }
  2036. constructor(s) {
  2037. ;(this.fn = s), (this._map = new Map())
  2038. }
  2039. get(s) {
  2040. if (this._map.has(s)) return this._map.get(s)
  2041. const p = this.fn(s)
  2042. return this._map.set(s, p), p
  2043. }
  2044. }
  2045. n.CachedFunction = D
  2046. }),
  2047. Q(Y[28], X([0, 1]), function (x, n) {
  2048. 'use strict'
  2049. Object.defineProperty(n, '__esModule', { value: !0 }), (n.DiffChange = void 0)
  2050. class R {
  2051. constructor(i, s, p, L) {
  2052. ;(this.originalStart = i),
  2053. (this.originalLength = s),
  2054. (this.modifiedStart = p),
  2055. (this.modifiedLength = L)
  2056. }
  2057. getOriginalEnd() {
  2058. return this.originalStart + this.originalLength
  2059. }
  2060. getModifiedEnd() {
  2061. return this.modifiedStart + this.modifiedLength
  2062. }
  2063. }
  2064. n.DiffChange = R
  2065. }),
  2066. Q(Y[4], X([0, 1]), function (x, n) {
  2067. 'use strict'
  2068. Object.defineProperty(n, '__esModule', { value: !0 }),
  2069. (n.BugIndicatingError =
  2070. n.ErrorNoTelemetry =
  2071. n.NotSupportedError =
  2072. n.illegalState =
  2073. n.illegalArgument =
  2074. n.canceled =
  2075. n.CancellationError =
  2076. n.isCancellationError =
  2077. n.transformErrorForSerialization =
  2078. n.onUnexpectedExternalError =
  2079. n.onUnexpectedError =
  2080. n.errorHandler =
  2081. n.ErrorHandler =
  2082. void 0)
  2083. class R {
  2084. constructor() {
  2085. ;(this.listeners = []),
  2086. (this.unexpectedErrorHandler = function (S) {
  2087. setTimeout(() => {
  2088. throw S.stack
  2089. ? f.isErrorNoTelemetry(S)
  2090. ? new f(
  2091. S.message +
  2092. `
  2093. ` +
  2094. S.stack
  2095. )
  2096. : new Error(
  2097. S.message +
  2098. `
  2099. ` +
  2100. S.stack
  2101. )
  2102. : S
  2103. }, 0)
  2104. })
  2105. }
  2106. emit(S) {
  2107. this.listeners.forEach((E) => {
  2108. E(S)
  2109. })
  2110. }
  2111. onUnexpectedError(S) {
  2112. this.unexpectedErrorHandler(S), this.emit(S)
  2113. }
  2114. onUnexpectedExternalError(S) {
  2115. this.unexpectedErrorHandler(S)
  2116. }
  2117. }
  2118. ;(n.ErrorHandler = R), (n.errorHandler = new R())
  2119. function D(g) {
  2120. L(g) || n.errorHandler.onUnexpectedError(g)
  2121. }
  2122. n.onUnexpectedError = D
  2123. function i(g) {
  2124. L(g) || n.errorHandler.onUnexpectedExternalError(g)
  2125. }
  2126. n.onUnexpectedExternalError = i
  2127. function s(g) {
  2128. if (g instanceof Error) {
  2129. const { name: S, message: E } = g,
  2130. y = g.stacktrace || g.stack
  2131. return {
  2132. $isError: !0,
  2133. name: S,
  2134. message: E,
  2135. stack: y,
  2136. noTelemetry: f.isErrorNoTelemetry(g),
  2137. }
  2138. }
  2139. return g
  2140. }
  2141. n.transformErrorForSerialization = s
  2142. const p = 'Canceled'
  2143. function L(g) {
  2144. return g instanceof h ? !0 : g instanceof Error && g.name === p && g.message === p
  2145. }
  2146. n.isCancellationError = L
  2147. class h extends Error {
  2148. constructor() {
  2149. super(p), (this.name = this.message)
  2150. }
  2151. }
  2152. n.CancellationError = h
  2153. function a() {
  2154. const g = new Error(p)
  2155. return (g.name = g.message), g
  2156. }
  2157. n.canceled = a
  2158. function w(g) {
  2159. return g ? new Error(`Illegal argument: ${g}`) : new Error('Illegal argument')
  2160. }
  2161. n.illegalArgument = w
  2162. function e(g) {
  2163. return g ? new Error(`Illegal state: ${g}`) : new Error('Illegal state')
  2164. }
  2165. n.illegalState = e
  2166. class b extends Error {
  2167. constructor(S) {
  2168. super('NotSupported'), S && (this.message = S)
  2169. }
  2170. }
  2171. n.NotSupportedError = b
  2172. class f extends Error {
  2173. constructor(S) {
  2174. super(S), (this.name = 'CodeExpectedError')
  2175. }
  2176. static fromError(S) {
  2177. if (S instanceof f) return S
  2178. const E = new f()
  2179. return (E.message = S.message), (E.stack = S.stack), E
  2180. }
  2181. static isErrorNoTelemetry(S) {
  2182. return S.name === 'CodeExpectedError'
  2183. }
  2184. }
  2185. n.ErrorNoTelemetry = f
  2186. class v extends Error {
  2187. constructor(S) {
  2188. super(S || 'An unexpected bug occurred.'), Object.setPrototypeOf(this, v.prototype)
  2189. debugger
  2190. }
  2191. }
  2192. n.BugIndicatingError = v
  2193. }),
  2194. Q(Y[10], X([0, 1, 4]), function (x, n, R) {
  2195. 'use strict'
  2196. Object.defineProperty(n, '__esModule', { value: !0 }),
  2197. (n.checkAdjacentItems = n.assertFn = n.assertNever = n.ok = void 0)
  2198. function D(L, h) {
  2199. if (!L) throw new Error(h ? `Assertion failed (${h})` : 'Assertion Failed')
  2200. }
  2201. n.ok = D
  2202. function i(L, h = 'Unreachable') {
  2203. throw new Error(h)
  2204. }
  2205. n.assertNever = i
  2206. function s(L) {
  2207. if (!L()) {
  2208. debugger
  2209. L(), (0, R.onUnexpectedError)(new R.BugIndicatingError('Assertion Failed'))
  2210. }
  2211. }
  2212. n.assertFn = s
  2213. function p(L, h) {
  2214. let a = 0
  2215. for (; a < L.length - 1; ) {
  2216. const w = L[a],
  2217. e = L[a + 1]
  2218. if (!h(w, e)) return !1
  2219. a++
  2220. }
  2221. return !0
  2222. }
  2223. n.checkAdjacentItems = p
  2224. }),
  2225. Q(Y[14], X([0, 1]), function (x, n) {
  2226. 'use strict'
  2227. Object.defineProperty(n, '__esModule', { value: !0 }), (n.once = void 0)
  2228. function R(D) {
  2229. const i = this
  2230. let s = !1,
  2231. p
  2232. return function () {
  2233. return s || ((s = !0), (p = D.apply(i, arguments))), p
  2234. }
  2235. }
  2236. n.once = R
  2237. }),
  2238. Q(Y[15], X([0, 1]), function (x, n) {
  2239. 'use strict'
  2240. Object.defineProperty(n, '__esModule', { value: !0 }), (n.Iterable = void 0)
  2241. var R
  2242. ;(function (D) {
  2243. function i(d) {
  2244. return d && typeof d == 'object' && typeof d[Symbol.iterator] == 'function'
  2245. }
  2246. D.is = i
  2247. const s = Object.freeze([])
  2248. function p() {
  2249. return s
  2250. }
  2251. D.empty = p
  2252. function* L(d) {
  2253. yield d
  2254. }
  2255. D.single = L
  2256. function h(d) {
  2257. return i(d) ? d : L(d)
  2258. }
  2259. D.wrap = h
  2260. function a(d) {
  2261. return d || s
  2262. }
  2263. D.from = a
  2264. function w(d) {
  2265. return !d || d[Symbol.iterator]().next().done === !0
  2266. }
  2267. D.isEmpty = w
  2268. function e(d) {
  2269. return d[Symbol.iterator]().next().value
  2270. }
  2271. D.first = e
  2272. function b(d, C) {
  2273. for (const r of d) if (C(r)) return !0
  2274. return !1
  2275. }
  2276. D.some = b
  2277. function f(d, C) {
  2278. for (const r of d) if (C(r)) return r
  2279. }
  2280. D.find = f
  2281. function* v(d, C) {
  2282. for (const r of d) C(r) && (yield r)
  2283. }
  2284. D.filter = v
  2285. function* g(d, C) {
  2286. let r = 0
  2287. for (const u of d) yield C(u, r++)
  2288. }
  2289. D.map = g
  2290. function* S(...d) {
  2291. for (const C of d) for (const r of C) yield r
  2292. }
  2293. D.concat = S
  2294. function E(d, C, r) {
  2295. let u = r
  2296. for (const o of d) u = C(u, o)
  2297. return u
  2298. }
  2299. D.reduce = E
  2300. function* y(d, C, r = d.length) {
  2301. for (
  2302. C < 0 && (C += d.length), r < 0 ? (r += d.length) : r > d.length && (r = d.length);
  2303. C < r;
  2304. C++
  2305. )
  2306. yield d[C]
  2307. }
  2308. D.slice = y
  2309. function _(d, C = Number.POSITIVE_INFINITY) {
  2310. const r = []
  2311. if (C === 0) return [r, d]
  2312. const u = d[Symbol.iterator]()
  2313. for (let o = 0; o < C; o++) {
  2314. const c = u.next()
  2315. if (c.done) return [r, D.empty()]
  2316. r.push(c.value)
  2317. }
  2318. return [
  2319. r,
  2320. {
  2321. [Symbol.iterator]() {
  2322. return u
  2323. },
  2324. },
  2325. ]
  2326. }
  2327. D.consume = _
  2328. })((R = n.Iterable || (n.Iterable = {})))
  2329. }),
  2330. Q(Y[29], X([0, 1]), function (x, n) {
  2331. 'use strict'
  2332. Object.defineProperty(n, '__esModule', { value: !0 }),
  2333. (n.KeyChord =
  2334. n.KeyCodeUtils =
  2335. n.IMMUTABLE_KEY_CODE_TO_CODE =
  2336. n.IMMUTABLE_CODE_TO_KEY_CODE =
  2337. n.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE =
  2338. n.EVENT_KEY_CODE_MAP =
  2339. void 0)
  2340. class R {
  2341. constructor() {
  2342. ;(this._keyCodeToStr = []), (this._strToKeyCode = Object.create(null))
  2343. }
  2344. define(b, f) {
  2345. ;(this._keyCodeToStr[b] = f), (this._strToKeyCode[f.toLowerCase()] = b)
  2346. }
  2347. keyCodeToStr(b) {
  2348. return this._keyCodeToStr[b]
  2349. }
  2350. strToKeyCode(b) {
  2351. return this._strToKeyCode[b.toLowerCase()] || 0
  2352. }
  2353. }
  2354. const D = new R(),
  2355. i = new R(),
  2356. s = new R()
  2357. ;(n.EVENT_KEY_CODE_MAP = new Array(230)), (n.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE = {})
  2358. const p = [],
  2359. L = Object.create(null),
  2360. h = Object.create(null)
  2361. ;(n.IMMUTABLE_CODE_TO_KEY_CODE = []), (n.IMMUTABLE_KEY_CODE_TO_CODE = [])
  2362. for (let e = 0; e <= 193; e++) n.IMMUTABLE_CODE_TO_KEY_CODE[e] = -1
  2363. for (let e = 0; e <= 127; e++) n.IMMUTABLE_KEY_CODE_TO_CODE[e] = -1
  2364. ;(function () {
  2365. const e = '',
  2366. b = [
  2367. [0, 1, 0, 'None', 0, 'unknown', 0, 'VK_UNKNOWN', e, e],
  2368. [0, 1, 1, 'Hyper', 0, e, 0, e, e, e],
  2369. [0, 1, 2, 'Super', 0, e, 0, e, e, e],
  2370. [0, 1, 3, 'Fn', 0, e, 0, e, e, e],
  2371. [0, 1, 4, 'FnLock', 0, e, 0, e, e, e],
  2372. [0, 1, 5, 'Suspend', 0, e, 0, e, e, e],
  2373. [0, 1, 6, 'Resume', 0, e, 0, e, e, e],
  2374. [0, 1, 7, 'Turbo', 0, e, 0, e, e, e],
  2375. [0, 1, 8, 'Sleep', 0, e, 0, 'VK_SLEEP', e, e],
  2376. [0, 1, 9, 'WakeUp', 0, e, 0, e, e, e],
  2377. [31, 0, 10, 'KeyA', 31, 'A', 65, 'VK_A', e, e],
  2378. [32, 0, 11, 'KeyB', 32, 'B', 66, 'VK_B', e, e],
  2379. [33, 0, 12, 'KeyC', 33, 'C', 67, 'VK_C', e, e],
  2380. [34, 0, 13, 'KeyD', 34, 'D', 68, 'VK_D', e, e],
  2381. [35, 0, 14, 'KeyE', 35, 'E', 69, 'VK_E', e, e],
  2382. [36, 0, 15, 'KeyF', 36, 'F', 70, 'VK_F', e, e],
  2383. [37, 0, 16, 'KeyG', 37, 'G', 71, 'VK_G', e, e],
  2384. [38, 0, 17, 'KeyH', 38, 'H', 72, 'VK_H', e, e],
  2385. [39, 0, 18, 'KeyI', 39, 'I', 73, 'VK_I', e, e],
  2386. [40, 0, 19, 'KeyJ', 40, 'J', 74, 'VK_J', e, e],
  2387. [41, 0, 20, 'KeyK', 41, 'K', 75, 'VK_K', e, e],
  2388. [42, 0, 21, 'KeyL', 42, 'L', 76, 'VK_L', e, e],
  2389. [43, 0, 22, 'KeyM', 43, 'M', 77, 'VK_M', e, e],
  2390. [44, 0, 23, 'KeyN', 44, 'N', 78, 'VK_N', e, e],
  2391. [45, 0, 24, 'KeyO', 45, 'O', 79, 'VK_O', e, e],
  2392. [46, 0, 25, 'KeyP', 46, 'P', 80, 'VK_P', e, e],
  2393. [47, 0, 26, 'KeyQ', 47, 'Q', 81, 'VK_Q', e, e],
  2394. [48, 0, 27, 'KeyR', 48, 'R', 82, 'VK_R', e, e],
  2395. [49, 0, 28, 'KeyS', 49, 'S', 83, 'VK_S', e, e],
  2396. [50, 0, 29, 'KeyT', 50, 'T', 84, 'VK_T', e, e],
  2397. [51, 0, 30, 'KeyU', 51, 'U', 85, 'VK_U', e, e],
  2398. [52, 0, 31, 'KeyV', 52, 'V', 86, 'VK_V', e, e],
  2399. [53, 0, 32, 'KeyW', 53, 'W', 87, 'VK_W', e, e],
  2400. [54, 0, 33, 'KeyX', 54, 'X', 88, 'VK_X', e, e],
  2401. [55, 0, 34, 'KeyY', 55, 'Y', 89, 'VK_Y', e, e],
  2402. [56, 0, 35, 'KeyZ', 56, 'Z', 90, 'VK_Z', e, e],
  2403. [22, 0, 36, 'Digit1', 22, '1', 49, 'VK_1', e, e],
  2404. [23, 0, 37, 'Digit2', 23, '2', 50, 'VK_2', e, e],
  2405. [24, 0, 38, 'Digit3', 24, '3', 51, 'VK_3', e, e],
  2406. [25, 0, 39, 'Digit4', 25, '4', 52, 'VK_4', e, e],
  2407. [26, 0, 40, 'Digit5', 26, '5', 53, 'VK_5', e, e],
  2408. [27, 0, 41, 'Digit6', 27, '6', 54, 'VK_6', e, e],
  2409. [28, 0, 42, 'Digit7', 28, '7', 55, 'VK_7', e, e],
  2410. [29, 0, 43, 'Digit8', 29, '8', 56, 'VK_8', e, e],
  2411. [30, 0, 44, 'Digit9', 30, '9', 57, 'VK_9', e, e],
  2412. [21, 0, 45, 'Digit0', 21, '0', 48, 'VK_0', e, e],
  2413. [3, 1, 46, 'Enter', 3, 'Enter', 13, 'VK_RETURN', e, e],
  2414. [9, 1, 47, 'Escape', 9, 'Escape', 27, 'VK_ESCAPE', e, e],
  2415. [1, 1, 48, 'Backspace', 1, 'Backspace', 8, 'VK_BACK', e, e],
  2416. [2, 1, 49, 'Tab', 2, 'Tab', 9, 'VK_TAB', e, e],
  2417. [10, 1, 50, 'Space', 10, 'Space', 32, 'VK_SPACE', e, e],
  2418. [83, 0, 51, 'Minus', 83, '-', 189, 'VK_OEM_MINUS', '-', 'OEM_MINUS'],
  2419. [81, 0, 52, 'Equal', 81, '=', 187, 'VK_OEM_PLUS', '=', 'OEM_PLUS'],
  2420. [87, 0, 53, 'BracketLeft', 87, '[', 219, 'VK_OEM_4', '[', 'OEM_4'],
  2421. [89, 0, 54, 'BracketRight', 89, ']', 221, 'VK_OEM_6', ']', 'OEM_6'],
  2422. [88, 0, 55, 'Backslash', 88, '\\', 220, 'VK_OEM_5', '\\', 'OEM_5'],
  2423. [0, 0, 56, 'IntlHash', 0, e, 0, e, e, e],
  2424. [80, 0, 57, 'Semicolon', 80, ';', 186, 'VK_OEM_1', ';', 'OEM_1'],
  2425. [90, 0, 58, 'Quote', 90, "'", 222, 'VK_OEM_7', "'", 'OEM_7'],
  2426. [86, 0, 59, 'Backquote', 86, '`', 192, 'VK_OEM_3', '`', 'OEM_3'],
  2427. [82, 0, 60, 'Comma', 82, ',', 188, 'VK_OEM_COMMA', ',', 'OEM_COMMA'],
  2428. [84, 0, 61, 'Period', 84, '.', 190, 'VK_OEM_PERIOD', '.', 'OEM_PERIOD'],
  2429. [85, 0, 62, 'Slash', 85, '/', 191, 'VK_OEM_2', '/', 'OEM_2'],
  2430. [8, 1, 63, 'CapsLock', 8, 'CapsLock', 20, 'VK_CAPITAL', e, e],
  2431. [59, 1, 64, 'F1', 59, 'F1', 112, 'VK_F1', e, e],
  2432. [60, 1, 65, 'F2', 60, 'F2', 113, 'VK_F2', e, e],
  2433. [61, 1, 66, 'F3', 61, 'F3', 114, 'VK_F3', e, e],
  2434. [62, 1, 67, 'F4', 62, 'F4', 115, 'VK_F4', e, e],
  2435. [63, 1, 68, 'F5', 63, 'F5', 116, 'VK_F5', e, e],
  2436. [64, 1, 69, 'F6', 64, 'F6', 117, 'VK_F6', e, e],
  2437. [65, 1, 70, 'F7', 65, 'F7', 118, 'VK_F7', e, e],
  2438. [66, 1, 71, 'F8', 66, 'F8', 119, 'VK_F8', e, e],
  2439. [67, 1, 72, 'F9', 67, 'F9', 120, 'VK_F9', e, e],
  2440. [68, 1, 73, 'F10', 68, 'F10', 121, 'VK_F10', e, e],
  2441. [69, 1, 74, 'F11', 69, 'F11', 122, 'VK_F11', e, e],
  2442. [70, 1, 75, 'F12', 70, 'F12', 123, 'VK_F12', e, e],
  2443. [0, 1, 76, 'PrintScreen', 0, e, 0, e, e, e],
  2444. [79, 1, 77, 'ScrollLock', 79, 'ScrollLock', 145, 'VK_SCROLL', e, e],
  2445. [7, 1, 78, 'Pause', 7, 'PauseBreak', 19, 'VK_PAUSE', e, e],
  2446. [19, 1, 79, 'Insert', 19, 'Insert', 45, 'VK_INSERT', e, e],
  2447. [14, 1, 80, 'Home', 14, 'Home', 36, 'VK_HOME', e, e],
  2448. [11, 1, 81, 'PageUp', 11, 'PageUp', 33, 'VK_PRIOR', e, e],
  2449. [20, 1, 82, 'Delete', 20, 'Delete', 46, 'VK_DELETE', e, e],
  2450. [13, 1, 83, 'End', 13, 'End', 35, 'VK_END', e, e],
  2451. [12, 1, 84, 'PageDown', 12, 'PageDown', 34, 'VK_NEXT', e, e],
  2452. [17, 1, 85, 'ArrowRight', 17, 'RightArrow', 39, 'VK_RIGHT', 'Right', e],
  2453. [15, 1, 86, 'ArrowLeft', 15, 'LeftArrow', 37, 'VK_LEFT', 'Left', e],
  2454. [18, 1, 87, 'ArrowDown', 18, 'DownArrow', 40, 'VK_DOWN', 'Down', e],
  2455. [16, 1, 88, 'ArrowUp', 16, 'UpArrow', 38, 'VK_UP', 'Up', e],
  2456. [78, 1, 89, 'NumLock', 78, 'NumLock', 144, 'VK_NUMLOCK', e, e],
  2457. [108, 1, 90, 'NumpadDivide', 108, 'NumPad_Divide', 111, 'VK_DIVIDE', e, e],
  2458. [103, 1, 91, 'NumpadMultiply', 103, 'NumPad_Multiply', 106, 'VK_MULTIPLY', e, e],
  2459. [106, 1, 92, 'NumpadSubtract', 106, 'NumPad_Subtract', 109, 'VK_SUBTRACT', e, e],
  2460. [104, 1, 93, 'NumpadAdd', 104, 'NumPad_Add', 107, 'VK_ADD', e, e],
  2461. [3, 1, 94, 'NumpadEnter', 3, e, 0, e, e, e],
  2462. [94, 1, 95, 'Numpad1', 94, 'NumPad1', 97, 'VK_NUMPAD1', e, e],
  2463. [95, 1, 96, 'Numpad2', 95, 'NumPad2', 98, 'VK_NUMPAD2', e, e],
  2464. [96, 1, 97, 'Numpad3', 96, 'NumPad3', 99, 'VK_NUMPAD3', e, e],
  2465. [97, 1, 98, 'Numpad4', 97, 'NumPad4', 100, 'VK_NUMPAD4', e, e],
  2466. [98, 1, 99, 'Numpad5', 98, 'NumPad5', 101, 'VK_NUMPAD5', e, e],
  2467. [99, 1, 100, 'Numpad6', 99, 'NumPad6', 102, 'VK_NUMPAD6', e, e],
  2468. [100, 1, 101, 'Numpad7', 100, 'NumPad7', 103, 'VK_NUMPAD7', e, e],
  2469. [101, 1, 102, 'Numpad8', 101, 'NumPad8', 104, 'VK_NUMPAD8', e, e],
  2470. [102, 1, 103, 'Numpad9', 102, 'NumPad9', 105, 'VK_NUMPAD9', e, e],
  2471. [93, 1, 104, 'Numpad0', 93, 'NumPad0', 96, 'VK_NUMPAD0', e, e],
  2472. [107, 1, 105, 'NumpadDecimal', 107, 'NumPad_Decimal', 110, 'VK_DECIMAL', e, e],
  2473. [92, 0, 106, 'IntlBackslash', 92, 'OEM_102', 226, 'VK_OEM_102', e, e],
  2474. [58, 1, 107, 'ContextMenu', 58, 'ContextMenu', 93, e, e, e],
  2475. [0, 1, 108, 'Power', 0, e, 0, e, e, e],
  2476. [0, 1, 109, 'NumpadEqual', 0, e, 0, e, e, e],
  2477. [71, 1, 110, 'F13', 71, 'F13', 124, 'VK_F13', e, e],
  2478. [72, 1, 111, 'F14', 72, 'F14', 125, 'VK_F14', e, e],
  2479. [73, 1, 112, 'F15', 73, 'F15', 126, 'VK_F15', e, e],
  2480. [74, 1, 113, 'F16', 74, 'F16', 127, 'VK_F16', e, e],
  2481. [75, 1, 114, 'F17', 75, 'F17', 128, 'VK_F17', e, e],
  2482. [76, 1, 115, 'F18', 76, 'F18', 129, 'VK_F18', e, e],
  2483. [77, 1, 116, 'F19', 77, 'F19', 130, 'VK_F19', e, e],
  2484. [0, 1, 117, 'F20', 0, e, 0, 'VK_F20', e, e],
  2485. [0, 1, 118, 'F21', 0, e, 0, 'VK_F21', e, e],
  2486. [0, 1, 119, 'F22', 0, e, 0, 'VK_F22', e, e],
  2487. [0, 1, 120, 'F23', 0, e, 0, 'VK_F23', e, e],
  2488. [0, 1, 121, 'F24', 0, e, 0, 'VK_F24', e, e],
  2489. [0, 1, 122, 'Open', 0, e, 0, e, e, e],
  2490. [0, 1, 123, 'Help', 0, e, 0, e, e, e],
  2491. [0, 1, 124, 'Select', 0, e, 0, e, e, e],
  2492. [0, 1, 125, 'Again', 0, e, 0, e, e, e],
  2493. [0, 1, 126, 'Undo', 0, e, 0, e, e, e],
  2494. [0, 1, 127, 'Cut', 0, e, 0, e, e, e],
  2495. [0, 1, 128, 'Copy', 0, e, 0, e, e, e],
  2496. [0, 1, 129, 'Paste', 0, e, 0, e, e, e],
  2497. [0, 1, 130, 'Find', 0, e, 0, e, e, e],
  2498. [0, 1, 131, 'AudioVolumeMute', 112, 'AudioVolumeMute', 173, 'VK_VOLUME_MUTE', e, e],
  2499. [0, 1, 132, 'AudioVolumeUp', 113, 'AudioVolumeUp', 175, 'VK_VOLUME_UP', e, e],
  2500. [0, 1, 133, 'AudioVolumeDown', 114, 'AudioVolumeDown', 174, 'VK_VOLUME_DOWN', e, e],
  2501. [105, 1, 134, 'NumpadComma', 105, 'NumPad_Separator', 108, 'VK_SEPARATOR', e, e],
  2502. [110, 0, 135, 'IntlRo', 110, 'ABNT_C1', 193, 'VK_ABNT_C1', e, e],
  2503. [0, 1, 136, 'KanaMode', 0, e, 0, e, e, e],
  2504. [0, 0, 137, 'IntlYen', 0, e, 0, e, e, e],
  2505. [0, 1, 138, 'Convert', 0, e, 0, e, e, e],
  2506. [0, 1, 139, 'NonConvert', 0, e, 0, e, e, e],
  2507. [0, 1, 140, 'Lang1', 0, e, 0, e, e, e],
  2508. [0, 1, 141, 'Lang2', 0, e, 0, e, e, e],
  2509. [0, 1, 142, 'Lang3', 0, e, 0, e, e, e],
  2510. [0, 1, 143, 'Lang4', 0, e, 0, e, e, e],
  2511. [0, 1, 144, 'Lang5', 0, e, 0, e, e, e],
  2512. [0, 1, 145, 'Abort', 0, e, 0, e, e, e],
  2513. [0, 1, 146, 'Props', 0, e, 0, e, e, e],
  2514. [0, 1, 147, 'NumpadParenLeft', 0, e, 0, e, e, e],
  2515. [0, 1, 148, 'NumpadParenRight', 0, e, 0, e, e, e],
  2516. [0, 1, 149, 'NumpadBackspace', 0, e, 0, e, e, e],
  2517. [0, 1, 150, 'NumpadMemoryStore', 0, e, 0, e, e, e],
  2518. [0, 1, 151, 'NumpadMemoryRecall', 0, e, 0, e, e, e],
  2519. [0, 1, 152, 'NumpadMemoryClear', 0, e, 0, e, e, e],
  2520. [0, 1, 153, 'NumpadMemoryAdd', 0, e, 0, e, e, e],
  2521. [0, 1, 154, 'NumpadMemorySubtract', 0, e, 0, e, e, e],
  2522. [0, 1, 155, 'NumpadClear', 126, 'Clear', 12, 'VK_CLEAR', e, e],
  2523. [0, 1, 156, 'NumpadClearEntry', 0, e, 0, e, e, e],
  2524. [5, 1, 0, e, 5, 'Ctrl', 17, 'VK_CONTROL', e, e],
  2525. [4, 1, 0, e, 4, 'Shift', 16, 'VK_SHIFT', e, e],
  2526. [6, 1, 0, e, 6, 'Alt', 18, 'VK_MENU', e, e],
  2527. [57, 1, 0, e, 57, 'Meta', 91, 'VK_COMMAND', e, e],
  2528. [5, 1, 157, 'ControlLeft', 5, e, 0, 'VK_LCONTROL', e, e],
  2529. [4, 1, 158, 'ShiftLeft', 4, e, 0, 'VK_LSHIFT', e, e],
  2530. [6, 1, 159, 'AltLeft', 6, e, 0, 'VK_LMENU', e, e],
  2531. [57, 1, 160, 'MetaLeft', 57, e, 0, 'VK_LWIN', e, e],
  2532. [5, 1, 161, 'ControlRight', 5, e, 0, 'VK_RCONTROL', e, e],
  2533. [4, 1, 162, 'ShiftRight', 4, e, 0, 'VK_RSHIFT', e, e],
  2534. [6, 1, 163, 'AltRight', 6, e, 0, 'VK_RMENU', e, e],
  2535. [57, 1, 164, 'MetaRight', 57, e, 0, 'VK_RWIN', e, e],
  2536. [0, 1, 165, 'BrightnessUp', 0, e, 0, e, e, e],
  2537. [0, 1, 166, 'BrightnessDown', 0, e, 0, e, e, e],
  2538. [0, 1, 167, 'MediaPlay', 0, e, 0, e, e, e],
  2539. [0, 1, 168, 'MediaRecord', 0, e, 0, e, e, e],
  2540. [0, 1, 169, 'MediaFastForward', 0, e, 0, e, e, e],
  2541. [0, 1, 170, 'MediaRewind', 0, e, 0, e, e, e],
  2542. [
  2543. 114,
  2544. 1,
  2545. 171,
  2546. 'MediaTrackNext',
  2547. 119,
  2548. 'MediaTrackNext',
  2549. 176,
  2550. 'VK_MEDIA_NEXT_TRACK',
  2551. e,
  2552. e,
  2553. ],
  2554. [
  2555. 115,
  2556. 1,
  2557. 172,
  2558. 'MediaTrackPrevious',
  2559. 120,
  2560. 'MediaTrackPrevious',
  2561. 177,
  2562. 'VK_MEDIA_PREV_TRACK',
  2563. e,
  2564. e,
  2565. ],
  2566. [116, 1, 173, 'MediaStop', 121, 'MediaStop', 178, 'VK_MEDIA_STOP', e, e],
  2567. [0, 1, 174, 'Eject', 0, e, 0, e, e, e],
  2568. [
  2569. 117,
  2570. 1,
  2571. 175,
  2572. 'MediaPlayPause',
  2573. 122,
  2574. 'MediaPlayPause',
  2575. 179,
  2576. 'VK_MEDIA_PLAY_PAUSE',
  2577. e,
  2578. e,
  2579. ],
  2580. [
  2581. 0,
  2582. 1,
  2583. 176,
  2584. 'MediaSelect',
  2585. 123,
  2586. 'LaunchMediaPlayer',
  2587. 181,
  2588. 'VK_MEDIA_LAUNCH_MEDIA_SELECT',
  2589. e,
  2590. e,
  2591. ],
  2592. [0, 1, 177, 'LaunchMail', 124, 'LaunchMail', 180, 'VK_MEDIA_LAUNCH_MAIL', e, e],
  2593. [0, 1, 178, 'LaunchApp2', 125, 'LaunchApp2', 183, 'VK_MEDIA_LAUNCH_APP2', e, e],
  2594. [0, 1, 179, 'LaunchApp1', 0, e, 0, 'VK_MEDIA_LAUNCH_APP1', e, e],
  2595. [0, 1, 180, 'SelectTask', 0, e, 0, e, e, e],
  2596. [0, 1, 181, 'LaunchScreenSaver', 0, e, 0, e, e, e],
  2597. [0, 1, 182, 'BrowserSearch', 115, 'BrowserSearch', 170, 'VK_BROWSER_SEARCH', e, e],
  2598. [0, 1, 183, 'BrowserHome', 116, 'BrowserHome', 172, 'VK_BROWSER_HOME', e, e],
  2599. [112, 1, 184, 'BrowserBack', 117, 'BrowserBack', 166, 'VK_BROWSER_BACK', e, e],
  2600. [113, 1, 185, 'BrowserForward', 118, 'BrowserForward', 167, 'VK_BROWSER_FORWARD', e, e],
  2601. [0, 1, 186, 'BrowserStop', 0, e, 0, 'VK_BROWSER_STOP', e, e],
  2602. [0, 1, 187, 'BrowserRefresh', 0, e, 0, 'VK_BROWSER_REFRESH', e, e],
  2603. [0, 1, 188, 'BrowserFavorites', 0, e, 0, 'VK_BROWSER_FAVORITES', e, e],
  2604. [0, 1, 189, 'ZoomToggle', 0, e, 0, e, e, e],
  2605. [0, 1, 190, 'MailReply', 0, e, 0, e, e, e],
  2606. [0, 1, 191, 'MailForward', 0, e, 0, e, e, e],
  2607. [0, 1, 192, 'MailSend', 0, e, 0, e, e, e],
  2608. [109, 1, 0, e, 109, 'KeyInComposition', 229, e, e, e],
  2609. [111, 1, 0, e, 111, 'ABNT_C2', 194, 'VK_ABNT_C2', e, e],
  2610. [91, 1, 0, e, 91, 'OEM_8', 223, 'VK_OEM_8', e, e],
  2611. [0, 1, 0, e, 0, e, 0, 'VK_KANA', e, e],
  2612. [0, 1, 0, e, 0, e, 0, 'VK_HANGUL', e, e],
  2613. [0, 1, 0, e, 0, e, 0, 'VK_JUNJA', e, e],
  2614. [0, 1, 0, e, 0, e, 0, 'VK_FINAL', e, e],
  2615. [0, 1, 0, e, 0, e, 0, 'VK_HANJA', e, e],
  2616. [0, 1, 0, e, 0, e, 0, 'VK_KANJI', e, e],
  2617. [0, 1, 0, e, 0, e, 0, 'VK_CONVERT', e, e],
  2618. [0, 1, 0, e, 0, e, 0, 'VK_NONCONVERT', e, e],
  2619. [0, 1, 0, e, 0, e, 0, 'VK_ACCEPT', e, e],
  2620. [0, 1, 0, e, 0, e, 0, 'VK_MODECHANGE', e, e],
  2621. [0, 1, 0, e, 0, e, 0, 'VK_SELECT', e, e],
  2622. [0, 1, 0, e, 0, e, 0, 'VK_PRINT', e, e],
  2623. [0, 1, 0, e, 0, e, 0, 'VK_EXECUTE', e, e],
  2624. [0, 1, 0, e, 0, e, 0, 'VK_SNAPSHOT', e, e],
  2625. [0, 1, 0, e, 0, e, 0, 'VK_HELP', e, e],
  2626. [0, 1, 0, e, 0, e, 0, 'VK_APPS', e, e],
  2627. [0, 1, 0, e, 0, e, 0, 'VK_PROCESSKEY', e, e],
  2628. [0, 1, 0, e, 0, e, 0, 'VK_PACKET', e, e],
  2629. [0, 1, 0, e, 0, e, 0, 'VK_DBE_SBCSCHAR', e, e],
  2630. [0, 1, 0, e, 0, e, 0, 'VK_DBE_DBCSCHAR', e, e],
  2631. [0, 1, 0, e, 0, e, 0, 'VK_ATTN', e, e],
  2632. [0, 1, 0, e, 0, e, 0, 'VK_CRSEL', e, e],
  2633. [0, 1, 0, e, 0, e, 0, 'VK_EXSEL', e, e],
  2634. [0, 1, 0, e, 0, e, 0, 'VK_EREOF', e, e],
  2635. [0, 1, 0, e, 0, e, 0, 'VK_PLAY', e, e],
  2636. [0, 1, 0, e, 0, e, 0, 'VK_ZOOM', e, e],
  2637. [0, 1, 0, e, 0, e, 0, 'VK_NONAME', e, e],
  2638. [0, 1, 0, e, 0, e, 0, 'VK_PA1', e, e],
  2639. [0, 1, 0, e, 0, e, 0, 'VK_OEM_CLEAR', e, e],
  2640. ],
  2641. f = [],
  2642. v = []
  2643. for (const g of b) {
  2644. const [S, E, y, _, d, C, r, u, o, c] = g
  2645. if (
  2646. (v[y] ||
  2647. ((v[y] = !0),
  2648. (p[y] = _),
  2649. (L[_] = y),
  2650. (h[_.toLowerCase()] = y),
  2651. E &&
  2652. ((n.IMMUTABLE_CODE_TO_KEY_CODE[y] = d),
  2653. d !== 0 &&
  2654. d !== 3 &&
  2655. d !== 5 &&
  2656. d !== 4 &&
  2657. d !== 6 &&
  2658. d !== 57 &&
  2659. (n.IMMUTABLE_KEY_CODE_TO_CODE[d] = y))),
  2660. !f[d])
  2661. ) {
  2662. if (((f[d] = !0), !C))
  2663. throw new Error(
  2664. `String representation missing for key code ${d} around scan code ${_}`
  2665. )
  2666. D.define(d, C), i.define(d, o || C), s.define(d, c || o || C)
  2667. }
  2668. r && (n.EVENT_KEY_CODE_MAP[r] = d), u && (n.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[u] = d)
  2669. }
  2670. n.IMMUTABLE_KEY_CODE_TO_CODE[3] = 46
  2671. })()
  2672. var a
  2673. ;(function (e) {
  2674. function b(y) {
  2675. return D.keyCodeToStr(y)
  2676. }
  2677. e.toString = b
  2678. function f(y) {
  2679. return D.strToKeyCode(y)
  2680. }
  2681. e.fromString = f
  2682. function v(y) {
  2683. return i.keyCodeToStr(y)
  2684. }
  2685. e.toUserSettingsUS = v
  2686. function g(y) {
  2687. return s.keyCodeToStr(y)
  2688. }
  2689. e.toUserSettingsGeneral = g
  2690. function S(y) {
  2691. return i.strToKeyCode(y) || s.strToKeyCode(y)
  2692. }
  2693. e.fromUserSettings = S
  2694. function E(y) {
  2695. if (y >= 93 && y <= 108) return null
  2696. switch (y) {
  2697. case 16:
  2698. return 'Up'
  2699. case 18:
  2700. return 'Down'
  2701. case 15:
  2702. return 'Left'
  2703. case 17:
  2704. return 'Right'
  2705. }
  2706. return D.keyCodeToStr(y)
  2707. }
  2708. e.toElectronAccelerator = E
  2709. })((a = n.KeyCodeUtils || (n.KeyCodeUtils = {})))
  2710. function w(e, b) {
  2711. const f = ((b & 65535) << 16) >>> 0
  2712. return (e | f) >>> 0
  2713. }
  2714. n.KeyChord = w
  2715. }),
  2716. Q(Y[30], X([0, 1]), function (x, n) {
  2717. 'use strict'
  2718. Object.defineProperty(n, '__esModule', { value: !0 }), (n.Lazy = void 0)
  2719. class R {
  2720. constructor(i) {
  2721. ;(this.executor = i), (this._didRun = !1)
  2722. }
  2723. get value() {
  2724. if (!this._didRun)
  2725. try {
  2726. this._value = this.executor()
  2727. } catch (i) {
  2728. this._error = i
  2729. } finally {
  2730. this._didRun = !0
  2731. }
  2732. if (this._error) throw this._error
  2733. return this._value
  2734. }
  2735. get rawValue() {
  2736. return this._value
  2737. }
  2738. }
  2739. n.Lazy = R
  2740. }),
  2741. Q(Y[11], X([0, 1, 14, 15]), function (x, n, R, D) {
  2742. 'use strict'
  2743. Object.defineProperty(n, '__esModule', { value: !0 }),
  2744. (n.DisposableMap =
  2745. n.ImmortalReference =
  2746. n.SafeDisposable =
  2747. n.RefCountedDisposable =
  2748. n.MutableDisposable =
  2749. n.Disposable =
  2750. n.DisposableStore =
  2751. n.toDisposable =
  2752. n.combinedDisposable =
  2753. n.dispose =
  2754. n.isDisposable =
  2755. n.markAsSingleton =
  2756. n.setDisposableTracker =
  2757. void 0)
  2758. const i = !1
  2759. let s = null
  2760. function p(u) {
  2761. s = u
  2762. }
  2763. if (((n.setDisposableTracker = p), i)) {
  2764. const u = '__is_disposable_tracked__'
  2765. p(
  2766. new (class {
  2767. trackDisposable(o) {
  2768. const c = new Error('Potentially leaked disposable').stack
  2769. setTimeout(() => {
  2770. o[u] || console.log(c)
  2771. }, 3e3)
  2772. }
  2773. setParent(o, c) {
  2774. if (o && o !== E.None)
  2775. try {
  2776. o[u] = !0
  2777. } catch {}
  2778. }
  2779. markAsDisposed(o) {
  2780. if (o && o !== E.None)
  2781. try {
  2782. o[u] = !0
  2783. } catch {}
  2784. }
  2785. markAsSingleton(o) {}
  2786. })()
  2787. )
  2788. }
  2789. function L(u) {
  2790. return s?.trackDisposable(u), u
  2791. }
  2792. function h(u) {
  2793. s?.markAsDisposed(u)
  2794. }
  2795. function a(u, o) {
  2796. s?.setParent(u, o)
  2797. }
  2798. function w(u, o) {
  2799. if (!!s) for (const c of u) s.setParent(c, o)
  2800. }
  2801. function e(u) {
  2802. return s?.markAsSingleton(u), u
  2803. }
  2804. n.markAsSingleton = e
  2805. function b(u) {
  2806. return typeof u.dispose == 'function' && u.dispose.length === 0
  2807. }
  2808. n.isDisposable = b
  2809. function f(u) {
  2810. if (D.Iterable.is(u)) {
  2811. const o = []
  2812. for (const c of u)
  2813. if (c)
  2814. try {
  2815. c.dispose()
  2816. } catch (l) {
  2817. o.push(l)
  2818. }
  2819. if (o.length === 1) throw o[0]
  2820. if (o.length > 1)
  2821. throw new AggregateError(o, 'Encountered errors while disposing of store')
  2822. return Array.isArray(u) ? [] : u
  2823. } else if (u) return u.dispose(), u
  2824. }
  2825. n.dispose = f
  2826. function v(...u) {
  2827. const o = g(() => f(u))
  2828. return w(u, o), o
  2829. }
  2830. n.combinedDisposable = v
  2831. function g(u) {
  2832. const o = L({
  2833. dispose: (0, R.once)(() => {
  2834. h(o), u()
  2835. }),
  2836. })
  2837. return o
  2838. }
  2839. n.toDisposable = g
  2840. class S {
  2841. constructor() {
  2842. ;(this._toDispose = new Set()), (this._isDisposed = !1), L(this)
  2843. }
  2844. dispose() {
  2845. this._isDisposed || (h(this), (this._isDisposed = !0), this.clear())
  2846. }
  2847. get isDisposed() {
  2848. return this._isDisposed
  2849. }
  2850. clear() {
  2851. if (this._toDispose.size !== 0)
  2852. try {
  2853. f(this._toDispose)
  2854. } finally {
  2855. this._toDispose.clear()
  2856. }
  2857. }
  2858. add(o) {
  2859. if (!o) return o
  2860. if (o === this) throw new Error('Cannot register a disposable on itself!')
  2861. return (
  2862. a(o, this),
  2863. this._isDisposed
  2864. ? S.DISABLE_DISPOSED_WARNING ||
  2865. console.warn(
  2866. new Error(
  2867. 'Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!'
  2868. ).stack
  2869. )
  2870. : this._toDispose.add(o),
  2871. o
  2872. )
  2873. }
  2874. }
  2875. ;(S.DISABLE_DISPOSED_WARNING = !1), (n.DisposableStore = S)
  2876. class E {
  2877. constructor() {
  2878. ;(this._store = new S()), L(this), a(this._store, this)
  2879. }
  2880. dispose() {
  2881. h(this), this._store.dispose()
  2882. }
  2883. _register(o) {
  2884. if (o === this) throw new Error('Cannot register a disposable on itself!')
  2885. return this._store.add(o)
  2886. }
  2887. }
  2888. ;(E.None = Object.freeze({ dispose() {} })), (n.Disposable = E)
  2889. class y {
  2890. constructor() {
  2891. ;(this._isDisposed = !1), L(this)
  2892. }
  2893. get value() {
  2894. return this._isDisposed ? void 0 : this._value
  2895. }
  2896. set value(o) {
  2897. var c
  2898. this._isDisposed ||
  2899. o === this._value ||
  2900. ((c = this._value) === null || c === void 0 || c.dispose(),
  2901. o && a(o, this),
  2902. (this._value = o))
  2903. }
  2904. clear() {
  2905. this.value = void 0
  2906. }
  2907. dispose() {
  2908. var o
  2909. ;(this._isDisposed = !0),
  2910. h(this),
  2911. (o = this._value) === null || o === void 0 || o.dispose(),
  2912. (this._value = void 0)
  2913. }
  2914. clearAndLeak() {
  2915. const o = this._value
  2916. return (this._value = void 0), o && a(o, null), o
  2917. }
  2918. }
  2919. n.MutableDisposable = y
  2920. class _ {
  2921. constructor(o) {
  2922. ;(this._disposable = o), (this._counter = 1)
  2923. }
  2924. acquire() {
  2925. return this._counter++, this
  2926. }
  2927. release() {
  2928. return --this._counter === 0 && this._disposable.dispose(), this
  2929. }
  2930. }
  2931. n.RefCountedDisposable = _
  2932. class d {
  2933. constructor() {
  2934. ;(this.dispose = () => {}), (this.unset = () => {}), (this.isset = () => !1), L(this)
  2935. }
  2936. set(o) {
  2937. let c = o
  2938. return (
  2939. (this.unset = () => (c = void 0)),
  2940. (this.isset = () => c !== void 0),
  2941. (this.dispose = () => {
  2942. c && (c(), (c = void 0), h(this))
  2943. }),
  2944. this
  2945. )
  2946. }
  2947. }
  2948. n.SafeDisposable = d
  2949. class C {
  2950. constructor(o) {
  2951. this.object = o
  2952. }
  2953. dispose() {}
  2954. }
  2955. n.ImmortalReference = C
  2956. class r {
  2957. constructor() {
  2958. ;(this._store = new Map()), (this._isDisposed = !1), L(this)
  2959. }
  2960. dispose() {
  2961. h(this), (this._isDisposed = !0), this.clearAndDisposeAll()
  2962. }
  2963. clearAndDisposeAll() {
  2964. if (!!this._store.size)
  2965. try {
  2966. f(this._store.values())
  2967. } finally {
  2968. this._store.clear()
  2969. }
  2970. }
  2971. get(o) {
  2972. return this._store.get(o)
  2973. }
  2974. set(o, c, l = !1) {
  2975. var m
  2976. this._isDisposed &&
  2977. console.warn(
  2978. new Error(
  2979. 'Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!'
  2980. ).stack
  2981. ),
  2982. l || (m = this._store.get(o)) === null || m === void 0 || m.dispose(),
  2983. this._store.set(o, c)
  2984. }
  2985. deleteAndDispose(o) {
  2986. var c
  2987. ;(c = this._store.get(o)) === null || c === void 0 || c.dispose(), this._store.delete(o)
  2988. }
  2989. [Symbol.iterator]() {
  2990. return this._store[Symbol.iterator]()
  2991. }
  2992. }
  2993. n.DisposableMap = r
  2994. }),
  2995. Q(Y[16], X([0, 1]), function (x, n) {
  2996. 'use strict'
  2997. Object.defineProperty(n, '__esModule', { value: !0 }), (n.LinkedList = void 0)
  2998. class R {
  2999. constructor(s) {
  3000. ;(this.element = s), (this.next = R.Undefined), (this.prev = R.Undefined)
  3001. }
  3002. }
  3003. R.Undefined = new R(void 0)
  3004. class D {
  3005. constructor() {
  3006. ;(this._first = R.Undefined), (this._last = R.Undefined), (this._size = 0)
  3007. }
  3008. get size() {
  3009. return this._size
  3010. }
  3011. isEmpty() {
  3012. return this._first === R.Undefined
  3013. }
  3014. clear() {
  3015. let s = this._first
  3016. for (; s !== R.Undefined; ) {
  3017. const p = s.next
  3018. ;(s.prev = R.Undefined), (s.next = R.Undefined), (s = p)
  3019. }
  3020. ;(this._first = R.Undefined), (this._last = R.Undefined), (this._size = 0)
  3021. }
  3022. unshift(s) {
  3023. return this._insert(s, !1)
  3024. }
  3025. push(s) {
  3026. return this._insert(s, !0)
  3027. }
  3028. _insert(s, p) {
  3029. const L = new R(s)
  3030. if (this._first === R.Undefined) (this._first = L), (this._last = L)
  3031. else if (p) {
  3032. const a = this._last
  3033. ;(this._last = L), (L.prev = a), (a.next = L)
  3034. } else {
  3035. const a = this._first
  3036. ;(this._first = L), (L.next = a), (a.prev = L)
  3037. }
  3038. this._size += 1
  3039. let h = !1
  3040. return () => {
  3041. h || ((h = !0), this._remove(L))
  3042. }
  3043. }
  3044. shift() {
  3045. if (this._first !== R.Undefined) {
  3046. const s = this._first.element
  3047. return this._remove(this._first), s
  3048. }
  3049. }
  3050. pop() {
  3051. if (this._last !== R.Undefined) {
  3052. const s = this._last.element
  3053. return this._remove(this._last), s
  3054. }
  3055. }
  3056. _remove(s) {
  3057. if (s.prev !== R.Undefined && s.next !== R.Undefined) {
  3058. const p = s.prev
  3059. ;(p.next = s.next), (s.next.prev = p)
  3060. } else s.prev === R.Undefined && s.next === R.Undefined ? ((this._first = R.Undefined), (this._last = R.Undefined)) : s.next === R.Undefined ? ((this._last = this._last.prev), (this._last.next = R.Undefined)) : s.prev === R.Undefined && ((this._first = this._first.next), (this._first.prev = R.Undefined))
  3061. this._size -= 1
  3062. }
  3063. *[Symbol.iterator]() {
  3064. let s = this._first
  3065. for (; s !== R.Undefined; ) yield s.element, (s = s.next)
  3066. }
  3067. }
  3068. n.LinkedList = D
  3069. }),
  3070. Q(Y[5], X([0, 1, 27, 30]), function (x, n, R, D) {
  3071. 'use strict'
  3072. var i
  3073. Object.defineProperty(n, '__esModule', { value: !0 }),
  3074. (n.InvisibleCharacters =
  3075. n.AmbiguousCharacters =
  3076. n.noBreakWhitespace =
  3077. n.getLeftDeleteOffset =
  3078. n.singleLetterHash =
  3079. n.containsUppercaseCharacter =
  3080. n.startsWithUTF8BOM =
  3081. n.UTF8_BOM_CHARACTER =
  3082. n.isEmojiImprecise =
  3083. n.isFullWidthCharacter =
  3084. n.containsUnusualLineTerminators =
  3085. n.UNUSUAL_LINE_TERMINATORS =
  3086. n.isBasicASCII =
  3087. n.containsRTL =
  3088. n.getCharContainingOffset =
  3089. n.prevCharLength =
  3090. n.nextCharLength =
  3091. n.GraphemeIterator =
  3092. n.CodePointIterator =
  3093. n.getNextCodePoint =
  3094. n.computeCodePoint =
  3095. n.isLowSurrogate =
  3096. n.isHighSurrogate =
  3097. n.commonSuffixLength =
  3098. n.commonPrefixLength =
  3099. n.startsWithIgnoreCase =
  3100. n.equalsIgnoreCase =
  3101. n.isUpperAsciiLetter =
  3102. n.isLowerAsciiLetter =
  3103. n.isAsciiDigit =
  3104. n.compareSubstringIgnoreCase =
  3105. n.compareIgnoreCase =
  3106. n.compareSubstring =
  3107. n.compare =
  3108. n.lastNonWhitespaceIndex =
  3109. n.getLeadingWhitespace =
  3110. n.firstNonWhitespaceIndex =
  3111. n.splitLines =
  3112. n.regExpFlags =
  3113. n.regExpLeadsToEndlessLoop =
  3114. n.createRegExp =
  3115. n.stripWildcards =
  3116. n.convertSimple2RegExpPattern =
  3117. n.rtrim =
  3118. n.ltrim =
  3119. n.trim =
  3120. n.escapeRegExpCharacters =
  3121. n.escape =
  3122. n.format =
  3123. n.isFalsyOrWhitespace =
  3124. void 0)
  3125. function s(P) {
  3126. return !P || typeof P != 'string' ? !0 : P.trim().length === 0
  3127. }
  3128. n.isFalsyOrWhitespace = s
  3129. const p = /{(\d+)}/g
  3130. function L(P, ...O) {
  3131. return O.length === 0
  3132. ? P
  3133. : P.replace(p, function (V, j) {
  3134. const Z = parseInt(j, 10)
  3135. return isNaN(Z) || Z < 0 || Z >= O.length ? V : O[Z]
  3136. })
  3137. }
  3138. n.format = L
  3139. function h(P) {
  3140. return P.replace(/[<>&]/g, function (O) {
  3141. switch (O) {
  3142. case '<':
  3143. return '&lt;'
  3144. case '>':
  3145. return '&gt;'
  3146. case '&':
  3147. return '&amp;'
  3148. default:
  3149. return O
  3150. }
  3151. })
  3152. }
  3153. n.escape = h
  3154. function a(P) {
  3155. return P.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g, '\\$&')
  3156. }
  3157. n.escapeRegExpCharacters = a
  3158. function w(P, O = ' ') {
  3159. const V = e(P, O)
  3160. return b(V, O)
  3161. }
  3162. n.trim = w
  3163. function e(P, O) {
  3164. if (!P || !O) return P
  3165. const V = O.length
  3166. if (V === 0 || P.length === 0) return P
  3167. let j = 0
  3168. for (; P.indexOf(O, j) === j; ) j = j + V
  3169. return P.substring(j)
  3170. }
  3171. n.ltrim = e
  3172. function b(P, O) {
  3173. if (!P || !O) return P
  3174. const V = O.length,
  3175. j = P.length
  3176. if (V === 0 || j === 0) return P
  3177. let Z = j,
  3178. le = -1
  3179. for (; (le = P.lastIndexOf(O, Z - 1)), !(le === -1 || le + V !== Z); ) {
  3180. if (le === 0) return ''
  3181. Z = le
  3182. }
  3183. return P.substring(0, Z)
  3184. }
  3185. n.rtrim = b
  3186. function f(P) {
  3187. return P.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, '\\$&').replace(/[\*]/g, '.*')
  3188. }
  3189. n.convertSimple2RegExpPattern = f
  3190. function v(P) {
  3191. return P.replace(/\*/g, '')
  3192. }
  3193. n.stripWildcards = v
  3194. function g(P, O, V = {}) {
  3195. if (!P) throw new Error('Cannot create regex from empty string')
  3196. O || (P = a(P)),
  3197. V.wholeWord &&
  3198. (/\B/.test(P.charAt(0)) || (P = '\\b' + P),
  3199. /\B/.test(P.charAt(P.length - 1)) || (P = P + '\\b'))
  3200. let j = ''
  3201. return (
  3202. V.global && (j += 'g'),
  3203. V.matchCase || (j += 'i'),
  3204. V.multiline && (j += 'm'),
  3205. V.unicode && (j += 'u'),
  3206. new RegExp(P, j)
  3207. )
  3208. }
  3209. n.createRegExp = g
  3210. function S(P) {
  3211. return P.source === '^' || P.source === '^$' || P.source === '$' || P.source === '^\\s*$'
  3212. ? !1
  3213. : !!(P.exec('') && P.lastIndex === 0)
  3214. }
  3215. n.regExpLeadsToEndlessLoop = S
  3216. function E(P) {
  3217. return (
  3218. (P.global ? 'g' : '') +
  3219. (P.ignoreCase ? 'i' : '') +
  3220. (P.multiline ? 'm' : '') +
  3221. (P.unicode ? 'u' : '')
  3222. )
  3223. }
  3224. n.regExpFlags = E
  3225. function y(P) {
  3226. return P.split(/\r\n|\r|\n/)
  3227. }
  3228. n.splitLines = y
  3229. function _(P) {
  3230. for (let O = 0, V = P.length; O < V; O++) {
  3231. const j = P.charCodeAt(O)
  3232. if (j !== 32 && j !== 9) return O
  3233. }
  3234. return -1
  3235. }
  3236. n.firstNonWhitespaceIndex = _
  3237. function d(P, O = 0, V = P.length) {
  3238. for (let j = O; j < V; j++) {
  3239. const Z = P.charCodeAt(j)
  3240. if (Z !== 32 && Z !== 9) return P.substring(O, j)
  3241. }
  3242. return P.substring(O, V)
  3243. }
  3244. n.getLeadingWhitespace = d
  3245. function C(P, O = P.length - 1) {
  3246. for (let V = O; V >= 0; V--) {
  3247. const j = P.charCodeAt(V)
  3248. if (j !== 32 && j !== 9) return V
  3249. }
  3250. return -1
  3251. }
  3252. n.lastNonWhitespaceIndex = C
  3253. function r(P, O) {
  3254. return P < O ? -1 : P > O ? 1 : 0
  3255. }
  3256. n.compare = r
  3257. function u(P, O, V = 0, j = P.length, Z = 0, le = O.length) {
  3258. for (; V < j && Z < le; V++, Z++) {
  3259. const ve = P.charCodeAt(V),
  3260. oe = O.charCodeAt(Z)
  3261. if (ve < oe) return -1
  3262. if (ve > oe) return 1
  3263. }
  3264. const he = j - V,
  3265. ye = le - Z
  3266. return he < ye ? -1 : he > ye ? 1 : 0
  3267. }
  3268. n.compareSubstring = u
  3269. function o(P, O) {
  3270. return c(P, O, 0, P.length, 0, O.length)
  3271. }
  3272. n.compareIgnoreCase = o
  3273. function c(P, O, V = 0, j = P.length, Z = 0, le = O.length) {
  3274. for (; V < j && Z < le; V++, Z++) {
  3275. let ve = P.charCodeAt(V),
  3276. oe = O.charCodeAt(Z)
  3277. if (ve === oe) continue
  3278. if (ve >= 128 || oe >= 128) return u(P.toLowerCase(), O.toLowerCase(), V, j, Z, le)
  3279. m(ve) && (ve -= 32), m(oe) && (oe -= 32)
  3280. const _e = ve - oe
  3281. if (_e !== 0) return _e
  3282. }
  3283. const he = j - V,
  3284. ye = le - Z
  3285. return he < ye ? -1 : he > ye ? 1 : 0
  3286. }
  3287. n.compareSubstringIgnoreCase = c
  3288. function l(P) {
  3289. return P >= 48 && P <= 57
  3290. }
  3291. n.isAsciiDigit = l
  3292. function m(P) {
  3293. return P >= 97 && P <= 122
  3294. }
  3295. n.isLowerAsciiLetter = m
  3296. function N(P) {
  3297. return P >= 65 && P <= 90
  3298. }
  3299. n.isUpperAsciiLetter = N
  3300. function A(P, O) {
  3301. return P.length === O.length && c(P, O) === 0
  3302. }
  3303. n.equalsIgnoreCase = A
  3304. function M(P, O) {
  3305. const V = O.length
  3306. return O.length > P.length ? !1 : c(P, O, 0, V) === 0
  3307. }
  3308. n.startsWithIgnoreCase = M
  3309. function k(P, O) {
  3310. const V = Math.min(P.length, O.length)
  3311. let j
  3312. for (j = 0; j < V; j++) if (P.charCodeAt(j) !== O.charCodeAt(j)) return j
  3313. return V
  3314. }
  3315. n.commonPrefixLength = k
  3316. function q(P, O) {
  3317. const V = Math.min(P.length, O.length)
  3318. let j
  3319. const Z = P.length - 1,
  3320. le = O.length - 1
  3321. for (j = 0; j < V; j++) if (P.charCodeAt(Z - j) !== O.charCodeAt(le - j)) return j
  3322. return V
  3323. }
  3324. n.commonSuffixLength = q
  3325. function I(P) {
  3326. return 55296 <= P && P <= 56319
  3327. }
  3328. n.isHighSurrogate = I
  3329. function B(P) {
  3330. return 56320 <= P && P <= 57343
  3331. }
  3332. n.isLowSurrogate = B
  3333. function H(P, O) {
  3334. return ((P - 55296) << 10) + (O - 56320) + 65536
  3335. }
  3336. n.computeCodePoint = H
  3337. function F(P, O, V) {
  3338. const j = P.charCodeAt(V)
  3339. if (I(j) && V + 1 < O) {
  3340. const Z = P.charCodeAt(V + 1)
  3341. if (B(Z)) return H(j, Z)
  3342. }
  3343. return j
  3344. }
  3345. n.getNextCodePoint = F
  3346. function U(P, O) {
  3347. const V = P.charCodeAt(O - 1)
  3348. if (B(V) && O > 1) {
  3349. const j = P.charCodeAt(O - 2)
  3350. if (I(j)) return H(j, V)
  3351. }
  3352. return V
  3353. }
  3354. class T {
  3355. get offset() {
  3356. return this._offset
  3357. }
  3358. constructor(O, V = 0) {
  3359. ;(this._str = O), (this._len = O.length), (this._offset = V)
  3360. }
  3361. setOffset(O) {
  3362. this._offset = O
  3363. }
  3364. prevCodePoint() {
  3365. const O = U(this._str, this._offset)
  3366. return (this._offset -= O >= 65536 ? 2 : 1), O
  3367. }
  3368. nextCodePoint() {
  3369. const O = F(this._str, this._len, this._offset)
  3370. return (this._offset += O >= 65536 ? 2 : 1), O
  3371. }
  3372. eol() {
  3373. return this._offset >= this._len
  3374. }
  3375. }
  3376. n.CodePointIterator = T
  3377. class W {
  3378. get offset() {
  3379. return this._iterator.offset
  3380. }
  3381. constructor(O, V = 0) {
  3382. this._iterator = new T(O, V)
  3383. }
  3384. nextGraphemeLength() {
  3385. const O = ee.getInstance(),
  3386. V = this._iterator,
  3387. j = V.offset
  3388. let Z = O.getGraphemeBreakType(V.nextCodePoint())
  3389. for (; !V.eol(); ) {
  3390. const le = V.offset,
  3391. he = O.getGraphemeBreakType(V.nextCodePoint())
  3392. if (K(Z, he)) {
  3393. V.setOffset(le)
  3394. break
  3395. }
  3396. Z = he
  3397. }
  3398. return V.offset - j
  3399. }
  3400. prevGraphemeLength() {
  3401. const O = ee.getInstance(),
  3402. V = this._iterator,
  3403. j = V.offset
  3404. let Z = O.getGraphemeBreakType(V.prevCodePoint())
  3405. for (; V.offset > 0; ) {
  3406. const le = V.offset,
  3407. he = O.getGraphemeBreakType(V.prevCodePoint())
  3408. if (K(he, Z)) {
  3409. V.setOffset(le)
  3410. break
  3411. }
  3412. Z = he
  3413. }
  3414. return j - V.offset
  3415. }
  3416. eol() {
  3417. return this._iterator.eol()
  3418. }
  3419. }
  3420. n.GraphemeIterator = W
  3421. function t(P, O) {
  3422. return new W(P, O).nextGraphemeLength()
  3423. }
  3424. n.nextCharLength = t
  3425. function te(P, O) {
  3426. return new W(P, O).prevGraphemeLength()
  3427. }
  3428. n.prevCharLength = te
  3429. function ie(P, O) {
  3430. O > 0 && B(P.charCodeAt(O)) && O--
  3431. const V = O + t(P, O)
  3432. return [V - te(P, V), V]
  3433. }
  3434. n.getCharContainingOffset = ie
  3435. let ue
  3436. function de() {
  3437. return /(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/
  3438. }
  3439. function Ce(P) {
  3440. return ue || (ue = de()), ue.test(P)
  3441. }
  3442. n.containsRTL = Ce
  3443. const re = /^[\t\n\r\x20-\x7E]*$/
  3444. function se(P) {
  3445. return re.test(P)
  3446. }
  3447. ;(n.isBasicASCII = se), (n.UNUSUAL_LINE_TERMINATORS = /[\u2028\u2029]/)
  3448. function ge(P) {
  3449. return n.UNUSUAL_LINE_TERMINATORS.test(P)
  3450. }
  3451. n.containsUnusualLineTerminators = ge
  3452. function Le(P) {
  3453. return (
  3454. (P >= 11904 && P <= 55215) || (P >= 63744 && P <= 64255) || (P >= 65281 && P <= 65374)
  3455. )
  3456. }
  3457. n.isFullWidthCharacter = Le
  3458. function J(P) {
  3459. return (
  3460. (P >= 127462 && P <= 127487) ||
  3461. P === 8986 ||
  3462. P === 8987 ||
  3463. P === 9200 ||
  3464. P === 9203 ||
  3465. (P >= 9728 && P <= 10175) ||
  3466. P === 11088 ||
  3467. P === 11093 ||
  3468. (P >= 127744 && P <= 128591) ||
  3469. (P >= 128640 && P <= 128764) ||
  3470. (P >= 128992 && P <= 129008) ||
  3471. (P >= 129280 && P <= 129535) ||
  3472. (P >= 129648 && P <= 129782)
  3473. )
  3474. }
  3475. ;(n.isEmojiImprecise = J), (n.UTF8_BOM_CHARACTER = String.fromCharCode(65279))
  3476. function z(P) {
  3477. return !!(P && P.length > 0 && P.charCodeAt(0) === 65279)
  3478. }
  3479. n.startsWithUTF8BOM = z
  3480. function G(P, O = !1) {
  3481. return P ? (O && (P = P.replace(/\\./g, '')), P.toLowerCase() !== P) : !1
  3482. }
  3483. n.containsUppercaseCharacter = G
  3484. function $(P) {
  3485. return (
  3486. (P = P % (2 * 26)),
  3487. P < 26 ? String.fromCharCode(97 + P) : String.fromCharCode(65 + P - 26)
  3488. )
  3489. }
  3490. n.singleLetterHash = $
  3491. function K(P, O) {
  3492. return P === 0
  3493. ? O !== 5 && O !== 7
  3494. : P === 2 && O === 3
  3495. ? !1
  3496. : P === 4 || P === 2 || P === 3 || O === 4 || O === 2 || O === 3
  3497. ? !0
  3498. : !(
  3499. (P === 8 && (O === 8 || O === 9 || O === 11 || O === 12)) ||
  3500. ((P === 11 || P === 9) && (O === 9 || O === 10)) ||
  3501. ((P === 12 || P === 10) && O === 10) ||
  3502. O === 5 ||
  3503. O === 13 ||
  3504. O === 7 ||
  3505. P === 1 ||
  3506. (P === 13 && O === 14) ||
  3507. (P === 6 && O === 6)
  3508. )
  3509. }
  3510. class ee {
  3511. static getInstance() {
  3512. return ee._INSTANCE || (ee._INSTANCE = new ee()), ee._INSTANCE
  3513. }
  3514. constructor() {
  3515. this._data = ne()
  3516. }
  3517. getGraphemeBreakType(O) {
  3518. if (O < 32) return O === 10 ? 3 : O === 13 ? 2 : 4
  3519. if (O < 127) return 0
  3520. const V = this._data,
  3521. j = V.length / 3
  3522. let Z = 1
  3523. for (; Z <= j; )
  3524. if (O < V[3 * Z]) Z = 2 * Z
  3525. else if (O > V[3 * Z + 1]) Z = 2 * Z + 1
  3526. else return V[3 * Z + 2]
  3527. return 0
  3528. }
  3529. }
  3530. ee._INSTANCE = null
  3531. function ne() {
  3532. return JSON.parse(
  3533. '[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]'
  3534. )
  3535. }
  3536. function ce(P, O) {
  3537. if (P === 0) return 0
  3538. const V = Se(P, O)
  3539. if (V !== void 0) return V
  3540. const j = new T(O, P)
  3541. return j.prevCodePoint(), j.offset
  3542. }
  3543. n.getLeftDeleteOffset = ce
  3544. function Se(P, O) {
  3545. const V = new T(O, P)
  3546. let j = V.prevCodePoint()
  3547. for (; we(j) || j === 65039 || j === 8419; ) {
  3548. if (V.offset === 0) return
  3549. j = V.prevCodePoint()
  3550. }
  3551. if (!J(j)) return
  3552. let Z = V.offset
  3553. return Z > 0 && V.prevCodePoint() === 8205 && (Z = V.offset), Z
  3554. }
  3555. function we(P) {
  3556. return 127995 <= P && P <= 127999
  3557. }
  3558. n.noBreakWhitespace = '\xA0'
  3559. class fe {
  3560. static getInstance(O) {
  3561. return fe.cache.get(Array.from(O))
  3562. }
  3563. static getLocales() {
  3564. return fe._locales.value
  3565. }
  3566. constructor(O) {
  3567. this.confusableDictionary = O
  3568. }
  3569. isAmbiguous(O) {
  3570. return this.confusableDictionary.has(O)
  3571. }
  3572. getPrimaryConfusable(O) {
  3573. return this.confusableDictionary.get(O)
  3574. }
  3575. getConfusableCodePoints() {
  3576. return new Set(this.confusableDictionary.keys())
  3577. }
  3578. }
  3579. ;(i = fe),
  3580. (fe.ambiguousCharacterData = new D.Lazy(() =>
  3581. JSON.parse(
  3582. '{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'
  3583. )
  3584. )),
  3585. (fe.cache = new R.LRUCachedFunction((P) => {
  3586. function O(oe) {
  3587. const _e = new Map()
  3588. for (let pe = 0; pe < oe.length; pe += 2) _e.set(oe[pe], oe[pe + 1])
  3589. return _e
  3590. }
  3591. function V(oe, _e) {
  3592. const pe = new Map(oe)
  3593. for (const [Ae, Ne] of _e) pe.set(Ae, Ne)
  3594. return pe
  3595. }
  3596. function j(oe, _e) {
  3597. if (!oe) return _e
  3598. const pe = new Map()
  3599. for (const [Ae, Ne] of oe) _e.has(Ae) && pe.set(Ae, Ne)
  3600. return pe
  3601. }
  3602. const Z = i.ambiguousCharacterData.value
  3603. let le = P.filter((oe) => !oe.startsWith('_') && oe in Z)
  3604. le.length === 0 && (le = ['_default'])
  3605. let he
  3606. for (const oe of le) {
  3607. const _e = O(Z[oe])
  3608. he = j(he, _e)
  3609. }
  3610. const ye = O(Z._common),
  3611. ve = V(ye, he)
  3612. return new fe(ve)
  3613. })),
  3614. (fe._locales = new D.Lazy(() =>
  3615. Object.keys(fe.ambiguousCharacterData.value).filter((P) => !P.startsWith('_'))
  3616. )),
  3617. (n.AmbiguousCharacters = fe)
  3618. class me {
  3619. static getRawData() {
  3620. return JSON.parse(
  3621. '[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]'
  3622. )
  3623. }
  3624. static getData() {
  3625. return this._data || (this._data = new Set(me.getRawData())), this._data
  3626. }
  3627. static isInvisibleCharacter(O) {
  3628. return me.getData().has(O)
  3629. }
  3630. static get codePoints() {
  3631. return me.getData()
  3632. }
  3633. }
  3634. ;(me._data = void 0), (n.InvisibleCharacters = me)
  3635. }),
  3636. Q(Y[31], X([0, 1, 5]), function (x, n, R) {
  3637. 'use strict'
  3638. Object.defineProperty(n, '__esModule', { value: !0 }),
  3639. (n.StringSHA1 = n.toHexString = n.stringHash = n.numberHash = n.doHash = n.hash = void 0)
  3640. function D(g) {
  3641. return i(g, 0)
  3642. }
  3643. n.hash = D
  3644. function i(g, S) {
  3645. switch (typeof g) {
  3646. case 'object':
  3647. return g === null ? s(349, S) : Array.isArray(g) ? h(g, S) : a(g, S)
  3648. case 'string':
  3649. return L(g, S)
  3650. case 'boolean':
  3651. return p(g, S)
  3652. case 'number':
  3653. return s(g, S)
  3654. case 'undefined':
  3655. return s(937, S)
  3656. default:
  3657. return s(617, S)
  3658. }
  3659. }
  3660. n.doHash = i
  3661. function s(g, S) {
  3662. return ((S << 5) - S + g) | 0
  3663. }
  3664. n.numberHash = s
  3665. function p(g, S) {
  3666. return s(g ? 433 : 863, S)
  3667. }
  3668. function L(g, S) {
  3669. S = s(149417, S)
  3670. for (let E = 0, y = g.length; E < y; E++) S = s(g.charCodeAt(E), S)
  3671. return S
  3672. }
  3673. n.stringHash = L
  3674. function h(g, S) {
  3675. return (S = s(104579, S)), g.reduce((E, y) => i(y, E), S)
  3676. }
  3677. function a(g, S) {
  3678. return (
  3679. (S = s(181387, S)),
  3680. Object.keys(g)
  3681. .sort()
  3682. .reduce((E, y) => ((E = L(y, E)), i(g[y], E)), S)
  3683. )
  3684. }
  3685. function w(g, S, E = 32) {
  3686. const y = E - S,
  3687. _ = ~((1 << y) - 1)
  3688. return ((g << S) | ((_ & g) >>> y)) >>> 0
  3689. }
  3690. function e(g, S = 0, E = g.byteLength, y = 0) {
  3691. for (let _ = 0; _ < E; _++) g[S + _] = y
  3692. }
  3693. function b(g, S, E = '0') {
  3694. for (; g.length < S; ) g = E + g
  3695. return g
  3696. }
  3697. function f(g, S = 32) {
  3698. return g instanceof ArrayBuffer
  3699. ? Array.from(new Uint8Array(g))
  3700. .map((E) => E.toString(16).padStart(2, '0'))
  3701. .join('')
  3702. : b((g >>> 0).toString(16), S / 4)
  3703. }
  3704. n.toHexString = f
  3705. class v {
  3706. constructor() {
  3707. ;(this._h0 = 1732584193),
  3708. (this._h1 = 4023233417),
  3709. (this._h2 = 2562383102),
  3710. (this._h3 = 271733878),
  3711. (this._h4 = 3285377520),
  3712. (this._buff = new Uint8Array(64 + 3)),
  3713. (this._buffDV = new DataView(this._buff.buffer)),
  3714. (this._buffLen = 0),
  3715. (this._totalLen = 0),
  3716. (this._leftoverHighSurrogate = 0),
  3717. (this._finished = !1)
  3718. }
  3719. update(S) {
  3720. const E = S.length
  3721. if (E === 0) return
  3722. const y = this._buff
  3723. let _ = this._buffLen,
  3724. d = this._leftoverHighSurrogate,
  3725. C,
  3726. r
  3727. for (d !== 0 ? ((C = d), (r = -1), (d = 0)) : ((C = S.charCodeAt(0)), (r = 0)); ; ) {
  3728. let u = C
  3729. if (R.isHighSurrogate(C))
  3730. if (r + 1 < E) {
  3731. const o = S.charCodeAt(r + 1)
  3732. R.isLowSurrogate(o) ? (r++, (u = R.computeCodePoint(C, o))) : (u = 65533)
  3733. } else {
  3734. d = C
  3735. break
  3736. }
  3737. else R.isLowSurrogate(C) && (u = 65533)
  3738. if (((_ = this._push(y, _, u)), r++, r < E)) C = S.charCodeAt(r)
  3739. else break
  3740. }
  3741. ;(this._buffLen = _), (this._leftoverHighSurrogate = d)
  3742. }
  3743. _push(S, E, y) {
  3744. return (
  3745. y < 128
  3746. ? (S[E++] = y)
  3747. : y < 2048
  3748. ? ((S[E++] = 192 | ((y & 1984) >>> 6)), (S[E++] = 128 | ((y & 63) >>> 0)))
  3749. : y < 65536
  3750. ? ((S[E++] = 224 | ((y & 61440) >>> 12)),
  3751. (S[E++] = 128 | ((y & 4032) >>> 6)),
  3752. (S[E++] = 128 | ((y & 63) >>> 0)))
  3753. : ((S[E++] = 240 | ((y & 1835008) >>> 18)),
  3754. (S[E++] = 128 | ((y & 258048) >>> 12)),
  3755. (S[E++] = 128 | ((y & 4032) >>> 6)),
  3756. (S[E++] = 128 | ((y & 63) >>> 0))),
  3757. E >= 64 &&
  3758. (this._step(),
  3759. (E -= 64),
  3760. (this._totalLen += 64),
  3761. (S[0] = S[64 + 0]),
  3762. (S[1] = S[64 + 1]),
  3763. (S[2] = S[64 + 2])),
  3764. E
  3765. )
  3766. }
  3767. digest() {
  3768. return (
  3769. this._finished ||
  3770. ((this._finished = !0),
  3771. this._leftoverHighSurrogate &&
  3772. ((this._leftoverHighSurrogate = 0),
  3773. (this._buffLen = this._push(this._buff, this._buffLen, 65533))),
  3774. (this._totalLen += this._buffLen),
  3775. this._wrapUp()),
  3776. f(this._h0) + f(this._h1) + f(this._h2) + f(this._h3) + f(this._h4)
  3777. )
  3778. }
  3779. _wrapUp() {
  3780. ;(this._buff[this._buffLen++] = 128),
  3781. e(this._buff, this._buffLen),
  3782. this._buffLen > 56 && (this._step(), e(this._buff))
  3783. const S = 8 * this._totalLen
  3784. this._buffDV.setUint32(56, Math.floor(S / 4294967296), !1),
  3785. this._buffDV.setUint32(60, S % 4294967296, !1),
  3786. this._step()
  3787. }
  3788. _step() {
  3789. const S = v._bigBlock32,
  3790. E = this._buffDV
  3791. for (let l = 0; l < 64; l += 4) S.setUint32(l, E.getUint32(l, !1), !1)
  3792. for (let l = 64; l < 320; l += 4)
  3793. S.setUint32(
  3794. l,
  3795. w(
  3796. S.getUint32(l - 12, !1) ^
  3797. S.getUint32(l - 32, !1) ^
  3798. S.getUint32(l - 56, !1) ^
  3799. S.getUint32(l - 64, !1),
  3800. 1
  3801. ),
  3802. !1
  3803. )
  3804. let y = this._h0,
  3805. _ = this._h1,
  3806. d = this._h2,
  3807. C = this._h3,
  3808. r = this._h4,
  3809. u,
  3810. o,
  3811. c
  3812. for (let l = 0; l < 80; l++)
  3813. l < 20
  3814. ? ((u = (_ & d) | (~_ & C)), (o = 1518500249))
  3815. : l < 40
  3816. ? ((u = _ ^ d ^ C), (o = 1859775393))
  3817. : l < 60
  3818. ? ((u = (_ & d) | (_ & C) | (d & C)), (o = 2400959708))
  3819. : ((u = _ ^ d ^ C), (o = 3395469782)),
  3820. (c = (w(y, 5) + u + r + o + S.getUint32(l * 4, !1)) & 4294967295),
  3821. (r = C),
  3822. (C = d),
  3823. (d = w(_, 30)),
  3824. (_ = y),
  3825. (y = c)
  3826. ;(this._h0 = (this._h0 + y) & 4294967295),
  3827. (this._h1 = (this._h1 + _) & 4294967295),
  3828. (this._h2 = (this._h2 + d) & 4294967295),
  3829. (this._h3 = (this._h3 + C) & 4294967295),
  3830. (this._h4 = (this._h4 + r) & 4294967295)
  3831. }
  3832. }
  3833. ;(v._bigBlock32 = new DataView(new ArrayBuffer(320))), (n.StringSHA1 = v)
  3834. }),
  3835. Q(Y[17], X([0, 1, 28, 31]), function (x, n, R, D) {
  3836. 'use strict'
  3837. Object.defineProperty(n, '__esModule', { value: !0 }),
  3838. (n.LcsDiff = n.stringDiff = n.StringDiffSequence = void 0)
  3839. class i {
  3840. constructor(e) {
  3841. this.source = e
  3842. }
  3843. getElements() {
  3844. const e = this.source,
  3845. b = new Int32Array(e.length)
  3846. for (let f = 0, v = e.length; f < v; f++) b[f] = e.charCodeAt(f)
  3847. return b
  3848. }
  3849. }
  3850. n.StringDiffSequence = i
  3851. function s(w, e, b) {
  3852. return new a(new i(w), new i(e)).ComputeDiff(b).changes
  3853. }
  3854. n.stringDiff = s
  3855. class p {
  3856. static Assert(e, b) {
  3857. if (!e) throw new Error(b)
  3858. }
  3859. }
  3860. class L {
  3861. static Copy(e, b, f, v, g) {
  3862. for (let S = 0; S < g; S++) f[v + S] = e[b + S]
  3863. }
  3864. static Copy2(e, b, f, v, g) {
  3865. for (let S = 0; S < g; S++) f[v + S] = e[b + S]
  3866. }
  3867. }
  3868. class h {
  3869. constructor() {
  3870. ;(this.m_changes = []),
  3871. (this.m_originalStart = 1073741824),
  3872. (this.m_modifiedStart = 1073741824),
  3873. (this.m_originalCount = 0),
  3874. (this.m_modifiedCount = 0)
  3875. }
  3876. MarkNextChange() {
  3877. ;(this.m_originalCount > 0 || this.m_modifiedCount > 0) &&
  3878. this.m_changes.push(
  3879. new R.DiffChange(
  3880. this.m_originalStart,
  3881. this.m_originalCount,
  3882. this.m_modifiedStart,
  3883. this.m_modifiedCount
  3884. )
  3885. ),
  3886. (this.m_originalCount = 0),
  3887. (this.m_modifiedCount = 0),
  3888. (this.m_originalStart = 1073741824),
  3889. (this.m_modifiedStart = 1073741824)
  3890. }
  3891. AddOriginalElement(e, b) {
  3892. ;(this.m_originalStart = Math.min(this.m_originalStart, e)),
  3893. (this.m_modifiedStart = Math.min(this.m_modifiedStart, b)),
  3894. this.m_originalCount++
  3895. }
  3896. AddModifiedElement(e, b) {
  3897. ;(this.m_originalStart = Math.min(this.m_originalStart, e)),
  3898. (this.m_modifiedStart = Math.min(this.m_modifiedStart, b)),
  3899. this.m_modifiedCount++
  3900. }
  3901. getChanges() {
  3902. return (
  3903. (this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.MarkNextChange(),
  3904. this.m_changes
  3905. )
  3906. }
  3907. getReverseChanges() {
  3908. return (
  3909. (this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.MarkNextChange(),
  3910. this.m_changes.reverse(),
  3911. this.m_changes
  3912. )
  3913. }
  3914. }
  3915. class a {
  3916. constructor(e, b, f = null) {
  3917. ;(this.ContinueProcessingPredicate = f),
  3918. (this._originalSequence = e),
  3919. (this._modifiedSequence = b)
  3920. const [v, g, S] = a._getElements(e),
  3921. [E, y, _] = a._getElements(b)
  3922. ;(this._hasStrings = S && _),
  3923. (this._originalStringElements = v),
  3924. (this._originalElementsOrHash = g),
  3925. (this._modifiedStringElements = E),
  3926. (this._modifiedElementsOrHash = y),
  3927. (this.m_forwardHistory = []),
  3928. (this.m_reverseHistory = [])
  3929. }
  3930. static _isStringArray(e) {
  3931. return e.length > 0 && typeof e[0] == 'string'
  3932. }
  3933. static _getElements(e) {
  3934. const b = e.getElements()
  3935. if (a._isStringArray(b)) {
  3936. const f = new Int32Array(b.length)
  3937. for (let v = 0, g = b.length; v < g; v++) f[v] = (0, D.stringHash)(b[v], 0)
  3938. return [b, f, !0]
  3939. }
  3940. return b instanceof Int32Array ? [[], b, !1] : [[], new Int32Array(b), !1]
  3941. }
  3942. ElementsAreEqual(e, b) {
  3943. return this._originalElementsOrHash[e] !== this._modifiedElementsOrHash[b]
  3944. ? !1
  3945. : this._hasStrings
  3946. ? this._originalStringElements[e] === this._modifiedStringElements[b]
  3947. : !0
  3948. }
  3949. ElementsAreStrictEqual(e, b) {
  3950. if (!this.ElementsAreEqual(e, b)) return !1
  3951. const f = a._getStrictElement(this._originalSequence, e),
  3952. v = a._getStrictElement(this._modifiedSequence, b)
  3953. return f === v
  3954. }
  3955. static _getStrictElement(e, b) {
  3956. return typeof e.getStrictElement == 'function' ? e.getStrictElement(b) : null
  3957. }
  3958. OriginalElementsAreEqual(e, b) {
  3959. return this._originalElementsOrHash[e] !== this._originalElementsOrHash[b]
  3960. ? !1
  3961. : this._hasStrings
  3962. ? this._originalStringElements[e] === this._originalStringElements[b]
  3963. : !0
  3964. }
  3965. ModifiedElementsAreEqual(e, b) {
  3966. return this._modifiedElementsOrHash[e] !== this._modifiedElementsOrHash[b]
  3967. ? !1
  3968. : this._hasStrings
  3969. ? this._modifiedStringElements[e] === this._modifiedStringElements[b]
  3970. : !0
  3971. }
  3972. ComputeDiff(e) {
  3973. return this._ComputeDiff(
  3974. 0,
  3975. this._originalElementsOrHash.length - 1,
  3976. 0,
  3977. this._modifiedElementsOrHash.length - 1,
  3978. e
  3979. )
  3980. }
  3981. _ComputeDiff(e, b, f, v, g) {
  3982. const S = [!1]
  3983. let E = this.ComputeDiffRecursive(e, b, f, v, S)
  3984. return g && (E = this.PrettifyChanges(E)), { quitEarly: S[0], changes: E }
  3985. }
  3986. ComputeDiffRecursive(e, b, f, v, g) {
  3987. for (g[0] = !1; e <= b && f <= v && this.ElementsAreEqual(e, f); ) e++, f++
  3988. for (; b >= e && v >= f && this.ElementsAreEqual(b, v); ) b--, v--
  3989. if (e > b || f > v) {
  3990. let C
  3991. return (
  3992. f <= v
  3993. ? (p.Assert(e === b + 1, 'originalStart should only be one more than originalEnd'),
  3994. (C = [new R.DiffChange(e, 0, f, v - f + 1)]))
  3995. : e <= b
  3996. ? (p.Assert(f === v + 1, 'modifiedStart should only be one more than modifiedEnd'),
  3997. (C = [new R.DiffChange(e, b - e + 1, f, 0)]))
  3998. : (p.Assert(e === b + 1, 'originalStart should only be one more than originalEnd'),
  3999. p.Assert(f === v + 1, 'modifiedStart should only be one more than modifiedEnd'),
  4000. (C = [])),
  4001. C
  4002. )
  4003. }
  4004. const S = [0],
  4005. E = [0],
  4006. y = this.ComputeRecursionPoint(e, b, f, v, S, E, g),
  4007. _ = S[0],
  4008. d = E[0]
  4009. if (y !== null) return y
  4010. if (!g[0]) {
  4011. const C = this.ComputeDiffRecursive(e, _, f, d, g)
  4012. let r = []
  4013. return (
  4014. g[0]
  4015. ? (r = [new R.DiffChange(_ + 1, b - (_ + 1) + 1, d + 1, v - (d + 1) + 1)])
  4016. : (r = this.ComputeDiffRecursive(_ + 1, b, d + 1, v, g)),
  4017. this.ConcatenateChanges(C, r)
  4018. )
  4019. }
  4020. return [new R.DiffChange(e, b - e + 1, f, v - f + 1)]
  4021. }
  4022. WALKTRACE(e, b, f, v, g, S, E, y, _, d, C, r, u, o, c, l, m, N) {
  4023. let A = null,
  4024. M = null,
  4025. k = new h(),
  4026. q = b,
  4027. I = f,
  4028. B = u[0] - l[0] - v,
  4029. H = -1073741824,
  4030. F = this.m_forwardHistory.length - 1
  4031. do {
  4032. const U = B + e
  4033. U === q || (U < I && _[U - 1] < _[U + 1])
  4034. ? ((C = _[U + 1]),
  4035. (o = C - B - v),
  4036. C < H && k.MarkNextChange(),
  4037. (H = C),
  4038. k.AddModifiedElement(C + 1, o),
  4039. (B = U + 1 - e))
  4040. : ((C = _[U - 1] + 1),
  4041. (o = C - B - v),
  4042. C < H && k.MarkNextChange(),
  4043. (H = C - 1),
  4044. k.AddOriginalElement(C, o + 1),
  4045. (B = U - 1 - e)),
  4046. F >= 0 && ((_ = this.m_forwardHistory[F]), (e = _[0]), (q = 1), (I = _.length - 1))
  4047. } while (--F >= -1)
  4048. if (((A = k.getReverseChanges()), N[0])) {
  4049. let U = u[0] + 1,
  4050. T = l[0] + 1
  4051. if (A !== null && A.length > 0) {
  4052. const W = A[A.length - 1]
  4053. ;(U = Math.max(U, W.getOriginalEnd())), (T = Math.max(T, W.getModifiedEnd()))
  4054. }
  4055. M = [new R.DiffChange(U, r - U + 1, T, c - T + 1)]
  4056. } else {
  4057. ;(k = new h()),
  4058. (q = S),
  4059. (I = E),
  4060. (B = u[0] - l[0] - y),
  4061. (H = 1073741824),
  4062. (F = m ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2)
  4063. do {
  4064. const U = B + g
  4065. U === q || (U < I && d[U - 1] >= d[U + 1])
  4066. ? ((C = d[U + 1] - 1),
  4067. (o = C - B - y),
  4068. C > H && k.MarkNextChange(),
  4069. (H = C + 1),
  4070. k.AddOriginalElement(C + 1, o + 1),
  4071. (B = U + 1 - g))
  4072. : ((C = d[U - 1]),
  4073. (o = C - B - y),
  4074. C > H && k.MarkNextChange(),
  4075. (H = C),
  4076. k.AddModifiedElement(C + 1, o + 1),
  4077. (B = U - 1 - g)),
  4078. F >= 0 && ((d = this.m_reverseHistory[F]), (g = d[0]), (q = 1), (I = d.length - 1))
  4079. } while (--F >= -1)
  4080. M = k.getChanges()
  4081. }
  4082. return this.ConcatenateChanges(A, M)
  4083. }
  4084. ComputeRecursionPoint(e, b, f, v, g, S, E) {
  4085. let y = 0,
  4086. _ = 0,
  4087. d = 0,
  4088. C = 0,
  4089. r = 0,
  4090. u = 0
  4091. e--,
  4092. f--,
  4093. (g[0] = 0),
  4094. (S[0] = 0),
  4095. (this.m_forwardHistory = []),
  4096. (this.m_reverseHistory = [])
  4097. const o = b - e + (v - f),
  4098. c = o + 1,
  4099. l = new Int32Array(c),
  4100. m = new Int32Array(c),
  4101. N = v - f,
  4102. A = b - e,
  4103. M = e - f,
  4104. k = b - v,
  4105. I = (A - N) % 2 === 0
  4106. ;(l[N] = e), (m[A] = b), (E[0] = !1)
  4107. for (let B = 1; B <= o / 2 + 1; B++) {
  4108. let H = 0,
  4109. F = 0
  4110. ;(d = this.ClipDiagonalBound(N - B, B, N, c)),
  4111. (C = this.ClipDiagonalBound(N + B, B, N, c))
  4112. for (let T = d; T <= C; T += 2) {
  4113. T === d || (T < C && l[T - 1] < l[T + 1]) ? (y = l[T + 1]) : (y = l[T - 1] + 1),
  4114. (_ = y - (T - N) - M)
  4115. const W = y
  4116. for (; y < b && _ < v && this.ElementsAreEqual(y + 1, _ + 1); ) y++, _++
  4117. if (
  4118. ((l[T] = y),
  4119. y + _ > H + F && ((H = y), (F = _)),
  4120. !I && Math.abs(T - A) <= B - 1 && y >= m[T])
  4121. )
  4122. return (
  4123. (g[0] = y),
  4124. (S[0] = _),
  4125. W <= m[T] && 1447 > 0 && B <= 1447 + 1
  4126. ? this.WALKTRACE(N, d, C, M, A, r, u, k, l, m, y, b, g, _, v, S, I, E)
  4127. : null
  4128. )
  4129. }
  4130. const U = (H - e + (F - f) - B) / 2
  4131. if (
  4132. this.ContinueProcessingPredicate !== null &&
  4133. !this.ContinueProcessingPredicate(H, U)
  4134. )
  4135. return (
  4136. (E[0] = !0),
  4137. (g[0] = H),
  4138. (S[0] = F),
  4139. U > 0 && 1447 > 0 && B <= 1447 + 1
  4140. ? this.WALKTRACE(N, d, C, M, A, r, u, k, l, m, y, b, g, _, v, S, I, E)
  4141. : (e++, f++, [new R.DiffChange(e, b - e + 1, f, v - f + 1)])
  4142. )
  4143. ;(r = this.ClipDiagonalBound(A - B, B, A, c)),
  4144. (u = this.ClipDiagonalBound(A + B, B, A, c))
  4145. for (let T = r; T <= u; T += 2) {
  4146. T === r || (T < u && m[T - 1] >= m[T + 1]) ? (y = m[T + 1] - 1) : (y = m[T - 1]),
  4147. (_ = y - (T - A) - k)
  4148. const W = y
  4149. for (; y > e && _ > f && this.ElementsAreEqual(y, _); ) y--, _--
  4150. if (((m[T] = y), I && Math.abs(T - N) <= B && y <= l[T]))
  4151. return (
  4152. (g[0] = y),
  4153. (S[0] = _),
  4154. W >= l[T] && 1447 > 0 && B <= 1447 + 1
  4155. ? this.WALKTRACE(N, d, C, M, A, r, u, k, l, m, y, b, g, _, v, S, I, E)
  4156. : null
  4157. )
  4158. }
  4159. if (B <= 1447) {
  4160. let T = new Int32Array(C - d + 2)
  4161. ;(T[0] = N - d + 1),
  4162. L.Copy2(l, d, T, 1, C - d + 1),
  4163. this.m_forwardHistory.push(T),
  4164. (T = new Int32Array(u - r + 2)),
  4165. (T[0] = A - r + 1),
  4166. L.Copy2(m, r, T, 1, u - r + 1),
  4167. this.m_reverseHistory.push(T)
  4168. }
  4169. }
  4170. return this.WALKTRACE(N, d, C, M, A, r, u, k, l, m, y, b, g, _, v, S, I, E)
  4171. }
  4172. PrettifyChanges(e) {
  4173. for (let b = 0; b < e.length; b++) {
  4174. const f = e[b],
  4175. v = b < e.length - 1 ? e[b + 1].originalStart : this._originalElementsOrHash.length,
  4176. g = b < e.length - 1 ? e[b + 1].modifiedStart : this._modifiedElementsOrHash.length,
  4177. S = f.originalLength > 0,
  4178. E = f.modifiedLength > 0
  4179. for (
  4180. ;
  4181. f.originalStart + f.originalLength < v &&
  4182. f.modifiedStart + f.modifiedLength < g &&
  4183. (!S ||
  4184. this.OriginalElementsAreEqual(
  4185. f.originalStart,
  4186. f.originalStart + f.originalLength
  4187. )) &&
  4188. (!E ||
  4189. this.ModifiedElementsAreEqual(f.modifiedStart, f.modifiedStart + f.modifiedLength));
  4190. ) {
  4191. const _ = this.ElementsAreStrictEqual(f.originalStart, f.modifiedStart)
  4192. if (
  4193. this.ElementsAreStrictEqual(
  4194. f.originalStart + f.originalLength,
  4195. f.modifiedStart + f.modifiedLength
  4196. ) &&
  4197. !_
  4198. )
  4199. break
  4200. f.originalStart++, f.modifiedStart++
  4201. }
  4202. const y = [null]
  4203. if (b < e.length - 1 && this.ChangesOverlap(e[b], e[b + 1], y)) {
  4204. ;(e[b] = y[0]), e.splice(b + 1, 1), b--
  4205. continue
  4206. }
  4207. }
  4208. for (let b = e.length - 1; b >= 0; b--) {
  4209. const f = e[b]
  4210. let v = 0,
  4211. g = 0
  4212. if (b > 0) {
  4213. const C = e[b - 1]
  4214. ;(v = C.originalStart + C.originalLength), (g = C.modifiedStart + C.modifiedLength)
  4215. }
  4216. const S = f.originalLength > 0,
  4217. E = f.modifiedLength > 0
  4218. let y = 0,
  4219. _ = this._boundaryScore(
  4220. f.originalStart,
  4221. f.originalLength,
  4222. f.modifiedStart,
  4223. f.modifiedLength
  4224. )
  4225. for (let C = 1; ; C++) {
  4226. const r = f.originalStart - C,
  4227. u = f.modifiedStart - C
  4228. if (
  4229. r < v ||
  4230. u < g ||
  4231. (S && !this.OriginalElementsAreEqual(r, r + f.originalLength)) ||
  4232. (E && !this.ModifiedElementsAreEqual(u, u + f.modifiedLength))
  4233. )
  4234. break
  4235. const c =
  4236. (r === v && u === g ? 5 : 0) +
  4237. this._boundaryScore(r, f.originalLength, u, f.modifiedLength)
  4238. c > _ && ((_ = c), (y = C))
  4239. }
  4240. ;(f.originalStart -= y), (f.modifiedStart -= y)
  4241. const d = [null]
  4242. if (b > 0 && this.ChangesOverlap(e[b - 1], e[b], d)) {
  4243. ;(e[b - 1] = d[0]), e.splice(b, 1), b++
  4244. continue
  4245. }
  4246. }
  4247. if (this._hasStrings)
  4248. for (let b = 1, f = e.length; b < f; b++) {
  4249. const v = e[b - 1],
  4250. g = e[b],
  4251. S = g.originalStart - v.originalStart - v.originalLength,
  4252. E = v.originalStart,
  4253. y = g.originalStart + g.originalLength,
  4254. _ = y - E,
  4255. d = v.modifiedStart,
  4256. C = g.modifiedStart + g.modifiedLength,
  4257. r = C - d
  4258. if (S < 5 && _ < 20 && r < 20) {
  4259. const u = this._findBetterContiguousSequence(E, _, d, r, S)
  4260. if (u) {
  4261. const [o, c] = u
  4262. ;(o !== v.originalStart + v.originalLength ||
  4263. c !== v.modifiedStart + v.modifiedLength) &&
  4264. ((v.originalLength = o - v.originalStart),
  4265. (v.modifiedLength = c - v.modifiedStart),
  4266. (g.originalStart = o + S),
  4267. (g.modifiedStart = c + S),
  4268. (g.originalLength = y - g.originalStart),
  4269. (g.modifiedLength = C - g.modifiedStart))
  4270. }
  4271. }
  4272. }
  4273. return e
  4274. }
  4275. _findBetterContiguousSequence(e, b, f, v, g) {
  4276. if (b < g || v < g) return null
  4277. const S = e + b - g + 1,
  4278. E = f + v - g + 1
  4279. let y = 0,
  4280. _ = 0,
  4281. d = 0
  4282. for (let C = e; C < S; C++)
  4283. for (let r = f; r < E; r++) {
  4284. const u = this._contiguousSequenceScore(C, r, g)
  4285. u > 0 && u > y && ((y = u), (_ = C), (d = r))
  4286. }
  4287. return y > 0 ? [_, d] : null
  4288. }
  4289. _contiguousSequenceScore(e, b, f) {
  4290. let v = 0
  4291. for (let g = 0; g < f; g++) {
  4292. if (!this.ElementsAreEqual(e + g, b + g)) return 0
  4293. v += this._originalStringElements[e + g].length
  4294. }
  4295. return v
  4296. }
  4297. _OriginalIsBoundary(e) {
  4298. return e <= 0 || e >= this._originalElementsOrHash.length - 1
  4299. ? !0
  4300. : this._hasStrings && /^\s*$/.test(this._originalStringElements[e])
  4301. }
  4302. _OriginalRegionIsBoundary(e, b) {
  4303. if (this._OriginalIsBoundary(e) || this._OriginalIsBoundary(e - 1)) return !0
  4304. if (b > 0) {
  4305. const f = e + b
  4306. if (this._OriginalIsBoundary(f - 1) || this._OriginalIsBoundary(f)) return !0
  4307. }
  4308. return !1
  4309. }
  4310. _ModifiedIsBoundary(e) {
  4311. return e <= 0 || e >= this._modifiedElementsOrHash.length - 1
  4312. ? !0
  4313. : this._hasStrings && /^\s*$/.test(this._modifiedStringElements[e])
  4314. }
  4315. _ModifiedRegionIsBoundary(e, b) {
  4316. if (this._ModifiedIsBoundary(e) || this._ModifiedIsBoundary(e - 1)) return !0
  4317. if (b > 0) {
  4318. const f = e + b
  4319. if (this._ModifiedIsBoundary(f - 1) || this._ModifiedIsBoundary(f)) return !0
  4320. }
  4321. return !1
  4322. }
  4323. _boundaryScore(e, b, f, v) {
  4324. const g = this._OriginalRegionIsBoundary(e, b) ? 1 : 0,
  4325. S = this._ModifiedRegionIsBoundary(f, v) ? 1 : 0
  4326. return g + S
  4327. }
  4328. ConcatenateChanges(e, b) {
  4329. const f = []
  4330. if (e.length === 0 || b.length === 0) return b.length > 0 ? b : e
  4331. if (this.ChangesOverlap(e[e.length - 1], b[0], f)) {
  4332. const v = new Array(e.length + b.length - 1)
  4333. return (
  4334. L.Copy(e, 0, v, 0, e.length - 1),
  4335. (v[e.length - 1] = f[0]),
  4336. L.Copy(b, 1, v, e.length, b.length - 1),
  4337. v
  4338. )
  4339. } else {
  4340. const v = new Array(e.length + b.length)
  4341. return L.Copy(e, 0, v, 0, e.length), L.Copy(b, 0, v, e.length, b.length), v
  4342. }
  4343. }
  4344. ChangesOverlap(e, b, f) {
  4345. if (
  4346. (p.Assert(
  4347. e.originalStart <= b.originalStart,
  4348. 'Left change is not less than or equal to right change'
  4349. ),
  4350. p.Assert(
  4351. e.modifiedStart <= b.modifiedStart,
  4352. 'Left change is not less than or equal to right change'
  4353. ),
  4354. e.originalStart + e.originalLength >= b.originalStart ||
  4355. e.modifiedStart + e.modifiedLength >= b.modifiedStart)
  4356. ) {
  4357. const v = e.originalStart
  4358. let g = e.originalLength
  4359. const S = e.modifiedStart
  4360. let E = e.modifiedLength
  4361. return (
  4362. e.originalStart + e.originalLength >= b.originalStart &&
  4363. (g = b.originalStart + b.originalLength - e.originalStart),
  4364. e.modifiedStart + e.modifiedLength >= b.modifiedStart &&
  4365. (E = b.modifiedStart + b.modifiedLength - e.modifiedStart),
  4366. (f[0] = new R.DiffChange(v, g, S, E)),
  4367. !0
  4368. )
  4369. } else return (f[0] = null), !1
  4370. }
  4371. ClipDiagonalBound(e, b, f, v) {
  4372. if (e >= 0 && e < v) return e
  4373. const g = f,
  4374. S = v - f - 1,
  4375. E = b % 2 === 0
  4376. if (e < 0) {
  4377. const y = g % 2 === 0
  4378. return E === y ? 0 : 1
  4379. } else {
  4380. const y = S % 2 === 0
  4381. return E === y ? v - 1 : v - 2
  4382. }
  4383. }
  4384. }
  4385. n.LcsDiff = a
  4386. }),
  4387. Q(Y[18], X([0, 1]), function (x, n) {
  4388. 'use strict'
  4389. Object.defineProperty(n, '__esModule', { value: !0 }),
  4390. (n.withNullAsUndefined =
  4391. n.validateConstraint =
  4392. n.validateConstraints =
  4393. n.isFunction =
  4394. n.assertIsDefined =
  4395. n.assertType =
  4396. n.isUndefinedOrNull =
  4397. n.isDefined =
  4398. n.isUndefined =
  4399. n.isBoolean =
  4400. n.isIterable =
  4401. n.isNumber =
  4402. n.isTypedArray =
  4403. n.isObject =
  4404. n.isString =
  4405. void 0)
  4406. function R(E) {
  4407. return typeof E == 'string'
  4408. }
  4409. n.isString = R
  4410. function D(E) {
  4411. return (
  4412. typeof E == 'object' &&
  4413. E !== null &&
  4414. !Array.isArray(E) &&
  4415. !(E instanceof RegExp) &&
  4416. !(E instanceof Date)
  4417. )
  4418. }
  4419. n.isObject = D
  4420. function i(E) {
  4421. const y = Object.getPrototypeOf(Uint8Array)
  4422. return typeof E == 'object' && E instanceof y
  4423. }
  4424. n.isTypedArray = i
  4425. function s(E) {
  4426. return typeof E == 'number' && !isNaN(E)
  4427. }
  4428. n.isNumber = s
  4429. function p(E) {
  4430. return !!E && typeof E[Symbol.iterator] == 'function'
  4431. }
  4432. n.isIterable = p
  4433. function L(E) {
  4434. return E === !0 || E === !1
  4435. }
  4436. n.isBoolean = L
  4437. function h(E) {
  4438. return typeof E > 'u'
  4439. }
  4440. n.isUndefined = h
  4441. function a(E) {
  4442. return !w(E)
  4443. }
  4444. n.isDefined = a
  4445. function w(E) {
  4446. return h(E) || E === null
  4447. }
  4448. n.isUndefinedOrNull = w
  4449. function e(E, y) {
  4450. if (!E) throw new Error(y ? `Unexpected type, expected '${y}'` : 'Unexpected type')
  4451. }
  4452. n.assertType = e
  4453. function b(E) {
  4454. if (w(E)) throw new Error('Assertion Failed: argument is undefined or null')
  4455. return E
  4456. }
  4457. n.assertIsDefined = b
  4458. function f(E) {
  4459. return typeof E == 'function'
  4460. }
  4461. n.isFunction = f
  4462. function v(E, y) {
  4463. const _ = Math.min(E.length, y.length)
  4464. for (let d = 0; d < _; d++) g(E[d], y[d])
  4465. }
  4466. n.validateConstraints = v
  4467. function g(E, y) {
  4468. if (R(y)) {
  4469. if (typeof E !== y) throw new Error(`argument does not match constraint: typeof ${y}`)
  4470. } else if (f(y)) {
  4471. try {
  4472. if (E instanceof y) return
  4473. } catch {}
  4474. if ((!w(E) && E.constructor === y) || (y.length === 1 && y.call(void 0, E) === !0)) return
  4475. throw new Error(
  4476. 'argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true'
  4477. )
  4478. }
  4479. }
  4480. n.validateConstraint = g
  4481. function S(E) {
  4482. return E === null ? void 0 : E
  4483. }
  4484. n.withNullAsUndefined = S
  4485. }),
  4486. Q(Y[32], X([0, 1, 18]), function (x, n, R) {
  4487. 'use strict'
  4488. Object.defineProperty(n, '__esModule', { value: !0 }),
  4489. (n.Codicon = n.getCodiconFontCharacters = void 0)
  4490. const D = Object.create(null)
  4491. function i(p, L) {
  4492. if ((0, R.isString)(L)) {
  4493. const h = D[L]
  4494. if (h === void 0) throw new Error(`${p} references an unknown codicon: ${L}`)
  4495. L = h
  4496. }
  4497. return (D[p] = L), { id: p }
  4498. }
  4499. function s() {
  4500. return D
  4501. }
  4502. ;(n.getCodiconFontCharacters = s),
  4503. (n.Codicon = {
  4504. add: i('add', 6e4),
  4505. plus: i('plus', 6e4),
  4506. gistNew: i('gist-new', 6e4),
  4507. repoCreate: i('repo-create', 6e4),
  4508. lightbulb: i('lightbulb', 60001),
  4509. lightBulb: i('light-bulb', 60001),
  4510. repo: i('repo', 60002),
  4511. repoDelete: i('repo-delete', 60002),
  4512. gistFork: i('gist-fork', 60003),
  4513. repoForked: i('repo-forked', 60003),
  4514. gitPullRequest: i('git-pull-request', 60004),
  4515. gitPullRequestAbandoned: i('git-pull-request-abandoned', 60004),
  4516. recordKeys: i('record-keys', 60005),
  4517. keyboard: i('keyboard', 60005),
  4518. tag: i('tag', 60006),
  4519. tagAdd: i('tag-add', 60006),
  4520. tagRemove: i('tag-remove', 60006),
  4521. person: i('person', 60007),
  4522. personFollow: i('person-follow', 60007),
  4523. personOutline: i('person-outline', 60007),
  4524. personFilled: i('person-filled', 60007),
  4525. gitBranch: i('git-branch', 60008),
  4526. gitBranchCreate: i('git-branch-create', 60008),
  4527. gitBranchDelete: i('git-branch-delete', 60008),
  4528. sourceControl: i('source-control', 60008),
  4529. mirror: i('mirror', 60009),
  4530. mirrorPublic: i('mirror-public', 60009),
  4531. star: i('star', 60010),
  4532. starAdd: i('star-add', 60010),
  4533. starDelete: i('star-delete', 60010),
  4534. starEmpty: i('star-empty', 60010),
  4535. comment: i('comment', 60011),
  4536. commentAdd: i('comment-add', 60011),
  4537. alert: i('alert', 60012),
  4538. warning: i('warning', 60012),
  4539. search: i('search', 60013),
  4540. searchSave: i('search-save', 60013),
  4541. logOut: i('log-out', 60014),
  4542. signOut: i('sign-out', 60014),
  4543. logIn: i('log-in', 60015),
  4544. signIn: i('sign-in', 60015),
  4545. eye: i('eye', 60016),
  4546. eyeUnwatch: i('eye-unwatch', 60016),
  4547. eyeWatch: i('eye-watch', 60016),
  4548. circleFilled: i('circle-filled', 60017),
  4549. primitiveDot: i('primitive-dot', 60017),
  4550. closeDirty: i('close-dirty', 60017),
  4551. debugBreakpoint: i('debug-breakpoint', 60017),
  4552. debugBreakpointDisabled: i('debug-breakpoint-disabled', 60017),
  4553. debugHint: i('debug-hint', 60017),
  4554. primitiveSquare: i('primitive-square', 60018),
  4555. edit: i('edit', 60019),
  4556. pencil: i('pencil', 60019),
  4557. info: i('info', 60020),
  4558. issueOpened: i('issue-opened', 60020),
  4559. gistPrivate: i('gist-private', 60021),
  4560. gitForkPrivate: i('git-fork-private', 60021),
  4561. lock: i('lock', 60021),
  4562. mirrorPrivate: i('mirror-private', 60021),
  4563. close: i('close', 60022),
  4564. removeClose: i('remove-close', 60022),
  4565. x: i('x', 60022),
  4566. repoSync: i('repo-sync', 60023),
  4567. sync: i('sync', 60023),
  4568. clone: i('clone', 60024),
  4569. desktopDownload: i('desktop-download', 60024),
  4570. beaker: i('beaker', 60025),
  4571. microscope: i('microscope', 60025),
  4572. vm: i('vm', 60026),
  4573. deviceDesktop: i('device-desktop', 60026),
  4574. file: i('file', 60027),
  4575. fileText: i('file-text', 60027),
  4576. more: i('more', 60028),
  4577. ellipsis: i('ellipsis', 60028),
  4578. kebabHorizontal: i('kebab-horizontal', 60028),
  4579. mailReply: i('mail-reply', 60029),
  4580. reply: i('reply', 60029),
  4581. organization: i('organization', 60030),
  4582. organizationFilled: i('organization-filled', 60030),
  4583. organizationOutline: i('organization-outline', 60030),
  4584. newFile: i('new-file', 60031),
  4585. fileAdd: i('file-add', 60031),
  4586. newFolder: i('new-folder', 60032),
  4587. fileDirectoryCreate: i('file-directory-create', 60032),
  4588. trash: i('trash', 60033),
  4589. trashcan: i('trashcan', 60033),
  4590. history: i('history', 60034),
  4591. clock: i('clock', 60034),
  4592. folder: i('folder', 60035),
  4593. fileDirectory: i('file-directory', 60035),
  4594. symbolFolder: i('symbol-folder', 60035),
  4595. logoGithub: i('logo-github', 60036),
  4596. markGithub: i('mark-github', 60036),
  4597. github: i('github', 60036),
  4598. terminal: i('terminal', 60037),
  4599. console: i('console', 60037),
  4600. repl: i('repl', 60037),
  4601. zap: i('zap', 60038),
  4602. symbolEvent: i('symbol-event', 60038),
  4603. error: i('error', 60039),
  4604. stop: i('stop', 60039),
  4605. variable: i('variable', 60040),
  4606. symbolVariable: i('symbol-variable', 60040),
  4607. array: i('array', 60042),
  4608. symbolArray: i('symbol-array', 60042),
  4609. symbolModule: i('symbol-module', 60043),
  4610. symbolPackage: i('symbol-package', 60043),
  4611. symbolNamespace: i('symbol-namespace', 60043),
  4612. symbolObject: i('symbol-object', 60043),
  4613. symbolMethod: i('symbol-method', 60044),
  4614. symbolFunction: i('symbol-function', 60044),
  4615. symbolConstructor: i('symbol-constructor', 60044),
  4616. symbolBoolean: i('symbol-boolean', 60047),
  4617. symbolNull: i('symbol-null', 60047),
  4618. symbolNumeric: i('symbol-numeric', 60048),
  4619. symbolNumber: i('symbol-number', 60048),
  4620. symbolStructure: i('symbol-structure', 60049),
  4621. symbolStruct: i('symbol-struct', 60049),
  4622. symbolParameter: i('symbol-parameter', 60050),
  4623. symbolTypeParameter: i('symbol-type-parameter', 60050),
  4624. symbolKey: i('symbol-key', 60051),
  4625. symbolText: i('symbol-text', 60051),
  4626. symbolReference: i('symbol-reference', 60052),
  4627. goToFile: i('go-to-file', 60052),
  4628. symbolEnum: i('symbol-enum', 60053),
  4629. symbolValue: i('symbol-value', 60053),
  4630. symbolRuler: i('symbol-ruler', 60054),
  4631. symbolUnit: i('symbol-unit', 60054),
  4632. activateBreakpoints: i('activate-breakpoints', 60055),
  4633. archive: i('archive', 60056),
  4634. arrowBoth: i('arrow-both', 60057),
  4635. arrowDown: i('arrow-down', 60058),
  4636. arrowLeft: i('arrow-left', 60059),
  4637. arrowRight: i('arrow-right', 60060),
  4638. arrowSmallDown: i('arrow-small-down', 60061),
  4639. arrowSmallLeft: i('arrow-small-left', 60062),
  4640. arrowSmallRight: i('arrow-small-right', 60063),
  4641. arrowSmallUp: i('arrow-small-up', 60064),
  4642. arrowUp: i('arrow-up', 60065),
  4643. bell: i('bell', 60066),
  4644. bold: i('bold', 60067),
  4645. book: i('book', 60068),
  4646. bookmark: i('bookmark', 60069),
  4647. debugBreakpointConditionalUnverified: i('debug-breakpoint-conditional-unverified', 60070),
  4648. debugBreakpointConditional: i('debug-breakpoint-conditional', 60071),
  4649. debugBreakpointConditionalDisabled: i('debug-breakpoint-conditional-disabled', 60071),
  4650. debugBreakpointDataUnverified: i('debug-breakpoint-data-unverified', 60072),
  4651. debugBreakpointData: i('debug-breakpoint-data', 60073),
  4652. debugBreakpointDataDisabled: i('debug-breakpoint-data-disabled', 60073),
  4653. debugBreakpointLogUnverified: i('debug-breakpoint-log-unverified', 60074),
  4654. debugBreakpointLog: i('debug-breakpoint-log', 60075),
  4655. debugBreakpointLogDisabled: i('debug-breakpoint-log-disabled', 60075),
  4656. briefcase: i('briefcase', 60076),
  4657. broadcast: i('broadcast', 60077),
  4658. browser: i('browser', 60078),
  4659. bug: i('bug', 60079),
  4660. calendar: i('calendar', 60080),
  4661. caseSensitive: i('case-sensitive', 60081),
  4662. check: i('check', 60082),
  4663. checklist: i('checklist', 60083),
  4664. chevronDown: i('chevron-down', 60084),
  4665. dropDownButton: i('drop-down-button', 60084),
  4666. chevronLeft: i('chevron-left', 60085),
  4667. chevronRight: i('chevron-right', 60086),
  4668. chevronUp: i('chevron-up', 60087),
  4669. chromeClose: i('chrome-close', 60088),
  4670. chromeMaximize: i('chrome-maximize', 60089),
  4671. chromeMinimize: i('chrome-minimize', 60090),
  4672. chromeRestore: i('chrome-restore', 60091),
  4673. circle: i('circle', 60092),
  4674. circleOutline: i('circle-outline', 60092),
  4675. debugBreakpointUnverified: i('debug-breakpoint-unverified', 60092),
  4676. circleSlash: i('circle-slash', 60093),
  4677. circuitBoard: i('circuit-board', 60094),
  4678. clearAll: i('clear-all', 60095),
  4679. clippy: i('clippy', 60096),
  4680. closeAll: i('close-all', 60097),
  4681. cloudDownload: i('cloud-download', 60098),
  4682. cloudUpload: i('cloud-upload', 60099),
  4683. code: i('code', 60100),
  4684. collapseAll: i('collapse-all', 60101),
  4685. colorMode: i('color-mode', 60102),
  4686. commentDiscussion: i('comment-discussion', 60103),
  4687. compareChanges: i('compare-changes', 60157),
  4688. creditCard: i('credit-card', 60105),
  4689. dash: i('dash', 60108),
  4690. dashboard: i('dashboard', 60109),
  4691. database: i('database', 60110),
  4692. debugContinue: i('debug-continue', 60111),
  4693. debugDisconnect: i('debug-disconnect', 60112),
  4694. debugPause: i('debug-pause', 60113),
  4695. debugRestart: i('debug-restart', 60114),
  4696. debugStart: i('debug-start', 60115),
  4697. debugStepInto: i('debug-step-into', 60116),
  4698. debugStepOut: i('debug-step-out', 60117),
  4699. debugStepOver: i('debug-step-over', 60118),
  4700. debugStop: i('debug-stop', 60119),
  4701. debug: i('debug', 60120),
  4702. deviceCameraVideo: i('device-camera-video', 60121),
  4703. deviceCamera: i('device-camera', 60122),
  4704. deviceMobile: i('device-mobile', 60123),
  4705. diffAdded: i('diff-added', 60124),
  4706. diffIgnored: i('diff-ignored', 60125),
  4707. diffModified: i('diff-modified', 60126),
  4708. diffRemoved: i('diff-removed', 60127),
  4709. diffRenamed: i('diff-renamed', 60128),
  4710. diff: i('diff', 60129),
  4711. discard: i('discard', 60130),
  4712. editorLayout: i('editor-layout', 60131),
  4713. emptyWindow: i('empty-window', 60132),
  4714. exclude: i('exclude', 60133),
  4715. extensions: i('extensions', 60134),
  4716. eyeClosed: i('eye-closed', 60135),
  4717. fileBinary: i('file-binary', 60136),
  4718. fileCode: i('file-code', 60137),
  4719. fileMedia: i('file-media', 60138),
  4720. filePdf: i('file-pdf', 60139),
  4721. fileSubmodule: i('file-submodule', 60140),
  4722. fileSymlinkDirectory: i('file-symlink-directory', 60141),
  4723. fileSymlinkFile: i('file-symlink-file', 60142),
  4724. fileZip: i('file-zip', 60143),
  4725. files: i('files', 60144),
  4726. filter: i('filter', 60145),
  4727. flame: i('flame', 60146),
  4728. foldDown: i('fold-down', 60147),
  4729. foldUp: i('fold-up', 60148),
  4730. fold: i('fold', 60149),
  4731. folderActive: i('folder-active', 60150),
  4732. folderOpened: i('folder-opened', 60151),
  4733. gear: i('gear', 60152),
  4734. gift: i('gift', 60153),
  4735. gistSecret: i('gist-secret', 60154),
  4736. gist: i('gist', 60155),
  4737. gitCommit: i('git-commit', 60156),
  4738. gitCompare: i('git-compare', 60157),
  4739. gitMerge: i('git-merge', 60158),
  4740. githubAction: i('github-action', 60159),
  4741. githubAlt: i('github-alt', 60160),
  4742. globe: i('globe', 60161),
  4743. grabber: i('grabber', 60162),
  4744. graph: i('graph', 60163),
  4745. gripper: i('gripper', 60164),
  4746. heart: i('heart', 60165),
  4747. home: i('home', 60166),
  4748. horizontalRule: i('horizontal-rule', 60167),
  4749. hubot: i('hubot', 60168),
  4750. inbox: i('inbox', 60169),
  4751. issueClosed: i('issue-closed', 60324),
  4752. issueReopened: i('issue-reopened', 60171),
  4753. issues: i('issues', 60172),
  4754. italic: i('italic', 60173),
  4755. jersey: i('jersey', 60174),
  4756. json: i('json', 60175),
  4757. bracket: i('bracket', 60175),
  4758. kebabVertical: i('kebab-vertical', 60176),
  4759. key: i('key', 60177),
  4760. law: i('law', 60178),
  4761. lightbulbAutofix: i('lightbulb-autofix', 60179),
  4762. linkExternal: i('link-external', 60180),
  4763. link: i('link', 60181),
  4764. listOrdered: i('list-ordered', 60182),
  4765. listUnordered: i('list-unordered', 60183),
  4766. liveShare: i('live-share', 60184),
  4767. loading: i('loading', 60185),
  4768. location: i('location', 60186),
  4769. mailRead: i('mail-read', 60187),
  4770. mail: i('mail', 60188),
  4771. markdown: i('markdown', 60189),
  4772. megaphone: i('megaphone', 60190),
  4773. mention: i('mention', 60191),
  4774. milestone: i('milestone', 60192),
  4775. mortarBoard: i('mortar-board', 60193),
  4776. move: i('move', 60194),
  4777. multipleWindows: i('multiple-windows', 60195),
  4778. mute: i('mute', 60196),
  4779. noNewline: i('no-newline', 60197),
  4780. note: i('note', 60198),
  4781. octoface: i('octoface', 60199),
  4782. openPreview: i('open-preview', 60200),
  4783. package_: i('package', 60201),
  4784. paintcan: i('paintcan', 60202),
  4785. pin: i('pin', 60203),
  4786. play: i('play', 60204),
  4787. run: i('run', 60204),
  4788. plug: i('plug', 60205),
  4789. preserveCase: i('preserve-case', 60206),
  4790. preview: i('preview', 60207),
  4791. project: i('project', 60208),
  4792. pulse: i('pulse', 60209),
  4793. question: i('question', 60210),
  4794. quote: i('quote', 60211),
  4795. radioTower: i('radio-tower', 60212),
  4796. reactions: i('reactions', 60213),
  4797. references: i('references', 60214),
  4798. refresh: i('refresh', 60215),
  4799. regex: i('regex', 60216),
  4800. remoteExplorer: i('remote-explorer', 60217),
  4801. remote: i('remote', 60218),
  4802. remove: i('remove', 60219),
  4803. replaceAll: i('replace-all', 60220),
  4804. replace: i('replace', 60221),
  4805. repoClone: i('repo-clone', 60222),
  4806. repoForcePush: i('repo-force-push', 60223),
  4807. repoPull: i('repo-pull', 60224),
  4808. repoPush: i('repo-push', 60225),
  4809. report: i('report', 60226),
  4810. requestChanges: i('request-changes', 60227),
  4811. rocket: i('rocket', 60228),
  4812. rootFolderOpened: i('root-folder-opened', 60229),
  4813. rootFolder: i('root-folder', 60230),
  4814. rss: i('rss', 60231),
  4815. ruby: i('ruby', 60232),
  4816. saveAll: i('save-all', 60233),
  4817. saveAs: i('save-as', 60234),
  4818. save: i('save', 60235),
  4819. screenFull: i('screen-full', 60236),
  4820. screenNormal: i('screen-normal', 60237),
  4821. searchStop: i('search-stop', 60238),
  4822. server: i('server', 60240),
  4823. settingsGear: i('settings-gear', 60241),
  4824. settings: i('settings', 60242),
  4825. shield: i('shield', 60243),
  4826. smiley: i('smiley', 60244),
  4827. sortPrecedence: i('sort-precedence', 60245),
  4828. splitHorizontal: i('split-horizontal', 60246),
  4829. splitVertical: i('split-vertical', 60247),
  4830. squirrel: i('squirrel', 60248),
  4831. starFull: i('star-full', 60249),
  4832. starHalf: i('star-half', 60250),
  4833. symbolClass: i('symbol-class', 60251),
  4834. symbolColor: i('symbol-color', 60252),
  4835. symbolCustomColor: i('symbol-customcolor', 60252),
  4836. symbolConstant: i('symbol-constant', 60253),
  4837. symbolEnumMember: i('symbol-enum-member', 60254),
  4838. symbolField: i('symbol-field', 60255),
  4839. symbolFile: i('symbol-file', 60256),
  4840. symbolInterface: i('symbol-interface', 60257),
  4841. symbolKeyword: i('symbol-keyword', 60258),
  4842. symbolMisc: i('symbol-misc', 60259),
  4843. symbolOperator: i('symbol-operator', 60260),
  4844. symbolProperty: i('symbol-property', 60261),
  4845. wrench: i('wrench', 60261),
  4846. wrenchSubaction: i('wrench-subaction', 60261),
  4847. symbolSnippet: i('symbol-snippet', 60262),
  4848. tasklist: i('tasklist', 60263),
  4849. telescope: i('telescope', 60264),
  4850. textSize: i('text-size', 60265),
  4851. threeBars: i('three-bars', 60266),
  4852. thumbsdown: i('thumbsdown', 60267),
  4853. thumbsup: i('thumbsup', 60268),
  4854. tools: i('tools', 60269),
  4855. triangleDown: i('triangle-down', 60270),
  4856. triangleLeft: i('triangle-left', 60271),
  4857. triangleRight: i('triangle-right', 60272),
  4858. triangleUp: i('triangle-up', 60273),
  4859. twitter: i('twitter', 60274),
  4860. unfold: i('unfold', 60275),
  4861. unlock: i('unlock', 60276),
  4862. unmute: i('unmute', 60277),
  4863. unverified: i('unverified', 60278),
  4864. verified: i('verified', 60279),
  4865. versions: i('versions', 60280),
  4866. vmActive: i('vm-active', 60281),
  4867. vmOutline: i('vm-outline', 60282),
  4868. vmRunning: i('vm-running', 60283),
  4869. watch: i('watch', 60284),
  4870. whitespace: i('whitespace', 60285),
  4871. wholeWord: i('whole-word', 60286),
  4872. window: i('window', 60287),
  4873. wordWrap: i('word-wrap', 60288),
  4874. zoomIn: i('zoom-in', 60289),
  4875. zoomOut: i('zoom-out', 60290),
  4876. listFilter: i('list-filter', 60291),
  4877. listFlat: i('list-flat', 60292),
  4878. listSelection: i('list-selection', 60293),
  4879. selection: i('selection', 60293),
  4880. listTree: i('list-tree', 60294),
  4881. debugBreakpointFunctionUnverified: i('debug-breakpoint-function-unverified', 60295),
  4882. debugBreakpointFunction: i('debug-breakpoint-function', 60296),
  4883. debugBreakpointFunctionDisabled: i('debug-breakpoint-function-disabled', 60296),
  4884. debugStackframeActive: i('debug-stackframe-active', 60297),
  4885. circleSmallFilled: i('circle-small-filled', 60298),
  4886. debugStackframeDot: i('debug-stackframe-dot', 60298),
  4887. debugStackframe: i('debug-stackframe', 60299),
  4888. debugStackframeFocused: i('debug-stackframe-focused', 60299),
  4889. debugBreakpointUnsupported: i('debug-breakpoint-unsupported', 60300),
  4890. symbolString: i('symbol-string', 60301),
  4891. debugReverseContinue: i('debug-reverse-continue', 60302),
  4892. debugStepBack: i('debug-step-back', 60303),
  4893. debugRestartFrame: i('debug-restart-frame', 60304),
  4894. callIncoming: i('call-incoming', 60306),
  4895. callOutgoing: i('call-outgoing', 60307),
  4896. menu: i('menu', 60308),
  4897. expandAll: i('expand-all', 60309),
  4898. feedback: i('feedback', 60310),
  4899. groupByRefType: i('group-by-ref-type', 60311),
  4900. ungroupByRefType: i('ungroup-by-ref-type', 60312),
  4901. account: i('account', 60313),
  4902. bellDot: i('bell-dot', 60314),
  4903. debugConsole: i('debug-console', 60315),
  4904. library: i('library', 60316),
  4905. output: i('output', 60317),
  4906. runAll: i('run-all', 60318),
  4907. syncIgnored: i('sync-ignored', 60319),
  4908. pinned: i('pinned', 60320),
  4909. githubInverted: i('github-inverted', 60321),
  4910. debugAlt: i('debug-alt', 60305),
  4911. serverProcess: i('server-process', 60322),
  4912. serverEnvironment: i('server-environment', 60323),
  4913. pass: i('pass', 60324),
  4914. stopCircle: i('stop-circle', 60325),
  4915. playCircle: i('play-circle', 60326),
  4916. record: i('record', 60327),
  4917. debugAltSmall: i('debug-alt-small', 60328),
  4918. vmConnect: i('vm-connect', 60329),
  4919. cloud: i('cloud', 60330),
  4920. merge: i('merge', 60331),
  4921. exportIcon: i('export', 60332),
  4922. graphLeft: i('graph-left', 60333),
  4923. magnet: i('magnet', 60334),
  4924. notebook: i('notebook', 60335),
  4925. redo: i('redo', 60336),
  4926. checkAll: i('check-all', 60337),
  4927. pinnedDirty: i('pinned-dirty', 60338),
  4928. passFilled: i('pass-filled', 60339),
  4929. circleLargeFilled: i('circle-large-filled', 60340),
  4930. circleLarge: i('circle-large', 60341),
  4931. circleLargeOutline: i('circle-large-outline', 60341),
  4932. combine: i('combine', 60342),
  4933. gather: i('gather', 60342),
  4934. table: i('table', 60343),
  4935. variableGroup: i('variable-group', 60344),
  4936. typeHierarchy: i('type-hierarchy', 60345),
  4937. typeHierarchySub: i('type-hierarchy-sub', 60346),
  4938. typeHierarchySuper: i('type-hierarchy-super', 60347),
  4939. gitPullRequestCreate: i('git-pull-request-create', 60348),
  4940. runAbove: i('run-above', 60349),
  4941. runBelow: i('run-below', 60350),
  4942. notebookTemplate: i('notebook-template', 60351),
  4943. debugRerun: i('debug-rerun', 60352),
  4944. workspaceTrusted: i('workspace-trusted', 60353),
  4945. workspaceUntrusted: i('workspace-untrusted', 60354),
  4946. workspaceUnspecified: i('workspace-unspecified', 60355),
  4947. terminalCmd: i('terminal-cmd', 60356),
  4948. terminalDebian: i('terminal-debian', 60357),
  4949. terminalLinux: i('terminal-linux', 60358),
  4950. terminalPowershell: i('terminal-powershell', 60359),
  4951. terminalTmux: i('terminal-tmux', 60360),
  4952. terminalUbuntu: i('terminal-ubuntu', 60361),
  4953. terminalBash: i('terminal-bash', 60362),
  4954. arrowSwap: i('arrow-swap', 60363),
  4955. copy: i('copy', 60364),
  4956. personAdd: i('person-add', 60365),
  4957. filterFilled: i('filter-filled', 60366),
  4958. wand: i('wand', 60367),
  4959. debugLineByLine: i('debug-line-by-line', 60368),
  4960. inspect: i('inspect', 60369),
  4961. layers: i('layers', 60370),
  4962. layersDot: i('layers-dot', 60371),
  4963. layersActive: i('layers-active', 60372),
  4964. compass: i('compass', 60373),
  4965. compassDot: i('compass-dot', 60374),
  4966. compassActive: i('compass-active', 60375),
  4967. azure: i('azure', 60376),
  4968. issueDraft: i('issue-draft', 60377),
  4969. gitPullRequestClosed: i('git-pull-request-closed', 60378),
  4970. gitPullRequestDraft: i('git-pull-request-draft', 60379),
  4971. debugAll: i('debug-all', 60380),
  4972. debugCoverage: i('debug-coverage', 60381),
  4973. runErrors: i('run-errors', 60382),
  4974. folderLibrary: i('folder-library', 60383),
  4975. debugContinueSmall: i('debug-continue-small', 60384),
  4976. beakerStop: i('beaker-stop', 60385),
  4977. graphLine: i('graph-line', 60386),
  4978. graphScatter: i('graph-scatter', 60387),
  4979. pieChart: i('pie-chart', 60388),
  4980. bracketDot: i('bracket-dot', 60389),
  4981. bracketError: i('bracket-error', 60390),
  4982. lockSmall: i('lock-small', 60391),
  4983. azureDevops: i('azure-devops', 60392),
  4984. verifiedFilled: i('verified-filled', 60393),
  4985. newLine: i('newline', 60394),
  4986. layout: i('layout', 60395),
  4987. layoutActivitybarLeft: i('layout-activitybar-left', 60396),
  4988. layoutActivitybarRight: i('layout-activitybar-right', 60397),
  4989. layoutPanelLeft: i('layout-panel-left', 60398),
  4990. layoutPanelCenter: i('layout-panel-center', 60399),
  4991. layoutPanelJustify: i('layout-panel-justify', 60400),
  4992. layoutPanelRight: i('layout-panel-right', 60401),
  4993. layoutPanel: i('layout-panel', 60402),
  4994. layoutSidebarLeft: i('layout-sidebar-left', 60403),
  4995. layoutSidebarRight: i('layout-sidebar-right', 60404),
  4996. layoutStatusbar: i('layout-statusbar', 60405),
  4997. layoutMenubar: i('layout-menubar', 60406),
  4998. layoutCentered: i('layout-centered', 60407),
  4999. layoutSidebarRightOff: i('layout-sidebar-right-off', 60416),
  5000. layoutPanelOff: i('layout-panel-off', 60417),
  5001. layoutSidebarLeftOff: i('layout-sidebar-left-off', 60418),
  5002. target: i('target', 60408),
  5003. indent: i('indent', 60409),
  5004. recordSmall: i('record-small', 60410),
  5005. errorSmall: i('error-small', 60411),
  5006. arrowCircleDown: i('arrow-circle-down', 60412),
  5007. arrowCircleLeft: i('arrow-circle-left', 60413),
  5008. arrowCircleRight: i('arrow-circle-right', 60414),
  5009. arrowCircleUp: i('arrow-circle-up', 60415),
  5010. heartFilled: i('heart-filled', 60420),
  5011. map: i('map', 60421),
  5012. mapFilled: i('map-filled', 60422),
  5013. circleSmall: i('circle-small', 60423),
  5014. bellSlash: i('bell-slash', 60424),
  5015. bellSlashDot: i('bell-slash-dot', 60425),
  5016. commentUnresolved: i('comment-unresolved', 60426),
  5017. gitPullRequestGoToChanges: i('git-pull-request-go-to-changes', 60427),
  5018. gitPullRequestNewChanges: i('git-pull-request-new-changes', 60428),
  5019. searchFuzzy: i('search-fuzzy', 60429),
  5020. commentDraft: i('comment-draft', 60430),
  5021. send: i('send', 60431),
  5022. sparkle: i('sparkle', 60432),
  5023. insert: i('insert', 60433),
  5024. dialogError: i('dialog-error', 'error'),
  5025. dialogWarning: i('dialog-warning', 'warning'),
  5026. dialogInfo: i('dialog-info', 'info'),
  5027. dialogClose: i('dialog-close', 'close'),
  5028. treeItemExpanded: i('tree-item-expanded', 'chevron-down'),
  5029. treeFilterOnTypeOn: i('tree-filter-on-type-on', 'list-filter'),
  5030. treeFilterOnTypeOff: i('tree-filter-on-type-off', 'list-selection'),
  5031. treeFilterClear: i('tree-filter-clear', 'close'),
  5032. treeItemLoading: i('tree-item-loading', 'loading'),
  5033. menuSelection: i('menu-selection', 'check'),
  5034. menuSubmenu: i('menu-submenu', 'chevron-right'),
  5035. menuBarMore: i('menubar-more', 'more'),
  5036. scrollbarButtonLeft: i('scrollbar-button-left', 'triangle-left'),
  5037. scrollbarButtonRight: i('scrollbar-button-right', 'triangle-right'),
  5038. scrollbarButtonUp: i('scrollbar-button-up', 'triangle-up'),
  5039. scrollbarButtonDown: i('scrollbar-button-down', 'triangle-down'),
  5040. toolBarMore: i('toolbar-more', 'more'),
  5041. quickInputBack: i('quick-input-back', 'arrow-left'),
  5042. })
  5043. }),
  5044. Q(Y[12], X([0, 1, 18]), function (x, n, R) {
  5045. 'use strict'
  5046. Object.defineProperty(n, '__esModule', { value: !0 }),
  5047. (n.createProxyObject =
  5048. n.getAllMethodNames =
  5049. n.getAllPropertyNames =
  5050. n.equals =
  5051. n.mixin =
  5052. n.cloneAndChange =
  5053. n.deepFreeze =
  5054. n.deepClone =
  5055. void 0)
  5056. function D(f) {
  5057. if (!f || typeof f != 'object' || f instanceof RegExp) return f
  5058. const v = Array.isArray(f) ? [] : {}
  5059. return (
  5060. Object.entries(f).forEach(([g, S]) => {
  5061. v[g] = S && typeof S == 'object' ? D(S) : S
  5062. }),
  5063. v
  5064. )
  5065. }
  5066. n.deepClone = D
  5067. function i(f) {
  5068. if (!f || typeof f != 'object') return f
  5069. const v = [f]
  5070. for (; v.length > 0; ) {
  5071. const g = v.shift()
  5072. Object.freeze(g)
  5073. for (const S in g)
  5074. if (s.call(g, S)) {
  5075. const E = g[S]
  5076. typeof E == 'object' && !Object.isFrozen(E) && !(0, R.isTypedArray)(E) && v.push(E)
  5077. }
  5078. }
  5079. return f
  5080. }
  5081. n.deepFreeze = i
  5082. const s = Object.prototype.hasOwnProperty
  5083. function p(f, v) {
  5084. return L(f, v, new Set())
  5085. }
  5086. n.cloneAndChange = p
  5087. function L(f, v, g) {
  5088. if ((0, R.isUndefinedOrNull)(f)) return f
  5089. const S = v(f)
  5090. if (typeof S < 'u') return S
  5091. if (Array.isArray(f)) {
  5092. const E = []
  5093. for (const y of f) E.push(L(y, v, g))
  5094. return E
  5095. }
  5096. if ((0, R.isObject)(f)) {
  5097. if (g.has(f)) throw new Error('Cannot clone recursive data-structure')
  5098. g.add(f)
  5099. const E = {}
  5100. for (const y in f) s.call(f, y) && (E[y] = L(f[y], v, g))
  5101. return g.delete(f), E
  5102. }
  5103. return f
  5104. }
  5105. function h(f, v, g = !0) {
  5106. return (0, R.isObject)(f)
  5107. ? ((0, R.isObject)(v) &&
  5108. Object.keys(v).forEach((S) => {
  5109. S in f
  5110. ? g &&
  5111. ((0, R.isObject)(f[S]) && (0, R.isObject)(v[S])
  5112. ? h(f[S], v[S], g)
  5113. : (f[S] = v[S]))
  5114. : (f[S] = v[S])
  5115. }),
  5116. f)
  5117. : v
  5118. }
  5119. n.mixin = h
  5120. function a(f, v) {
  5121. if (f === v) return !0
  5122. if (
  5123. f == null ||
  5124. v === null ||
  5125. v === void 0 ||
  5126. typeof f != typeof v ||
  5127. typeof f != 'object' ||
  5128. Array.isArray(f) !== Array.isArray(v)
  5129. )
  5130. return !1
  5131. let g, S
  5132. if (Array.isArray(f)) {
  5133. if (f.length !== v.length) return !1
  5134. for (g = 0; g < f.length; g++) if (!a(f[g], v[g])) return !1
  5135. } else {
  5136. const E = []
  5137. for (S in f) E.push(S)
  5138. E.sort()
  5139. const y = []
  5140. for (S in v) y.push(S)
  5141. if ((y.sort(), !a(E, y))) return !1
  5142. for (g = 0; g < E.length; g++) if (!a(f[E[g]], v[E[g]])) return !1
  5143. }
  5144. return !0
  5145. }
  5146. n.equals = a
  5147. function w(f) {
  5148. let v = [],
  5149. g = Object.getPrototypeOf(f)
  5150. for (; Object.prototype !== g; )
  5151. (v = v.concat(Object.getOwnPropertyNames(g))), (g = Object.getPrototypeOf(g))
  5152. return v
  5153. }
  5154. n.getAllPropertyNames = w
  5155. function e(f) {
  5156. const v = []
  5157. for (const g of w(f)) typeof f[g] == 'function' && v.push(g)
  5158. return v
  5159. }
  5160. n.getAllMethodNames = e
  5161. function b(f, v) {
  5162. const g = (E) =>
  5163. function () {
  5164. const y = Array.prototype.slice.call(arguments, 0)
  5165. return v(E, y)
  5166. },
  5167. S = {}
  5168. for (const E of f) S[E] = g(E)
  5169. return S
  5170. }
  5171. n.createProxyObject = b
  5172. }),
  5173. Q(Y[19], X([0, 1]), function (x, n) {
  5174. 'use strict'
  5175. Object.defineProperty(n, '__esModule', { value: !0 }), (n.toUint32 = n.toUint8 = void 0)
  5176. function R(i) {
  5177. return i < 0 ? 0 : i > 255 ? 255 : i | 0
  5178. }
  5179. n.toUint8 = R
  5180. function D(i) {
  5181. return i < 0 ? 0 : i > 4294967295 ? 4294967295 : i | 0
  5182. }
  5183. n.toUint32 = D
  5184. }),
  5185. Q(Y[20], X([0, 1, 19]), function (x, n, R) {
  5186. 'use strict'
  5187. Object.defineProperty(n, '__esModule', { value: !0 }),
  5188. (n.CharacterSet = n.CharacterClassifier = void 0)
  5189. class D {
  5190. constructor(p) {
  5191. const L = (0, R.toUint8)(p)
  5192. ;(this._defaultValue = L),
  5193. (this._asciiMap = D._createAsciiMap(L)),
  5194. (this._map = new Map())
  5195. }
  5196. static _createAsciiMap(p) {
  5197. const L = new Uint8Array(256)
  5198. return L.fill(p), L
  5199. }
  5200. set(p, L) {
  5201. const h = (0, R.toUint8)(L)
  5202. p >= 0 && p < 256 ? (this._asciiMap[p] = h) : this._map.set(p, h)
  5203. }
  5204. get(p) {
  5205. return p >= 0 && p < 256 ? this._asciiMap[p] : this._map.get(p) || this._defaultValue
  5206. }
  5207. clear() {
  5208. this._asciiMap.fill(this._defaultValue), this._map.clear()
  5209. }
  5210. }
  5211. n.CharacterClassifier = D
  5212. class i {
  5213. constructor() {
  5214. this._actual = new D(0)
  5215. }
  5216. add(p) {
  5217. this._actual.set(p, 1)
  5218. }
  5219. has(p) {
  5220. return this._actual.get(p) === 1
  5221. }
  5222. clear() {
  5223. return this._actual.clear()
  5224. }
  5225. }
  5226. n.CharacterSet = i
  5227. }),
  5228. Q(Y[21], X([0, 1, 4]), function (x, n, R) {
  5229. 'use strict'
  5230. Object.defineProperty(n, '__esModule', { value: !0 }), (n.LineRange = void 0)
  5231. class D {
  5232. static joinMany(s) {
  5233. if (s.length === 0) return []
  5234. let p = s[0]
  5235. for (let L = 1; L < s.length; L++) p = this.join(p, s[L])
  5236. return p
  5237. }
  5238. static join(s, p) {
  5239. if (s.length === 0) return p
  5240. if (p.length === 0) return s
  5241. const L = []
  5242. let h = 0,
  5243. a = 0,
  5244. w = null
  5245. for (; h < s.length || a < p.length; ) {
  5246. let e = null
  5247. if (h < s.length && a < p.length) {
  5248. const b = s[h],
  5249. f = p[a]
  5250. b.startLineNumber < f.startLineNumber ? ((e = b), h++) : ((e = f), a++)
  5251. } else h < s.length ? ((e = s[h]), h++) : ((e = p[a]), a++)
  5252. w === null
  5253. ? (w = e)
  5254. : w.endLineNumberExclusive >= e.startLineNumber
  5255. ? (w = new D(
  5256. w.startLineNumber,
  5257. Math.max(w.endLineNumberExclusive, e.endLineNumberExclusive)
  5258. ))
  5259. : (L.push(w), (w = e))
  5260. }
  5261. return w !== null && L.push(w), L
  5262. }
  5263. constructor(s, p) {
  5264. if (s > p)
  5265. throw new R.BugIndicatingError(
  5266. `startLineNumber ${s} cannot be after endLineNumberExclusive ${p}`
  5267. )
  5268. ;(this.startLineNumber = s), (this.endLineNumberExclusive = p)
  5269. }
  5270. contains(s) {
  5271. return this.startLineNumber <= s && s < this.endLineNumberExclusive
  5272. }
  5273. get isEmpty() {
  5274. return this.startLineNumber === this.endLineNumberExclusive
  5275. }
  5276. delta(s) {
  5277. return new D(this.startLineNumber + s, this.endLineNumberExclusive + s)
  5278. }
  5279. get length() {
  5280. return this.endLineNumberExclusive - this.startLineNumber
  5281. }
  5282. join(s) {
  5283. return new D(
  5284. Math.min(this.startLineNumber, s.startLineNumber),
  5285. Math.max(this.endLineNumberExclusive, s.endLineNumberExclusive)
  5286. )
  5287. }
  5288. toString() {
  5289. return `[${this.startLineNumber},${this.endLineNumberExclusive})`
  5290. }
  5291. intersect(s) {
  5292. const p = Math.max(this.startLineNumber, s.startLineNumber),
  5293. L = Math.min(this.endLineNumberExclusive, s.endLineNumberExclusive)
  5294. if (p <= L) return new D(p, L)
  5295. }
  5296. overlapOrTouch(s) {
  5297. return (
  5298. this.startLineNumber <= s.endLineNumberExclusive &&
  5299. s.startLineNumber <= this.endLineNumberExclusive
  5300. )
  5301. }
  5302. equals(s) {
  5303. return (
  5304. this.startLineNumber === s.startLineNumber &&
  5305. this.endLineNumberExclusive === s.endLineNumberExclusive
  5306. )
  5307. }
  5308. }
  5309. n.LineRange = D
  5310. }),
  5311. Q(Y[6], X([0, 1, 4]), function (x, n, R) {
  5312. 'use strict'
  5313. Object.defineProperty(n, '__esModule', { value: !0 }), (n.OffsetRange = void 0)
  5314. class D {
  5315. static addRange(s, p) {
  5316. let L = 0
  5317. for (; L < p.length && p[L].endExclusive < s.start; ) L++
  5318. let h = L
  5319. for (; h < p.length && p[h].start <= s.endExclusive; ) h++
  5320. if (L === h) p.splice(L, 0, s)
  5321. else {
  5322. const a = Math.min(s.start, p[L].start),
  5323. w = Math.max(s.endExclusive, p[h - 1].endExclusive)
  5324. p.splice(L, h - L, new D(a, w))
  5325. }
  5326. }
  5327. static tryCreate(s, p) {
  5328. if (!(s > p)) return new D(s, p)
  5329. }
  5330. constructor(s, p) {
  5331. if (((this.start = s), (this.endExclusive = p), s > p))
  5332. throw new R.BugIndicatingError(`Invalid range: ${this.toString()}`)
  5333. }
  5334. get isEmpty() {
  5335. return this.start === this.endExclusive
  5336. }
  5337. delta(s) {
  5338. return new D(this.start + s, this.endExclusive + s)
  5339. }
  5340. get length() {
  5341. return this.endExclusive - this.start
  5342. }
  5343. toString() {
  5344. return `[${this.start}, ${this.endExclusive})`
  5345. }
  5346. equals(s) {
  5347. return this.start === s.start && this.endExclusive === s.endExclusive
  5348. }
  5349. containsRange(s) {
  5350. return this.start <= s.start && s.endExclusive <= this.endExclusive
  5351. }
  5352. join(s) {
  5353. return new D(Math.min(this.start, s.start), Math.max(this.endExclusive, s.endExclusive))
  5354. }
  5355. intersect(s) {
  5356. const p = Math.max(this.start, s.start),
  5357. L = Math.min(this.endExclusive, s.endExclusive)
  5358. if (p <= L) return new D(p, L)
  5359. }
  5360. }
  5361. n.OffsetRange = D
  5362. }),
  5363. Q(Y[3], X([0, 1]), function (x, n) {
  5364. 'use strict'
  5365. Object.defineProperty(n, '__esModule', { value: !0 }), (n.Position = void 0)
  5366. class R {
  5367. constructor(i, s) {
  5368. ;(this.lineNumber = i), (this.column = s)
  5369. }
  5370. with(i = this.lineNumber, s = this.column) {
  5371. return i === this.lineNumber && s === this.column ? this : new R(i, s)
  5372. }
  5373. delta(i = 0, s = 0) {
  5374. return this.with(this.lineNumber + i, this.column + s)
  5375. }
  5376. equals(i) {
  5377. return R.equals(this, i)
  5378. }
  5379. static equals(i, s) {
  5380. return !i && !s
  5381. ? !0
  5382. : !!i && !!s && i.lineNumber === s.lineNumber && i.column === s.column
  5383. }
  5384. isBefore(i) {
  5385. return R.isBefore(this, i)
  5386. }
  5387. static isBefore(i, s) {
  5388. return i.lineNumber < s.lineNumber
  5389. ? !0
  5390. : s.lineNumber < i.lineNumber
  5391. ? !1
  5392. : i.column < s.column
  5393. }
  5394. isBeforeOrEqual(i) {
  5395. return R.isBeforeOrEqual(this, i)
  5396. }
  5397. static isBeforeOrEqual(i, s) {
  5398. return i.lineNumber < s.lineNumber
  5399. ? !0
  5400. : s.lineNumber < i.lineNumber
  5401. ? !1
  5402. : i.column <= s.column
  5403. }
  5404. static compare(i, s) {
  5405. const p = i.lineNumber | 0,
  5406. L = s.lineNumber | 0
  5407. if (p === L) {
  5408. const h = i.column | 0,
  5409. a = s.column | 0
  5410. return h - a
  5411. }
  5412. return p - L
  5413. }
  5414. clone() {
  5415. return new R(this.lineNumber, this.column)
  5416. }
  5417. toString() {
  5418. return '(' + this.lineNumber + ',' + this.column + ')'
  5419. }
  5420. static lift(i) {
  5421. return new R(i.lineNumber, i.column)
  5422. }
  5423. static isIPosition(i) {
  5424. return i && typeof i.lineNumber == 'number' && typeof i.column == 'number'
  5425. }
  5426. }
  5427. n.Position = R
  5428. }),
  5429. Q(Y[2], X([0, 1, 3]), function (x, n, R) {
  5430. 'use strict'
  5431. Object.defineProperty(n, '__esModule', { value: !0 }), (n.Range = void 0)
  5432. class D {
  5433. constructor(s, p, L, h) {
  5434. s > L || (s === L && p > h)
  5435. ? ((this.startLineNumber = L),
  5436. (this.startColumn = h),
  5437. (this.endLineNumber = s),
  5438. (this.endColumn = p))
  5439. : ((this.startLineNumber = s),
  5440. (this.startColumn = p),
  5441. (this.endLineNumber = L),
  5442. (this.endColumn = h))
  5443. }
  5444. isEmpty() {
  5445. return D.isEmpty(this)
  5446. }
  5447. static isEmpty(s) {
  5448. return s.startLineNumber === s.endLineNumber && s.startColumn === s.endColumn
  5449. }
  5450. containsPosition(s) {
  5451. return D.containsPosition(this, s)
  5452. }
  5453. static containsPosition(s, p) {
  5454. return !(
  5455. p.lineNumber < s.startLineNumber ||
  5456. p.lineNumber > s.endLineNumber ||
  5457. (p.lineNumber === s.startLineNumber && p.column < s.startColumn) ||
  5458. (p.lineNumber === s.endLineNumber && p.column > s.endColumn)
  5459. )
  5460. }
  5461. static strictContainsPosition(s, p) {
  5462. return !(
  5463. p.lineNumber < s.startLineNumber ||
  5464. p.lineNumber > s.endLineNumber ||
  5465. (p.lineNumber === s.startLineNumber && p.column <= s.startColumn) ||
  5466. (p.lineNumber === s.endLineNumber && p.column >= s.endColumn)
  5467. )
  5468. }
  5469. containsRange(s) {
  5470. return D.containsRange(this, s)
  5471. }
  5472. static containsRange(s, p) {
  5473. return !(
  5474. p.startLineNumber < s.startLineNumber ||
  5475. p.endLineNumber < s.startLineNumber ||
  5476. p.startLineNumber > s.endLineNumber ||
  5477. p.endLineNumber > s.endLineNumber ||
  5478. (p.startLineNumber === s.startLineNumber && p.startColumn < s.startColumn) ||
  5479. (p.endLineNumber === s.endLineNumber && p.endColumn > s.endColumn)
  5480. )
  5481. }
  5482. strictContainsRange(s) {
  5483. return D.strictContainsRange(this, s)
  5484. }
  5485. static strictContainsRange(s, p) {
  5486. return !(
  5487. p.startLineNumber < s.startLineNumber ||
  5488. p.endLineNumber < s.startLineNumber ||
  5489. p.startLineNumber > s.endLineNumber ||
  5490. p.endLineNumber > s.endLineNumber ||
  5491. (p.startLineNumber === s.startLineNumber && p.startColumn <= s.startColumn) ||
  5492. (p.endLineNumber === s.endLineNumber && p.endColumn >= s.endColumn)
  5493. )
  5494. }
  5495. plusRange(s) {
  5496. return D.plusRange(this, s)
  5497. }
  5498. static plusRange(s, p) {
  5499. let L, h, a, w
  5500. return (
  5501. p.startLineNumber < s.startLineNumber
  5502. ? ((L = p.startLineNumber), (h = p.startColumn))
  5503. : p.startLineNumber === s.startLineNumber
  5504. ? ((L = p.startLineNumber), (h = Math.min(p.startColumn, s.startColumn)))
  5505. : ((L = s.startLineNumber), (h = s.startColumn)),
  5506. p.endLineNumber > s.endLineNumber
  5507. ? ((a = p.endLineNumber), (w = p.endColumn))
  5508. : p.endLineNumber === s.endLineNumber
  5509. ? ((a = p.endLineNumber), (w = Math.max(p.endColumn, s.endColumn)))
  5510. : ((a = s.endLineNumber), (w = s.endColumn)),
  5511. new D(L, h, a, w)
  5512. )
  5513. }
  5514. intersectRanges(s) {
  5515. return D.intersectRanges(this, s)
  5516. }
  5517. static intersectRanges(s, p) {
  5518. let L = s.startLineNumber,
  5519. h = s.startColumn,
  5520. a = s.endLineNumber,
  5521. w = s.endColumn
  5522. const e = p.startLineNumber,
  5523. b = p.startColumn,
  5524. f = p.endLineNumber,
  5525. v = p.endColumn
  5526. return (
  5527. L < e ? ((L = e), (h = b)) : L === e && (h = Math.max(h, b)),
  5528. a > f ? ((a = f), (w = v)) : a === f && (w = Math.min(w, v)),
  5529. L > a || (L === a && h > w) ? null : new D(L, h, a, w)
  5530. )
  5531. }
  5532. equalsRange(s) {
  5533. return D.equalsRange(this, s)
  5534. }
  5535. static equalsRange(s, p) {
  5536. return !s && !p
  5537. ? !0
  5538. : !!s &&
  5539. !!p &&
  5540. s.startLineNumber === p.startLineNumber &&
  5541. s.startColumn === p.startColumn &&
  5542. s.endLineNumber === p.endLineNumber &&
  5543. s.endColumn === p.endColumn
  5544. }
  5545. getEndPosition() {
  5546. return D.getEndPosition(this)
  5547. }
  5548. static getEndPosition(s) {
  5549. return new R.Position(s.endLineNumber, s.endColumn)
  5550. }
  5551. getStartPosition() {
  5552. return D.getStartPosition(this)
  5553. }
  5554. static getStartPosition(s) {
  5555. return new R.Position(s.startLineNumber, s.startColumn)
  5556. }
  5557. toString() {
  5558. return (
  5559. '[' +
  5560. this.startLineNumber +
  5561. ',' +
  5562. this.startColumn +
  5563. ' -> ' +
  5564. this.endLineNumber +
  5565. ',' +
  5566. this.endColumn +
  5567. ']'
  5568. )
  5569. }
  5570. setEndPosition(s, p) {
  5571. return new D(this.startLineNumber, this.startColumn, s, p)
  5572. }
  5573. setStartPosition(s, p) {
  5574. return new D(s, p, this.endLineNumber, this.endColumn)
  5575. }
  5576. collapseToStart() {
  5577. return D.collapseToStart(this)
  5578. }
  5579. static collapseToStart(s) {
  5580. return new D(s.startLineNumber, s.startColumn, s.startLineNumber, s.startColumn)
  5581. }
  5582. collapseToEnd() {
  5583. return D.collapseToEnd(this)
  5584. }
  5585. static collapseToEnd(s) {
  5586. return new D(s.endLineNumber, s.endColumn, s.endLineNumber, s.endColumn)
  5587. }
  5588. delta(s) {
  5589. return new D(
  5590. this.startLineNumber + s,
  5591. this.startColumn,
  5592. this.endLineNumber + s,
  5593. this.endColumn
  5594. )
  5595. }
  5596. static fromPositions(s, p = s) {
  5597. return new D(s.lineNumber, s.column, p.lineNumber, p.column)
  5598. }
  5599. static lift(s) {
  5600. return s ? new D(s.startLineNumber, s.startColumn, s.endLineNumber, s.endColumn) : null
  5601. }
  5602. static isIRange(s) {
  5603. return (
  5604. s &&
  5605. typeof s.startLineNumber == 'number' &&
  5606. typeof s.startColumn == 'number' &&
  5607. typeof s.endLineNumber == 'number' &&
  5608. typeof s.endColumn == 'number'
  5609. )
  5610. }
  5611. static areIntersectingOrTouching(s, p) {
  5612. return !(
  5613. s.endLineNumber < p.startLineNumber ||
  5614. (s.endLineNumber === p.startLineNumber && s.endColumn < p.startColumn) ||
  5615. p.endLineNumber < s.startLineNumber ||
  5616. (p.endLineNumber === s.startLineNumber && p.endColumn < s.startColumn)
  5617. )
  5618. }
  5619. static areIntersecting(s, p) {
  5620. return !(
  5621. s.endLineNumber < p.startLineNumber ||
  5622. (s.endLineNumber === p.startLineNumber && s.endColumn <= p.startColumn) ||
  5623. p.endLineNumber < s.startLineNumber ||
  5624. (p.endLineNumber === s.startLineNumber && p.endColumn <= s.startColumn)
  5625. )
  5626. }
  5627. static compareRangesUsingStarts(s, p) {
  5628. if (s && p) {
  5629. const a = s.startLineNumber | 0,
  5630. w = p.startLineNumber | 0
  5631. if (a === w) {
  5632. const e = s.startColumn | 0,
  5633. b = p.startColumn | 0
  5634. if (e === b) {
  5635. const f = s.endLineNumber | 0,
  5636. v = p.endLineNumber | 0
  5637. if (f === v) {
  5638. const g = s.endColumn | 0,
  5639. S = p.endColumn | 0
  5640. return g - S
  5641. }
  5642. return f - v
  5643. }
  5644. return e - b
  5645. }
  5646. return a - w
  5647. }
  5648. return (s ? 1 : 0) - (p ? 1 : 0)
  5649. }
  5650. static compareRangesUsingEnds(s, p) {
  5651. return s.endLineNumber === p.endLineNumber
  5652. ? s.endColumn === p.endColumn
  5653. ? s.startLineNumber === p.startLineNumber
  5654. ? s.startColumn - p.startColumn
  5655. : s.startLineNumber - p.startLineNumber
  5656. : s.endColumn - p.endColumn
  5657. : s.endLineNumber - p.endLineNumber
  5658. }
  5659. static spansMultipleLines(s) {
  5660. return s.endLineNumber > s.startLineNumber
  5661. }
  5662. toJSON() {
  5663. return this
  5664. }
  5665. }
  5666. n.Range = D
  5667. }),
  5668. Q(Y[33], X([0, 1, 3, 2]), function (x, n, R, D) {
  5669. 'use strict'
  5670. Object.defineProperty(n, '__esModule', { value: !0 }), (n.Selection = void 0)
  5671. class i extends D.Range {
  5672. constructor(p, L, h, a) {
  5673. super(p, L, h, a),
  5674. (this.selectionStartLineNumber = p),
  5675. (this.selectionStartColumn = L),
  5676. (this.positionLineNumber = h),
  5677. (this.positionColumn = a)
  5678. }
  5679. toString() {
  5680. return (
  5681. '[' +
  5682. this.selectionStartLineNumber +
  5683. ',' +
  5684. this.selectionStartColumn +
  5685. ' -> ' +
  5686. this.positionLineNumber +
  5687. ',' +
  5688. this.positionColumn +
  5689. ']'
  5690. )
  5691. }
  5692. equalsSelection(p) {
  5693. return i.selectionsEqual(this, p)
  5694. }
  5695. static selectionsEqual(p, L) {
  5696. return (
  5697. p.selectionStartLineNumber === L.selectionStartLineNumber &&
  5698. p.selectionStartColumn === L.selectionStartColumn &&
  5699. p.positionLineNumber === L.positionLineNumber &&
  5700. p.positionColumn === L.positionColumn
  5701. )
  5702. }
  5703. getDirection() {
  5704. return this.selectionStartLineNumber === this.startLineNumber &&
  5705. this.selectionStartColumn === this.startColumn
  5706. ? 0
  5707. : 1
  5708. }
  5709. setEndPosition(p, L) {
  5710. return this.getDirection() === 0
  5711. ? new i(this.startLineNumber, this.startColumn, p, L)
  5712. : new i(p, L, this.startLineNumber, this.startColumn)
  5713. }
  5714. getPosition() {
  5715. return new R.Position(this.positionLineNumber, this.positionColumn)
  5716. }
  5717. getSelectionStart() {
  5718. return new R.Position(this.selectionStartLineNumber, this.selectionStartColumn)
  5719. }
  5720. setStartPosition(p, L) {
  5721. return this.getDirection() === 0
  5722. ? new i(p, L, this.endLineNumber, this.endColumn)
  5723. : new i(this.endLineNumber, this.endColumn, p, L)
  5724. }
  5725. static fromPositions(p, L = p) {
  5726. return new i(p.lineNumber, p.column, L.lineNumber, L.column)
  5727. }
  5728. static fromRange(p, L) {
  5729. return L === 0
  5730. ? new i(p.startLineNumber, p.startColumn, p.endLineNumber, p.endColumn)
  5731. : new i(p.endLineNumber, p.endColumn, p.startLineNumber, p.startColumn)
  5732. }
  5733. static liftSelection(p) {
  5734. return new i(
  5735. p.selectionStartLineNumber,
  5736. p.selectionStartColumn,
  5737. p.positionLineNumber,
  5738. p.positionColumn
  5739. )
  5740. }
  5741. static selectionsArrEqual(p, L) {
  5742. if ((p && !L) || (!p && L)) return !1
  5743. if (!p && !L) return !0
  5744. if (p.length !== L.length) return !1
  5745. for (let h = 0, a = p.length; h < a; h++) if (!this.selectionsEqual(p[h], L[h])) return !1
  5746. return !0
  5747. }
  5748. static isISelection(p) {
  5749. return (
  5750. p &&
  5751. typeof p.selectionStartLineNumber == 'number' &&
  5752. typeof p.selectionStartColumn == 'number' &&
  5753. typeof p.positionLineNumber == 'number' &&
  5754. typeof p.positionColumn == 'number'
  5755. )
  5756. }
  5757. static createWithDirection(p, L, h, a, w) {
  5758. return w === 0 ? new i(p, L, h, a) : new i(h, a, p, L)
  5759. }
  5760. }
  5761. n.Selection = i
  5762. }),
  5763. Q(Y[34], X([0, 1, 20]), function (x, n, R) {
  5764. 'use strict'
  5765. Object.defineProperty(n, '__esModule', { value: !0 }),
  5766. (n.getMapForWordSeparators = n.WordCharacterClassifier = void 0)
  5767. class D extends R.CharacterClassifier {
  5768. constructor(p) {
  5769. super(0)
  5770. for (let L = 0, h = p.length; L < h; L++) this.set(p.charCodeAt(L), 2)
  5771. this.set(32, 1), this.set(9, 1)
  5772. }
  5773. }
  5774. n.WordCharacterClassifier = D
  5775. function i(s) {
  5776. const p = {}
  5777. return (L) => (p.hasOwnProperty(L) || (p[L] = s(L)), p[L])
  5778. }
  5779. n.getMapForWordSeparators = i((s) => new D(s))
  5780. }),
  5781. Q(Y[22], X([0, 1, 15, 16]), function (x, n, R, D) {
  5782. 'use strict'
  5783. Object.defineProperty(n, '__esModule', { value: !0 }),
  5784. (n.getWordAtText =
  5785. n.ensureValidWordDefinition =
  5786. n.DEFAULT_WORD_REGEXP =
  5787. n.USUAL_WORD_SEPARATORS =
  5788. void 0),
  5789. (n.USUAL_WORD_SEPARATORS = '`~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?')
  5790. function i(a = '') {
  5791. let w = '(-?\\d*\\.\\d\\w*)|([^'
  5792. for (const e of n.USUAL_WORD_SEPARATORS) a.indexOf(e) >= 0 || (w += '\\' + e)
  5793. return (w += '\\s]+)'), new RegExp(w, 'g')
  5794. }
  5795. n.DEFAULT_WORD_REGEXP = i()
  5796. function s(a) {
  5797. let w = n.DEFAULT_WORD_REGEXP
  5798. if (a && a instanceof RegExp)
  5799. if (a.global) w = a
  5800. else {
  5801. let e = 'g'
  5802. a.ignoreCase && (e += 'i'),
  5803. a.multiline && (e += 'm'),
  5804. a.unicode && (e += 'u'),
  5805. (w = new RegExp(a.source, e))
  5806. }
  5807. return (w.lastIndex = 0), w
  5808. }
  5809. n.ensureValidWordDefinition = s
  5810. const p = new D.LinkedList()
  5811. p.unshift({ maxLen: 1e3, windowSize: 15, timeBudget: 150 })
  5812. function L(a, w, e, b, f) {
  5813. if ((f || (f = R.Iterable.first(p)), e.length > f.maxLen)) {
  5814. let y = a - f.maxLen / 2
  5815. return (
  5816. y < 0 ? (y = 0) : (b += y), (e = e.substring(y, a + f.maxLen / 2)), L(a, w, e, b, f)
  5817. )
  5818. }
  5819. const v = Date.now(),
  5820. g = a - 1 - b
  5821. let S = -1,
  5822. E = null
  5823. for (let y = 1; !(Date.now() - v >= f.timeBudget); y++) {
  5824. const _ = g - f.windowSize * y
  5825. w.lastIndex = Math.max(0, _)
  5826. const d = h(w, e, g, S)
  5827. if ((!d && E) || ((E = d), _ <= 0)) break
  5828. S = _
  5829. }
  5830. if (E) {
  5831. const y = {
  5832. word: E[0],
  5833. startColumn: b + 1 + E.index,
  5834. endColumn: b + 1 + E.index + E[0].length,
  5835. }
  5836. return (w.lastIndex = 0), y
  5837. }
  5838. return null
  5839. }
  5840. n.getWordAtText = L
  5841. function h(a, w, e, b) {
  5842. let f
  5843. for (; (f = a.exec(w)); ) {
  5844. const v = f.index || 0
  5845. if (v <= e && a.lastIndex >= e) return f
  5846. if (b > 0 && v > b) return null
  5847. }
  5848. return null
  5849. }
  5850. }),
  5851. Q(Y[7], X([0, 1, 4, 6]), function (x, n, R, D) {
  5852. 'use strict'
  5853. Object.defineProperty(n, '__esModule', { value: !0 }),
  5854. (n.DateTimeout = n.InfiniteTimeout = n.SequenceDiff = n.DiffAlgorithmResult = void 0)
  5855. class i {
  5856. static trivial(a, w) {
  5857. return new i([new s(new D.OffsetRange(0, a.length), new D.OffsetRange(0, w.length))], !1)
  5858. }
  5859. static trivialTimedOut(a, w) {
  5860. return new i([new s(new D.OffsetRange(0, a.length), new D.OffsetRange(0, w.length))], !0)
  5861. }
  5862. constructor(a, w) {
  5863. ;(this.diffs = a), (this.hitTimeout = w)
  5864. }
  5865. }
  5866. n.DiffAlgorithmResult = i
  5867. class s {
  5868. constructor(a, w) {
  5869. ;(this.seq1Range = a), (this.seq2Range = w)
  5870. }
  5871. reverse() {
  5872. return new s(this.seq2Range, this.seq1Range)
  5873. }
  5874. toString() {
  5875. return `${this.seq1Range} <-> ${this.seq2Range}`
  5876. }
  5877. join(a) {
  5878. return new s(this.seq1Range.join(a.seq1Range), this.seq2Range.join(a.seq2Range))
  5879. }
  5880. }
  5881. n.SequenceDiff = s
  5882. class p {
  5883. isValid() {
  5884. return !0
  5885. }
  5886. }
  5887. ;(p.instance = new p()), (n.InfiniteTimeout = p)
  5888. class L {
  5889. constructor(a) {
  5890. if (((this.timeout = a), (this.startTime = Date.now()), (this.valid = !0), a <= 0))
  5891. throw new R.BugIndicatingError('timeout must be positive')
  5892. }
  5893. isValid() {
  5894. if (!(Date.now() - this.startTime < this.timeout) && this.valid) {
  5895. this.valid = !1
  5896. debugger
  5897. }
  5898. return this.valid
  5899. }
  5900. }
  5901. n.DateTimeout = L
  5902. }),
  5903. Q(Y[35], X([0, 1, 6, 7]), function (x, n, R, D) {
  5904. 'use strict'
  5905. Object.defineProperty(n, '__esModule', { value: !0 }),
  5906. (n.shiftSequenceDiffs =
  5907. n.joinSequenceDiffs =
  5908. n.smoothenSequenceDiffs =
  5909. n.optimizeSequenceDiffs =
  5910. void 0)
  5911. function i(a, w, e) {
  5912. let b = e
  5913. return (b = p(a, w, b)), (b = L(a, w, b)), b
  5914. }
  5915. n.optimizeSequenceDiffs = i
  5916. function s(a, w, e) {
  5917. const b = []
  5918. for (const f of e) {
  5919. const v = b[b.length - 1]
  5920. if (!v) {
  5921. b.push(f)
  5922. continue
  5923. }
  5924. f.seq1Range.start - v.seq1Range.endExclusive <= 2 ||
  5925. f.seq2Range.start - v.seq2Range.endExclusive <= 2
  5926. ? (b[b.length - 1] = new D.SequenceDiff(
  5927. v.seq1Range.join(f.seq1Range),
  5928. v.seq2Range.join(f.seq2Range)
  5929. ))
  5930. : b.push(f)
  5931. }
  5932. return b
  5933. }
  5934. n.smoothenSequenceDiffs = s
  5935. function p(a, w, e) {
  5936. const b = []
  5937. e.length > 0 && b.push(e[0])
  5938. for (let f = 1; f < e.length; f++) {
  5939. const v = b[b.length - 1],
  5940. g = e[f]
  5941. if (g.seq1Range.isEmpty) {
  5942. let S = !0
  5943. const E = g.seq1Range.start - v.seq1Range.endExclusive
  5944. for (let y = 1; y <= E; y++)
  5945. if (
  5946. w.getElement(g.seq2Range.start - y) !== w.getElement(g.seq2Range.endExclusive - y)
  5947. ) {
  5948. S = !1
  5949. break
  5950. }
  5951. if (S) {
  5952. b[b.length - 1] = new D.SequenceDiff(
  5953. v.seq1Range,
  5954. new R.OffsetRange(v.seq2Range.start, g.seq2Range.endExclusive - E)
  5955. )
  5956. continue
  5957. }
  5958. }
  5959. b.push(g)
  5960. }
  5961. return b
  5962. }
  5963. n.joinSequenceDiffs = p
  5964. function L(a, w, e) {
  5965. if (!a.getBoundaryScore || !w.getBoundaryScore) return e
  5966. for (let b = 0; b < e.length; b++) {
  5967. const f = e[b]
  5968. if (f.seq1Range.isEmpty) {
  5969. const v = b > 0 ? e[b - 1].seq2Range.endExclusive : -1,
  5970. g = b + 1 < e.length ? e[b + 1].seq2Range.start : w.length
  5971. e[b] = h(f, a, w, g, v)
  5972. } else if (f.seq2Range.isEmpty) {
  5973. const v = b > 0 ? e[b - 1].seq1Range.endExclusive : -1,
  5974. g = b + 1 < e.length ? e[b + 1].seq1Range.start : a.length
  5975. e[b] = h(f.reverse(), w, a, g, v).reverse()
  5976. }
  5977. }
  5978. return e
  5979. }
  5980. n.shiftSequenceDiffs = L
  5981. function h(a, w, e, b, f) {
  5982. let g = 1
  5983. for (
  5984. ;
  5985. a.seq2Range.start - g > f &&
  5986. e.getElement(a.seq2Range.start - g) === e.getElement(a.seq2Range.endExclusive - g) &&
  5987. g < 20;
  5988. )
  5989. g++
  5990. g--
  5991. let S = 0
  5992. for (
  5993. ;
  5994. a.seq2Range.start + S < b &&
  5995. e.getElement(a.seq2Range.start + S) === e.getElement(a.seq2Range.endExclusive + S) &&
  5996. S < 20;
  5997. )
  5998. S++
  5999. if (g === 0 && S === 0) return a
  6000. let E = 0,
  6001. y = -1
  6002. for (let _ = -g; _ <= S; _++) {
  6003. const d = a.seq2Range.start + _,
  6004. C = a.seq2Range.endExclusive + _,
  6005. r = a.seq1Range.start + _,
  6006. u = w.getBoundaryScore(r) + e.getBoundaryScore(d) + e.getBoundaryScore(C)
  6007. u > y && ((y = u), (E = _))
  6008. }
  6009. return E !== 0 ? new D.SequenceDiff(a.seq1Range.delta(E), a.seq2Range.delta(E)) : a
  6010. }
  6011. }),
  6012. Q(Y[36], X([0, 1, 6, 7]), function (x, n, R, D) {
  6013. 'use strict'
  6014. Object.defineProperty(n, '__esModule', { value: !0 }), (n.MyersDiffAlgorithm = void 0)
  6015. class i {
  6016. compute(a, w, e = D.InfiniteTimeout.instance) {
  6017. if (a.length === 0 || w.length === 0) return D.DiffAlgorithmResult.trivial(a, w)
  6018. function b(C, r) {
  6019. for (; C < a.length && r < w.length && a.getElement(C) === w.getElement(r); ) C++, r++
  6020. return C
  6021. }
  6022. let f = 0
  6023. const v = new p()
  6024. v.set(0, b(0, 0))
  6025. const g = new L()
  6026. g.set(0, v.get(0) === 0 ? null : new s(null, 0, 0, v.get(0)))
  6027. let S = 0
  6028. e: for (;;)
  6029. for (f++, S = -f; S <= f; S += 2) {
  6030. if (!e.isValid()) return D.DiffAlgorithmResult.trivialTimedOut(a, w)
  6031. const C = S === f ? -1 : v.get(S + 1),
  6032. r = S === -f ? -1 : v.get(S - 1) + 1,
  6033. u = Math.min(Math.max(C, r), a.length),
  6034. o = u - S,
  6035. c = b(u, o)
  6036. v.set(S, c)
  6037. const l = u === C ? g.get(S + 1) : g.get(S - 1)
  6038. if (
  6039. (g.set(S, c !== u ? new s(l, u, o, c - u) : l),
  6040. v.get(S) === a.length && v.get(S) - S === w.length)
  6041. )
  6042. break e
  6043. }
  6044. let E = g.get(S)
  6045. const y = []
  6046. let _ = a.length,
  6047. d = w.length
  6048. for (;;) {
  6049. const C = E ? E.x + E.length : 0,
  6050. r = E ? E.y + E.length : 0
  6051. if (
  6052. ((C !== _ || r !== d) &&
  6053. y.push(new D.SequenceDiff(new R.OffsetRange(C, _), new R.OffsetRange(r, d))),
  6054. !E)
  6055. )
  6056. break
  6057. ;(_ = E.x), (d = E.y), (E = E.prev)
  6058. }
  6059. return y.reverse(), new D.DiffAlgorithmResult(y, !1)
  6060. }
  6061. }
  6062. n.MyersDiffAlgorithm = i
  6063. class s {
  6064. constructor(a, w, e, b) {
  6065. ;(this.prev = a), (this.x = w), (this.y = e), (this.length = b)
  6066. }
  6067. }
  6068. class p {
  6069. constructor() {
  6070. ;(this.positiveArr = new Int32Array(10)), (this.negativeArr = new Int32Array(10))
  6071. }
  6072. get(a) {
  6073. return a < 0 ? ((a = -a - 1), this.negativeArr[a]) : this.positiveArr[a]
  6074. }
  6075. set(a, w) {
  6076. if (a < 0) {
  6077. if (((a = -a - 1), a >= this.negativeArr.length)) {
  6078. const e = this.negativeArr
  6079. ;(this.negativeArr = new Int32Array(e.length * 2)), this.negativeArr.set(e)
  6080. }
  6081. this.negativeArr[a] = w
  6082. } else {
  6083. if (a >= this.positiveArr.length) {
  6084. const e = this.positiveArr
  6085. ;(this.positiveArr = new Int32Array(e.length * 2)), this.positiveArr.set(e)
  6086. }
  6087. this.positiveArr[a] = w
  6088. }
  6089. }
  6090. }
  6091. class L {
  6092. constructor() {
  6093. ;(this.positiveArr = []), (this.negativeArr = [])
  6094. }
  6095. get(a) {
  6096. return a < 0 ? ((a = -a - 1), this.negativeArr[a]) : this.positiveArr[a]
  6097. }
  6098. set(a, w) {
  6099. a < 0 ? ((a = -a - 1), (this.negativeArr[a] = w)) : (this.positiveArr[a] = w)
  6100. }
  6101. }
  6102. }),
  6103. Q(Y[37], X([0, 1]), function (x, n) {
  6104. 'use strict'
  6105. Object.defineProperty(n, '__esModule', { value: !0 }), (n.Array2D = void 0)
  6106. class R {
  6107. constructor(i, s) {
  6108. ;(this.width = i), (this.height = s), (this.array = []), (this.array = new Array(i * s))
  6109. }
  6110. get(i, s) {
  6111. return this.array[i + s * this.width]
  6112. }
  6113. set(i, s, p) {
  6114. this.array[i + s * this.width] = p
  6115. }
  6116. }
  6117. n.Array2D = R
  6118. }),
  6119. Q(Y[38], X([0, 1, 6, 7, 37]), function (x, n, R, D, i) {
  6120. 'use strict'
  6121. Object.defineProperty(n, '__esModule', { value: !0 }), (n.DynamicProgrammingDiffing = void 0)
  6122. class s {
  6123. compute(L, h, a = D.InfiniteTimeout.instance, w) {
  6124. if (L.length === 0 || h.length === 0) return D.DiffAlgorithmResult.trivial(L, h)
  6125. const e = new i.Array2D(L.length, h.length),
  6126. b = new i.Array2D(L.length, h.length),
  6127. f = new i.Array2D(L.length, h.length)
  6128. for (let d = 0; d < L.length; d++)
  6129. for (let C = 0; C < h.length; C++) {
  6130. if (!a.isValid()) return D.DiffAlgorithmResult.trivialTimedOut(L, h)
  6131. const r = d === 0 ? 0 : e.get(d - 1, C),
  6132. u = C === 0 ? 0 : e.get(d, C - 1)
  6133. let o
  6134. L.getElement(d) === h.getElement(C)
  6135. ? (d === 0 || C === 0 ? (o = 0) : (o = e.get(d - 1, C - 1)),
  6136. d > 0 && C > 0 && b.get(d - 1, C - 1) === 3 && (o += f.get(d - 1, C - 1)),
  6137. (o += w ? w(d, C) : 1))
  6138. : (o = -1)
  6139. const c = Math.max(r, u, o)
  6140. if (c === o) {
  6141. const l = d > 0 && C > 0 ? f.get(d - 1, C - 1) : 0
  6142. f.set(d, C, l + 1), b.set(d, C, 3)
  6143. } else
  6144. c === r
  6145. ? (f.set(d, C, 0), b.set(d, C, 1))
  6146. : c === u && (f.set(d, C, 0), b.set(d, C, 2))
  6147. e.set(d, C, c)
  6148. }
  6149. const v = []
  6150. let g = L.length,
  6151. S = h.length
  6152. function E(d, C) {
  6153. ;(d + 1 !== g || C + 1 !== S) &&
  6154. v.push(new D.SequenceDiff(new R.OffsetRange(d + 1, g), new R.OffsetRange(C + 1, S))),
  6155. (g = d),
  6156. (S = C)
  6157. }
  6158. let y = L.length - 1,
  6159. _ = h.length - 1
  6160. for (; y >= 0 && _ >= 0; )
  6161. b.get(y, _) === 3 ? (E(y, _), y--, _--) : b.get(y, _) === 1 ? y-- : _--
  6162. return E(-1, -1), v.reverse(), new D.DiffAlgorithmResult(v, !1)
  6163. }
  6164. }
  6165. n.DynamicProgrammingDiffing = s
  6166. }),
  6167. Q(Y[23], X([0, 1]), function (x, n) {
  6168. 'use strict'
  6169. Object.defineProperty(n, '__esModule', { value: !0 }),
  6170. (n.RangeMapping = n.LineRangeMapping = n.LinesDiff = void 0)
  6171. class R {
  6172. constructor(p, L) {
  6173. ;(this.changes = p), (this.hitTimeout = L)
  6174. }
  6175. }
  6176. n.LinesDiff = R
  6177. class D {
  6178. constructor(p, L, h) {
  6179. ;(this.originalRange = p), (this.modifiedRange = L), (this.innerChanges = h)
  6180. }
  6181. toString() {
  6182. return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`
  6183. }
  6184. }
  6185. n.LineRangeMapping = D
  6186. class i {
  6187. constructor(p, L) {
  6188. ;(this.originalRange = p), (this.modifiedRange = L)
  6189. }
  6190. toString() {
  6191. return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`
  6192. }
  6193. }
  6194. n.RangeMapping = i
  6195. }),
  6196. Q(Y[39], X([0, 1, 17, 23, 5, 2, 10, 21]), function (x, n, R, D, i, s, p, L) {
  6197. 'use strict'
  6198. Object.defineProperty(n, '__esModule', { value: !0 }),
  6199. (n.DiffComputer = n.SmartLinesDiffComputer = void 0)
  6200. const h = 3
  6201. class a {
  6202. computeDiff(C, r, u) {
  6203. var o
  6204. const l = new S(C, r, {
  6205. maxComputationTime: u.maxComputationTimeMs,
  6206. shouldIgnoreTrimWhitespace: u.ignoreTrimWhitespace,
  6207. shouldComputeCharChanges: !0,
  6208. shouldMakePrettyDiff: !0,
  6209. shouldPostProcessCharChanges: !0,
  6210. }).computeDiff(),
  6211. m = []
  6212. let N = null
  6213. for (const A of l.changes) {
  6214. let M
  6215. A.originalEndLineNumber === 0
  6216. ? (M = new L.LineRange(A.originalStartLineNumber + 1, A.originalStartLineNumber + 1))
  6217. : (M = new L.LineRange(A.originalStartLineNumber, A.originalEndLineNumber + 1))
  6218. let k
  6219. A.modifiedEndLineNumber === 0
  6220. ? (k = new L.LineRange(A.modifiedStartLineNumber + 1, A.modifiedStartLineNumber + 1))
  6221. : (k = new L.LineRange(A.modifiedStartLineNumber, A.modifiedEndLineNumber + 1))
  6222. let q = new D.LineRangeMapping(
  6223. M,
  6224. k,
  6225. (o = A.charChanges) === null || o === void 0
  6226. ? void 0
  6227. : o.map(
  6228. (I) =>
  6229. new D.RangeMapping(
  6230. new s.Range(
  6231. I.originalStartLineNumber,
  6232. I.originalStartColumn,
  6233. I.originalEndLineNumber,
  6234. I.originalEndColumn
  6235. ),
  6236. new s.Range(
  6237. I.modifiedStartLineNumber,
  6238. I.modifiedStartColumn,
  6239. I.modifiedEndLineNumber,
  6240. I.modifiedEndColumn
  6241. )
  6242. )
  6243. )
  6244. )
  6245. N &&
  6246. (N.modifiedRange.endLineNumberExclusive === q.modifiedRange.startLineNumber ||
  6247. N.originalRange.endLineNumberExclusive === q.originalRange.startLineNumber) &&
  6248. ((q = new D.LineRangeMapping(
  6249. N.originalRange.join(q.originalRange),
  6250. N.modifiedRange.join(q.modifiedRange),
  6251. N.innerChanges && q.innerChanges ? N.innerChanges.concat(q.innerChanges) : void 0
  6252. )),
  6253. m.pop()),
  6254. m.push(q),
  6255. (N = q)
  6256. }
  6257. return (
  6258. (0, p.assertFn)(() =>
  6259. (0, p.checkAdjacentItems)(
  6260. m,
  6261. (A, M) =>
  6262. M.originalRange.startLineNumber - A.originalRange.endLineNumberExclusive ===
  6263. M.modifiedRange.startLineNumber - A.modifiedRange.endLineNumberExclusive &&
  6264. A.originalRange.endLineNumberExclusive < M.originalRange.startLineNumber &&
  6265. A.modifiedRange.endLineNumberExclusive < M.modifiedRange.startLineNumber
  6266. )
  6267. ),
  6268. new D.LinesDiff(m, l.quitEarly)
  6269. )
  6270. }
  6271. }
  6272. n.SmartLinesDiffComputer = a
  6273. function w(d, C, r, u) {
  6274. return new R.LcsDiff(d, C, r).ComputeDiff(u)
  6275. }
  6276. class e {
  6277. constructor(C) {
  6278. const r = [],
  6279. u = []
  6280. for (let o = 0, c = C.length; o < c; o++) (r[o] = E(C[o], 1)), (u[o] = y(C[o], 1))
  6281. ;(this.lines = C), (this._startColumns = r), (this._endColumns = u)
  6282. }
  6283. getElements() {
  6284. const C = []
  6285. for (let r = 0, u = this.lines.length; r < u; r++)
  6286. C[r] = this.lines[r].substring(this._startColumns[r] - 1, this._endColumns[r] - 1)
  6287. return C
  6288. }
  6289. getStrictElement(C) {
  6290. return this.lines[C]
  6291. }
  6292. getStartLineNumber(C) {
  6293. return C + 1
  6294. }
  6295. getEndLineNumber(C) {
  6296. return C + 1
  6297. }
  6298. createCharSequence(C, r, u) {
  6299. const o = [],
  6300. c = [],
  6301. l = []
  6302. let m = 0
  6303. for (let N = r; N <= u; N++) {
  6304. const A = this.lines[N],
  6305. M = C ? this._startColumns[N] : 1,
  6306. k = C ? this._endColumns[N] : A.length + 1
  6307. for (let q = M; q < k; q++)
  6308. (o[m] = A.charCodeAt(q - 1)), (c[m] = N + 1), (l[m] = q), m++
  6309. !C && N < u && ((o[m] = 10), (c[m] = N + 1), (l[m] = A.length + 1), m++)
  6310. }
  6311. return new b(o, c, l)
  6312. }
  6313. }
  6314. class b {
  6315. constructor(C, r, u) {
  6316. ;(this._charCodes = C), (this._lineNumbers = r), (this._columns = u)
  6317. }
  6318. toString() {
  6319. return (
  6320. '[' +
  6321. this._charCodes
  6322. .map(
  6323. (C, r) =>
  6324. (C === 10 ? '\\n' : String.fromCharCode(C)) +
  6325. `-(${this._lineNumbers[r]},${this._columns[r]})`
  6326. )
  6327. .join(', ') +
  6328. ']'
  6329. )
  6330. }
  6331. _assertIndex(C, r) {
  6332. if (C < 0 || C >= r.length) throw new Error('Illegal index')
  6333. }
  6334. getElements() {
  6335. return this._charCodes
  6336. }
  6337. getStartLineNumber(C) {
  6338. return C > 0 && C === this._lineNumbers.length
  6339. ? this.getEndLineNumber(C - 1)
  6340. : (this._assertIndex(C, this._lineNumbers), this._lineNumbers[C])
  6341. }
  6342. getEndLineNumber(C) {
  6343. return C === -1
  6344. ? this.getStartLineNumber(C + 1)
  6345. : (this._assertIndex(C, this._lineNumbers),
  6346. this._charCodes[C] === 10 ? this._lineNumbers[C] + 1 : this._lineNumbers[C])
  6347. }
  6348. getStartColumn(C) {
  6349. return C > 0 && C === this._columns.length
  6350. ? this.getEndColumn(C - 1)
  6351. : (this._assertIndex(C, this._columns), this._columns[C])
  6352. }
  6353. getEndColumn(C) {
  6354. return C === -1
  6355. ? this.getStartColumn(C + 1)
  6356. : (this._assertIndex(C, this._columns),
  6357. this._charCodes[C] === 10 ? 1 : this._columns[C] + 1)
  6358. }
  6359. }
  6360. class f {
  6361. constructor(C, r, u, o, c, l, m, N) {
  6362. ;(this.originalStartLineNumber = C),
  6363. (this.originalStartColumn = r),
  6364. (this.originalEndLineNumber = u),
  6365. (this.originalEndColumn = o),
  6366. (this.modifiedStartLineNumber = c),
  6367. (this.modifiedStartColumn = l),
  6368. (this.modifiedEndLineNumber = m),
  6369. (this.modifiedEndColumn = N)
  6370. }
  6371. static createFromDiffChange(C, r, u) {
  6372. const o = r.getStartLineNumber(C.originalStart),
  6373. c = r.getStartColumn(C.originalStart),
  6374. l = r.getEndLineNumber(C.originalStart + C.originalLength - 1),
  6375. m = r.getEndColumn(C.originalStart + C.originalLength - 1),
  6376. N = u.getStartLineNumber(C.modifiedStart),
  6377. A = u.getStartColumn(C.modifiedStart),
  6378. M = u.getEndLineNumber(C.modifiedStart + C.modifiedLength - 1),
  6379. k = u.getEndColumn(C.modifiedStart + C.modifiedLength - 1)
  6380. return new f(o, c, l, m, N, A, M, k)
  6381. }
  6382. }
  6383. function v(d) {
  6384. if (d.length <= 1) return d
  6385. const C = [d[0]]
  6386. let r = C[0]
  6387. for (let u = 1, o = d.length; u < o; u++) {
  6388. const c = d[u],
  6389. l = c.originalStart - (r.originalStart + r.originalLength),
  6390. m = c.modifiedStart - (r.modifiedStart + r.modifiedLength)
  6391. Math.min(l, m) < h
  6392. ? ((r.originalLength = c.originalStart + c.originalLength - r.originalStart),
  6393. (r.modifiedLength = c.modifiedStart + c.modifiedLength - r.modifiedStart))
  6394. : (C.push(c), (r = c))
  6395. }
  6396. return C
  6397. }
  6398. class g {
  6399. constructor(C, r, u, o, c) {
  6400. ;(this.originalStartLineNumber = C),
  6401. (this.originalEndLineNumber = r),
  6402. (this.modifiedStartLineNumber = u),
  6403. (this.modifiedEndLineNumber = o),
  6404. (this.charChanges = c)
  6405. }
  6406. static createFromDiffResult(C, r, u, o, c, l, m) {
  6407. let N, A, M, k, q
  6408. if (
  6409. (r.originalLength === 0
  6410. ? ((N = u.getStartLineNumber(r.originalStart) - 1), (A = 0))
  6411. : ((N = u.getStartLineNumber(r.originalStart)),
  6412. (A = u.getEndLineNumber(r.originalStart + r.originalLength - 1))),
  6413. r.modifiedLength === 0
  6414. ? ((M = o.getStartLineNumber(r.modifiedStart) - 1), (k = 0))
  6415. : ((M = o.getStartLineNumber(r.modifiedStart)),
  6416. (k = o.getEndLineNumber(r.modifiedStart + r.modifiedLength - 1))),
  6417. l &&
  6418. r.originalLength > 0 &&
  6419. r.originalLength < 20 &&
  6420. r.modifiedLength > 0 &&
  6421. r.modifiedLength < 20 &&
  6422. c())
  6423. ) {
  6424. const I = u.createCharSequence(
  6425. C,
  6426. r.originalStart,
  6427. r.originalStart + r.originalLength - 1
  6428. ),
  6429. B = o.createCharSequence(C, r.modifiedStart, r.modifiedStart + r.modifiedLength - 1)
  6430. if (I.getElements().length > 0 && B.getElements().length > 0) {
  6431. let H = w(I, B, c, !0).changes
  6432. m && (H = v(H)), (q = [])
  6433. for (let F = 0, U = H.length; F < U; F++) q.push(f.createFromDiffChange(H[F], I, B))
  6434. }
  6435. }
  6436. return new g(N, A, M, k, q)
  6437. }
  6438. }
  6439. class S {
  6440. constructor(C, r, u) {
  6441. ;(this.shouldComputeCharChanges = u.shouldComputeCharChanges),
  6442. (this.shouldPostProcessCharChanges = u.shouldPostProcessCharChanges),
  6443. (this.shouldIgnoreTrimWhitespace = u.shouldIgnoreTrimWhitespace),
  6444. (this.shouldMakePrettyDiff = u.shouldMakePrettyDiff),
  6445. (this.originalLines = C),
  6446. (this.modifiedLines = r),
  6447. (this.original = new e(C)),
  6448. (this.modified = new e(r)),
  6449. (this.continueLineDiff = _(u.maxComputationTime)),
  6450. (this.continueCharDiff = _(
  6451. u.maxComputationTime === 0 ? 0 : Math.min(u.maxComputationTime, 5e3)
  6452. ))
  6453. }
  6454. computeDiff() {
  6455. if (this.original.lines.length === 1 && this.original.lines[0].length === 0)
  6456. return this.modified.lines.length === 1 && this.modified.lines[0].length === 0
  6457. ? { quitEarly: !1, changes: [] }
  6458. : {
  6459. quitEarly: !1,
  6460. changes: [
  6461. {
  6462. originalStartLineNumber: 1,
  6463. originalEndLineNumber: 1,
  6464. modifiedStartLineNumber: 1,
  6465. modifiedEndLineNumber: this.modified.lines.length,
  6466. charChanges: void 0,
  6467. },
  6468. ],
  6469. }
  6470. if (this.modified.lines.length === 1 && this.modified.lines[0].length === 0)
  6471. return {
  6472. quitEarly: !1,
  6473. changes: [
  6474. {
  6475. originalStartLineNumber: 1,
  6476. originalEndLineNumber: this.original.lines.length,
  6477. modifiedStartLineNumber: 1,
  6478. modifiedEndLineNumber: 1,
  6479. charChanges: void 0,
  6480. },
  6481. ],
  6482. }
  6483. const C = w(
  6484. this.original,
  6485. this.modified,
  6486. this.continueLineDiff,
  6487. this.shouldMakePrettyDiff
  6488. ),
  6489. r = C.changes,
  6490. u = C.quitEarly
  6491. if (this.shouldIgnoreTrimWhitespace) {
  6492. const m = []
  6493. for (let N = 0, A = r.length; N < A; N++)
  6494. m.push(
  6495. g.createFromDiffResult(
  6496. this.shouldIgnoreTrimWhitespace,
  6497. r[N],
  6498. this.original,
  6499. this.modified,
  6500. this.continueCharDiff,
  6501. this.shouldComputeCharChanges,
  6502. this.shouldPostProcessCharChanges
  6503. )
  6504. )
  6505. return { quitEarly: u, changes: m }
  6506. }
  6507. const o = []
  6508. let c = 0,
  6509. l = 0
  6510. for (let m = -1, N = r.length; m < N; m++) {
  6511. const A = m + 1 < N ? r[m + 1] : null,
  6512. M = A ? A.originalStart : this.originalLines.length,
  6513. k = A ? A.modifiedStart : this.modifiedLines.length
  6514. for (; c < M && l < k; ) {
  6515. const q = this.originalLines[c],
  6516. I = this.modifiedLines[l]
  6517. if (q !== I) {
  6518. {
  6519. let B = E(q, 1),
  6520. H = E(I, 1)
  6521. for (; B > 1 && H > 1; ) {
  6522. const F = q.charCodeAt(B - 2),
  6523. U = I.charCodeAt(H - 2)
  6524. if (F !== U) break
  6525. B--, H--
  6526. }
  6527. ;(B > 1 || H > 1) &&
  6528. this._pushTrimWhitespaceCharChange(o, c + 1, 1, B, l + 1, 1, H)
  6529. }
  6530. {
  6531. let B = y(q, 1),
  6532. H = y(I, 1)
  6533. const F = q.length + 1,
  6534. U = I.length + 1
  6535. for (; B < F && H < U; ) {
  6536. const T = q.charCodeAt(B - 1),
  6537. W = q.charCodeAt(H - 1)
  6538. if (T !== W) break
  6539. B++, H++
  6540. }
  6541. ;(B < F || H < U) &&
  6542. this._pushTrimWhitespaceCharChange(o, c + 1, B, F, l + 1, H, U)
  6543. }
  6544. }
  6545. c++, l++
  6546. }
  6547. A &&
  6548. (o.push(
  6549. g.createFromDiffResult(
  6550. this.shouldIgnoreTrimWhitespace,
  6551. A,
  6552. this.original,
  6553. this.modified,
  6554. this.continueCharDiff,
  6555. this.shouldComputeCharChanges,
  6556. this.shouldPostProcessCharChanges
  6557. )
  6558. ),
  6559. (c += A.originalLength),
  6560. (l += A.modifiedLength))
  6561. }
  6562. return { quitEarly: u, changes: o }
  6563. }
  6564. _pushTrimWhitespaceCharChange(C, r, u, o, c, l, m) {
  6565. if (this._mergeTrimWhitespaceCharChange(C, r, u, o, c, l, m)) return
  6566. let N
  6567. this.shouldComputeCharChanges && (N = [new f(r, u, r, o, c, l, c, m)]),
  6568. C.push(new g(r, r, c, c, N))
  6569. }
  6570. _mergeTrimWhitespaceCharChange(C, r, u, o, c, l, m) {
  6571. const N = C.length
  6572. if (N === 0) return !1
  6573. const A = C[N - 1]
  6574. return A.originalEndLineNumber === 0 || A.modifiedEndLineNumber === 0
  6575. ? !1
  6576. : A.originalEndLineNumber === r && A.modifiedEndLineNumber === c
  6577. ? (this.shouldComputeCharChanges &&
  6578. A.charChanges &&
  6579. A.charChanges.push(new f(r, u, r, o, c, l, c, m)),
  6580. !0)
  6581. : A.originalEndLineNumber + 1 === r && A.modifiedEndLineNumber + 1 === c
  6582. ? ((A.originalEndLineNumber = r),
  6583. (A.modifiedEndLineNumber = c),
  6584. this.shouldComputeCharChanges &&
  6585. A.charChanges &&
  6586. A.charChanges.push(new f(r, u, r, o, c, l, c, m)),
  6587. !0)
  6588. : !1
  6589. }
  6590. }
  6591. n.DiffComputer = S
  6592. function E(d, C) {
  6593. const r = i.firstNonWhitespaceIndex(d)
  6594. return r === -1 ? C : r + 1
  6595. }
  6596. function y(d, C) {
  6597. const r = i.lastNonWhitespaceIndex(d)
  6598. return r === -1 ? C : r + 2
  6599. }
  6600. function _(d) {
  6601. if (d === 0) return () => !0
  6602. const C = Date.now()
  6603. return () => Date.now() - C < d
  6604. }
  6605. }),
  6606. Q(
  6607. Y[40],
  6608. X([0, 1, 10, 21, 6, 3, 2, 7, 38, 35, 36, 23]),
  6609. function (x, n, R, D, i, s, p, L, h, a, w, e) {
  6610. 'use strict'
  6611. Object.defineProperty(n, '__esModule', { value: !0 }),
  6612. (n.LineSequence =
  6613. n.getLineRangeMapping =
  6614. n.lineRangeMappingFromRangeMappings =
  6615. n.StandardLinesDiffComputer =
  6616. void 0)
  6617. class b {
  6618. constructor() {
  6619. ;(this.dynamicProgrammingDiffing = new h.DynamicProgrammingDiffing()),
  6620. (this.myersDiffingAlgorithm = new w.MyersDiffAlgorithm())
  6621. }
  6622. computeDiff(m, N, A) {
  6623. const M =
  6624. A.maxComputationTimeMs === 0
  6625. ? L.InfiniteTimeout.instance
  6626. : new L.DateTimeout(A.maxComputationTimeMs),
  6627. k = !A.ignoreTrimWhitespace,
  6628. q = new Map()
  6629. function I(re) {
  6630. let se = q.get(re)
  6631. return se === void 0 && ((se = q.size), q.set(re, se)), se
  6632. }
  6633. const B = m.map((re) => I(re.trim())),
  6634. H = N.map((re) => I(re.trim())),
  6635. F = new y(B, m),
  6636. U = new y(H, N),
  6637. T = (() =>
  6638. F.length + U.length < 1500
  6639. ? this.dynamicProgrammingDiffing.compute(F, U, M, (re, se) =>
  6640. m[re] === N[se]
  6641. ? N[se].length === 0
  6642. ? 0.1
  6643. : 1 + Math.log(1 + N[se].length)
  6644. : 0.99
  6645. )
  6646. : this.myersDiffingAlgorithm.compute(F, U))()
  6647. let W = T.diffs,
  6648. t = T.hitTimeout
  6649. W = (0, a.optimizeSequenceDiffs)(F, U, W)
  6650. const te = [],
  6651. ie = (re) => {
  6652. if (!!k)
  6653. for (let se = 0; se < re; se++) {
  6654. const ge = ue + se,
  6655. Le = de + se
  6656. if (m[ge] !== N[Le]) {
  6657. const J = this.refineDiff(
  6658. m,
  6659. N,
  6660. new L.SequenceDiff(
  6661. new i.OffsetRange(ge, ge + 1),
  6662. new i.OffsetRange(Le, Le + 1)
  6663. ),
  6664. M,
  6665. k
  6666. )
  6667. for (const z of J.mappings) te.push(z)
  6668. J.hitTimeout && (t = !0)
  6669. }
  6670. }
  6671. }
  6672. let ue = 0,
  6673. de = 0
  6674. for (const re of W) {
  6675. ;(0, R.assertFn)(() => re.seq1Range.start - ue === re.seq2Range.start - de)
  6676. const se = re.seq1Range.start - ue
  6677. ie(se), (ue = re.seq1Range.endExclusive), (de = re.seq2Range.endExclusive)
  6678. const ge = this.refineDiff(m, N, re, M, k)
  6679. ge.hitTimeout && (t = !0)
  6680. for (const Le of ge.mappings) te.push(Le)
  6681. }
  6682. ie(m.length - ue)
  6683. const Ce = g(te, m, N)
  6684. return new e.LinesDiff(Ce, t)
  6685. }
  6686. refineDiff(m, N, A, M, k) {
  6687. const q = new d(m, A.seq1Range, k),
  6688. I = new d(N, A.seq2Range, k),
  6689. B =
  6690. q.length + I.length < 500
  6691. ? this.dynamicProgrammingDiffing.compute(q, I, M)
  6692. : this.myersDiffingAlgorithm.compute(q, I, M)
  6693. let H = B.diffs
  6694. return (
  6695. (H = (0, a.optimizeSequenceDiffs)(q, I, H)),
  6696. (H = f(q, I, H)),
  6697. (H = (0, a.smoothenSequenceDiffs)(q, I, H)),
  6698. {
  6699. mappings: H.map(
  6700. (U) =>
  6701. new e.RangeMapping(q.translateRange(U.seq1Range), I.translateRange(U.seq2Range))
  6702. ),
  6703. hitTimeout: B.hitTimeout,
  6704. }
  6705. )
  6706. }
  6707. }
  6708. n.StandardLinesDiffComputer = b
  6709. function f(l, m, N) {
  6710. const A = []
  6711. let M
  6712. function k() {
  6713. if (!M) return
  6714. const I = M.s1Range.length - M.deleted,
  6715. B = M.s2Range.length - M.added
  6716. Math.max(M.deleted, M.added) + (M.count - 1) > I &&
  6717. A.push(new L.SequenceDiff(M.s1Range, M.s2Range)),
  6718. (M = void 0)
  6719. }
  6720. for (const I of N) {
  6721. let B = function (W, t) {
  6722. var te, ie, ue, de
  6723. if (!M || !M.s1Range.containsRange(W) || !M.s2Range.containsRange(t))
  6724. if (M && !(M.s1Range.endExclusive < W.start && M.s2Range.endExclusive < t.start)) {
  6725. const se = i.OffsetRange.tryCreate(M.s1Range.endExclusive, W.start),
  6726. ge = i.OffsetRange.tryCreate(M.s2Range.endExclusive, t.start)
  6727. ;(M.deleted += (te = se?.length) !== null && te !== void 0 ? te : 0),
  6728. (M.added += (ie = ge?.length) !== null && ie !== void 0 ? ie : 0),
  6729. (M.s1Range = M.s1Range.join(W)),
  6730. (M.s2Range = M.s2Range.join(t))
  6731. } else k(), (M = { added: 0, deleted: 0, count: 0, s1Range: W, s2Range: t })
  6732. const Ce = W.intersect(I.seq1Range),
  6733. re = t.intersect(I.seq2Range)
  6734. M.count++,
  6735. (M.deleted += (ue = Ce?.length) !== null && ue !== void 0 ? ue : 0),
  6736. (M.added += (de = re?.length) !== null && de !== void 0 ? de : 0)
  6737. }
  6738. const H = l.findWordContaining(I.seq1Range.start - 1),
  6739. F = m.findWordContaining(I.seq2Range.start - 1),
  6740. U = l.findWordContaining(I.seq1Range.endExclusive),
  6741. T = m.findWordContaining(I.seq2Range.endExclusive)
  6742. H && U && F && T && H.equals(U) && F.equals(T)
  6743. ? B(H, F)
  6744. : (H && F && B(H, F), U && T && B(U, T))
  6745. }
  6746. return k(), v(N, A)
  6747. }
  6748. function v(l, m) {
  6749. const N = []
  6750. for (; l.length > 0 || m.length > 0; ) {
  6751. const A = l[0],
  6752. M = m[0]
  6753. let k
  6754. A && (!M || A.seq1Range.start < M.seq1Range.start) ? (k = l.shift()) : (k = m.shift()),
  6755. N.length > 0 && N[N.length - 1].seq1Range.endExclusive >= k.seq1Range.start
  6756. ? (N[N.length - 1] = N[N.length - 1].join(k))
  6757. : N.push(k)
  6758. }
  6759. return N
  6760. }
  6761. function g(l, m, N) {
  6762. const A = []
  6763. for (const M of E(
  6764. l.map((k) => S(k, m, N)),
  6765. (k, q) =>
  6766. k.originalRange.overlapOrTouch(q.originalRange) ||
  6767. k.modifiedRange.overlapOrTouch(q.modifiedRange)
  6768. )) {
  6769. const k = M[0],
  6770. q = M[M.length - 1]
  6771. A.push(
  6772. new e.LineRangeMapping(
  6773. k.originalRange.join(q.originalRange),
  6774. k.modifiedRange.join(q.modifiedRange),
  6775. M.map((I) => I.innerChanges[0])
  6776. )
  6777. )
  6778. }
  6779. return (
  6780. (0, R.assertFn)(() =>
  6781. (0, R.checkAdjacentItems)(
  6782. A,
  6783. (M, k) =>
  6784. k.originalRange.startLineNumber - M.originalRange.endLineNumberExclusive ===
  6785. k.modifiedRange.startLineNumber - M.modifiedRange.endLineNumberExclusive &&
  6786. M.originalRange.endLineNumberExclusive < k.originalRange.startLineNumber &&
  6787. M.modifiedRange.endLineNumberExclusive < k.modifiedRange.startLineNumber
  6788. )
  6789. ),
  6790. A
  6791. )
  6792. }
  6793. n.lineRangeMappingFromRangeMappings = g
  6794. function S(l, m, N) {
  6795. let A = 0,
  6796. M = 0
  6797. l.modifiedRange.startColumn - 1 >= N[l.modifiedRange.startLineNumber - 1].length &&
  6798. l.originalRange.startColumn - 1 >= m[l.originalRange.startLineNumber - 1].length &&
  6799. (A = 1),
  6800. l.modifiedRange.endColumn === 1 &&
  6801. l.originalRange.endColumn === 1 &&
  6802. l.originalRange.startLineNumber + A <= l.originalRange.endLineNumber &&
  6803. l.modifiedRange.startLineNumber + A <= l.modifiedRange.endLineNumber &&
  6804. (M = -1)
  6805. const k = new D.LineRange(
  6806. l.originalRange.startLineNumber + A,
  6807. l.originalRange.endLineNumber + 1 + M
  6808. ),
  6809. q = new D.LineRange(
  6810. l.modifiedRange.startLineNumber + A,
  6811. l.modifiedRange.endLineNumber + 1 + M
  6812. )
  6813. return new e.LineRangeMapping(k, q, [l])
  6814. }
  6815. n.getLineRangeMapping = S
  6816. function* E(l, m) {
  6817. let N, A
  6818. for (const M of l)
  6819. A !== void 0 && m(A, M) ? N.push(M) : (N && (yield N), (N = [M])), (A = M)
  6820. N && (yield N)
  6821. }
  6822. class y {
  6823. constructor(m, N) {
  6824. ;(this.trimmedHash = m), (this.lines = N)
  6825. }
  6826. getElement(m) {
  6827. return this.trimmedHash[m]
  6828. }
  6829. get length() {
  6830. return this.trimmedHash.length
  6831. }
  6832. getBoundaryScore(m) {
  6833. const N = m === 0 ? 0 : _(this.lines[m - 1]),
  6834. A = m === this.lines.length ? 0 : _(this.lines[m])
  6835. return 1e3 - (N + A)
  6836. }
  6837. }
  6838. n.LineSequence = y
  6839. function _(l) {
  6840. let m = 0
  6841. for (; m < l.length && (l.charCodeAt(m) === 32 || l.charCodeAt(m) === 9); ) m++
  6842. return m
  6843. }
  6844. class d {
  6845. constructor(m, N, A) {
  6846. ;(this.lines = m),
  6847. (this.considerWhitespaceChanges = A),
  6848. (this.elements = []),
  6849. (this.firstCharOffsetByLineMinusOne = []),
  6850. (this.offsetByLine = [])
  6851. let M = !1
  6852. N.start > 0 &&
  6853. N.endExclusive >= m.length &&
  6854. ((N = new i.OffsetRange(N.start - 1, N.endExclusive)), (M = !0)),
  6855. (this.lineRange = N)
  6856. for (let k = this.lineRange.start; k < this.lineRange.endExclusive; k++) {
  6857. let q = m[k],
  6858. I = 0
  6859. if (M) (I = q.length), (q = ''), (M = !1)
  6860. else if (!A) {
  6861. const B = q.trimStart()
  6862. ;(I = q.length - B.length), (q = B.trimEnd())
  6863. }
  6864. this.offsetByLine.push(I)
  6865. for (let B = 0; B < q.length; B++) this.elements.push(q.charCodeAt(B))
  6866. k < m.length - 1 &&
  6867. (this.elements.push(
  6868. `
  6869. `.charCodeAt(0)
  6870. ),
  6871. (this.firstCharOffsetByLineMinusOne[k - this.lineRange.start] =
  6872. this.elements.length))
  6873. }
  6874. this.offsetByLine.push(0)
  6875. }
  6876. toString() {
  6877. return `Slice: "${this.text}"`
  6878. }
  6879. get text() {
  6880. return [...this.elements].map((m) => String.fromCharCode(m)).join('')
  6881. }
  6882. getElement(m) {
  6883. return this.elements[m]
  6884. }
  6885. get length() {
  6886. return this.elements.length
  6887. }
  6888. getBoundaryScore(m) {
  6889. const N = o(m > 0 ? this.elements[m - 1] : -1),
  6890. A = o(m < this.elements.length ? this.elements[m] : -1)
  6891. if (N === 6 && A === 7) return 0
  6892. let M = 0
  6893. return N !== A && ((M += 10), A === 1 && (M += 1)), (M += u(N)), (M += u(A)), M
  6894. }
  6895. translateOffset(m) {
  6896. if (this.lineRange.isEmpty) return new s.Position(this.lineRange.start + 1, 1)
  6897. let N = 0,
  6898. A = this.firstCharOffsetByLineMinusOne.length
  6899. for (; N < A; ) {
  6900. const k = Math.floor((N + A) / 2)
  6901. this.firstCharOffsetByLineMinusOne[k] > m ? (A = k) : (N = k + 1)
  6902. }
  6903. const M = N === 0 ? 0 : this.firstCharOffsetByLineMinusOne[N - 1]
  6904. return new s.Position(this.lineRange.start + N + 1, m - M + 1 + this.offsetByLine[N])
  6905. }
  6906. translateRange(m) {
  6907. return p.Range.fromPositions(
  6908. this.translateOffset(m.start),
  6909. this.translateOffset(m.endExclusive)
  6910. )
  6911. }
  6912. findWordContaining(m) {
  6913. if (m < 0 || m >= this.elements.length || !C(this.elements[m])) return
  6914. let N = m
  6915. for (; N > 0 && C(this.elements[N - 1]); ) N--
  6916. let A = m
  6917. for (; A < this.elements.length && C(this.elements[A]); ) A++
  6918. return new i.OffsetRange(N, A)
  6919. }
  6920. }
  6921. function C(l) {
  6922. return (l >= 97 && l <= 122) || (l >= 65 && l <= 90) || (l >= 48 && l <= 57)
  6923. }
  6924. const r = { [0]: 0, [1]: 0, [2]: 0, [3]: 10, [4]: 2, [5]: 3, [6]: 10, [7]: 10 }
  6925. function u(l) {
  6926. return r[l]
  6927. }
  6928. function o(l) {
  6929. return l === 10
  6930. ? 7
  6931. : l === 13
  6932. ? 6
  6933. : c(l)
  6934. ? 5
  6935. : l >= 97 && l <= 122
  6936. ? 0
  6937. : l >= 65 && l <= 90
  6938. ? 1
  6939. : l >= 48 && l <= 57
  6940. ? 2
  6941. : l === -1
  6942. ? 3
  6943. : 4
  6944. }
  6945. function c(l) {
  6946. return l === 32 || l === 9
  6947. }
  6948. }
  6949. ),
  6950. Q(Y[41], X([0, 1, 39, 40]), function (x, n, R, D) {
  6951. 'use strict'
  6952. Object.defineProperty(n, '__esModule', { value: !0 }),
  6953. (n.linesDiffComputers = void 0),
  6954. (n.linesDiffComputers = {
  6955. smart: new R.SmartLinesDiffComputer(),
  6956. experimental: new D.StandardLinesDiffComputer(),
  6957. })
  6958. }),
  6959. Q(Y[42], X([0, 1, 20]), function (x, n, R) {
  6960. 'use strict'
  6961. Object.defineProperty(n, '__esModule', { value: !0 }),
  6962. (n.computeLinks = n.LinkComputer = n.StateMachine = void 0)
  6963. class D {
  6964. constructor(b, f, v) {
  6965. const g = new Uint8Array(b * f)
  6966. for (let S = 0, E = b * f; S < E; S++) g[S] = v
  6967. ;(this._data = g), (this.rows = b), (this.cols = f)
  6968. }
  6969. get(b, f) {
  6970. return this._data[b * this.cols + f]
  6971. }
  6972. set(b, f, v) {
  6973. this._data[b * this.cols + f] = v
  6974. }
  6975. }
  6976. class i {
  6977. constructor(b) {
  6978. let f = 0,
  6979. v = 0
  6980. for (let S = 0, E = b.length; S < E; S++) {
  6981. const [y, _, d] = b[S]
  6982. _ > f && (f = _), y > v && (v = y), d > v && (v = d)
  6983. }
  6984. f++, v++
  6985. const g = new D(v, f, 0)
  6986. for (let S = 0, E = b.length; S < E; S++) {
  6987. const [y, _, d] = b[S]
  6988. g.set(y, _, d)
  6989. }
  6990. ;(this._states = g), (this._maxCharCode = f)
  6991. }
  6992. nextState(b, f) {
  6993. return f < 0 || f >= this._maxCharCode ? 0 : this._states.get(b, f)
  6994. }
  6995. }
  6996. n.StateMachine = i
  6997. let s = null
  6998. function p() {
  6999. return (
  7000. s === null &&
  7001. (s = new i([
  7002. [1, 104, 2],
  7003. [1, 72, 2],
  7004. [1, 102, 6],
  7005. [1, 70, 6],
  7006. [2, 116, 3],
  7007. [2, 84, 3],
  7008. [3, 116, 4],
  7009. [3, 84, 4],
  7010. [4, 112, 5],
  7011. [4, 80, 5],
  7012. [5, 115, 9],
  7013. [5, 83, 9],
  7014. [5, 58, 10],
  7015. [6, 105, 7],
  7016. [6, 73, 7],
  7017. [7, 108, 8],
  7018. [7, 76, 8],
  7019. [8, 101, 9],
  7020. [8, 69, 9],
  7021. [9, 58, 10],
  7022. [10, 47, 11],
  7023. [11, 47, 12],
  7024. ])),
  7025. s
  7026. )
  7027. }
  7028. let L = null
  7029. function h() {
  7030. if (L === null) {
  7031. L = new R.CharacterClassifier(0)
  7032. const e = ` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`
  7033. for (let f = 0; f < e.length; f++) L.set(e.charCodeAt(f), 1)
  7034. const b = '.,;:'
  7035. for (let f = 0; f < b.length; f++) L.set(b.charCodeAt(f), 2)
  7036. }
  7037. return L
  7038. }
  7039. class a {
  7040. static _createLink(b, f, v, g, S) {
  7041. let E = S - 1
  7042. do {
  7043. const y = f.charCodeAt(E)
  7044. if (b.get(y) !== 2) break
  7045. E--
  7046. } while (E > g)
  7047. if (g > 0) {
  7048. const y = f.charCodeAt(g - 1),
  7049. _ = f.charCodeAt(E)
  7050. ;((y === 40 && _ === 41) || (y === 91 && _ === 93) || (y === 123 && _ === 125)) && E--
  7051. }
  7052. return {
  7053. range: { startLineNumber: v, startColumn: g + 1, endLineNumber: v, endColumn: E + 2 },
  7054. url: f.substring(g, E + 1),
  7055. }
  7056. }
  7057. static computeLinks(b, f = p()) {
  7058. const v = h(),
  7059. g = []
  7060. for (let S = 1, E = b.getLineCount(); S <= E; S++) {
  7061. const y = b.getLineContent(S),
  7062. _ = y.length
  7063. let d = 0,
  7064. C = 0,
  7065. r = 0,
  7066. u = 1,
  7067. o = !1,
  7068. c = !1,
  7069. l = !1,
  7070. m = !1
  7071. for (; d < _; ) {
  7072. let N = !1
  7073. const A = y.charCodeAt(d)
  7074. if (u === 13) {
  7075. let M
  7076. switch (A) {
  7077. case 40:
  7078. ;(o = !0), (M = 0)
  7079. break
  7080. case 41:
  7081. M = o ? 0 : 1
  7082. break
  7083. case 91:
  7084. ;(l = !0), (c = !0), (M = 0)
  7085. break
  7086. case 93:
  7087. ;(l = !1), (M = c ? 0 : 1)
  7088. break
  7089. case 123:
  7090. ;(m = !0), (M = 0)
  7091. break
  7092. case 125:
  7093. M = m ? 0 : 1
  7094. break
  7095. case 39:
  7096. case 34:
  7097. case 96:
  7098. r === A ? (M = 1) : r === 39 || r === 34 || r === 96 ? (M = 0) : (M = 1)
  7099. break
  7100. case 42:
  7101. M = r === 42 ? 1 : 0
  7102. break
  7103. case 124:
  7104. M = r === 124 ? 1 : 0
  7105. break
  7106. case 32:
  7107. M = l ? 0 : 1
  7108. break
  7109. default:
  7110. M = v.get(A)
  7111. }
  7112. M === 1 && (g.push(a._createLink(v, y, S, C, d)), (N = !0))
  7113. } else if (u === 12) {
  7114. let M
  7115. A === 91 ? ((c = !0), (M = 0)) : (M = v.get(A)), M === 1 ? (N = !0) : (u = 13)
  7116. } else (u = f.nextState(u, A)), u === 0 && (N = !0)
  7117. N && ((u = 1), (o = !1), (c = !1), (m = !1), (C = d + 1), (r = A)), d++
  7118. }
  7119. u === 13 && g.push(a._createLink(v, y, S, C, _))
  7120. }
  7121. return g
  7122. }
  7123. }
  7124. n.LinkComputer = a
  7125. function w(e) {
  7126. return !e || typeof e.getLineCount != 'function' || typeof e.getLineContent != 'function'
  7127. ? []
  7128. : a.computeLinks(e)
  7129. }
  7130. n.computeLinks = w
  7131. }),
  7132. Q(Y[43], X([0, 1]), function (x, n) {
  7133. 'use strict'
  7134. Object.defineProperty(n, '__esModule', { value: !0 }), (n.BasicInplaceReplace = void 0)
  7135. class R {
  7136. constructor() {
  7137. this._defaultValueSet = [
  7138. ['true', 'false'],
  7139. ['True', 'False'],
  7140. ['Private', 'Public', 'Friend', 'ReadOnly', 'Partial', 'Protected', 'WriteOnly'],
  7141. ['public', 'protected', 'private'],
  7142. ]
  7143. }
  7144. navigateValueSet(i, s, p, L, h) {
  7145. if (i && s) {
  7146. const a = this.doNavigateValueSet(s, h)
  7147. if (a) return { range: i, value: a }
  7148. }
  7149. if (p && L) {
  7150. const a = this.doNavigateValueSet(L, h)
  7151. if (a) return { range: p, value: a }
  7152. }
  7153. return null
  7154. }
  7155. doNavigateValueSet(i, s) {
  7156. const p = this.numberReplace(i, s)
  7157. return p !== null ? p : this.textReplace(i, s)
  7158. }
  7159. numberReplace(i, s) {
  7160. const p = Math.pow(10, i.length - (i.lastIndexOf('.') + 1))
  7161. let L = Number(i)
  7162. const h = parseFloat(i)
  7163. return !isNaN(L) && !isNaN(h) && L === h
  7164. ? L === 0 && !s
  7165. ? null
  7166. : ((L = Math.floor(L * p)), (L += s ? p : -p), String(L / p))
  7167. : null
  7168. }
  7169. textReplace(i, s) {
  7170. return this.valueSetsReplace(this._defaultValueSet, i, s)
  7171. }
  7172. valueSetsReplace(i, s, p) {
  7173. let L = null
  7174. for (let h = 0, a = i.length; L === null && h < a; h++)
  7175. L = this.valueSetReplace(i[h], s, p)
  7176. return L
  7177. }
  7178. valueSetReplace(i, s, p) {
  7179. let L = i.indexOf(s)
  7180. return L >= 0
  7181. ? ((L += p ? 1 : -1), L < 0 ? (L = i.length - 1) : (L %= i.length), i[L])
  7182. : null
  7183. }
  7184. }
  7185. ;(R.INSTANCE = new R()), (n.BasicInplaceReplace = R)
  7186. }),
  7187. Q(Y[44], X([0, 1, 12]), function (x, n, R) {
  7188. 'use strict'
  7189. Object.defineProperty(n, '__esModule', { value: !0 }),
  7190. (n.shouldSynchronizeModel =
  7191. n.ApplyEditsResult =
  7192. n.SearchData =
  7193. n.ValidAnnotatedEditOperation =
  7194. n.isITextSnapshot =
  7195. n.FindMatch =
  7196. n.TextModelResolvedOptions =
  7197. n.InjectedTextCursorStops =
  7198. n.MinimapPosition =
  7199. n.OverviewRulerLane =
  7200. void 0)
  7201. var D
  7202. ;(function (f) {
  7203. ;(f[(f.Left = 1)] = 'Left'),
  7204. (f[(f.Center = 2)] = 'Center'),
  7205. (f[(f.Right = 4)] = 'Right'),
  7206. (f[(f.Full = 7)] = 'Full')
  7207. })((D = n.OverviewRulerLane || (n.OverviewRulerLane = {})))
  7208. var i
  7209. ;(function (f) {
  7210. ;(f[(f.Inline = 1)] = 'Inline'), (f[(f.Gutter = 2)] = 'Gutter')
  7211. })((i = n.MinimapPosition || (n.MinimapPosition = {})))
  7212. var s
  7213. ;(function (f) {
  7214. ;(f[(f.Both = 0)] = 'Both'),
  7215. (f[(f.Right = 1)] = 'Right'),
  7216. (f[(f.Left = 2)] = 'Left'),
  7217. (f[(f.None = 3)] = 'None')
  7218. })((s = n.InjectedTextCursorStops || (n.InjectedTextCursorStops = {})))
  7219. class p {
  7220. get originalIndentSize() {
  7221. return this._indentSizeIsTabSize ? 'tabSize' : this.indentSize
  7222. }
  7223. constructor(v) {
  7224. ;(this._textModelResolvedOptionsBrand = void 0),
  7225. (this.tabSize = Math.max(1, v.tabSize | 0)),
  7226. v.indentSize === 'tabSize'
  7227. ? ((this.indentSize = this.tabSize), (this._indentSizeIsTabSize = !0))
  7228. : ((this.indentSize = Math.max(1, v.indentSize | 0)),
  7229. (this._indentSizeIsTabSize = !1)),
  7230. (this.insertSpaces = Boolean(v.insertSpaces)),
  7231. (this.defaultEOL = v.defaultEOL | 0),
  7232. (this.trimAutoWhitespace = Boolean(v.trimAutoWhitespace)),
  7233. (this.bracketPairColorizationOptions = v.bracketPairColorizationOptions)
  7234. }
  7235. equals(v) {
  7236. return (
  7237. this.tabSize === v.tabSize &&
  7238. this._indentSizeIsTabSize === v._indentSizeIsTabSize &&
  7239. this.indentSize === v.indentSize &&
  7240. this.insertSpaces === v.insertSpaces &&
  7241. this.defaultEOL === v.defaultEOL &&
  7242. this.trimAutoWhitespace === v.trimAutoWhitespace &&
  7243. (0, R.equals)(this.bracketPairColorizationOptions, v.bracketPairColorizationOptions)
  7244. )
  7245. }
  7246. createChangeEvent(v) {
  7247. return {
  7248. tabSize: this.tabSize !== v.tabSize,
  7249. indentSize: this.indentSize !== v.indentSize,
  7250. insertSpaces: this.insertSpaces !== v.insertSpaces,
  7251. trimAutoWhitespace: this.trimAutoWhitespace !== v.trimAutoWhitespace,
  7252. }
  7253. }
  7254. }
  7255. n.TextModelResolvedOptions = p
  7256. class L {
  7257. constructor(v, g) {
  7258. ;(this._findMatchBrand = void 0), (this.range = v), (this.matches = g)
  7259. }
  7260. }
  7261. n.FindMatch = L
  7262. function h(f) {
  7263. return f && typeof f.read == 'function'
  7264. }
  7265. n.isITextSnapshot = h
  7266. class a {
  7267. constructor(v, g, S, E, y, _) {
  7268. ;(this.identifier = v),
  7269. (this.range = g),
  7270. (this.text = S),
  7271. (this.forceMoveMarkers = E),
  7272. (this.isAutoWhitespaceEdit = y),
  7273. (this._isTracked = _)
  7274. }
  7275. }
  7276. n.ValidAnnotatedEditOperation = a
  7277. class w {
  7278. constructor(v, g, S) {
  7279. ;(this.regex = v), (this.wordSeparators = g), (this.simpleSearch = S)
  7280. }
  7281. }
  7282. n.SearchData = w
  7283. class e {
  7284. constructor(v, g, S) {
  7285. ;(this.reverseEdits = v), (this.changes = g), (this.trimAutoWhitespaceLineNumbers = S)
  7286. }
  7287. }
  7288. n.ApplyEditsResult = e
  7289. function b(f) {
  7290. return !f.isTooLargeForSyncing() && !f.isForSimpleWidget
  7291. }
  7292. n.shouldSynchronizeModel = b
  7293. }),
  7294. Q(Y[45], X([0, 1, 26, 19]), function (x, n, R, D) {
  7295. 'use strict'
  7296. Object.defineProperty(n, '__esModule', { value: !0 }),
  7297. (n.PrefixSumIndexOfResult = n.ConstantTimePrefixSumComputer = n.PrefixSumComputer = void 0)
  7298. class i {
  7299. constructor(h) {
  7300. ;(this.values = h),
  7301. (this.prefixSum = new Uint32Array(h.length)),
  7302. (this.prefixSumValidIndex = new Int32Array(1)),
  7303. (this.prefixSumValidIndex[0] = -1)
  7304. }
  7305. insertValues(h, a) {
  7306. h = (0, D.toUint32)(h)
  7307. const w = this.values,
  7308. e = this.prefixSum,
  7309. b = a.length
  7310. return b === 0
  7311. ? !1
  7312. : ((this.values = new Uint32Array(w.length + b)),
  7313. this.values.set(w.subarray(0, h), 0),
  7314. this.values.set(w.subarray(h), h + b),
  7315. this.values.set(a, h),
  7316. h - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = h - 1),
  7317. (this.prefixSum = new Uint32Array(this.values.length)),
  7318. this.prefixSumValidIndex[0] >= 0 &&
  7319. this.prefixSum.set(e.subarray(0, this.prefixSumValidIndex[0] + 1)),
  7320. !0)
  7321. }
  7322. setValue(h, a) {
  7323. return (
  7324. (h = (0, D.toUint32)(h)),
  7325. (a = (0, D.toUint32)(a)),
  7326. this.values[h] === a
  7327. ? !1
  7328. : ((this.values[h] = a),
  7329. h - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = h - 1),
  7330. !0)
  7331. )
  7332. }
  7333. removeValues(h, a) {
  7334. ;(h = (0, D.toUint32)(h)), (a = (0, D.toUint32)(a))
  7335. const w = this.values,
  7336. e = this.prefixSum
  7337. if (h >= w.length) return !1
  7338. const b = w.length - h
  7339. return (
  7340. a >= b && (a = b),
  7341. a === 0
  7342. ? !1
  7343. : ((this.values = new Uint32Array(w.length - a)),
  7344. this.values.set(w.subarray(0, h), 0),
  7345. this.values.set(w.subarray(h + a), h),
  7346. (this.prefixSum = new Uint32Array(this.values.length)),
  7347. h - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = h - 1),
  7348. this.prefixSumValidIndex[0] >= 0 &&
  7349. this.prefixSum.set(e.subarray(0, this.prefixSumValidIndex[0] + 1)),
  7350. !0)
  7351. )
  7352. }
  7353. getTotalSum() {
  7354. return this.values.length === 0 ? 0 : this._getPrefixSum(this.values.length - 1)
  7355. }
  7356. getPrefixSum(h) {
  7357. return h < 0 ? 0 : ((h = (0, D.toUint32)(h)), this._getPrefixSum(h))
  7358. }
  7359. _getPrefixSum(h) {
  7360. if (h <= this.prefixSumValidIndex[0]) return this.prefixSum[h]
  7361. let a = this.prefixSumValidIndex[0] + 1
  7362. a === 0 && ((this.prefixSum[0] = this.values[0]), a++),
  7363. h >= this.values.length && (h = this.values.length - 1)
  7364. for (let w = a; w <= h; w++) this.prefixSum[w] = this.prefixSum[w - 1] + this.values[w]
  7365. return (
  7366. (this.prefixSumValidIndex[0] = Math.max(this.prefixSumValidIndex[0], h)),
  7367. this.prefixSum[h]
  7368. )
  7369. }
  7370. getIndexOf(h) {
  7371. ;(h = Math.floor(h)), this.getTotalSum()
  7372. let a = 0,
  7373. w = this.values.length - 1,
  7374. e = 0,
  7375. b = 0,
  7376. f = 0
  7377. for (; a <= w; )
  7378. if (
  7379. ((e = (a + (w - a) / 2) | 0),
  7380. (b = this.prefixSum[e]),
  7381. (f = b - this.values[e]),
  7382. h < f)
  7383. )
  7384. w = e - 1
  7385. else if (h >= b) a = e + 1
  7386. else break
  7387. return new p(e, h - f)
  7388. }
  7389. }
  7390. n.PrefixSumComputer = i
  7391. class s {
  7392. constructor(h) {
  7393. ;(this._values = h),
  7394. (this._isValid = !1),
  7395. (this._validEndIndex = -1),
  7396. (this._prefixSum = []),
  7397. (this._indexBySum = [])
  7398. }
  7399. getTotalSum() {
  7400. return this._ensureValid(), this._indexBySum.length
  7401. }
  7402. getPrefixSum(h) {
  7403. return this._ensureValid(), h === 0 ? 0 : this._prefixSum[h - 1]
  7404. }
  7405. getIndexOf(h) {
  7406. this._ensureValid()
  7407. const a = this._indexBySum[h],
  7408. w = a > 0 ? this._prefixSum[a - 1] : 0
  7409. return new p(a, h - w)
  7410. }
  7411. removeValues(h, a) {
  7412. this._values.splice(h, a), this._invalidate(h)
  7413. }
  7414. insertValues(h, a) {
  7415. ;(this._values = (0, R.arrayInsert)(this._values, h, a)), this._invalidate(h)
  7416. }
  7417. _invalidate(h) {
  7418. ;(this._isValid = !1), (this._validEndIndex = Math.min(this._validEndIndex, h - 1))
  7419. }
  7420. _ensureValid() {
  7421. if (!this._isValid) {
  7422. for (let h = this._validEndIndex + 1, a = this._values.length; h < a; h++) {
  7423. const w = this._values[h],
  7424. e = h > 0 ? this._prefixSum[h - 1] : 0
  7425. this._prefixSum[h] = e + w
  7426. for (let b = 0; b < w; b++) this._indexBySum[e + b] = h
  7427. }
  7428. ;(this._prefixSum.length = this._values.length),
  7429. (this._indexBySum.length = this._prefixSum[this._prefixSum.length - 1]),
  7430. (this._isValid = !0),
  7431. (this._validEndIndex = this._values.length - 1)
  7432. }
  7433. }
  7434. setValue(h, a) {
  7435. this._values[h] !== a && ((this._values[h] = a), this._invalidate(h))
  7436. }
  7437. }
  7438. n.ConstantTimePrefixSumComputer = s
  7439. class p {
  7440. constructor(h, a) {
  7441. ;(this.index = h),
  7442. (this.remainder = a),
  7443. (this._prefixSumIndexOfResultBrand = void 0),
  7444. (this.index = h),
  7445. (this.remainder = a)
  7446. }
  7447. }
  7448. n.PrefixSumIndexOfResult = p
  7449. }),
  7450. Q(Y[46], X([0, 1, 5, 3, 45]), function (x, n, R, D, i) {
  7451. 'use strict'
  7452. Object.defineProperty(n, '__esModule', { value: !0 }), (n.MirrorTextModel = void 0)
  7453. class s {
  7454. constructor(L, h, a, w) {
  7455. ;(this._uri = L),
  7456. (this._lines = h),
  7457. (this._eol = a),
  7458. (this._versionId = w),
  7459. (this._lineStarts = null),
  7460. (this._cachedTextValue = null)
  7461. }
  7462. dispose() {
  7463. this._lines.length = 0
  7464. }
  7465. get version() {
  7466. return this._versionId
  7467. }
  7468. getText() {
  7469. return (
  7470. this._cachedTextValue === null && (this._cachedTextValue = this._lines.join(this._eol)),
  7471. this._cachedTextValue
  7472. )
  7473. }
  7474. onEvents(L) {
  7475. L.eol && L.eol !== this._eol && ((this._eol = L.eol), (this._lineStarts = null))
  7476. const h = L.changes
  7477. for (const a of h)
  7478. this._acceptDeleteRange(a.range),
  7479. this._acceptInsertText(
  7480. new D.Position(a.range.startLineNumber, a.range.startColumn),
  7481. a.text
  7482. )
  7483. ;(this._versionId = L.versionId), (this._cachedTextValue = null)
  7484. }
  7485. _ensureLineStarts() {
  7486. if (!this._lineStarts) {
  7487. const L = this._eol.length,
  7488. h = this._lines.length,
  7489. a = new Uint32Array(h)
  7490. for (let w = 0; w < h; w++) a[w] = this._lines[w].length + L
  7491. this._lineStarts = new i.PrefixSumComputer(a)
  7492. }
  7493. }
  7494. _setLineText(L, h) {
  7495. ;(this._lines[L] = h),
  7496. this._lineStarts &&
  7497. this._lineStarts.setValue(L, this._lines[L].length + this._eol.length)
  7498. }
  7499. _acceptDeleteRange(L) {
  7500. if (L.startLineNumber === L.endLineNumber) {
  7501. if (L.startColumn === L.endColumn) return
  7502. this._setLineText(
  7503. L.startLineNumber - 1,
  7504. this._lines[L.startLineNumber - 1].substring(0, L.startColumn - 1) +
  7505. this._lines[L.startLineNumber - 1].substring(L.endColumn - 1)
  7506. )
  7507. return
  7508. }
  7509. this._setLineText(
  7510. L.startLineNumber - 1,
  7511. this._lines[L.startLineNumber - 1].substring(0, L.startColumn - 1) +
  7512. this._lines[L.endLineNumber - 1].substring(L.endColumn - 1)
  7513. ),
  7514. this._lines.splice(L.startLineNumber, L.endLineNumber - L.startLineNumber),
  7515. this._lineStarts &&
  7516. this._lineStarts.removeValues(L.startLineNumber, L.endLineNumber - L.startLineNumber)
  7517. }
  7518. _acceptInsertText(L, h) {
  7519. if (h.length === 0) return
  7520. const a = (0, R.splitLines)(h)
  7521. if (a.length === 1) {
  7522. this._setLineText(
  7523. L.lineNumber - 1,
  7524. this._lines[L.lineNumber - 1].substring(0, L.column - 1) +
  7525. a[0] +
  7526. this._lines[L.lineNumber - 1].substring(L.column - 1)
  7527. )
  7528. return
  7529. }
  7530. ;(a[a.length - 1] += this._lines[L.lineNumber - 1].substring(L.column - 1)),
  7531. this._setLineText(
  7532. L.lineNumber - 1,
  7533. this._lines[L.lineNumber - 1].substring(0, L.column - 1) + a[0]
  7534. )
  7535. const w = new Uint32Array(a.length - 1)
  7536. for (let e = 1; e < a.length; e++)
  7537. this._lines.splice(L.lineNumber + e - 1, 0, a[e]),
  7538. (w[e - 1] = a[e].length + this._eol.length)
  7539. this._lineStarts && this._lineStarts.insertValues(L.lineNumber, w)
  7540. }
  7541. }
  7542. n.MirrorTextModel = s
  7543. }),
  7544. Q(Y[47], X([0, 1, 5, 34, 3, 2, 44]), function (x, n, R, D, i, s, p) {
  7545. 'use strict'
  7546. Object.defineProperty(n, '__esModule', { value: !0 }),
  7547. (n.Searcher =
  7548. n.isValidMatch =
  7549. n.TextModelSearch =
  7550. n.createFindMatch =
  7551. n.isMultilineRegexSource =
  7552. n.SearchParams =
  7553. void 0)
  7554. const L = 999
  7555. class h {
  7556. constructor(y, _, d, C) {
  7557. ;(this.searchString = y),
  7558. (this.isRegex = _),
  7559. (this.matchCase = d),
  7560. (this.wordSeparators = C)
  7561. }
  7562. parseSearchRequest() {
  7563. if (this.searchString === '') return null
  7564. let y
  7565. this.isRegex
  7566. ? (y = a(this.searchString))
  7567. : (y =
  7568. this.searchString.indexOf(`
  7569. `) >= 0)
  7570. let _ = null
  7571. try {
  7572. _ = R.createRegExp(this.searchString, this.isRegex, {
  7573. matchCase: this.matchCase,
  7574. wholeWord: !1,
  7575. multiline: y,
  7576. global: !0,
  7577. unicode: !0,
  7578. })
  7579. } catch {
  7580. return null
  7581. }
  7582. if (!_) return null
  7583. let d = !this.isRegex && !y
  7584. return (
  7585. d &&
  7586. this.searchString.toLowerCase() !== this.searchString.toUpperCase() &&
  7587. (d = this.matchCase),
  7588. new p.SearchData(
  7589. _,
  7590. this.wordSeparators ? (0, D.getMapForWordSeparators)(this.wordSeparators) : null,
  7591. d ? this.searchString : null
  7592. )
  7593. )
  7594. }
  7595. }
  7596. n.SearchParams = h
  7597. function a(E) {
  7598. if (!E || E.length === 0) return !1
  7599. for (let y = 0, _ = E.length; y < _; y++) {
  7600. const d = E.charCodeAt(y)
  7601. if (d === 10) return !0
  7602. if (d === 92) {
  7603. if ((y++, y >= _)) break
  7604. const C = E.charCodeAt(y)
  7605. if (C === 110 || C === 114 || C === 87) return !0
  7606. }
  7607. }
  7608. return !1
  7609. }
  7610. n.isMultilineRegexSource = a
  7611. function w(E, y, _) {
  7612. if (!_) return new p.FindMatch(E, null)
  7613. const d = []
  7614. for (let C = 0, r = y.length; C < r; C++) d[C] = y[C]
  7615. return new p.FindMatch(E, d)
  7616. }
  7617. n.createFindMatch = w
  7618. class e {
  7619. constructor(y) {
  7620. const _ = []
  7621. let d = 0
  7622. for (let C = 0, r = y.length; C < r; C++) y.charCodeAt(C) === 10 && (_[d++] = C)
  7623. this._lineFeedsOffsets = _
  7624. }
  7625. findLineFeedCountBeforeOffset(y) {
  7626. const _ = this._lineFeedsOffsets
  7627. let d = 0,
  7628. C = _.length - 1
  7629. if (C === -1 || y <= _[0]) return 0
  7630. for (; d < C; ) {
  7631. const r = d + (((C - d) / 2) >> 0)
  7632. _[r] >= y ? (C = r - 1) : _[r + 1] >= y ? ((d = r), (C = r)) : (d = r + 1)
  7633. }
  7634. return d + 1
  7635. }
  7636. }
  7637. class b {
  7638. static findMatches(y, _, d, C, r) {
  7639. const u = _.parseSearchRequest()
  7640. return u
  7641. ? u.regex.multiline
  7642. ? this._doFindMatchesMultiline(y, d, new S(u.wordSeparators, u.regex), C, r)
  7643. : this._doFindMatchesLineByLine(y, d, u, C, r)
  7644. : []
  7645. }
  7646. static _getMultilineMatchRange(y, _, d, C, r, u) {
  7647. let o,
  7648. c = 0
  7649. C ? ((c = C.findLineFeedCountBeforeOffset(r)), (o = _ + r + c)) : (o = _ + r)
  7650. let l
  7651. if (C) {
  7652. const M = C.findLineFeedCountBeforeOffset(r + u.length) - c
  7653. l = o + u.length + M
  7654. } else l = o + u.length
  7655. const m = y.getPositionAt(o),
  7656. N = y.getPositionAt(l)
  7657. return new s.Range(m.lineNumber, m.column, N.lineNumber, N.column)
  7658. }
  7659. static _doFindMatchesMultiline(y, _, d, C, r) {
  7660. const u = y.getOffsetAt(_.getStartPosition()),
  7661. o = y.getValueInRange(_, 1),
  7662. c =
  7663. y.getEOL() ===
  7664. `\r
  7665. `
  7666. ? new e(o)
  7667. : null,
  7668. l = []
  7669. let m = 0,
  7670. N
  7671. for (d.reset(0); (N = d.next(o)); )
  7672. if (
  7673. ((l[m++] = w(this._getMultilineMatchRange(y, u, o, c, N.index, N[0]), N, C)), m >= r)
  7674. )
  7675. return l
  7676. return l
  7677. }
  7678. static _doFindMatchesLineByLine(y, _, d, C, r) {
  7679. const u = []
  7680. let o = 0
  7681. if (_.startLineNumber === _.endLineNumber) {
  7682. const l = y
  7683. .getLineContent(_.startLineNumber)
  7684. .substring(_.startColumn - 1, _.endColumn - 1)
  7685. return (
  7686. (o = this._findMatchesInLine(d, l, _.startLineNumber, _.startColumn - 1, o, u, C, r)),
  7687. u
  7688. )
  7689. }
  7690. const c = y.getLineContent(_.startLineNumber).substring(_.startColumn - 1)
  7691. o = this._findMatchesInLine(d, c, _.startLineNumber, _.startColumn - 1, o, u, C, r)
  7692. for (let l = _.startLineNumber + 1; l < _.endLineNumber && o < r; l++)
  7693. o = this._findMatchesInLine(d, y.getLineContent(l), l, 0, o, u, C, r)
  7694. if (o < r) {
  7695. const l = y.getLineContent(_.endLineNumber).substring(0, _.endColumn - 1)
  7696. o = this._findMatchesInLine(d, l, _.endLineNumber, 0, o, u, C, r)
  7697. }
  7698. return u
  7699. }
  7700. static _findMatchesInLine(y, _, d, C, r, u, o, c) {
  7701. const l = y.wordSeparators
  7702. if (!o && y.simpleSearch) {
  7703. const A = y.simpleSearch,
  7704. M = A.length,
  7705. k = _.length
  7706. let q = -M
  7707. for (; (q = _.indexOf(A, q + M)) !== -1; )
  7708. if (
  7709. (!l || g(l, _, k, q, M)) &&
  7710. ((u[r++] = new p.FindMatch(new s.Range(d, q + 1 + C, d, q + 1 + M + C), null)),
  7711. r >= c)
  7712. )
  7713. return r
  7714. return r
  7715. }
  7716. const m = new S(y.wordSeparators, y.regex)
  7717. let N
  7718. m.reset(0)
  7719. do
  7720. if (
  7721. ((N = m.next(_)),
  7722. N &&
  7723. ((u[r++] = w(
  7724. new s.Range(d, N.index + 1 + C, d, N.index + 1 + N[0].length + C),
  7725. N,
  7726. o
  7727. )),
  7728. r >= c))
  7729. )
  7730. return r
  7731. while (N)
  7732. return r
  7733. }
  7734. static findNextMatch(y, _, d, C) {
  7735. const r = _.parseSearchRequest()
  7736. if (!r) return null
  7737. const u = new S(r.wordSeparators, r.regex)
  7738. return r.regex.multiline
  7739. ? this._doFindNextMatchMultiline(y, d, u, C)
  7740. : this._doFindNextMatchLineByLine(y, d, u, C)
  7741. }
  7742. static _doFindNextMatchMultiline(y, _, d, C) {
  7743. const r = new i.Position(_.lineNumber, 1),
  7744. u = y.getOffsetAt(r),
  7745. o = y.getLineCount(),
  7746. c = y.getValueInRange(new s.Range(r.lineNumber, r.column, o, y.getLineMaxColumn(o)), 1),
  7747. l =
  7748. y.getEOL() ===
  7749. `\r
  7750. `
  7751. ? new e(c)
  7752. : null
  7753. d.reset(_.column - 1)
  7754. const m = d.next(c)
  7755. return m
  7756. ? w(this._getMultilineMatchRange(y, u, c, l, m.index, m[0]), m, C)
  7757. : _.lineNumber !== 1 || _.column !== 1
  7758. ? this._doFindNextMatchMultiline(y, new i.Position(1, 1), d, C)
  7759. : null
  7760. }
  7761. static _doFindNextMatchLineByLine(y, _, d, C) {
  7762. const r = y.getLineCount(),
  7763. u = _.lineNumber,
  7764. o = y.getLineContent(u),
  7765. c = this._findFirstMatchInLine(d, o, u, _.column, C)
  7766. if (c) return c
  7767. for (let l = 1; l <= r; l++) {
  7768. const m = (u + l - 1) % r,
  7769. N = y.getLineContent(m + 1),
  7770. A = this._findFirstMatchInLine(d, N, m + 1, 1, C)
  7771. if (A) return A
  7772. }
  7773. return null
  7774. }
  7775. static _findFirstMatchInLine(y, _, d, C, r) {
  7776. y.reset(C - 1)
  7777. const u = y.next(_)
  7778. return u ? w(new s.Range(d, u.index + 1, d, u.index + 1 + u[0].length), u, r) : null
  7779. }
  7780. static findPreviousMatch(y, _, d, C) {
  7781. const r = _.parseSearchRequest()
  7782. if (!r) return null
  7783. const u = new S(r.wordSeparators, r.regex)
  7784. return r.regex.multiline
  7785. ? this._doFindPreviousMatchMultiline(y, d, u, C)
  7786. : this._doFindPreviousMatchLineByLine(y, d, u, C)
  7787. }
  7788. static _doFindPreviousMatchMultiline(y, _, d, C) {
  7789. const r = this._doFindMatchesMultiline(
  7790. y,
  7791. new s.Range(1, 1, _.lineNumber, _.column),
  7792. d,
  7793. C,
  7794. 10 * L
  7795. )
  7796. if (r.length > 0) return r[r.length - 1]
  7797. const u = y.getLineCount()
  7798. return _.lineNumber !== u || _.column !== y.getLineMaxColumn(u)
  7799. ? this._doFindPreviousMatchMultiline(y, new i.Position(u, y.getLineMaxColumn(u)), d, C)
  7800. : null
  7801. }
  7802. static _doFindPreviousMatchLineByLine(y, _, d, C) {
  7803. const r = y.getLineCount(),
  7804. u = _.lineNumber,
  7805. o = y.getLineContent(u).substring(0, _.column - 1),
  7806. c = this._findLastMatchInLine(d, o, u, C)
  7807. if (c) return c
  7808. for (let l = 1; l <= r; l++) {
  7809. const m = (r + u - l - 1) % r,
  7810. N = y.getLineContent(m + 1),
  7811. A = this._findLastMatchInLine(d, N, m + 1, C)
  7812. if (A) return A
  7813. }
  7814. return null
  7815. }
  7816. static _findLastMatchInLine(y, _, d, C) {
  7817. let r = null,
  7818. u
  7819. for (y.reset(0); (u = y.next(_)); )
  7820. r = w(new s.Range(d, u.index + 1, d, u.index + 1 + u[0].length), u, C)
  7821. return r
  7822. }
  7823. }
  7824. n.TextModelSearch = b
  7825. function f(E, y, _, d, C) {
  7826. if (d === 0) return !0
  7827. const r = y.charCodeAt(d - 1)
  7828. if (E.get(r) !== 0 || r === 13 || r === 10) return !0
  7829. if (C > 0) {
  7830. const u = y.charCodeAt(d)
  7831. if (E.get(u) !== 0) return !0
  7832. }
  7833. return !1
  7834. }
  7835. function v(E, y, _, d, C) {
  7836. if (d + C === _) return !0
  7837. const r = y.charCodeAt(d + C)
  7838. if (E.get(r) !== 0 || r === 13 || r === 10) return !0
  7839. if (C > 0) {
  7840. const u = y.charCodeAt(d + C - 1)
  7841. if (E.get(u) !== 0) return !0
  7842. }
  7843. return !1
  7844. }
  7845. function g(E, y, _, d, C) {
  7846. return f(E, y, _, d, C) && v(E, y, _, d, C)
  7847. }
  7848. n.isValidMatch = g
  7849. class S {
  7850. constructor(y, _) {
  7851. ;(this._wordSeparators = y),
  7852. (this._searchRegex = _),
  7853. (this._prevMatchStartIndex = -1),
  7854. (this._prevMatchLength = 0)
  7855. }
  7856. reset(y) {
  7857. ;(this._searchRegex.lastIndex = y),
  7858. (this._prevMatchStartIndex = -1),
  7859. (this._prevMatchLength = 0)
  7860. }
  7861. next(y) {
  7862. const _ = y.length
  7863. let d
  7864. do {
  7865. if (
  7866. this._prevMatchStartIndex + this._prevMatchLength === _ ||
  7867. ((d = this._searchRegex.exec(y)), !d)
  7868. )
  7869. return null
  7870. const C = d.index,
  7871. r = d[0].length
  7872. if (C === this._prevMatchStartIndex && r === this._prevMatchLength) {
  7873. if (r === 0) {
  7874. R.getNextCodePoint(y, _, this._searchRegex.lastIndex) > 65535
  7875. ? (this._searchRegex.lastIndex += 2)
  7876. : (this._searchRegex.lastIndex += 1)
  7877. continue
  7878. }
  7879. return null
  7880. }
  7881. if (
  7882. ((this._prevMatchStartIndex = C),
  7883. (this._prevMatchLength = r),
  7884. !this._wordSeparators || g(this._wordSeparators, y, _, C, r))
  7885. )
  7886. return d
  7887. } while (d)
  7888. return null
  7889. }
  7890. }
  7891. n.Searcher = S
  7892. }),
  7893. Q(Y[48], X([0, 1, 2, 47, 5, 10, 22]), function (x, n, R, D, i, s, p) {
  7894. 'use strict'
  7895. Object.defineProperty(n, '__esModule', { value: !0 }),
  7896. (n.UnicodeTextModelHighlighter = void 0)
  7897. class L {
  7898. static computeUnicodeHighlights(b, f, v) {
  7899. const g = v ? v.startLineNumber : 1,
  7900. S = v ? v.endLineNumber : b.getLineCount(),
  7901. E = new a(f),
  7902. y = E.getCandidateCodePoints()
  7903. let _
  7904. y === 'allNonBasicAscii'
  7905. ? (_ = new RegExp('[^\\t\\n\\r\\x20-\\x7E]', 'g'))
  7906. : (_ = new RegExp(`${h(Array.from(y))}`, 'g'))
  7907. const d = new D.Searcher(null, _),
  7908. C = []
  7909. let r = !1,
  7910. u,
  7911. o = 0,
  7912. c = 0,
  7913. l = 0
  7914. e: for (let m = g, N = S; m <= N; m++) {
  7915. const A = b.getLineContent(m),
  7916. M = A.length
  7917. d.reset(0)
  7918. do
  7919. if (((u = d.next(A)), u)) {
  7920. let k = u.index,
  7921. q = u.index + u[0].length
  7922. if (k > 0) {
  7923. const F = A.charCodeAt(k - 1)
  7924. i.isHighSurrogate(F) && k--
  7925. }
  7926. if (q + 1 < M) {
  7927. const F = A.charCodeAt(q - 1)
  7928. i.isHighSurrogate(F) && q++
  7929. }
  7930. const I = A.substring(k, q)
  7931. let B = (0, p.getWordAtText)(k + 1, p.DEFAULT_WORD_REGEXP, A, 0)
  7932. B && B.endColumn <= k + 1 && (B = null)
  7933. const H = E.shouldHighlightNonBasicASCII(I, B ? B.word : null)
  7934. if (H !== 0) {
  7935. H === 3 ? o++ : H === 2 ? c++ : H === 1 ? l++ : (0, s.assertNever)(H)
  7936. const F = 1e3
  7937. if (C.length >= F) {
  7938. r = !0
  7939. break e
  7940. }
  7941. C.push(new R.Range(m, k + 1, m, q + 1))
  7942. }
  7943. }
  7944. while (u)
  7945. }
  7946. return {
  7947. ranges: C,
  7948. hasMore: r,
  7949. ambiguousCharacterCount: o,
  7950. invisibleCharacterCount: c,
  7951. nonBasicAsciiCharacterCount: l,
  7952. }
  7953. }
  7954. static computeUnicodeHighlightReason(b, f) {
  7955. const v = new a(f)
  7956. switch (v.shouldHighlightNonBasicASCII(b, null)) {
  7957. case 0:
  7958. return null
  7959. case 2:
  7960. return { kind: 1 }
  7961. case 3: {
  7962. const S = b.codePointAt(0),
  7963. E = v.ambiguousCharacters.getPrimaryConfusable(S),
  7964. y = i.AmbiguousCharacters.getLocales().filter(
  7965. (_) =>
  7966. !i.AmbiguousCharacters.getInstance(
  7967. new Set([...f.allowedLocales, _])
  7968. ).isAmbiguous(S)
  7969. )
  7970. return { kind: 0, confusableWith: String.fromCodePoint(E), notAmbiguousInLocales: y }
  7971. }
  7972. case 1:
  7973. return { kind: 2 }
  7974. }
  7975. }
  7976. }
  7977. n.UnicodeTextModelHighlighter = L
  7978. function h(e, b) {
  7979. return `[${i.escapeRegExpCharacters(e.map((v) => String.fromCodePoint(v)).join(''))}]`
  7980. }
  7981. class a {
  7982. constructor(b) {
  7983. ;(this.options = b),
  7984. (this.allowedCodePoints = new Set(b.allowedCodePoints)),
  7985. (this.ambiguousCharacters = i.AmbiguousCharacters.getInstance(
  7986. new Set(b.allowedLocales)
  7987. ))
  7988. }
  7989. getCandidateCodePoints() {
  7990. if (this.options.nonBasicASCII) return 'allNonBasicAscii'
  7991. const b = new Set()
  7992. if (this.options.invisibleCharacters)
  7993. for (const f of i.InvisibleCharacters.codePoints) w(String.fromCodePoint(f)) || b.add(f)
  7994. if (this.options.ambiguousCharacters)
  7995. for (const f of this.ambiguousCharacters.getConfusableCodePoints()) b.add(f)
  7996. for (const f of this.allowedCodePoints) b.delete(f)
  7997. return b
  7998. }
  7999. shouldHighlightNonBasicASCII(b, f) {
  8000. const v = b.codePointAt(0)
  8001. if (this.allowedCodePoints.has(v)) return 0
  8002. if (this.options.nonBasicASCII) return 1
  8003. let g = !1,
  8004. S = !1
  8005. if (f)
  8006. for (const E of f) {
  8007. const y = E.codePointAt(0),
  8008. _ = i.isBasicASCII(E)
  8009. ;(g = g || _),
  8010. !_ &&
  8011. !this.ambiguousCharacters.isAmbiguous(y) &&
  8012. !i.InvisibleCharacters.isInvisibleCharacter(y) &&
  8013. (S = !0)
  8014. }
  8015. return !g && S
  8016. ? 0
  8017. : this.options.invisibleCharacters &&
  8018. !w(b) &&
  8019. i.InvisibleCharacters.isInvisibleCharacter(v)
  8020. ? 2
  8021. : this.options.ambiguousCharacters && this.ambiguousCharacters.isAmbiguous(v)
  8022. ? 3
  8023. : 0
  8024. }
  8025. }
  8026. function w(e) {
  8027. return (
  8028. e === ' ' ||
  8029. e ===
  8030. `
  8031. ` ||
  8032. e === ' '
  8033. )
  8034. }
  8035. }),
  8036. Q(Y[49], X([0, 1]), function (x, n) {
  8037. 'use strict'
  8038. Object.defineProperty(n, '__esModule', { value: !0 }),
  8039. (n.WrappingIndent =
  8040. n.TrackedRangeStickiness =
  8041. n.TextEditorCursorStyle =
  8042. n.TextEditorCursorBlinkingStyle =
  8043. n.SymbolTag =
  8044. n.SymbolKind =
  8045. n.SignatureHelpTriggerKind =
  8046. n.SelectionDirection =
  8047. n.ScrollbarVisibility =
  8048. n.ScrollType =
  8049. n.RenderMinimap =
  8050. n.RenderLineNumbersType =
  8051. n.PositionAffinity =
  8052. n.OverviewRulerLane =
  8053. n.OverlayWidgetPositionPreference =
  8054. n.MouseTargetType =
  8055. n.MinimapPosition =
  8056. n.MarkerTag =
  8057. n.MarkerSeverity =
  8058. n.KeyCode =
  8059. n.InlineCompletionTriggerKind =
  8060. n.InlayHintKind =
  8061. n.InjectedTextCursorStops =
  8062. n.IndentAction =
  8063. n.EndOfLineSequence =
  8064. n.EndOfLinePreference =
  8065. n.EditorOption =
  8066. n.EditorAutoIndentStrategy =
  8067. n.DocumentHighlightKind =
  8068. n.DefaultEndOfLine =
  8069. n.CursorChangeReason =
  8070. n.ContentWidgetPositionPreference =
  8071. n.CompletionTriggerKind =
  8072. n.CompletionItemTag =
  8073. n.CompletionItemKind =
  8074. n.CompletionItemInsertTextRule =
  8075. n.CodeActionTriggerType =
  8076. n.AccessibilitySupport =
  8077. void 0)
  8078. var R
  8079. ;(function (t) {
  8080. ;(t[(t.Unknown = 0)] = 'Unknown'),
  8081. (t[(t.Disabled = 1)] = 'Disabled'),
  8082. (t[(t.Enabled = 2)] = 'Enabled')
  8083. })((R = n.AccessibilitySupport || (n.AccessibilitySupport = {})))
  8084. var D
  8085. ;(function (t) {
  8086. ;(t[(t.Invoke = 1)] = 'Invoke'), (t[(t.Auto = 2)] = 'Auto')
  8087. })((D = n.CodeActionTriggerType || (n.CodeActionTriggerType = {})))
  8088. var i
  8089. ;(function (t) {
  8090. ;(t[(t.None = 0)] = 'None'),
  8091. (t[(t.KeepWhitespace = 1)] = 'KeepWhitespace'),
  8092. (t[(t.InsertAsSnippet = 4)] = 'InsertAsSnippet')
  8093. })((i = n.CompletionItemInsertTextRule || (n.CompletionItemInsertTextRule = {})))
  8094. var s
  8095. ;(function (t) {
  8096. ;(t[(t.Method = 0)] = 'Method'),
  8097. (t[(t.Function = 1)] = 'Function'),
  8098. (t[(t.Constructor = 2)] = 'Constructor'),
  8099. (t[(t.Field = 3)] = 'Field'),
  8100. (t[(t.Variable = 4)] = 'Variable'),
  8101. (t[(t.Class = 5)] = 'Class'),
  8102. (t[(t.Struct = 6)] = 'Struct'),
  8103. (t[(t.Interface = 7)] = 'Interface'),
  8104. (t[(t.Module = 8)] = 'Module'),
  8105. (t[(t.Property = 9)] = 'Property'),
  8106. (t[(t.Event = 10)] = 'Event'),
  8107. (t[(t.Operator = 11)] = 'Operator'),
  8108. (t[(t.Unit = 12)] = 'Unit'),
  8109. (t[(t.Value = 13)] = 'Value'),
  8110. (t[(t.Constant = 14)] = 'Constant'),
  8111. (t[(t.Enum = 15)] = 'Enum'),
  8112. (t[(t.EnumMember = 16)] = 'EnumMember'),
  8113. (t[(t.Keyword = 17)] = 'Keyword'),
  8114. (t[(t.Text = 18)] = 'Text'),
  8115. (t[(t.Color = 19)] = 'Color'),
  8116. (t[(t.File = 20)] = 'File'),
  8117. (t[(t.Reference = 21)] = 'Reference'),
  8118. (t[(t.Customcolor = 22)] = 'Customcolor'),
  8119. (t[(t.Folder = 23)] = 'Folder'),
  8120. (t[(t.TypeParameter = 24)] = 'TypeParameter'),
  8121. (t[(t.User = 25)] = 'User'),
  8122. (t[(t.Issue = 26)] = 'Issue'),
  8123. (t[(t.Snippet = 27)] = 'Snippet')
  8124. })((s = n.CompletionItemKind || (n.CompletionItemKind = {})))
  8125. var p
  8126. ;(function (t) {
  8127. t[(t.Deprecated = 1)] = 'Deprecated'
  8128. })((p = n.CompletionItemTag || (n.CompletionItemTag = {})))
  8129. var L
  8130. ;(function (t) {
  8131. ;(t[(t.Invoke = 0)] = 'Invoke'),
  8132. (t[(t.TriggerCharacter = 1)] = 'TriggerCharacter'),
  8133. (t[(t.TriggerForIncompleteCompletions = 2)] = 'TriggerForIncompleteCompletions')
  8134. })((L = n.CompletionTriggerKind || (n.CompletionTriggerKind = {})))
  8135. var h
  8136. ;(function (t) {
  8137. ;(t[(t.EXACT = 0)] = 'EXACT'), (t[(t.ABOVE = 1)] = 'ABOVE'), (t[(t.BELOW = 2)] = 'BELOW')
  8138. })((h = n.ContentWidgetPositionPreference || (n.ContentWidgetPositionPreference = {})))
  8139. var a
  8140. ;(function (t) {
  8141. ;(t[(t.NotSet = 0)] = 'NotSet'),
  8142. (t[(t.ContentFlush = 1)] = 'ContentFlush'),
  8143. (t[(t.RecoverFromMarkers = 2)] = 'RecoverFromMarkers'),
  8144. (t[(t.Explicit = 3)] = 'Explicit'),
  8145. (t[(t.Paste = 4)] = 'Paste'),
  8146. (t[(t.Undo = 5)] = 'Undo'),
  8147. (t[(t.Redo = 6)] = 'Redo')
  8148. })((a = n.CursorChangeReason || (n.CursorChangeReason = {})))
  8149. var w
  8150. ;(function (t) {
  8151. ;(t[(t.LF = 1)] = 'LF'), (t[(t.CRLF = 2)] = 'CRLF')
  8152. })((w = n.DefaultEndOfLine || (n.DefaultEndOfLine = {})))
  8153. var e
  8154. ;(function (t) {
  8155. ;(t[(t.Text = 0)] = 'Text'), (t[(t.Read = 1)] = 'Read'), (t[(t.Write = 2)] = 'Write')
  8156. })((e = n.DocumentHighlightKind || (n.DocumentHighlightKind = {})))
  8157. var b
  8158. ;(function (t) {
  8159. ;(t[(t.None = 0)] = 'None'),
  8160. (t[(t.Keep = 1)] = 'Keep'),
  8161. (t[(t.Brackets = 2)] = 'Brackets'),
  8162. (t[(t.Advanced = 3)] = 'Advanced'),
  8163. (t[(t.Full = 4)] = 'Full')
  8164. })((b = n.EditorAutoIndentStrategy || (n.EditorAutoIndentStrategy = {})))
  8165. var f
  8166. ;(function (t) {
  8167. ;(t[(t.acceptSuggestionOnCommitCharacter = 0)] = 'acceptSuggestionOnCommitCharacter'),
  8168. (t[(t.acceptSuggestionOnEnter = 1)] = 'acceptSuggestionOnEnter'),
  8169. (t[(t.accessibilitySupport = 2)] = 'accessibilitySupport'),
  8170. (t[(t.accessibilityPageSize = 3)] = 'accessibilityPageSize'),
  8171. (t[(t.ariaLabel = 4)] = 'ariaLabel'),
  8172. (t[(t.autoClosingBrackets = 5)] = 'autoClosingBrackets'),
  8173. (t[(t.screenReaderAnnounceInlineSuggestion = 6)] =
  8174. 'screenReaderAnnounceInlineSuggestion'),
  8175. (t[(t.autoClosingDelete = 7)] = 'autoClosingDelete'),
  8176. (t[(t.autoClosingOvertype = 8)] = 'autoClosingOvertype'),
  8177. (t[(t.autoClosingQuotes = 9)] = 'autoClosingQuotes'),
  8178. (t[(t.autoIndent = 10)] = 'autoIndent'),
  8179. (t[(t.automaticLayout = 11)] = 'automaticLayout'),
  8180. (t[(t.autoSurround = 12)] = 'autoSurround'),
  8181. (t[(t.bracketPairColorization = 13)] = 'bracketPairColorization'),
  8182. (t[(t.guides = 14)] = 'guides'),
  8183. (t[(t.codeLens = 15)] = 'codeLens'),
  8184. (t[(t.codeLensFontFamily = 16)] = 'codeLensFontFamily'),
  8185. (t[(t.codeLensFontSize = 17)] = 'codeLensFontSize'),
  8186. (t[(t.colorDecorators = 18)] = 'colorDecorators'),
  8187. (t[(t.colorDecoratorsLimit = 19)] = 'colorDecoratorsLimit'),
  8188. (t[(t.columnSelection = 20)] = 'columnSelection'),
  8189. (t[(t.comments = 21)] = 'comments'),
  8190. (t[(t.contextmenu = 22)] = 'contextmenu'),
  8191. (t[(t.copyWithSyntaxHighlighting = 23)] = 'copyWithSyntaxHighlighting'),
  8192. (t[(t.cursorBlinking = 24)] = 'cursorBlinking'),
  8193. (t[(t.cursorSmoothCaretAnimation = 25)] = 'cursorSmoothCaretAnimation'),
  8194. (t[(t.cursorStyle = 26)] = 'cursorStyle'),
  8195. (t[(t.cursorSurroundingLines = 27)] = 'cursorSurroundingLines'),
  8196. (t[(t.cursorSurroundingLinesStyle = 28)] = 'cursorSurroundingLinesStyle'),
  8197. (t[(t.cursorWidth = 29)] = 'cursorWidth'),
  8198. (t[(t.disableLayerHinting = 30)] = 'disableLayerHinting'),
  8199. (t[(t.disableMonospaceOptimizations = 31)] = 'disableMonospaceOptimizations'),
  8200. (t[(t.domReadOnly = 32)] = 'domReadOnly'),
  8201. (t[(t.dragAndDrop = 33)] = 'dragAndDrop'),
  8202. (t[(t.dropIntoEditor = 34)] = 'dropIntoEditor'),
  8203. (t[(t.emptySelectionClipboard = 35)] = 'emptySelectionClipboard'),
  8204. (t[(t.experimentalWhitespaceRendering = 36)] = 'experimentalWhitespaceRendering'),
  8205. (t[(t.extraEditorClassName = 37)] = 'extraEditorClassName'),
  8206. (t[(t.fastScrollSensitivity = 38)] = 'fastScrollSensitivity'),
  8207. (t[(t.find = 39)] = 'find'),
  8208. (t[(t.fixedOverflowWidgets = 40)] = 'fixedOverflowWidgets'),
  8209. (t[(t.folding = 41)] = 'folding'),
  8210. (t[(t.foldingStrategy = 42)] = 'foldingStrategy'),
  8211. (t[(t.foldingHighlight = 43)] = 'foldingHighlight'),
  8212. (t[(t.foldingImportsByDefault = 44)] = 'foldingImportsByDefault'),
  8213. (t[(t.foldingMaximumRegions = 45)] = 'foldingMaximumRegions'),
  8214. (t[(t.unfoldOnClickAfterEndOfLine = 46)] = 'unfoldOnClickAfterEndOfLine'),
  8215. (t[(t.fontFamily = 47)] = 'fontFamily'),
  8216. (t[(t.fontInfo = 48)] = 'fontInfo'),
  8217. (t[(t.fontLigatures = 49)] = 'fontLigatures'),
  8218. (t[(t.fontSize = 50)] = 'fontSize'),
  8219. (t[(t.fontWeight = 51)] = 'fontWeight'),
  8220. (t[(t.fontVariations = 52)] = 'fontVariations'),
  8221. (t[(t.formatOnPaste = 53)] = 'formatOnPaste'),
  8222. (t[(t.formatOnType = 54)] = 'formatOnType'),
  8223. (t[(t.glyphMargin = 55)] = 'glyphMargin'),
  8224. (t[(t.gotoLocation = 56)] = 'gotoLocation'),
  8225. (t[(t.hideCursorInOverviewRuler = 57)] = 'hideCursorInOverviewRuler'),
  8226. (t[(t.hover = 58)] = 'hover'),
  8227. (t[(t.inDiffEditor = 59)] = 'inDiffEditor'),
  8228. (t[(t.inlineSuggest = 60)] = 'inlineSuggest'),
  8229. (t[(t.letterSpacing = 61)] = 'letterSpacing'),
  8230. (t[(t.lightbulb = 62)] = 'lightbulb'),
  8231. (t[(t.lineDecorationsWidth = 63)] = 'lineDecorationsWidth'),
  8232. (t[(t.lineHeight = 64)] = 'lineHeight'),
  8233. (t[(t.lineNumbers = 65)] = 'lineNumbers'),
  8234. (t[(t.lineNumbersMinChars = 66)] = 'lineNumbersMinChars'),
  8235. (t[(t.linkedEditing = 67)] = 'linkedEditing'),
  8236. (t[(t.links = 68)] = 'links'),
  8237. (t[(t.matchBrackets = 69)] = 'matchBrackets'),
  8238. (t[(t.minimap = 70)] = 'minimap'),
  8239. (t[(t.mouseStyle = 71)] = 'mouseStyle'),
  8240. (t[(t.mouseWheelScrollSensitivity = 72)] = 'mouseWheelScrollSensitivity'),
  8241. (t[(t.mouseWheelZoom = 73)] = 'mouseWheelZoom'),
  8242. (t[(t.multiCursorMergeOverlapping = 74)] = 'multiCursorMergeOverlapping'),
  8243. (t[(t.multiCursorModifier = 75)] = 'multiCursorModifier'),
  8244. (t[(t.multiCursorPaste = 76)] = 'multiCursorPaste'),
  8245. (t[(t.multiCursorLimit = 77)] = 'multiCursorLimit'),
  8246. (t[(t.occurrencesHighlight = 78)] = 'occurrencesHighlight'),
  8247. (t[(t.overviewRulerBorder = 79)] = 'overviewRulerBorder'),
  8248. (t[(t.overviewRulerLanes = 80)] = 'overviewRulerLanes'),
  8249. (t[(t.padding = 81)] = 'padding'),
  8250. (t[(t.parameterHints = 82)] = 'parameterHints'),
  8251. (t[(t.peekWidgetDefaultFocus = 83)] = 'peekWidgetDefaultFocus'),
  8252. (t[(t.definitionLinkOpensInPeek = 84)] = 'definitionLinkOpensInPeek'),
  8253. (t[(t.quickSuggestions = 85)] = 'quickSuggestions'),
  8254. (t[(t.quickSuggestionsDelay = 86)] = 'quickSuggestionsDelay'),
  8255. (t[(t.readOnly = 87)] = 'readOnly'),
  8256. (t[(t.renameOnType = 88)] = 'renameOnType'),
  8257. (t[(t.renderControlCharacters = 89)] = 'renderControlCharacters'),
  8258. (t[(t.renderFinalNewline = 90)] = 'renderFinalNewline'),
  8259. (t[(t.renderLineHighlight = 91)] = 'renderLineHighlight'),
  8260. (t[(t.renderLineHighlightOnlyWhenFocus = 92)] = 'renderLineHighlightOnlyWhenFocus'),
  8261. (t[(t.renderValidationDecorations = 93)] = 'renderValidationDecorations'),
  8262. (t[(t.renderWhitespace = 94)] = 'renderWhitespace'),
  8263. (t[(t.revealHorizontalRightPadding = 95)] = 'revealHorizontalRightPadding'),
  8264. (t[(t.roundedSelection = 96)] = 'roundedSelection'),
  8265. (t[(t.rulers = 97)] = 'rulers'),
  8266. (t[(t.scrollbar = 98)] = 'scrollbar'),
  8267. (t[(t.scrollBeyondLastColumn = 99)] = 'scrollBeyondLastColumn'),
  8268. (t[(t.scrollBeyondLastLine = 100)] = 'scrollBeyondLastLine'),
  8269. (t[(t.scrollPredominantAxis = 101)] = 'scrollPredominantAxis'),
  8270. (t[(t.selectionClipboard = 102)] = 'selectionClipboard'),
  8271. (t[(t.selectionHighlight = 103)] = 'selectionHighlight'),
  8272. (t[(t.selectOnLineNumbers = 104)] = 'selectOnLineNumbers'),
  8273. (t[(t.showFoldingControls = 105)] = 'showFoldingControls'),
  8274. (t[(t.showUnused = 106)] = 'showUnused'),
  8275. (t[(t.snippetSuggestions = 107)] = 'snippetSuggestions'),
  8276. (t[(t.smartSelect = 108)] = 'smartSelect'),
  8277. (t[(t.smoothScrolling = 109)] = 'smoothScrolling'),
  8278. (t[(t.stickyScroll = 110)] = 'stickyScroll'),
  8279. (t[(t.stickyTabStops = 111)] = 'stickyTabStops'),
  8280. (t[(t.stopRenderingLineAfter = 112)] = 'stopRenderingLineAfter'),
  8281. (t[(t.suggest = 113)] = 'suggest'),
  8282. (t[(t.suggestFontSize = 114)] = 'suggestFontSize'),
  8283. (t[(t.suggestLineHeight = 115)] = 'suggestLineHeight'),
  8284. (t[(t.suggestOnTriggerCharacters = 116)] = 'suggestOnTriggerCharacters'),
  8285. (t[(t.suggestSelection = 117)] = 'suggestSelection'),
  8286. (t[(t.tabCompletion = 118)] = 'tabCompletion'),
  8287. (t[(t.tabIndex = 119)] = 'tabIndex'),
  8288. (t[(t.unicodeHighlighting = 120)] = 'unicodeHighlighting'),
  8289. (t[(t.unusualLineTerminators = 121)] = 'unusualLineTerminators'),
  8290. (t[(t.useShadowDOM = 122)] = 'useShadowDOM'),
  8291. (t[(t.useTabStops = 123)] = 'useTabStops'),
  8292. (t[(t.wordBreak = 124)] = 'wordBreak'),
  8293. (t[(t.wordSeparators = 125)] = 'wordSeparators'),
  8294. (t[(t.wordWrap = 126)] = 'wordWrap'),
  8295. (t[(t.wordWrapBreakAfterCharacters = 127)] = 'wordWrapBreakAfterCharacters'),
  8296. (t[(t.wordWrapBreakBeforeCharacters = 128)] = 'wordWrapBreakBeforeCharacters'),
  8297. (t[(t.wordWrapColumn = 129)] = 'wordWrapColumn'),
  8298. (t[(t.wordWrapOverride1 = 130)] = 'wordWrapOverride1'),
  8299. (t[(t.wordWrapOverride2 = 131)] = 'wordWrapOverride2'),
  8300. (t[(t.wrappingIndent = 132)] = 'wrappingIndent'),
  8301. (t[(t.wrappingStrategy = 133)] = 'wrappingStrategy'),
  8302. (t[(t.showDeprecated = 134)] = 'showDeprecated'),
  8303. (t[(t.inlayHints = 135)] = 'inlayHints'),
  8304. (t[(t.editorClassName = 136)] = 'editorClassName'),
  8305. (t[(t.pixelRatio = 137)] = 'pixelRatio'),
  8306. (t[(t.tabFocusMode = 138)] = 'tabFocusMode'),
  8307. (t[(t.layoutInfo = 139)] = 'layoutInfo'),
  8308. (t[(t.wrappingInfo = 140)] = 'wrappingInfo')
  8309. })((f = n.EditorOption || (n.EditorOption = {})))
  8310. var v
  8311. ;(function (t) {
  8312. ;(t[(t.TextDefined = 0)] = 'TextDefined'),
  8313. (t[(t.LF = 1)] = 'LF'),
  8314. (t[(t.CRLF = 2)] = 'CRLF')
  8315. })((v = n.EndOfLinePreference || (n.EndOfLinePreference = {})))
  8316. var g
  8317. ;(function (t) {
  8318. ;(t[(t.LF = 0)] = 'LF'), (t[(t.CRLF = 1)] = 'CRLF')
  8319. })((g = n.EndOfLineSequence || (n.EndOfLineSequence = {})))
  8320. var S
  8321. ;(function (t) {
  8322. ;(t[(t.None = 0)] = 'None'),
  8323. (t[(t.Indent = 1)] = 'Indent'),
  8324. (t[(t.IndentOutdent = 2)] = 'IndentOutdent'),
  8325. (t[(t.Outdent = 3)] = 'Outdent')
  8326. })((S = n.IndentAction || (n.IndentAction = {})))
  8327. var E
  8328. ;(function (t) {
  8329. ;(t[(t.Both = 0)] = 'Both'),
  8330. (t[(t.Right = 1)] = 'Right'),
  8331. (t[(t.Left = 2)] = 'Left'),
  8332. (t[(t.None = 3)] = 'None')
  8333. })((E = n.InjectedTextCursorStops || (n.InjectedTextCursorStops = {})))
  8334. var y
  8335. ;(function (t) {
  8336. ;(t[(t.Type = 1)] = 'Type'), (t[(t.Parameter = 2)] = 'Parameter')
  8337. })((y = n.InlayHintKind || (n.InlayHintKind = {})))
  8338. var _
  8339. ;(function (t) {
  8340. ;(t[(t.Automatic = 0)] = 'Automatic'), (t[(t.Explicit = 1)] = 'Explicit')
  8341. })((_ = n.InlineCompletionTriggerKind || (n.InlineCompletionTriggerKind = {})))
  8342. var d
  8343. ;(function (t) {
  8344. ;(t[(t.DependsOnKbLayout = -1)] = 'DependsOnKbLayout'),
  8345. (t[(t.Unknown = 0)] = 'Unknown'),
  8346. (t[(t.Backspace = 1)] = 'Backspace'),
  8347. (t[(t.Tab = 2)] = 'Tab'),
  8348. (t[(t.Enter = 3)] = 'Enter'),
  8349. (t[(t.Shift = 4)] = 'Shift'),
  8350. (t[(t.Ctrl = 5)] = 'Ctrl'),
  8351. (t[(t.Alt = 6)] = 'Alt'),
  8352. (t[(t.PauseBreak = 7)] = 'PauseBreak'),
  8353. (t[(t.CapsLock = 8)] = 'CapsLock'),
  8354. (t[(t.Escape = 9)] = 'Escape'),
  8355. (t[(t.Space = 10)] = 'Space'),
  8356. (t[(t.PageUp = 11)] = 'PageUp'),
  8357. (t[(t.PageDown = 12)] = 'PageDown'),
  8358. (t[(t.End = 13)] = 'End'),
  8359. (t[(t.Home = 14)] = 'Home'),
  8360. (t[(t.LeftArrow = 15)] = 'LeftArrow'),
  8361. (t[(t.UpArrow = 16)] = 'UpArrow'),
  8362. (t[(t.RightArrow = 17)] = 'RightArrow'),
  8363. (t[(t.DownArrow = 18)] = 'DownArrow'),
  8364. (t[(t.Insert = 19)] = 'Insert'),
  8365. (t[(t.Delete = 20)] = 'Delete'),
  8366. (t[(t.Digit0 = 21)] = 'Digit0'),
  8367. (t[(t.Digit1 = 22)] = 'Digit1'),
  8368. (t[(t.Digit2 = 23)] = 'Digit2'),
  8369. (t[(t.Digit3 = 24)] = 'Digit3'),
  8370. (t[(t.Digit4 = 25)] = 'Digit4'),
  8371. (t[(t.Digit5 = 26)] = 'Digit5'),
  8372. (t[(t.Digit6 = 27)] = 'Digit6'),
  8373. (t[(t.Digit7 = 28)] = 'Digit7'),
  8374. (t[(t.Digit8 = 29)] = 'Digit8'),
  8375. (t[(t.Digit9 = 30)] = 'Digit9'),
  8376. (t[(t.KeyA = 31)] = 'KeyA'),
  8377. (t[(t.KeyB = 32)] = 'KeyB'),
  8378. (t[(t.KeyC = 33)] = 'KeyC'),
  8379. (t[(t.KeyD = 34)] = 'KeyD'),
  8380. (t[(t.KeyE = 35)] = 'KeyE'),
  8381. (t[(t.KeyF = 36)] = 'KeyF'),
  8382. (t[(t.KeyG = 37)] = 'KeyG'),
  8383. (t[(t.KeyH = 38)] = 'KeyH'),
  8384. (t[(t.KeyI = 39)] = 'KeyI'),
  8385. (t[(t.KeyJ = 40)] = 'KeyJ'),
  8386. (t[(t.KeyK = 41)] = 'KeyK'),
  8387. (t[(t.KeyL = 42)] = 'KeyL'),
  8388. (t[(t.KeyM = 43)] = 'KeyM'),
  8389. (t[(t.KeyN = 44)] = 'KeyN'),
  8390. (t[(t.KeyO = 45)] = 'KeyO'),
  8391. (t[(t.KeyP = 46)] = 'KeyP'),
  8392. (t[(t.KeyQ = 47)] = 'KeyQ'),
  8393. (t[(t.KeyR = 48)] = 'KeyR'),
  8394. (t[(t.KeyS = 49)] = 'KeyS'),
  8395. (t[(t.KeyT = 50)] = 'KeyT'),
  8396. (t[(t.KeyU = 51)] = 'KeyU'),
  8397. (t[(t.KeyV = 52)] = 'KeyV'),
  8398. (t[(t.KeyW = 53)] = 'KeyW'),
  8399. (t[(t.KeyX = 54)] = 'KeyX'),
  8400. (t[(t.KeyY = 55)] = 'KeyY'),
  8401. (t[(t.KeyZ = 56)] = 'KeyZ'),
  8402. (t[(t.Meta = 57)] = 'Meta'),
  8403. (t[(t.ContextMenu = 58)] = 'ContextMenu'),
  8404. (t[(t.F1 = 59)] = 'F1'),
  8405. (t[(t.F2 = 60)] = 'F2'),
  8406. (t[(t.F3 = 61)] = 'F3'),
  8407. (t[(t.F4 = 62)] = 'F4'),
  8408. (t[(t.F5 = 63)] = 'F5'),
  8409. (t[(t.F6 = 64)] = 'F6'),
  8410. (t[(t.F7 = 65)] = 'F7'),
  8411. (t[(t.F8 = 66)] = 'F8'),
  8412. (t[(t.F9 = 67)] = 'F9'),
  8413. (t[(t.F10 = 68)] = 'F10'),
  8414. (t[(t.F11 = 69)] = 'F11'),
  8415. (t[(t.F12 = 70)] = 'F12'),
  8416. (t[(t.F13 = 71)] = 'F13'),
  8417. (t[(t.F14 = 72)] = 'F14'),
  8418. (t[(t.F15 = 73)] = 'F15'),
  8419. (t[(t.F16 = 74)] = 'F16'),
  8420. (t[(t.F17 = 75)] = 'F17'),
  8421. (t[(t.F18 = 76)] = 'F18'),
  8422. (t[(t.F19 = 77)] = 'F19'),
  8423. (t[(t.NumLock = 78)] = 'NumLock'),
  8424. (t[(t.ScrollLock = 79)] = 'ScrollLock'),
  8425. (t[(t.Semicolon = 80)] = 'Semicolon'),
  8426. (t[(t.Equal = 81)] = 'Equal'),
  8427. (t[(t.Comma = 82)] = 'Comma'),
  8428. (t[(t.Minus = 83)] = 'Minus'),
  8429. (t[(t.Period = 84)] = 'Period'),
  8430. (t[(t.Slash = 85)] = 'Slash'),
  8431. (t[(t.Backquote = 86)] = 'Backquote'),
  8432. (t[(t.BracketLeft = 87)] = 'BracketLeft'),
  8433. (t[(t.Backslash = 88)] = 'Backslash'),
  8434. (t[(t.BracketRight = 89)] = 'BracketRight'),
  8435. (t[(t.Quote = 90)] = 'Quote'),
  8436. (t[(t.OEM_8 = 91)] = 'OEM_8'),
  8437. (t[(t.IntlBackslash = 92)] = 'IntlBackslash'),
  8438. (t[(t.Numpad0 = 93)] = 'Numpad0'),
  8439. (t[(t.Numpad1 = 94)] = 'Numpad1'),
  8440. (t[(t.Numpad2 = 95)] = 'Numpad2'),
  8441. (t[(t.Numpad3 = 96)] = 'Numpad3'),
  8442. (t[(t.Numpad4 = 97)] = 'Numpad4'),
  8443. (t[(t.Numpad5 = 98)] = 'Numpad5'),
  8444. (t[(t.Numpad6 = 99)] = 'Numpad6'),
  8445. (t[(t.Numpad7 = 100)] = 'Numpad7'),
  8446. (t[(t.Numpad8 = 101)] = 'Numpad8'),
  8447. (t[(t.Numpad9 = 102)] = 'Numpad9'),
  8448. (t[(t.NumpadMultiply = 103)] = 'NumpadMultiply'),
  8449. (t[(t.NumpadAdd = 104)] = 'NumpadAdd'),
  8450. (t[(t.NUMPAD_SEPARATOR = 105)] = 'NUMPAD_SEPARATOR'),
  8451. (t[(t.NumpadSubtract = 106)] = 'NumpadSubtract'),
  8452. (t[(t.NumpadDecimal = 107)] = 'NumpadDecimal'),
  8453. (t[(t.NumpadDivide = 108)] = 'NumpadDivide'),
  8454. (t[(t.KEY_IN_COMPOSITION = 109)] = 'KEY_IN_COMPOSITION'),
  8455. (t[(t.ABNT_C1 = 110)] = 'ABNT_C1'),
  8456. (t[(t.ABNT_C2 = 111)] = 'ABNT_C2'),
  8457. (t[(t.AudioVolumeMute = 112)] = 'AudioVolumeMute'),
  8458. (t[(t.AudioVolumeUp = 113)] = 'AudioVolumeUp'),
  8459. (t[(t.AudioVolumeDown = 114)] = 'AudioVolumeDown'),
  8460. (t[(t.BrowserSearch = 115)] = 'BrowserSearch'),
  8461. (t[(t.BrowserHome = 116)] = 'BrowserHome'),
  8462. (t[(t.BrowserBack = 117)] = 'BrowserBack'),
  8463. (t[(t.BrowserForward = 118)] = 'BrowserForward'),
  8464. (t[(t.MediaTrackNext = 119)] = 'MediaTrackNext'),
  8465. (t[(t.MediaTrackPrevious = 120)] = 'MediaTrackPrevious'),
  8466. (t[(t.MediaStop = 121)] = 'MediaStop'),
  8467. (t[(t.MediaPlayPause = 122)] = 'MediaPlayPause'),
  8468. (t[(t.LaunchMediaPlayer = 123)] = 'LaunchMediaPlayer'),
  8469. (t[(t.LaunchMail = 124)] = 'LaunchMail'),
  8470. (t[(t.LaunchApp2 = 125)] = 'LaunchApp2'),
  8471. (t[(t.Clear = 126)] = 'Clear'),
  8472. (t[(t.MAX_VALUE = 127)] = 'MAX_VALUE')
  8473. })((d = n.KeyCode || (n.KeyCode = {})))
  8474. var C
  8475. ;(function (t) {
  8476. ;(t[(t.Hint = 1)] = 'Hint'),
  8477. (t[(t.Info = 2)] = 'Info'),
  8478. (t[(t.Warning = 4)] = 'Warning'),
  8479. (t[(t.Error = 8)] = 'Error')
  8480. })((C = n.MarkerSeverity || (n.MarkerSeverity = {})))
  8481. var r
  8482. ;(function (t) {
  8483. ;(t[(t.Unnecessary = 1)] = 'Unnecessary'), (t[(t.Deprecated = 2)] = 'Deprecated')
  8484. })((r = n.MarkerTag || (n.MarkerTag = {})))
  8485. var u
  8486. ;(function (t) {
  8487. ;(t[(t.Inline = 1)] = 'Inline'), (t[(t.Gutter = 2)] = 'Gutter')
  8488. })((u = n.MinimapPosition || (n.MinimapPosition = {})))
  8489. var o
  8490. ;(function (t) {
  8491. ;(t[(t.UNKNOWN = 0)] = 'UNKNOWN'),
  8492. (t[(t.TEXTAREA = 1)] = 'TEXTAREA'),
  8493. (t[(t.GUTTER_GLYPH_MARGIN = 2)] = 'GUTTER_GLYPH_MARGIN'),
  8494. (t[(t.GUTTER_LINE_NUMBERS = 3)] = 'GUTTER_LINE_NUMBERS'),
  8495. (t[(t.GUTTER_LINE_DECORATIONS = 4)] = 'GUTTER_LINE_DECORATIONS'),
  8496. (t[(t.GUTTER_VIEW_ZONE = 5)] = 'GUTTER_VIEW_ZONE'),
  8497. (t[(t.CONTENT_TEXT = 6)] = 'CONTENT_TEXT'),
  8498. (t[(t.CONTENT_EMPTY = 7)] = 'CONTENT_EMPTY'),
  8499. (t[(t.CONTENT_VIEW_ZONE = 8)] = 'CONTENT_VIEW_ZONE'),
  8500. (t[(t.CONTENT_WIDGET = 9)] = 'CONTENT_WIDGET'),
  8501. (t[(t.OVERVIEW_RULER = 10)] = 'OVERVIEW_RULER'),
  8502. (t[(t.SCROLLBAR = 11)] = 'SCROLLBAR'),
  8503. (t[(t.OVERLAY_WIDGET = 12)] = 'OVERLAY_WIDGET'),
  8504. (t[(t.OUTSIDE_EDITOR = 13)] = 'OUTSIDE_EDITOR')
  8505. })((o = n.MouseTargetType || (n.MouseTargetType = {})))
  8506. var c
  8507. ;(function (t) {
  8508. ;(t[(t.TOP_RIGHT_CORNER = 0)] = 'TOP_RIGHT_CORNER'),
  8509. (t[(t.BOTTOM_RIGHT_CORNER = 1)] = 'BOTTOM_RIGHT_CORNER'),
  8510. (t[(t.TOP_CENTER = 2)] = 'TOP_CENTER')
  8511. })((c = n.OverlayWidgetPositionPreference || (n.OverlayWidgetPositionPreference = {})))
  8512. var l
  8513. ;(function (t) {
  8514. ;(t[(t.Left = 1)] = 'Left'),
  8515. (t[(t.Center = 2)] = 'Center'),
  8516. (t[(t.Right = 4)] = 'Right'),
  8517. (t[(t.Full = 7)] = 'Full')
  8518. })((l = n.OverviewRulerLane || (n.OverviewRulerLane = {})))
  8519. var m
  8520. ;(function (t) {
  8521. ;(t[(t.Left = 0)] = 'Left'),
  8522. (t[(t.Right = 1)] = 'Right'),
  8523. (t[(t.None = 2)] = 'None'),
  8524. (t[(t.LeftOfInjectedText = 3)] = 'LeftOfInjectedText'),
  8525. (t[(t.RightOfInjectedText = 4)] = 'RightOfInjectedText')
  8526. })((m = n.PositionAffinity || (n.PositionAffinity = {})))
  8527. var N
  8528. ;(function (t) {
  8529. ;(t[(t.Off = 0)] = 'Off'),
  8530. (t[(t.On = 1)] = 'On'),
  8531. (t[(t.Relative = 2)] = 'Relative'),
  8532. (t[(t.Interval = 3)] = 'Interval'),
  8533. (t[(t.Custom = 4)] = 'Custom')
  8534. })((N = n.RenderLineNumbersType || (n.RenderLineNumbersType = {})))
  8535. var A
  8536. ;(function (t) {
  8537. ;(t[(t.None = 0)] = 'None'), (t[(t.Text = 1)] = 'Text'), (t[(t.Blocks = 2)] = 'Blocks')
  8538. })((A = n.RenderMinimap || (n.RenderMinimap = {})))
  8539. var M
  8540. ;(function (t) {
  8541. ;(t[(t.Smooth = 0)] = 'Smooth'), (t[(t.Immediate = 1)] = 'Immediate')
  8542. })((M = n.ScrollType || (n.ScrollType = {})))
  8543. var k
  8544. ;(function (t) {
  8545. ;(t[(t.Auto = 1)] = 'Auto'),
  8546. (t[(t.Hidden = 2)] = 'Hidden'),
  8547. (t[(t.Visible = 3)] = 'Visible')
  8548. })((k = n.ScrollbarVisibility || (n.ScrollbarVisibility = {})))
  8549. var q
  8550. ;(function (t) {
  8551. ;(t[(t.LTR = 0)] = 'LTR'), (t[(t.RTL = 1)] = 'RTL')
  8552. })((q = n.SelectionDirection || (n.SelectionDirection = {})))
  8553. var I
  8554. ;(function (t) {
  8555. ;(t[(t.Invoke = 1)] = 'Invoke'),
  8556. (t[(t.TriggerCharacter = 2)] = 'TriggerCharacter'),
  8557. (t[(t.ContentChange = 3)] = 'ContentChange')
  8558. })((I = n.SignatureHelpTriggerKind || (n.SignatureHelpTriggerKind = {})))
  8559. var B
  8560. ;(function (t) {
  8561. ;(t[(t.File = 0)] = 'File'),
  8562. (t[(t.Module = 1)] = 'Module'),
  8563. (t[(t.Namespace = 2)] = 'Namespace'),
  8564. (t[(t.Package = 3)] = 'Package'),
  8565. (t[(t.Class = 4)] = 'Class'),
  8566. (t[(t.Method = 5)] = 'Method'),
  8567. (t[(t.Property = 6)] = 'Property'),
  8568. (t[(t.Field = 7)] = 'Field'),
  8569. (t[(t.Constructor = 8)] = 'Constructor'),
  8570. (t[(t.Enum = 9)] = 'Enum'),
  8571. (t[(t.Interface = 10)] = 'Interface'),
  8572. (t[(t.Function = 11)] = 'Function'),
  8573. (t[(t.Variable = 12)] = 'Variable'),
  8574. (t[(t.Constant = 13)] = 'Constant'),
  8575. (t[(t.String = 14)] = 'String'),
  8576. (t[(t.Number = 15)] = 'Number'),
  8577. (t[(t.Boolean = 16)] = 'Boolean'),
  8578. (t[(t.Array = 17)] = 'Array'),
  8579. (t[(t.Object = 18)] = 'Object'),
  8580. (t[(t.Key = 19)] = 'Key'),
  8581. (t[(t.Null = 20)] = 'Null'),
  8582. (t[(t.EnumMember = 21)] = 'EnumMember'),
  8583. (t[(t.Struct = 22)] = 'Struct'),
  8584. (t[(t.Event = 23)] = 'Event'),
  8585. (t[(t.Operator = 24)] = 'Operator'),
  8586. (t[(t.TypeParameter = 25)] = 'TypeParameter')
  8587. })((B = n.SymbolKind || (n.SymbolKind = {})))
  8588. var H
  8589. ;(function (t) {
  8590. t[(t.Deprecated = 1)] = 'Deprecated'
  8591. })((H = n.SymbolTag || (n.SymbolTag = {})))
  8592. var F
  8593. ;(function (t) {
  8594. ;(t[(t.Hidden = 0)] = 'Hidden'),
  8595. (t[(t.Blink = 1)] = 'Blink'),
  8596. (t[(t.Smooth = 2)] = 'Smooth'),
  8597. (t[(t.Phase = 3)] = 'Phase'),
  8598. (t[(t.Expand = 4)] = 'Expand'),
  8599. (t[(t.Solid = 5)] = 'Solid')
  8600. })((F = n.TextEditorCursorBlinkingStyle || (n.TextEditorCursorBlinkingStyle = {})))
  8601. var U
  8602. ;(function (t) {
  8603. ;(t[(t.Line = 1)] = 'Line'),
  8604. (t[(t.Block = 2)] = 'Block'),
  8605. (t[(t.Underline = 3)] = 'Underline'),
  8606. (t[(t.LineThin = 4)] = 'LineThin'),
  8607. (t[(t.BlockOutline = 5)] = 'BlockOutline'),
  8608. (t[(t.UnderlineThin = 6)] = 'UnderlineThin')
  8609. })((U = n.TextEditorCursorStyle || (n.TextEditorCursorStyle = {})))
  8610. var T
  8611. ;(function (t) {
  8612. ;(t[(t.AlwaysGrowsWhenTypingAtEdges = 0)] = 'AlwaysGrowsWhenTypingAtEdges'),
  8613. (t[(t.NeverGrowsWhenTypingAtEdges = 1)] = 'NeverGrowsWhenTypingAtEdges'),
  8614. (t[(t.GrowsOnlyWhenTypingBefore = 2)] = 'GrowsOnlyWhenTypingBefore'),
  8615. (t[(t.GrowsOnlyWhenTypingAfter = 3)] = 'GrowsOnlyWhenTypingAfter')
  8616. })((T = n.TrackedRangeStickiness || (n.TrackedRangeStickiness = {})))
  8617. var W
  8618. ;(function (t) {
  8619. ;(t[(t.None = 0)] = 'None'),
  8620. (t[(t.Same = 1)] = 'Same'),
  8621. (t[(t.Indent = 2)] = 'Indent'),
  8622. (t[(t.DeepIndent = 3)] = 'DeepIndent')
  8623. })((W = n.WrappingIndent || (n.WrappingIndent = {})))
  8624. }),
  8625. Q(Y[50], X([25, 57]), function (x, n) {
  8626. return x.create('vs/base/common/platform', n)
  8627. }),
  8628. Q(Y[8], X([0, 1, 50]), function (x, n, R) {
  8629. 'use strict'
  8630. var D
  8631. Object.defineProperty(n, '__esModule', { value: !0 }),
  8632. (n.isAndroid =
  8633. n.isEdge =
  8634. n.isSafari =
  8635. n.isFirefox =
  8636. n.isChrome =
  8637. n.isLittleEndian =
  8638. n.OS =
  8639. n.setTimeout0 =
  8640. n.setTimeout0IsFaster =
  8641. n.language =
  8642. n.userAgent =
  8643. n.isMobile =
  8644. n.isIOS =
  8645. n.isWebWorker =
  8646. n.isWeb =
  8647. n.isNative =
  8648. n.isLinux =
  8649. n.isMacintosh =
  8650. n.isWindows =
  8651. n.globals =
  8652. n.LANGUAGE_DEFAULT =
  8653. void 0),
  8654. (n.LANGUAGE_DEFAULT = 'en')
  8655. let i = !1,
  8656. s = !1,
  8657. p = !1,
  8658. L = !1,
  8659. h = !1,
  8660. a = !1,
  8661. w = !1,
  8662. e = !1,
  8663. b = !1,
  8664. f = !1,
  8665. v,
  8666. g = n.LANGUAGE_DEFAULT,
  8667. S = n.LANGUAGE_DEFAULT,
  8668. E,
  8669. y
  8670. n.globals = typeof self == 'object' ? self : typeof global == 'object' ? global : {}
  8671. let _
  8672. typeof n.globals.vscode < 'u' && typeof n.globals.vscode.process < 'u'
  8673. ? (_ = n.globals.vscode.process)
  8674. : typeof process < 'u' && (_ = process)
  8675. const d =
  8676. typeof ((D = _?.versions) === null || D === void 0 ? void 0 : D.electron) == 'string',
  8677. C = d && _?.type === 'renderer'
  8678. if (typeof navigator == 'object' && !C)
  8679. (y = navigator.userAgent),
  8680. (i = y.indexOf('Windows') >= 0),
  8681. (s = y.indexOf('Macintosh') >= 0),
  8682. (e =
  8683. (y.indexOf('Macintosh') >= 0 || y.indexOf('iPad') >= 0 || y.indexOf('iPhone') >= 0) &&
  8684. !!navigator.maxTouchPoints &&
  8685. navigator.maxTouchPoints > 0),
  8686. (p = y.indexOf('Linux') >= 0),
  8687. (f = y?.indexOf('Mobi') >= 0),
  8688. (a = !0),
  8689. (v = R.getConfiguredDefaultLocale(R.localize(0, null)) || n.LANGUAGE_DEFAULT),
  8690. (g = v),
  8691. (S = navigator.language)
  8692. else if (typeof _ == 'object') {
  8693. ;(i = _.platform === 'win32'),
  8694. (s = _.platform === 'darwin'),
  8695. (p = _.platform === 'linux'),
  8696. (L = p && !!_.env.SNAP && !!_.env.SNAP_REVISION),
  8697. (w = d),
  8698. (b = !!_.env.CI || !!_.env.BUILD_ARTIFACTSTAGINGDIRECTORY),
  8699. (v = n.LANGUAGE_DEFAULT),
  8700. (g = n.LANGUAGE_DEFAULT)
  8701. const l = _.env.VSCODE_NLS_CONFIG
  8702. if (l)
  8703. try {
  8704. const m = JSON.parse(l),
  8705. N = m.availableLanguages['*']
  8706. ;(v = m.locale),
  8707. (S = m.osLocale),
  8708. (g = N || n.LANGUAGE_DEFAULT),
  8709. (E = m._translationsConfigFile)
  8710. } catch {}
  8711. h = !0
  8712. } else console.error('Unable to resolve platform.')
  8713. let r = 0
  8714. s ? (r = 1) : i ? (r = 3) : p && (r = 2),
  8715. (n.isWindows = i),
  8716. (n.isMacintosh = s),
  8717. (n.isLinux = p),
  8718. (n.isNative = h),
  8719. (n.isWeb = a),
  8720. (n.isWebWorker = a && typeof n.globals.importScripts == 'function'),
  8721. (n.isIOS = e),
  8722. (n.isMobile = f),
  8723. (n.userAgent = y),
  8724. (n.language = g),
  8725. (n.setTimeout0IsFaster =
  8726. typeof n.globals.postMessage == 'function' && !n.globals.importScripts),
  8727. (n.setTimeout0 = (() => {
  8728. if (n.setTimeout0IsFaster) {
  8729. const l = []
  8730. n.globals.addEventListener('message', (N) => {
  8731. if (N.data && N.data.vscodeScheduleAsyncWork)
  8732. for (let A = 0, M = l.length; A < M; A++) {
  8733. const k = l[A]
  8734. if (k.id === N.data.vscodeScheduleAsyncWork) {
  8735. l.splice(A, 1), k.callback()
  8736. return
  8737. }
  8738. }
  8739. })
  8740. let m = 0
  8741. return (N) => {
  8742. const A = ++m
  8743. l.push({ id: A, callback: N }),
  8744. n.globals.postMessage({ vscodeScheduleAsyncWork: A }, '*')
  8745. }
  8746. }
  8747. return (l) => setTimeout(l)
  8748. })()),
  8749. (n.OS = s || e ? 2 : i ? 1 : 3)
  8750. let u = !0,
  8751. o = !1
  8752. function c() {
  8753. if (!o) {
  8754. o = !0
  8755. const l = new Uint8Array(2)
  8756. ;(l[0] = 1), (l[1] = 2), (u = new Uint16Array(l.buffer)[0] === (2 << 8) + 1)
  8757. }
  8758. return u
  8759. }
  8760. ;(n.isLittleEndian = c),
  8761. (n.isChrome = !!(n.userAgent && n.userAgent.indexOf('Chrome') >= 0)),
  8762. (n.isFirefox = !!(n.userAgent && n.userAgent.indexOf('Firefox') >= 0)),
  8763. (n.isSafari = !!(!n.isChrome && n.userAgent && n.userAgent.indexOf('Safari') >= 0)),
  8764. (n.isEdge = !!(n.userAgent && n.userAgent.indexOf('Edg/') >= 0)),
  8765. (n.isAndroid = !!(n.userAgent && n.userAgent.indexOf('Android') >= 0))
  8766. }),
  8767. Q(Y[51], X([0, 1, 8]), function (x, n, R) {
  8768. 'use strict'
  8769. Object.defineProperty(n, '__esModule', { value: !0 }), (n.platform = n.env = n.cwd = void 0)
  8770. let D
  8771. if (typeof R.globals.vscode < 'u' && typeof R.globals.vscode.process < 'u') {
  8772. const i = R.globals.vscode.process
  8773. D = {
  8774. get platform() {
  8775. return i.platform
  8776. },
  8777. get arch() {
  8778. return i.arch
  8779. },
  8780. get env() {
  8781. return i.env
  8782. },
  8783. cwd() {
  8784. return i.cwd()
  8785. },
  8786. }
  8787. } else
  8788. typeof process < 'u'
  8789. ? (D = {
  8790. get platform() {
  8791. return process.platform
  8792. },
  8793. get arch() {
  8794. return process.arch
  8795. },
  8796. get env() {
  8797. return process.env
  8798. },
  8799. cwd() {
  8800. return process.env.VSCODE_CWD || process.cwd()
  8801. },
  8802. })
  8803. : (D = {
  8804. get platform() {
  8805. return R.isWindows ? 'win32' : R.isMacintosh ? 'darwin' : 'linux'
  8806. },
  8807. get arch() {},
  8808. get env() {
  8809. return {}
  8810. },
  8811. cwd() {
  8812. return '/'
  8813. },
  8814. })
  8815. ;(n.cwd = D.cwd), (n.env = D.env), (n.platform = D.platform)
  8816. }),
  8817. Q(Y[52], X([0, 1, 51]), function (x, n, R) {
  8818. 'use strict'
  8819. Object.defineProperty(n, '__esModule', { value: !0 }),
  8820. (n.sep =
  8821. n.extname =
  8822. n.basename =
  8823. n.dirname =
  8824. n.relative =
  8825. n.resolve =
  8826. n.normalize =
  8827. n.posix =
  8828. n.win32 =
  8829. void 0)
  8830. const D = 65,
  8831. i = 97,
  8832. s = 90,
  8833. p = 122,
  8834. L = 46,
  8835. h = 47,
  8836. a = 92,
  8837. w = 58,
  8838. e = 63
  8839. class b extends Error {
  8840. constructor(u, o, c) {
  8841. let l
  8842. typeof o == 'string' && o.indexOf('not ') === 0
  8843. ? ((l = 'must not be'), (o = o.replace(/^not /, '')))
  8844. : (l = 'must be')
  8845. const m = u.indexOf('.') !== -1 ? 'property' : 'argument'
  8846. let N = `The "${u}" ${m} ${l} of type ${o}`
  8847. ;(N += `. Received type ${typeof c}`), super(N), (this.code = 'ERR_INVALID_ARG_TYPE')
  8848. }
  8849. }
  8850. function f(r, u) {
  8851. if (r === null || typeof r != 'object') throw new b(u, 'Object', r)
  8852. }
  8853. function v(r, u) {
  8854. if (typeof r != 'string') throw new b(u, 'string', r)
  8855. }
  8856. const g = R.platform === 'win32'
  8857. function S(r) {
  8858. return r === h || r === a
  8859. }
  8860. function E(r) {
  8861. return r === h
  8862. }
  8863. function y(r) {
  8864. return (r >= D && r <= s) || (r >= i && r <= p)
  8865. }
  8866. function _(r, u, o, c) {
  8867. let l = '',
  8868. m = 0,
  8869. N = -1,
  8870. A = 0,
  8871. M = 0
  8872. for (let k = 0; k <= r.length; ++k) {
  8873. if (k < r.length) M = r.charCodeAt(k)
  8874. else {
  8875. if (c(M)) break
  8876. M = h
  8877. }
  8878. if (c(M)) {
  8879. if (!(N === k - 1 || A === 1))
  8880. if (A === 2) {
  8881. if (
  8882. l.length < 2 ||
  8883. m !== 2 ||
  8884. l.charCodeAt(l.length - 1) !== L ||
  8885. l.charCodeAt(l.length - 2) !== L
  8886. ) {
  8887. if (l.length > 2) {
  8888. const q = l.lastIndexOf(o)
  8889. q === -1
  8890. ? ((l = ''), (m = 0))
  8891. : ((l = l.slice(0, q)), (m = l.length - 1 - l.lastIndexOf(o))),
  8892. (N = k),
  8893. (A = 0)
  8894. continue
  8895. } else if (l.length !== 0) {
  8896. ;(l = ''), (m = 0), (N = k), (A = 0)
  8897. continue
  8898. }
  8899. }
  8900. u && ((l += l.length > 0 ? `${o}..` : '..'), (m = 2))
  8901. } else
  8902. l.length > 0 ? (l += `${o}${r.slice(N + 1, k)}`) : (l = r.slice(N + 1, k)),
  8903. (m = k - N - 1)
  8904. ;(N = k), (A = 0)
  8905. } else M === L && A !== -1 ? ++A : (A = -1)
  8906. }
  8907. return l
  8908. }
  8909. function d(r, u) {
  8910. f(u, 'pathObject')
  8911. const o = u.dir || u.root,
  8912. c = u.base || `${u.name || ''}${u.ext || ''}`
  8913. return o ? (o === u.root ? `${o}${c}` : `${o}${r}${c}`) : c
  8914. }
  8915. n.win32 = {
  8916. resolve(...r) {
  8917. let u = '',
  8918. o = '',
  8919. c = !1
  8920. for (let l = r.length - 1; l >= -1; l--) {
  8921. let m
  8922. if (l >= 0) {
  8923. if (((m = r[l]), v(m, 'path'), m.length === 0)) continue
  8924. } else
  8925. u.length === 0
  8926. ? (m = R.cwd())
  8927. : ((m = R.env[`=${u}`] || R.cwd()),
  8928. (m === void 0 ||
  8929. (m.slice(0, 2).toLowerCase() !== u.toLowerCase() && m.charCodeAt(2) === a)) &&
  8930. (m = `${u}\\`))
  8931. const N = m.length
  8932. let A = 0,
  8933. M = '',
  8934. k = !1
  8935. const q = m.charCodeAt(0)
  8936. if (N === 1) S(q) && ((A = 1), (k = !0))
  8937. else if (S(q))
  8938. if (((k = !0), S(m.charCodeAt(1)))) {
  8939. let I = 2,
  8940. B = I
  8941. for (; I < N && !S(m.charCodeAt(I)); ) I++
  8942. if (I < N && I !== B) {
  8943. const H = m.slice(B, I)
  8944. for (B = I; I < N && S(m.charCodeAt(I)); ) I++
  8945. if (I < N && I !== B) {
  8946. for (B = I; I < N && !S(m.charCodeAt(I)); ) I++
  8947. ;(I === N || I !== B) && ((M = `\\\\${H}\\${m.slice(B, I)}`), (A = I))
  8948. }
  8949. }
  8950. } else A = 1
  8951. else
  8952. y(q) &&
  8953. m.charCodeAt(1) === w &&
  8954. ((M = m.slice(0, 2)), (A = 2), N > 2 && S(m.charCodeAt(2)) && ((k = !0), (A = 3)))
  8955. if (M.length > 0)
  8956. if (u.length > 0) {
  8957. if (M.toLowerCase() !== u.toLowerCase()) continue
  8958. } else u = M
  8959. if (c) {
  8960. if (u.length > 0) break
  8961. } else if (((o = `${m.slice(A)}\\${o}`), (c = k), k && u.length > 0)) break
  8962. }
  8963. return (o = _(o, !c, '\\', S)), c ? `${u}\\${o}` : `${u}${o}` || '.'
  8964. },
  8965. normalize(r) {
  8966. v(r, 'path')
  8967. const u = r.length
  8968. if (u === 0) return '.'
  8969. let o = 0,
  8970. c,
  8971. l = !1
  8972. const m = r.charCodeAt(0)
  8973. if (u === 1) return E(m) ? '\\' : r
  8974. if (S(m))
  8975. if (((l = !0), S(r.charCodeAt(1)))) {
  8976. let A = 2,
  8977. M = A
  8978. for (; A < u && !S(r.charCodeAt(A)); ) A++
  8979. if (A < u && A !== M) {
  8980. const k = r.slice(M, A)
  8981. for (M = A; A < u && S(r.charCodeAt(A)); ) A++
  8982. if (A < u && A !== M) {
  8983. for (M = A; A < u && !S(r.charCodeAt(A)); ) A++
  8984. if (A === u) return `\\\\${k}\\${r.slice(M)}\\`
  8985. A !== M && ((c = `\\\\${k}\\${r.slice(M, A)}`), (o = A))
  8986. }
  8987. }
  8988. } else o = 1
  8989. else
  8990. y(m) &&
  8991. r.charCodeAt(1) === w &&
  8992. ((c = r.slice(0, 2)), (o = 2), u > 2 && S(r.charCodeAt(2)) && ((l = !0), (o = 3)))
  8993. let N = o < u ? _(r.slice(o), !l, '\\', S) : ''
  8994. return (
  8995. N.length === 0 && !l && (N = '.'),
  8996. N.length > 0 && S(r.charCodeAt(u - 1)) && (N += '\\'),
  8997. c === void 0 ? (l ? `\\${N}` : N) : l ? `${c}\\${N}` : `${c}${N}`
  8998. )
  8999. },
  9000. isAbsolute(r) {
  9001. v(r, 'path')
  9002. const u = r.length
  9003. if (u === 0) return !1
  9004. const o = r.charCodeAt(0)
  9005. return S(o) || (u > 2 && y(o) && r.charCodeAt(1) === w && S(r.charCodeAt(2)))
  9006. },
  9007. join(...r) {
  9008. if (r.length === 0) return '.'
  9009. let u, o
  9010. for (let m = 0; m < r.length; ++m) {
  9011. const N = r[m]
  9012. v(N, 'path'), N.length > 0 && (u === void 0 ? (u = o = N) : (u += `\\${N}`))
  9013. }
  9014. if (u === void 0) return '.'
  9015. let c = !0,
  9016. l = 0
  9017. if (typeof o == 'string' && S(o.charCodeAt(0))) {
  9018. ++l
  9019. const m = o.length
  9020. m > 1 && S(o.charCodeAt(1)) && (++l, m > 2 && (S(o.charCodeAt(2)) ? ++l : (c = !1)))
  9021. }
  9022. if (c) {
  9023. for (; l < u.length && S(u.charCodeAt(l)); ) l++
  9024. l >= 2 && (u = `\\${u.slice(l)}`)
  9025. }
  9026. return n.win32.normalize(u)
  9027. },
  9028. relative(r, u) {
  9029. if ((v(r, 'from'), v(u, 'to'), r === u)) return ''
  9030. const o = n.win32.resolve(r),
  9031. c = n.win32.resolve(u)
  9032. if (o === c || ((r = o.toLowerCase()), (u = c.toLowerCase()), r === u)) return ''
  9033. let l = 0
  9034. for (; l < r.length && r.charCodeAt(l) === a; ) l++
  9035. let m = r.length
  9036. for (; m - 1 > l && r.charCodeAt(m - 1) === a; ) m--
  9037. const N = m - l
  9038. let A = 0
  9039. for (; A < u.length && u.charCodeAt(A) === a; ) A++
  9040. let M = u.length
  9041. for (; M - 1 > A && u.charCodeAt(M - 1) === a; ) M--
  9042. const k = M - A,
  9043. q = N < k ? N : k
  9044. let I = -1,
  9045. B = 0
  9046. for (; B < q; B++) {
  9047. const F = r.charCodeAt(l + B)
  9048. if (F !== u.charCodeAt(A + B)) break
  9049. F === a && (I = B)
  9050. }
  9051. if (B !== q) {
  9052. if (I === -1) return c
  9053. } else {
  9054. if (k > q) {
  9055. if (u.charCodeAt(A + B) === a) return c.slice(A + B + 1)
  9056. if (B === 2) return c.slice(A + B)
  9057. }
  9058. N > q && (r.charCodeAt(l + B) === a ? (I = B) : B === 2 && (I = 3)), I === -1 && (I = 0)
  9059. }
  9060. let H = ''
  9061. for (B = l + I + 1; B <= m; ++B)
  9062. (B === m || r.charCodeAt(B) === a) && (H += H.length === 0 ? '..' : '\\..')
  9063. return (
  9064. (A += I),
  9065. H.length > 0 ? `${H}${c.slice(A, M)}` : (c.charCodeAt(A) === a && ++A, c.slice(A, M))
  9066. )
  9067. },
  9068. toNamespacedPath(r) {
  9069. if (typeof r != 'string' || r.length === 0) return r
  9070. const u = n.win32.resolve(r)
  9071. if (u.length <= 2) return r
  9072. if (u.charCodeAt(0) === a) {
  9073. if (u.charCodeAt(1) === a) {
  9074. const o = u.charCodeAt(2)
  9075. if (o !== e && o !== L) return `\\\\?\\UNC\\${u.slice(2)}`
  9076. }
  9077. } else if (y(u.charCodeAt(0)) && u.charCodeAt(1) === w && u.charCodeAt(2) === a)
  9078. return `\\\\?\\${u}`
  9079. return r
  9080. },
  9081. dirname(r) {
  9082. v(r, 'path')
  9083. const u = r.length
  9084. if (u === 0) return '.'
  9085. let o = -1,
  9086. c = 0
  9087. const l = r.charCodeAt(0)
  9088. if (u === 1) return S(l) ? r : '.'
  9089. if (S(l)) {
  9090. if (((o = c = 1), S(r.charCodeAt(1)))) {
  9091. let A = 2,
  9092. M = A
  9093. for (; A < u && !S(r.charCodeAt(A)); ) A++
  9094. if (A < u && A !== M) {
  9095. for (M = A; A < u && S(r.charCodeAt(A)); ) A++
  9096. if (A < u && A !== M) {
  9097. for (M = A; A < u && !S(r.charCodeAt(A)); ) A++
  9098. if (A === u) return r
  9099. A !== M && (o = c = A + 1)
  9100. }
  9101. }
  9102. }
  9103. } else
  9104. y(l) && r.charCodeAt(1) === w && ((o = u > 2 && S(r.charCodeAt(2)) ? 3 : 2), (c = o))
  9105. let m = -1,
  9106. N = !0
  9107. for (let A = u - 1; A >= c; --A)
  9108. if (S(r.charCodeAt(A))) {
  9109. if (!N) {
  9110. m = A
  9111. break
  9112. }
  9113. } else N = !1
  9114. if (m === -1) {
  9115. if (o === -1) return '.'
  9116. m = o
  9117. }
  9118. return r.slice(0, m)
  9119. },
  9120. basename(r, u) {
  9121. u !== void 0 && v(u, 'ext'), v(r, 'path')
  9122. let o = 0,
  9123. c = -1,
  9124. l = !0,
  9125. m
  9126. if (
  9127. (r.length >= 2 && y(r.charCodeAt(0)) && r.charCodeAt(1) === w && (o = 2),
  9128. u !== void 0 && u.length > 0 && u.length <= r.length)
  9129. ) {
  9130. if (u === r) return ''
  9131. let N = u.length - 1,
  9132. A = -1
  9133. for (m = r.length - 1; m >= o; --m) {
  9134. const M = r.charCodeAt(m)
  9135. if (S(M)) {
  9136. if (!l) {
  9137. o = m + 1
  9138. break
  9139. }
  9140. } else
  9141. A === -1 && ((l = !1), (A = m + 1)),
  9142. N >= 0 && (M === u.charCodeAt(N) ? --N === -1 && (c = m) : ((N = -1), (c = A)))
  9143. }
  9144. return o === c ? (c = A) : c === -1 && (c = r.length), r.slice(o, c)
  9145. }
  9146. for (m = r.length - 1; m >= o; --m)
  9147. if (S(r.charCodeAt(m))) {
  9148. if (!l) {
  9149. o = m + 1
  9150. break
  9151. }
  9152. } else c === -1 && ((l = !1), (c = m + 1))
  9153. return c === -1 ? '' : r.slice(o, c)
  9154. },
  9155. extname(r) {
  9156. v(r, 'path')
  9157. let u = 0,
  9158. o = -1,
  9159. c = 0,
  9160. l = -1,
  9161. m = !0,
  9162. N = 0
  9163. r.length >= 2 && r.charCodeAt(1) === w && y(r.charCodeAt(0)) && (u = c = 2)
  9164. for (let A = r.length - 1; A >= u; --A) {
  9165. const M = r.charCodeAt(A)
  9166. if (S(M)) {
  9167. if (!m) {
  9168. c = A + 1
  9169. break
  9170. }
  9171. continue
  9172. }
  9173. l === -1 && ((m = !1), (l = A + 1)),
  9174. M === L ? (o === -1 ? (o = A) : N !== 1 && (N = 1)) : o !== -1 && (N = -1)
  9175. }
  9176. return o === -1 || l === -1 || N === 0 || (N === 1 && o === l - 1 && o === c + 1)
  9177. ? ''
  9178. : r.slice(o, l)
  9179. },
  9180. format: d.bind(null, '\\'),
  9181. parse(r) {
  9182. v(r, 'path')
  9183. const u = { root: '', dir: '', base: '', ext: '', name: '' }
  9184. if (r.length === 0) return u
  9185. const o = r.length
  9186. let c = 0,
  9187. l = r.charCodeAt(0)
  9188. if (o === 1) return S(l) ? ((u.root = u.dir = r), u) : ((u.base = u.name = r), u)
  9189. if (S(l)) {
  9190. if (((c = 1), S(r.charCodeAt(1)))) {
  9191. let I = 2,
  9192. B = I
  9193. for (; I < o && !S(r.charCodeAt(I)); ) I++
  9194. if (I < o && I !== B) {
  9195. for (B = I; I < o && S(r.charCodeAt(I)); ) I++
  9196. if (I < o && I !== B) {
  9197. for (B = I; I < o && !S(r.charCodeAt(I)); ) I++
  9198. I === o ? (c = I) : I !== B && (c = I + 1)
  9199. }
  9200. }
  9201. }
  9202. } else if (y(l) && r.charCodeAt(1) === w) {
  9203. if (o <= 2) return (u.root = u.dir = r), u
  9204. if (((c = 2), S(r.charCodeAt(2)))) {
  9205. if (o === 3) return (u.root = u.dir = r), u
  9206. c = 3
  9207. }
  9208. }
  9209. c > 0 && (u.root = r.slice(0, c))
  9210. let m = -1,
  9211. N = c,
  9212. A = -1,
  9213. M = !0,
  9214. k = r.length - 1,
  9215. q = 0
  9216. for (; k >= c; --k) {
  9217. if (((l = r.charCodeAt(k)), S(l))) {
  9218. if (!M) {
  9219. N = k + 1
  9220. break
  9221. }
  9222. continue
  9223. }
  9224. A === -1 && ((M = !1), (A = k + 1)),
  9225. l === L ? (m === -1 ? (m = k) : q !== 1 && (q = 1)) : m !== -1 && (q = -1)
  9226. }
  9227. return (
  9228. A !== -1 &&
  9229. (m === -1 || q === 0 || (q === 1 && m === A - 1 && m === N + 1)
  9230. ? (u.base = u.name = r.slice(N, A))
  9231. : ((u.name = r.slice(N, m)), (u.base = r.slice(N, A)), (u.ext = r.slice(m, A)))),
  9232. N > 0 && N !== c ? (u.dir = r.slice(0, N - 1)) : (u.dir = u.root),
  9233. u
  9234. )
  9235. },
  9236. sep: '\\',
  9237. delimiter: ';',
  9238. win32: null,
  9239. posix: null,
  9240. }
  9241. const C = (() => {
  9242. if (g) {
  9243. const r = /\\/g
  9244. return () => {
  9245. const u = R.cwd().replace(r, '/')
  9246. return u.slice(u.indexOf('/'))
  9247. }
  9248. }
  9249. return () => R.cwd()
  9250. })()
  9251. ;(n.posix = {
  9252. resolve(...r) {
  9253. let u = '',
  9254. o = !1
  9255. for (let c = r.length - 1; c >= -1 && !o; c--) {
  9256. const l = c >= 0 ? r[c] : C()
  9257. v(l, 'path'), l.length !== 0 && ((u = `${l}/${u}`), (o = l.charCodeAt(0) === h))
  9258. }
  9259. return (u = _(u, !o, '/', E)), o ? `/${u}` : u.length > 0 ? u : '.'
  9260. },
  9261. normalize(r) {
  9262. if ((v(r, 'path'), r.length === 0)) return '.'
  9263. const u = r.charCodeAt(0) === h,
  9264. o = r.charCodeAt(r.length - 1) === h
  9265. return (
  9266. (r = _(r, !u, '/', E)),
  9267. r.length === 0 ? (u ? '/' : o ? './' : '.') : (o && (r += '/'), u ? `/${r}` : r)
  9268. )
  9269. },
  9270. isAbsolute(r) {
  9271. return v(r, 'path'), r.length > 0 && r.charCodeAt(0) === h
  9272. },
  9273. join(...r) {
  9274. if (r.length === 0) return '.'
  9275. let u
  9276. for (let o = 0; o < r.length; ++o) {
  9277. const c = r[o]
  9278. v(c, 'path'), c.length > 0 && (u === void 0 ? (u = c) : (u += `/${c}`))
  9279. }
  9280. return u === void 0 ? '.' : n.posix.normalize(u)
  9281. },
  9282. relative(r, u) {
  9283. if (
  9284. (v(r, 'from'),
  9285. v(u, 'to'),
  9286. r === u || ((r = n.posix.resolve(r)), (u = n.posix.resolve(u)), r === u))
  9287. )
  9288. return ''
  9289. const o = 1,
  9290. c = r.length,
  9291. l = c - o,
  9292. m = 1,
  9293. N = u.length - m,
  9294. A = l < N ? l : N
  9295. let M = -1,
  9296. k = 0
  9297. for (; k < A; k++) {
  9298. const I = r.charCodeAt(o + k)
  9299. if (I !== u.charCodeAt(m + k)) break
  9300. I === h && (M = k)
  9301. }
  9302. if (k === A)
  9303. if (N > A) {
  9304. if (u.charCodeAt(m + k) === h) return u.slice(m + k + 1)
  9305. if (k === 0) return u.slice(m + k)
  9306. } else l > A && (r.charCodeAt(o + k) === h ? (M = k) : k === 0 && (M = 0))
  9307. let q = ''
  9308. for (k = o + M + 1; k <= c; ++k)
  9309. (k === c || r.charCodeAt(k) === h) && (q += q.length === 0 ? '..' : '/..')
  9310. return `${q}${u.slice(m + M)}`
  9311. },
  9312. toNamespacedPath(r) {
  9313. return r
  9314. },
  9315. dirname(r) {
  9316. if ((v(r, 'path'), r.length === 0)) return '.'
  9317. const u = r.charCodeAt(0) === h
  9318. let o = -1,
  9319. c = !0
  9320. for (let l = r.length - 1; l >= 1; --l)
  9321. if (r.charCodeAt(l) === h) {
  9322. if (!c) {
  9323. o = l
  9324. break
  9325. }
  9326. } else c = !1
  9327. return o === -1 ? (u ? '/' : '.') : u && o === 1 ? '//' : r.slice(0, o)
  9328. },
  9329. basename(r, u) {
  9330. u !== void 0 && v(u, 'ext'), v(r, 'path')
  9331. let o = 0,
  9332. c = -1,
  9333. l = !0,
  9334. m
  9335. if (u !== void 0 && u.length > 0 && u.length <= r.length) {
  9336. if (u === r) return ''
  9337. let N = u.length - 1,
  9338. A = -1
  9339. for (m = r.length - 1; m >= 0; --m) {
  9340. const M = r.charCodeAt(m)
  9341. if (M === h) {
  9342. if (!l) {
  9343. o = m + 1
  9344. break
  9345. }
  9346. } else
  9347. A === -1 && ((l = !1), (A = m + 1)),
  9348. N >= 0 && (M === u.charCodeAt(N) ? --N === -1 && (c = m) : ((N = -1), (c = A)))
  9349. }
  9350. return o === c ? (c = A) : c === -1 && (c = r.length), r.slice(o, c)
  9351. }
  9352. for (m = r.length - 1; m >= 0; --m)
  9353. if (r.charCodeAt(m) === h) {
  9354. if (!l) {
  9355. o = m + 1
  9356. break
  9357. }
  9358. } else c === -1 && ((l = !1), (c = m + 1))
  9359. return c === -1 ? '' : r.slice(o, c)
  9360. },
  9361. extname(r) {
  9362. v(r, 'path')
  9363. let u = -1,
  9364. o = 0,
  9365. c = -1,
  9366. l = !0,
  9367. m = 0
  9368. for (let N = r.length - 1; N >= 0; --N) {
  9369. const A = r.charCodeAt(N)
  9370. if (A === h) {
  9371. if (!l) {
  9372. o = N + 1
  9373. break
  9374. }
  9375. continue
  9376. }
  9377. c === -1 && ((l = !1), (c = N + 1)),
  9378. A === L ? (u === -1 ? (u = N) : m !== 1 && (m = 1)) : u !== -1 && (m = -1)
  9379. }
  9380. return u === -1 || c === -1 || m === 0 || (m === 1 && u === c - 1 && u === o + 1)
  9381. ? ''
  9382. : r.slice(u, c)
  9383. },
  9384. format: d.bind(null, '/'),
  9385. parse(r) {
  9386. v(r, 'path')
  9387. const u = { root: '', dir: '', base: '', ext: '', name: '' }
  9388. if (r.length === 0) return u
  9389. const o = r.charCodeAt(0) === h
  9390. let c
  9391. o ? ((u.root = '/'), (c = 1)) : (c = 0)
  9392. let l = -1,
  9393. m = 0,
  9394. N = -1,
  9395. A = !0,
  9396. M = r.length - 1,
  9397. k = 0
  9398. for (; M >= c; --M) {
  9399. const q = r.charCodeAt(M)
  9400. if (q === h) {
  9401. if (!A) {
  9402. m = M + 1
  9403. break
  9404. }
  9405. continue
  9406. }
  9407. N === -1 && ((A = !1), (N = M + 1)),
  9408. q === L ? (l === -1 ? (l = M) : k !== 1 && (k = 1)) : l !== -1 && (k = -1)
  9409. }
  9410. if (N !== -1) {
  9411. const q = m === 0 && o ? 1 : m
  9412. l === -1 || k === 0 || (k === 1 && l === N - 1 && l === m + 1)
  9413. ? (u.base = u.name = r.slice(q, N))
  9414. : ((u.name = r.slice(q, l)), (u.base = r.slice(q, N)), (u.ext = r.slice(l, N)))
  9415. }
  9416. return m > 0 ? (u.dir = r.slice(0, m - 1)) : o && (u.dir = '/'), u
  9417. },
  9418. sep: '/',
  9419. delimiter: ':',
  9420. win32: null,
  9421. posix: null,
  9422. }),
  9423. (n.posix.win32 = n.win32.win32 = n.win32),
  9424. (n.posix.posix = n.win32.posix = n.posix),
  9425. (n.normalize = g ? n.win32.normalize : n.posix.normalize),
  9426. (n.resolve = g ? n.win32.resolve : n.posix.resolve),
  9427. (n.relative = g ? n.win32.relative : n.posix.relative),
  9428. (n.dirname = g ? n.win32.dirname : n.posix.dirname),
  9429. (n.basename = g ? n.win32.basename : n.posix.basename),
  9430. (n.extname = g ? n.win32.extname : n.posix.extname),
  9431. (n.sep = g ? n.win32.sep : n.posix.sep)
  9432. }),
  9433. Q(Y[24], X([0, 1, 8]), function (x, n, R) {
  9434. 'use strict'
  9435. Object.defineProperty(n, '__esModule', { value: !0 }), (n.StopWatch = void 0)
  9436. const D = R.globals.performance && typeof R.globals.performance.now == 'function'
  9437. class i {
  9438. static create(p = !0) {
  9439. return new i(p)
  9440. }
  9441. constructor(p) {
  9442. ;(this._highResolution = D && p), (this._startTime = this._now()), (this._stopTime = -1)
  9443. }
  9444. stop() {
  9445. this._stopTime = this._now()
  9446. }
  9447. elapsed() {
  9448. return this._stopTime !== -1
  9449. ? this._stopTime - this._startTime
  9450. : this._now() - this._startTime
  9451. }
  9452. _now() {
  9453. return this._highResolution ? R.globals.performance.now() : Date.now()
  9454. }
  9455. }
  9456. n.StopWatch = i
  9457. }),
  9458. Q(Y[9], X([0, 1, 4, 14, 11, 16, 24]), function (x, n, R, D, i, s, p) {
  9459. 'use strict'
  9460. Object.defineProperty(n, '__esModule', { value: !0 }),
  9461. (n.Relay =
  9462. n.EventBufferer =
  9463. n.EventMultiplexer =
  9464. n.MicrotaskEmitter =
  9465. n.DebounceEmitter =
  9466. n.PauseableEmitter =
  9467. n.EventDeliveryQueue =
  9468. n.Emitter =
  9469. n.EventProfiling =
  9470. n.Event =
  9471. void 0)
  9472. const L = !1,
  9473. h = !1
  9474. var a
  9475. ;(function (c) {
  9476. c.None = () => i.Disposable.None
  9477. function l(J) {
  9478. if (h) {
  9479. const { onDidAddListener: z } = J,
  9480. G = f.create()
  9481. let $ = 0
  9482. J.onDidAddListener = () => {
  9483. ++$ === 2 &&
  9484. (console.warn(
  9485. 'snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here'
  9486. ),
  9487. G.print()),
  9488. z?.()
  9489. }
  9490. }
  9491. }
  9492. function m(J, z) {
  9493. return F(J, () => {}, 0, void 0, !0, void 0, z)
  9494. }
  9495. c.defer = m
  9496. function N(J) {
  9497. return (z, G = null, $) => {
  9498. let K = !1,
  9499. ee
  9500. return (
  9501. (ee = J(
  9502. (ne) => {
  9503. if (!K) return ee ? ee.dispose() : (K = !0), z.call(G, ne)
  9504. },
  9505. null,
  9506. $
  9507. )),
  9508. K && ee.dispose(),
  9509. ee
  9510. )
  9511. }
  9512. }
  9513. c.once = N
  9514. function A(J, z, G) {
  9515. return H(($, K = null, ee) => J((ne) => $.call(K, z(ne)), null, ee), G)
  9516. }
  9517. c.map = A
  9518. function M(J, z, G) {
  9519. return H(
  9520. ($, K = null, ee) =>
  9521. J(
  9522. (ne) => {
  9523. z(ne), $.call(K, ne)
  9524. },
  9525. null,
  9526. ee
  9527. ),
  9528. G
  9529. )
  9530. }
  9531. c.forEach = M
  9532. function k(J, z, G) {
  9533. return H(($, K = null, ee) => J((ne) => z(ne) && $.call(K, ne), null, ee), G)
  9534. }
  9535. c.filter = k
  9536. function q(J) {
  9537. return J
  9538. }
  9539. c.signal = q
  9540. function I(...J) {
  9541. return (z, G = null, $) =>
  9542. (0, i.combinedDisposable)(...J.map((K) => K((ee) => z.call(G, ee), null, $)))
  9543. }
  9544. c.any = I
  9545. function B(J, z, G, $) {
  9546. let K = G
  9547. return A(J, (ee) => ((K = z(K, ee)), K), $)
  9548. }
  9549. c.reduce = B
  9550. function H(J, z) {
  9551. let G
  9552. const $ = {
  9553. onWillAddFirstListener() {
  9554. G = J(K.fire, K)
  9555. },
  9556. onDidRemoveLastListener() {
  9557. G?.dispose()
  9558. },
  9559. }
  9560. z || l($)
  9561. const K = new g($)
  9562. return z?.add(K), K.event
  9563. }
  9564. function F(J, z, G = 100, $ = !1, K = !1, ee, ne) {
  9565. let ce,
  9566. Se,
  9567. we,
  9568. fe = 0,
  9569. me
  9570. const P = {
  9571. leakWarningThreshold: ee,
  9572. onWillAddFirstListener() {
  9573. ce = J((V) => {
  9574. fe++,
  9575. (Se = z(Se, V)),
  9576. $ && !we && (O.fire(Se), (Se = void 0)),
  9577. (me = () => {
  9578. const j = Se
  9579. ;(Se = void 0), (we = void 0), (!$ || fe > 1) && O.fire(j), (fe = 0)
  9580. }),
  9581. typeof G == 'number'
  9582. ? (clearTimeout(we), (we = setTimeout(me, G)))
  9583. : we === void 0 && ((we = 0), queueMicrotask(me))
  9584. })
  9585. },
  9586. onWillRemoveListener() {
  9587. K && fe > 0 && me?.()
  9588. },
  9589. onDidRemoveLastListener() {
  9590. ;(me = void 0), ce.dispose()
  9591. },
  9592. }
  9593. ne || l(P)
  9594. const O = new g(P)
  9595. return ne?.add(O), O.event
  9596. }
  9597. c.debounce = F
  9598. function U(J, z = 0, G) {
  9599. return c.debounce(J, ($, K) => ($ ? ($.push(K), $) : [K]), z, void 0, !0, void 0, G)
  9600. }
  9601. c.accumulate = U
  9602. function T(J, z = ($, K) => $ === K, G) {
  9603. let $ = !0,
  9604. K
  9605. return k(
  9606. J,
  9607. (ee) => {
  9608. const ne = $ || !z(ee, K)
  9609. return ($ = !1), (K = ee), ne
  9610. },
  9611. G
  9612. )
  9613. }
  9614. c.latch = T
  9615. function W(J, z, G) {
  9616. return [c.filter(J, z, G), c.filter(J, ($) => !z($), G)]
  9617. }
  9618. c.split = W
  9619. function t(J, z = !1, G = []) {
  9620. let $ = G.slice(),
  9621. K = J((ce) => {
  9622. $ ? $.push(ce) : ne.fire(ce)
  9623. })
  9624. const ee = () => {
  9625. $?.forEach((ce) => ne.fire(ce)), ($ = null)
  9626. },
  9627. ne = new g({
  9628. onWillAddFirstListener() {
  9629. K || (K = J((ce) => ne.fire(ce)))
  9630. },
  9631. onDidAddFirstListener() {
  9632. $ && (z ? setTimeout(ee) : ee())
  9633. },
  9634. onDidRemoveLastListener() {
  9635. K && K.dispose(), (K = null)
  9636. },
  9637. })
  9638. return ne.event
  9639. }
  9640. c.buffer = t
  9641. class te {
  9642. constructor(z) {
  9643. ;(this.event = z), (this.disposables = new i.DisposableStore())
  9644. }
  9645. map(z) {
  9646. return new te(A(this.event, z, this.disposables))
  9647. }
  9648. forEach(z) {
  9649. return new te(M(this.event, z, this.disposables))
  9650. }
  9651. filter(z) {
  9652. return new te(k(this.event, z, this.disposables))
  9653. }
  9654. reduce(z, G) {
  9655. return new te(B(this.event, z, G, this.disposables))
  9656. }
  9657. latch() {
  9658. return new te(T(this.event, void 0, this.disposables))
  9659. }
  9660. debounce(z, G = 100, $ = !1, K = !1, ee) {
  9661. return new te(F(this.event, z, G, $, K, ee, this.disposables))
  9662. }
  9663. on(z, G, $) {
  9664. return this.event(z, G, $)
  9665. }
  9666. once(z, G, $) {
  9667. return N(this.event)(z, G, $)
  9668. }
  9669. dispose() {
  9670. this.disposables.dispose()
  9671. }
  9672. }
  9673. function ie(J) {
  9674. return new te(J)
  9675. }
  9676. c.chain = ie
  9677. function ue(J, z, G = ($) => $) {
  9678. const $ = (...ce) => ne.fire(G(...ce)),
  9679. K = () => J.on(z, $),
  9680. ee = () => J.removeListener(z, $),
  9681. ne = new g({ onWillAddFirstListener: K, onDidRemoveLastListener: ee })
  9682. return ne.event
  9683. }
  9684. c.fromNodeEventEmitter = ue
  9685. function de(J, z, G = ($) => $) {
  9686. const $ = (...ce) => ne.fire(G(...ce)),
  9687. K = () => J.addEventListener(z, $),
  9688. ee = () => J.removeEventListener(z, $),
  9689. ne = new g({ onWillAddFirstListener: K, onDidRemoveLastListener: ee })
  9690. return ne.event
  9691. }
  9692. c.fromDOMEventEmitter = de
  9693. function Ce(J) {
  9694. return new Promise((z) => N(J)(z))
  9695. }
  9696. c.toPromise = Ce
  9697. function re(J, z) {
  9698. return z(void 0), J((G) => z(G))
  9699. }
  9700. c.runAndSubscribe = re
  9701. function se(J, z) {
  9702. let G = null
  9703. function $(ee) {
  9704. G?.dispose(), (G = new i.DisposableStore()), z(ee, G)
  9705. }
  9706. $(void 0)
  9707. const K = J((ee) => $(ee))
  9708. return (0, i.toDisposable)(() => {
  9709. K.dispose(), G?.dispose()
  9710. })
  9711. }
  9712. c.runAndSubscribeWithStore = se
  9713. class ge {
  9714. constructor(z, G) {
  9715. ;(this.obs = z), (this._counter = 0), (this._hasChanged = !1)
  9716. const $ = {
  9717. onWillAddFirstListener: () => {
  9718. z.addObserver(this)
  9719. },
  9720. onDidRemoveLastListener: () => {
  9721. z.removeObserver(this)
  9722. },
  9723. }
  9724. G || l($), (this.emitter = new g($)), G && G.add(this.emitter)
  9725. }
  9726. beginUpdate(z) {
  9727. this._counter++
  9728. }
  9729. handleChange(z, G) {
  9730. this._hasChanged = !0
  9731. }
  9732. endUpdate(z) {
  9733. --this._counter === 0 &&
  9734. this._hasChanged &&
  9735. ((this._hasChanged = !1), this.emitter.fire(this.obs.get()))
  9736. }
  9737. }
  9738. function Le(J, z) {
  9739. return new ge(J, z).emitter.event
  9740. }
  9741. c.fromObservable = Le
  9742. })((a = n.Event || (n.Event = {})))
  9743. class w {
  9744. constructor(l) {
  9745. ;(this.listenerCount = 0),
  9746. (this.invocationCount = 0),
  9747. (this.elapsedOverall = 0),
  9748. (this.durations = []),
  9749. (this.name = `${l}_${w._idPool++}`),
  9750. w.all.add(this)
  9751. }
  9752. start(l) {
  9753. ;(this._stopWatch = new p.StopWatch(!0)), (this.listenerCount = l)
  9754. }
  9755. stop() {
  9756. if (this._stopWatch) {
  9757. const l = this._stopWatch.elapsed()
  9758. this.durations.push(l),
  9759. (this.elapsedOverall += l),
  9760. (this.invocationCount += 1),
  9761. (this._stopWatch = void 0)
  9762. }
  9763. }
  9764. }
  9765. ;(w.all = new Set()), (w._idPool = 0), (n.EventProfiling = w)
  9766. let e = -1
  9767. class b {
  9768. constructor(l, m = Math.random().toString(18).slice(2, 5)) {
  9769. ;(this.threshold = l), (this.name = m), (this._warnCountdown = 0)
  9770. }
  9771. dispose() {
  9772. var l
  9773. ;(l = this._stacks) === null || l === void 0 || l.clear()
  9774. }
  9775. check(l, m) {
  9776. const N = this.threshold
  9777. if (N <= 0 || m < N) return
  9778. this._stacks || (this._stacks = new Map())
  9779. const A = this._stacks.get(l.value) || 0
  9780. if (
  9781. (this._stacks.set(l.value, A + 1), (this._warnCountdown -= 1), this._warnCountdown <= 0)
  9782. ) {
  9783. this._warnCountdown = N * 0.5
  9784. let M,
  9785. k = 0
  9786. for (const [q, I] of this._stacks) (!M || k < I) && ((M = q), (k = I))
  9787. console.warn(
  9788. `[${this.name}] potential listener LEAK detected, having ${m} listeners already. MOST frequent listener (${k}):`
  9789. ),
  9790. console.warn(M)
  9791. }
  9792. return () => {
  9793. const M = this._stacks.get(l.value) || 0
  9794. this._stacks.set(l.value, M - 1)
  9795. }
  9796. }
  9797. }
  9798. class f {
  9799. static create() {
  9800. var l
  9801. return new f((l = new Error().stack) !== null && l !== void 0 ? l : '')
  9802. }
  9803. constructor(l) {
  9804. this.value = l
  9805. }
  9806. print() {
  9807. console.warn(
  9808. this.value
  9809. .split(
  9810. `
  9811. `
  9812. )
  9813. .slice(2).join(`
  9814. `)
  9815. )
  9816. }
  9817. }
  9818. class v {
  9819. constructor(l, m, N) {
  9820. ;(this.callback = l),
  9821. (this.callbackThis = m),
  9822. (this.stack = N),
  9823. (this.subscription = new i.SafeDisposable())
  9824. }
  9825. invoke(l) {
  9826. this.callback.call(this.callbackThis, l)
  9827. }
  9828. }
  9829. class g {
  9830. constructor(l) {
  9831. var m, N, A, M, k
  9832. ;(this._disposed = !1),
  9833. (this._options = l),
  9834. (this._leakageMon =
  9835. e > 0 ||
  9836. ((m = this._options) === null || m === void 0 ? void 0 : m.leakWarningThreshold)
  9837. ? new b(
  9838. (A =
  9839. (N = this._options) === null || N === void 0
  9840. ? void 0
  9841. : N.leakWarningThreshold) !== null && A !== void 0
  9842. ? A
  9843. : e
  9844. )
  9845. : void 0),
  9846. (this._perfMon =
  9847. !((M = this._options) === null || M === void 0) && M._profName
  9848. ? new w(this._options._profName)
  9849. : void 0),
  9850. (this._deliveryQueue =
  9851. (k = this._options) === null || k === void 0 ? void 0 : k.deliveryQueue)
  9852. }
  9853. dispose() {
  9854. var l, m, N, A
  9855. if (!this._disposed) {
  9856. if (((this._disposed = !0), this._listeners)) {
  9857. if (L) {
  9858. const M = Array.from(this._listeners)
  9859. queueMicrotask(() => {
  9860. var k
  9861. for (const q of M)
  9862. q.subscription.isset() &&
  9863. (q.subscription.unset(), (k = q.stack) === null || k === void 0 || k.print())
  9864. })
  9865. }
  9866. this._listeners.clear()
  9867. }
  9868. ;(l = this._deliveryQueue) === null || l === void 0 || l.clear(this),
  9869. (N =
  9870. (m = this._options) === null || m === void 0
  9871. ? void 0
  9872. : m.onDidRemoveLastListener) === null ||
  9873. N === void 0 ||
  9874. N.call(m),
  9875. (A = this._leakageMon) === null || A === void 0 || A.dispose()
  9876. }
  9877. }
  9878. get event() {
  9879. return (
  9880. this._event ||
  9881. (this._event = (l, m, N) => {
  9882. var A, M, k
  9883. if (
  9884. (this._listeners || (this._listeners = new s.LinkedList()),
  9885. this._leakageMon && this._listeners.size > this._leakageMon.threshold * 3)
  9886. )
  9887. return (
  9888. console.warn(
  9889. `[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`
  9890. ),
  9891. i.Disposable.None
  9892. )
  9893. const q = this._listeners.isEmpty()
  9894. q &&
  9895. ((A = this._options) === null || A === void 0
  9896. ? void 0
  9897. : A.onWillAddFirstListener) &&
  9898. this._options.onWillAddFirstListener(this)
  9899. let I, B
  9900. this._leakageMon &&
  9901. this._listeners.size >= Math.ceil(this._leakageMon.threshold * 0.2) &&
  9902. ((B = f.create()), (I = this._leakageMon.check(B, this._listeners.size + 1))),
  9903. L && (B = B ?? f.create())
  9904. const H = new v(l, m, B),
  9905. F = this._listeners.push(H)
  9906. q &&
  9907. ((M = this._options) === null || M === void 0
  9908. ? void 0
  9909. : M.onDidAddFirstListener) &&
  9910. this._options.onDidAddFirstListener(this),
  9911. !((k = this._options) === null || k === void 0) &&
  9912. k.onDidAddListener &&
  9913. this._options.onDidAddListener(this, l, m)
  9914. const U = H.subscription.set(() => {
  9915. var T, W
  9916. I?.(),
  9917. this._disposed ||
  9918. ((W =
  9919. (T = this._options) === null || T === void 0
  9920. ? void 0
  9921. : T.onWillRemoveListener) === null ||
  9922. W === void 0 ||
  9923. W.call(T, this),
  9924. F(),
  9925. this._options &&
  9926. this._options.onDidRemoveLastListener &&
  9927. ((this._listeners && !this._listeners.isEmpty()) ||
  9928. this._options.onDidRemoveLastListener(this)))
  9929. })
  9930. return N instanceof i.DisposableStore ? N.add(U) : Array.isArray(N) && N.push(U), U
  9931. }),
  9932. this._event
  9933. )
  9934. }
  9935. fire(l) {
  9936. var m, N, A
  9937. if (this._listeners) {
  9938. this._deliveryQueue ||
  9939. (this._deliveryQueue = new E(
  9940. (m = this._options) === null || m === void 0 ? void 0 : m.onListenerError
  9941. ))
  9942. for (const M of this._listeners) this._deliveryQueue.push(this, M, l)
  9943. ;(N = this._perfMon) === null || N === void 0 || N.start(this._deliveryQueue.size),
  9944. this._deliveryQueue.deliver(),
  9945. (A = this._perfMon) === null || A === void 0 || A.stop()
  9946. }
  9947. }
  9948. hasListeners() {
  9949. return this._listeners ? !this._listeners.isEmpty() : !1
  9950. }
  9951. }
  9952. n.Emitter = g
  9953. class S {
  9954. constructor(l = R.onUnexpectedError) {
  9955. ;(this._onListenerError = l), (this._queue = new s.LinkedList())
  9956. }
  9957. get size() {
  9958. return this._queue.size
  9959. }
  9960. push(l, m, N) {
  9961. this._queue.push(new y(l, m, N))
  9962. }
  9963. clear(l) {
  9964. const m = new s.LinkedList()
  9965. for (const N of this._queue) N.emitter !== l && m.push(N)
  9966. this._queue = m
  9967. }
  9968. deliver() {
  9969. for (; this._queue.size > 0; ) {
  9970. const l = this._queue.shift()
  9971. try {
  9972. l.listener.invoke(l.event)
  9973. } catch (m) {
  9974. this._onListenerError(m)
  9975. }
  9976. }
  9977. }
  9978. }
  9979. n.EventDeliveryQueue = S
  9980. class E extends S {
  9981. clear(l) {
  9982. this._queue.clear()
  9983. }
  9984. }
  9985. class y {
  9986. constructor(l, m, N) {
  9987. ;(this.emitter = l), (this.listener = m), (this.event = N)
  9988. }
  9989. }
  9990. class _ extends g {
  9991. constructor(l) {
  9992. super(l),
  9993. (this._isPaused = 0),
  9994. (this._eventQueue = new s.LinkedList()),
  9995. (this._mergeFn = l?.merge)
  9996. }
  9997. pause() {
  9998. this._isPaused++
  9999. }
  10000. resume() {
  10001. if (this._isPaused !== 0 && --this._isPaused === 0)
  10002. if (this._mergeFn) {
  10003. if (this._eventQueue.size > 0) {
  10004. const l = Array.from(this._eventQueue)
  10005. this._eventQueue.clear(), super.fire(this._mergeFn(l))
  10006. }
  10007. } else
  10008. for (; !this._isPaused && this._eventQueue.size !== 0; )
  10009. super.fire(this._eventQueue.shift())
  10010. }
  10011. fire(l) {
  10012. this._listeners && (this._isPaused !== 0 ? this._eventQueue.push(l) : super.fire(l))
  10013. }
  10014. }
  10015. n.PauseableEmitter = _
  10016. class d extends _ {
  10017. constructor(l) {
  10018. var m
  10019. super(l), (this._delay = (m = l.delay) !== null && m !== void 0 ? m : 100)
  10020. }
  10021. fire(l) {
  10022. this._handle ||
  10023. (this.pause(),
  10024. (this._handle = setTimeout(() => {
  10025. ;(this._handle = void 0), this.resume()
  10026. }, this._delay))),
  10027. super.fire(l)
  10028. }
  10029. }
  10030. n.DebounceEmitter = d
  10031. class C extends g {
  10032. constructor(l) {
  10033. super(l), (this._queuedEvents = []), (this._mergeFn = l?.merge)
  10034. }
  10035. fire(l) {
  10036. !this.hasListeners() ||
  10037. (this._queuedEvents.push(l),
  10038. this._queuedEvents.length === 1 &&
  10039. queueMicrotask(() => {
  10040. this._mergeFn
  10041. ? super.fire(this._mergeFn(this._queuedEvents))
  10042. : this._queuedEvents.forEach((m) => super.fire(m)),
  10043. (this._queuedEvents = [])
  10044. }))
  10045. }
  10046. }
  10047. n.MicrotaskEmitter = C
  10048. class r {
  10049. constructor() {
  10050. ;(this.hasListeners = !1),
  10051. (this.events = []),
  10052. (this.emitter = new g({
  10053. onWillAddFirstListener: () => this.onFirstListenerAdd(),
  10054. onDidRemoveLastListener: () => this.onLastListenerRemove(),
  10055. }))
  10056. }
  10057. get event() {
  10058. return this.emitter.event
  10059. }
  10060. add(l) {
  10061. const m = { event: l, listener: null }
  10062. this.events.push(m), this.hasListeners && this.hook(m)
  10063. const N = () => {
  10064. this.hasListeners && this.unhook(m)
  10065. const A = this.events.indexOf(m)
  10066. this.events.splice(A, 1)
  10067. }
  10068. return (0, i.toDisposable)((0, D.once)(N))
  10069. }
  10070. onFirstListenerAdd() {
  10071. ;(this.hasListeners = !0), this.events.forEach((l) => this.hook(l))
  10072. }
  10073. onLastListenerRemove() {
  10074. ;(this.hasListeners = !1), this.events.forEach((l) => this.unhook(l))
  10075. }
  10076. hook(l) {
  10077. l.listener = l.event((m) => this.emitter.fire(m))
  10078. }
  10079. unhook(l) {
  10080. l.listener && l.listener.dispose(), (l.listener = null)
  10081. }
  10082. dispose() {
  10083. this.emitter.dispose()
  10084. }
  10085. }
  10086. n.EventMultiplexer = r
  10087. class u {
  10088. constructor() {
  10089. this.buffers = []
  10090. }
  10091. wrapEvent(l) {
  10092. return (m, N, A) =>
  10093. l(
  10094. (M) => {
  10095. const k = this.buffers[this.buffers.length - 1]
  10096. k ? k.push(() => m.call(N, M)) : m.call(N, M)
  10097. },
  10098. void 0,
  10099. A
  10100. )
  10101. }
  10102. bufferEvents(l) {
  10103. const m = []
  10104. this.buffers.push(m)
  10105. const N = l()
  10106. return this.buffers.pop(), m.forEach((A) => A()), N
  10107. }
  10108. }
  10109. n.EventBufferer = u
  10110. class o {
  10111. constructor() {
  10112. ;(this.listening = !1),
  10113. (this.inputEvent = a.None),
  10114. (this.inputEventListener = i.Disposable.None),
  10115. (this.emitter = new g({
  10116. onDidAddFirstListener: () => {
  10117. ;(this.listening = !0),
  10118. (this.inputEventListener = this.inputEvent(this.emitter.fire, this.emitter))
  10119. },
  10120. onDidRemoveLastListener: () => {
  10121. ;(this.listening = !1), this.inputEventListener.dispose()
  10122. },
  10123. })),
  10124. (this.event = this.emitter.event)
  10125. }
  10126. set input(l) {
  10127. ;(this.inputEvent = l),
  10128. this.listening &&
  10129. (this.inputEventListener.dispose(),
  10130. (this.inputEventListener = l(this.emitter.fire, this.emitter)))
  10131. }
  10132. dispose() {
  10133. this.inputEventListener.dispose(), this.emitter.dispose()
  10134. }
  10135. }
  10136. n.Relay = o
  10137. }),
  10138. Q(Y[53], X([0, 1, 9]), function (x, n, R) {
  10139. 'use strict'
  10140. Object.defineProperty(n, '__esModule', { value: !0 }),
  10141. (n.CancellationTokenSource = n.CancellationToken = void 0)
  10142. const D = Object.freeze(function (L, h) {
  10143. const a = setTimeout(L.bind(h), 0)
  10144. return {
  10145. dispose() {
  10146. clearTimeout(a)
  10147. },
  10148. }
  10149. })
  10150. var i
  10151. ;(function (L) {
  10152. function h(a) {
  10153. return a === L.None || a === L.Cancelled || a instanceof s
  10154. ? !0
  10155. : !a || typeof a != 'object'
  10156. ? !1
  10157. : typeof a.isCancellationRequested == 'boolean' &&
  10158. typeof a.onCancellationRequested == 'function'
  10159. }
  10160. ;(L.isCancellationToken = h),
  10161. (L.None = Object.freeze({
  10162. isCancellationRequested: !1,
  10163. onCancellationRequested: R.Event.None,
  10164. })),
  10165. (L.Cancelled = Object.freeze({ isCancellationRequested: !0, onCancellationRequested: D }))
  10166. })((i = n.CancellationToken || (n.CancellationToken = {})))
  10167. class s {
  10168. constructor() {
  10169. ;(this._isCancelled = !1), (this._emitter = null)
  10170. }
  10171. cancel() {
  10172. this._isCancelled ||
  10173. ((this._isCancelled = !0),
  10174. this._emitter && (this._emitter.fire(void 0), this.dispose()))
  10175. }
  10176. get isCancellationRequested() {
  10177. return this._isCancelled
  10178. }
  10179. get onCancellationRequested() {
  10180. return this._isCancelled
  10181. ? D
  10182. : (this._emitter || (this._emitter = new R.Emitter()), this._emitter.event)
  10183. }
  10184. dispose() {
  10185. this._emitter && (this._emitter.dispose(), (this._emitter = null))
  10186. }
  10187. }
  10188. class p {
  10189. constructor(h) {
  10190. ;(this._token = void 0),
  10191. (this._parentListener = void 0),
  10192. (this._parentListener = h && h.onCancellationRequested(this.cancel, this))
  10193. }
  10194. get token() {
  10195. return this._token || (this._token = new s()), this._token
  10196. }
  10197. cancel() {
  10198. this._token
  10199. ? this._token instanceof s && this._token.cancel()
  10200. : (this._token = i.Cancelled)
  10201. }
  10202. dispose(h = !1) {
  10203. var a
  10204. h && this.cancel(),
  10205. (a = this._parentListener) === null || a === void 0 || a.dispose(),
  10206. this._token ? this._token instanceof s && this._token.dispose() : (this._token = i.None)
  10207. }
  10208. }
  10209. n.CancellationTokenSource = p
  10210. }),
  10211. Q(Y[13], X([0, 1, 52, 8]), function (x, n, R, D) {
  10212. 'use strict'
  10213. Object.defineProperty(n, '__esModule', { value: !0 }), (n.uriToFsPath = n.URI = void 0)
  10214. const i = /^\w[\w\d+.-]*$/,
  10215. s = /^\//,
  10216. p = /^\/\//
  10217. function L(o, c) {
  10218. if (!o.scheme && c)
  10219. throw new Error(
  10220. `[UriError]: Scheme is missing: {scheme: "", authority: "${o.authority}", path: "${o.path}", query: "${o.query}", fragment: "${o.fragment}"}`
  10221. )
  10222. if (o.scheme && !i.test(o.scheme))
  10223. throw new Error('[UriError]: Scheme contains illegal characters.')
  10224. if (o.path) {
  10225. if (o.authority) {
  10226. if (!s.test(o.path))
  10227. throw new Error(
  10228. '[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character'
  10229. )
  10230. } else if (p.test(o.path))
  10231. throw new Error(
  10232. '[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'
  10233. )
  10234. }
  10235. }
  10236. function h(o, c) {
  10237. return !o && !c ? 'file' : o
  10238. }
  10239. function a(o, c) {
  10240. switch (o) {
  10241. case 'https':
  10242. case 'http':
  10243. case 'file':
  10244. c ? c[0] !== e && (c = e + c) : (c = e)
  10245. break
  10246. }
  10247. return c
  10248. }
  10249. const w = '',
  10250. e = '/',
  10251. b = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/
  10252. class f {
  10253. static isUri(c) {
  10254. return c instanceof f
  10255. ? !0
  10256. : c
  10257. ? typeof c.authority == 'string' &&
  10258. typeof c.fragment == 'string' &&
  10259. typeof c.path == 'string' &&
  10260. typeof c.query == 'string' &&
  10261. typeof c.scheme == 'string' &&
  10262. typeof c.fsPath == 'string' &&
  10263. typeof c.with == 'function' &&
  10264. typeof c.toString == 'function'
  10265. : !1
  10266. }
  10267. constructor(c, l, m, N, A, M = !1) {
  10268. typeof c == 'object'
  10269. ? ((this.scheme = c.scheme || w),
  10270. (this.authority = c.authority || w),
  10271. (this.path = c.path || w),
  10272. (this.query = c.query || w),
  10273. (this.fragment = c.fragment || w))
  10274. : ((this.scheme = h(c, M)),
  10275. (this.authority = l || w),
  10276. (this.path = a(this.scheme, m || w)),
  10277. (this.query = N || w),
  10278. (this.fragment = A || w),
  10279. L(this, M))
  10280. }
  10281. get fsPath() {
  10282. return _(this, !1)
  10283. }
  10284. with(c) {
  10285. if (!c) return this
  10286. let { scheme: l, authority: m, path: N, query: A, fragment: M } = c
  10287. return (
  10288. l === void 0 ? (l = this.scheme) : l === null && (l = w),
  10289. m === void 0 ? (m = this.authority) : m === null && (m = w),
  10290. N === void 0 ? (N = this.path) : N === null && (N = w),
  10291. A === void 0 ? (A = this.query) : A === null && (A = w),
  10292. M === void 0 ? (M = this.fragment) : M === null && (M = w),
  10293. l === this.scheme &&
  10294. m === this.authority &&
  10295. N === this.path &&
  10296. A === this.query &&
  10297. M === this.fragment
  10298. ? this
  10299. : new g(l, m, N, A, M)
  10300. )
  10301. }
  10302. static parse(c, l = !1) {
  10303. const m = b.exec(c)
  10304. return m
  10305. ? new g(m[2] || w, u(m[4] || w), u(m[5] || w), u(m[7] || w), u(m[9] || w), l)
  10306. : new g(w, w, w, w, w)
  10307. }
  10308. static file(c) {
  10309. let l = w
  10310. if ((D.isWindows && (c = c.replace(/\\/g, e)), c[0] === e && c[1] === e)) {
  10311. const m = c.indexOf(e, 2)
  10312. m === -1
  10313. ? ((l = c.substring(2)), (c = e))
  10314. : ((l = c.substring(2, m)), (c = c.substring(m) || e))
  10315. }
  10316. return new g('file', l, c, w, w)
  10317. }
  10318. static from(c) {
  10319. const l = new g(c.scheme, c.authority, c.path, c.query, c.fragment)
  10320. return L(l, !0), l
  10321. }
  10322. static joinPath(c, ...l) {
  10323. if (!c.path) throw new Error('[UriError]: cannot call joinPath on URI without path')
  10324. let m
  10325. return (
  10326. D.isWindows && c.scheme === 'file'
  10327. ? (m = f.file(R.win32.join(_(c, !0), ...l)).path)
  10328. : (m = R.posix.join(c.path, ...l)),
  10329. c.with({ path: m })
  10330. )
  10331. }
  10332. toString(c = !1) {
  10333. return d(this, c)
  10334. }
  10335. toJSON() {
  10336. return this
  10337. }
  10338. static revive(c) {
  10339. if (c) {
  10340. if (c instanceof f) return c
  10341. {
  10342. const l = new g(c)
  10343. return (l._formatted = c.external), (l._fsPath = c._sep === v ? c.fsPath : null), l
  10344. }
  10345. } else return c
  10346. }
  10347. }
  10348. n.URI = f
  10349. const v = D.isWindows ? 1 : void 0
  10350. class g extends f {
  10351. constructor() {
  10352. super(...arguments), (this._formatted = null), (this._fsPath = null)
  10353. }
  10354. get fsPath() {
  10355. return this._fsPath || (this._fsPath = _(this, !1)), this._fsPath
  10356. }
  10357. toString(c = !1) {
  10358. return c
  10359. ? d(this, !0)
  10360. : (this._formatted || (this._formatted = d(this, !1)), this._formatted)
  10361. }
  10362. toJSON() {
  10363. const c = { $mid: 1 }
  10364. return (
  10365. this._fsPath && ((c.fsPath = this._fsPath), (c._sep = v)),
  10366. this._formatted && (c.external = this._formatted),
  10367. this.path && (c.path = this.path),
  10368. this.scheme && (c.scheme = this.scheme),
  10369. this.authority && (c.authority = this.authority),
  10370. this.query && (c.query = this.query),
  10371. this.fragment && (c.fragment = this.fragment),
  10372. c
  10373. )
  10374. }
  10375. }
  10376. const S = {
  10377. [58]: '%3A',
  10378. [47]: '%2F',
  10379. [63]: '%3F',
  10380. [35]: '%23',
  10381. [91]: '%5B',
  10382. [93]: '%5D',
  10383. [64]: '%40',
  10384. [33]: '%21',
  10385. [36]: '%24',
  10386. [38]: '%26',
  10387. [39]: '%27',
  10388. [40]: '%28',
  10389. [41]: '%29',
  10390. [42]: '%2A',
  10391. [43]: '%2B',
  10392. [44]: '%2C',
  10393. [59]: '%3B',
  10394. [61]: '%3D',
  10395. [32]: '%20',
  10396. }
  10397. function E(o, c, l) {
  10398. let m,
  10399. N = -1
  10400. for (let A = 0; A < o.length; A++) {
  10401. const M = o.charCodeAt(A)
  10402. if (
  10403. (M >= 97 && M <= 122) ||
  10404. (M >= 65 && M <= 90) ||
  10405. (M >= 48 && M <= 57) ||
  10406. M === 45 ||
  10407. M === 46 ||
  10408. M === 95 ||
  10409. M === 126 ||
  10410. (c && M === 47) ||
  10411. (l && M === 91) ||
  10412. (l && M === 93) ||
  10413. (l && M === 58)
  10414. )
  10415. N !== -1 && ((m += encodeURIComponent(o.substring(N, A))), (N = -1)),
  10416. m !== void 0 && (m += o.charAt(A))
  10417. else {
  10418. m === void 0 && (m = o.substr(0, A))
  10419. const k = S[M]
  10420. k !== void 0
  10421. ? (N !== -1 && ((m += encodeURIComponent(o.substring(N, A))), (N = -1)), (m += k))
  10422. : N === -1 && (N = A)
  10423. }
  10424. }
  10425. return N !== -1 && (m += encodeURIComponent(o.substring(N))), m !== void 0 ? m : o
  10426. }
  10427. function y(o) {
  10428. let c
  10429. for (let l = 0; l < o.length; l++) {
  10430. const m = o.charCodeAt(l)
  10431. m === 35 || m === 63
  10432. ? (c === void 0 && (c = o.substr(0, l)), (c += S[m]))
  10433. : c !== void 0 && (c += o[l])
  10434. }
  10435. return c !== void 0 ? c : o
  10436. }
  10437. function _(o, c) {
  10438. let l
  10439. return (
  10440. o.authority && o.path.length > 1 && o.scheme === 'file'
  10441. ? (l = `//${o.authority}${o.path}`)
  10442. : o.path.charCodeAt(0) === 47 &&
  10443. ((o.path.charCodeAt(1) >= 65 && o.path.charCodeAt(1) <= 90) ||
  10444. (o.path.charCodeAt(1) >= 97 && o.path.charCodeAt(1) <= 122)) &&
  10445. o.path.charCodeAt(2) === 58
  10446. ? c
  10447. ? (l = o.path.substr(1))
  10448. : (l = o.path[1].toLowerCase() + o.path.substr(2))
  10449. : (l = o.path),
  10450. D.isWindows && (l = l.replace(/\//g, '\\')),
  10451. l
  10452. )
  10453. }
  10454. n.uriToFsPath = _
  10455. function d(o, c) {
  10456. const l = c ? y : E
  10457. let m = '',
  10458. { scheme: N, authority: A, path: M, query: k, fragment: q } = o
  10459. if ((N && ((m += N), (m += ':')), (A || N === 'file') && ((m += e), (m += e)), A)) {
  10460. let I = A.indexOf('@')
  10461. if (I !== -1) {
  10462. const B = A.substr(0, I)
  10463. ;(A = A.substr(I + 1)),
  10464. (I = B.lastIndexOf(':')),
  10465. I === -1
  10466. ? (m += l(B, !1, !1))
  10467. : ((m += l(B.substr(0, I), !1, !1)), (m += ':'), (m += l(B.substr(I + 1), !1, !0))),
  10468. (m += '@')
  10469. }
  10470. ;(A = A.toLowerCase()),
  10471. (I = A.lastIndexOf(':')),
  10472. I === -1 ? (m += l(A, !1, !0)) : ((m += l(A.substr(0, I), !1, !0)), (m += A.substr(I)))
  10473. }
  10474. if (M) {
  10475. if (M.length >= 3 && M.charCodeAt(0) === 47 && M.charCodeAt(2) === 58) {
  10476. const I = M.charCodeAt(1)
  10477. I >= 65 && I <= 90 && (M = `/${String.fromCharCode(I + 32)}:${M.substr(3)}`)
  10478. } else if (M.length >= 2 && M.charCodeAt(1) === 58) {
  10479. const I = M.charCodeAt(0)
  10480. I >= 65 && I <= 90 && (M = `${String.fromCharCode(I + 32)}:${M.substr(2)}`)
  10481. }
  10482. m += l(M, !0, !1)
  10483. }
  10484. return (
  10485. k && ((m += '?'), (m += l(k, !1, !1))), q && ((m += '#'), (m += c ? q : E(q, !1, !1))), m
  10486. )
  10487. }
  10488. function C(o) {
  10489. try {
  10490. return decodeURIComponent(o)
  10491. } catch {
  10492. return o.length > 3 ? o.substr(0, 3) + C(o.substr(3)) : o
  10493. }
  10494. }
  10495. const r = /(%[0-9A-Za-z][0-9A-Za-z])+/g
  10496. function u(o) {
  10497. return o.match(r) ? o.replace(r, (c) => C(c)) : o
  10498. }
  10499. }),
  10500. Q(Y[58], X([0, 1, 4, 9, 11, 12, 8, 5]), function (x, n, R, D, i, s, p, L) {
  10501. 'use strict'
  10502. Object.defineProperty(n, '__esModule', { value: !0 }),
  10503. (n.create =
  10504. n.SimpleWorkerServer =
  10505. n.SimpleWorkerClient =
  10506. n.logOnceWebWorkerWarning =
  10507. void 0)
  10508. const h = '$initialize'
  10509. let a = !1
  10510. function w(u) {
  10511. !p.isWeb ||
  10512. (a ||
  10513. ((a = !0),
  10514. console.warn(
  10515. 'Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq'
  10516. )),
  10517. console.warn(u.message))
  10518. }
  10519. n.logOnceWebWorkerWarning = w
  10520. class e {
  10521. constructor(o, c, l, m) {
  10522. ;(this.vsWorker = o), (this.req = c), (this.method = l), (this.args = m), (this.type = 0)
  10523. }
  10524. }
  10525. class b {
  10526. constructor(o, c, l, m) {
  10527. ;(this.vsWorker = o), (this.seq = c), (this.res = l), (this.err = m), (this.type = 1)
  10528. }
  10529. }
  10530. class f {
  10531. constructor(o, c, l, m) {
  10532. ;(this.vsWorker = o),
  10533. (this.req = c),
  10534. (this.eventName = l),
  10535. (this.arg = m),
  10536. (this.type = 2)
  10537. }
  10538. }
  10539. class v {
  10540. constructor(o, c, l) {
  10541. ;(this.vsWorker = o), (this.req = c), (this.event = l), (this.type = 3)
  10542. }
  10543. }
  10544. class g {
  10545. constructor(o, c) {
  10546. ;(this.vsWorker = o), (this.req = c), (this.type = 4)
  10547. }
  10548. }
  10549. class S {
  10550. constructor(o) {
  10551. ;(this._workerId = -1),
  10552. (this._handler = o),
  10553. (this._lastSentReq = 0),
  10554. (this._pendingReplies = Object.create(null)),
  10555. (this._pendingEmitters = new Map()),
  10556. (this._pendingEvents = new Map())
  10557. }
  10558. setWorkerId(o) {
  10559. this._workerId = o
  10560. }
  10561. sendMessage(o, c) {
  10562. const l = String(++this._lastSentReq)
  10563. return new Promise((m, N) => {
  10564. ;(this._pendingReplies[l] = { resolve: m, reject: N }),
  10565. this._send(new e(this._workerId, l, o, c))
  10566. })
  10567. }
  10568. listen(o, c) {
  10569. let l = null
  10570. const m = new D.Emitter({
  10571. onWillAddFirstListener: () => {
  10572. ;(l = String(++this._lastSentReq)),
  10573. this._pendingEmitters.set(l, m),
  10574. this._send(new f(this._workerId, l, o, c))
  10575. },
  10576. onDidRemoveLastListener: () => {
  10577. this._pendingEmitters.delete(l), this._send(new g(this._workerId, l)), (l = null)
  10578. },
  10579. })
  10580. return m.event
  10581. }
  10582. handleMessage(o) {
  10583. !o ||
  10584. !o.vsWorker ||
  10585. (this._workerId !== -1 && o.vsWorker !== this._workerId) ||
  10586. this._handleMessage(o)
  10587. }
  10588. _handleMessage(o) {
  10589. switch (o.type) {
  10590. case 1:
  10591. return this._handleReplyMessage(o)
  10592. case 0:
  10593. return this._handleRequestMessage(o)
  10594. case 2:
  10595. return this._handleSubscribeEventMessage(o)
  10596. case 3:
  10597. return this._handleEventMessage(o)
  10598. case 4:
  10599. return this._handleUnsubscribeEventMessage(o)
  10600. }
  10601. }
  10602. _handleReplyMessage(o) {
  10603. if (!this._pendingReplies[o.seq]) {
  10604. console.warn('Got reply to unknown seq')
  10605. return
  10606. }
  10607. const c = this._pendingReplies[o.seq]
  10608. if ((delete this._pendingReplies[o.seq], o.err)) {
  10609. let l = o.err
  10610. o.err.$isError &&
  10611. ((l = new Error()),
  10612. (l.name = o.err.name),
  10613. (l.message = o.err.message),
  10614. (l.stack = o.err.stack)),
  10615. c.reject(l)
  10616. return
  10617. }
  10618. c.resolve(o.res)
  10619. }
  10620. _handleRequestMessage(o) {
  10621. const c = o.req
  10622. this._handler.handleMessage(o.method, o.args).then(
  10623. (m) => {
  10624. this._send(new b(this._workerId, c, m, void 0))
  10625. },
  10626. (m) => {
  10627. m.detail instanceof Error &&
  10628. (m.detail = (0, R.transformErrorForSerialization)(m.detail)),
  10629. this._send(
  10630. new b(this._workerId, c, void 0, (0, R.transformErrorForSerialization)(m))
  10631. )
  10632. }
  10633. )
  10634. }
  10635. _handleSubscribeEventMessage(o) {
  10636. const c = o.req,
  10637. l = this._handler.handleEvent(
  10638. o.eventName,
  10639. o.arg
  10640. )((m) => {
  10641. this._send(new v(this._workerId, c, m))
  10642. })
  10643. this._pendingEvents.set(c, l)
  10644. }
  10645. _handleEventMessage(o) {
  10646. if (!this._pendingEmitters.has(o.req)) {
  10647. console.warn('Got event for unknown req')
  10648. return
  10649. }
  10650. this._pendingEmitters.get(o.req).fire(o.event)
  10651. }
  10652. _handleUnsubscribeEventMessage(o) {
  10653. if (!this._pendingEvents.has(o.req)) {
  10654. console.warn('Got unsubscribe for unknown req')
  10655. return
  10656. }
  10657. this._pendingEvents.get(o.req).dispose(), this._pendingEvents.delete(o.req)
  10658. }
  10659. _send(o) {
  10660. const c = []
  10661. if (o.type === 0)
  10662. for (let l = 0; l < o.args.length; l++)
  10663. o.args[l] instanceof ArrayBuffer && c.push(o.args[l])
  10664. else o.type === 1 && o.res instanceof ArrayBuffer && c.push(o.res)
  10665. this._handler.sendMessage(o, c)
  10666. }
  10667. }
  10668. class E extends i.Disposable {
  10669. constructor(o, c, l) {
  10670. super()
  10671. let m = null
  10672. ;(this._worker = this._register(
  10673. o.create(
  10674. 'vs/base/common/worker/simpleWorker',
  10675. (I) => {
  10676. this._protocol.handleMessage(I)
  10677. },
  10678. (I) => {
  10679. m?.(I)
  10680. }
  10681. )
  10682. )),
  10683. (this._protocol = new S({
  10684. sendMessage: (I, B) => {
  10685. this._worker.postMessage(I, B)
  10686. },
  10687. handleMessage: (I, B) => {
  10688. if (typeof l[I] != 'function')
  10689. return Promise.reject(new Error('Missing method ' + I + ' on main thread host.'))
  10690. try {
  10691. return Promise.resolve(l[I].apply(l, B))
  10692. } catch (H) {
  10693. return Promise.reject(H)
  10694. }
  10695. },
  10696. handleEvent: (I, B) => {
  10697. if (_(I)) {
  10698. const H = l[I].call(l, B)
  10699. if (typeof H != 'function')
  10700. throw new Error(`Missing dynamic event ${I} on main thread host.`)
  10701. return H
  10702. }
  10703. if (y(I)) {
  10704. const H = l[I]
  10705. if (typeof H != 'function')
  10706. throw new Error(`Missing event ${I} on main thread host.`)
  10707. return H
  10708. }
  10709. throw new Error(`Malformed event name ${I}`)
  10710. },
  10711. })),
  10712. this._protocol.setWorkerId(this._worker.getId())
  10713. let N = null
  10714. const A = globalThis.require
  10715. typeof A < 'u' && typeof A.getConfig == 'function'
  10716. ? (N = A.getConfig())
  10717. : typeof globalThis.requirejs < 'u' && (N = globalThis.requirejs.s.contexts._.config)
  10718. const M = (0, s.getAllMethodNames)(l)
  10719. this._onModuleLoaded = this._protocol.sendMessage(h, [
  10720. this._worker.getId(),
  10721. JSON.parse(JSON.stringify(N)),
  10722. c,
  10723. M,
  10724. ])
  10725. const k = (I, B) => this._request(I, B),
  10726. q = (I, B) => this._protocol.listen(I, B)
  10727. this._lazyProxy = new Promise((I, B) => {
  10728. ;(m = B),
  10729. this._onModuleLoaded.then(
  10730. (H) => {
  10731. I(d(H, k, q))
  10732. },
  10733. (H) => {
  10734. B(H), this._onError('Worker failed to load ' + c, H)
  10735. }
  10736. )
  10737. })
  10738. }
  10739. getProxyObject() {
  10740. return this._lazyProxy
  10741. }
  10742. _request(o, c) {
  10743. return new Promise((l, m) => {
  10744. this._onModuleLoaded.then(() => {
  10745. this._protocol.sendMessage(o, c).then(l, m)
  10746. }, m)
  10747. })
  10748. }
  10749. _onError(o, c) {
  10750. console.error(o), console.info(c)
  10751. }
  10752. }
  10753. n.SimpleWorkerClient = E
  10754. function y(u) {
  10755. return u[0] === 'o' && u[1] === 'n' && L.isUpperAsciiLetter(u.charCodeAt(2))
  10756. }
  10757. function _(u) {
  10758. return /^onDynamic/.test(u) && L.isUpperAsciiLetter(u.charCodeAt(9))
  10759. }
  10760. function d(u, o, c) {
  10761. const l = (A) =>
  10762. function () {
  10763. const M = Array.prototype.slice.call(arguments, 0)
  10764. return o(A, M)
  10765. },
  10766. m = (A) =>
  10767. function (M) {
  10768. return c(A, M)
  10769. },
  10770. N = {}
  10771. for (const A of u) {
  10772. if (_(A)) {
  10773. N[A] = m(A)
  10774. continue
  10775. }
  10776. if (y(A)) {
  10777. N[A] = c(A, void 0)
  10778. continue
  10779. }
  10780. N[A] = l(A)
  10781. }
  10782. return N
  10783. }
  10784. class C {
  10785. constructor(o, c) {
  10786. ;(this._requestHandlerFactory = c),
  10787. (this._requestHandler = null),
  10788. (this._protocol = new S({
  10789. sendMessage: (l, m) => {
  10790. o(l, m)
  10791. },
  10792. handleMessage: (l, m) => this._handleMessage(l, m),
  10793. handleEvent: (l, m) => this._handleEvent(l, m),
  10794. }))
  10795. }
  10796. onmessage(o) {
  10797. this._protocol.handleMessage(o)
  10798. }
  10799. _handleMessage(o, c) {
  10800. if (o === h) return this.initialize(c[0], c[1], c[2], c[3])
  10801. if (!this._requestHandler || typeof this._requestHandler[o] != 'function')
  10802. return Promise.reject(new Error('Missing requestHandler or method: ' + o))
  10803. try {
  10804. return Promise.resolve(this._requestHandler[o].apply(this._requestHandler, c))
  10805. } catch (l) {
  10806. return Promise.reject(l)
  10807. }
  10808. }
  10809. _handleEvent(o, c) {
  10810. if (!this._requestHandler) throw new Error('Missing requestHandler')
  10811. if (_(o)) {
  10812. const l = this._requestHandler[o].call(this._requestHandler, c)
  10813. if (typeof l != 'function')
  10814. throw new Error(`Missing dynamic event ${o} on request handler.`)
  10815. return l
  10816. }
  10817. if (y(o)) {
  10818. const l = this._requestHandler[o]
  10819. if (typeof l != 'function') throw new Error(`Missing event ${o} on request handler.`)
  10820. return l
  10821. }
  10822. throw new Error(`Malformed event name ${o}`)
  10823. }
  10824. initialize(o, c, l, m) {
  10825. this._protocol.setWorkerId(o)
  10826. const M = d(
  10827. m,
  10828. (k, q) => this._protocol.sendMessage(k, q),
  10829. (k, q) => this._protocol.listen(k, q)
  10830. )
  10831. return this._requestHandlerFactory
  10832. ? ((this._requestHandler = this._requestHandlerFactory(M)),
  10833. Promise.resolve((0, s.getAllMethodNames)(this._requestHandler)))
  10834. : (c &&
  10835. (typeof c.baseUrl < 'u' && delete c.baseUrl,
  10836. typeof c.paths < 'u' && typeof c.paths.vs < 'u' && delete c.paths.vs,
  10837. typeof c.trustedTypesPolicy !== void 0 && delete c.trustedTypesPolicy,
  10838. (c.catchError = !0),
  10839. globalThis.require.config(c)),
  10840. new Promise((k, q) => {
  10841. ;(globalThis.require || x)(
  10842. [l],
  10843. (B) => {
  10844. if (((this._requestHandler = B.create(M)), !this._requestHandler)) {
  10845. q(new Error('No RequestHandler!'))
  10846. return
  10847. }
  10848. k((0, s.getAllMethodNames)(this._requestHandler))
  10849. },
  10850. q
  10851. )
  10852. }))
  10853. }
  10854. }
  10855. n.SimpleWorkerServer = C
  10856. function r(u) {
  10857. return new C(u, null)
  10858. }
  10859. n.create = r
  10860. }),
  10861. Q(Y[54], X([0, 1, 9, 11]), function (x, n, R, D) {
  10862. 'use strict'
  10863. Object.defineProperty(n, '__esModule', { value: !0 }), (n.TokenizationRegistry = void 0)
  10864. class i {
  10865. constructor() {
  10866. ;(this._tokenizationSupports = new Map()),
  10867. (this._factories = new Map()),
  10868. (this._onDidChange = new R.Emitter()),
  10869. (this.onDidChange = this._onDidChange.event),
  10870. (this._colorMap = null)
  10871. }
  10872. handleChange(L) {
  10873. this._onDidChange.fire({ changedLanguages: L, changedColorMap: !1 })
  10874. }
  10875. register(L, h) {
  10876. return (
  10877. this._tokenizationSupports.set(L, h),
  10878. this.handleChange([L]),
  10879. (0, D.toDisposable)(() => {
  10880. this._tokenizationSupports.get(L) === h &&
  10881. (this._tokenizationSupports.delete(L), this.handleChange([L]))
  10882. })
  10883. )
  10884. }
  10885. get(L) {
  10886. return this._tokenizationSupports.get(L) || null
  10887. }
  10888. registerFactory(L, h) {
  10889. var a
  10890. ;(a = this._factories.get(L)) === null || a === void 0 || a.dispose()
  10891. const w = new s(this, L, h)
  10892. return (
  10893. this._factories.set(L, w),
  10894. (0, D.toDisposable)(() => {
  10895. const e = this._factories.get(L)
  10896. !e || e !== w || (this._factories.delete(L), e.dispose())
  10897. })
  10898. )
  10899. }
  10900. getOrCreate(L) {
  10901. return be(this, void 0, void 0, function* () {
  10902. const h = this.get(L)
  10903. if (h) return h
  10904. const a = this._factories.get(L)
  10905. return !a || a.isResolved ? null : (yield a.resolve(), this.get(L))
  10906. })
  10907. }
  10908. isResolved(L) {
  10909. if (this.get(L)) return !0
  10910. const a = this._factories.get(L)
  10911. return !!(!a || a.isResolved)
  10912. }
  10913. setColorMap(L) {
  10914. ;(this._colorMap = L),
  10915. this._onDidChange.fire({
  10916. changedLanguages: Array.from(this._tokenizationSupports.keys()),
  10917. changedColorMap: !0,
  10918. })
  10919. }
  10920. getColorMap() {
  10921. return this._colorMap
  10922. }
  10923. getDefaultBackground() {
  10924. return this._colorMap && this._colorMap.length > 2 ? this._colorMap[2] : null
  10925. }
  10926. }
  10927. n.TokenizationRegistry = i
  10928. class s extends D.Disposable {
  10929. get isResolved() {
  10930. return this._isResolved
  10931. }
  10932. constructor(L, h, a) {
  10933. super(),
  10934. (this._registry = L),
  10935. (this._languageId = h),
  10936. (this._factory = a),
  10937. (this._isDisposed = !1),
  10938. (this._resolvePromise = null),
  10939. (this._isResolved = !1)
  10940. }
  10941. dispose() {
  10942. ;(this._isDisposed = !0), super.dispose()
  10943. }
  10944. resolve() {
  10945. return be(this, void 0, void 0, function* () {
  10946. return (
  10947. this._resolvePromise || (this._resolvePromise = this._create()), this._resolvePromise
  10948. )
  10949. })
  10950. }
  10951. _create() {
  10952. return be(this, void 0, void 0, function* () {
  10953. const L = yield this._factory.tokenizationSupport
  10954. ;(this._isResolved = !0),
  10955. L && !this._isDisposed && this._register(this._registry.register(this._languageId, L))
  10956. })
  10957. }
  10958. }
  10959. }),
  10960. Q(Y[55], X([0, 1, 32, 13, 2, 54]), function (x, n, R, D, i, s) {
  10961. 'use strict'
  10962. Object.defineProperty(n, '__esModule', { value: !0 }),
  10963. (n.TokenizationRegistry =
  10964. n.LazyTokenizationSupport =
  10965. n.InlayHintKind =
  10966. n.Command =
  10967. n.FoldingRangeKind =
  10968. n.SymbolKinds =
  10969. n.isLocationLink =
  10970. n.DocumentHighlightKind =
  10971. n.SignatureHelpTriggerKind =
  10972. n.InlineCompletionTriggerKind =
  10973. n.CompletionItemKinds =
  10974. n.EncodedTokenizationResult =
  10975. n.TokenizationResult =
  10976. n.Token =
  10977. void 0)
  10978. class p {
  10979. constructor(d, C, r) {
  10980. ;(this.offset = d), (this.type = C), (this.language = r), (this._tokenBrand = void 0)
  10981. }
  10982. toString() {
  10983. return '(' + this.offset + ', ' + this.type + ')'
  10984. }
  10985. }
  10986. n.Token = p
  10987. class L {
  10988. constructor(d, C) {
  10989. ;(this.tokens = d), (this.endState = C), (this._tokenizationResultBrand = void 0)
  10990. }
  10991. }
  10992. n.TokenizationResult = L
  10993. class h {
  10994. constructor(d, C) {
  10995. ;(this.tokens = d), (this.endState = C), (this._encodedTokenizationResultBrand = void 0)
  10996. }
  10997. }
  10998. n.EncodedTokenizationResult = h
  10999. var a
  11000. ;(function (_) {
  11001. const d = new Map()
  11002. d.set(0, R.Codicon.symbolMethod),
  11003. d.set(1, R.Codicon.symbolFunction),
  11004. d.set(2, R.Codicon.symbolConstructor),
  11005. d.set(3, R.Codicon.symbolField),
  11006. d.set(4, R.Codicon.symbolVariable),
  11007. d.set(5, R.Codicon.symbolClass),
  11008. d.set(6, R.Codicon.symbolStruct),
  11009. d.set(7, R.Codicon.symbolInterface),
  11010. d.set(8, R.Codicon.symbolModule),
  11011. d.set(9, R.Codicon.symbolProperty),
  11012. d.set(10, R.Codicon.symbolEvent),
  11013. d.set(11, R.Codicon.symbolOperator),
  11014. d.set(12, R.Codicon.symbolUnit),
  11015. d.set(13, R.Codicon.symbolValue),
  11016. d.set(15, R.Codicon.symbolEnum),
  11017. d.set(14, R.Codicon.symbolConstant),
  11018. d.set(15, R.Codicon.symbolEnum),
  11019. d.set(16, R.Codicon.symbolEnumMember),
  11020. d.set(17, R.Codicon.symbolKeyword),
  11021. d.set(27, R.Codicon.symbolSnippet),
  11022. d.set(18, R.Codicon.symbolText),
  11023. d.set(19, R.Codicon.symbolColor),
  11024. d.set(20, R.Codicon.symbolFile),
  11025. d.set(21, R.Codicon.symbolReference),
  11026. d.set(22, R.Codicon.symbolCustomColor),
  11027. d.set(23, R.Codicon.symbolFolder),
  11028. d.set(24, R.Codicon.symbolTypeParameter),
  11029. d.set(25, R.Codicon.account),
  11030. d.set(26, R.Codicon.issues)
  11031. function C(o) {
  11032. let c = d.get(o)
  11033. return (
  11034. c ||
  11035. (console.info('No codicon found for CompletionItemKind ' + o),
  11036. (c = R.Codicon.symbolProperty)),
  11037. c
  11038. )
  11039. }
  11040. _.toIcon = C
  11041. const r = new Map()
  11042. r.set('method', 0),
  11043. r.set('function', 1),
  11044. r.set('constructor', 2),
  11045. r.set('field', 3),
  11046. r.set('variable', 4),
  11047. r.set('class', 5),
  11048. r.set('struct', 6),
  11049. r.set('interface', 7),
  11050. r.set('module', 8),
  11051. r.set('property', 9),
  11052. r.set('event', 10),
  11053. r.set('operator', 11),
  11054. r.set('unit', 12),
  11055. r.set('value', 13),
  11056. r.set('constant', 14),
  11057. r.set('enum', 15),
  11058. r.set('enum-member', 16),
  11059. r.set('enumMember', 16),
  11060. r.set('keyword', 17),
  11061. r.set('snippet', 27),
  11062. r.set('text', 18),
  11063. r.set('color', 19),
  11064. r.set('file', 20),
  11065. r.set('reference', 21),
  11066. r.set('customcolor', 22),
  11067. r.set('folder', 23),
  11068. r.set('type-parameter', 24),
  11069. r.set('typeParameter', 24),
  11070. r.set('account', 25),
  11071. r.set('issue', 26)
  11072. function u(o, c) {
  11073. let l = r.get(o)
  11074. return typeof l > 'u' && !c && (l = 9), l
  11075. }
  11076. _.fromString = u
  11077. })((a = n.CompletionItemKinds || (n.CompletionItemKinds = {})))
  11078. var w
  11079. ;(function (_) {
  11080. ;(_[(_.Automatic = 0)] = 'Automatic'), (_[(_.Explicit = 1)] = 'Explicit')
  11081. })((w = n.InlineCompletionTriggerKind || (n.InlineCompletionTriggerKind = {})))
  11082. var e
  11083. ;(function (_) {
  11084. ;(_[(_.Invoke = 1)] = 'Invoke'),
  11085. (_[(_.TriggerCharacter = 2)] = 'TriggerCharacter'),
  11086. (_[(_.ContentChange = 3)] = 'ContentChange')
  11087. })((e = n.SignatureHelpTriggerKind || (n.SignatureHelpTriggerKind = {})))
  11088. var b
  11089. ;(function (_) {
  11090. ;(_[(_.Text = 0)] = 'Text'), (_[(_.Read = 1)] = 'Read'), (_[(_.Write = 2)] = 'Write')
  11091. })((b = n.DocumentHighlightKind || (n.DocumentHighlightKind = {})))
  11092. function f(_) {
  11093. return (
  11094. _ &&
  11095. D.URI.isUri(_.uri) &&
  11096. i.Range.isIRange(_.range) &&
  11097. (i.Range.isIRange(_.originSelectionRange) || i.Range.isIRange(_.targetSelectionRange))
  11098. )
  11099. }
  11100. n.isLocationLink = f
  11101. var v
  11102. ;(function (_) {
  11103. const d = new Map()
  11104. d.set(0, R.Codicon.symbolFile),
  11105. d.set(1, R.Codicon.symbolModule),
  11106. d.set(2, R.Codicon.symbolNamespace),
  11107. d.set(3, R.Codicon.symbolPackage),
  11108. d.set(4, R.Codicon.symbolClass),
  11109. d.set(5, R.Codicon.symbolMethod),
  11110. d.set(6, R.Codicon.symbolProperty),
  11111. d.set(7, R.Codicon.symbolField),
  11112. d.set(8, R.Codicon.symbolConstructor),
  11113. d.set(9, R.Codicon.symbolEnum),
  11114. d.set(10, R.Codicon.symbolInterface),
  11115. d.set(11, R.Codicon.symbolFunction),
  11116. d.set(12, R.Codicon.symbolVariable),
  11117. d.set(13, R.Codicon.symbolConstant),
  11118. d.set(14, R.Codicon.symbolString),
  11119. d.set(15, R.Codicon.symbolNumber),
  11120. d.set(16, R.Codicon.symbolBoolean),
  11121. d.set(17, R.Codicon.symbolArray),
  11122. d.set(18, R.Codicon.symbolObject),
  11123. d.set(19, R.Codicon.symbolKey),
  11124. d.set(20, R.Codicon.symbolNull),
  11125. d.set(21, R.Codicon.symbolEnumMember),
  11126. d.set(22, R.Codicon.symbolStruct),
  11127. d.set(23, R.Codicon.symbolEvent),
  11128. d.set(24, R.Codicon.symbolOperator),
  11129. d.set(25, R.Codicon.symbolTypeParameter)
  11130. function C(r) {
  11131. let u = d.get(r)
  11132. return (
  11133. u ||
  11134. (console.info('No codicon found for SymbolKind ' + r),
  11135. (u = R.Codicon.symbolProperty)),
  11136. u
  11137. )
  11138. }
  11139. _.toIcon = C
  11140. })((v = n.SymbolKinds || (n.SymbolKinds = {})))
  11141. class g {
  11142. static fromValue(d) {
  11143. switch (d) {
  11144. case 'comment':
  11145. return g.Comment
  11146. case 'imports':
  11147. return g.Imports
  11148. case 'region':
  11149. return g.Region
  11150. }
  11151. return new g(d)
  11152. }
  11153. constructor(d) {
  11154. this.value = d
  11155. }
  11156. }
  11157. ;(g.Comment = new g('comment')),
  11158. (g.Imports = new g('imports')),
  11159. (g.Region = new g('region')),
  11160. (n.FoldingRangeKind = g)
  11161. var S
  11162. ;(function (_) {
  11163. function d(C) {
  11164. return !C || typeof C != 'object'
  11165. ? !1
  11166. : typeof C.id == 'string' && typeof C.title == 'string'
  11167. }
  11168. _.is = d
  11169. })((S = n.Command || (n.Command = {})))
  11170. var E
  11171. ;(function (_) {
  11172. ;(_[(_.Type = 1)] = 'Type'), (_[(_.Parameter = 2)] = 'Parameter')
  11173. })((E = n.InlayHintKind || (n.InlayHintKind = {})))
  11174. class y {
  11175. constructor(d) {
  11176. ;(this.createSupport = d), (this._tokenizationSupport = null)
  11177. }
  11178. dispose() {
  11179. this._tokenizationSupport &&
  11180. this._tokenizationSupport.then((d) => {
  11181. d && d.dispose()
  11182. })
  11183. }
  11184. get tokenizationSupport() {
  11185. return (
  11186. this._tokenizationSupport || (this._tokenizationSupport = this.createSupport()),
  11187. this._tokenizationSupport
  11188. )
  11189. }
  11190. }
  11191. ;(n.LazyTokenizationSupport = y), (n.TokenizationRegistry = new s.TokenizationRegistry())
  11192. }),
  11193. Q(
  11194. Y[56],
  11195. X([0, 1, 53, 9, 29, 13, 3, 2, 33, 55, 49]),
  11196. function (x, n, R, D, i, s, p, L, h, a, w) {
  11197. 'use strict'
  11198. Object.defineProperty(n, '__esModule', { value: !0 }),
  11199. (n.createMonacoBaseAPI = n.KeyMod = void 0)
  11200. class e {
  11201. static chord(v, g) {
  11202. return (0, i.KeyChord)(v, g)
  11203. }
  11204. }
  11205. ;(e.CtrlCmd = 2048), (e.Shift = 1024), (e.Alt = 512), (e.WinCtrl = 256), (n.KeyMod = e)
  11206. function b() {
  11207. return {
  11208. editor: void 0,
  11209. languages: void 0,
  11210. CancellationTokenSource: R.CancellationTokenSource,
  11211. Emitter: D.Emitter,
  11212. KeyCode: w.KeyCode,
  11213. KeyMod: e,
  11214. Position: p.Position,
  11215. Range: L.Range,
  11216. Selection: h.Selection,
  11217. SelectionDirection: w.SelectionDirection,
  11218. MarkerSeverity: w.MarkerSeverity,
  11219. MarkerTag: w.MarkerTag,
  11220. Uri: s.URI,
  11221. Token: a.Token,
  11222. }
  11223. }
  11224. n.createMonacoBaseAPI = b
  11225. }
  11226. ),
  11227. Q(
  11228. Y[59],
  11229. X([0, 1, 17, 13, 3, 2, 46, 22, 42, 43, 56, 24, 48, 41, 12]),
  11230. function (x, n, R, D, i, s, p, L, h, a, w, e, b, f, v) {
  11231. 'use strict'
  11232. Object.defineProperty(n, '__esModule', { value: !0 }),
  11233. (n.create = n.EditorSimpleWorker = void 0)
  11234. class g extends p.MirrorTextModel {
  11235. get uri() {
  11236. return this._uri
  11237. }
  11238. get eol() {
  11239. return this._eol
  11240. }
  11241. getValue() {
  11242. return this.getText()
  11243. }
  11244. getLinesContent() {
  11245. return this._lines.slice(0)
  11246. }
  11247. getLineCount() {
  11248. return this._lines.length
  11249. }
  11250. getLineContent(_) {
  11251. return this._lines[_ - 1]
  11252. }
  11253. getWordAtPosition(_, d) {
  11254. const C = (0, L.getWordAtText)(
  11255. _.column,
  11256. (0, L.ensureValidWordDefinition)(d),
  11257. this._lines[_.lineNumber - 1],
  11258. 0
  11259. )
  11260. return C ? new s.Range(_.lineNumber, C.startColumn, _.lineNumber, C.endColumn) : null
  11261. }
  11262. words(_) {
  11263. const d = this._lines,
  11264. C = this._wordenize.bind(this)
  11265. let r = 0,
  11266. u = '',
  11267. o = 0,
  11268. c = []
  11269. return {
  11270. *[Symbol.iterator]() {
  11271. for (;;)
  11272. if (o < c.length) {
  11273. const l = u.substring(c[o].start, c[o].end)
  11274. ;(o += 1), yield l
  11275. } else if (r < d.length) (u = d[r]), (c = C(u, _)), (o = 0), (r += 1)
  11276. else break
  11277. },
  11278. }
  11279. }
  11280. getLineWords(_, d) {
  11281. const C = this._lines[_ - 1],
  11282. r = this._wordenize(C, d),
  11283. u = []
  11284. for (const o of r)
  11285. u.push({
  11286. word: C.substring(o.start, o.end),
  11287. startColumn: o.start + 1,
  11288. endColumn: o.end + 1,
  11289. })
  11290. return u
  11291. }
  11292. _wordenize(_, d) {
  11293. const C = []
  11294. let r
  11295. for (d.lastIndex = 0; (r = d.exec(_)) && r[0].length !== 0; )
  11296. C.push({ start: r.index, end: r.index + r[0].length })
  11297. return C
  11298. }
  11299. getValueInRange(_) {
  11300. if (((_ = this._validateRange(_)), _.startLineNumber === _.endLineNumber))
  11301. return this._lines[_.startLineNumber - 1].substring(
  11302. _.startColumn - 1,
  11303. _.endColumn - 1
  11304. )
  11305. const d = this._eol,
  11306. C = _.startLineNumber - 1,
  11307. r = _.endLineNumber - 1,
  11308. u = []
  11309. u.push(this._lines[C].substring(_.startColumn - 1))
  11310. for (let o = C + 1; o < r; o++) u.push(this._lines[o])
  11311. return u.push(this._lines[r].substring(0, _.endColumn - 1)), u.join(d)
  11312. }
  11313. offsetAt(_) {
  11314. return (
  11315. (_ = this._validatePosition(_)),
  11316. this._ensureLineStarts(),
  11317. this._lineStarts.getPrefixSum(_.lineNumber - 2) + (_.column - 1)
  11318. )
  11319. }
  11320. positionAt(_) {
  11321. ;(_ = Math.floor(_)), (_ = Math.max(0, _)), this._ensureLineStarts()
  11322. const d = this._lineStarts.getIndexOf(_),
  11323. C = this._lines[d.index].length
  11324. return { lineNumber: 1 + d.index, column: 1 + Math.min(d.remainder, C) }
  11325. }
  11326. _validateRange(_) {
  11327. const d = this._validatePosition({
  11328. lineNumber: _.startLineNumber,
  11329. column: _.startColumn,
  11330. }),
  11331. C = this._validatePosition({ lineNumber: _.endLineNumber, column: _.endColumn })
  11332. return d.lineNumber !== _.startLineNumber ||
  11333. d.column !== _.startColumn ||
  11334. C.lineNumber !== _.endLineNumber ||
  11335. C.column !== _.endColumn
  11336. ? {
  11337. startLineNumber: d.lineNumber,
  11338. startColumn: d.column,
  11339. endLineNumber: C.lineNumber,
  11340. endColumn: C.column,
  11341. }
  11342. : _
  11343. }
  11344. _validatePosition(_) {
  11345. if (!i.Position.isIPosition(_)) throw new Error('bad position')
  11346. let { lineNumber: d, column: C } = _,
  11347. r = !1
  11348. if (d < 1) (d = 1), (C = 1), (r = !0)
  11349. else if (d > this._lines.length)
  11350. (d = this._lines.length), (C = this._lines[d - 1].length + 1), (r = !0)
  11351. else {
  11352. const u = this._lines[d - 1].length + 1
  11353. C < 1 ? ((C = 1), (r = !0)) : C > u && ((C = u), (r = !0))
  11354. }
  11355. return r ? { lineNumber: d, column: C } : _
  11356. }
  11357. }
  11358. class S {
  11359. constructor(_, d) {
  11360. ;(this._host = _),
  11361. (this._models = Object.create(null)),
  11362. (this._foreignModuleFactory = d),
  11363. (this._foreignModule = null)
  11364. }
  11365. dispose() {
  11366. this._models = Object.create(null)
  11367. }
  11368. _getModel(_) {
  11369. return this._models[_]
  11370. }
  11371. _getModels() {
  11372. const _ = []
  11373. return Object.keys(this._models).forEach((d) => _.push(this._models[d])), _
  11374. }
  11375. acceptNewModel(_) {
  11376. this._models[_.url] = new g(D.URI.parse(_.url), _.lines, _.EOL, _.versionId)
  11377. }
  11378. acceptModelChanged(_, d) {
  11379. if (!this._models[_]) return
  11380. this._models[_].onEvents(d)
  11381. }
  11382. acceptRemovedModel(_) {
  11383. !this._models[_] || delete this._models[_]
  11384. }
  11385. computeUnicodeHighlights(_, d, C) {
  11386. return be(this, void 0, void 0, function* () {
  11387. const r = this._getModel(_)
  11388. return r
  11389. ? b.UnicodeTextModelHighlighter.computeUnicodeHighlights(r, d, C)
  11390. : {
  11391. ranges: [],
  11392. hasMore: !1,
  11393. ambiguousCharacterCount: 0,
  11394. invisibleCharacterCount: 0,
  11395. nonBasicAsciiCharacterCount: 0,
  11396. }
  11397. })
  11398. }
  11399. computeDiff(_, d, C, r) {
  11400. return be(this, void 0, void 0, function* () {
  11401. const u = this._getModel(_),
  11402. o = this._getModel(d)
  11403. return !u || !o ? null : S.computeDiff(u, o, C, r)
  11404. })
  11405. }
  11406. static computeDiff(_, d, C, r) {
  11407. const u =
  11408. r === 'experimental'
  11409. ? f.linesDiffComputers.experimental
  11410. : f.linesDiffComputers.smart,
  11411. o = _.getLinesContent(),
  11412. c = d.getLinesContent(),
  11413. l = u.computeDiff(o, c, C)
  11414. return {
  11415. identical: l.changes.length > 0 ? !1 : this._modelsAreIdentical(_, d),
  11416. quitEarly: l.hitTimeout,
  11417. changes: l.changes.map((N) => {
  11418. var A
  11419. return [
  11420. N.originalRange.startLineNumber,
  11421. N.originalRange.endLineNumberExclusive,
  11422. N.modifiedRange.startLineNumber,
  11423. N.modifiedRange.endLineNumberExclusive,
  11424. (A = N.innerChanges) === null || A === void 0
  11425. ? void 0
  11426. : A.map((M) => [
  11427. M.originalRange.startLineNumber,
  11428. M.originalRange.startColumn,
  11429. M.originalRange.endLineNumber,
  11430. M.originalRange.endColumn,
  11431. M.modifiedRange.startLineNumber,
  11432. M.modifiedRange.startColumn,
  11433. M.modifiedRange.endLineNumber,
  11434. M.modifiedRange.endColumn,
  11435. ]),
  11436. ]
  11437. }),
  11438. }
  11439. }
  11440. static _modelsAreIdentical(_, d) {
  11441. const C = _.getLineCount(),
  11442. r = d.getLineCount()
  11443. if (C !== r) return !1
  11444. for (let u = 1; u <= C; u++) {
  11445. const o = _.getLineContent(u),
  11446. c = d.getLineContent(u)
  11447. if (o !== c) return !1
  11448. }
  11449. return !0
  11450. }
  11451. computeMoreMinimalEdits(_, d, C) {
  11452. return be(this, void 0, void 0, function* () {
  11453. const r = this._getModel(_)
  11454. if (!r) return d
  11455. const u = []
  11456. let o
  11457. d = d.slice(0).sort((c, l) => {
  11458. if (c.range && l.range) return s.Range.compareRangesUsingStarts(c.range, l.range)
  11459. const m = c.range ? 0 : 1,
  11460. N = l.range ? 0 : 1
  11461. return m - N
  11462. })
  11463. for (let { range: c, text: l, eol: m } of d) {
  11464. if ((typeof m == 'number' && (o = m), s.Range.isEmpty(c) && !l)) continue
  11465. const N = r.getValueInRange(c)
  11466. if (((l = l.replace(/\r\n|\n|\r/g, r.eol)), N === l)) continue
  11467. if (Math.max(l.length, N.length) > S._diffLimit) {
  11468. u.push({ range: c, text: l })
  11469. continue
  11470. }
  11471. const A = (0, R.stringDiff)(N, l, C),
  11472. M = r.offsetAt(s.Range.lift(c).getStartPosition())
  11473. for (const k of A) {
  11474. const q = r.positionAt(M + k.originalStart),
  11475. I = r.positionAt(M + k.originalStart + k.originalLength),
  11476. B = {
  11477. text: l.substr(k.modifiedStart, k.modifiedLength),
  11478. range: {
  11479. startLineNumber: q.lineNumber,
  11480. startColumn: q.column,
  11481. endLineNumber: I.lineNumber,
  11482. endColumn: I.column,
  11483. },
  11484. }
  11485. r.getValueInRange(B.range) !== B.text && u.push(B)
  11486. }
  11487. }
  11488. return (
  11489. typeof o == 'number' &&
  11490. u.push({
  11491. eol: o,
  11492. text: '',
  11493. range: { startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0 },
  11494. }),
  11495. u
  11496. )
  11497. })
  11498. }
  11499. computeLinks(_) {
  11500. return be(this, void 0, void 0, function* () {
  11501. const d = this._getModel(_)
  11502. return d ? (0, h.computeLinks)(d) : null
  11503. })
  11504. }
  11505. textualSuggest(_, d, C, r) {
  11506. return be(this, void 0, void 0, function* () {
  11507. const u = new e.StopWatch(!0),
  11508. o = new RegExp(C, r),
  11509. c = new Set()
  11510. e: for (const l of _) {
  11511. const m = this._getModel(l)
  11512. if (!!m) {
  11513. for (const N of m.words(o))
  11514. if (!(N === d || !isNaN(Number(N))) && (c.add(N), c.size > S._suggestionsLimit))
  11515. break e
  11516. }
  11517. }
  11518. return { words: Array.from(c), duration: u.elapsed() }
  11519. })
  11520. }
  11521. computeWordRanges(_, d, C, r) {
  11522. return be(this, void 0, void 0, function* () {
  11523. const u = this._getModel(_)
  11524. if (!u) return Object.create(null)
  11525. const o = new RegExp(C, r),
  11526. c = Object.create(null)
  11527. for (let l = d.startLineNumber; l < d.endLineNumber; l++) {
  11528. const m = u.getLineWords(l, o)
  11529. for (const N of m) {
  11530. if (!isNaN(Number(N.word))) continue
  11531. let A = c[N.word]
  11532. A || ((A = []), (c[N.word] = A)),
  11533. A.push({
  11534. startLineNumber: l,
  11535. startColumn: N.startColumn,
  11536. endLineNumber: l,
  11537. endColumn: N.endColumn,
  11538. })
  11539. }
  11540. }
  11541. return c
  11542. })
  11543. }
  11544. navigateValueSet(_, d, C, r, u) {
  11545. return be(this, void 0, void 0, function* () {
  11546. const o = this._getModel(_)
  11547. if (!o) return null
  11548. const c = new RegExp(r, u)
  11549. d.startColumn === d.endColumn &&
  11550. (d = {
  11551. startLineNumber: d.startLineNumber,
  11552. startColumn: d.startColumn,
  11553. endLineNumber: d.endLineNumber,
  11554. endColumn: d.endColumn + 1,
  11555. })
  11556. const l = o.getValueInRange(d),
  11557. m = o.getWordAtPosition({ lineNumber: d.startLineNumber, column: d.startColumn }, c)
  11558. if (!m) return null
  11559. const N = o.getValueInRange(m)
  11560. return a.BasicInplaceReplace.INSTANCE.navigateValueSet(d, l, m, N, C)
  11561. })
  11562. }
  11563. loadForeignModule(_, d, C) {
  11564. const r = (c, l) => this._host.fhr(c, l),
  11565. o = { host: (0, v.createProxyObject)(C, r), getMirrorModels: () => this._getModels() }
  11566. return this._foreignModuleFactory
  11567. ? ((this._foreignModule = this._foreignModuleFactory(o, d)),
  11568. Promise.resolve((0, v.getAllMethodNames)(this._foreignModule)))
  11569. : new Promise((c, l) => {
  11570. x(
  11571. [_],
  11572. (m) => {
  11573. ;(this._foreignModule = m.create(o, d)),
  11574. c((0, v.getAllMethodNames)(this._foreignModule))
  11575. },
  11576. l
  11577. )
  11578. })
  11579. }
  11580. fmr(_, d) {
  11581. if (!this._foreignModule || typeof this._foreignModule[_] != 'function')
  11582. return Promise.reject(new Error('Missing requestHandler or method: ' + _))
  11583. try {
  11584. return Promise.resolve(this._foreignModule[_].apply(this._foreignModule, d))
  11585. } catch (C) {
  11586. return Promise.reject(C)
  11587. }
  11588. }
  11589. }
  11590. ;(S._diffLimit = 1e5), (S._suggestionsLimit = 1e4), (n.EditorSimpleWorker = S)
  11591. function E(y) {
  11592. return new S(y, null)
  11593. }
  11594. ;(n.create = E),
  11595. typeof importScripts == 'function' && (globalThis.monaco = (0, w.createMonacoBaseAPI)())
  11596. }
  11597. )
  11598. }).call(this)
  11599. //# sourceMappingURL=../../../../min-maps/vs/base/worker/workerMain.js.map